Rewrite emitCastOperation, refactoring parts of it into emitIntegerCast, and
[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 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='LLVM'
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430 ac_unique_file=""Makefile.config.in""
431 ac_subdirs_all="$ac_subdirs_all projects/sample"
432 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
436 ac_subdirs_all="$ac_subdirs_all projects/Java"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
439 # Factoring default headers for most tests.
440 ac_includes_default="\
441 #include <stdio.h>
442 #if HAVE_SYS_TYPES_H
443 # include <sys/types.h>
444 #endif
445 #if HAVE_SYS_STAT_H
446 # include <sys/stat.h>
447 #endif
448 #if STDC_HEADERS
449 # include <stdlib.h>
450 # include <stddef.h>
451 #else
452 # if HAVE_STDLIB_H
453 #  include <stdlib.h>
454 # endif
455 #endif
456 #if HAVE_STRING_H
457 # if !STDC_HEADERS && HAVE_MEMORY_H
458 #  include <memory.h>
459 # endif
460 # include <string.h>
461 #endif
462 #if HAVE_STRINGS_H
463 # include <strings.h>
464 #endif
465 #if HAVE_INTTYPES_H
466 # include <inttypes.h>
467 #else
468 # if HAVE_STDINT_H
469 #  include <stdint.h>
470 # endif
471 #endif
472 #if HAVE_UNISTD_H
473 # include <unistd.h>
474 #endif"
475
476 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_ZLIB HAVE_BZIP2 ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
477 ac_subst_files=''
478
479 # Initialize some variables set by options.
480 ac_init_help=
481 ac_init_version=false
482 # The variables have the same names as the options, with
483 # dashes changed to underlines.
484 cache_file=/dev/null
485 exec_prefix=NONE
486 no_create=
487 no_recursion=
488 prefix=NONE
489 program_prefix=NONE
490 program_suffix=NONE
491 program_transform_name=s,x,x,
492 silent=
493 site=
494 srcdir=
495 verbose=
496 x_includes=NONE
497 x_libraries=NONE
498
499 # Installation directory options.
500 # These are left unexpanded so users can "make install exec_prefix=/foo"
501 # and all the variables that are supposed to be based on exec_prefix
502 # by default will actually change.
503 # Use braces instead of parens because sh, perl, etc. also accept them.
504 bindir='${exec_prefix}/bin'
505 sbindir='${exec_prefix}/sbin'
506 libexecdir='${exec_prefix}/libexec'
507 datadir='${prefix}/share'
508 sysconfdir='${prefix}/etc'
509 sharedstatedir='${prefix}/com'
510 localstatedir='${prefix}/var'
511 libdir='${exec_prefix}/lib'
512 includedir='${prefix}/include'
513 oldincludedir='/usr/include'
514 infodir='${prefix}/info'
515 mandir='${prefix}/man'
516
517 ac_prev=
518 for ac_option
519 do
520   # If the previous option needs an argument, assign it.
521   if test -n "$ac_prev"; then
522     eval "$ac_prev=\$ac_option"
523     ac_prev=
524     continue
525   fi
526
527   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529   # Accept the important Cygnus configure options, so we can diagnose typos.
530
531   case $ac_option in
532
533   -bindir | --bindir | --bindi | --bind | --bin | --bi)
534     ac_prev=bindir ;;
535   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536     bindir=$ac_optarg ;;
537
538   -build | --build | --buil | --bui | --bu)
539     ac_prev=build_alias ;;
540   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541     build_alias=$ac_optarg ;;
542
543   -cache-file | --cache-file | --cache-fil | --cache-fi \
544   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545     ac_prev=cache_file ;;
546   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548     cache_file=$ac_optarg ;;
549
550   --config-cache | -C)
551     cache_file=config.cache ;;
552
553   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554     ac_prev=datadir ;;
555   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556   | --da=*)
557     datadir=$ac_optarg ;;
558
559   -disable-* | --disable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     eval "enable_$ac_feature=no" ;;
567
568   -enable-* | --enable-*)
569     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570     # Reject names that are not valid shell variable names.
571     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573    { (exit 1); exit 1; }; }
574     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575     case $ac_option in
576       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577       *) ac_optarg=yes ;;
578     esac
579     eval "enable_$ac_feature='$ac_optarg'" ;;
580
581   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583   | --exec | --exe | --ex)
584     ac_prev=exec_prefix ;;
585   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587   | --exec=* | --exe=* | --ex=*)
588     exec_prefix=$ac_optarg ;;
589
590   -gas | --gas | --ga | --g)
591     # Obsolete; use --with-gas.
592     with_gas=yes ;;
593
594   -help | --help | --hel | --he | -h)
595     ac_init_help=long ;;
596   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597     ac_init_help=recursive ;;
598   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599     ac_init_help=short ;;
600
601   -host | --host | --hos | --ho)
602     ac_prev=host_alias ;;
603   -host=* | --host=* | --hos=* | --ho=*)
604     host_alias=$ac_optarg ;;
605
606   -includedir | --includedir | --includedi | --included | --include \
607   | --includ | --inclu | --incl | --inc)
608     ac_prev=includedir ;;
609   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610   | --includ=* | --inclu=* | --incl=* | --inc=*)
611     includedir=$ac_optarg ;;
612
613   -infodir | --infodir | --infodi | --infod | --info | --inf)
614     ac_prev=infodir ;;
615   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616     infodir=$ac_optarg ;;
617
618   -libdir | --libdir | --libdi | --libd)
619     ac_prev=libdir ;;
620   -libdir=* | --libdir=* | --libdi=* | --libd=*)
621     libdir=$ac_optarg ;;
622
623   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624   | --libexe | --libex | --libe)
625     ac_prev=libexecdir ;;
626   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627   | --libexe=* | --libex=* | --libe=*)
628     libexecdir=$ac_optarg ;;
629
630   -localstatedir | --localstatedir | --localstatedi | --localstated \
631   | --localstate | --localstat | --localsta | --localst \
632   | --locals | --local | --loca | --loc | --lo)
633     ac_prev=localstatedir ;;
634   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637     localstatedir=$ac_optarg ;;
638
639   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640     ac_prev=mandir ;;
641   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642     mandir=$ac_optarg ;;
643
644   -nfp | --nfp | --nf)
645     # Obsolete; use --without-fp.
646     with_fp=no ;;
647
648   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649   | --no-cr | --no-c | -n)
650     no_create=yes ;;
651
652   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654     no_recursion=yes ;;
655
656   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658   | --oldin | --oldi | --old | --ol | --o)
659     ac_prev=oldincludedir ;;
660   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663     oldincludedir=$ac_optarg ;;
664
665   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666     ac_prev=prefix ;;
667   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668     prefix=$ac_optarg ;;
669
670   -program-prefix | --program-prefix | --program-prefi | --program-pref \
671   | --program-pre | --program-pr | --program-p)
672     ac_prev=program_prefix ;;
673   -program-prefix=* | --program-prefix=* | --program-prefi=* \
674   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675     program_prefix=$ac_optarg ;;
676
677   -program-suffix | --program-suffix | --program-suffi | --program-suff \
678   | --program-suf | --program-su | --program-s)
679     ac_prev=program_suffix ;;
680   -program-suffix=* | --program-suffix=* | --program-suffi=* \
681   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682     program_suffix=$ac_optarg ;;
683
684   -program-transform-name | --program-transform-name \
685   | --program-transform-nam | --program-transform-na \
686   | --program-transform-n | --program-transform- \
687   | --program-transform | --program-transfor \
688   | --program-transfo | --program-transf \
689   | --program-trans | --program-tran \
690   | --progr-tra | --program-tr | --program-t)
691     ac_prev=program_transform_name ;;
692   -program-transform-name=* | --program-transform-name=* \
693   | --program-transform-nam=* | --program-transform-na=* \
694   | --program-transform-n=* | --program-transform-=* \
695   | --program-transform=* | --program-transfor=* \
696   | --program-transfo=* | --program-transf=* \
697   | --program-trans=* | --program-tran=* \
698   | --progr-tra=* | --program-tr=* | --program-t=*)
699     program_transform_name=$ac_optarg ;;
700
701   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702   | -silent | --silent | --silen | --sile | --sil)
703     silent=yes ;;
704
705   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706     ac_prev=sbindir ;;
707   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708   | --sbi=* | --sb=*)
709     sbindir=$ac_optarg ;;
710
711   -sharedstatedir | --sharedstatedir | --sharedstatedi \
712   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713   | --sharedst | --shareds | --shared | --share | --shar \
714   | --sha | --sh)
715     ac_prev=sharedstatedir ;;
716   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719   | --sha=* | --sh=*)
720     sharedstatedir=$ac_optarg ;;
721
722   -site | --site | --sit)
723     ac_prev=site ;;
724   -site=* | --site=* | --sit=*)
725     site=$ac_optarg ;;
726
727   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728     ac_prev=srcdir ;;
729   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730     srcdir=$ac_optarg ;;
731
732   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733   | --syscon | --sysco | --sysc | --sys | --sy)
734     ac_prev=sysconfdir ;;
735   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737     sysconfdir=$ac_optarg ;;
738
739   -target | --target | --targe | --targ | --tar | --ta | --t)
740     ac_prev=target_alias ;;
741   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742     target_alias=$ac_optarg ;;
743
744   -v | -verbose | --verbose | --verbos | --verbo | --verb)
745     verbose=yes ;;
746
747   -version | --version | --versio | --versi | --vers | -V)
748     ac_init_version=: ;;
749
750   -with-* | --with-*)
751     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752     # Reject names that are not valid shell variable names.
753     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754       { echo "$as_me: error: invalid package name: $ac_package" >&2
755    { (exit 1); exit 1; }; }
756     ac_package=`echo $ac_package| sed 's/-/_/g'`
757     case $ac_option in
758       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759       *) ac_optarg=yes ;;
760     esac
761     eval "with_$ac_package='$ac_optarg'" ;;
762
763   -without-* | --without-*)
764     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765     # Reject names that are not valid shell variable names.
766     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767       { echo "$as_me: error: invalid package name: $ac_package" >&2
768    { (exit 1); exit 1; }; }
769     ac_package=`echo $ac_package | sed 's/-/_/g'`
770     eval "with_$ac_package=no" ;;
771
772   --x)
773     # Obsolete; use --with-x.
774     with_x=yes ;;
775
776   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777   | --x-incl | --x-inc | --x-in | --x-i)
778     ac_prev=x_includes ;;
779   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781     x_includes=$ac_optarg ;;
782
783   -x-libraries | --x-libraries | --x-librarie | --x-librari \
784   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785     ac_prev=x_libraries ;;
786   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788     x_libraries=$ac_optarg ;;
789
790   -*) { echo "$as_me: error: unrecognized option: $ac_option
791 Try \`$0 --help' for more information." >&2
792    { (exit 1); exit 1; }; }
793     ;;
794
795   *=*)
796     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797     # Reject names that are not valid shell variable names.
798     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800    { (exit 1); exit 1; }; }
801     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802     eval "$ac_envvar='$ac_optarg'"
803     export $ac_envvar ;;
804
805   *)
806     # FIXME: should be removed in autoconf 3.0.
807     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811     ;;
812
813   esac
814 done
815
816 if test -n "$ac_prev"; then
817   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818   { echo "$as_me: error: missing argument to $ac_option" >&2
819    { (exit 1); exit 1; }; }
820 fi
821
822 # Be sure to have absolute paths.
823 for ac_var in exec_prefix prefix
824 do
825   eval ac_val=$`echo $ac_var`
826   case $ac_val in
827     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829    { (exit 1); exit 1; }; };;
830   esac
831 done
832
833 # Be sure to have absolute paths.
834 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835               localstatedir libdir includedir oldincludedir infodir mandir
836 do
837   eval ac_val=$`echo $ac_var`
838   case $ac_val in
839     [\\/$]* | ?:[\\/]* ) ;;
840     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841    { (exit 1); exit 1; }; };;
842   esac
843 done
844
845 # There might be people who depend on the old broken behavior: `$host'
846 # used to hold the argument of --host etc.
847 # FIXME: To remove some day.
848 build=$build_alias
849 host=$host_alias
850 target=$target_alias
851
852 # FIXME: To remove some day.
853 if test "x$host_alias" != x; then
854   if test "x$build_alias" = x; then
855     cross_compiling=maybe
856     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857     If a cross compiler is detected then cross compile mode will be used." >&2
858   elif test "x$build_alias" != "x$host_alias"; then
859     cross_compiling=yes
860   fi
861 fi
862
863 ac_tool_prefix=
864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866 test "$silent" = yes && exec 6>/dev/null
867
868
869 # Find the source files, if location was not specified.
870 if test -z "$srcdir"; then
871   ac_srcdir_defaulted=yes
872   # Try the directory containing this script, then its parent.
873   ac_confdir=`(dirname "$0") 2>/dev/null ||
874 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875          X"$0" : 'X\(//\)[^/]' \| \
876          X"$0" : 'X\(//\)$' \| \
877          X"$0" : 'X\(/\)' \| \
878          .     : '\(.\)' 2>/dev/null ||
879 echo X"$0" |
880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882           /^X\(\/\/\)$/{ s//\1/; q; }
883           /^X\(\/\).*/{ s//\1/; q; }
884           s/.*/./; q'`
885   srcdir=$ac_confdir
886   if test ! -r $srcdir/$ac_unique_file; then
887     srcdir=..
888   fi
889 else
890   ac_srcdir_defaulted=no
891 fi
892 if test ! -r $srcdir/$ac_unique_file; then
893   if test "$ac_srcdir_defaulted" = yes; then
894     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895    { (exit 1); exit 1; }; }
896   else
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898    { (exit 1); exit 1; }; }
899   fi
900 fi
901 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903    { (exit 1); exit 1; }; }
904 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905 ac_env_build_alias_set=${build_alias+set}
906 ac_env_build_alias_value=$build_alias
907 ac_cv_env_build_alias_set=${build_alias+set}
908 ac_cv_env_build_alias_value=$build_alias
909 ac_env_host_alias_set=${host_alias+set}
910 ac_env_host_alias_value=$host_alias
911 ac_cv_env_host_alias_set=${host_alias+set}
912 ac_cv_env_host_alias_value=$host_alias
913 ac_env_target_alias_set=${target_alias+set}
914 ac_env_target_alias_value=$target_alias
915 ac_cv_env_target_alias_set=${target_alias+set}
916 ac_cv_env_target_alias_value=$target_alias
917 ac_env_CXX_set=${CXX+set}
918 ac_env_CXX_value=$CXX
919 ac_cv_env_CXX_set=${CXX+set}
920 ac_cv_env_CXX_value=$CXX
921 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922 ac_env_CXXFLAGS_value=$CXXFLAGS
923 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925 ac_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_env_LDFLAGS_value=$LDFLAGS
927 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_cv_env_LDFLAGS_value=$LDFLAGS
929 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_env_CPPFLAGS_value=$CPPFLAGS
931 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933 ac_env_CC_set=${CC+set}
934 ac_env_CC_value=$CC
935 ac_cv_env_CC_set=${CC+set}
936 ac_cv_env_CC_value=$CC
937 ac_env_CFLAGS_set=${CFLAGS+set}
938 ac_env_CFLAGS_value=$CFLAGS
939 ac_cv_env_CFLAGS_set=${CFLAGS+set}
940 ac_cv_env_CFLAGS_value=$CFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
957
958 #
959 # Report the --help message.
960 #
961 if test "$ac_init_help" = "long"; then
962   # Omit some internal or obsolete options to make the list less imposing.
963   # This message is too long to be a string in the A/UX 3.1 sh.
964   cat <<_ACEOF
965 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
966
967 Usage: $0 [OPTION]... [VAR=VALUE]...
968
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE.  See below for descriptions of some of the useful variables.
971
972 Defaults for the options are specified in brackets.
973
974 Configuration:
975   -h, --help              display this help and exit
976       --help=short        display options specific to this package
977       --help=recursive    display the short help of all the included packages
978   -V, --version           display version information and exit
979   -q, --quiet, --silent   do not print \`checking...' messages
980       --cache-file=FILE   cache test results in FILE [disabled]
981   -C, --config-cache      alias for \`--cache-file=config.cache'
982   -n, --no-create         do not create output files
983       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
984
985 _ACEOF
986
987   cat <<_ACEOF
988 Installation directories:
989   --prefix=PREFIX         install architecture-independent files in PREFIX
990                           [$ac_default_prefix]
991   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
992                           [PREFIX]
993
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
998
999 For better control, use the options below.
1000
1001 Fine tuning of the installation directories:
1002   --bindir=DIR           user executables [EPREFIX/bin]
1003   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1004   --libexecdir=DIR       program executables [EPREFIX/libexec]
1005   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1006   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1007   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1008   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1009   --libdir=DIR           object code libraries [EPREFIX/lib]
1010   --includedir=DIR       C header files [PREFIX/include]
1011   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1012   --infodir=DIR          info documentation [PREFIX/info]
1013   --mandir=DIR           man documentation [PREFIX/man]
1014 _ACEOF
1015
1016   cat <<\_ACEOF
1017
1018 System types:
1019   --build=BUILD     configure for building on BUILD [guessed]
1020   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021   --target=TARGET   configure for building compilers for TARGET [HOST]
1022 _ACEOF
1023 fi
1024
1025 if test -n "$ac_init_help"; then
1026   case $ac_init_help in
1027      short | recursive ) echo "Configuration of LLVM 1.4:";;
1028    esac
1029   cat <<\_ACEOF
1030
1031 Optional Features:
1032   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1033   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1034   --enable-shared[=PKGS]
1035                           build shared libraries [default=yes]
1036   --enable-static[=PKGS]
1037                           build static libraries [default=yes]
1038   --enable-fast-install[=PKGS]
1039                           optimize for fast installation [default=yes]
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-optimized      Compile with optimizations enabled (default is NO)
1042   --enable-jit            Enable Just In Time Compiling (default is YES)
1043
1044 Optional Packages:
1045   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1046   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1047   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048   --with-pic              try to use only PIC/non-PIC objects [default=use
1049                           both]
1050   --with-tags[=TAGS]
1051                           include additional configurations [automatic]
1052   --with-llvmgccdir       Location of LLVM GCC front-end
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105
1106 # Do not use `cd foo && pwd` to compute absolute paths, because
1107 # the directories may not exist.
1108 case `pwd` in
1109 .) ac_abs_builddir="$ac_dir";;
1110 *)
1111   case "$ac_dir" in
1112   .) ac_abs_builddir=`pwd`;;
1113   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115   esac;;
1116 esac
1117 case $ac_abs_builddir in
1118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *)
1120   case ${ac_top_builddir}. in
1121   .) ac_abs_top_builddir=$ac_abs_builddir;;
1122   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124   esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_srcdir=$ac_srcdir;;
1128 *)
1129   case $ac_srcdir in
1130   .) ac_abs_srcdir=$ac_abs_builddir;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133   esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *)
1138   case $ac_top_srcdir in
1139   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142   esac;;
1143 esac
1144
1145     cd $ac_dir
1146     # Check for guested configure; otherwise get Cygnus style configure.
1147     if test -f $ac_srcdir/configure.gnu; then
1148       echo
1149       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1150     elif test -f $ac_srcdir/configure; then
1151       echo
1152       $SHELL $ac_srcdir/configure  --help=recursive
1153     elif test -f $ac_srcdir/configure.ac ||
1154            test -f $ac_srcdir/configure.in; then
1155       echo
1156       $ac_configure --help
1157     else
1158       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159     fi
1160     cd $ac_popdir
1161   done
1162 fi
1163
1164 test -n "$ac_init_help" && exit 0
1165 if $ac_init_version; then
1166   cat <<\_ACEOF
1167 LLVM configure 1.4
1168 generated by GNU Autoconf 2.59
1169
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1173 _ACEOF
1174   exit 0
1175 fi
1176 exec 5>config.log
1177 cat >&5 <<_ACEOF
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1180
1181 It was created by LLVM $as_me 1.4, which was
1182 generated by GNU Autoconf 2.59.  Invocation command line was
1183
1184   $ $0 $@
1185
1186 _ACEOF
1187 {
1188 cat <<_ASUNAME
1189 ## --------- ##
1190 ## Platform. ##
1191 ## --------- ##
1192
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1201
1202 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1203 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1206 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1207 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1208 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1209
1210 _ASUNAME
1211
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 for as_dir in $PATH
1214 do
1215   IFS=$as_save_IFS
1216   test -z "$as_dir" && as_dir=.
1217   echo "PATH: $as_dir"
1218 done
1219
1220 } >&5
1221
1222 cat >&5 <<_ACEOF
1223
1224
1225 ## ----------- ##
1226 ## Core tests. ##
1227 ## ----------- ##
1228
1229 _ACEOF
1230
1231
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_configure_args=
1238 ac_configure_args0=
1239 ac_configure_args1=
1240 ac_sep=
1241 ac_must_keep_next=false
1242 for ac_pass in 1 2
1243 do
1244   for ac_arg
1245   do
1246     case $ac_arg in
1247     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249     | -silent | --silent | --silen | --sile | --sil)
1250       continue ;;
1251     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253     esac
1254     case $ac_pass in
1255     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256     2)
1257       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258       if test $ac_must_keep_next = true; then
1259         ac_must_keep_next=false # Got value, back to normal.
1260       else
1261         case $ac_arg in
1262           *=* | --config-cache | -C | -disable-* | --disable-* \
1263           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265           | -with-* | --with-* | -without-* | --without-* | --x)
1266             case "$ac_configure_args0 " in
1267               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268             esac
1269             ;;
1270           -* ) ac_must_keep_next=true ;;
1271         esac
1272       fi
1273       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274       # Get rid of the leading space.
1275       ac_sep=" "
1276       ;;
1277     esac
1278   done
1279 done
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log.  We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289   # Save into config.log some information that might help in debugging.
1290   {
1291     echo
1292
1293     cat <<\_ASBOX
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1297 _ASBOX
1298     echo
1299     # The following way of writing the cache mishandles newlines in values,
1300 {
1301   (set) 2>&1 |
1302     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303     *ac_space=\ *)
1304       sed -n \
1305         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307       ;;
1308     *)
1309       sed -n \
1310         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1311       ;;
1312     esac;
1313 }
1314     echo
1315
1316     cat <<\_ASBOX
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1320 _ASBOX
1321     echo
1322     for ac_var in $ac_subst_vars
1323     do
1324       eval ac_val=$`echo $ac_var`
1325       echo "$ac_var='"'"'$ac_val'"'"'"
1326     done | sort
1327     echo
1328
1329     if test -n "$ac_subst_files"; then
1330       cat <<\_ASBOX
1331 ## ------------- ##
1332 ## Output files. ##
1333 ## ------------- ##
1334 _ASBOX
1335       echo
1336       for ac_var in $ac_subst_files
1337       do
1338         eval ac_val=$`echo $ac_var`
1339         echo "$ac_var='"'"'$ac_val'"'"'"
1340       done | sort
1341       echo
1342     fi
1343
1344     if test -s confdefs.h; then
1345       cat <<\_ASBOX
1346 ## ----------- ##
1347 ## confdefs.h. ##
1348 ## ----------- ##
1349 _ASBOX
1350       echo
1351       sed "/^$/d" confdefs.h | sort
1352       echo
1353     fi
1354     test "$ac_signal" != 0 &&
1355       echo "$as_me: caught signal $ac_signal"
1356     echo "$as_me: exit $exit_status"
1357   } >&5
1358   rm -f core *.core &&
1359   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360     exit $exit_status
1361      ' 0
1362 for ac_signal in 1 2 13 15; do
1363   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 done
1365 ac_signal=0
1366
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 echo >confdefs.h
1371
1372 # Predefined preprocessor variables.
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 _ACEOF
1397
1398
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402   if test "x$prefix" != xNONE; then
1403     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404   else
1405     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406   fi
1407 fi
1408 for ac_site_file in $CONFIG_SITE; do
1409   if test -r "$ac_site_file"; then
1410     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412     sed 's/^/| /' "$ac_site_file" >&5
1413     . "$ac_site_file"
1414   fi
1415 done
1416
1417 if test -r "$cache_file"; then
1418   # Some versions of bash will fail to source /dev/null (special
1419   # files actually), so we avoid doing that.
1420   if test -f "$cache_file"; then
1421     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1423     case $cache_file in
1424       [\\/]* | ?:[\\/]* ) . $cache_file;;
1425       *)                      . ./$cache_file;;
1426     esac
1427   fi
1428 else
1429   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1431   >$cache_file
1432 fi
1433
1434 # Check that the precious variables saved in the cache have kept the same
1435 # value.
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440   eval ac_new_set=\$ac_env_${ac_var}_set
1441   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442   eval ac_new_val="\$ac_env_${ac_var}_value"
1443   case $ac_old_set,$ac_new_set in
1444     set,)
1445       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447       ac_cache_corrupted=: ;;
1448     ,set)
1449       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451       ac_cache_corrupted=: ;;
1452     ,);;
1453     *)
1454       if test "x$ac_old_val" != "x$ac_new_val"; then
1455         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1458 echo "$as_me:   former value:  $ac_old_val" >&2;}
1459         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1460 echo "$as_me:   current value: $ac_new_val" >&2;}
1461         ac_cache_corrupted=:
1462       fi;;
1463   esac
1464   # Pass precious variables to config.status.
1465   if test "$ac_new_set" = set; then
1466     case $ac_new_val in
1467     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469     *) ac_arg=$ac_var=$ac_new_val ;;
1470     esac
1471     case " $ac_configure_args " in
1472       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1473       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474     esac
1475   fi
1476 done
1477 if $ac_cache_corrupted; then
1478   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482    { (exit 1); exit 1; }; }
1483 fi
1484
1485 ac_ext=c
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518 ac_aux_dir=
1519 for ac_dir in autoconf $srcdir/autoconf; do
1520   if test -f $ac_dir/install-sh; then
1521     ac_aux_dir=$ac_dir
1522     ac_install_sh="$ac_aux_dir/install-sh -c"
1523     break
1524   elif test -f $ac_dir/install.sh; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/install.sh -c"
1527     break
1528   elif test -f $ac_dir/shtool; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/shtool install -c"
1531     break
1532   fi
1533 done
1534 if test -z "$ac_aux_dir"; then
1535   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
1543
1544
1545 if test ${srcdir} != "." ; then
1546         if test -f ${srcdir}/include/llvm/Config/config.h ; then
1547                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1548 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1549    { (exit 1); exit 1; }; }
1550         fi
1551 fi
1552
1553 for i in `ls ${srcdir}/projects`
1554 do
1555   if test -d ${srcdir}/projects/${i} ; then
1556     case ${i} in
1557       "CVS") ;;
1558       "sample")
1559
1560 subdirs="$subdirs projects/sample"
1561     ;;
1562       "Stacker")
1563
1564 subdirs="$subdirs projects/Stacker"
1565    ;;
1566       "llvm-test")
1567
1568 subdirs="$subdirs projects/llvm-test"
1569  ;;
1570       "llvm-reopt")
1571
1572 subdirs="$subdirs projects/llvm-reopt"
1573 ;;
1574       "llvm-gcc")
1575
1576 subdirs="$subdirs projects/llvm-gcc"
1577   ;;
1578       "Java")
1579
1580 subdirs="$subdirs projects/Java"
1581       ;;
1582       "llvm-tv")
1583
1584 subdirs="$subdirs projects/llvm-tv"
1585    ;;
1586       "llvm-fefw")
1587
1588 subdirs="$subdirs projects/llvm-fefw"
1589  ;;
1590       *)
1591         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1592 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1593         ;;
1594     esac
1595   fi
1596 done
1597
1598           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1599
1600
1601           ac_config_files="$ac_config_files Makefile.config"
1602
1603           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1604
1605           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1606
1607           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1608
1609           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
1610
1611           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
1612
1613
1614           ac_config_commands="$ac_config_commands Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands Makefile.common"
1618
1619
1620           ac_config_commands="$ac_config_commands examples/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands lib/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands runtime/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands test/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands test/Makefile.tests"
1633
1634
1635           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1636
1637
1638           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1639
1640
1641           ac_config_commands="$ac_config_commands tools/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands tools/Makefile.JIT"
1645
1646
1647           ac_config_commands="$ac_config_commands utils/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands projects/Makefile"
1651
1652
1653
1654 # Find a good install program.  We prefer a C program (faster),
1655 # so one script is as good as another.  But avoid the broken or
1656 # incompatible versions:
1657 # SysV /etc/install, /usr/sbin/install
1658 # SunOS /usr/etc/install
1659 # IRIX /sbin/install
1660 # AIX /bin/install
1661 # AmigaOS /C/install, which installs bootblocks on floppy discs
1662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1665 # OS/2's system install, which has a completely different semantic
1666 # ./install, which can be erroneously created by make from ./install.sh.
1667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1669 if test -z "$INSTALL"; then
1670 if test "${ac_cv_path_install+set}" = set; then
1671   echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   # Account for people who put trailing slashes in PATH elements.
1679 case $as_dir/ in
1680   ./ | .// | /cC/* | \
1681   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1682   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1683   /usr/ucb/* ) ;;
1684   *)
1685     # OSF1 and SCO ODT 3.0 have their own names for install.
1686     # Don't use installbsd from OSF since it installs stuff as root
1687     # by default.
1688     for ac_prog in ginstall scoinst install; do
1689       for ac_exec_ext in '' $ac_executable_extensions; do
1690         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1691           if test $ac_prog = install &&
1692             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1693             # AIX install.  It has an incompatible calling convention.
1694             :
1695           elif test $ac_prog = install &&
1696             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1697             # program-specific install script used by HP pwplus--don't use.
1698             :
1699           else
1700             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1701             break 3
1702           fi
1703         fi
1704       done
1705     done
1706     ;;
1707 esac
1708 done
1709
1710
1711 fi
1712   if test "${ac_cv_path_install+set}" = set; then
1713     INSTALL=$ac_cv_path_install
1714   else
1715     # As a last resort, use the slow shell script.  We don't cache a
1716     # path for INSTALL within a source directory, because that will
1717     # break other packages using the cache if that directory is
1718     # removed, or if the path is relative.
1719     INSTALL=$ac_install_sh
1720   fi
1721 fi
1722 echo "$as_me:$LINENO: result: $INSTALL" >&5
1723 echo "${ECHO_T}$INSTALL" >&6
1724
1725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1726 # It thinks the first close brace ends the variable substitution.
1727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1728
1729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1730
1731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1732
1733
1734 # Make sure we can run config.sub.
1735 $ac_config_sub sun4 >/dev/null 2>&1 ||
1736   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1737 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1738    { (exit 1); exit 1; }; }
1739
1740 echo "$as_me:$LINENO: checking build system type" >&5
1741 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1742 if test "${ac_cv_build+set}" = set; then
1743   echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745   ac_cv_build_alias=$build_alias
1746 test -z "$ac_cv_build_alias" &&
1747   ac_cv_build_alias=`$ac_config_guess`
1748 test -z "$ac_cv_build_alias" &&
1749   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1750 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1751    { (exit 1); exit 1; }; }
1752 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1753   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1754 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1755    { (exit 1); exit 1; }; }
1756
1757 fi
1758 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1759 echo "${ECHO_T}$ac_cv_build" >&6
1760 build=$ac_cv_build
1761 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1762 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1763 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1764
1765
1766 echo "$as_me:$LINENO: checking host system type" >&5
1767 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1768 if test "${ac_cv_host+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   ac_cv_host_alias=$host_alias
1772 test -z "$ac_cv_host_alias" &&
1773   ac_cv_host_alias=$ac_cv_build_alias
1774 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1775   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1776 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1777    { (exit 1); exit 1; }; }
1778
1779 fi
1780 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1781 echo "${ECHO_T}$ac_cv_host" >&6
1782 host=$ac_cv_host
1783 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1784 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1785 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1786
1787
1788 echo "$as_me:$LINENO: checking target system type" >&5
1789 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1790 if test "${ac_cv_target+set}" = set; then
1791   echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793   ac_cv_target_alias=$target_alias
1794 test "x$ac_cv_target_alias" = "x" &&
1795   ac_cv_target_alias=$ac_cv_host_alias
1796 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1797   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1798 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1799    { (exit 1); exit 1; }; }
1800
1801 fi
1802 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1803 echo "${ECHO_T}$ac_cv_target" >&6
1804 target=$ac_cv_target
1805 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1806 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1807 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1808
1809
1810 # The aliases save the names the user supplied, while $host etc.
1811 # will get canonicalized.
1812 test -n "$target_alias" &&
1813   test "$program_prefix$program_suffix$program_transform_name" = \
1814     NONENONEs,x,x, &&
1815   program_prefix=${target_alias}-
1816
1817
1818 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1819 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1820 case $build in
1821         *-*-aix*)
1822              OS=AIX
1823
1824              platform_type="AIX"
1825              ;;
1826         *-*-cygwin*)
1827              OS=Cygwin
1828
1829              platform_type="Cygwin"
1830              ;;
1831         *-*-darwin*)
1832              OS=Darwin
1833
1834              platform_type="Darwin"
1835              ;;
1836         *-*-freebsd*)
1837              OS=Linux
1838
1839              platform_type="FreeBSD"
1840              ;;
1841         *-*-interix*)
1842              OS=SunOS
1843
1844              platform_type="Interix"
1845              ;;
1846         *-*-linux*)
1847              OS=Linux
1848
1849              platform_type="Linux"
1850              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1851              then
1852                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1853
1854              fi
1855              ;;
1856         *-*-solaris*)
1857              OS=SunOS
1858
1859              platform_type="SunOS"
1860              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1861              then
1862                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1863
1864              fi
1865              ;;
1866         *-*-win32*)
1867              OS=Win32
1868
1869              platform_type="Win32"
1870              ;;
1871         *-*-mingw*)
1872              OS=Win32
1873
1874              platform_type="Win32"
1875              ;;
1876         *)
1877              OS=Unknown
1878
1879              platform_type="Unknown"
1880              ;;
1881 esac
1882
1883 if test "$platform_type" = "Unknown" ; then
1884   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1885 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1886    { (exit 1); exit 1; }; }
1887 fi
1888
1889           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1890
1891
1892
1893 echo "$as_me:$LINENO: checking target architecture" >&5
1894 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1895 case $target in
1896         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1897
1898                             ;;
1899 esac
1900
1901 case $target in
1902         i*86-*)
1903           ARCH="x86"
1904           ARCH=x86
1905
1906           ;;
1907         sparc*-*)
1908           ARCH="Sparc"
1909           ARCH=Sparc
1910
1911           ;;
1912         powerpc*-*)
1913           ARCH="PowerPC"
1914           ARCH=PowerPC
1915
1916           ;;
1917         *)
1918           ARCH="Unknown"
1919           ARCH=Unknown
1920
1921           ;;
1922 esac
1923
1924 echo "$as_me:$LINENO: result: $ARCH" >&5
1925 echo "${ECHO_T}$ARCH" >&6
1926
1927 ac_ext=cc
1928 ac_cpp='$CXXCPP $CPPFLAGS'
1929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1932 if test -n "$ac_tool_prefix"; then
1933   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1934   do
1935     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_CXX+set}" = set; then
1940   echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942   if test -n "$CXX"; then
1943   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1944 else
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948   IFS=$as_save_IFS
1949   test -z "$as_dir" && as_dir=.
1950   for ac_exec_ext in '' $ac_executable_extensions; do
1951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954     break 2
1955   fi
1956 done
1957 done
1958
1959 fi
1960 fi
1961 CXX=$ac_cv_prog_CXX
1962 if test -n "$CXX"; then
1963   echo "$as_me:$LINENO: result: $CXX" >&5
1964 echo "${ECHO_T}$CXX" >&6
1965 else
1966   echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1968 fi
1969
1970     test -n "$CXX" && break
1971   done
1972 fi
1973 if test -z "$CXX"; then
1974   ac_ct_CXX=$CXX
1975   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1976 do
1977   # Extract the first word of "$ac_prog", so it can be a program name with args.
1978 set dummy $ac_prog; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1982   echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984   if test -n "$ac_ct_CXX"; then
1985   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990   IFS=$as_save_IFS
1991   test -z "$as_dir" && as_dir=.
1992   for ac_exec_ext in '' $ac_executable_extensions; do
1993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994     ac_cv_prog_ac_ct_CXX="$ac_prog"
1995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996     break 2
1997   fi
1998 done
1999 done
2000
2001 fi
2002 fi
2003 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2004 if test -n "$ac_ct_CXX"; then
2005   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2006 echo "${ECHO_T}$ac_ct_CXX" >&6
2007 else
2008   echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2010 fi
2011
2012   test -n "$ac_ct_CXX" && break
2013 done
2014 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2015
2016   CXX=$ac_ct_CXX
2017 fi
2018
2019
2020 # Provide some information about the compiler.
2021 echo "$as_me:$LINENO:" \
2022      "checking for C++ compiler version" >&5
2023 ac_compiler=`set X $ac_compile; echo $2`
2024 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2025   (eval $ac_compiler --version </dev/null >&5) 2>&5
2026   ac_status=$?
2027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028   (exit $ac_status); }
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2030   (eval $ac_compiler -v </dev/null >&5) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2035   (eval $ac_compiler -V </dev/null >&5) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }
2039
2040 cat >conftest.$ac_ext <<_ACEOF
2041 /* confdefs.h.  */
2042 _ACEOF
2043 cat confdefs.h >>conftest.$ac_ext
2044 cat >>conftest.$ac_ext <<_ACEOF
2045 /* end confdefs.h.  */
2046
2047 int
2048 main ()
2049 {
2050
2051   ;
2052   return 0;
2053 }
2054 _ACEOF
2055 ac_clean_files_save=$ac_clean_files
2056 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2057 # Try to create an executable without -o first, disregard a.out.
2058 # It will help us diagnose broken compilers, and finding out an intuition
2059 # of exeext.
2060 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2061 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2062 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2063 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2064   (eval $ac_link_default) 2>&5
2065   ac_status=$?
2066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067   (exit $ac_status); }; then
2068   # Find the output, starting from the most likely.  This scheme is
2069 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2070 # resort.
2071
2072 # Be careful to initialize this variable, since it used to be cached.
2073 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2074 ac_cv_exeext=
2075 # b.out is created by i960 compilers.
2076 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2077 do
2078   test -f "$ac_file" || continue
2079   case $ac_file in
2080     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2081         ;;
2082     conftest.$ac_ext )
2083         # This is the source file.
2084         ;;
2085     [ab].out )
2086         # We found the default executable, but exeext='' is most
2087         # certainly right.
2088         break;;
2089     *.* )
2090         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2091         # FIXME: I believe we export ac_cv_exeext for Libtool,
2092         # but it would be cool to find out if it's true.  Does anybody
2093         # maintain Libtool? --akim.
2094         export ac_cv_exeext
2095         break;;
2096     * )
2097         break;;
2098   esac
2099 done
2100 else
2101   echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2103
2104 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: C++ compiler cannot create executables
2107 See \`config.log' for more details." >&2;}
2108    { (exit 77); exit 77; }; }
2109 fi
2110
2111 ac_exeext=$ac_cv_exeext
2112 echo "$as_me:$LINENO: result: $ac_file" >&5
2113 echo "${ECHO_T}$ac_file" >&6
2114
2115 # Check the compiler produces executables we can run.  If not, either
2116 # the compiler is broken, or we cross compile.
2117 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2118 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2119 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2120 # If not cross compiling, check that we can run a simple program.
2121 if test "$cross_compiling" != yes; then
2122   if { ac_try='./$ac_file'
2123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2124   (eval $ac_try) 2>&5
2125   ac_status=$?
2126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127   (exit $ac_status); }; }; then
2128     cross_compiling=no
2129   else
2130     if test "$cross_compiling" = maybe; then
2131         cross_compiling=yes
2132     else
2133         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2134 If you meant to cross compile, use \`--host'.
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot run C++ compiled programs.
2137 If you meant to cross compile, use \`--host'.
2138 See \`config.log' for more details." >&2;}
2139    { (exit 1); exit 1; }; }
2140     fi
2141   fi
2142 fi
2143 echo "$as_me:$LINENO: result: yes" >&5
2144 echo "${ECHO_T}yes" >&6
2145
2146 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2147 ac_clean_files=$ac_clean_files_save
2148 # Check the compiler produces executables we can run.  If not, either
2149 # the compiler is broken, or we cross compile.
2150 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2151 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2152 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2153 echo "${ECHO_T}$cross_compiling" >&6
2154
2155 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2156 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2158   (eval $ac_link) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; then
2162   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2163 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2164 # work properly (i.e., refer to `conftest.exe'), while it won't with
2165 # `rm'.
2166 for ac_file in conftest.exe conftest conftest.*; do
2167   test -f "$ac_file" || continue
2168   case $ac_file in
2169     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2170     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171           export ac_cv_exeext
2172           break;;
2173     * ) break;;
2174   esac
2175 done
2176 else
2177   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2178 See \`config.log' for more details." >&5
2179 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2180 See \`config.log' for more details." >&2;}
2181    { (exit 1); exit 1; }; }
2182 fi
2183
2184 rm -f conftest$ac_cv_exeext
2185 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2186 echo "${ECHO_T}$ac_cv_exeext" >&6
2187
2188 rm -f conftest.$ac_ext
2189 EXEEXT=$ac_cv_exeext
2190 ac_exeext=$EXEEXT
2191 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2192 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2193 if test "${ac_cv_objext+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   cat >conftest.$ac_ext <<_ACEOF
2197 /* confdefs.h.  */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h.  */
2202
2203 int
2204 main ()
2205 {
2206
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 rm -f conftest.o conftest.obj
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213   (eval $ac_compile) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; then
2217   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2218   case $ac_file in
2219     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2220     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2221        break;;
2222   esac
2223 done
2224 else
2225   echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227
2228 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2231 See \`config.log' for more details." >&2;}
2232    { (exit 1); exit 1; }; }
2233 fi
2234
2235 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2236 fi
2237 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2238 echo "${ECHO_T}$ac_cv_objext" >&6
2239 OBJEXT=$ac_cv_objext
2240 ac_objext=$OBJEXT
2241 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2242 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2243 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2244   echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246   cat >conftest.$ac_ext <<_ACEOF
2247 /* confdefs.h.  */
2248 _ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h.  */
2252
2253 int
2254 main ()
2255 {
2256 #ifndef __GNUC__
2257        choke me
2258 #endif
2259
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266   (eval $ac_compile) 2>conftest.er1
2267   ac_status=$?
2268   grep -v '^ *+' conftest.er1 >conftest.err
2269   rm -f conftest.er1
2270   cat conftest.err >&5
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); } &&
2273          { ac_try='test -z "$ac_cxx_werror_flag"
2274                          || test ! -s conftest.err'
2275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276   (eval $ac_try) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; } &&
2280          { ac_try='test -s conftest.$ac_objext'
2281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282   (eval $ac_try) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }; }; then
2286   ac_compiler_gnu=yes
2287 else
2288   echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 ac_compiler_gnu=no
2292 fi
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2295
2296 fi
2297 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2298 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2299 GXX=`test $ac_compiler_gnu = yes && echo yes`
2300 ac_test_CXXFLAGS=${CXXFLAGS+set}
2301 ac_save_CXXFLAGS=$CXXFLAGS
2302 CXXFLAGS="-g"
2303 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2304 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2305 if test "${ac_cv_prog_cxx_g+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h.  */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h.  */
2314
2315 int
2316 main ()
2317 {
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325   (eval $ac_compile) 2>conftest.er1
2326   ac_status=$?
2327   grep -v '^ *+' conftest.er1 >conftest.err
2328   rm -f conftest.er1
2329   cat conftest.err >&5
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); } &&
2332          { ac_try='test -z "$ac_cxx_werror_flag"
2333                          || test ! -s conftest.err'
2334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335   (eval $ac_try) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; } &&
2339          { ac_try='test -s conftest.$ac_objext'
2340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341   (eval $ac_try) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; }; then
2345   ac_cv_prog_cxx_g=yes
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 ac_cv_prog_cxx_g=no
2351 fi
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353 fi
2354 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2355 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2356 if test "$ac_test_CXXFLAGS" = set; then
2357   CXXFLAGS=$ac_save_CXXFLAGS
2358 elif test $ac_cv_prog_cxx_g = yes; then
2359   if test "$GXX" = yes; then
2360     CXXFLAGS="-g -O2"
2361   else
2362     CXXFLAGS="-g"
2363   fi
2364 else
2365   if test "$GXX" = yes; then
2366     CXXFLAGS="-O2"
2367   else
2368     CXXFLAGS=
2369   fi
2370 fi
2371 for ac_declaration in \
2372    '' \
2373    'extern "C" void std::exit (int) throw (); using std::exit;' \
2374    'extern "C" void std::exit (int); using std::exit;' \
2375    'extern "C" void exit (int) throw ();' \
2376    'extern "C" void exit (int);' \
2377    'void exit (int);'
2378 do
2379   cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h.  */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h.  */
2385 $ac_declaration
2386 #include <stdlib.h>
2387 int
2388 main ()
2389 {
2390 exit (42);
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397   (eval $ac_compile) 2>conftest.er1
2398   ac_status=$?
2399   grep -v '^ *+' conftest.er1 >conftest.err
2400   rm -f conftest.er1
2401   cat conftest.err >&5
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); } &&
2404          { ac_try='test -z "$ac_cxx_werror_flag"
2405                          || test ! -s conftest.err'
2406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; } &&
2411          { ac_try='test -s conftest.$ac_objext'
2412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413   (eval $ac_try) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; }; then
2417   :
2418 else
2419   echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 continue
2423 fi
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425   cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h.  */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h.  */
2431 $ac_declaration
2432 int
2433 main ()
2434 {
2435 exit (42);
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442   (eval $ac_compile) 2>conftest.er1
2443   ac_status=$?
2444   grep -v '^ *+' conftest.er1 >conftest.err
2445   rm -f conftest.er1
2446   cat conftest.err >&5
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); } &&
2449          { ac_try='test -z "$ac_cxx_werror_flag"
2450                          || test ! -s conftest.err'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; } &&
2456          { ac_try='test -s conftest.$ac_objext'
2457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458   (eval $ac_try) 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }; }; then
2462   break
2463 else
2464   echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 fi
2468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469 done
2470 rm -f conftest*
2471 if test -n "$ac_declaration"; then
2472   echo '#ifdef __cplusplus' >>confdefs.h
2473   echo $ac_declaration      >>confdefs.h
2474   echo '#endif'             >>confdefs.h
2475 fi
2476
2477 ac_ext=c
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488 if test -n "$ac_tool_prefix"; then
2489   for ac_prog in gcc
2490   do
2491     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2493 echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   if test -n "$CC"; then
2499   ac_cv_prog_CC="$CC" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506   for ac_exec_ext in '' $ac_executable_extensions; do
2507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510     break 2
2511   fi
2512 done
2513 done
2514
2515 fi
2516 fi
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519   echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6
2521 else
2522   echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6
2524 fi
2525
2526     test -n "$CC" && break
2527   done
2528 fi
2529 if test -z "$CC"; then
2530   ac_ct_CC=$CC
2531   for ac_prog in gcc
2532 do
2533   # Extract the first word of "$ac_prog", so it can be a program name with args.
2534 set dummy $ac_prog; ac_word=$2
2535 echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   if test -n "$ac_ct_CC"; then
2541   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550     ac_cv_prog_ac_ct_CC="$ac_prog"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556
2557 fi
2558 fi
2559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2560 if test -n "$ac_ct_CC"; then
2561   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2562 echo "${ECHO_T}$ac_ct_CC" >&6
2563 else
2564   echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6
2566 fi
2567
2568   test -n "$ac_ct_CC" && break
2569 done
2570
2571   CC=$ac_ct_CC
2572 fi
2573
2574
2575 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: no acceptable C compiler found in \$PATH
2578 See \`config.log' for more details." >&2;}
2579    { (exit 1); exit 1; }; }
2580
2581 # Provide some information about the compiler.
2582 echo "$as_me:$LINENO:" \
2583      "checking for C compiler version" >&5
2584 ac_compiler=`set X $ac_compile; echo $2`
2585 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2586   (eval $ac_compiler --version </dev/null >&5) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }
2590 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2591   (eval $ac_compiler -v </dev/null >&5) 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }
2595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2596   (eval $ac_compiler -V </dev/null >&5) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }
2600
2601 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2602 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2603 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h.  */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h.  */
2612
2613 int
2614 main ()
2615 {
2616 #ifndef __GNUC__
2617        choke me
2618 #endif
2619
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -z "$ac_c_werror_flag"
2634                          || test ! -s conftest.err'
2635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636   (eval $ac_try) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; } &&
2640          { ac_try='test -s conftest.$ac_objext'
2641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642   (eval $ac_try) 2>&5
2643   ac_status=$?
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); }; }; then
2646   ac_compiler_gnu=yes
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 ac_compiler_gnu=no
2652 fi
2653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2655
2656 fi
2657 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2659 GCC=`test $ac_compiler_gnu = yes && echo yes`
2660 ac_test_CFLAGS=${CFLAGS+set}
2661 ac_save_CFLAGS=$CFLAGS
2662 CFLAGS="-g"
2663 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2664 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2665 if test "${ac_cv_prog_cc_g+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674
2675 int
2676 main ()
2677 {
2678
2679   ;
2680   return 0;
2681 }
2682 _ACEOF
2683 rm -f conftest.$ac_objext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685   (eval $ac_compile) 2>conftest.er1
2686   ac_status=$?
2687   grep -v '^ *+' conftest.er1 >conftest.err
2688   rm -f conftest.er1
2689   cat conftest.err >&5
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); } &&
2692          { ac_try='test -z "$ac_c_werror_flag"
2693                          || test ! -s conftest.err'
2694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695   (eval $ac_try) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }; } &&
2699          { ac_try='test -s conftest.$ac_objext'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; }; then
2705   ac_cv_prog_cc_g=yes
2706 else
2707   echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 ac_cv_prog_cc_g=no
2711 fi
2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713 fi
2714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2716 if test "$ac_test_CFLAGS" = set; then
2717   CFLAGS=$ac_save_CFLAGS
2718 elif test $ac_cv_prog_cc_g = yes; then
2719   if test "$GCC" = yes; then
2720     CFLAGS="-g -O2"
2721   else
2722     CFLAGS="-g"
2723   fi
2724 else
2725   if test "$GCC" = yes; then
2726     CFLAGS="-O2"
2727   else
2728     CFLAGS=
2729   fi
2730 fi
2731 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2732 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2733 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2734   echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736   ac_cv_prog_cc_stdc=no
2737 ac_save_CC=$CC
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744 #include <stdarg.h>
2745 #include <stdio.h>
2746 #include <sys/types.h>
2747 #include <sys/stat.h>
2748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2749 struct buf { int x; };
2750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2751 static char *e (p, i)
2752      char **p;
2753      int i;
2754 {
2755   return p[i];
2756 }
2757 static char *f (char * (*g) (char **, int), char **p, ...)
2758 {
2759   char *s;
2760   va_list v;
2761   va_start (v,p);
2762   s = g (p, va_arg (v,int));
2763   va_end (v);
2764   return s;
2765 }
2766
2767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2768    function prototypes and stuff, but not '\xHH' hex character constants.
2769    These don't provoke an error unfortunately, instead are silently treated
2770    as 'x'.  The following induces an error, until -std1 is added to get
2771    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2772    array size at least.  It's necessary to write '\x00'==0 to get something
2773    that's true only with -std1.  */
2774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2775
2776 int test (int i, double x);
2777 struct s1 {int (*f) (int a);};
2778 struct s2 {int (*f) (double a);};
2779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2780 int argc;
2781 char **argv;
2782 int
2783 main ()
2784 {
2785 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2786   ;
2787   return 0;
2788 }
2789 _ACEOF
2790 # Don't try gcc -ansi; that turns off useful extensions and
2791 # breaks some systems' header files.
2792 # AIX                   -qlanglvl=ansi
2793 # Ultrix and OSF/1      -std1
2794 # HP-UX 10.20 and later -Ae
2795 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2796 # SVR4                  -Xc -D__EXTENSIONS__
2797 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2798 do
2799   CC="$ac_save_CC $ac_arg"
2800   rm -f conftest.$ac_objext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802   (eval $ac_compile) 2>conftest.er1
2803   ac_status=$?
2804   grep -v '^ *+' conftest.er1 >conftest.err
2805   rm -f conftest.er1
2806   cat conftest.err >&5
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); } &&
2809          { ac_try='test -z "$ac_c_werror_flag"
2810                          || test ! -s conftest.err'
2811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812   (eval $ac_try) 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; } &&
2816          { ac_try='test -s conftest.$ac_objext'
2817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818   (eval $ac_try) 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); }; }; then
2822   ac_cv_prog_cc_stdc=$ac_arg
2823 break
2824 else
2825   echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2827
2828 fi
2829 rm -f conftest.err conftest.$ac_objext
2830 done
2831 rm -f conftest.$ac_ext conftest.$ac_objext
2832 CC=$ac_save_CC
2833
2834 fi
2835
2836 case "x$ac_cv_prog_cc_stdc" in
2837   x|xno)
2838     echo "$as_me:$LINENO: result: none needed" >&5
2839 echo "${ECHO_T}none needed" >&6 ;;
2840   *)
2841     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2843     CC="$CC $ac_cv_prog_cc_stdc" ;;
2844 esac
2845
2846 # Some people use a C++ compiler to compile C.  Since we use `exit',
2847 # in C++ we need to declare it.  In case someone uses the same compiler
2848 # for both compiling C and C++ we need to have the C++ compiler decide
2849 # the declaration of exit, since it's the most demanding environment.
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #ifndef __cplusplus
2852   choke me
2853 #endif
2854 _ACEOF
2855 rm -f conftest.$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857   (eval $ac_compile) 2>conftest.er1
2858   ac_status=$?
2859   grep -v '^ *+' conftest.er1 >conftest.err
2860   rm -f conftest.er1
2861   cat conftest.err >&5
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); } &&
2864          { ac_try='test -z "$ac_c_werror_flag"
2865                          || test ! -s conftest.err'
2866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867   (eval $ac_try) 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }; } &&
2871          { ac_try='test -s conftest.$ac_objext'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; }; then
2877   for ac_declaration in \
2878    '' \
2879    'extern "C" void std::exit (int) throw (); using std::exit;' \
2880    'extern "C" void std::exit (int); using std::exit;' \
2881    'extern "C" void exit (int) throw ();' \
2882    'extern "C" void exit (int);' \
2883    'void exit (int);'
2884 do
2885   cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891 $ac_declaration
2892 #include <stdlib.h>
2893 int
2894 main ()
2895 {
2896 exit (42);
2897   ;
2898   return 0;
2899 }
2900 _ACEOF
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903   (eval $ac_compile) 2>conftest.er1
2904   ac_status=$?
2905   grep -v '^ *+' conftest.er1 >conftest.err
2906   rm -f conftest.er1
2907   cat conftest.err >&5
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } &&
2910          { ac_try='test -z "$ac_c_werror_flag"
2911                          || test ! -s conftest.err'
2912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; } &&
2917          { ac_try='test -s conftest.$ac_objext'
2918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919   (eval $ac_try) 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }; }; then
2923   :
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928 continue
2929 fi
2930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937 $ac_declaration
2938 int
2939 main ()
2940 {
2941 exit (42);
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948   (eval $ac_compile) 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } &&
2955          { ac_try='test -z "$ac_c_werror_flag"
2956                          || test ! -s conftest.err'
2957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958   (eval $ac_try) 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; } &&
2962          { ac_try='test -s conftest.$ac_objext'
2963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964   (eval $ac_try) 2>&5
2965   ac_status=$?
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); }; }; then
2968   break
2969 else
2970   echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2972
2973 fi
2974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2975 done
2976 rm -f conftest*
2977 if test -n "$ac_declaration"; then
2978   echo '#ifdef __cplusplus' >>confdefs.h
2979   echo $ac_declaration      >>confdefs.h
2980   echo '#endif'             >>confdefs.h
2981 fi
2982
2983 else
2984   echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 fi
2988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994
2995 if test "$GCC" != "yes"
2996 then
2997         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2998 echo "$as_me: error: gcc required but not found" >&2;}
2999    { (exit 1); exit 1; }; }
3000 fi
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3007 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3008 # On Suns, sometimes $CPP names a directory.
3009 if test -n "$CPP" && test -d "$CPP"; then
3010   CPP=
3011 fi
3012 if test -z "$CPP"; then
3013   if test "${ac_cv_prog_CPP+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016       # Double quotes because CPP needs to be expanded
3017     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3018     do
3019       ac_preproc_ok=false
3020 for ac_c_preproc_warn_flag in '' yes
3021 do
3022   # Use a header file that comes with gcc, so configuring glibc
3023   # with a fresh cross-compiler works.
3024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025   # <limits.h> exists even on freestanding compilers.
3026   # On the NeXT, cc -E runs the code through the compiler's parser,
3027   # not just through cpp. "Syntax error" is here to catch this case.
3028   cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034 #ifdef __STDC__
3035 # include <limits.h>
3036 #else
3037 # include <assert.h>
3038 #endif
3039                      Syntax error
3040 _ACEOF
3041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } >/dev/null; then
3049   if test -s conftest.err; then
3050     ac_cpp_err=$ac_c_preproc_warn_flag
3051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3052   else
3053     ac_cpp_err=
3054   fi
3055 else
3056   ac_cpp_err=yes
3057 fi
3058 if test -z "$ac_cpp_err"; then
3059   :
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064   # Broken: fails on valid input.
3065 continue
3066 fi
3067 rm -f conftest.err conftest.$ac_ext
3068
3069   # OK, works on sane cases.  Now check whether non-existent headers
3070   # can be detected and how.
3071   cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h.  */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h.  */
3077 #include <ac_nonexistent.h>
3078 _ACEOF
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3081   ac_status=$?
3082   grep -v '^ *+' conftest.er1 >conftest.err
3083   rm -f conftest.er1
3084   cat conftest.err >&5
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); } >/dev/null; then
3087   if test -s conftest.err; then
3088     ac_cpp_err=$ac_c_preproc_warn_flag
3089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3090   else
3091     ac_cpp_err=
3092   fi
3093 else
3094   ac_cpp_err=yes
3095 fi
3096 if test -z "$ac_cpp_err"; then
3097   # Broken: success on invalid input.
3098 continue
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103   # Passes both tests.
3104 ac_preproc_ok=:
3105 break
3106 fi
3107 rm -f conftest.err conftest.$ac_ext
3108
3109 done
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then
3113   break
3114 fi
3115
3116     done
3117     ac_cv_prog_CPP=$CPP
3118
3119 fi
3120   CPP=$ac_cv_prog_CPP
3121 else
3122   ac_cv_prog_CPP=$CPP
3123 fi
3124 echo "$as_me:$LINENO: result: $CPP" >&5
3125 echo "${ECHO_T}$CPP" >&6
3126 ac_preproc_ok=false
3127 for ac_c_preproc_warn_flag in '' yes
3128 do
3129   # Use a header file that comes with gcc, so configuring glibc
3130   # with a fresh cross-compiler works.
3131   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3132   # <limits.h> exists even on freestanding compilers.
3133   # On the NeXT, cc -E runs the code through the compiler's parser,
3134   # not just through cpp. "Syntax error" is here to catch this case.
3135   cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h.  */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h.  */
3141 #ifdef __STDC__
3142 # include <limits.h>
3143 #else
3144 # include <assert.h>
3145 #endif
3146                      Syntax error
3147 _ACEOF
3148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3150   ac_status=$?
3151   grep -v '^ *+' conftest.er1 >conftest.err
3152   rm -f conftest.er1
3153   cat conftest.err >&5
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); } >/dev/null; then
3156   if test -s conftest.err; then
3157     ac_cpp_err=$ac_c_preproc_warn_flag
3158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3159   else
3160     ac_cpp_err=
3161   fi
3162 else
3163   ac_cpp_err=yes
3164 fi
3165 if test -z "$ac_cpp_err"; then
3166   :
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171   # Broken: fails on valid input.
3172 continue
3173 fi
3174 rm -f conftest.err conftest.$ac_ext
3175
3176   # OK, works on sane cases.  Now check whether non-existent headers
3177   # can be detected and how.
3178   cat >conftest.$ac_ext <<_ACEOF
3179 /* confdefs.h.  */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h.  */
3184 #include <ac_nonexistent.h>
3185 _ACEOF
3186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3188   ac_status=$?
3189   grep -v '^ *+' conftest.er1 >conftest.err
3190   rm -f conftest.er1
3191   cat conftest.err >&5
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); } >/dev/null; then
3194   if test -s conftest.err; then
3195     ac_cpp_err=$ac_c_preproc_warn_flag
3196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3197   else
3198     ac_cpp_err=
3199   fi
3200 else
3201   ac_cpp_err=yes
3202 fi
3203 if test -z "$ac_cpp_err"; then
3204   # Broken: success on invalid input.
3205 continue
3206 else
3207   echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210   # Passes both tests.
3211 ac_preproc_ok=:
3212 break
3213 fi
3214 rm -f conftest.err conftest.$ac_ext
3215
3216 done
3217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3218 rm -f conftest.err conftest.$ac_ext
3219 if $ac_preproc_ok; then
3220   :
3221 else
3222   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3225 See \`config.log' for more details." >&2;}
3226    { (exit 1); exit 1; }; }
3227 fi
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234
3235 if test "$GXX" != "yes"
3236 then
3237         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3238 echo "$as_me: error: g++ required but not found" >&2;}
3239    { (exit 1); exit 1; }; }
3240 fi
3241
3242 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3243 if test "$gccmajor" -lt "3"
3244 then
3245         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3246 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3247    { (exit 1); exit 1; }; }
3248 fi
3249
3250  echo "$as_me:$LINENO: checking for GNU make" >&5
3251 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3252 if test "${_cv_gnu_make_command+set}" = set; then
3253   echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255   _cv_gnu_make_command='' ;
3256                 for a in "$MAKE" make gmake gnumake ; do
3257                         if test -z "$a" ; then continue ; fi ;
3258                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3259                                 _cv_gnu_make_command=$a ;
3260                                 break;
3261                         fi
3262                 done ;
3263
3264 fi
3265 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3266 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3267         if test  "x$_cv_gnu_make_command" != "x"  ; then
3268                 ifGNUmake='' ;
3269         else
3270                 ifGNUmake='#' ;
3271                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3272 echo "${ECHO_T}\"Not found\"" >&6;
3273         fi
3274
3275
3276 if test -z "$_cv_gnu_make_command"
3277 then
3278         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3279 echo "$as_me: error: GNU Make required but not found" >&2;}
3280    { (exit 1); exit 1; }; }
3281 fi
3282
3283
3284 echo "$as_me:$LINENO: checking " >&5
3285 echo $ECHO_N "checking ... $ECHO_C" >&6
3286 if test "${ac_cv_has_flex+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   for ac_prog in flex lex
3290 do
3291   # Extract the first word of "$ac_prog", so it can be a program name with args.
3292 set dummy $ac_prog; ac_word=$2
3293 echo "$as_me:$LINENO: checking for $ac_word" >&5
3294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3295 if test "${ac_cv_prog_LEX+set}" = set; then
3296   echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298   if test -n "$LEX"; then
3299   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306   for ac_exec_ext in '' $ac_executable_extensions; do
3307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308     ac_cv_prog_LEX="$ac_prog"
3309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310     break 2
3311   fi
3312 done
3313 done
3314
3315 fi
3316 fi
3317 LEX=$ac_cv_prog_LEX
3318 if test -n "$LEX"; then
3319   echo "$as_me:$LINENO: result: $LEX" >&5
3320 echo "${ECHO_T}$LEX" >&6
3321 else
3322   echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6
3324 fi
3325
3326   test -n "$LEX" && break
3327 done
3328 test -n "$LEX" || LEX=":"
3329
3330 if test -z "$LEXLIB"
3331 then
3332   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3333 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3334 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   ac_check_lib_save_LIBS=$LIBS
3338 LIBS="-lfl  $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error.  */
3347 #ifdef __cplusplus
3348 extern "C"
3349 #endif
3350 /* We use char because int might match the return type of a gcc2
3351    builtin and then its argument prototype would still apply.  */
3352 char yywrap ();
3353 int
3354 main ()
3355 {
3356 yywrap ();
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 rm -f conftest.$ac_objext conftest$ac_exeext
3362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3363   (eval $ac_link) 2>conftest.er1
3364   ac_status=$?
3365   grep -v '^ *+' conftest.er1 >conftest.err
3366   rm -f conftest.er1
3367   cat conftest.err >&5
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); } &&
3370          { ac_try='test -z "$ac_c_werror_flag"
3371                          || test ! -s conftest.err'
3372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373   (eval $ac_try) 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); }; } &&
3377          { ac_try='test -s conftest$ac_exeext'
3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; }; then
3383   ac_cv_lib_fl_yywrap=yes
3384 else
3385   echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 ac_cv_lib_fl_yywrap=no
3389 fi
3390 rm -f conftest.err conftest.$ac_objext \
3391       conftest$ac_exeext conftest.$ac_ext
3392 LIBS=$ac_check_lib_save_LIBS
3393 fi
3394 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3395 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3396 if test $ac_cv_lib_fl_yywrap = yes; then
3397   LEXLIB="-lfl"
3398 else
3399   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3400 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3401 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   ac_check_lib_save_LIBS=$LIBS
3405 LIBS="-ll  $LIBS"
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412
3413 /* Override any gcc2 internal prototype to avoid an error.  */
3414 #ifdef __cplusplus
3415 extern "C"
3416 #endif
3417 /* We use char because int might match the return type of a gcc2
3418    builtin and then its argument prototype would still apply.  */
3419 char yywrap ();
3420 int
3421 main ()
3422 {
3423 yywrap ();
3424   ;
3425   return 0;
3426 }
3427 _ACEOF
3428 rm -f conftest.$ac_objext conftest$ac_exeext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430   (eval $ac_link) 2>conftest.er1
3431   ac_status=$?
3432   grep -v '^ *+' conftest.er1 >conftest.err
3433   rm -f conftest.er1
3434   cat conftest.err >&5
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); } &&
3437          { ac_try='test -z "$ac_c_werror_flag"
3438                          || test ! -s conftest.err'
3439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440   (eval $ac_try) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); }; } &&
3444          { ac_try='test -s conftest$ac_exeext'
3445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446   (eval $ac_try) 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); }; }; then
3450   ac_cv_lib_l_yywrap=yes
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 ac_cv_lib_l_yywrap=no
3456 fi
3457 rm -f conftest.err conftest.$ac_objext \
3458       conftest$ac_exeext conftest.$ac_ext
3459 LIBS=$ac_check_lib_save_LIBS
3460 fi
3461 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3462 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3463 if test $ac_cv_lib_l_yywrap = yes; then
3464   LEXLIB="-ll"
3465 fi
3466
3467 fi
3468
3469 fi
3470
3471 if test "x$LEX" != "x:"; then
3472   echo "$as_me:$LINENO: checking lex output file root" >&5
3473 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3474 if test "${ac_cv_prog_lex_root+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   # The minimal lex program is just a single line: %%.  But some broken lexes
3478 # (Solaris, I think it was) want two %% lines, so accommodate them.
3479 cat >conftest.l <<_ACEOF
3480 %%
3481 %%
3482 _ACEOF
3483 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3484   (eval $LEX conftest.l) 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }
3488 if test -f lex.yy.c; then
3489   ac_cv_prog_lex_root=lex.yy
3490 elif test -f lexyy.c; then
3491   ac_cv_prog_lex_root=lexyy
3492 else
3493   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3494 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3495    { (exit 1); exit 1; }; }
3496 fi
3497 fi
3498 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3499 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3500 rm -f conftest.l
3501 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3502
3503 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3504 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3505 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3506   echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508   # POSIX says lex can declare yytext either as a pointer or an array; the
3509 # default is implementation-dependent. Figure out which it is, since
3510 # not all implementations provide the %pointer and %array declarations.
3511 ac_cv_prog_lex_yytext_pointer=no
3512 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3513 ac_save_LIBS=$LIBS
3514 LIBS="$LIBS $LEXLIB"
3515 cat >conftest.$ac_ext <<_ACEOF
3516 `cat $LEX_OUTPUT_ROOT.c`
3517 _ACEOF
3518 rm -f conftest.$ac_objext conftest$ac_exeext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3520   (eval $ac_link) 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } &&
3527          { ac_try='test -z "$ac_c_werror_flag"
3528                          || test ! -s conftest.err'
3529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530   (eval $ac_try) 2>&5
3531   ac_status=$?
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }; } &&
3534          { ac_try='test -s conftest$ac_exeext'
3535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536   (eval $ac_try) 2>&5
3537   ac_status=$?
3538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); }; }; then
3540   ac_cv_prog_lex_yytext_pointer=yes
3541 else
3542   echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 fi
3546 rm -f conftest.err conftest.$ac_objext \
3547       conftest$ac_exeext conftest.$ac_ext
3548 LIBS=$ac_save_LIBS
3549 rm -f "${LEX_OUTPUT_ROOT}.c"
3550
3551 fi
3552 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3553 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3554 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3555
3556 cat >>confdefs.h <<\_ACEOF
3557 #define YYTEXT_POINTER 1
3558 _ACEOF
3559
3560 fi
3561
3562 fi
3563
3564 fi
3565 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3566 echo "${ECHO_T}$ac_cv_has_flex" >&6
3567 if test "$LEX" != "flex"; then
3568   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3569 echo "$as_me: error: flex not found but required" >&2;}
3570    { (exit 1); exit 1; }; }
3571 else
3572   FLEX=flex
3573
3574 fi
3575
3576 echo "$as_me:$LINENO: checking " >&5
3577 echo $ECHO_N "checking ... $ECHO_C" >&6
3578 if test "${ac_cv_has_bison+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   for ac_prog in 'bison -y' byacc
3582 do
3583   # Extract the first word of "$ac_prog", so it can be a program name with args.
3584 set dummy $ac_prog; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_prog_YACC+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   if test -n "$YACC"; then
3591   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596   IFS=$as_save_IFS
3597   test -z "$as_dir" && as_dir=.
3598   for ac_exec_ext in '' $ac_executable_extensions; do
3599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600     ac_cv_prog_YACC="$ac_prog"
3601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602     break 2
3603   fi
3604 done
3605 done
3606
3607 fi
3608 fi
3609 YACC=$ac_cv_prog_YACC
3610 if test -n "$YACC"; then
3611   echo "$as_me:$LINENO: result: $YACC" >&5
3612 echo "${ECHO_T}$YACC" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618   test -n "$YACC" && break
3619 done
3620 test -n "$YACC" || YACC="yacc"
3621
3622
3623 fi
3624 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3625 echo "${ECHO_T}$ac_cv_has_bison" >&6
3626 if test "$YACC" != "bison -y"; then
3627   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3628 echo "$as_me: error: bison not found but required" >&2;}
3629    { (exit 1); exit 1; }; }
3630 else
3631   BISON=bison
3632
3633 fi
3634
3635 # Check whether --enable-shared or --disable-shared was given.
3636 if test "${enable_shared+set}" = set; then
3637   enableval="$enable_shared"
3638   p=${PACKAGE-default}
3639     case $enableval in
3640     yes) enable_shared=yes ;;
3641     no) enable_shared=no ;;
3642     *)
3643       enable_shared=no
3644       # Look at the argument we got.  We use all the common list separators.
3645       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3646       for pkg in $enableval; do
3647         IFS="$lt_save_ifs"
3648         if test "X$pkg" = "X$p"; then
3649           enable_shared=yes
3650         fi
3651       done
3652       IFS="$lt_save_ifs"
3653       ;;
3654     esac
3655 else
3656   enable_shared=yes
3657 fi;
3658
3659 # Check whether --enable-static or --disable-static was given.
3660 if test "${enable_static+set}" = set; then
3661   enableval="$enable_static"
3662   p=${PACKAGE-default}
3663     case $enableval in
3664     yes) enable_static=yes ;;
3665     no) enable_static=no ;;
3666     *)
3667      enable_static=no
3668       # Look at the argument we got.  We use all the common list separators.
3669       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3670       for pkg in $enableval; do
3671         IFS="$lt_save_ifs"
3672         if test "X$pkg" = "X$p"; then
3673           enable_static=yes
3674         fi
3675       done
3676       IFS="$lt_save_ifs"
3677       ;;
3678     esac
3679 else
3680   enable_static=yes
3681 fi;
3682
3683 # Check whether --enable-fast-install or --disable-fast-install was given.
3684 if test "${enable_fast_install+set}" = set; then
3685   enableval="$enable_fast_install"
3686   p=${PACKAGE-default}
3687     case $enableval in
3688     yes) enable_fast_install=yes ;;
3689     no) enable_fast_install=no ;;
3690     *)
3691       enable_fast_install=no
3692       # Look at the argument we got.  We use all the common list separators.
3693       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3694       for pkg in $enableval; do
3695         IFS="$lt_save_ifs"
3696         if test "X$pkg" = "X$p"; then
3697           enable_fast_install=yes
3698         fi
3699       done
3700       IFS="$lt_save_ifs"
3701       ;;
3702     esac
3703 else
3704   enable_fast_install=yes
3705 fi;
3706
3707 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3708 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3709 if test "${lt_cv_path_SED+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   # Loop through the user's path and test for sed and gsed.
3713 # Then use that list of sed's as ones to test for truncation.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717   IFS=$as_save_IFS
3718   test -z "$as_dir" && as_dir=.
3719   for lt_ac_prog in sed gsed; do
3720     for ac_exec_ext in '' $ac_executable_extensions; do
3721       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3722         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3723       fi
3724     done
3725   done
3726 done
3727 lt_ac_max=0
3728 lt_ac_count=0
3729 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3730 # along with /bin/sed that truncates output.
3731 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3732   test ! -f $lt_ac_sed && break
3733   cat /dev/null > conftest.in
3734   lt_ac_count=0
3735   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3736   # Check for GNU sed and select it if it is found.
3737   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3738     lt_cv_path_SED=$lt_ac_sed
3739     break
3740   fi
3741   while true; do
3742     cat conftest.in conftest.in >conftest.tmp
3743     mv conftest.tmp conftest.in
3744     cp conftest.in conftest.nl
3745     echo >>conftest.nl
3746     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3747     cmp -s conftest.out conftest.nl || break
3748     # 10000 chars as input seems more than enough
3749     test $lt_ac_count -gt 10 && break
3750     lt_ac_count=`expr $lt_ac_count + 1`
3751     if test $lt_ac_count -gt $lt_ac_max; then
3752       lt_ac_max=$lt_ac_count
3753       lt_cv_path_SED=$lt_ac_sed
3754     fi
3755   done
3756 done
3757
3758 fi
3759
3760 SED=$lt_cv_path_SED
3761 echo "$as_me:$LINENO: result: $SED" >&5
3762 echo "${ECHO_T}$SED" >&6
3763
3764 echo "$as_me:$LINENO: checking for egrep" >&5
3765 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3766 if test "${ac_cv_prog_egrep+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3770     then ac_cv_prog_egrep='grep -E'
3771     else ac_cv_prog_egrep='egrep'
3772     fi
3773 fi
3774 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3775 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3776  EGREP=$ac_cv_prog_egrep
3777
3778
3779
3780 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3781 if test "${with_gnu_ld+set}" = set; then
3782   withval="$with_gnu_ld"
3783   test "$withval" = no || with_gnu_ld=yes
3784 else
3785   with_gnu_ld=no
3786 fi;
3787 ac_prog=ld
3788 if test "$GCC" = yes; then
3789   # Check if gcc -print-prog-name=ld gives a path.
3790   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3791 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3792   case $host in
3793   *-*-mingw*)
3794     # gcc leaves a trailing carriage return which upsets mingw
3795     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3796   *)
3797     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3798   esac
3799   case $ac_prog in
3800     # Accept absolute paths.
3801     [\\/]* | ?:[\\/]*)
3802       re_direlt='/[^/][^/]*/\.\./'
3803       # Canonicalize the pathname of ld
3804       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3805       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3806         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3807       done
3808       test -z "$LD" && LD="$ac_prog"
3809       ;;
3810   "")
3811     # If it fails, then pretend we aren't using GCC.
3812     ac_prog=ld
3813     ;;
3814   *)
3815     # If it is relative, then search for the first ld in PATH.
3816     with_gnu_ld=unknown
3817     ;;
3818   esac
3819 elif test "$with_gnu_ld" = yes; then
3820   echo "$as_me:$LINENO: checking for GNU ld" >&5
3821 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3822 else
3823   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3824 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3825 fi
3826 if test "${lt_cv_path_LD+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   if test -z "$LD"; then
3830   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3831   for ac_dir in $PATH; do
3832     IFS="$lt_save_ifs"
3833     test -z "$ac_dir" && ac_dir=.
3834     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3835       lt_cv_path_LD="$ac_dir/$ac_prog"
3836       # Check to see if the program is GNU ld.  I'd rather use --version,
3837       # but apparently some GNU ld's only accept -v.
3838       # Break only if it was the GNU/non-GNU ld that we prefer.
3839       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3840       *GNU* | *'with BFD'*)
3841         test "$with_gnu_ld" != no && break
3842         ;;
3843       *)
3844         test "$with_gnu_ld" != yes && break
3845         ;;
3846       esac
3847     fi
3848   done
3849   IFS="$lt_save_ifs"
3850 else
3851   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3852 fi
3853 fi
3854
3855 LD="$lt_cv_path_LD"
3856 if test -n "$LD"; then
3857   echo "$as_me:$LINENO: result: $LD" >&5
3858 echo "${ECHO_T}$LD" >&6
3859 else
3860   echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6
3862 fi
3863 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3864 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3865    { (exit 1); exit 1; }; }
3866 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3867 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3868 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3872 case `$LD -v 2>&1 </dev/null` in
3873 *GNU* | *'with BFD'*)
3874   lt_cv_prog_gnu_ld=yes
3875   ;;
3876 *)
3877   lt_cv_prog_gnu_ld=no
3878   ;;
3879 esac
3880 fi
3881 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3882 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3883 with_gnu_ld=$lt_cv_prog_gnu_ld
3884
3885
3886 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3887 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3888 if test "${lt_cv_ld_reload_flag+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   lt_cv_ld_reload_flag='-r'
3892 fi
3893 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3894 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3895 reload_flag=$lt_cv_ld_reload_flag
3896 case $reload_flag in
3897 "" | " "*) ;;
3898 *) reload_flag=" $reload_flag" ;;
3899 esac
3900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3901 case $host_os in
3902   darwin*)
3903     if test "$GCC" = yes; then
3904       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3905     else
3906       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3907     fi
3908     ;;
3909 esac
3910
3911 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3912 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3913 if test "${lt_cv_path_NM+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   if test -n "$NM"; then
3917   # Let the user override the test.
3918   lt_cv_path_NM="$NM"
3919 else
3920   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3921   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3922     IFS="$lt_save_ifs"
3923     test -z "$ac_dir" && ac_dir=.
3924     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3925     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3926       # Check to see if the nm accepts a BSD-compat flag.
3927       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3928       #   nm: unknown option "B" ignored
3929       # Tru64's nm complains that /dev/null is an invalid object file
3930       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3931       */dev/null* | *'Invalid file or object type'*)
3932         lt_cv_path_NM="$tmp_nm -B"
3933         break
3934         ;;
3935       *)
3936         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3937         */dev/null*)
3938           lt_cv_path_NM="$tmp_nm -p"
3939           break
3940           ;;
3941         *)
3942           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3943           continue # so that we can try to find one that supports BSD flags
3944           ;;
3945         esac
3946       esac
3947     fi
3948   done
3949   IFS="$lt_save_ifs"
3950   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3951 fi
3952 fi
3953 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3954 echo "${ECHO_T}$lt_cv_path_NM" >&6
3955 NM="$lt_cv_path_NM"
3956
3957 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3958 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3959 LN_S=$as_ln_s
3960 if test "$LN_S" = "ln -s"; then
3961   echo "$as_me:$LINENO: result: yes" >&5
3962 echo "${ECHO_T}yes" >&6
3963 else
3964   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3965 echo "${ECHO_T}no, using $LN_S" >&6
3966 fi
3967
3968 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3969 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3970 if test "${lt_cv_deplibs_check_method+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   lt_cv_file_magic_cmd='$MAGIC_CMD'
3974 lt_cv_file_magic_test_file=
3975 lt_cv_deplibs_check_method='unknown'
3976 # Need to set the preceding variable on all platforms that support
3977 # interlibrary dependencies.
3978 # 'none' -- dependencies not supported.
3979 # `unknown' -- same as none, but documents that we really don't know.
3980 # 'pass_all' -- all dependencies passed with no checks.
3981 # 'test_compile' -- check by making test program.
3982 # 'file_magic [[regex]]' -- check by looking for files in library path
3983 # which responds to the $file_magic_cmd with a given extended regex.
3984 # If you have `file' or equivalent on your system and you're not sure
3985 # whether `pass_all' will *always* work, you probably want this one.
3986
3987 case $host_os in
3988 aix4* | aix5*)
3989   lt_cv_deplibs_check_method=pass_all
3990   ;;
3991
3992 beos*)
3993   lt_cv_deplibs_check_method=pass_all
3994   ;;
3995
3996 bsdi[45]*)
3997   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3998   lt_cv_file_magic_cmd='/usr/bin/file -L'
3999   lt_cv_file_magic_test_file=/shlib/libc.so
4000   ;;
4001
4002 cygwin*)
4003   # func_win32_libid is a shell function defined in ltmain.sh
4004   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4005   lt_cv_file_magic_cmd='func_win32_libid'
4006   ;;
4007
4008 mingw* | pw32*)
4009   # Base MSYS/MinGW do not provide the 'file' command needed by
4010   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4011   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4012   lt_cv_file_magic_cmd='$OBJDUMP -f'
4013   ;;
4014
4015 darwin* | rhapsody*)
4016   lt_cv_deplibs_check_method=pass_all
4017   ;;
4018
4019 freebsd* | kfreebsd*-gnu)
4020   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4021     case $host_cpu in
4022     i*86 )
4023       # Not sure whether the presence of OpenBSD here was a mistake.
4024       # Let's accept both of them until this is cleared up.
4025       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4026       lt_cv_file_magic_cmd=/usr/bin/file
4027       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4028       ;;
4029     esac
4030   else
4031     lt_cv_deplibs_check_method=pass_all
4032   fi
4033   ;;
4034
4035 gnu*)
4036   lt_cv_deplibs_check_method=pass_all
4037   ;;
4038
4039 hpux10.20* | hpux11*)
4040   lt_cv_file_magic_cmd=/usr/bin/file
4041   case "$host_cpu" in
4042   ia64*)
4043     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4044     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4045     ;;
4046   hppa*64*)
4047     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]'
4048     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4049     ;;
4050   *)
4051     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4052     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4053     ;;
4054   esac
4055   ;;
4056
4057 irix5* | irix6* | nonstopux*)
4058   case $LD in
4059   *-32|*"-32 ") libmagic=32-bit;;
4060   *-n32|*"-n32 ") libmagic=N32;;
4061   *-64|*"-64 ") libmagic=64-bit;;
4062   *) libmagic=never-match;;
4063   esac
4064   lt_cv_deplibs_check_method=pass_all
4065   ;;
4066
4067 # This must be Linux ELF.
4068 linux*)
4069   lt_cv_deplibs_check_method=pass_all
4070   ;;
4071
4072 netbsd*)
4073   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4074     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4075   else
4076     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4077   fi
4078   ;;
4079
4080 newos6*)
4081   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4082   lt_cv_file_magic_cmd=/usr/bin/file
4083   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4084   ;;
4085
4086 nto-qnx*)
4087   lt_cv_deplibs_check_method=unknown
4088   ;;
4089
4090 openbsd*)
4091   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4092     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4093   else
4094     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4095   fi
4096   ;;
4097
4098 osf3* | osf4* | osf5*)
4099   lt_cv_deplibs_check_method=pass_all
4100   ;;
4101
4102 sco3.2v5*)
4103   lt_cv_deplibs_check_method=pass_all
4104   ;;
4105
4106 solaris*)
4107   lt_cv_deplibs_check_method=pass_all
4108   ;;
4109
4110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4111   case $host_vendor in
4112   motorola)
4113     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]'
4114     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4115     ;;
4116   ncr)
4117     lt_cv_deplibs_check_method=pass_all
4118     ;;
4119   sequent)
4120     lt_cv_file_magic_cmd='/bin/file'
4121     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4122     ;;
4123   sni)
4124     lt_cv_file_magic_cmd='/bin/file'
4125     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4126     lt_cv_file_magic_test_file=/lib/libc.so
4127     ;;
4128   siemens)
4129     lt_cv_deplibs_check_method=pass_all
4130     ;;
4131   esac
4132   ;;
4133
4134 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4135   lt_cv_deplibs_check_method=pass_all
4136   ;;
4137 esac
4138
4139 fi
4140 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4141 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4142 file_magic_cmd=$lt_cv_file_magic_cmd
4143 deplibs_check_method=$lt_cv_deplibs_check_method
4144 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4145
4146
4147
4148
4149 # If no C compiler was specified, use CC.
4150 LTCC=${LTCC-"$CC"}
4151
4152 # Allow CC to be a program name with arguments.
4153 compiler=$CC
4154
4155 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4156 if test "${enable_libtool_lock+set}" = set; then
4157   enableval="$enable_libtool_lock"
4158
4159 fi;
4160 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4161
4162 # Some flags need to be propagated to the compiler or linker for good
4163 # libtool support.
4164 case $host in
4165 ia64-*-hpux*)
4166   # Find out which ABI we are using.
4167   echo 'int i;' > conftest.$ac_ext
4168   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169   (eval $ac_compile) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; then
4173     case `/usr/bin/file conftest.$ac_objext` in
4174     *ELF-32*)
4175       HPUX_IA64_MODE="32"
4176       ;;
4177     *ELF-64*)
4178       HPUX_IA64_MODE="64"
4179       ;;
4180     esac
4181   fi
4182   rm -rf conftest*
4183   ;;
4184 *-*-irix6*)
4185   # Find out which ABI we are using.
4186   echo '#line 4186 "configure"' > conftest.$ac_ext
4187   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188   (eval $ac_compile) 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); }; then
4192    if test "$lt_cv_prog_gnu_ld" = yes; then
4193     case `/usr/bin/file conftest.$ac_objext` in
4194     *32-bit*)
4195       LD="${LD-ld} -melf32bsmip"
4196       ;;
4197     *N32*)
4198       LD="${LD-ld} -melf32bmipn32"
4199       ;;
4200     *64-bit*)
4201       LD="${LD-ld} -melf64bmip"
4202       ;;
4203     esac
4204    else
4205     case `/usr/bin/file conftest.$ac_objext` in
4206     *32-bit*)
4207       LD="${LD-ld} -32"
4208       ;;
4209     *N32*)
4210       LD="${LD-ld} -n32"
4211       ;;
4212     *64-bit*)
4213       LD="${LD-ld} -64"
4214       ;;
4215     esac
4216    fi
4217   fi
4218   rm -rf conftest*
4219   ;;
4220
4221 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4222   # Find out which ABI we are using.
4223   echo 'int i;' > conftest.$ac_ext
4224   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225   (eval $ac_compile) 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); }; then
4229     case "`/usr/bin/file conftest.o`" in
4230     *32-bit*)
4231       case $host in
4232         x86_64-*linux*)
4233           LD="${LD-ld} -m elf_i386"
4234           ;;
4235         ppc64-*linux*|powerpc64-*linux*)
4236           LD="${LD-ld} -m elf32ppclinux"
4237           ;;
4238         s390x-*linux*)
4239           LD="${LD-ld} -m elf_s390"
4240           ;;
4241         sparc64-*linux*)
4242           LD="${LD-ld} -m elf32_sparc"
4243           ;;
4244       esac
4245       ;;
4246     *64-bit*)
4247       case $host in
4248         x86_64-*linux*)
4249           LD="${LD-ld} -m elf_x86_64"
4250           ;;
4251         ppc*-*linux*|powerpc*-*linux*)
4252           LD="${LD-ld} -m elf64ppc"
4253           ;;
4254         s390*-*linux*)
4255           LD="${LD-ld} -m elf64_s390"
4256           ;;
4257         sparc*-*linux*)
4258           LD="${LD-ld} -m elf64_sparc"
4259           ;;
4260       esac
4261       ;;
4262     esac
4263   fi
4264   rm -rf conftest*
4265   ;;
4266
4267 *-*-sco3.2v5*)
4268   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4269   SAVE_CFLAGS="$CFLAGS"
4270   CFLAGS="$CFLAGS -belf"
4271   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4272 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4273 if test "${lt_cv_cc_needs_belf+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281
4282      cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h.  */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h.  */
4288
4289 _ACEOF
4290 rm -f conftest.$ac_objext conftest$ac_exeext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292   (eval $ac_link) 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } &&
4299          { ac_try='test -z "$ac_c_werror_flag"
4300                          || test ! -s conftest.err'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; } &&
4306          { ac_try='test -s conftest$ac_exeext'
4307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308   (eval $ac_try) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; }; then
4312   lt_cv_cc_needs_belf=yes
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 lt_cv_cc_needs_belf=no
4318 fi
4319 rm -f conftest.err conftest.$ac_objext \
4320       conftest$ac_exeext conftest.$ac_ext
4321      ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
4327 fi
4328 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4329 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4330   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4331     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4332     CFLAGS="$SAVE_CFLAGS"
4333   fi
4334   ;;
4335
4336 esac
4337
4338 need_locks="$enable_libtool_lock"
4339
4340
4341
4342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4344 if test "${ac_cv_header_stdc+set}" = set; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h.  */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h.  */
4353 #include <stdlib.h>
4354 #include <stdarg.h>
4355 #include <string.h>
4356 #include <float.h>
4357
4358 int
4359 main ()
4360 {
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368   (eval $ac_compile) 2>conftest.er1
4369   ac_status=$?
4370   grep -v '^ *+' conftest.er1 >conftest.err
4371   rm -f conftest.er1
4372   cat conftest.err >&5
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } &&
4375          { ac_try='test -z "$ac_c_werror_flag"
4376                          || test ! -s conftest.err'
4377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378   (eval $ac_try) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; } &&
4382          { ac_try='test -s conftest.$ac_objext'
4383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384   (eval $ac_try) 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; }; then
4388   ac_cv_header_stdc=yes
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ac_cv_header_stdc=no
4394 fi
4395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4396
4397 if test $ac_cv_header_stdc = yes; then
4398   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399   cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405 #include <string.h>
4406
4407 _ACEOF
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409   $EGREP "memchr" >/dev/null 2>&1; then
4410   :
4411 else
4412   ac_cv_header_stdc=no
4413 fi
4414 rm -f conftest*
4415
4416 fi
4417
4418 if test $ac_cv_header_stdc = yes; then
4419   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420   cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426 #include <stdlib.h>
4427
4428 _ACEOF
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430   $EGREP "free" >/dev/null 2>&1; then
4431   :
4432 else
4433   ac_cv_header_stdc=no
4434 fi
4435 rm -f conftest*
4436
4437 fi
4438
4439 if test $ac_cv_header_stdc = yes; then
4440   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441   if test "$cross_compiling" = yes; then
4442   :
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 #include <ctype.h>
4451 #if ((' ' & 0x0FF) == 0x020)
4452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4454 #else
4455 # define ISLOWER(c) \
4456                    (('a' <= (c) && (c) <= 'i') \
4457                      || ('j' <= (c) && (c) <= 'r') \
4458                      || ('s' <= (c) && (c) <= 'z'))
4459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4460 #endif
4461
4462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4463 int
4464 main ()
4465 {
4466   int i;
4467   for (i = 0; i < 256; i++)
4468     if (XOR (islower (i), ISLOWER (i))
4469         || toupper (i) != TOUPPER (i))
4470       exit(2);
4471   exit (0);
4472 }
4473 _ACEOF
4474 rm -f conftest$ac_exeext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476   (eval $ac_link) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481   (eval $ac_try) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }; }; then
4485   :
4486 else
4487   echo "$as_me: program exited with status $ac_status" >&5
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 ( exit $ac_status )
4492 ac_cv_header_stdc=no
4493 fi
4494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4495 fi
4496 fi
4497 fi
4498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4500 if test $ac_cv_header_stdc = yes; then
4501
4502 cat >>confdefs.h <<\_ACEOF
4503 #define STDC_HEADERS 1
4504 _ACEOF
4505
4506 fi
4507
4508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4519                   inttypes.h stdint.h unistd.h
4520 do
4521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4522 echo "$as_me:$LINENO: checking for $ac_header" >&5
4523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 $ac_includes_default
4534
4535 #include <$ac_header>
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539   (eval $ac_compile) 2>conftest.er1
4540   ac_status=$?
4541   grep -v '^ *+' conftest.er1 >conftest.err
4542   rm -f conftest.er1
4543   cat conftest.err >&5
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } &&
4546          { ac_try='test -z "$ac_c_werror_flag"
4547                          || test ! -s conftest.err'
4548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549   (eval $ac_try) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; } &&
4553          { ac_try='test -s conftest.$ac_objext'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; }; then
4559   eval "$as_ac_Header=yes"
4560 else
4561   echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564 eval "$as_ac_Header=no"
4565 fi
4566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4567 fi
4568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571   cat >>confdefs.h <<_ACEOF
4572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573 _ACEOF
4574
4575 fi
4576
4577 done
4578
4579
4580
4581 for ac_header in dlfcn.h
4582 do
4583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585   echo "$as_me:$LINENO: checking for $ac_header" >&5
4586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 fi
4590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4592 else
4593   # Is the header compilable?
4594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602 $ac_includes_default
4603 #include <$ac_header>
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607   (eval $ac_compile) 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } &&
4614          { ac_try='test -z "$ac_c_werror_flag"
4615                          || test ! -s conftest.err'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest.$ac_objext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   ac_header_compiler=yes
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_header_compiler=no
4633 fi
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4636 echo "${ECHO_T}$ac_header_compiler" >&6
4637
4638 # Is the header present?
4639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647 #include <$ac_header>
4648 _ACEOF
4649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4651   ac_status=$?
4652   grep -v '^ *+' conftest.er1 >conftest.err
4653   rm -f conftest.er1
4654   cat conftest.err >&5
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } >/dev/null; then
4657   if test -s conftest.err; then
4658     ac_cpp_err=$ac_c_preproc_warn_flag
4659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4660   else
4661     ac_cpp_err=
4662   fi
4663 else
4664   ac_cpp_err=yes
4665 fi
4666 if test -z "$ac_cpp_err"; then
4667   ac_header_preproc=yes
4668 else
4669   echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672   ac_header_preproc=no
4673 fi
4674 rm -f conftest.err conftest.$ac_ext
4675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4676 echo "${ECHO_T}$ac_header_preproc" >&6
4677
4678 # So?  What about this header?
4679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4680   yes:no: )
4681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4685     ac_header_preproc=yes
4686     ;;
4687   no:yes:* )
4688     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4690     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4691 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4692     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4694     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4695 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4698     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4700     (
4701       cat <<\_ASBOX
4702 ## ----------------------------------- ##
4703 ## Report this to llvmbugs@cs.uiuc.edu ##
4704 ## ----------------------------------- ##
4705 _ASBOX
4706     ) |
4707       sed "s/^/$as_me: WARNING:     /" >&2
4708     ;;
4709 esac
4710 echo "$as_me:$LINENO: checking for $ac_header" >&5
4711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4713   echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715   eval "$as_ac_Header=\$ac_header_preproc"
4716 fi
4717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4719
4720 fi
4721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4722   cat >>confdefs.h <<_ACEOF
4723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4724 _ACEOF
4725
4726 fi
4727
4728 done
4729
4730
4731
4732 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4733     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4734     (test "X$CXX" != "Xg++"))) ; then
4735   ac_ext=cc
4736 ac_cpp='$CXXCPP $CPPFLAGS'
4737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4740 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4741 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4742 if test -z "$CXXCPP"; then
4743   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746       # Double quotes because CXXCPP needs to be expanded
4747     for CXXCPP in "$CXX -E" "/lib/cpp"
4748     do
4749       ac_preproc_ok=false
4750 for ac_cxx_preproc_warn_flag in '' yes
4751 do
4752   # Use a header file that comes with gcc, so configuring glibc
4753   # with a fresh cross-compiler works.
4754   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755   # <limits.h> exists even on freestanding compilers.
4756   # On the NeXT, cc -E runs the code through the compiler's parser,
4757   # not just through cpp. "Syntax error" is here to catch this case.
4758   cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764 #ifdef __STDC__
4765 # include <limits.h>
4766 #else
4767 # include <assert.h>
4768 #endif
4769                      Syntax error
4770 _ACEOF
4771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4773   ac_status=$?
4774   grep -v '^ *+' conftest.er1 >conftest.err
4775   rm -f conftest.er1
4776   cat conftest.err >&5
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); } >/dev/null; then
4779   if test -s conftest.err; then
4780     ac_cpp_err=$ac_cxx_preproc_warn_flag
4781     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4782   else
4783     ac_cpp_err=
4784   fi
4785 else
4786   ac_cpp_err=yes
4787 fi
4788 if test -z "$ac_cpp_err"; then
4789   :
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794   # Broken: fails on valid input.
4795 continue
4796 fi
4797 rm -f conftest.err conftest.$ac_ext
4798
4799   # OK, works on sane cases.  Now check whether non-existent headers
4800   # can be detected and how.
4801   cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807 #include <ac_nonexistent.h>
4808 _ACEOF
4809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4811   ac_status=$?
4812   grep -v '^ *+' conftest.er1 >conftest.err
4813   rm -f conftest.er1
4814   cat conftest.err >&5
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } >/dev/null; then
4817   if test -s conftest.err; then
4818     ac_cpp_err=$ac_cxx_preproc_warn_flag
4819     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4820   else
4821     ac_cpp_err=
4822   fi
4823 else
4824   ac_cpp_err=yes
4825 fi
4826 if test -z "$ac_cpp_err"; then
4827   # Broken: success on invalid input.
4828 continue
4829 else
4830   echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833   # Passes both tests.
4834 ac_preproc_ok=:
4835 break
4836 fi
4837 rm -f conftest.err conftest.$ac_ext
4838
4839 done
4840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841 rm -f conftest.err conftest.$ac_ext
4842 if $ac_preproc_ok; then
4843   break
4844 fi
4845
4846     done
4847     ac_cv_prog_CXXCPP=$CXXCPP
4848
4849 fi
4850   CXXCPP=$ac_cv_prog_CXXCPP
4851 else
4852   ac_cv_prog_CXXCPP=$CXXCPP
4853 fi
4854 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4855 echo "${ECHO_T}$CXXCPP" >&6
4856 ac_preproc_ok=false
4857 for ac_cxx_preproc_warn_flag in '' yes
4858 do
4859   # Use a header file that comes with gcc, so configuring glibc
4860   # with a fresh cross-compiler works.
4861   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862   # <limits.h> exists even on freestanding compilers.
4863   # On the NeXT, cc -E runs the code through the compiler's parser,
4864   # not just through cpp. "Syntax error" is here to catch this case.
4865   cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h.  */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h.  */
4871 #ifdef __STDC__
4872 # include <limits.h>
4873 #else
4874 # include <assert.h>
4875 #endif
4876                      Syntax error
4877 _ACEOF
4878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4880   ac_status=$?
4881   grep -v '^ *+' conftest.er1 >conftest.err
4882   rm -f conftest.er1
4883   cat conftest.err >&5
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); } >/dev/null; then
4886   if test -s conftest.err; then
4887     ac_cpp_err=$ac_cxx_preproc_warn_flag
4888     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4889   else
4890     ac_cpp_err=
4891   fi
4892 else
4893   ac_cpp_err=yes
4894 fi
4895 if test -z "$ac_cpp_err"; then
4896   :
4897 else
4898   echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901   # Broken: fails on valid input.
4902 continue
4903 fi
4904 rm -f conftest.err conftest.$ac_ext
4905
4906   # OK, works on sane cases.  Now check whether non-existent headers
4907   # can be detected and how.
4908   cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h.  */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h.  */
4914 #include <ac_nonexistent.h>
4915 _ACEOF
4916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } >/dev/null; then
4924   if test -s conftest.err; then
4925     ac_cpp_err=$ac_cxx_preproc_warn_flag
4926     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4927   else
4928     ac_cpp_err=
4929   fi
4930 else
4931   ac_cpp_err=yes
4932 fi
4933 if test -z "$ac_cpp_err"; then
4934   # Broken: success on invalid input.
4935 continue
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940   # Passes both tests.
4941 ac_preproc_ok=:
4942 break
4943 fi
4944 rm -f conftest.err conftest.$ac_ext
4945
4946 done
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then
4950   :
4951 else
4952   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4953 See \`config.log' for more details." >&5
4954 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4955 See \`config.log' for more details." >&2;}
4956    { (exit 1); exit 1; }; }
4957 fi
4958
4959 ac_ext=cc
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4964
4965 fi
4966
4967
4968 ac_ext=f
4969 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4970 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4972 if test -n "$ac_tool_prefix"; then
4973   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4974   do
4975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_prog_F77+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982   if test -n "$F77"; then
4983   ac_cv_prog_F77="$F77" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990   for ac_exec_ext in '' $ac_executable_extensions; do
4991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997 done
4998
4999 fi
5000 fi
5001 F77=$ac_cv_prog_F77
5002 if test -n "$F77"; then
5003   echo "$as_me:$LINENO: result: $F77" >&5
5004 echo "${ECHO_T}$F77" >&6
5005 else
5006   echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5008 fi
5009
5010     test -n "$F77" && break
5011   done
5012 fi
5013 if test -z "$F77"; then
5014   ac_ct_F77=$F77
5015   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5016 do
5017   # Extract the first word of "$ac_prog", so it can be a program name with args.
5018 set dummy $ac_prog; ac_word=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   if test -n "$ac_ct_F77"; then
5025   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030   IFS=$as_save_IFS
5031   test -z "$as_dir" && as_dir=.
5032   for ac_exec_ext in '' $ac_executable_extensions; do
5033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034     ac_cv_prog_ac_ct_F77="$ac_prog"
5035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036     break 2
5037   fi
5038 done
5039 done
5040
5041 fi
5042 fi
5043 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5044 if test -n "$ac_ct_F77"; then
5045   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5046 echo "${ECHO_T}$ac_ct_F77" >&6
5047 else
5048   echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5050 fi
5051
5052   test -n "$ac_ct_F77" && break
5053 done
5054
5055   F77=$ac_ct_F77
5056 fi
5057
5058
5059 # Provide some information about the compiler.
5060 echo "$as_me:5060:" \
5061      "checking for Fortran 77 compiler version" >&5
5062 ac_compiler=`set X $ac_compile; echo $2`
5063 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5064   (eval $ac_compiler --version </dev/null >&5) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }
5068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5069   (eval $ac_compiler -v </dev/null >&5) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }
5073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5074   (eval $ac_compiler -V </dev/null >&5) 2>&5
5075   ac_status=$?
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); }
5078 rm -f a.out
5079
5080 # If we don't use `.F' as extension, the preprocessor is not run on the
5081 # input file.  (Note that this only needs to work for GNU compilers.)
5082 ac_save_ext=$ac_ext
5083 ac_ext=F
5084 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5085 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5086 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   cat >conftest.$ac_ext <<_ACEOF
5090       program main
5091 #ifndef __GNUC__
5092        choke me
5093 #endif
5094
5095       end
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099   (eval $ac_compile) 2>conftest.er1
5100   ac_status=$?
5101   grep -v '^ *+' conftest.er1 >conftest.err
5102   rm -f conftest.er1
5103   cat conftest.err >&5
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); } &&
5106          { ac_try='test -z "$ac_f77_werror_flag"
5107                          || test ! -s conftest.err'
5108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109   (eval $ac_try) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; } &&
5113          { ac_try='test -s conftest.$ac_objext'
5114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115   (eval $ac_try) 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }; }; then
5119   ac_compiler_gnu=yes
5120 else
5121   echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 ac_compiler_gnu=no
5125 fi
5126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5127 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5128
5129 fi
5130 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5131 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5132 ac_ext=$ac_save_ext
5133 ac_test_FFLAGS=${FFLAGS+set}
5134 ac_save_FFLAGS=$FFLAGS
5135 FFLAGS=
5136 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5137 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5138 if test "${ac_cv_prog_f77_g+set}" = set; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   FFLAGS=-g
5142 cat >conftest.$ac_ext <<_ACEOF
5143       program main
5144
5145       end
5146 _ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149   (eval $ac_compile) 2>conftest.er1
5150   ac_status=$?
5151   grep -v '^ *+' conftest.er1 >conftest.err
5152   rm -f conftest.er1
5153   cat conftest.err >&5
5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); } &&
5156          { ac_try='test -z "$ac_f77_werror_flag"
5157                          || test ! -s conftest.err'
5158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159   (eval $ac_try) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); }; } &&
5163          { ac_try='test -s conftest.$ac_objext'
5164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165   (eval $ac_try) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); }; }; then
5169   ac_cv_prog_f77_g=yes
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 ac_cv_prog_f77_g=no
5175 fi
5176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177
5178 fi
5179 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5180 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5181 if test "$ac_test_FFLAGS" = set; then
5182   FFLAGS=$ac_save_FFLAGS
5183 elif test $ac_cv_prog_f77_g = yes; then
5184   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5185     FFLAGS="-g -O2"
5186   else
5187     FFLAGS="-g"
5188   fi
5189 else
5190   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5191     FFLAGS="-O2"
5192   else
5193     FFLAGS=
5194   fi
5195 fi
5196
5197 G77=`test $ac_compiler_gnu = yes && echo yes`
5198 ac_ext=c
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
5204
5205
5206 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5207
5208 # find the maximum length of command line arguments
5209 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5210 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5211 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214     i=0
5215   teststring="ABCD"
5216
5217   case $build_os in
5218   msdosdjgpp*)
5219     # On DJGPP, this test can blow up pretty badly due to problems in libc
5220     # (any single argument exceeding 2000 bytes causes a buffer overrun
5221     # during glob expansion).  Even if it were fixed, the result of this
5222     # check would be larger than it should be.
5223     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5224     ;;
5225
5226   gnu*)
5227     # Under GNU Hurd, this test is not required because there is
5228     # no limit to the length of command line arguments.
5229     # Libtool will interpret -1 as no limit whatsoever
5230     lt_cv_sys_max_cmd_len=-1;
5231     ;;
5232
5233   cygwin* | mingw*)
5234     # On Win9x/ME, this test blows up -- it succeeds, but takes
5235     # about 5 minutes as the teststring grows exponentially.
5236     # Worse, since 9x/ME are not pre-emptively multitasking,
5237     # you end up with a "frozen" computer, even though with patience
5238     # the test eventually succeeds (with a max line length of 256k).
5239     # Instead, let's just punt: use the minimum linelength reported by
5240     # all of the supported platforms: 8192 (on NT/2K/XP).
5241     lt_cv_sys_max_cmd_len=8192;
5242     ;;
5243
5244   amigaos*)
5245     # On AmigaOS with pdksh, this test takes hours, literally.
5246     # So we just punt and use a minimum line length of 8192.
5247     lt_cv_sys_max_cmd_len=8192;
5248     ;;
5249
5250   netbsd* | freebsd* | openbsd* | darwin* )
5251     # This has been around since 386BSD, at least.  Likely further.
5252     if test -x /sbin/sysctl; then
5253       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5254     elif test -x /usr/sbin/sysctl; then
5255       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5256     else
5257       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5258     fi
5259     # And add a safety zone
5260     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5261     ;;
5262
5263  *)
5264     # If test is not a shell built-in, we'll probably end up computing a
5265     # maximum length that is only half of the actual maximum length, but
5266     # we can't tell.
5267     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5268     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5269                = "XX$teststring") >/dev/null 2>&1 &&
5270             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5271             lt_cv_sys_max_cmd_len=$new_result &&
5272             test $i != 17 # 1/2 MB should be enough
5273     do
5274       i=`expr $i + 1`
5275       teststring=$teststring$teststring
5276     done
5277     teststring=
5278     # Add a significant safety factor because C++ compilers can tack on massive
5279     # amounts of additional arguments before passing them to the linker.
5280     # It appears as though 1/2 is a usable value.
5281     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5282     ;;
5283   esac
5284
5285 fi
5286
5287 if test -n $lt_cv_sys_max_cmd_len ; then
5288   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5289 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5290 else
5291   echo "$as_me:$LINENO: result: none" >&5
5292 echo "${ECHO_T}none" >&6
5293 fi
5294
5295
5296
5297
5298 # Check for command to grab the raw symbol name followed by C symbol from nm.
5299 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5300 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5301 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304
5305 # These are sane defaults that work on at least a few old systems.
5306 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5307
5308 # Character class describing NM global symbol codes.
5309 symcode='[BCDEGRST]'
5310
5311 # Regexp to match symbols that can be accessed directly from C.
5312 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5313
5314 # Transform the above into a raw symbol and a C symbol.
5315 symxfrm='\1 \2\3 \3'
5316
5317 # Transform an extracted symbol line into a proper C declaration
5318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5319
5320 # Transform an extracted symbol line into symbol name and symbol address
5321 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'"
5322
5323 # Define system-specific variables.
5324 case $host_os in
5325 aix*)
5326   symcode='[BCDT]'
5327   ;;
5328 cygwin* | mingw* | pw32*)
5329   symcode='[ABCDGISTW]'
5330   ;;
5331 hpux*) # Its linker distinguishes data from code symbols
5332   if test "$host_cpu" = ia64; then
5333     symcode='[ABCDEGRST]'
5334   fi
5335   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5336   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'"
5337   ;;
5338 linux*)
5339   if test "$host_cpu" = ia64; then
5340     symcode='[ABCDGIRSTW]'
5341     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5342     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'"
5343   fi
5344   ;;
5345 irix* | nonstopux*)
5346   symcode='[BCDEGRST]'
5347   ;;
5348 osf*)
5349   symcode='[BCDEGQRST]'
5350   ;;
5351 solaris* | sysv5*)
5352   symcode='[BDRT]'
5353   ;;
5354 sysv4)
5355   symcode='[DFNSTU]'
5356   ;;
5357 esac
5358
5359 # Handle CRLF in mingw tool chain
5360 opt_cr=
5361 case $build_os in
5362 mingw*)
5363   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5364   ;;
5365 esac
5366
5367 # If we're using GNU nm, then use its standard symbol codes.
5368 case `$NM -V 2>&1` in
5369 *GNU* | *'with BFD'*)
5370   symcode='[ABCDGIRSTW]' ;;
5371 esac
5372
5373 # Try without a prefix undercore, then with it.
5374 for ac_symprfx in "" "_"; do
5375
5376   # Write the raw and C identifiers.
5377   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5378
5379   # Check to see that the pipe works correctly.
5380   pipe_works=no
5381
5382   rm -f conftest*
5383   cat > conftest.$ac_ext <<EOF
5384 #ifdef __cplusplus
5385 extern "C" {
5386 #endif
5387 char nm_test_var;
5388 void nm_test_func(){}
5389 #ifdef __cplusplus
5390 }
5391 #endif
5392 int main(){nm_test_var='a';nm_test_func();return(0);}
5393 EOF
5394
5395   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396   (eval $ac_compile) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; then
5400     # Now try to grab the symbols.
5401     nlist=conftest.nm
5402     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5403   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } && test -s "$nlist"; then
5407       # Try sorting and uniquifying the output.
5408       if sort "$nlist" | uniq > "$nlist"T; then
5409         mv -f "$nlist"T "$nlist"
5410       else
5411         rm -f "$nlist"T
5412       fi
5413
5414       # Make sure that we snagged all the symbols we need.
5415       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5416         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5417           cat <<EOF > conftest.$ac_ext
5418 #ifdef __cplusplus
5419 extern "C" {
5420 #endif
5421
5422 EOF
5423           # Now generate the symbol file.
5424           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5425
5426           cat <<EOF >> conftest.$ac_ext
5427 #if defined (__STDC__) && __STDC__
5428 # define lt_ptr_t void *
5429 #else
5430 # define lt_ptr_t char *
5431 # define const
5432 #endif
5433
5434 /* The mapping between symbol names and symbols. */
5435 const struct {
5436   const char *name;
5437   lt_ptr_t address;
5438 }
5439 lt_preloaded_symbols[] =
5440 {
5441 EOF
5442           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5443           cat <<\EOF >> conftest.$ac_ext
5444   {0, (lt_ptr_t) 0}
5445 };
5446
5447 #ifdef __cplusplus
5448 }
5449 #endif
5450 EOF
5451           # Now try linking the two files.
5452           mv conftest.$ac_objext conftstm.$ac_objext
5453           lt_save_LIBS="$LIBS"
5454           lt_save_CFLAGS="$CFLAGS"
5455           LIBS="conftstm.$ac_objext"
5456           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5457           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458   (eval $ac_link) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5462             pipe_works=yes
5463           fi
5464           LIBS="$lt_save_LIBS"
5465           CFLAGS="$lt_save_CFLAGS"
5466         else
5467           echo "cannot find nm_test_func in $nlist" >&5
5468         fi
5469       else
5470         echo "cannot find nm_test_var in $nlist" >&5
5471       fi
5472     else
5473       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5474     fi
5475   else
5476     echo "$progname: failed program was:" >&5
5477     cat conftest.$ac_ext >&5
5478   fi
5479   rm -f conftest* conftst*
5480
5481   # Do not use the global_symbol_pipe unless it works.
5482   if test "$pipe_works" = yes; then
5483     break
5484   else
5485     lt_cv_sys_global_symbol_pipe=
5486   fi
5487 done
5488
5489 fi
5490
5491 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5492   lt_cv_sys_global_symbol_to_cdecl=
5493 fi
5494 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5495   echo "$as_me:$LINENO: result: failed" >&5
5496 echo "${ECHO_T}failed" >&6
5497 else
5498   echo "$as_me:$LINENO: result: ok" >&5
5499 echo "${ECHO_T}ok" >&6
5500 fi
5501
5502 echo "$as_me:$LINENO: checking for objdir" >&5
5503 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5504 if test "${lt_cv_objdir+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   rm -f .libs 2>/dev/null
5508 mkdir .libs 2>/dev/null
5509 if test -d .libs; then
5510   lt_cv_objdir=.libs
5511 else
5512   # MS-DOS does not allow filenames that begin with a dot.
5513   lt_cv_objdir=_libs
5514 fi
5515 rmdir .libs 2>/dev/null
5516 fi
5517 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5518 echo "${ECHO_T}$lt_cv_objdir" >&6
5519 objdir=$lt_cv_objdir
5520
5521
5522
5523
5524
5525 case $host_os in
5526 aix3*)
5527   # AIX sometimes has problems with the GCC collect2 program.  For some
5528   # reason, if we set the COLLECT_NAMES environment variable, the problems
5529   # vanish in a puff of smoke.
5530   if test "X${COLLECT_NAMES+set}" != Xset; then
5531     COLLECT_NAMES=
5532     export COLLECT_NAMES
5533   fi
5534   ;;
5535 esac
5536
5537 # Sed substitution that helps us do robust quoting.  It backslashifies
5538 # metacharacters that are still active within double-quoted strings.
5539 Xsed='sed -e s/^X//'
5540 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5541
5542 # Same as above, but do not quote variable references.
5543 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5544
5545 # Sed substitution to delay expansion of an escaped shell variable in a
5546 # double_quote_subst'ed string.
5547 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5548
5549 # Sed substitution to avoid accidental globbing in evaled expressions
5550 no_glob_subst='s/\*/\\\*/g'
5551
5552 # Constants:
5553 rm="rm -f"
5554
5555 # Global variables:
5556 default_ofile=mklib
5557 can_build_shared=yes
5558
5559 # All known linkers require a `.a' archive for static linking (except M$VC,
5560 # which needs '.lib').
5561 libext=a
5562 ltmain="$ac_aux_dir/ltmain.sh"
5563 ofile="$default_ofile"
5564 with_gnu_ld="$lt_cv_prog_gnu_ld"
5565
5566 if test -n "$ac_tool_prefix"; then
5567   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5568 set dummy ${ac_tool_prefix}ar; ac_word=$2
5569 echo "$as_me:$LINENO: checking for $ac_word" >&5
5570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5571 if test "${ac_cv_prog_AR+set}" = set; then
5572   echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574   if test -n "$AR"; then
5575   ac_cv_prog_AR="$AR" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582   for ac_exec_ext in '' $ac_executable_extensions; do
5583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584     ac_cv_prog_AR="${ac_tool_prefix}ar"
5585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586     break 2
5587   fi
5588 done
5589 done
5590
5591 fi
5592 fi
5593 AR=$ac_cv_prog_AR
5594 if test -n "$AR"; then
5595   echo "$as_me:$LINENO: result: $AR" >&5
5596 echo "${ECHO_T}$AR" >&6
5597 else
5598   echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5600 fi
5601
5602 fi
5603 if test -z "$ac_cv_prog_AR"; then
5604   ac_ct_AR=$AR
5605   # Extract the first word of "ar", so it can be a program name with args.
5606 set dummy ar; ac_word=$2
5607 echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   if test -n "$ac_ct_AR"; then
5613   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620   for ac_exec_ext in '' $ac_executable_extensions; do
5621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622     ac_cv_prog_ac_ct_AR="ar"
5623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627 done
5628
5629   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5630 fi
5631 fi
5632 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5633 if test -n "$ac_ct_AR"; then
5634   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5635 echo "${ECHO_T}$ac_ct_AR" >&6
5636 else
5637   echo "$as_me:$LINENO: result: no" >&5
5638 echo "${ECHO_T}no" >&6
5639 fi
5640
5641   AR=$ac_ct_AR
5642 else
5643   AR="$ac_cv_prog_AR"
5644 fi
5645
5646 if test -n "$ac_tool_prefix"; then
5647   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5649 echo "$as_me:$LINENO: checking for $ac_word" >&5
5650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651 if test "${ac_cv_prog_RANLIB+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   if test -n "$RANLIB"; then
5655   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660   IFS=$as_save_IFS
5661   test -z "$as_dir" && as_dir=.
5662   for ac_exec_ext in '' $ac_executable_extensions; do
5663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666     break 2
5667   fi
5668 done
5669 done
5670
5671 fi
5672 fi
5673 RANLIB=$ac_cv_prog_RANLIB
5674 if test -n "$RANLIB"; then
5675   echo "$as_me:$LINENO: result: $RANLIB" >&5
5676 echo "${ECHO_T}$RANLIB" >&6
5677 else
5678   echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6
5680 fi
5681
5682 fi
5683 if test -z "$ac_cv_prog_RANLIB"; then
5684   ac_ct_RANLIB=$RANLIB
5685   # Extract the first word of "ranlib", so it can be a program name with args.
5686 set dummy ranlib; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   if test -n "$ac_ct_RANLIB"; then
5693   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700   for ac_exec_ext in '' $ac_executable_extensions; do
5701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_prog_ac_ct_RANLIB="ranlib"
5703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707 done
5708
5709   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5710 fi
5711 fi
5712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713 if test -n "$ac_ct_RANLIB"; then
5714   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5715 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5716 else
5717   echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5719 fi
5720
5721   RANLIB=$ac_ct_RANLIB
5722 else
5723   RANLIB="$ac_cv_prog_RANLIB"
5724 fi
5725
5726 if test -n "$ac_tool_prefix"; then
5727   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}strip; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_STRIP+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   if test -n "$STRIP"; then
5735   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742   for ac_exec_ext in '' $ac_executable_extensions; do
5743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749 done
5750
5751 fi
5752 fi
5753 STRIP=$ac_cv_prog_STRIP
5754 if test -n "$STRIP"; then
5755   echo "$as_me:$LINENO: result: $STRIP" >&5
5756 echo "${ECHO_T}$STRIP" >&6
5757 else
5758   echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5760 fi
5761
5762 fi
5763 if test -z "$ac_cv_prog_STRIP"; then
5764   ac_ct_STRIP=$STRIP
5765   # Extract the first word of "strip", so it can be a program name with args.
5766 set dummy strip; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   if test -n "$ac_ct_STRIP"; then
5773   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780   for ac_exec_ext in '' $ac_executable_extensions; do
5781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_prog_ac_ct_STRIP="strip"
5783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787 done
5788
5789   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5790 fi
5791 fi
5792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793 if test -n "$ac_ct_STRIP"; then
5794   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5795 echo "${ECHO_T}$ac_ct_STRIP" >&6
5796 else
5797   echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5799 fi
5800
5801   STRIP=$ac_ct_STRIP
5802 else
5803   STRIP="$ac_cv_prog_STRIP"
5804 fi
5805
5806
5807 old_CC="$CC"
5808 old_CFLAGS="$CFLAGS"
5809
5810 # Set sane defaults for various variables
5811 test -z "$AR" && AR=ar
5812 test -z "$AR_FLAGS" && AR_FLAGS=cru
5813 test -z "$AS" && AS=as
5814 test -z "$CC" && CC=cc
5815 test -z "$LTCC" && LTCC=$CC
5816 test -z "$DLLTOOL" && DLLTOOL=dlltool
5817 test -z "$LD" && LD=ld
5818 test -z "$LN_S" && LN_S="ln -s"
5819 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5820 test -z "$NM" && NM=nm
5821 test -z "$SED" && SED=sed
5822 test -z "$OBJDUMP" && OBJDUMP=objdump
5823 test -z "$RANLIB" && RANLIB=:
5824 test -z "$STRIP" && STRIP=:
5825 test -z "$ac_objext" && ac_objext=o
5826
5827 # Determine commands to create old-style static archives.
5828 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5829 old_postinstall_cmds='chmod 644 $oldlib'
5830 old_postuninstall_cmds=
5831
5832 if test -n "$RANLIB"; then
5833   case $host_os in
5834   openbsd*)
5835     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5836     ;;
5837   *)
5838     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5839     ;;
5840   esac
5841   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5842 fi
5843
5844 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5845
5846 # Only perform the check for file, if the check method requires it
5847 case $deplibs_check_method in
5848 file_magic*)
5849   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5850     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5851 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5852 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   case $MAGIC_CMD in
5856 [\\/*] |  ?:[\\/]*)
5857   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5858   ;;
5859 *)
5860   lt_save_MAGIC_CMD="$MAGIC_CMD"
5861   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5862   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5863   for ac_dir in $ac_dummy; do
5864     IFS="$lt_save_ifs"
5865     test -z "$ac_dir" && ac_dir=.
5866     if test -f $ac_dir/${ac_tool_prefix}file; then
5867       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5868       if test -n "$file_magic_test_file"; then
5869         case $deplibs_check_method in
5870         "file_magic "*)
5871           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5872           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5873           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5874             $EGREP "$file_magic_regex" > /dev/null; then
5875             :
5876           else
5877             cat <<EOF 1>&2
5878
5879 *** Warning: the command libtool uses to detect shared libraries,
5880 *** $file_magic_cmd, produces output that libtool cannot recognize.
5881 *** The result is that libtool may fail to recognize shared libraries
5882 *** as such.  This will affect the creation of libtool libraries that
5883 *** depend on shared libraries, but programs linked with such libtool
5884 *** libraries will work regardless of this problem.  Nevertheless, you
5885 *** may want to report the problem to your system manager and/or to
5886 *** bug-libtool@gnu.org
5887
5888 EOF
5889           fi ;;
5890         esac
5891       fi
5892       break
5893     fi
5894   done
5895   IFS="$lt_save_ifs"
5896   MAGIC_CMD="$lt_save_MAGIC_CMD"
5897   ;;
5898 esac
5899 fi
5900
5901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5902 if test -n "$MAGIC_CMD"; then
5903   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5904 echo "${ECHO_T}$MAGIC_CMD" >&6
5905 else
5906   echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5908 fi
5909
5910 if test -z "$lt_cv_path_MAGIC_CMD"; then
5911   if test -n "$ac_tool_prefix"; then
5912     echo "$as_me:$LINENO: checking for file" >&5
5913 echo $ECHO_N "checking for file... $ECHO_C" >&6
5914 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   case $MAGIC_CMD in
5918 [\\/*] |  ?:[\\/]*)
5919   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5920   ;;
5921 *)
5922   lt_save_MAGIC_CMD="$MAGIC_CMD"
5923   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5924   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5925   for ac_dir in $ac_dummy; do
5926     IFS="$lt_save_ifs"
5927     test -z "$ac_dir" && ac_dir=.
5928     if test -f $ac_dir/file; then
5929       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5930       if test -n "$file_magic_test_file"; then
5931         case $deplibs_check_method in
5932         "file_magic "*)
5933           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5934           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5935           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5936             $EGREP "$file_magic_regex" > /dev/null; then
5937             :
5938           else
5939             cat <<EOF 1>&2
5940
5941 *** Warning: the command libtool uses to detect shared libraries,
5942 *** $file_magic_cmd, produces output that libtool cannot recognize.
5943 *** The result is that libtool may fail to recognize shared libraries
5944 *** as such.  This will affect the creation of libtool libraries that
5945 *** depend on shared libraries, but programs linked with such libtool
5946 *** libraries will work regardless of this problem.  Nevertheless, you
5947 *** may want to report the problem to your system manager and/or to
5948 *** bug-libtool@gnu.org
5949
5950 EOF
5951           fi ;;
5952         esac
5953       fi
5954       break
5955     fi
5956   done
5957   IFS="$lt_save_ifs"
5958   MAGIC_CMD="$lt_save_MAGIC_CMD"
5959   ;;
5960 esac
5961 fi
5962
5963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5964 if test -n "$MAGIC_CMD"; then
5965   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5966 echo "${ECHO_T}$MAGIC_CMD" >&6
5967 else
5968   echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5970 fi
5971
5972   else
5973     MAGIC_CMD=:
5974   fi
5975 fi
5976
5977   fi
5978   ;;
5979 esac
5980
5981 enable_dlopen=no
5982 enable_win32_dll=no
5983
5984 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5985 if test "${enable_libtool_lock+set}" = set; then
5986   enableval="$enable_libtool_lock"
5987
5988 fi;
5989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5990
5991
5992 # Check whether --with-pic or --without-pic was given.
5993 if test "${with_pic+set}" = set; then
5994   withval="$with_pic"
5995   pic_mode="$withval"
5996 else
5997   pic_mode=default
5998 fi;
5999 test -z "$pic_mode" && pic_mode=default
6000
6001 # Use C for the default configuration in the libtool script
6002 tagname=
6003 lt_save_CC="$CC"
6004 ac_ext=c
6005 ac_cpp='$CPP $CPPFLAGS'
6006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009
6010
6011 # Source file extension for C test sources.
6012 ac_ext=c
6013
6014 # Object file extension for compiled C test sources.
6015 objext=o
6016 objext=$objext
6017
6018 # Code to be used in simple compile tests
6019 lt_simple_compile_test_code="int some_variable = 0;\n"
6020
6021 # Code to be used in simple link tests
6022 lt_simple_link_test_code='int main(){return(0);}\n'
6023
6024
6025 # If no C compiler was specified, use CC.
6026 LTCC=${LTCC-"$CC"}
6027
6028 # Allow CC to be a program name with arguments.
6029 compiler=$CC
6030
6031
6032 #
6033 # Check for any special shared library compilation flags.
6034 #
6035 lt_prog_cc_shlib=
6036 if test "$GCC" = no; then
6037   case $host_os in
6038   sco3.2v5*)
6039     lt_prog_cc_shlib='-belf'
6040     ;;
6041   esac
6042 fi
6043 if test -n "$lt_prog_cc_shlib"; then
6044   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6045 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6046   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6047   else
6048     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6049 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6050     lt_cv_prog_cc_can_build_shared=no
6051   fi
6052 fi
6053
6054
6055 #
6056 # Check to make sure the static flag actually works.
6057 #
6058 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6059 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6060 if test "${lt_prog_compiler_static_works+set}" = set; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063   lt_prog_compiler_static_works=no
6064    save_LDFLAGS="$LDFLAGS"
6065    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6066    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6067    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6068      # The compiler can only warn and ignore the option if not recognized
6069      # So say no if there are warnings
6070      if test -s conftest.err; then
6071        # Append any errors to the config.log.
6072        cat conftest.err 1>&5
6073      else
6074        lt_prog_compiler_static_works=yes
6075      fi
6076    fi
6077    $rm conftest*
6078    LDFLAGS="$save_LDFLAGS"
6079
6080 fi
6081 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6082 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6083
6084 if test x"$lt_prog_compiler_static_works" = xyes; then
6085     :
6086 else
6087     lt_prog_compiler_static=
6088 fi
6089
6090
6091
6092
6093 lt_prog_compiler_no_builtin_flag=
6094
6095 if test "$GCC" = yes; then
6096   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6097
6098
6099 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6100 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6101 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104   lt_cv_prog_compiler_rtti_exceptions=no
6105   ac_outfile=conftest.$ac_objext
6106    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6107    lt_compiler_flag="-fno-rtti -fno-exceptions"
6108    # Insert the option either (1) after the last *FLAGS variable, or
6109    # (2) before a word containing "conftest.", or (3) at the end.
6110    # Note that $ac_compile itself does not contain backslashes and begins
6111    # with a dollar sign (not a hyphen), so the echo should work correctly.
6112    # The option is referenced via a variable to avoid confusing sed.
6113    lt_compile=`echo "$ac_compile" | $SED \
6114    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6116    -e 's:$: $lt_compiler_flag:'`
6117    (eval echo "\"\$as_me:6117: $lt_compile\"" >&5)
6118    (eval "$lt_compile" 2>conftest.err)
6119    ac_status=$?
6120    cat conftest.err >&5
6121    echo "$as_me:6121: \$? = $ac_status" >&5
6122    if (exit $ac_status) && test -s "$ac_outfile"; then
6123      # The compiler can only warn and ignore the option if not recognized
6124      # So say no if there are warnings
6125      if test ! -s conftest.err; then
6126        lt_cv_prog_compiler_rtti_exceptions=yes
6127      fi
6128    fi
6129    $rm conftest*
6130
6131 fi
6132 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6133 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6134
6135 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6136     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6137 else
6138     :
6139 fi
6140
6141 fi
6142
6143 lt_prog_compiler_wl=
6144 lt_prog_compiler_pic=
6145 lt_prog_compiler_static=
6146
6147 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6149
6150   if test "$GCC" = yes; then
6151     lt_prog_compiler_wl='-Wl,'
6152     lt_prog_compiler_static='-static'
6153
6154     case $host_os in
6155       aix*)
6156       # All AIX code is PIC.
6157       if test "$host_cpu" = ia64; then
6158         # AIX 5 now supports IA64 processor
6159         lt_prog_compiler_static='-Bstatic'
6160       fi
6161       ;;
6162
6163     amigaos*)
6164       # FIXME: we need at least 68020 code to build shared libraries, but
6165       # adding the `-m68020' flag to GCC prevents building anything better,
6166       # like `-m68040'.
6167       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6168       ;;
6169
6170     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6171       # PIC is the default for these OSes.
6172       ;;
6173
6174     mingw* | pw32* | os2*)
6175       # This hack is so that the source file can tell whether it is being
6176       # built for inclusion in a dll (and should export symbols for example).
6177       lt_prog_compiler_pic='-DDLL_EXPORT'
6178       ;;
6179
6180     darwin* | rhapsody*)
6181       # PIC is the default on this platform
6182       # Common symbols not allowed in MH_DYLIB files
6183       lt_prog_compiler_pic='-fno-common'
6184       ;;
6185
6186     msdosdjgpp*)
6187       # Just because we use GCC doesn't mean we suddenly get shared libraries
6188       # on systems that don't support them.
6189       lt_prog_compiler_can_build_shared=no
6190       enable_shared=no
6191       ;;
6192
6193     sysv4*MP*)
6194       if test -d /usr/nec; then
6195         lt_prog_compiler_pic=-Kconform_pic
6196       fi
6197       ;;
6198
6199     hpux*)
6200       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6201       # not for PA HP-UX.
6202       case "$host_cpu" in
6203       hppa*64*|ia64*)
6204         # +Z the default
6205         ;;
6206       *)
6207         lt_prog_compiler_pic='-fPIC'
6208         ;;
6209       esac
6210       ;;
6211
6212     *)
6213       lt_prog_compiler_pic='-fPIC'
6214       ;;
6215     esac
6216   else
6217     # PORTME Check for flag to pass linker flags through the system compiler.
6218     case $host_os in
6219     aix*)
6220       lt_prog_compiler_wl='-Wl,'
6221       if test "$host_cpu" = ia64; then
6222         # AIX 5 now supports IA64 processor
6223         lt_prog_compiler_static='-Bstatic'
6224       else
6225         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6226       fi
6227       ;;
6228       darwin*)
6229         # PIC is the default on this platform
6230         # Common symbols not allowed in MH_DYLIB files
6231        case "$cc_basename" in
6232          xlc*)
6233          lt_prog_compiler_pic='-qnocommon'
6234          lt_prog_compiler_wl='-Wl,'
6235          ;;
6236        esac
6237        ;;
6238
6239     mingw* | pw32* | os2*)
6240       # This hack is so that the source file can tell whether it is being
6241       # built for inclusion in a dll (and should export symbols for example).
6242       lt_prog_compiler_pic='-DDLL_EXPORT'
6243       ;;
6244
6245     hpux9* | hpux10* | hpux11*)
6246       lt_prog_compiler_wl='-Wl,'
6247       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6248       # not for PA HP-UX.
6249       case "$host_cpu" in
6250       hppa*64*|ia64*)
6251         # +Z the default
6252         ;;
6253       *)
6254         lt_prog_compiler_pic='+Z'
6255         ;;
6256       esac
6257       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6258       lt_prog_compiler_static='${wl}-a ${wl}archive'
6259       ;;
6260
6261     irix5* | irix6* | nonstopux*)
6262       lt_prog_compiler_wl='-Wl,'
6263       # PIC (with -KPIC) is the default.
6264       lt_prog_compiler_static='-non_shared'
6265       ;;
6266
6267     newsos6)
6268       lt_prog_compiler_pic='-KPIC'
6269       lt_prog_compiler_static='-Bstatic'
6270       ;;
6271
6272     linux*)
6273       case $CC in
6274       icc* | ecc*)
6275         lt_prog_compiler_wl='-Wl,'
6276         lt_prog_compiler_pic='-KPIC'
6277         lt_prog_compiler_static='-static'
6278         ;;
6279       ccc*)
6280         lt_prog_compiler_wl='-Wl,'
6281         # All Alpha code is PIC.
6282         lt_prog_compiler_static='-non_shared'
6283         ;;
6284       esac
6285       ;;
6286
6287     osf3* | osf4* | osf5*)
6288       lt_prog_compiler_wl='-Wl,'
6289       # All OSF/1 code is PIC.
6290       lt_prog_compiler_static='-non_shared'
6291       ;;
6292
6293     sco3.2v5*)
6294       lt_prog_compiler_pic='-Kpic'
6295       lt_prog_compiler_static='-dn'
6296       ;;
6297
6298     solaris*)
6299       lt_prog_compiler_wl='-Wl,'
6300       lt_prog_compiler_pic='-KPIC'
6301       lt_prog_compiler_static='-Bstatic'
6302       ;;
6303
6304     sunos4*)
6305       lt_prog_compiler_wl='-Qoption ld '
6306       lt_prog_compiler_pic='-PIC'
6307       lt_prog_compiler_static='-Bstatic'
6308       ;;
6309
6310     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6311       lt_prog_compiler_wl='-Wl,'
6312       lt_prog_compiler_pic='-KPIC'
6313       lt_prog_compiler_static='-Bstatic'
6314       ;;
6315
6316     sysv4*MP*)
6317       if test -d /usr/nec ;then
6318         lt_prog_compiler_pic='-Kconform_pic'
6319         lt_prog_compiler_static='-Bstatic'
6320       fi
6321       ;;
6322
6323     uts4*)
6324       lt_prog_compiler_pic='-pic'
6325       lt_prog_compiler_static='-Bstatic'
6326       ;;
6327
6328     *)
6329       lt_prog_compiler_can_build_shared=no
6330       ;;
6331     esac
6332   fi
6333
6334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6335 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6336
6337 #
6338 # Check to make sure the PIC flag actually works.
6339 #
6340 if test -n "$lt_prog_compiler_pic"; then
6341
6342 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6343 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6344 if test "${lt_prog_compiler_pic_works+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   lt_prog_compiler_pic_works=no
6348   ac_outfile=conftest.$ac_objext
6349    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6350    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6351    # Insert the option either (1) after the last *FLAGS variable, or
6352    # (2) before a word containing "conftest.", or (3) at the end.
6353    # Note that $ac_compile itself does not contain backslashes and begins
6354    # with a dollar sign (not a hyphen), so the echo should work correctly.
6355    # The option is referenced via a variable to avoid confusing sed.
6356    lt_compile=`echo "$ac_compile" | $SED \
6357    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6359    -e 's:$: $lt_compiler_flag:'`
6360    (eval echo "\"\$as_me:6360: $lt_compile\"" >&5)
6361    (eval "$lt_compile" 2>conftest.err)
6362    ac_status=$?
6363    cat conftest.err >&5
6364    echo "$as_me:6364: \$? = $ac_status" >&5
6365    if (exit $ac_status) && test -s "$ac_outfile"; then
6366      # The compiler can only warn and ignore the option if not recognized
6367      # So say no if there are warnings
6368      if test ! -s conftest.err; then
6369        lt_prog_compiler_pic_works=yes
6370      fi
6371    fi
6372    $rm conftest*
6373
6374 fi
6375 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6376 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6377
6378 if test x"$lt_prog_compiler_pic_works" = xyes; then
6379     case $lt_prog_compiler_pic in
6380      "" | " "*) ;;
6381      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6382      esac
6383 else
6384     lt_prog_compiler_pic=
6385      lt_prog_compiler_can_build_shared=no
6386 fi
6387
6388 fi
6389 case "$host_os" in
6390   # For platforms which do not support PIC, -DPIC is meaningless:
6391   *djgpp*)
6392     lt_prog_compiler_pic=
6393     ;;
6394   *)
6395     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6396     ;;
6397 esac
6398
6399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6401 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   lt_cv_prog_compiler_c_o=no
6405    $rm -r conftest 2>/dev/null
6406    mkdir conftest
6407    cd conftest
6408    mkdir out
6409    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6410
6411    lt_compiler_flag="-o out/conftest2.$ac_objext"
6412    # Insert the option either (1) after the last *FLAGS variable, or
6413    # (2) before a word containing "conftest.", or (3) at the end.
6414    # Note that $ac_compile itself does not contain backslashes and begins
6415    # with a dollar sign (not a hyphen), so the echo should work correctly.
6416    lt_compile=`echo "$ac_compile" | $SED \
6417    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419    -e 's:$: $lt_compiler_flag:'`
6420    (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
6421    (eval "$lt_compile" 2>out/conftest.err)
6422    ac_status=$?
6423    cat out/conftest.err >&5
6424    echo "$as_me:6424: \$? = $ac_status" >&5
6425    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6426    then
6427      # The compiler can only warn and ignore the option if not recognized
6428      # So say no if there are warnings
6429      if test ! -s out/conftest.err; then
6430        lt_cv_prog_compiler_c_o=yes
6431      fi
6432    fi
6433    chmod u+w .
6434    $rm conftest*
6435    # SGI C++ compiler will create directory out/ii_files/ for
6436    # template instantiation
6437    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6438    $rm out/* && rmdir out
6439    cd ..
6440    rmdir conftest
6441    $rm conftest*
6442
6443 fi
6444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6445 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6446
6447
6448 hard_links="nottested"
6449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6450   # do not overwrite the value of need_locks provided by the user
6451   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6452 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6453   hard_links=yes
6454   $rm conftest*
6455   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6456   touch conftest.a
6457   ln conftest.a conftest.b 2>&5 || hard_links=no
6458   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6459   echo "$as_me:$LINENO: result: $hard_links" >&5
6460 echo "${ECHO_T}$hard_links" >&6
6461   if test "$hard_links" = no; then
6462     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6463 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6464     need_locks=warn
6465   fi
6466 else
6467   need_locks=no
6468 fi
6469
6470 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6471 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6472
6473   runpath_var=
6474   allow_undefined_flag=
6475   enable_shared_with_static_runtimes=no
6476   archive_cmds=
6477   archive_expsym_cmds=
6478   old_archive_From_new_cmds=
6479   old_archive_from_expsyms_cmds=
6480   export_dynamic_flag_spec=
6481   whole_archive_flag_spec=
6482   thread_safe_flag_spec=
6483   hardcode_libdir_flag_spec=
6484   hardcode_libdir_flag_spec_ld=
6485   hardcode_libdir_separator=
6486   hardcode_direct=no
6487   hardcode_minus_L=no
6488   hardcode_shlibpath_var=unsupported
6489   link_all_deplibs=unknown
6490   hardcode_automatic=no
6491   module_cmds=
6492   module_expsym_cmds=
6493   always_export_symbols=no
6494   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6495   # include_expsyms should be a list of space-separated symbols to be *always*
6496   # included in the symbol list
6497   include_expsyms=
6498   # exclude_expsyms can be an extended regexp of symbols to exclude
6499   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6500   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6501   # as well as any symbol that contains `d'.
6502   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6503   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6504   # platforms (ab)use it in PIC code, but their linkers get confused if
6505   # the symbol is explicitly referenced.  Since portable code cannot
6506   # rely on this symbol name, it's probably fine to never include it in
6507   # preloaded symbol tables.
6508   extract_expsyms_cmds=
6509
6510   case $host_os in
6511   cygwin* | mingw* | pw32*)
6512     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6513     # When not using gcc, we currently assume that we are using
6514     # Microsoft Visual C++.
6515     if test "$GCC" != yes; then
6516       with_gnu_ld=no
6517     fi
6518     ;;
6519   openbsd*)
6520     with_gnu_ld=no
6521     ;;
6522   esac
6523
6524   ld_shlibs=yes
6525   if test "$with_gnu_ld" = yes; then
6526     # If archive_cmds runs LD, not CC, wlarc should be empty
6527     wlarc='${wl}'
6528
6529     # See if GNU ld supports shared libraries.
6530     case $host_os in
6531     aix3* | aix4* | aix5*)
6532       # On AIX/PPC, the GNU linker is very broken
6533       if test "$host_cpu" != ia64; then
6534         ld_shlibs=no
6535         cat <<EOF 1>&2
6536
6537 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6538 *** to be unable to reliably create shared libraries on AIX.
6539 *** Therefore, libtool is disabling shared libraries support.  If you
6540 *** really care for shared libraries, you may want to modify your PATH
6541 *** so that a non-GNU linker is found, and then restart.
6542
6543 EOF
6544       fi
6545       ;;
6546
6547     amigaos*)
6548       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)'
6549       hardcode_libdir_flag_spec='-L$libdir'
6550       hardcode_minus_L=yes
6551
6552       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6553       # that the semantics of dynamic libraries on AmigaOS, at least up
6554       # to version 4, is to share data among multiple programs linked
6555       # with the same dynamic library.  Since this doesn't match the
6556       # behavior of shared libraries on other platforms, we can't use
6557       # them.
6558       ld_shlibs=no
6559       ;;
6560
6561     beos*)
6562       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6563         allow_undefined_flag=unsupported
6564         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6565         # support --undefined.  This deserves some investigation.  FIXME
6566         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6567       else
6568         ld_shlibs=no
6569       fi
6570       ;;
6571
6572     cygwin* | mingw* | pw32*)
6573       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6574       # as there is no search path for DLLs.
6575       hardcode_libdir_flag_spec='-L$libdir'
6576       allow_undefined_flag=unsupported
6577       always_export_symbols=no
6578       enable_shared_with_static_runtimes=yes
6579       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6580
6581       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6582         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6583         # If the export-symbols file already is a .def file (1st line
6584         # is EXPORTS), use it as is; otherwise, prepend...
6585         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6586           cp $export_symbols $output_objdir/$soname.def;
6587         else
6588           echo EXPORTS > $output_objdir/$soname.def;
6589           cat $export_symbols >> $output_objdir/$soname.def;
6590         fi~
6591         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6592       else
6593         ld_shlibs=no
6594       fi
6595       ;;
6596
6597     netbsd*)
6598       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6599         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6600         wlarc=
6601       else
6602         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6603         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6604       fi
6605       ;;
6606
6607     solaris* | sysv5*)
6608       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6609         ld_shlibs=no
6610         cat <<EOF 1>&2
6611
6612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6613 *** create shared libraries on Solaris systems.  Therefore, libtool
6614 *** is disabling shared libraries support.  We urge you to upgrade GNU
6615 *** binutils to release 2.9.1 or newer.  Another option is to modify
6616 *** your PATH or compiler configuration so that the native linker is
6617 *** used, and then restart.
6618
6619 EOF
6620       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6621         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6622         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6623       else
6624         ld_shlibs=no
6625       fi
6626       ;;
6627
6628     sunos4*)
6629       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6630       wlarc=
6631       hardcode_direct=yes
6632       hardcode_shlibpath_var=no
6633       ;;
6634
6635   linux*)
6636     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6637         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6638         archive_cmds="$tmp_archive_cmds"
6639       supports_anon_versioning=no
6640       case `$LD -v 2>/dev/null` in
6641         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6642         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6643         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6644         *\ 2.11.*) ;; # other 2.11 versions
6645         *) supports_anon_versioning=yes ;;
6646       esac
6647       if test $supports_anon_versioning = yes; then
6648         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6650 $echo "local: *; };" >> $output_objdir/$libname.ver~
6651         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6652       else
6653         archive_expsym_cmds="$tmp_archive_cmds"
6654       fi
6655     else
6656       ld_shlibs=no
6657     fi
6658     ;;
6659
6660     *)
6661       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6662         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6663         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6664       else
6665         ld_shlibs=no
6666       fi
6667       ;;
6668     esac
6669
6670     if test "$ld_shlibs" = yes; then
6671       runpath_var=LD_RUN_PATH
6672       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6673       export_dynamic_flag_spec='${wl}--export-dynamic'
6674       # ancient GNU ld didn't support --whole-archive et. al.
6675       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6676         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6677       else
6678         whole_archive_flag_spec=
6679       fi
6680     fi
6681   else
6682     # PORTME fill in a description of your system's linker (not GNU ld)
6683     case $host_os in
6684     aix3*)
6685       allow_undefined_flag=unsupported
6686       always_export_symbols=yes
6687       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'
6688       # Note: this linker hardcodes the directories in LIBPATH if there
6689       # are no directories specified by -L.
6690       hardcode_minus_L=yes
6691       if test "$GCC" = yes && test -z "$link_static_flag"; then
6692         # Neither direct hardcoding nor static linking is supported with a
6693         # broken collect2.
6694         hardcode_direct=unsupported
6695       fi
6696       ;;
6697
6698     aix4* | aix5*)
6699       if test "$host_cpu" = ia64; then
6700         # On IA64, the linker does run time linking by default, so we don't
6701         # have to do anything special.
6702         aix_use_runtimelinking=no
6703         exp_sym_flag='-Bexport'
6704         no_entry_flag=""
6705       else
6706         # If we're using GNU nm, then we don't want the "-C" option.
6707         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6708         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6709           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'
6710         else
6711           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'
6712         fi
6713         aix_use_runtimelinking=no
6714
6715         # Test if we are trying to use run time linking or normal
6716         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6717         # need to do runtime linking.
6718         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6719           for ld_flag in $LDFLAGS; do
6720           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6721             aix_use_runtimelinking=yes
6722             break
6723           fi
6724           done
6725         esac
6726
6727         exp_sym_flag='-bexport'
6728         no_entry_flag='-bnoentry'
6729       fi
6730
6731       # When large executables or shared objects are built, AIX ld can
6732       # have problems creating the table of contents.  If linking a library
6733       # or program results in "error TOC overflow" add -mminimal-toc to
6734       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6735       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6736
6737       archive_cmds=''
6738       hardcode_direct=yes
6739       hardcode_libdir_separator=':'
6740       link_all_deplibs=yes
6741
6742       if test "$GCC" = yes; then
6743         case $host_os in aix4.012|aix4.012.*)
6744         # We only want to do this on AIX 4.2 and lower, the check
6745         # below for broken collect2 doesn't work under 4.3+
6746           collect2name=`${CC} -print-prog-name=collect2`
6747           if test -f "$collect2name" && \
6748            strings "$collect2name" | grep resolve_lib_name >/dev/null
6749           then
6750           # We have reworked collect2
6751           hardcode_direct=yes
6752           else
6753           # We have old collect2
6754           hardcode_direct=unsupported
6755           # It fails to find uninstalled libraries when the uninstalled
6756           # path is not listed in the libpath.  Setting hardcode_minus_L
6757           # to unsupported forces relinking
6758           hardcode_minus_L=yes
6759           hardcode_libdir_flag_spec='-L$libdir'
6760           hardcode_libdir_separator=
6761           fi
6762         esac
6763         shared_flag='-shared'
6764       else
6765         # not using gcc
6766         if test "$host_cpu" = ia64; then
6767         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6768         # chokes on -Wl,-G. The following line is correct:
6769           shared_flag='-G'
6770         else
6771         if test "$aix_use_runtimelinking" = yes; then
6772             shared_flag='${wl}-G'
6773           else
6774             shared_flag='${wl}-bM:SRE'
6775         fi
6776         fi
6777       fi
6778
6779       # It seems that -bexpall does not export symbols beginning with
6780       # underscore (_), so it is better to generate a list of symbols to export.
6781       always_export_symbols=yes
6782       if test "$aix_use_runtimelinking" = yes; then
6783         # Warning - without using the other runtime loading flags (-brtl),
6784         # -berok will link without error, but may produce a broken library.
6785         allow_undefined_flag='-berok'
6786        # Determine the default libpath from the value encoded in an empty executable.
6787        cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793
6794 int
6795 main ()
6796 {
6797
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest.$ac_objext conftest$ac_exeext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804   (eval $ac_link) 2>conftest.er1
6805   ac_status=$?
6806   grep -v '^ *+' conftest.er1 >conftest.err
6807   rm -f conftest.er1
6808   cat conftest.err >&5
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); } &&
6811          { ac_try='test -z "$ac_c_werror_flag"
6812                          || test ! -s conftest.err'
6813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814   (eval $ac_try) 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); }; } &&
6818          { ac_try='test -s conftest$ac_exeext'
6819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820   (eval $ac_try) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); }; }; then
6824
6825 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6826 }'`
6827 # Check for a 64-bit object if we didn't find anything.
6828 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; }
6829 }'`; fi
6830 else
6831   echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6833
6834 fi
6835 rm -f conftest.err conftest.$ac_objext \
6836       conftest$ac_exeext conftest.$ac_ext
6837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6838
6839        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6840         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"
6841        else
6842         if test "$host_cpu" = ia64; then
6843           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6844           allow_undefined_flag="-z nodefs"
6845           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"
6846         else
6847          # Determine the default libpath from the value encoded in an empty executable.
6848          cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h.  */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h.  */
6854
6855 int
6856 main ()
6857 {
6858
6859   ;
6860   return 0;
6861 }
6862 _ACEOF
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865   (eval $ac_link) 2>conftest.er1
6866   ac_status=$?
6867   grep -v '^ *+' conftest.er1 >conftest.err
6868   rm -f conftest.er1
6869   cat conftest.err >&5
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); } &&
6872          { ac_try='test -z "$ac_c_werror_flag"
6873                          || test ! -s conftest.err'
6874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875   (eval $ac_try) 2>&5
6876   ac_status=$?
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); }; } &&
6879          { ac_try='test -s conftest$ac_exeext'
6880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881   (eval $ac_try) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); }; }; then
6885
6886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6887 }'`
6888 # Check for a 64-bit object if we didn't find anything.
6889 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; }
6890 }'`; fi
6891 else
6892   echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6894
6895 fi
6896 rm -f conftest.err conftest.$ac_objext \
6897       conftest$ac_exeext conftest.$ac_ext
6898 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6899
6900          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6901           # Warning - without using the other run time loading flags,
6902           # -berok will link without error, but may produce a broken library.
6903           no_undefined_flag=' ${wl}-bernotok'
6904           allow_undefined_flag=' ${wl}-berok'
6905           # -bexpall does not export symbols beginning with underscore (_)
6906           always_export_symbols=yes
6907           # Exported symbols can be pulled into shared objects from archives
6908           whole_archive_flag_spec=' '
6909           archive_cmds_need_lc=yes
6910           # This is similar to how AIX traditionally builds it's shared libraries.
6911           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'
6912         fi
6913       fi
6914       ;;
6915
6916     amigaos*)
6917       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)'
6918       hardcode_libdir_flag_spec='-L$libdir'
6919       hardcode_minus_L=yes
6920       # see comment about different semantics on the GNU ld section
6921       ld_shlibs=no
6922       ;;
6923
6924     bsdi[45]*)
6925       export_dynamic_flag_spec=-rdynamic
6926       ;;
6927
6928     cygwin* | mingw* | pw32*)
6929       # When not using gcc, we currently assume that we are using
6930       # Microsoft Visual C++.
6931       # hardcode_libdir_flag_spec is actually meaningless, as there is
6932       # no search path for DLLs.
6933       hardcode_libdir_flag_spec=' '
6934       allow_undefined_flag=unsupported
6935       # Tell ltmain to make .lib files, not .a files.
6936       libext=lib
6937       # Tell ltmain to make .dll files, not .so files.
6938       shrext_cmds=".dll"
6939       # FIXME: Setting linknames here is a bad hack.
6940       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6941       # The linker will automatically build a .lib file if we build a DLL.
6942       old_archive_From_new_cmds='true'
6943       # FIXME: Should let the user specify the lib program.
6944       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6945       fix_srcfile_path='`cygpath -w "$srcfile"`'
6946       enable_shared_with_static_runtimes=yes
6947       ;;
6948
6949     darwin* | rhapsody*)
6950       case "$host_os" in
6951         rhapsody* | darwin1.[012])
6952          allow_undefined_flag='${wl}-undefined ${wl}suppress'
6953          ;;
6954        *) # Darwin 1.3 on
6955          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6956            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6957          else
6958            case ${MACOSX_DEPLOYMENT_TARGET} in
6959              10.[012])
6960                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6961                ;;
6962              10.*)
6963                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6964                ;;
6965            esac
6966          fi
6967          ;;
6968       esac
6969       archive_cmds_need_lc=no
6970       hardcode_direct=no
6971       hardcode_automatic=yes
6972       hardcode_shlibpath_var=unsupported
6973       whole_archive_flag_spec=''
6974       link_all_deplibs=yes
6975     if test "$GCC" = yes ; then
6976         output_verbose_link_cmd='echo'
6977         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6978       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6979       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6980       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}'
6981       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}'
6982     else
6983       case "$cc_basename" in
6984         xlc*)
6985          output_verbose_link_cmd='echo'
6986          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6987          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6988           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6989          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}'
6990           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}'
6991           ;;
6992        *)
6993          ld_shlibs=no
6994           ;;
6995       esac
6996     fi
6997       ;;
6998
6999     dgux*)
7000       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7001       hardcode_libdir_flag_spec='-L$libdir'
7002       hardcode_shlibpath_var=no
7003       ;;
7004
7005     freebsd1*)
7006       ld_shlibs=no
7007       ;;
7008
7009     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7010     # support.  Future versions do this automatically, but an explicit c++rt0.o
7011     # does not break anything, and helps significantly (at the cost of a little
7012     # extra space).
7013     freebsd2.2*)
7014       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7015       hardcode_libdir_flag_spec='-R$libdir'
7016       hardcode_direct=yes
7017       hardcode_shlibpath_var=no
7018       ;;
7019
7020     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7021     freebsd2*)
7022       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7023       hardcode_direct=yes
7024       hardcode_minus_L=yes
7025       hardcode_shlibpath_var=no
7026       ;;
7027
7028     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7029     freebsd* | kfreebsd*-gnu)
7030       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7031       hardcode_libdir_flag_spec='-R$libdir'
7032       hardcode_direct=yes
7033       hardcode_shlibpath_var=no
7034       ;;
7035
7036     hpux9*)
7037       if test "$GCC" = yes; then
7038         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'
7039       else
7040         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'
7041       fi
7042       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7043       hardcode_libdir_separator=:
7044       hardcode_direct=yes
7045
7046       # hardcode_minus_L: Not really in the search PATH,
7047       # but as the default location of the library.
7048       hardcode_minus_L=yes
7049       export_dynamic_flag_spec='${wl}-E'
7050       ;;
7051
7052     hpux10* | hpux11*)
7053       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7054         case "$host_cpu" in
7055         hppa*64*|ia64*)
7056           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7057           ;;
7058         *)
7059           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7060           ;;
7061         esac
7062       else
7063         case "$host_cpu" in
7064         hppa*64*|ia64*)
7065           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7066           ;;
7067         *)
7068           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7069           ;;
7070         esac
7071       fi
7072       if test "$with_gnu_ld" = no; then
7073         case "$host_cpu" in
7074         hppa*64*)
7075           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7076           hardcode_libdir_flag_spec_ld='+b $libdir'
7077           hardcode_libdir_separator=:
7078           hardcode_direct=no
7079           hardcode_shlibpath_var=no
7080           ;;
7081         ia64*)
7082           hardcode_libdir_flag_spec='-L$libdir'
7083           hardcode_direct=no
7084           hardcode_shlibpath_var=no
7085
7086           # hardcode_minus_L: Not really in the search PATH,
7087           # but as the default location of the library.
7088           hardcode_minus_L=yes
7089           ;;
7090         *)
7091           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7092           hardcode_libdir_separator=:
7093           hardcode_direct=yes
7094           export_dynamic_flag_spec='${wl}-E'
7095
7096           # hardcode_minus_L: Not really in the search PATH,
7097           # but as the default location of the library.
7098           hardcode_minus_L=yes
7099           ;;
7100         esac
7101       fi
7102       ;;
7103
7104     irix5* | irix6* | nonstopux*)
7105       if test "$GCC" = yes; then
7106         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'
7107       else
7108         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'
7109         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7110       fi
7111       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7112       hardcode_libdir_separator=:
7113       link_all_deplibs=yes
7114       ;;
7115
7116     netbsd*)
7117       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7118         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7119       else
7120         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7121       fi
7122       hardcode_libdir_flag_spec='-R$libdir'
7123       hardcode_direct=yes
7124       hardcode_shlibpath_var=no
7125       ;;
7126
7127     newsos6)
7128       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7129       hardcode_direct=yes
7130       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7131       hardcode_libdir_separator=:
7132       hardcode_shlibpath_var=no
7133       ;;
7134
7135     openbsd*)
7136       hardcode_direct=yes
7137       hardcode_shlibpath_var=no
7138       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7139         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7140         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7141         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7142         export_dynamic_flag_spec='${wl}-E'
7143       else
7144        case $host_os in
7145          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7146            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7147            hardcode_libdir_flag_spec='-R$libdir'
7148            ;;
7149          *)
7150            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7151            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7152            ;;
7153        esac
7154       fi
7155       ;;
7156
7157     os2*)
7158       hardcode_libdir_flag_spec='-L$libdir'
7159       hardcode_minus_L=yes
7160       allow_undefined_flag=unsupported
7161       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'
7162       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7163       ;;
7164
7165     osf3*)
7166       if test "$GCC" = yes; then
7167         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7168         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'
7169       else
7170         allow_undefined_flag=' -expect_unresolved \*'
7171         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'
7172       fi
7173       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7174       hardcode_libdir_separator=:
7175       ;;
7176
7177     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7178       if test "$GCC" = yes; then
7179         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7180         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'
7181         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7182       else
7183         allow_undefined_flag=' -expect_unresolved \*'
7184         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'
7185         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7186         $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'
7187
7188         # Both c and cxx compiler support -rpath directly
7189         hardcode_libdir_flag_spec='-rpath $libdir'
7190       fi
7191       hardcode_libdir_separator=:
7192       ;;
7193
7194     sco3.2v5*)
7195       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7196       hardcode_shlibpath_var=no
7197       export_dynamic_flag_spec='${wl}-Bexport'
7198       runpath_var=LD_RUN_PATH
7199       hardcode_runpath_var=yes
7200       ;;
7201
7202     solaris*)
7203       no_undefined_flag=' -z text'
7204       if test "$GCC" = yes; then
7205         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7206         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7207           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7208       else
7209         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7210         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7211         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7212       fi
7213       hardcode_libdir_flag_spec='-R$libdir'
7214       hardcode_shlibpath_var=no
7215       case $host_os in
7216       solaris2.[0-5] | solaris2.[0-5].*) ;;
7217       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7218         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7219       esac
7220       link_all_deplibs=yes
7221       ;;
7222
7223     sunos4*)
7224       if test "x$host_vendor" = xsequent; then
7225         # Use $CC to link under sequent, because it throws in some extra .o
7226         # files that make .init and .fini sections work.
7227         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7228       else
7229         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7230       fi
7231       hardcode_libdir_flag_spec='-L$libdir'
7232       hardcode_direct=yes
7233       hardcode_minus_L=yes
7234       hardcode_shlibpath_var=no
7235       ;;
7236
7237     sysv4)
7238       case $host_vendor in
7239         sni)
7240           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7241           hardcode_direct=yes # is this really true???
7242         ;;
7243         siemens)
7244           ## LD is ld it makes a PLAMLIB
7245           ## CC just makes a GrossModule.
7246           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7247           reload_cmds='$CC -r -o $output$reload_objs'
7248           hardcode_direct=no
7249         ;;
7250         motorola)
7251           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7252           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7253         ;;
7254       esac
7255       runpath_var='LD_RUN_PATH'
7256       hardcode_shlibpath_var=no
7257       ;;
7258
7259     sysv4.3*)
7260       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261       hardcode_shlibpath_var=no
7262       export_dynamic_flag_spec='-Bexport'
7263       ;;
7264
7265     sysv4*MP*)
7266       if test -d /usr/nec; then
7267         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268         hardcode_shlibpath_var=no
7269         runpath_var=LD_RUN_PATH
7270         hardcode_runpath_var=yes
7271         ld_shlibs=yes
7272       fi
7273       ;;
7274
7275     sysv4.2uw2*)
7276       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7277       hardcode_direct=yes
7278       hardcode_minus_L=no
7279       hardcode_shlibpath_var=no
7280       hardcode_runpath_var=yes
7281       runpath_var=LD_RUN_PATH
7282       ;;
7283
7284    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7285       no_undefined_flag='${wl}-z ${wl}text'
7286       if test "$GCC" = yes; then
7287         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7288       else
7289         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7290       fi
7291       runpath_var='LD_RUN_PATH'
7292       hardcode_shlibpath_var=no
7293       ;;
7294
7295     sysv5*)
7296       no_undefined_flag=' -z text'
7297       # $CC -shared without GNU ld will not create a library from C++
7298       # object files and a static libstdc++, better avoid it by now
7299       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7300       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7301                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7302       hardcode_libdir_flag_spec=
7303       hardcode_shlibpath_var=no
7304       runpath_var='LD_RUN_PATH'
7305       ;;
7306
7307     uts4*)
7308       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309       hardcode_libdir_flag_spec='-L$libdir'
7310       hardcode_shlibpath_var=no
7311       ;;
7312
7313     *)
7314       ld_shlibs=no
7315       ;;
7316     esac
7317   fi
7318
7319 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7320 echo "${ECHO_T}$ld_shlibs" >&6
7321 test "$ld_shlibs" = no && can_build_shared=no
7322
7323 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7324 if test "$GCC" = yes; then
7325   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7326 fi
7327
7328 #
7329 # Do we need to explicitly link libc?
7330 #
7331 case "x$archive_cmds_need_lc" in
7332 x|xyes)
7333   # Assume -lc should be added
7334   archive_cmds_need_lc=yes
7335
7336   if test "$enable_shared" = yes && test "$GCC" = yes; then
7337     case $archive_cmds in
7338     *'~'*)
7339       # FIXME: we may have to deal with multi-command sequences.
7340       ;;
7341     '$CC '*)
7342       # Test whether the compiler implicitly links with -lc since on some
7343       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7344       # to ld, don't add -lc before -lgcc.
7345       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7346 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7347       $rm conftest*
7348       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7349
7350       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351   (eval $ac_compile) 2>&5
7352   ac_status=$?
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); } 2>conftest.err; then
7355         soname=conftest
7356         lib=conftest
7357         libobjs=conftest.$ac_objext
7358         deplibs=
7359         wl=$lt_prog_compiler_wl
7360         compiler_flags=-v
7361         linker_flags=-v
7362         verstring=
7363         output_objdir=.
7364         libname=conftest
7365         lt_save_allow_undefined_flag=$allow_undefined_flag
7366         allow_undefined_flag=
7367         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7368   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }
7372         then
7373           archive_cmds_need_lc=no
7374         else
7375           archive_cmds_need_lc=yes
7376         fi
7377         allow_undefined_flag=$lt_save_allow_undefined_flag
7378       else
7379         cat conftest.err 1>&5
7380       fi
7381       $rm conftest*
7382       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7383 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7384       ;;
7385     esac
7386   fi
7387   ;;
7388 esac
7389
7390 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7391 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7392 library_names_spec=
7393 libname_spec='lib$name'
7394 soname_spec=
7395 shrext_cmds=".so"
7396 postinstall_cmds=
7397 postuninstall_cmds=
7398 finish_cmds=
7399 finish_eval=
7400 shlibpath_var=
7401 shlibpath_overrides_runpath=unknown
7402 version_type=none
7403 dynamic_linker="$host_os ld.so"
7404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7405 if test "$GCC" = yes; then
7406   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7407   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7408     # if the path contains ";" then we assume it to be the separator
7409     # otherwise default to the standard path separator (i.e. ":") - it is
7410     # assumed that no part of a normal pathname contains ";" but that should
7411     # okay in the real world where ";" in dirpaths is itself problematic.
7412     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7413   else
7414     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7415   fi
7416 else
7417   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7418 fi
7419 need_lib_prefix=unknown
7420 hardcode_into_libs=no
7421
7422 # when you set need_version to no, make sure it does not cause -set_version
7423 # flags to be left without arguments
7424 need_version=unknown
7425
7426 case $host_os in
7427 aix3*)
7428   version_type=linux
7429   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7430   shlibpath_var=LIBPATH
7431
7432   # AIX 3 has no versioning support, so we append a major version to the name.
7433   soname_spec='${libname}${release}${shared_ext}$major'
7434   ;;
7435
7436 aix4* | aix5*)
7437   version_type=linux
7438   need_lib_prefix=no
7439   need_version=no
7440   hardcode_into_libs=yes
7441   if test "$host_cpu" = ia64; then
7442     # AIX 5 supports IA64
7443     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7444     shlibpath_var=LD_LIBRARY_PATH
7445   else
7446     # With GCC up to 2.95.x, collect2 would create an import file
7447     # for dependence libraries.  The import file would start with
7448     # the line `#! .'.  This would cause the generated library to
7449     # depend on `.', always an invalid library.  This was fixed in
7450     # development snapshots of GCC prior to 3.0.
7451     case $host_os in
7452       aix4 | aix4.[01] | aix4.[01].*)
7453       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7454            echo ' yes '
7455            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7456         :
7457       else
7458         can_build_shared=no
7459       fi
7460       ;;
7461     esac
7462     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7463     # soname into executable. Probably we can add versioning support to
7464     # collect2, so additional links can be useful in future.
7465     if test "$aix_use_runtimelinking" = yes; then
7466       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7467       # instead of lib<name>.a to let people know that these are not
7468       # typical AIX shared libraries.
7469       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7470     else
7471       # We preserve .a as extension for shared libraries through AIX4.2
7472       # and later when we are not doing run time linking.
7473       library_names_spec='${libname}${release}.a $libname.a'
7474       soname_spec='${libname}${release}${shared_ext}$major'
7475     fi
7476     shlibpath_var=LIBPATH
7477   fi
7478   ;;
7479
7480 amigaos*)
7481   library_names_spec='$libname.ixlibrary $libname.a'
7482   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7483   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'
7484   ;;
7485
7486 beos*)
7487   library_names_spec='${libname}${shared_ext}'
7488   dynamic_linker="$host_os ld.so"
7489   shlibpath_var=LIBRARY_PATH
7490   ;;
7491
7492 bsdi[45]*)
7493   version_type=linux
7494   need_version=no
7495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7496   soname_spec='${libname}${release}${shared_ext}$major'
7497   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7498   shlibpath_var=LD_LIBRARY_PATH
7499   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7500   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7501   # the default ld.so.conf also contains /usr/contrib/lib and
7502   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7503   # libtool to hard-code these into programs
7504   ;;
7505
7506 cygwin* | mingw* | pw32*)
7507   version_type=windows
7508   shrext_cmds=".dll"
7509   need_version=no
7510   need_lib_prefix=no
7511
7512   case $GCC,$host_os in
7513   yes,cygwin* | yes,mingw* | yes,pw32*)
7514     library_names_spec='$libname.dll.a'
7515     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7516     postinstall_cmds='base_file=`basename \${file}`~
7517       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7518       dldir=$destdir/`dirname \$dlpath`~
7519       test -d \$dldir || mkdir -p \$dldir~
7520       $install_prog $dir/$dlname \$dldir/$dlname'
7521     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7522       dlpath=$dir/\$dldll~
7523        $rm \$dlpath'
7524     shlibpath_overrides_runpath=yes
7525
7526     case $host_os in
7527     cygwin*)
7528       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7529       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7530       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7531       ;;
7532     mingw*)
7533       # MinGW DLLs use traditional 'lib' prefix
7534       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7535       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7536       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7537         # It is most probably a Windows format PATH printed by
7538         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7539         # path with ; separators, and with drive letters. We can handle the
7540         # drive letters (cygwin fileutils understands them), so leave them,
7541         # especially as we might pass files found there to a mingw objdump,
7542         # which wouldn't understand a cygwinified path. Ahh.
7543         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7544       else
7545         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7546       fi
7547       ;;
7548     pw32*)
7549       # pw32 DLLs use 'pw' prefix rather than 'lib'
7550       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7551       ;;
7552     esac
7553     ;;
7554
7555   *)
7556     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7557     ;;
7558   esac
7559   dynamic_linker='Win32 ld.exe'
7560   # FIXME: first we should search . and the directory the executable is in
7561   shlibpath_var=PATH
7562   ;;
7563
7564 darwin* | rhapsody*)
7565   dynamic_linker="$host_os dyld"
7566   version_type=darwin
7567   need_lib_prefix=no
7568   need_version=no
7569   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7570   soname_spec='${libname}${release}${major}$shared_ext'
7571   shlibpath_overrides_runpath=yes
7572   shlibpath_var=DYLD_LIBRARY_PATH
7573   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7574   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7575   if test "$GCC" = yes; then
7576     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"`
7577   else
7578     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7579   fi
7580   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7581   ;;
7582
7583 dgux*)
7584   version_type=linux
7585   need_lib_prefix=no
7586   need_version=no
7587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7588   soname_spec='${libname}${release}${shared_ext}$major'
7589   shlibpath_var=LD_LIBRARY_PATH
7590   ;;
7591
7592 freebsd1*)
7593   dynamic_linker=no
7594   ;;
7595
7596 kfreebsd*-gnu)
7597   version_type=linux
7598   need_lib_prefix=no
7599   need_version=no
7600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7601   soname_spec='${libname}${release}${shared_ext}$major'
7602   shlibpath_var=LD_LIBRARY_PATH
7603   shlibpath_overrides_runpath=no
7604   hardcode_into_libs=yes
7605   dynamic_linker='GNU ld.so'
7606   ;;
7607
7608 freebsd*)
7609   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7610   version_type=freebsd-$objformat
7611   case $version_type in
7612     freebsd-elf*)
7613       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7614       need_version=no
7615       need_lib_prefix=no
7616       ;;
7617     freebsd-*)
7618       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7619       need_version=yes
7620       ;;
7621   esac
7622   shlibpath_var=LD_LIBRARY_PATH
7623   case $host_os in
7624   freebsd2*)
7625     shlibpath_overrides_runpath=yes
7626     ;;
7627   freebsd3.01* | freebsdelf3.01*)
7628     shlibpath_overrides_runpath=yes
7629     hardcode_into_libs=yes
7630     ;;
7631   *) # from 3.2 on
7632     shlibpath_overrides_runpath=no
7633     hardcode_into_libs=yes
7634     ;;
7635   esac
7636   ;;
7637
7638 gnu*)
7639   version_type=linux
7640   need_lib_prefix=no
7641   need_version=no
7642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7643   soname_spec='${libname}${release}${shared_ext}$major'
7644   shlibpath_var=LD_LIBRARY_PATH
7645   hardcode_into_libs=yes
7646   ;;
7647
7648 hpux9* | hpux10* | hpux11*)
7649   # Give a soname corresponding to the major version so that dld.sl refuses to
7650   # link against other versions.
7651   version_type=sunos
7652   need_lib_prefix=no
7653   need_version=no
7654   case "$host_cpu" in
7655   ia64*)
7656     shrext_cmds='.so'
7657     hardcode_into_libs=yes
7658     dynamic_linker="$host_os dld.so"
7659     shlibpath_var=LD_LIBRARY_PATH
7660     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7662     soname_spec='${libname}${release}${shared_ext}$major'
7663     if test "X$HPUX_IA64_MODE" = X32; then
7664       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7665     else
7666       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7667     fi
7668     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7669     ;;
7670    hppa*64*)
7671      shrext_cmds='.sl'
7672      hardcode_into_libs=yes
7673      dynamic_linker="$host_os dld.sl"
7674      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7675      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7676      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677      soname_spec='${libname}${release}${shared_ext}$major'
7678      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7679      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7680      ;;
7681    *)
7682     shrext_cmds='.sl'
7683     dynamic_linker="$host_os dld.sl"
7684     shlibpath_var=SHLIB_PATH
7685     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7687     soname_spec='${libname}${release}${shared_ext}$major'
7688     ;;
7689   esac
7690   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7691   postinstall_cmds='chmod 555 $lib'
7692   ;;
7693
7694 irix5* | irix6* | nonstopux*)
7695   case $host_os in
7696     nonstopux*) version_type=nonstopux ;;
7697     *)
7698         if test "$lt_cv_prog_gnu_ld" = yes; then
7699                 version_type=linux
7700         else
7701                 version_type=irix
7702         fi ;;
7703   esac
7704   need_lib_prefix=no
7705   need_version=no
7706   soname_spec='${libname}${release}${shared_ext}$major'
7707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7708   case $host_os in
7709   irix5* | nonstopux*)
7710     libsuff= shlibsuff=
7711     ;;
7712   *)
7713     case $LD in # libtool.m4 will add one of these switches to LD
7714     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7715       libsuff= shlibsuff= libmagic=32-bit;;
7716     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7717       libsuff=32 shlibsuff=N32 libmagic=N32;;
7718     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7719       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7720     *) libsuff= shlibsuff= libmagic=never-match;;
7721     esac
7722     ;;
7723   esac
7724   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7725   shlibpath_overrides_runpath=no
7726   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7727   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7728   hardcode_into_libs=yes
7729   ;;
7730
7731 # No shared lib support for Linux oldld, aout, or coff.
7732 linux*oldld* | linux*aout* | linux*coff*)
7733   dynamic_linker=no
7734   ;;
7735
7736 # This must be Linux ELF.
7737 linux*)
7738   version_type=linux
7739   need_lib_prefix=no
7740   need_version=no
7741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7742   soname_spec='${libname}${release}${shared_ext}$major'
7743   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7744   shlibpath_var=LD_LIBRARY_PATH
7745   shlibpath_overrides_runpath=no
7746   # This implies no fast_install, which is unacceptable.
7747   # Some rework will be needed to allow for fast_install
7748   # before this can be enabled.
7749   hardcode_into_libs=yes
7750
7751   # Append ld.so.conf contents to the search path
7752   if test -f /etc/ld.so.conf; then
7753     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7754     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7755   fi
7756
7757   # We used to test for /lib/ld.so.1 and disable shared libraries on
7758   # powerpc, because MkLinux only supported shared libraries with the
7759   # GNU dynamic linker.  Since this was broken with cross compilers,
7760   # most powerpc-linux boxes support dynamic linking these days and
7761   # people can always --disable-shared, the test was removed, and we
7762   # assume the GNU/Linux dynamic linker is in use.
7763   dynamic_linker='GNU/Linux ld.so'
7764   ;;
7765
7766 knetbsd*-gnu)
7767   version_type=linux
7768   need_lib_prefix=no
7769   need_version=no
7770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7771   soname_spec='${libname}${release}${shared_ext}$major'
7772   shlibpath_var=LD_LIBRARY_PATH
7773   shlibpath_overrides_runpath=no
7774   hardcode_into_libs=yes
7775   dynamic_linker='GNU ld.so'
7776   ;;
7777
7778 netbsd*)
7779   version_type=sunos
7780   need_lib_prefix=no
7781   need_version=no
7782   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7784     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7785     dynamic_linker='NetBSD (a.out) ld.so'
7786   else
7787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7788     soname_spec='${libname}${release}${shared_ext}$major'
7789     dynamic_linker='NetBSD ld.elf_so'
7790   fi
7791   shlibpath_var=LD_LIBRARY_PATH
7792   shlibpath_overrides_runpath=yes
7793   hardcode_into_libs=yes
7794   ;;
7795
7796 newsos6)
7797   version_type=linux
7798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7799   shlibpath_var=LD_LIBRARY_PATH
7800   shlibpath_overrides_runpath=yes
7801   ;;
7802
7803 nto-qnx*)
7804   version_type=linux
7805   need_lib_prefix=no
7806   need_version=no
7807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808   soname_spec='${libname}${release}${shared_ext}$major'
7809   shlibpath_var=LD_LIBRARY_PATH
7810   shlibpath_overrides_runpath=yes
7811   ;;
7812
7813 openbsd*)
7814   version_type=sunos
7815   need_lib_prefix=no
7816   need_version=no
7817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7818   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7819   shlibpath_var=LD_LIBRARY_PATH
7820   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7821     case $host_os in
7822       openbsd2.[89] | openbsd2.[89].*)
7823         shlibpath_overrides_runpath=no
7824         ;;
7825       *)
7826         shlibpath_overrides_runpath=yes
7827         ;;
7828       esac
7829   else
7830     shlibpath_overrides_runpath=yes
7831   fi
7832   ;;
7833
7834 os2*)
7835   libname_spec='$name'
7836   shrext_cmds=".dll"
7837   need_lib_prefix=no
7838   library_names_spec='$libname${shared_ext} $libname.a'
7839   dynamic_linker='OS/2 ld.exe'
7840   shlibpath_var=LIBPATH
7841   ;;
7842
7843 osf3* | osf4* | osf5*)
7844   version_type=osf
7845   need_lib_prefix=no
7846   need_version=no
7847   soname_spec='${libname}${release}${shared_ext}$major'
7848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849   shlibpath_var=LD_LIBRARY_PATH
7850   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7851   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7852   ;;
7853
7854 sco3.2v5*)
7855   version_type=osf
7856   soname_spec='${libname}${release}${shared_ext}$major'
7857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858   shlibpath_var=LD_LIBRARY_PATH
7859   ;;
7860
7861 solaris*)
7862   version_type=linux
7863   need_lib_prefix=no
7864   need_version=no
7865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866   soname_spec='${libname}${release}${shared_ext}$major'
7867   shlibpath_var=LD_LIBRARY_PATH
7868   shlibpath_overrides_runpath=yes
7869   hardcode_into_libs=yes
7870   # ldd complains unless libraries are executable
7871   postinstall_cmds='chmod +x $lib'
7872   ;;
7873
7874 sunos4*)
7875   version_type=sunos
7876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7877   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7878   shlibpath_var=LD_LIBRARY_PATH
7879   shlibpath_overrides_runpath=yes
7880   if test "$with_gnu_ld" = yes; then
7881     need_lib_prefix=no
7882   fi
7883   need_version=yes
7884   ;;
7885
7886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7887   version_type=linux
7888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889   soname_spec='${libname}${release}${shared_ext}$major'
7890   shlibpath_var=LD_LIBRARY_PATH
7891   case $host_vendor in
7892     sni)
7893       shlibpath_overrides_runpath=no
7894       need_lib_prefix=no
7895       export_dynamic_flag_spec='${wl}-Blargedynsym'
7896       runpath_var=LD_RUN_PATH
7897       ;;
7898     siemens)
7899       need_lib_prefix=no
7900       ;;
7901     motorola)
7902       need_lib_prefix=no
7903       need_version=no
7904       shlibpath_overrides_runpath=no
7905       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7906       ;;
7907   esac
7908   ;;
7909
7910 sysv4*MP*)
7911   if test -d /usr/nec ;then
7912     version_type=linux
7913     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7914     soname_spec='$libname${shared_ext}.$major'
7915     shlibpath_var=LD_LIBRARY_PATH
7916   fi
7917   ;;
7918
7919 uts4*)
7920   version_type=linux
7921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7922   soname_spec='${libname}${release}${shared_ext}$major'
7923   shlibpath_var=LD_LIBRARY_PATH
7924   ;;
7925
7926 *)
7927   dynamic_linker=no
7928   ;;
7929 esac
7930 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7931 echo "${ECHO_T}$dynamic_linker" >&6
7932 test "$dynamic_linker" = no && can_build_shared=no
7933
7934 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7935 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7936 hardcode_action=
7937 if test -n "$hardcode_libdir_flag_spec" || \
7938    test -n "$runpath_var" || \
7939    test "X$hardcode_automatic" = "Xyes" ; then
7940
7941   # We can hardcode non-existant directories.
7942   if test "$hardcode_direct" != no &&
7943      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7944      # have to relink, otherwise we might link with an installed library
7945      # when we should be linking with a yet-to-be-installed one
7946      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7947      test "$hardcode_minus_L" != no; then
7948     # Linking always hardcodes the temporary library directory.
7949     hardcode_action=relink
7950   else
7951     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7952     hardcode_action=immediate
7953   fi
7954 else
7955   # We cannot hardcode anything, or else we can only hardcode existing
7956   # directories.
7957   hardcode_action=unsupported
7958 fi
7959 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7960 echo "${ECHO_T}$hardcode_action" >&6
7961
7962 if test "$hardcode_action" = relink; then
7963   # Fast installation is not supported
7964   enable_fast_install=no
7965 elif test "$shlibpath_overrides_runpath" = yes ||
7966      test "$enable_shared" = no; then
7967   # Fast installation is not necessary
7968   enable_fast_install=needless
7969 fi
7970
7971 striplib=
7972 old_striplib=
7973 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7974 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7975 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7976   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7977   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7978   echo "$as_me:$LINENO: result: yes" >&5
7979 echo "${ECHO_T}yes" >&6
7980 else
7981 # FIXME - insert some real tests, host_os isn't really good enough
7982   case $host_os in
7983    darwin*)
7984        if test -n "$STRIP" ; then
7985          striplib="$STRIP -x"
7986          echo "$as_me:$LINENO: result: yes" >&5
7987 echo "${ECHO_T}yes" >&6
7988        else
7989   echo "$as_me:$LINENO: result: no" >&5
7990 echo "${ECHO_T}no" >&6
7991 fi
7992        ;;
7993    *)
7994   echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6
7996     ;;
7997   esac
7998 fi
7999
8000 if test "x$enable_dlopen" != xyes; then
8001   enable_dlopen=unknown
8002   enable_dlopen_self=unknown
8003   enable_dlopen_self_static=unknown
8004 else
8005   lt_cv_dlopen=no
8006   lt_cv_dlopen_libs=
8007
8008   case $host_os in
8009   beos*)
8010     lt_cv_dlopen="load_add_on"
8011     lt_cv_dlopen_libs=
8012     lt_cv_dlopen_self=yes
8013     ;;
8014
8015   mingw* | pw32*)
8016     lt_cv_dlopen="LoadLibrary"
8017     lt_cv_dlopen_libs=
8018    ;;
8019
8020   cygwin*)
8021     lt_cv_dlopen="dlopen"
8022     lt_cv_dlopen_libs=
8023    ;;
8024
8025   darwin*)
8026   # if libdl is installed we need to link against it
8027     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8028 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8029 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   ac_check_lib_save_LIBS=$LIBS
8033 LIBS="-ldl  $LIBS"
8034 cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h.  */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h.  */
8040
8041 /* Override any gcc2 internal prototype to avoid an error.  */
8042 #ifdef __cplusplus
8043 extern "C"
8044 #endif
8045 /* We use char because int might match the return type of a gcc2
8046    builtin and then its argument prototype would still apply.  */
8047 char dlopen ();
8048 int
8049 main ()
8050 {
8051 dlopen ();
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058   (eval $ac_link) 2>conftest.er1
8059   ac_status=$?
8060   grep -v '^ *+' conftest.er1 >conftest.err
8061   rm -f conftest.er1
8062   cat conftest.err >&5
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } &&
8065          { ac_try='test -z "$ac_c_werror_flag"
8066                          || test ! -s conftest.err'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest$ac_exeext'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   ac_cv_lib_dl_dlopen=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_cv_lib_dl_dlopen=no
8084 fi
8085 rm -f conftest.err conftest.$ac_objext \
8086       conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8088 fi
8089 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8090 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8091 if test $ac_cv_lib_dl_dlopen = yes; then
8092   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8093 else
8094
8095     lt_cv_dlopen="dyld"
8096     lt_cv_dlopen_libs=
8097     lt_cv_dlopen_self=yes
8098
8099 fi
8100
8101    ;;
8102
8103   *)
8104     echo "$as_me:$LINENO: checking for shl_load" >&5
8105 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8106 if test "${ac_cv_func_shl_load+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8117 #define shl_load innocuous_shl_load
8118
8119 /* System header to define __stub macros and hopefully few prototypes,
8120     which can conflict with char shl_load (); below.
8121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8122     <limits.h> exists even on freestanding compilers.  */
8123
8124 #ifdef __STDC__
8125 # include <limits.h>
8126 #else
8127 # include <assert.h>
8128 #endif
8129
8130 #undef shl_load
8131
8132 /* Override any gcc2 internal prototype to avoid an error.  */
8133 #ifdef __cplusplus
8134 extern "C"
8135 {
8136 #endif
8137 /* We use char because int might match the return type of a gcc2
8138    builtin and then its argument prototype would still apply.  */
8139 char shl_load ();
8140 /* The GNU C library defines this for functions which it implements
8141     to always fail with ENOSYS.  Some functions are actually named
8142     something starting with __ and the normal name is an alias.  */
8143 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8144 choke me
8145 #else
8146 char (*f) () = shl_load;
8147 #endif
8148 #ifdef __cplusplus
8149 }
8150 #endif
8151
8152 int
8153 main ()
8154 {
8155 return f != shl_load;
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162   (eval $ac_link) 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -z "$ac_c_werror_flag"
8170                          || test ! -s conftest.err'
8171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172   (eval $ac_try) 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; } &&
8176          { ac_try='test -s conftest$ac_exeext'
8177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178   (eval $ac_try) 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); }; }; then
8182   ac_cv_func_shl_load=yes
8183 else
8184   echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ac_cv_func_shl_load=no
8188 fi
8189 rm -f conftest.err conftest.$ac_objext \
8190       conftest$ac_exeext conftest.$ac_ext
8191 fi
8192 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8193 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8194 if test $ac_cv_func_shl_load = yes; then
8195   lt_cv_dlopen="shl_load"
8196 else
8197   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8198 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8199 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   ac_check_lib_save_LIBS=$LIBS
8203 LIBS="-ldld  $LIBS"
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h.  */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h.  */
8210
8211 /* Override any gcc2 internal prototype to avoid an error.  */
8212 #ifdef __cplusplus
8213 extern "C"
8214 #endif
8215 /* We use char because int might match the return type of a gcc2
8216    builtin and then its argument prototype would still apply.  */
8217 char shl_load ();
8218 int
8219 main ()
8220 {
8221 shl_load ();
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8228   (eval $ac_link) 2>conftest.er1
8229   ac_status=$?
8230   grep -v '^ *+' conftest.er1 >conftest.err
8231   rm -f conftest.er1
8232   cat conftest.err >&5
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); } &&
8235          { ac_try='test -z "$ac_c_werror_flag"
8236                          || test ! -s conftest.err'
8237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238   (eval $ac_try) 2>&5
8239   ac_status=$?
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); }; } &&
8242          { ac_try='test -s conftest$ac_exeext'
8243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244   (eval $ac_try) 2>&5
8245   ac_status=$?
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); }; }; then
8248   ac_cv_lib_dld_shl_load=yes
8249 else
8250   echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8252
8253 ac_cv_lib_dld_shl_load=no
8254 fi
8255 rm -f conftest.err conftest.$ac_objext \
8256       conftest$ac_exeext conftest.$ac_ext
8257 LIBS=$ac_check_lib_save_LIBS
8258 fi
8259 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8260 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8261 if test $ac_cv_lib_dld_shl_load = yes; then
8262   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8263 else
8264   echo "$as_me:$LINENO: checking for dlopen" >&5
8265 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8266 if test "${ac_cv_func_dlopen+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8277 #define dlopen innocuous_dlopen
8278
8279 /* System header to define __stub macros and hopefully few prototypes,
8280     which can conflict with char dlopen (); below.
8281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8282     <limits.h> exists even on freestanding compilers.  */
8283
8284 #ifdef __STDC__
8285 # include <limits.h>
8286 #else
8287 # include <assert.h>
8288 #endif
8289
8290 #undef dlopen
8291
8292 /* Override any gcc2 internal prototype to avoid an error.  */
8293 #ifdef __cplusplus
8294 extern "C"
8295 {
8296 #endif
8297 /* We use char because int might match the return type of a gcc2
8298    builtin and then its argument prototype would still apply.  */
8299 char dlopen ();
8300 /* The GNU C library defines this for functions which it implements
8301     to always fail with ENOSYS.  Some functions are actually named
8302     something starting with __ and the normal name is an alias.  */
8303 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8304 choke me
8305 #else
8306 char (*f) () = dlopen;
8307 #endif
8308 #ifdef __cplusplus
8309 }
8310 #endif
8311
8312 int
8313 main ()
8314 {
8315 return f != dlopen;
8316   ;
8317   return 0;
8318 }
8319 _ACEOF
8320 rm -f conftest.$ac_objext conftest$ac_exeext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8322   (eval $ac_link) 2>conftest.er1
8323   ac_status=$?
8324   grep -v '^ *+' conftest.er1 >conftest.err
8325   rm -f conftest.er1
8326   cat conftest.err >&5
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); } &&
8329          { ac_try='test -z "$ac_c_werror_flag"
8330                          || test ! -s conftest.err'
8331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332   (eval $ac_try) 2>&5
8333   ac_status=$?
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); }; } &&
8336          { ac_try='test -s conftest$ac_exeext'
8337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338   (eval $ac_try) 2>&5
8339   ac_status=$?
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); }; }; then
8342   ac_cv_func_dlopen=yes
8343 else
8344   echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347 ac_cv_func_dlopen=no
8348 fi
8349 rm -f conftest.err conftest.$ac_objext \
8350       conftest$ac_exeext conftest.$ac_ext
8351 fi
8352 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8353 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8354 if test $ac_cv_func_dlopen = yes; then
8355   lt_cv_dlopen="dlopen"
8356 else
8357   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8358 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8359 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8360   echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362   ac_check_lib_save_LIBS=$LIBS
8363 LIBS="-ldl  $LIBS"
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370
8371 /* Override any gcc2 internal prototype to avoid an error.  */
8372 #ifdef __cplusplus
8373 extern "C"
8374 #endif
8375 /* We use char because int might match the return type of a gcc2
8376    builtin and then its argument prototype would still apply.  */
8377 char dlopen ();
8378 int
8379 main ()
8380 {
8381 dlopen ();
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388   (eval $ac_link) 2>conftest.er1
8389   ac_status=$?
8390   grep -v '^ *+' conftest.er1 >conftest.err
8391   rm -f conftest.er1
8392   cat conftest.err >&5
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } &&
8395          { ac_try='test -z "$ac_c_werror_flag"
8396                          || test ! -s conftest.err'
8397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398   (eval $ac_try) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; } &&
8402          { ac_try='test -s conftest$ac_exeext'
8403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404   (eval $ac_try) 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; }; then
8408   ac_cv_lib_dl_dlopen=yes
8409 else
8410   echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413 ac_cv_lib_dl_dlopen=no
8414 fi
8415 rm -f conftest.err conftest.$ac_objext \
8416       conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8418 fi
8419 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8420 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8421 if test $ac_cv_lib_dl_dlopen = yes; then
8422   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8423 else
8424   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8425 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8426 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8427   echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429   ac_check_lib_save_LIBS=$LIBS
8430 LIBS="-lsvld  $LIBS"
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h.  */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h.  */
8437
8438 /* Override any gcc2 internal prototype to avoid an error.  */
8439 #ifdef __cplusplus
8440 extern "C"
8441 #endif
8442 /* We use char because int might match the return type of a gcc2
8443    builtin and then its argument prototype would still apply.  */
8444 char dlopen ();
8445 int
8446 main ()
8447 {
8448 dlopen ();
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455   (eval $ac_link) 2>conftest.er1
8456   ac_status=$?
8457   grep -v '^ *+' conftest.er1 >conftest.err
8458   rm -f conftest.er1
8459   cat conftest.err >&5
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); } &&
8462          { ac_try='test -z "$ac_c_werror_flag"
8463                          || test ! -s conftest.err'
8464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465   (eval $ac_try) 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); }; } &&
8469          { ac_try='test -s conftest$ac_exeext'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; }; then
8475   ac_cv_lib_svld_dlopen=yes
8476 else
8477   echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 ac_cv_lib_svld_dlopen=no
8481 fi
8482 rm -f conftest.err conftest.$ac_objext \
8483       conftest$ac_exeext conftest.$ac_ext
8484 LIBS=$ac_check_lib_save_LIBS
8485 fi
8486 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8487 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8488 if test $ac_cv_lib_svld_dlopen = yes; then
8489   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8490 else
8491   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8492 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8493 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   ac_check_lib_save_LIBS=$LIBS
8497 LIBS="-ldld  $LIBS"
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504
8505 /* Override any gcc2 internal prototype to avoid an error.  */
8506 #ifdef __cplusplus
8507 extern "C"
8508 #endif
8509 /* We use char because int might match the return type of a gcc2
8510    builtin and then its argument prototype would still apply.  */
8511 char dld_link ();
8512 int
8513 main ()
8514 {
8515 dld_link ();
8516   ;
8517   return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8522   (eval $ac_link) 2>conftest.er1
8523   ac_status=$?
8524   grep -v '^ *+' conftest.er1 >conftest.err
8525   rm -f conftest.er1
8526   cat conftest.err >&5
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); } &&
8529          { ac_try='test -z "$ac_c_werror_flag"
8530                          || test ! -s conftest.err'
8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532   (eval $ac_try) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; } &&
8536          { ac_try='test -s conftest$ac_exeext'
8537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538   (eval $ac_try) 2>&5
8539   ac_status=$?
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); }; }; then
8542   ac_cv_lib_dld_dld_link=yes
8543 else
8544   echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8546
8547 ac_cv_lib_dld_dld_link=no
8548 fi
8549 rm -f conftest.err conftest.$ac_objext \
8550       conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_lib_save_LIBS
8552 fi
8553 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8554 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8555 if test $ac_cv_lib_dld_dld_link = yes; then
8556   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8557 fi
8558
8559
8560 fi
8561
8562
8563 fi
8564
8565
8566 fi
8567
8568
8569 fi
8570
8571
8572 fi
8573
8574     ;;
8575   esac
8576
8577   if test "x$lt_cv_dlopen" != xno; then
8578     enable_dlopen=yes
8579   else
8580     enable_dlopen=no
8581   fi
8582
8583   case $lt_cv_dlopen in
8584   dlopen)
8585     save_CPPFLAGS="$CPPFLAGS"
8586     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8587
8588     save_LDFLAGS="$LDFLAGS"
8589     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8590
8591     save_LIBS="$LIBS"
8592     LIBS="$lt_cv_dlopen_libs $LIBS"
8593
8594     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8595 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8596 if test "${lt_cv_dlopen_self+set}" = set; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599           if test "$cross_compiling" = yes; then :
8600   lt_cv_dlopen_self=cross
8601 else
8602   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8603   lt_status=$lt_dlunknown
8604   cat > conftest.$ac_ext <<EOF
8605 #line 8605 "configure"
8606 #include "confdefs.h"
8607
8608 #if HAVE_DLFCN_H
8609 #include <dlfcn.h>
8610 #endif
8611
8612 #include <stdio.h>
8613
8614 #ifdef RTLD_GLOBAL
8615 #  define LT_DLGLOBAL           RTLD_GLOBAL
8616 #else
8617 #  ifdef DL_GLOBAL
8618 #    define LT_DLGLOBAL         DL_GLOBAL
8619 #  else
8620 #    define LT_DLGLOBAL         0
8621 #  endif
8622 #endif
8623
8624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8625    find out it does not work in some platform. */
8626 #ifndef LT_DLLAZY_OR_NOW
8627 #  ifdef RTLD_LAZY
8628 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8629 #  else
8630 #    ifdef DL_LAZY
8631 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8632 #    else
8633 #      ifdef RTLD_NOW
8634 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8635 #      else
8636 #        ifdef DL_NOW
8637 #          define LT_DLLAZY_OR_NOW      DL_NOW
8638 #        else
8639 #          define LT_DLLAZY_OR_NOW      0
8640 #        endif
8641 #      endif
8642 #    endif
8643 #  endif
8644 #endif
8645
8646 #ifdef __cplusplus
8647 extern "C" void exit (int);
8648 #endif
8649
8650 void fnord() { int i=42;}
8651 int main ()
8652 {
8653   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8654   int status = $lt_dlunknown;
8655
8656   if (self)
8657     {
8658       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8659       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8660       /* dlclose (self); */
8661     }
8662
8663     exit (status);
8664 }
8665 EOF
8666   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667   (eval $ac_link) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8671     (./conftest; exit; ) 2>/dev/null
8672     lt_status=$?
8673     case x$lt_status in
8674       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8675       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8676       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8677     esac
8678   else :
8679     # compilation failed
8680     lt_cv_dlopen_self=no
8681   fi
8682 fi
8683 rm -fr conftest*
8684
8685
8686 fi
8687 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8688 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8689
8690     if test "x$lt_cv_dlopen_self" = xyes; then
8691       LDFLAGS="$LDFLAGS $link_static_flag"
8692       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8693 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8694 if test "${lt_cv_dlopen_self_static+set}" = set; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697           if test "$cross_compiling" = yes; then :
8698   lt_cv_dlopen_self_static=cross
8699 else
8700   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8701   lt_status=$lt_dlunknown
8702   cat > conftest.$ac_ext <<EOF
8703 #line 8703 "configure"
8704 #include "confdefs.h"
8705
8706 #if HAVE_DLFCN_H
8707 #include <dlfcn.h>
8708 #endif
8709
8710 #include <stdio.h>
8711
8712 #ifdef RTLD_GLOBAL
8713 #  define LT_DLGLOBAL           RTLD_GLOBAL
8714 #else
8715 #  ifdef DL_GLOBAL
8716 #    define LT_DLGLOBAL         DL_GLOBAL
8717 #  else
8718 #    define LT_DLGLOBAL         0
8719 #  endif
8720 #endif
8721
8722 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8723    find out it does not work in some platform. */
8724 #ifndef LT_DLLAZY_OR_NOW
8725 #  ifdef RTLD_LAZY
8726 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8727 #  else
8728 #    ifdef DL_LAZY
8729 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8730 #    else
8731 #      ifdef RTLD_NOW
8732 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8733 #      else
8734 #        ifdef DL_NOW
8735 #          define LT_DLLAZY_OR_NOW      DL_NOW
8736 #        else
8737 #          define LT_DLLAZY_OR_NOW      0
8738 #        endif
8739 #      endif
8740 #    endif
8741 #  endif
8742 #endif
8743
8744 #ifdef __cplusplus
8745 extern "C" void exit (int);
8746 #endif
8747
8748 void fnord() { int i=42;}
8749 int main ()
8750 {
8751   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8752   int status = $lt_dlunknown;
8753
8754   if (self)
8755     {
8756       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8757       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8758       /* dlclose (self); */
8759     }
8760
8761     exit (status);
8762 }
8763 EOF
8764   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765   (eval $ac_link) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8769     (./conftest; exit; ) 2>/dev/null
8770     lt_status=$?
8771     case x$lt_status in
8772       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8773       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8774       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8775     esac
8776   else :
8777     # compilation failed
8778     lt_cv_dlopen_self_static=no
8779   fi
8780 fi
8781 rm -fr conftest*
8782
8783
8784 fi
8785 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8786 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8787     fi
8788
8789     CPPFLAGS="$save_CPPFLAGS"
8790     LDFLAGS="$save_LDFLAGS"
8791     LIBS="$save_LIBS"
8792     ;;
8793   esac
8794
8795   case $lt_cv_dlopen_self in
8796   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8797   *) enable_dlopen_self=unknown ;;
8798   esac
8799
8800   case $lt_cv_dlopen_self_static in
8801   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8802   *) enable_dlopen_self_static=unknown ;;
8803   esac
8804 fi
8805
8806
8807 # Report which librarie types wil actually be built
8808 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8809 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8810 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8811 echo "${ECHO_T}$can_build_shared" >&6
8812
8813 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8814 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8815 test "$can_build_shared" = "no" && enable_shared=no
8816
8817 # On AIX, shared libraries and static libraries use the same namespace, and
8818 # are all built from PIC.
8819 case "$host_os" in
8820 aix3*)
8821   test "$enable_shared" = yes && enable_static=no
8822   if test -n "$RANLIB"; then
8823     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8824     postinstall_cmds='$RANLIB $lib'
8825   fi
8826   ;;
8827
8828 aix4* | aix5*)
8829   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8830     test "$enable_shared" = yes && enable_static=no
8831   fi
8832     ;;
8833 esac
8834 echo "$as_me:$LINENO: result: $enable_shared" >&5
8835 echo "${ECHO_T}$enable_shared" >&6
8836
8837 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8838 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8839 # Make sure either enable_shared or enable_static is yes.
8840 test "$enable_shared" = yes || enable_static=yes
8841 echo "$as_me:$LINENO: result: $enable_static" >&5
8842 echo "${ECHO_T}$enable_static" >&6
8843
8844 # The else clause should only fire when bootstrapping the
8845 # libtool distribution, otherwise you forgot to ship ltmain.sh
8846 # with your package, and you will get complaints that there are
8847 # no rules to generate ltmain.sh.
8848 if test -f "$ltmain"; then
8849   # See if we are running on zsh, and set the options which allow our commands through
8850   # without removal of \ escapes.
8851   if test -n "${ZSH_VERSION+set}" ; then
8852     setopt NO_GLOB_SUBST
8853   fi
8854   # Now quote all the things that may contain metacharacters while being
8855   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8856   # variables and quote the copies for generation of the libtool script.
8857   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8858     SED SHELL STRIP \
8859     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8860     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8861     deplibs_check_method reload_flag reload_cmds need_locks \
8862     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8863     lt_cv_sys_global_symbol_to_c_name_address \
8864     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8865     old_postinstall_cmds old_postuninstall_cmds \
8866     compiler \
8867     CC \
8868     LD \
8869     lt_prog_compiler_wl \
8870     lt_prog_compiler_pic \
8871     lt_prog_compiler_static \
8872     lt_prog_compiler_no_builtin_flag \
8873     export_dynamic_flag_spec \
8874     thread_safe_flag_spec \
8875     whole_archive_flag_spec \
8876     enable_shared_with_static_runtimes \
8877     old_archive_cmds \
8878     old_archive_from_new_cmds \
8879     predep_objects \
8880     postdep_objects \
8881     predeps \
8882     postdeps \
8883     compiler_lib_search_path \
8884     archive_cmds \
8885     archive_expsym_cmds \
8886     postinstall_cmds \
8887     postuninstall_cmds \
8888     old_archive_from_expsyms_cmds \
8889     allow_undefined_flag \
8890     no_undefined_flag \
8891     export_symbols_cmds \
8892     hardcode_libdir_flag_spec \
8893     hardcode_libdir_flag_spec_ld \
8894     hardcode_libdir_separator \
8895     hardcode_automatic \
8896     module_cmds \
8897     module_expsym_cmds \
8898     lt_cv_prog_compiler_c_o \
8899     exclude_expsyms \
8900     include_expsyms; do
8901
8902     case $var in
8903     old_archive_cmds | \
8904     old_archive_from_new_cmds | \
8905     archive_cmds | \
8906     archive_expsym_cmds | \
8907     module_cmds | \
8908     module_expsym_cmds | \
8909     old_archive_from_expsyms_cmds | \
8910     export_symbols_cmds | \
8911     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8912     postinstall_cmds | postuninstall_cmds | \
8913     old_postinstall_cmds | old_postuninstall_cmds | \
8914     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8915       # Double-quote double-evaled strings.
8916       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8917       ;;
8918     *)
8919       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8920       ;;
8921     esac
8922   done
8923
8924   case $lt_echo in
8925   *'\$0 --fallback-echo"')
8926     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8927     ;;
8928   esac
8929
8930 cfgfile="${ofile}T"
8931   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8932   $rm -f "$cfgfile"
8933   { echo "$as_me:$LINENO: creating $ofile" >&5
8934 echo "$as_me: creating $ofile" >&6;}
8935
8936   cat <<__EOF__ >> "$cfgfile"
8937 #! $SHELL
8938
8939 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8940 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8941 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8942 #
8943 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8944 # Free Software Foundation, Inc.
8945 #
8946 # This file is part of GNU Libtool:
8947 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8948 #
8949 # This program is free software; you can redistribute it and/or modify
8950 # it under the terms of the GNU General Public License as published by
8951 # the Free Software Foundation; either version 2 of the License, or
8952 # (at your option) any later version.
8953 #
8954 # This program is distributed in the hope that it will be useful, but
8955 # WITHOUT ANY WARRANTY; without even the implied warranty of
8956 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8957 # General Public License for more details.
8958 #
8959 # You should have received a copy of the GNU General Public License
8960 # along with this program; if not, write to the Free Software
8961 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8962 #
8963 # As a special exception to the GNU General Public License, if you
8964 # distribute this file as part of a program that contains a
8965 # configuration script generated by Autoconf, you may include it under
8966 # the same distribution terms that you use for the rest of that program.
8967
8968 # A sed program that does not truncate output.
8969 SED=$lt_SED
8970
8971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8972 Xsed="$SED -e s/^X//"
8973
8974 # The HP-UX ksh and POSIX shell print the target directory to stdout
8975 # if CDPATH is set.
8976 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8977
8978 # The names of the tagged configurations supported by this script.
8979 available_tags=
8980
8981 # ### BEGIN LIBTOOL CONFIG
8982
8983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8984
8985 # Shell to use when invoking shell scripts.
8986 SHELL=$lt_SHELL
8987
8988 # Whether or not to build shared libraries.
8989 build_libtool_libs=$enable_shared
8990
8991 # Whether or not to build static libraries.
8992 build_old_libs=$enable_static
8993
8994 # Whether or not to add -lc for building shared libraries.
8995 build_libtool_need_lc=$archive_cmds_need_lc
8996
8997 # Whether or not to disallow shared libs when runtime libs are static
8998 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8999
9000 # Whether or not to optimize for fast installation.
9001 fast_install=$enable_fast_install
9002
9003 # The host system.
9004 host_alias=$host_alias
9005 host=$host
9006
9007 # An echo program that does not interpret backslashes.
9008 echo=$lt_echo
9009
9010 # The archiver.
9011 AR=$lt_AR
9012 AR_FLAGS=$lt_AR_FLAGS
9013
9014 # A C compiler.
9015 LTCC=$lt_LTCC
9016
9017 # A language-specific compiler.
9018 CC=$lt_compiler
9019
9020 # Is the compiler the GNU C compiler?
9021 with_gcc=$GCC
9022
9023 # An ERE matcher.
9024 EGREP=$lt_EGREP
9025
9026 # The linker used to build libraries.
9027 LD=$lt_LD
9028
9029 # Whether we need hard or soft links.
9030 LN_S=$lt_LN_S
9031
9032 # A BSD-compatible nm program.
9033 NM=$lt_NM
9034
9035 # A symbol stripping program
9036 STRIP=$lt_STRIP
9037
9038 # Used to examine libraries when file_magic_cmd begins "file"
9039 MAGIC_CMD=$MAGIC_CMD
9040
9041 # Used on cygwin: DLL creation program.
9042 DLLTOOL="$DLLTOOL"
9043
9044 # Used on cygwin: object dumper.
9045 OBJDUMP="$OBJDUMP"
9046
9047 # Used on cygwin: assembler.
9048 AS="$AS"
9049
9050 # The name of the directory that contains temporary libtool files.
9051 objdir=$objdir
9052
9053 # How to create reloadable object files.
9054 reload_flag=$lt_reload_flag
9055 reload_cmds=$lt_reload_cmds
9056
9057 # How to pass a linker flag through the compiler.
9058 wl=$lt_lt_prog_compiler_wl
9059
9060 # Object file suffix (normally "o").
9061 objext="$ac_objext"
9062
9063 # Old archive suffix (normally "a").
9064 libext="$libext"
9065
9066 # Shared library suffix (normally ".so").
9067 shrext_cmds='$shrext_cmds'
9068
9069 # Executable file suffix (normally "").
9070 exeext="$exeext"
9071
9072 # Additional compiler flags for building library objects.
9073 pic_flag=$lt_lt_prog_compiler_pic
9074 pic_mode=$pic_mode
9075
9076 # What is the maximum length of a command?
9077 max_cmd_len=$lt_cv_sys_max_cmd_len
9078
9079 # Does compiler simultaneously support -c and -o options?
9080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9081
9082 # Must we lock files when doing compilation ?
9083 need_locks=$lt_need_locks
9084
9085 # Do we need the lib prefix for modules?
9086 need_lib_prefix=$need_lib_prefix
9087
9088 # Do we need a version for libraries?
9089 need_version=$need_version
9090
9091 # Whether dlopen is supported.
9092 dlopen_support=$enable_dlopen
9093
9094 # Whether dlopen of programs is supported.
9095 dlopen_self=$enable_dlopen_self
9096
9097 # Whether dlopen of statically linked programs is supported.
9098 dlopen_self_static=$enable_dlopen_self_static
9099
9100 # Compiler flag to prevent dynamic linking.
9101 link_static_flag=$lt_lt_prog_compiler_static
9102
9103 # Compiler flag to turn off builtin functions.
9104 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9105
9106 # Compiler flag to allow reflexive dlopens.
9107 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9108
9109 # Compiler flag to generate shared objects directly from archives.
9110 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9111
9112 # Compiler flag to generate thread-safe objects.
9113 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9114
9115 # Library versioning type.
9116 version_type=$version_type
9117
9118 # Format of library name prefix.
9119 libname_spec=$lt_libname_spec
9120
9121 # List of archive names.  First name is the real one, the rest are links.
9122 # The last name is the one that the linker finds with -lNAME.
9123 library_names_spec=$lt_library_names_spec
9124
9125 # The coded name of the library, if different from the real name.
9126 soname_spec=$lt_soname_spec
9127
9128 # Commands used to build and install an old-style archive.
9129 RANLIB=$lt_RANLIB
9130 old_archive_cmds=$lt_old_archive_cmds
9131 old_postinstall_cmds=$lt_old_postinstall_cmds
9132 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9133
9134 # Create an old-style archive from a shared archive.
9135 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9136
9137 # Create a temporary old-style archive to link instead of a shared archive.
9138 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9139
9140 # Commands used to build and install a shared archive.
9141 archive_cmds=$lt_archive_cmds
9142 archive_expsym_cmds=$lt_archive_expsym_cmds
9143 postinstall_cmds=$lt_postinstall_cmds
9144 postuninstall_cmds=$lt_postuninstall_cmds
9145
9146 # Commands used to build a loadable module (assumed same as above if empty)
9147 module_cmds=$lt_module_cmds
9148 module_expsym_cmds=$lt_module_expsym_cmds
9149
9150 # Commands to strip libraries.
9151 old_striplib=$lt_old_striplib
9152 striplib=$lt_striplib
9153
9154 # Dependencies to place before the objects being linked to create a
9155 # shared library.
9156 predep_objects=$lt_predep_objects
9157
9158 # Dependencies to place after the objects being linked to create a
9159 # shared library.
9160 postdep_objects=$lt_postdep_objects
9161
9162 # Dependencies to place before the objects being linked to create a
9163 # shared library.
9164 predeps=$lt_predeps
9165
9166 # Dependencies to place after the objects being linked to create a
9167 # shared library.
9168 postdeps=$lt_postdeps
9169
9170 # The library search path used internally by the compiler when linking
9171 # a shared library.
9172 compiler_lib_search_path=$lt_compiler_lib_search_path
9173
9174 # Method to check whether dependent libraries are shared objects.
9175 deplibs_check_method=$lt_deplibs_check_method
9176
9177 # Command to use when deplibs_check_method == file_magic.
9178 file_magic_cmd=$lt_file_magic_cmd
9179
9180 # Flag that allows shared libraries with undefined symbols to be built.
9181 allow_undefined_flag=$lt_allow_undefined_flag
9182
9183 # Flag that forces no undefined symbols.
9184 no_undefined_flag=$lt_no_undefined_flag
9185
9186 # Commands used to finish a libtool library installation in a directory.
9187 finish_cmds=$lt_finish_cmds
9188
9189 # Same as above, but a single script fragment to be evaled but not shown.
9190 finish_eval=$lt_finish_eval
9191
9192 # Take the output of nm and produce a listing of raw symbols and C names.
9193 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9194
9195 # Transform the output of nm in a proper C declaration
9196 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9197
9198 # Transform the output of nm in a C name address pair
9199 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9200
9201 # This is the shared library runtime path variable.
9202 runpath_var=$runpath_var
9203
9204 # This is the shared library path variable.
9205 shlibpath_var=$shlibpath_var
9206
9207 # Is shlibpath searched before the hard-coded library search path?
9208 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9209
9210 # How to hardcode a shared library path into an executable.
9211 hardcode_action=$hardcode_action
9212
9213 # Whether we should hardcode library paths into libraries.
9214 hardcode_into_libs=$hardcode_into_libs
9215
9216 # Flag to hardcode \$libdir into a binary during linking.
9217 # This must work even if \$libdir does not exist.
9218 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9219
9220 # If ld is used when linking, flag to hardcode \$libdir into
9221 # a binary during linking. This must work even if \$libdir does
9222 # not exist.
9223 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9224
9225 # Whether we need a single -rpath flag with a separated argument.
9226 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9227
9228 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9229 # resulting binary.
9230 hardcode_direct=$hardcode_direct
9231
9232 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9233 # resulting binary.
9234 hardcode_minus_L=$hardcode_minus_L
9235
9236 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9237 # the resulting binary.
9238 hardcode_shlibpath_var=$hardcode_shlibpath_var
9239
9240 # Set to yes if building a shared library automatically hardcodes DIR into the library
9241 # and all subsequent libraries and executables linked against it.
9242 hardcode_automatic=$hardcode_automatic
9243
9244 # Variables whose values should be saved in libtool wrapper scripts and
9245 # restored at relink time.
9246 variables_saved_for_relink="$variables_saved_for_relink"
9247
9248 # Whether libtool must link a program against all its dependency libraries.
9249 link_all_deplibs=$link_all_deplibs
9250
9251 # Compile-time system search path for libraries
9252 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9253
9254 # Run-time system search path for libraries
9255 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9256
9257 # Fix the shell variable \$srcfile for the compiler.
9258 fix_srcfile_path="$fix_srcfile_path"
9259
9260 # Set to yes if exported symbols are required.
9261 always_export_symbols=$always_export_symbols
9262
9263 # The commands to list exported symbols.
9264 export_symbols_cmds=$lt_export_symbols_cmds
9265
9266 # The commands to extract the exported symbol list from a shared archive.
9267 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9268
9269 # Symbols that should not be listed in the preloaded symbols.
9270 exclude_expsyms=$lt_exclude_expsyms
9271
9272 # Symbols that must always be exported.
9273 include_expsyms=$lt_include_expsyms
9274
9275 # ### END LIBTOOL CONFIG
9276
9277 __EOF__
9278
9279
9280   case $host_os in
9281   aix3*)
9282     cat <<\EOF >> "$cfgfile"
9283
9284 # AIX sometimes has problems with the GCC collect2 program.  For some
9285 # reason, if we set the COLLECT_NAMES environment variable, the problems
9286 # vanish in a puff of smoke.
9287 if test "X${COLLECT_NAMES+set}" != Xset; then
9288   COLLECT_NAMES=
9289   export COLLECT_NAMES
9290 fi
9291 EOF
9292     ;;
9293   esac
9294
9295   # We use sed instead of cat because bash on DJGPP gets confused if
9296   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9297   # text mode, it properly converts lines to CR/LF.  This bash problem
9298   # is reportedly fixed, but why not run on old versions too?
9299   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9300
9301   mv -f "$cfgfile" "$ofile" || \
9302     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9303   chmod +x "$ofile"
9304
9305 else
9306   # If there is no Makefile yet, we rely on a make rule to execute
9307   # `config.status --recheck' to rerun these tests and create the
9308   # libtool script then.
9309   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9310   if test -f "$ltmain_in"; then
9311     test -f Makefile && make "$ltmain"
9312   fi
9313 fi
9314
9315
9316 ac_ext=c
9317 ac_cpp='$CPP $CPPFLAGS'
9318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9321
9322 CC="$lt_save_CC"
9323
9324
9325 # Check whether --with-tags or --without-tags was given.
9326 if test "${with_tags+set}" = set; then
9327   withval="$with_tags"
9328   tagnames="$withval"
9329 fi;
9330
9331 if test -f "$ltmain" && test -n "$tagnames"; then
9332   if test ! -f "${ofile}"; then
9333     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9334 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9335   fi
9336
9337   if test -z "$LTCC"; then
9338     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9339     if test -z "$LTCC"; then
9340       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9341 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9342     else
9343       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9344 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9345     fi
9346   fi
9347
9348   # Extract list of available tagged configurations in $ofile.
9349   # Note that this assumes the entire list is on one line.
9350   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9351
9352   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9353   for tagname in $tagnames; do
9354     IFS="$lt_save_ifs"
9355     # Check whether tagname contains only valid characters
9356     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9357     "") ;;
9358     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9359 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9360    { (exit 1); exit 1; }; }
9361         ;;
9362     esac
9363
9364     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9365     then
9366       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9367 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9368    { (exit 1); exit 1; }; }
9369     fi
9370
9371     # Update the list of available tags.
9372     if test -n "$tagname"; then
9373       echo appending configuration tag "$tagname" to $ofile
9374
9375       case $tagname in
9376       CXX)
9377         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9378             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9379             (test "X$CXX" != "Xg++"))) ; then
9380           ac_ext=cc
9381 ac_cpp='$CXXCPP $CPPFLAGS'
9382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9385
9386
9387
9388
9389 archive_cmds_need_lc_CXX=no
9390 allow_undefined_flag_CXX=
9391 always_export_symbols_CXX=no
9392 archive_expsym_cmds_CXX=
9393 export_dynamic_flag_spec_CXX=
9394 hardcode_direct_CXX=no
9395 hardcode_libdir_flag_spec_CXX=
9396 hardcode_libdir_flag_spec_ld_CXX=
9397 hardcode_libdir_separator_CXX=
9398 hardcode_minus_L_CXX=no
9399 hardcode_automatic_CXX=no
9400 module_cmds_CXX=
9401 module_expsym_cmds_CXX=
9402 link_all_deplibs_CXX=unknown
9403 old_archive_cmds_CXX=$old_archive_cmds
9404 no_undefined_flag_CXX=
9405 whole_archive_flag_spec_CXX=
9406 enable_shared_with_static_runtimes_CXX=no
9407
9408 # Dependencies to place before and after the object being linked:
9409 predep_objects_CXX=
9410 postdep_objects_CXX=
9411 predeps_CXX=
9412 postdeps_CXX=
9413 compiler_lib_search_path_CXX=
9414
9415 # Source file extension for C++ test sources.
9416 ac_ext=cc
9417
9418 # Object file extension for compiled C++ test sources.
9419 objext=o
9420 objext_CXX=$objext
9421
9422 # Code to be used in simple compile tests
9423 lt_simple_compile_test_code="int some_variable = 0;\n"
9424
9425 # Code to be used in simple link tests
9426 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9427
9428 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9429
9430 # If no C compiler was specified, use CC.
9431 LTCC=${LTCC-"$CC"}
9432
9433 # Allow CC to be a program name with arguments.
9434 compiler=$CC
9435
9436
9437 # Allow CC to be a program name with arguments.
9438 lt_save_CC=$CC
9439 lt_save_LD=$LD
9440 lt_save_GCC=$GCC
9441 GCC=$GXX
9442 lt_save_with_gnu_ld=$with_gnu_ld
9443 lt_save_path_LD=$lt_cv_path_LD
9444 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9445   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9446 else
9447   unset lt_cv_prog_gnu_ld
9448 fi
9449 if test -n "${lt_cv_path_LDCXX+set}"; then
9450   lt_cv_path_LD=$lt_cv_path_LDCXX
9451 else
9452   unset lt_cv_path_LD
9453 fi
9454 test -z "${LDCXX+set}" || LD=$LDCXX
9455 CC=${CXX-"c++"}
9456 compiler=$CC
9457 compiler_CXX=$CC
9458 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9459
9460 # We don't want -fno-exception wen compiling C++ code, so set the
9461 # no_builtin_flag separately
9462 if test "$GXX" = yes; then
9463   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9464 else
9465   lt_prog_compiler_no_builtin_flag_CXX=
9466 fi
9467
9468 if test "$GXX" = yes; then
9469   # Set up default GNU C++ configuration
9470
9471
9472 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9473 if test "${with_gnu_ld+set}" = set; then
9474   withval="$with_gnu_ld"
9475   test "$withval" = no || with_gnu_ld=yes
9476 else
9477   with_gnu_ld=no
9478 fi;
9479 ac_prog=ld
9480 if test "$GCC" = yes; then
9481   # Check if gcc -print-prog-name=ld gives a path.
9482   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9483 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9484   case $host in
9485   *-*-mingw*)
9486     # gcc leaves a trailing carriage return which upsets mingw
9487     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9488   *)
9489     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9490   esac
9491   case $ac_prog in
9492     # Accept absolute paths.
9493     [\\/]* | ?:[\\/]*)
9494       re_direlt='/[^/][^/]*/\.\./'
9495       # Canonicalize the pathname of ld
9496       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9497       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9498         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9499       done
9500       test -z "$LD" && LD="$ac_prog"
9501       ;;
9502   "")
9503     # If it fails, then pretend we aren't using GCC.
9504     ac_prog=ld
9505     ;;
9506   *)
9507     # If it is relative, then search for the first ld in PATH.
9508     with_gnu_ld=unknown
9509     ;;
9510   esac
9511 elif test "$with_gnu_ld" = yes; then
9512   echo "$as_me:$LINENO: checking for GNU ld" >&5
9513 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9514 else
9515   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9516 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9517 fi
9518 if test "${lt_cv_path_LD+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   if test -z "$LD"; then
9522   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9523   for ac_dir in $PATH; do
9524     IFS="$lt_save_ifs"
9525     test -z "$ac_dir" && ac_dir=.
9526     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9527       lt_cv_path_LD="$ac_dir/$ac_prog"
9528       # Check to see if the program is GNU ld.  I'd rather use --version,
9529       # but apparently some GNU ld's only accept -v.
9530       # Break only if it was the GNU/non-GNU ld that we prefer.
9531       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9532       *GNU* | *'with BFD'*)
9533         test "$with_gnu_ld" != no && break
9534         ;;
9535       *)
9536         test "$with_gnu_ld" != yes && break
9537         ;;
9538       esac
9539     fi
9540   done
9541   IFS="$lt_save_ifs"
9542 else
9543   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9544 fi
9545 fi
9546
9547 LD="$lt_cv_path_LD"
9548 if test -n "$LD"; then
9549   echo "$as_me:$LINENO: result: $LD" >&5
9550 echo "${ECHO_T}$LD" >&6
9551 else
9552   echo "$as_me:$LINENO: result: no" >&5
9553 echo "${ECHO_T}no" >&6
9554 fi
9555 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9556 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9557    { (exit 1); exit 1; }; }
9558 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9559 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9560 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9561   echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9564 case `$LD -v 2>&1 </dev/null` in
9565 *GNU* | *'with BFD'*)
9566   lt_cv_prog_gnu_ld=yes
9567   ;;
9568 *)
9569   lt_cv_prog_gnu_ld=no
9570   ;;
9571 esac
9572 fi
9573 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9574 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9575 with_gnu_ld=$lt_cv_prog_gnu_ld
9576
9577
9578
9579   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9580   # archiving commands below assume that GNU ld is being used.
9581   if test "$with_gnu_ld" = yes; then
9582     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583     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'
9584
9585     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9586     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9587
9588     # If archive_cmds runs LD, not CC, wlarc should be empty
9589     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9590     #     investigate it a little bit more. (MM)
9591     wlarc='${wl}'
9592
9593     # ancient GNU ld didn't support --whole-archive et. al.
9594     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9595         grep 'no-whole-archive' > /dev/null; then
9596       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9597     else
9598       whole_archive_flag_spec_CXX=
9599     fi
9600   else
9601     with_gnu_ld=no
9602     wlarc=
9603
9604     # A generic and very simple default shared library creation
9605     # command for GNU C++ for the case where it uses the native
9606     # linker, instead of GNU ld.  If possible, this setting should
9607     # overridden to take advantage of the native linker features on
9608     # the platform it is being used on.
9609     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9610   fi
9611
9612   # Commands to make compiler produce verbose output that lists
9613   # what "hidden" libraries, object files and flags are used when
9614   # linking a shared library.
9615   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9616
9617 else
9618   GXX=no
9619   with_gnu_ld=no
9620   wlarc=
9621 fi
9622
9623 # PORTME: fill in a description of your system's C++ link characteristics
9624 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9625 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9626 ld_shlibs_CXX=yes
9627 case $host_os in
9628   aix3*)
9629     # FIXME: insert proper C++ library support
9630     ld_shlibs_CXX=no
9631     ;;
9632   aix4* | aix5*)
9633     if test "$host_cpu" = ia64; then
9634       # On IA64, the linker does run time linking by default, so we don't
9635       # have to do anything special.
9636       aix_use_runtimelinking=no
9637       exp_sym_flag='-Bexport'
9638       no_entry_flag=""
9639     else
9640       aix_use_runtimelinking=no
9641
9642       # Test if we are trying to use run time linking or normal
9643       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9644       # need to do runtime linking.
9645       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9646         for ld_flag in $LDFLAGS; do
9647           case $ld_flag in
9648           *-brtl*)
9649             aix_use_runtimelinking=yes
9650             break
9651             ;;
9652           esac
9653         done
9654       esac
9655
9656       exp_sym_flag='-bexport'
9657       no_entry_flag='-bnoentry'
9658     fi
9659
9660     # When large executables or shared objects are built, AIX ld can
9661     # have problems creating the table of contents.  If linking a library
9662     # or program results in "error TOC overflow" add -mminimal-toc to
9663     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9664     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9665
9666     archive_cmds_CXX=''
9667     hardcode_direct_CXX=yes
9668     hardcode_libdir_separator_CXX=':'
9669     link_all_deplibs_CXX=yes
9670
9671     if test "$GXX" = yes; then
9672       case $host_os in aix4.012|aix4.012.*)
9673       # We only want to do this on AIX 4.2 and lower, the check
9674       # below for broken collect2 doesn't work under 4.3+
9675         collect2name=`${CC} -print-prog-name=collect2`
9676         if test -f "$collect2name" && \
9677            strings "$collect2name" | grep resolve_lib_name >/dev/null
9678         then
9679           # We have reworked collect2
9680           hardcode_direct_CXX=yes
9681         else
9682           # We have old collect2
9683           hardcode_direct_CXX=unsupported
9684           # It fails to find uninstalled libraries when the uninstalled
9685           # path is not listed in the libpath.  Setting hardcode_minus_L
9686           # to unsupported forces relinking
9687           hardcode_minus_L_CXX=yes
9688           hardcode_libdir_flag_spec_CXX='-L$libdir'
9689           hardcode_libdir_separator_CXX=
9690         fi
9691       esac
9692       shared_flag='-shared'
9693     else
9694       # not using gcc
9695       if test "$host_cpu" = ia64; then
9696         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9697         # chokes on -Wl,-G. The following line is correct:
9698         shared_flag='-G'
9699       else
9700         if test "$aix_use_runtimelinking" = yes; then
9701           shared_flag='${wl}-G'
9702         else
9703           shared_flag='${wl}-bM:SRE'
9704         fi
9705       fi
9706     fi
9707
9708     # It seems that -bexpall does not export symbols beginning with
9709     # underscore (_), so it is better to generate a list of symbols to export.
9710     always_export_symbols_CXX=yes
9711     if test "$aix_use_runtimelinking" = yes; then
9712       # Warning - without using the other runtime loading flags (-brtl),
9713       # -berok will link without error, but may produce a broken library.
9714       allow_undefined_flag_CXX='-berok'
9715       # Determine the default libpath from the value encoded in an empty executable.
9716       cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722
9723 int
9724 main ()
9725 {
9726
9727   ;
9728   return 0;
9729 }
9730 _ACEOF
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733   (eval $ac_link) 2>conftest.er1
9734   ac_status=$?
9735   grep -v '^ *+' conftest.er1 >conftest.err
9736   rm -f conftest.er1
9737   cat conftest.err >&5
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); } &&
9740          { ac_try='test -z "$ac_cxx_werror_flag"
9741                          || test ! -s conftest.err'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; } &&
9747          { ac_try='test -s conftest$ac_exeext'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }; then
9753
9754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9755 }'`
9756 # Check for a 64-bit object if we didn't find anything.
9757 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; }
9758 }'`; fi
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763 fi
9764 rm -f conftest.err conftest.$ac_objext \
9765       conftest$ac_exeext conftest.$ac_ext
9766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9767
9768       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9769
9770       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"
9771      else
9772       if test "$host_cpu" = ia64; then
9773         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9774         allow_undefined_flag_CXX="-z nodefs"
9775         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"
9776       else
9777         # Determine the default libpath from the value encoded in an empty executable.
9778         cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784
9785 int
9786 main ()
9787 {
9788
9789   ;
9790   return 0;
9791 }
9792 _ACEOF
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9795   (eval $ac_link) 2>conftest.er1
9796   ac_status=$?
9797   grep -v '^ *+' conftest.er1 >conftest.err
9798   rm -f conftest.er1
9799   cat conftest.err >&5
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); } &&
9802          { ac_try='test -z "$ac_cxx_werror_flag"
9803                          || test ! -s conftest.err'
9804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805   (eval $ac_try) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; } &&
9809          { ac_try='test -s conftest$ac_exeext'
9810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811   (eval $ac_try) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; }; then
9815
9816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9817 }'`
9818 # Check for a 64-bit object if we didn't find anything.
9819 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; }
9820 }'`; fi
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 fi
9826 rm -f conftest.err conftest.$ac_objext \
9827       conftest$ac_exeext conftest.$ac_ext
9828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9829
9830         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9831         # Warning - without using the other run time loading flags,
9832         # -berok will link without error, but may produce a broken library.
9833         no_undefined_flag_CXX=' ${wl}-bernotok'
9834         allow_undefined_flag_CXX=' ${wl}-berok'
9835         # -bexpall does not export symbols beginning with underscore (_)
9836         always_export_symbols_CXX=yes
9837         # Exported symbols can be pulled into shared objects from archives
9838         whole_archive_flag_spec_CXX=' '
9839         archive_cmds_need_lc_CXX=yes
9840         # This is similar to how AIX traditionally builds it's shared libraries.
9841         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'
9842       fi
9843     fi
9844     ;;
9845   chorus*)
9846     case $cc_basename in
9847       *)
9848         # FIXME: insert proper C++ library support
9849         ld_shlibs_CXX=no
9850         ;;
9851     esac
9852     ;;
9853
9854
9855   cygwin* | mingw* | pw32*)
9856     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9857     # as there is no search path for DLLs.
9858     hardcode_libdir_flag_spec_CXX='-L$libdir'
9859     allow_undefined_flag_CXX=unsupported
9860     always_export_symbols_CXX=no
9861     enable_shared_with_static_runtimes_CXX=yes
9862
9863     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9864       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'
9865       # If the export-symbols file already is a .def file (1st line
9866       # is EXPORTS), use it as is; otherwise, prepend...
9867       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9868         cp $export_symbols $output_objdir/$soname.def;
9869       else
9870         echo EXPORTS > $output_objdir/$soname.def;
9871         cat $export_symbols >> $output_objdir/$soname.def;
9872       fi~
9873       $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'
9874     else
9875       ld_shlibs_CXX=no
9876     fi
9877   ;;
9878       darwin* | rhapsody*)
9879         case "$host_os" in
9880         rhapsody* | darwin1.[012])
9881          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9882          ;;
9883        *) # Darwin 1.3 on
9884          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9885            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9886          else
9887            case ${MACOSX_DEPLOYMENT_TARGET} in
9888              10.[012])
9889                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9890                ;;
9891              10.*)
9892                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9893                ;;
9894            esac
9895          fi
9896          ;;
9897         esac
9898       archive_cmds_need_lc_CXX=no
9899       hardcode_direct_CXX=no
9900       hardcode_automatic_CXX=yes
9901       hardcode_shlibpath_var_CXX=unsupported
9902       whole_archive_flag_spec_CXX=''
9903       link_all_deplibs_CXX=yes
9904
9905     if test "$GXX" = yes ; then
9906       lt_int_apple_cc_single_mod=no
9907       output_verbose_link_cmd='echo'
9908       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9909        lt_int_apple_cc_single_mod=yes
9910       fi
9911       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9912        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9913       else
9914           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'
9915         fi
9916         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9917         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9918           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9919             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}'
9920           else
9921             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}'
9922           fi
9923             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}'
9924       else
9925       case "$cc_basename" in
9926         xlc*)
9927          output_verbose_link_cmd='echo'
9928           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'
9929           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9930           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9931           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}'
9932           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}'
9933           ;;
9934        *)
9935          ld_shlibs_CXX=no
9936           ;;
9937       esac
9938       fi
9939         ;;
9940
9941   dgux*)
9942     case $cc_basename in
9943       ec++)
9944         # FIXME: insert proper C++ library support
9945         ld_shlibs_CXX=no
9946         ;;
9947       ghcx)
9948         # Green Hills C++ Compiler
9949         # FIXME: insert proper C++ library support
9950         ld_shlibs_CXX=no
9951         ;;
9952       *)
9953         # FIXME: insert proper C++ library support
9954         ld_shlibs_CXX=no
9955         ;;
9956     esac
9957     ;;
9958   freebsd12*)
9959     # C++ shared libraries reported to be fairly broken before switch to ELF
9960     ld_shlibs_CXX=no
9961     ;;
9962   freebsd-elf*)
9963     archive_cmds_need_lc_CXX=no
9964     ;;
9965   freebsd* | kfreebsd*-gnu)
9966     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9967     # conventions
9968     ld_shlibs_CXX=yes
9969     ;;
9970   gnu*)
9971     ;;
9972   hpux9*)
9973     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9974     hardcode_libdir_separator_CXX=:
9975     export_dynamic_flag_spec_CXX='${wl}-E'
9976     hardcode_direct_CXX=yes
9977     hardcode_minus_L_CXX=yes # Not in the search PATH,
9978                                 # but as the default
9979                                 # location of the library.
9980
9981     case $cc_basename in
9982     CC)
9983       # FIXME: insert proper C++ library support
9984       ld_shlibs_CXX=no
9985       ;;
9986     aCC)
9987       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'
9988       # Commands to make compiler produce verbose output that lists
9989       # what "hidden" libraries, object files and flags are used when
9990       # linking a shared library.
9991       #
9992       # There doesn't appear to be a way to prevent this compiler from
9993       # explicitly linking system object files so we need to strip them
9994       # from the output so that they don't get included in the library
9995       # dependencies.
9996       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'
9997       ;;
9998     *)
9999       if test "$GXX" = yes; then
10000         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'
10001       else
10002         # FIXME: insert proper C++ library support
10003         ld_shlibs_CXX=no
10004       fi
10005       ;;
10006     esac
10007     ;;
10008   hpux10*|hpux11*)
10009     if test $with_gnu_ld = no; then
10010       case "$host_cpu" in
10011       hppa*64*)
10012         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10013         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10014         hardcode_libdir_separator_CXX=:
10015         ;;
10016       ia64*)
10017         hardcode_libdir_flag_spec_CXX='-L$libdir'
10018         ;;
10019       *)
10020         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10021         hardcode_libdir_separator_CXX=:
10022         export_dynamic_flag_spec_CXX='${wl}-E'
10023         ;;
10024       esac
10025     fi
10026     case "$host_cpu" in
10027     hppa*64*)
10028       hardcode_direct_CXX=no
10029       hardcode_shlibpath_var_CXX=no
10030       ;;
10031     ia64*)
10032       hardcode_direct_CXX=no
10033       hardcode_shlibpath_var_CXX=no
10034       hardcode_minus_L_CXX=yes # Not in the search PATH,
10035                                               # but as the default
10036                                               # location of the library.
10037       ;;
10038     *)
10039       hardcode_direct_CXX=yes
10040       hardcode_minus_L_CXX=yes # Not in the search PATH,
10041                                               # but as the default
10042                                               # location of the library.
10043       ;;
10044     esac
10045
10046     case $cc_basename in
10047       CC)
10048         # FIXME: insert proper C++ library support
10049         ld_shlibs_CXX=no
10050         ;;
10051       aCC)
10052         case "$host_cpu" in
10053         hppa*64*|ia64*)
10054           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10055           ;;
10056         *)
10057           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10058           ;;
10059         esac
10060         # Commands to make compiler produce verbose output that lists
10061         # what "hidden" libraries, object files and flags are used when
10062         # linking a shared library.
10063         #
10064         # There doesn't appear to be a way to prevent this compiler from
10065         # explicitly linking system object files so we need to strip them
10066         # from the output so that they don't get included in the library
10067         # dependencies.
10068         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'
10069         ;;
10070       *)
10071         if test "$GXX" = yes; then
10072           if test $with_gnu_ld = no; then
10073             case "$host_cpu" in
10074             ia64*|hppa*64*)
10075               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10076               ;;
10077             *)
10078               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'
10079               ;;
10080             esac
10081           fi
10082         else
10083           # FIXME: insert proper C++ library support
10084           ld_shlibs_CXX=no
10085         fi
10086         ;;
10087     esac
10088     ;;
10089   irix5* | irix6*)
10090     case $cc_basename in
10091       CC)
10092         # SGI C++
10093         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'
10094
10095         # Archives containing C++ object files must be created using
10096         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10097         # necessary to make sure instantiated templates are included
10098         # in the archive.
10099         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10100         ;;
10101       *)
10102         if test "$GXX" = yes; then
10103           if test "$with_gnu_ld" = no; then
10104             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'
10105           else
10106             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'
10107           fi
10108         fi
10109         link_all_deplibs_CXX=yes
10110         ;;
10111     esac
10112     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10113     hardcode_libdir_separator_CXX=:
10114     ;;
10115   linux*)
10116     case $cc_basename in
10117       KCC)
10118         # Kuck and Associates, Inc. (KAI) C++ Compiler
10119
10120         # KCC will only create a shared library if the output file
10121         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10122         # to its proper name (with version) after linking.
10123         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'
10124         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'
10125         # Commands to make compiler produce verbose output that lists
10126         # what "hidden" libraries, object files and flags are used when
10127         # linking a shared library.
10128         #
10129         # There doesn't appear to be a way to prevent this compiler from
10130         # explicitly linking system object files so we need to strip them
10131         # from the output so that they don't get included in the library
10132         # dependencies.
10133         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'
10134
10135         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10136         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10137
10138         # Archives containing C++ object files must be created using
10139         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10140         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10141         ;;
10142       icpc)
10143         # Intel C++
10144         with_gnu_ld=yes
10145         # version 8.0 and above of icpc choke on multiply defined symbols
10146         # if we add $predep_objects and $postdep_objects, however 7.1 and
10147         # earlier do not add the objects themselves.
10148         case `$CC -V 2>&1` in
10149         *"Version 7."*)
10150           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10151           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'
10152           ;;
10153         *)  # Version 8.0 or newer
10154           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10156           ;;
10157         esac
10158         archive_cmds_need_lc_CXX=no
10159         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10160         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10161         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10162         ;;
10163       cxx)
10164         # Compaq C++
10165         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10166         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'
10167
10168         runpath_var=LD_RUN_PATH
10169         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10170         hardcode_libdir_separator_CXX=:
10171
10172         # Commands to make compiler produce verbose output that lists
10173         # what "hidden" libraries, object files and flags are used when
10174         # linking a shared library.
10175         #
10176         # There doesn't appear to be a way to prevent this compiler from
10177         # explicitly linking system object files so we need to strip them
10178         # from the output so that they don't get included in the library
10179         # dependencies.
10180         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'
10181         ;;
10182     esac
10183     ;;
10184   lynxos*)
10185     # FIXME: insert proper C++ library support
10186     ld_shlibs_CXX=no
10187     ;;
10188   m88k*)
10189     # FIXME: insert proper C++ library support
10190     ld_shlibs_CXX=no
10191     ;;
10192   mvs*)
10193     case $cc_basename in
10194       cxx)
10195         # FIXME: insert proper C++ library support
10196         ld_shlibs_CXX=no
10197         ;;
10198       *)
10199         # FIXME: insert proper C++ library support
10200         ld_shlibs_CXX=no
10201         ;;
10202     esac
10203     ;;
10204   netbsd*)
10205     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10206       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10207       wlarc=
10208       hardcode_libdir_flag_spec_CXX='-R$libdir'
10209       hardcode_direct_CXX=yes
10210       hardcode_shlibpath_var_CXX=no
10211     fi
10212     # Workaround some broken pre-1.5 toolchains
10213     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10214     ;;
10215   openbsd2*)
10216     # C++ shared libraries are fairly broken
10217     ld_shlibs_CXX=no
10218     ;;
10219   openbsd*)
10220     hardcode_direct_CXX=yes
10221     hardcode_shlibpath_var_CXX=no
10222     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10223     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10224     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10225       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10226       export_dynamic_flag_spec_CXX='${wl}-E'
10227       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10228     fi
10229     output_verbose_link_cmd='echo'
10230     ;;
10231   osf3*)
10232     case $cc_basename in
10233       KCC)
10234         # Kuck and Associates, Inc. (KAI) C++ Compiler
10235
10236         # KCC will only create a shared library if the output file
10237         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10238         # to its proper name (with version) after linking.
10239         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'
10240
10241         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10242         hardcode_libdir_separator_CXX=:
10243
10244         # Archives containing C++ object files must be created using
10245         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10246         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10247
10248         ;;
10249       RCC)
10250         # Rational C++ 2.4.1
10251         # FIXME: insert proper C++ library support
10252         ld_shlibs_CXX=no
10253         ;;
10254       cxx)
10255         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10256         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'
10257
10258         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10259         hardcode_libdir_separator_CXX=:
10260
10261         # Commands to make compiler produce verbose output that lists
10262         # what "hidden" libraries, object files and flags are used when
10263         # linking a shared library.
10264         #
10265         # There doesn't appear to be a way to prevent this compiler from
10266         # explicitly linking system object files so we need to strip them
10267         # from the output so that they don't get included in the library
10268         # dependencies.
10269         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'
10270         ;;
10271       *)
10272         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10273           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10274           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'
10275
10276           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10277           hardcode_libdir_separator_CXX=:
10278
10279           # Commands to make compiler produce verbose output that lists
10280           # what "hidden" libraries, object files and flags are used when
10281           # linking a shared library.
10282           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10283
10284         else
10285           # FIXME: insert proper C++ library support
10286           ld_shlibs_CXX=no
10287         fi
10288         ;;
10289     esac
10290     ;;
10291   osf4* | osf5*)
10292     case $cc_basename in
10293       KCC)
10294         # Kuck and Associates, Inc. (KAI) C++ Compiler
10295
10296         # KCC will only create a shared library if the output file
10297         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10298         # to its proper name (with version) after linking.
10299         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'
10300
10301         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10302         hardcode_libdir_separator_CXX=:
10303
10304         # Archives containing C++ object files must be created using
10305         # the KAI C++ compiler.
10306         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10307         ;;
10308       RCC)
10309         # Rational C++ 2.4.1
10310         # FIXME: insert proper C++ library support
10311         ld_shlibs_CXX=no
10312         ;;
10313       cxx)
10314         allow_undefined_flag_CXX=' -expect_unresolved \*'
10315         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'
10316         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10317           echo "-hidden">> $lib.exp~
10318           $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~
10319           $rm $lib.exp'
10320
10321         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10322         hardcode_libdir_separator_CXX=:
10323
10324         # Commands to make compiler produce verbose output that lists
10325         # what "hidden" libraries, object files and flags are used when
10326         # linking a shared library.
10327         #
10328         # There doesn't appear to be a way to prevent this compiler from
10329         # explicitly linking system object files so we need to strip them
10330         # from the output so that they don't get included in the library
10331         # dependencies.
10332         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'
10333         ;;
10334       *)
10335         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10336           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10337          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'
10338
10339           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10340           hardcode_libdir_separator_CXX=:
10341
10342           # Commands to make compiler produce verbose output that lists
10343           # what "hidden" libraries, object files and flags are used when
10344           # linking a shared library.
10345           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10346
10347         else
10348           # FIXME: insert proper C++ library support
10349           ld_shlibs_CXX=no
10350         fi
10351         ;;
10352     esac
10353     ;;
10354   psos*)
10355     # FIXME: insert proper C++ library support
10356     ld_shlibs_CXX=no
10357     ;;
10358   sco*)
10359     archive_cmds_need_lc_CXX=no
10360     case $cc_basename in
10361       CC)
10362         # FIXME: insert proper C++ library support
10363         ld_shlibs_CXX=no
10364         ;;
10365       *)
10366         # FIXME: insert proper C++ library support
10367         ld_shlibs_CXX=no
10368         ;;
10369     esac
10370     ;;
10371   sunos4*)
10372     case $cc_basename in
10373       CC)
10374         # Sun C++ 4.x
10375         # FIXME: insert proper C++ library support
10376         ld_shlibs_CXX=no
10377         ;;
10378       lcc)
10379         # Lucid
10380         # FIXME: insert proper C++ library support
10381         ld_shlibs_CXX=no
10382         ;;
10383       *)
10384         # FIXME: insert proper C++ library support
10385         ld_shlibs_CXX=no
10386         ;;
10387     esac
10388     ;;
10389   solaris*)
10390     case $cc_basename in
10391       CC)
10392         # Sun C++ 4.2, 5.x and Centerline C++
10393         no_undefined_flag_CXX=' -zdefs'
10394         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10395         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10396         $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'
10397
10398         hardcode_libdir_flag_spec_CXX='-R$libdir'
10399         hardcode_shlibpath_var_CXX=no
10400         case $host_os in
10401           solaris2.0-5 | solaris2.0-5.*) ;;
10402           *)
10403             # The C++ compiler is used as linker so we must use $wl
10404             # flag to pass the commands to the underlying system
10405             # linker.
10406             # Supported since Solaris 2.6 (maybe 2.5.1?)
10407             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10408             ;;
10409         esac
10410         link_all_deplibs_CXX=yes
10411
10412         # Commands to make compiler produce verbose output that lists
10413         # what "hidden" libraries, object files and flags are used when
10414         # linking a shared library.
10415         #
10416         # There doesn't appear to be a way to prevent this compiler from
10417         # explicitly linking system object files so we need to strip them
10418         # from the output so that they don't get included in the library
10419         # dependencies.
10420         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'
10421
10422         # Archives containing C++ object files must be created using
10423         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10424         # necessary to make sure instantiated templates are included
10425         # in the archive.
10426         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10427         ;;
10428       gcx)
10429         # Green Hills C++ Compiler
10430         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10431
10432         # The C++ compiler must be used to create the archive.
10433         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10434         ;;
10435       *)
10436         # GNU C++ compiler with Solaris linker
10437         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10438           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10439           if $CC --version | grep -v '^2\.7' > /dev/null; then
10440             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10441             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10442                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10443
10444             # Commands to make compiler produce verbose output that lists
10445             # what "hidden" libraries, object files and flags are used when
10446             # linking a shared library.
10447             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10448           else
10449             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10450             # platform.
10451             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10452             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10453                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10454
10455             # Commands to make compiler produce verbose output that lists
10456             # what "hidden" libraries, object files and flags are used when
10457             # linking a shared library.
10458             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10459           fi
10460
10461           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10462         fi
10463         ;;
10464     esac
10465     ;;
10466   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10467     archive_cmds_need_lc_CXX=no
10468     ;;
10469   tandem*)
10470     case $cc_basename in
10471       NCC)
10472         # NonStop-UX NCC 3.20
10473         # FIXME: insert proper C++ library support
10474         ld_shlibs_CXX=no
10475         ;;
10476       *)
10477         # FIXME: insert proper C++ library support
10478         ld_shlibs_CXX=no
10479         ;;
10480     esac
10481     ;;
10482   vxworks*)
10483     # FIXME: insert proper C++ library support
10484     ld_shlibs_CXX=no
10485     ;;
10486   *)
10487     # FIXME: insert proper C++ library support
10488     ld_shlibs_CXX=no
10489     ;;
10490 esac
10491 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10492 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10493 test "$ld_shlibs_CXX" = no && can_build_shared=no
10494
10495 GCC_CXX="$GXX"
10496 LD_CXX="$LD"
10497
10498
10499 cat > conftest.$ac_ext <<EOF
10500 class Foo
10501 {
10502 public:
10503   Foo (void) { a = 0; }
10504 private:
10505   int a;
10506 };
10507 EOF
10508
10509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510   (eval $ac_compile) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); }; then
10514   # Parse the compiler output and extract the necessary
10515   # objects, libraries and library flags.
10516
10517   # Sentinel used to keep track of whether or not we are before
10518   # the conftest object file.
10519   pre_test_object_deps_done=no
10520
10521   # The `*' in the case matches for architectures that use `case' in
10522   # $output_verbose_cmd can trigger glob expansion during the loop
10523   # eval without this substitution.
10524   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10525
10526   for p in `eval $output_verbose_link_cmd`; do
10527     case $p in
10528
10529     -L* | -R* | -l*)
10530        # Some compilers place space between "-{L,R}" and the path.
10531        # Remove the space.
10532        if test $p = "-L" \
10533           || test $p = "-R"; then
10534          prev=$p
10535          continue
10536        else
10537          prev=
10538        fi
10539
10540        if test "$pre_test_object_deps_done" = no; then
10541          case $p in
10542          -L* | -R*)
10543            # Internal compiler library paths should come after those
10544            # provided the user.  The postdeps already come after the
10545            # user supplied libs so there is no need to process them.
10546            if test -z "$compiler_lib_search_path_CXX"; then
10547              compiler_lib_search_path_CXX="${prev}${p}"
10548            else
10549              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10550            fi
10551            ;;
10552          # The "-l" case would never come before the object being
10553          # linked, so don't bother handling this case.
10554          esac
10555        else
10556          if test -z "$postdeps_CXX"; then
10557            postdeps_CXX="${prev}${p}"
10558          else
10559            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10560          fi
10561        fi
10562        ;;
10563
10564     *.$objext)
10565        # This assumes that the test object file only shows up
10566        # once in the compiler output.
10567        if test "$p" = "conftest.$objext"; then
10568          pre_test_object_deps_done=yes
10569          continue
10570        fi
10571
10572        if test "$pre_test_object_deps_done" = no; then
10573          if test -z "$predep_objects_CXX"; then
10574            predep_objects_CXX="$p"
10575          else
10576            predep_objects_CXX="$predep_objects_CXX $p"
10577          fi
10578        else
10579          if test -z "$postdep_objects_CXX"; then
10580            postdep_objects_CXX="$p"
10581          else
10582            postdep_objects_CXX="$postdep_objects_CXX $p"
10583          fi
10584        fi
10585        ;;
10586
10587     *) ;; # Ignore the rest.
10588
10589     esac
10590   done
10591
10592   # Clean up.
10593   rm -f a.out a.exe
10594 else
10595   echo "libtool.m4: error: problem compiling CXX test program"
10596 fi
10597
10598 $rm -f confest.$objext
10599
10600 case " $postdeps_CXX " in
10601 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10602 esac
10603
10604 lt_prog_compiler_wl_CXX=
10605 lt_prog_compiler_pic_CXX=
10606 lt_prog_compiler_static_CXX=
10607
10608 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10609 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10610
10611   # C++ specific cases for pic, static, wl, etc.
10612   if test "$GXX" = yes; then
10613     lt_prog_compiler_wl_CXX='-Wl,'
10614     lt_prog_compiler_static_CXX='-static'
10615
10616     case $host_os in
10617     aix*)
10618       # All AIX code is PIC.
10619       if test "$host_cpu" = ia64; then
10620         # AIX 5 now supports IA64 processor
10621         lt_prog_compiler_static_CXX='-Bstatic'
10622       fi
10623       ;;
10624     amigaos*)
10625       # FIXME: we need at least 68020 code to build shared libraries, but
10626       # adding the `-m68020' flag to GCC prevents building anything better,
10627       # like `-m68040'.
10628       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10629       ;;
10630     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10631       # PIC is the default for these OSes.
10632       ;;
10633     mingw* | os2* | pw32*)
10634       # This hack is so that the source file can tell whether it is being
10635       # built for inclusion in a dll (and should export symbols for example).
10636       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10637       ;;
10638     darwin* | rhapsody*)
10639       # PIC is the default on this platform
10640       # Common symbols not allowed in MH_DYLIB files
10641       lt_prog_compiler_pic_CXX='-fno-common'
10642       ;;
10643     *djgpp*)
10644       # DJGPP does not support shared libraries at all
10645       lt_prog_compiler_pic_CXX=
10646       ;;
10647     sysv4*MP*)
10648       if test -d /usr/nec; then
10649         lt_prog_compiler_pic_CXX=-Kconform_pic
10650       fi
10651       ;;
10652     hpux*)
10653       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10654       # not for PA HP-UX.
10655       case "$host_cpu" in
10656       hppa*64*|ia64*)
10657         ;;
10658       *)
10659         lt_prog_compiler_pic_CXX='-fPIC'
10660         ;;
10661       esac
10662       ;;
10663     *)
10664       lt_prog_compiler_pic_CXX='-fPIC'
10665       ;;
10666     esac
10667   else
10668     case $host_os in
10669       aix4* | aix5*)
10670         # All AIX code is PIC.
10671         if test "$host_cpu" = ia64; then
10672           # AIX 5 now supports IA64 processor
10673           lt_prog_compiler_static_CXX='-Bstatic'
10674         else
10675           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10676         fi
10677         ;;
10678       chorus*)
10679         case $cc_basename in
10680         cxch68)
10681           # Green Hills C++ Compiler
10682           # _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"
10683           ;;
10684         esac
10685         ;;
10686        darwin*)
10687          # PIC is the default on this platform
10688          # Common symbols not allowed in MH_DYLIB files
10689          case "$cc_basename" in
10690            xlc*)
10691            lt_prog_compiler_pic_CXX='-qnocommon'
10692            lt_prog_compiler_wl_CXX='-Wl,'
10693            ;;
10694          esac
10695        ;;
10696       dgux*)
10697         case $cc_basename in
10698           ec++)
10699             lt_prog_compiler_pic_CXX='-KPIC'
10700             ;;
10701           ghcx)
10702             # Green Hills C++ Compiler
10703             lt_prog_compiler_pic_CXX='-pic'
10704             ;;
10705           *)
10706             ;;
10707         esac
10708         ;;
10709       freebsd* | kfreebsd*-gnu)
10710         # FreeBSD uses GNU C++
10711         ;;
10712       hpux9* | hpux10* | hpux11*)
10713         case $cc_basename in
10714           CC)
10715             lt_prog_compiler_wl_CXX='-Wl,'
10716             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10717             if test "$host_cpu" != ia64; then
10718               lt_prog_compiler_pic_CXX='+Z'
10719             fi
10720             ;;
10721           aCC)
10722             lt_prog_compiler_wl_CXX='-Wl,'
10723             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10724             case "$host_cpu" in
10725             hppa*64*|ia64*)
10726               # +Z the default
10727               ;;
10728             *)
10729               lt_prog_compiler_pic_CXX='+Z'
10730               ;;
10731             esac
10732             ;;
10733           *)
10734             ;;
10735         esac
10736         ;;
10737       irix5* | irix6* | nonstopux*)
10738         case $cc_basename in
10739           CC)
10740             lt_prog_compiler_wl_CXX='-Wl,'
10741             lt_prog_compiler_static_CXX='-non_shared'
10742             # CC pic flag -KPIC is the default.
10743             ;;
10744           *)
10745             ;;
10746         esac
10747         ;;
10748       linux*)
10749         case $cc_basename in
10750           KCC)
10751             # KAI C++ Compiler
10752             lt_prog_compiler_wl_CXX='--backend -Wl,'
10753             lt_prog_compiler_pic_CXX='-fPIC'
10754             ;;
10755           icpc)
10756             # Intel C++
10757             lt_prog_compiler_wl_CXX='-Wl,'
10758             lt_prog_compiler_pic_CXX='-KPIC'
10759             lt_prog_compiler_static_CXX='-static'
10760             ;;
10761           cxx)
10762             # Compaq C++
10763             # Make sure the PIC flag is empty.  It appears that all Alpha
10764             # Linux and Compaq Tru64 Unix objects are PIC.
10765             lt_prog_compiler_pic_CXX=
10766             lt_prog_compiler_static_CXX='-non_shared'
10767             ;;
10768           *)
10769             ;;
10770         esac
10771         ;;
10772       lynxos*)
10773         ;;
10774       m88k*)
10775         ;;
10776       mvs*)
10777         case $cc_basename in
10778           cxx)
10779             lt_prog_compiler_pic_CXX='-W c,exportall'
10780             ;;
10781           *)
10782             ;;
10783         esac
10784         ;;
10785       netbsd*)
10786         ;;
10787       osf3* | osf4* | osf5*)
10788         case $cc_basename in
10789           KCC)
10790             lt_prog_compiler_wl_CXX='--backend -Wl,'
10791             ;;
10792           RCC)
10793             # Rational C++ 2.4.1
10794             lt_prog_compiler_pic_CXX='-pic'
10795             ;;
10796           cxx)
10797             # Digital/Compaq C++
10798             lt_prog_compiler_wl_CXX='-Wl,'
10799             # Make sure the PIC flag is empty.  It appears that all Alpha
10800             # Linux and Compaq Tru64 Unix objects are PIC.
10801             lt_prog_compiler_pic_CXX=
10802             lt_prog_compiler_static_CXX='-non_shared'
10803             ;;
10804           *)
10805             ;;
10806         esac
10807         ;;
10808       psos*)
10809         ;;
10810       sco*)
10811         case $cc_basename in
10812           CC)
10813             lt_prog_compiler_pic_CXX='-fPIC'
10814             ;;
10815           *)
10816             ;;
10817         esac
10818         ;;
10819       solaris*)
10820         case $cc_basename in
10821           CC)
10822             # Sun C++ 4.2, 5.x and Centerline C++
10823             lt_prog_compiler_pic_CXX='-KPIC'
10824             lt_prog_compiler_static_CXX='-Bstatic'
10825             lt_prog_compiler_wl_CXX='-Qoption ld '
10826             ;;
10827           gcx)
10828             # Green Hills C++ Compiler
10829             lt_prog_compiler_pic_CXX='-PIC'
10830             ;;
10831           *)
10832             ;;
10833         esac
10834         ;;
10835       sunos4*)
10836         case $cc_basename in
10837           CC)
10838             # Sun C++ 4.x
10839             lt_prog_compiler_pic_CXX='-pic'
10840             lt_prog_compiler_static_CXX='-Bstatic'
10841             ;;
10842           lcc)
10843             # Lucid
10844             lt_prog_compiler_pic_CXX='-pic'
10845             ;;
10846           *)
10847             ;;
10848         esac
10849         ;;
10850       tandem*)
10851         case $cc_basename in
10852           NCC)
10853             # NonStop-UX NCC 3.20
10854             lt_prog_compiler_pic_CXX='-KPIC'
10855             ;;
10856           *)
10857             ;;
10858         esac
10859         ;;
10860       unixware*)
10861         ;;
10862       vxworks*)
10863         ;;
10864       *)
10865         lt_prog_compiler_can_build_shared_CXX=no
10866         ;;
10867     esac
10868   fi
10869
10870 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10871 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10872
10873 #
10874 # Check to make sure the PIC flag actually works.
10875 #
10876 if test -n "$lt_prog_compiler_pic_CXX"; then
10877
10878 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10879 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10880 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10881   echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883   lt_prog_compiler_pic_works_CXX=no
10884   ac_outfile=conftest.$ac_objext
10885    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10886    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10887    # Insert the option either (1) after the last *FLAGS variable, or
10888    # (2) before a word containing "conftest.", or (3) at the end.
10889    # Note that $ac_compile itself does not contain backslashes and begins
10890    # with a dollar sign (not a hyphen), so the echo should work correctly.
10891    # The option is referenced via a variable to avoid confusing sed.
10892    lt_compile=`echo "$ac_compile" | $SED \
10893    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10895    -e 's:$: $lt_compiler_flag:'`
10896    (eval echo "\"\$as_me:10896: $lt_compile\"" >&5)
10897    (eval "$lt_compile" 2>conftest.err)
10898    ac_status=$?
10899    cat conftest.err >&5
10900    echo "$as_me:10900: \$? = $ac_status" >&5
10901    if (exit $ac_status) && test -s "$ac_outfile"; then
10902      # The compiler can only warn and ignore the option if not recognized
10903      # So say no if there are warnings
10904      if test ! -s conftest.err; then
10905        lt_prog_compiler_pic_works_CXX=yes
10906      fi
10907    fi
10908    $rm conftest*
10909
10910 fi
10911 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10912 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10913
10914 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10915     case $lt_prog_compiler_pic_CXX in
10916      "" | " "*) ;;
10917      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10918      esac
10919 else
10920     lt_prog_compiler_pic_CXX=
10921      lt_prog_compiler_can_build_shared_CXX=no
10922 fi
10923
10924 fi
10925 case "$host_os" in
10926   # For platforms which do not support PIC, -DPIC is meaningless:
10927   *djgpp*)
10928     lt_prog_compiler_pic_CXX=
10929     ;;
10930   *)
10931     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10932     ;;
10933 esac
10934
10935 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10936 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10937 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940   lt_cv_prog_compiler_c_o_CXX=no
10941    $rm -r conftest 2>/dev/null
10942    mkdir conftest
10943    cd conftest
10944    mkdir out
10945    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10946
10947    lt_compiler_flag="-o out/conftest2.$ac_objext"
10948    # Insert the option either (1) after the last *FLAGS variable, or
10949    # (2) before a word containing "conftest.", or (3) at the end.
10950    # Note that $ac_compile itself does not contain backslashes and begins
10951    # with a dollar sign (not a hyphen), so the echo should work correctly.
10952    lt_compile=`echo "$ac_compile" | $SED \
10953    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10954    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10955    -e 's:$: $lt_compiler_flag:'`
10956    (eval echo "\"\$as_me:10956: $lt_compile\"" >&5)
10957    (eval "$lt_compile" 2>out/conftest.err)
10958    ac_status=$?
10959    cat out/conftest.err >&5
10960    echo "$as_me:10960: \$? = $ac_status" >&5
10961    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10962    then
10963      # The compiler can only warn and ignore the option if not recognized
10964      # So say no if there are warnings
10965      if test ! -s out/conftest.err; then
10966        lt_cv_prog_compiler_c_o_CXX=yes
10967      fi
10968    fi
10969    chmod u+w .
10970    $rm conftest*
10971    # SGI C++ compiler will create directory out/ii_files/ for
10972    # template instantiation
10973    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10974    $rm out/* && rmdir out
10975    cd ..
10976    rmdir conftest
10977    $rm conftest*
10978
10979 fi
10980 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10981 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10982
10983
10984 hard_links="nottested"
10985 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10986   # do not overwrite the value of need_locks provided by the user
10987   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10988 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10989   hard_links=yes
10990   $rm conftest*
10991   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10992   touch conftest.a
10993   ln conftest.a conftest.b 2>&5 || hard_links=no
10994   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10995   echo "$as_me:$LINENO: result: $hard_links" >&5
10996 echo "${ECHO_T}$hard_links" >&6
10997   if test "$hard_links" = no; then
10998     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10999 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11000     need_locks=warn
11001   fi
11002 else
11003   need_locks=no
11004 fi
11005
11006 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11007 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11008
11009   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11010   case $host_os in
11011   aix4* | aix5*)
11012     # If we're using GNU nm, then we don't want the "-C" option.
11013     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11014     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11015       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'
11016     else
11017       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'
11018     fi
11019     ;;
11020   pw32*)
11021     export_symbols_cmds_CXX="$ltdll_cmds"
11022   ;;
11023   cygwin* | mingw*)
11024     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11025   ;;
11026   *)
11027     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11028   ;;
11029   esac
11030
11031 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11032 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11033 test "$ld_shlibs_CXX" = no && can_build_shared=no
11034
11035 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11036 if test "$GCC" = yes; then
11037   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11038 fi
11039
11040 #
11041 # Do we need to explicitly link libc?
11042 #
11043 case "x$archive_cmds_need_lc_CXX" in
11044 x|xyes)
11045   # Assume -lc should be added
11046   archive_cmds_need_lc_CXX=yes
11047
11048   if test "$enable_shared" = yes && test "$GCC" = yes; then
11049     case $archive_cmds_CXX in
11050     *'~'*)
11051       # FIXME: we may have to deal with multi-command sequences.
11052       ;;
11053     '$CC '*)
11054       # Test whether the compiler implicitly links with -lc since on some
11055       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11056       # to ld, don't add -lc before -lgcc.
11057       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11059       $rm conftest*
11060       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11061
11062       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11063   (eval $ac_compile) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } 2>conftest.err; then
11067         soname=conftest
11068         lib=conftest
11069         libobjs=conftest.$ac_objext
11070         deplibs=
11071         wl=$lt_prog_compiler_wl_CXX
11072         compiler_flags=-v
11073         linker_flags=-v
11074         verstring=
11075         output_objdir=.
11076         libname=conftest
11077         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11078         allow_undefined_flag_CXX=
11079         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11080   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }
11084         then
11085           archive_cmds_need_lc_CXX=no
11086         else
11087           archive_cmds_need_lc_CXX=yes
11088         fi
11089         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11090       else
11091         cat conftest.err 1>&5
11092       fi
11093       $rm conftest*
11094       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11095 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11096       ;;
11097     esac
11098   fi
11099   ;;
11100 esac
11101
11102 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11103 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11104 library_names_spec=
11105 libname_spec='lib$name'
11106 soname_spec=
11107 shrext_cmds=".so"
11108 postinstall_cmds=
11109 postuninstall_cmds=
11110 finish_cmds=
11111 finish_eval=
11112 shlibpath_var=
11113 shlibpath_overrides_runpath=unknown
11114 version_type=none
11115 dynamic_linker="$host_os ld.so"
11116 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11117 if test "$GCC" = yes; then
11118   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11119   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11120     # if the path contains ";" then we assume it to be the separator
11121     # otherwise default to the standard path separator (i.e. ":") - it is
11122     # assumed that no part of a normal pathname contains ";" but that should
11123     # okay in the real world where ";" in dirpaths is itself problematic.
11124     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11125   else
11126     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11127   fi
11128 else
11129   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11130 fi
11131 need_lib_prefix=unknown
11132 hardcode_into_libs=no
11133
11134 # when you set need_version to no, make sure it does not cause -set_version
11135 # flags to be left without arguments
11136 need_version=unknown
11137
11138 case $host_os in
11139 aix3*)
11140   version_type=linux
11141   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11142   shlibpath_var=LIBPATH
11143
11144   # AIX 3 has no versioning support, so we append a major version to the name.
11145   soname_spec='${libname}${release}${shared_ext}$major'
11146   ;;
11147
11148 aix4* | aix5*)
11149   version_type=linux
11150   need_lib_prefix=no
11151   need_version=no
11152   hardcode_into_libs=yes
11153   if test "$host_cpu" = ia64; then
11154     # AIX 5 supports IA64
11155     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11156     shlibpath_var=LD_LIBRARY_PATH
11157   else
11158     # With GCC up to 2.95.x, collect2 would create an import file
11159     # for dependence libraries.  The import file would start with
11160     # the line `#! .'.  This would cause the generated library to
11161     # depend on `.', always an invalid library.  This was fixed in
11162     # development snapshots of GCC prior to 3.0.
11163     case $host_os in
11164       aix4 | aix4.[01] | aix4.[01].*)
11165       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11166            echo ' yes '
11167            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11168         :
11169       else
11170         can_build_shared=no
11171       fi
11172       ;;
11173     esac
11174     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11175     # soname into executable. Probably we can add versioning support to
11176     # collect2, so additional links can be useful in future.
11177     if test "$aix_use_runtimelinking" = yes; then
11178       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11179       # instead of lib<name>.a to let people know that these are not
11180       # typical AIX shared libraries.
11181       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182     else
11183       # We preserve .a as extension for shared libraries through AIX4.2
11184       # and later when we are not doing run time linking.
11185       library_names_spec='${libname}${release}.a $libname.a'
11186       soname_spec='${libname}${release}${shared_ext}$major'
11187     fi
11188     shlibpath_var=LIBPATH
11189   fi
11190   ;;
11191
11192 amigaos*)
11193   library_names_spec='$libname.ixlibrary $libname.a'
11194   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11195   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'
11196   ;;
11197
11198 beos*)
11199   library_names_spec='${libname}${shared_ext}'
11200   dynamic_linker="$host_os ld.so"
11201   shlibpath_var=LIBRARY_PATH
11202   ;;
11203
11204 bsdi[45]*)
11205   version_type=linux
11206   need_version=no
11207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208   soname_spec='${libname}${release}${shared_ext}$major'
11209   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11210   shlibpath_var=LD_LIBRARY_PATH
11211   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11212   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11213   # the default ld.so.conf also contains /usr/contrib/lib and
11214   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11215   # libtool to hard-code these into programs
11216   ;;
11217
11218 cygwin* | mingw* | pw32*)
11219   version_type=windows
11220   shrext_cmds=".dll"
11221   need_version=no
11222   need_lib_prefix=no
11223
11224   case $GCC,$host_os in
11225   yes,cygwin* | yes,mingw* | yes,pw32*)
11226     library_names_spec='$libname.dll.a'
11227     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11228     postinstall_cmds='base_file=`basename \${file}`~
11229       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11230       dldir=$destdir/`dirname \$dlpath`~
11231       test -d \$dldir || mkdir -p \$dldir~
11232       $install_prog $dir/$dlname \$dldir/$dlname'
11233     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11234       dlpath=$dir/\$dldll~
11235        $rm \$dlpath'
11236     shlibpath_overrides_runpath=yes
11237
11238     case $host_os in
11239     cygwin*)
11240       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11241       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11242       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11243       ;;
11244     mingw*)
11245       # MinGW DLLs use traditional 'lib' prefix
11246       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11247       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11248       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11249         # It is most probably a Windows format PATH printed by
11250         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11251         # path with ; separators, and with drive letters. We can handle the
11252         # drive letters (cygwin fileutils understands them), so leave them,
11253         # especially as we might pass files found there to a mingw objdump,
11254         # which wouldn't understand a cygwinified path. Ahh.
11255         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11256       else
11257         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11258       fi
11259       ;;
11260     pw32*)
11261       # pw32 DLLs use 'pw' prefix rather than 'lib'
11262       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11263       ;;
11264     esac
11265     ;;
11266
11267   *)
11268     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11269     ;;
11270   esac
11271   dynamic_linker='Win32 ld.exe'
11272   # FIXME: first we should search . and the directory the executable is in
11273   shlibpath_var=PATH
11274   ;;
11275
11276 darwin* | rhapsody*)
11277   dynamic_linker="$host_os dyld"
11278   version_type=darwin
11279   need_lib_prefix=no
11280   need_version=no
11281   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11282   soname_spec='${libname}${release}${major}$shared_ext'
11283   shlibpath_overrides_runpath=yes
11284   shlibpath_var=DYLD_LIBRARY_PATH
11285   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11286   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11287   if test "$GCC" = yes; then
11288     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"`
11289   else
11290     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11291   fi
11292   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11293   ;;
11294
11295 dgux*)
11296   version_type=linux
11297   need_lib_prefix=no
11298   need_version=no
11299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11300   soname_spec='${libname}${release}${shared_ext}$major'
11301   shlibpath_var=LD_LIBRARY_PATH
11302   ;;
11303
11304 freebsd1*)
11305   dynamic_linker=no
11306   ;;
11307
11308 kfreebsd*-gnu)
11309   version_type=linux
11310   need_lib_prefix=no
11311   need_version=no
11312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11313   soname_spec='${libname}${release}${shared_ext}$major'
11314   shlibpath_var=LD_LIBRARY_PATH
11315   shlibpath_overrides_runpath=no
11316   hardcode_into_libs=yes
11317   dynamic_linker='GNU ld.so'
11318   ;;
11319
11320 freebsd*)
11321   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11322   version_type=freebsd-$objformat
11323   case $version_type in
11324     freebsd-elf*)
11325       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11326       need_version=no
11327       need_lib_prefix=no
11328       ;;
11329     freebsd-*)
11330       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11331       need_version=yes
11332       ;;
11333   esac
11334   shlibpath_var=LD_LIBRARY_PATH
11335   case $host_os in
11336   freebsd2*)
11337     shlibpath_overrides_runpath=yes
11338     ;;
11339   freebsd3.01* | freebsdelf3.01*)
11340     shlibpath_overrides_runpath=yes
11341     hardcode_into_libs=yes
11342     ;;
11343   *) # from 3.2 on
11344     shlibpath_overrides_runpath=no
11345     hardcode_into_libs=yes
11346     ;;
11347   esac
11348   ;;
11349
11350 gnu*)
11351   version_type=linux
11352   need_lib_prefix=no
11353   need_version=no
11354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11355   soname_spec='${libname}${release}${shared_ext}$major'
11356   shlibpath_var=LD_LIBRARY_PATH
11357   hardcode_into_libs=yes
11358   ;;
11359
11360 hpux9* | hpux10* | hpux11*)
11361   # Give a soname corresponding to the major version so that dld.sl refuses to
11362   # link against other versions.
11363   version_type=sunos
11364   need_lib_prefix=no
11365   need_version=no
11366   case "$host_cpu" in
11367   ia64*)
11368     shrext_cmds='.so'
11369     hardcode_into_libs=yes
11370     dynamic_linker="$host_os dld.so"
11371     shlibpath_var=LD_LIBRARY_PATH
11372     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374     soname_spec='${libname}${release}${shared_ext}$major'
11375     if test "X$HPUX_IA64_MODE" = X32; then
11376       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11377     else
11378       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11379     fi
11380     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11381     ;;
11382    hppa*64*)
11383      shrext_cmds='.sl'
11384      hardcode_into_libs=yes
11385      dynamic_linker="$host_os dld.sl"
11386      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11387      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11388      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389      soname_spec='${libname}${release}${shared_ext}$major'
11390      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11391      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11392      ;;
11393    *)
11394     shrext_cmds='.sl'
11395     dynamic_linker="$host_os dld.sl"
11396     shlibpath_var=SHLIB_PATH
11397     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399     soname_spec='${libname}${release}${shared_ext}$major'
11400     ;;
11401   esac
11402   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11403   postinstall_cmds='chmod 555 $lib'
11404   ;;
11405
11406 irix5* | irix6* | nonstopux*)
11407   case $host_os in
11408     nonstopux*) version_type=nonstopux ;;
11409     *)
11410         if test "$lt_cv_prog_gnu_ld" = yes; then
11411                 version_type=linux
11412         else
11413                 version_type=irix
11414         fi ;;
11415   esac
11416   need_lib_prefix=no
11417   need_version=no
11418   soname_spec='${libname}${release}${shared_ext}$major'
11419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11420   case $host_os in
11421   irix5* | nonstopux*)
11422     libsuff= shlibsuff=
11423     ;;
11424   *)
11425     case $LD in # libtool.m4 will add one of these switches to LD
11426     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11427       libsuff= shlibsuff= libmagic=32-bit;;
11428     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11429       libsuff=32 shlibsuff=N32 libmagic=N32;;
11430     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11431       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11432     *) libsuff= shlibsuff= libmagic=never-match;;
11433     esac
11434     ;;
11435   esac
11436   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11437   shlibpath_overrides_runpath=no
11438   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11439   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11440   hardcode_into_libs=yes
11441   ;;
11442
11443 # No shared lib support for Linux oldld, aout, or coff.
11444 linux*oldld* | linux*aout* | linux*coff*)
11445   dynamic_linker=no
11446   ;;
11447
11448 # This must be Linux ELF.
11449 linux*)
11450   version_type=linux
11451   need_lib_prefix=no
11452   need_version=no
11453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454   soname_spec='${libname}${release}${shared_ext}$major'
11455   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11456   shlibpath_var=LD_LIBRARY_PATH
11457   shlibpath_overrides_runpath=no
11458   # This implies no fast_install, which is unacceptable.
11459   # Some rework will be needed to allow for fast_install
11460   # before this can be enabled.
11461   hardcode_into_libs=yes
11462
11463   # Append ld.so.conf contents to the search path
11464   if test -f /etc/ld.so.conf; then
11465     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11466     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11467   fi
11468
11469   # We used to test for /lib/ld.so.1 and disable shared libraries on
11470   # powerpc, because MkLinux only supported shared libraries with the
11471   # GNU dynamic linker.  Since this was broken with cross compilers,
11472   # most powerpc-linux boxes support dynamic linking these days and
11473   # people can always --disable-shared, the test was removed, and we
11474   # assume the GNU/Linux dynamic linker is in use.
11475   dynamic_linker='GNU/Linux ld.so'
11476   ;;
11477
11478 knetbsd*-gnu)
11479   version_type=linux
11480   need_lib_prefix=no
11481   need_version=no
11482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11483   soname_spec='${libname}${release}${shared_ext}$major'
11484   shlibpath_var=LD_LIBRARY_PATH
11485   shlibpath_overrides_runpath=no
11486   hardcode_into_libs=yes
11487   dynamic_linker='GNU ld.so'
11488   ;;
11489
11490 netbsd*)
11491   version_type=sunos
11492   need_lib_prefix=no
11493   need_version=no
11494   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11496     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11497     dynamic_linker='NetBSD (a.out) ld.so'
11498   else
11499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11500     soname_spec='${libname}${release}${shared_ext}$major'
11501     dynamic_linker='NetBSD ld.elf_so'
11502   fi
11503   shlibpath_var=LD_LIBRARY_PATH
11504   shlibpath_overrides_runpath=yes
11505   hardcode_into_libs=yes
11506   ;;
11507
11508 newsos6)
11509   version_type=linux
11510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511   shlibpath_var=LD_LIBRARY_PATH
11512   shlibpath_overrides_runpath=yes
11513   ;;
11514
11515 nto-qnx*)
11516   version_type=linux
11517   need_lib_prefix=no
11518   need_version=no
11519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520   soname_spec='${libname}${release}${shared_ext}$major'
11521   shlibpath_var=LD_LIBRARY_PATH
11522   shlibpath_overrides_runpath=yes
11523   ;;
11524
11525 openbsd*)
11526   version_type=sunos
11527   need_lib_prefix=no
11528   need_version=no
11529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11530   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11531   shlibpath_var=LD_LIBRARY_PATH
11532   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11533     case $host_os in
11534       openbsd2.[89] | openbsd2.[89].*)
11535         shlibpath_overrides_runpath=no
11536         ;;
11537       *)
11538         shlibpath_overrides_runpath=yes
11539         ;;
11540       esac
11541   else
11542     shlibpath_overrides_runpath=yes
11543   fi
11544   ;;
11545
11546 os2*)
11547   libname_spec='$name'
11548   shrext_cmds=".dll"
11549   need_lib_prefix=no
11550   library_names_spec='$libname${shared_ext} $libname.a'
11551   dynamic_linker='OS/2 ld.exe'
11552   shlibpath_var=LIBPATH
11553   ;;
11554
11555 osf3* | osf4* | osf5*)
11556   version_type=osf
11557   need_lib_prefix=no
11558   need_version=no
11559   soname_spec='${libname}${release}${shared_ext}$major'
11560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561   shlibpath_var=LD_LIBRARY_PATH
11562   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11563   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11564   ;;
11565
11566 sco3.2v5*)
11567   version_type=osf
11568   soname_spec='${libname}${release}${shared_ext}$major'
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570   shlibpath_var=LD_LIBRARY_PATH
11571   ;;
11572
11573 solaris*)
11574   version_type=linux
11575   need_lib_prefix=no
11576   need_version=no
11577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578   soname_spec='${libname}${release}${shared_ext}$major'
11579   shlibpath_var=LD_LIBRARY_PATH
11580   shlibpath_overrides_runpath=yes
11581   hardcode_into_libs=yes
11582   # ldd complains unless libraries are executable
11583   postinstall_cmds='chmod +x $lib'
11584   ;;
11585
11586 sunos4*)
11587   version_type=sunos
11588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11589   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11590   shlibpath_var=LD_LIBRARY_PATH
11591   shlibpath_overrides_runpath=yes
11592   if test "$with_gnu_ld" = yes; then
11593     need_lib_prefix=no
11594   fi
11595   need_version=yes
11596   ;;
11597
11598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11599   version_type=linux
11600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601   soname_spec='${libname}${release}${shared_ext}$major'
11602   shlibpath_var=LD_LIBRARY_PATH
11603   case $host_vendor in
11604     sni)
11605       shlibpath_overrides_runpath=no
11606       need_lib_prefix=no
11607       export_dynamic_flag_spec='${wl}-Blargedynsym'
11608       runpath_var=LD_RUN_PATH
11609       ;;
11610     siemens)
11611       need_lib_prefix=no
11612       ;;
11613     motorola)
11614       need_lib_prefix=no
11615       need_version=no
11616       shlibpath_overrides_runpath=no
11617       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11618       ;;
11619   esac
11620   ;;
11621
11622 sysv4*MP*)
11623   if test -d /usr/nec ;then
11624     version_type=linux
11625     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11626     soname_spec='$libname${shared_ext}.$major'
11627     shlibpath_var=LD_LIBRARY_PATH
11628   fi
11629   ;;
11630
11631 uts4*)
11632   version_type=linux
11633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634   soname_spec='${libname}${release}${shared_ext}$major'
11635   shlibpath_var=LD_LIBRARY_PATH
11636   ;;
11637
11638 *)
11639   dynamic_linker=no
11640   ;;
11641 esac
11642 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11643 echo "${ECHO_T}$dynamic_linker" >&6
11644 test "$dynamic_linker" = no && can_build_shared=no
11645
11646 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11648 hardcode_action_CXX=
11649 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11650    test -n "$runpath_var_CXX" || \
11651    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11652
11653   # We can hardcode non-existant directories.
11654   if test "$hardcode_direct_CXX" != no &&
11655      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11656      # have to relink, otherwise we might link with an installed library
11657      # when we should be linking with a yet-to-be-installed one
11658      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11659      test "$hardcode_minus_L_CXX" != no; then
11660     # Linking always hardcodes the temporary library directory.
11661     hardcode_action_CXX=relink
11662   else
11663     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11664     hardcode_action_CXX=immediate
11665   fi
11666 else
11667   # We cannot hardcode anything, or else we can only hardcode existing
11668   # directories.
11669   hardcode_action_CXX=unsupported
11670 fi
11671 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11672 echo "${ECHO_T}$hardcode_action_CXX" >&6
11673
11674 if test "$hardcode_action_CXX" = relink; then
11675   # Fast installation is not supported
11676   enable_fast_install=no
11677 elif test "$shlibpath_overrides_runpath" = yes ||
11678      test "$enable_shared" = no; then
11679   # Fast installation is not necessary
11680   enable_fast_install=needless
11681 fi
11682
11683 striplib=
11684 old_striplib=
11685 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11686 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11687 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11688   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11689   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11690   echo "$as_me:$LINENO: result: yes" >&5
11691 echo "${ECHO_T}yes" >&6
11692 else
11693 # FIXME - insert some real tests, host_os isn't really good enough
11694   case $host_os in
11695    darwin*)
11696        if test -n "$STRIP" ; then
11697          striplib="$STRIP -x"
11698          echo "$as_me:$LINENO: result: yes" >&5
11699 echo "${ECHO_T}yes" >&6
11700        else
11701   echo "$as_me:$LINENO: result: no" >&5
11702 echo "${ECHO_T}no" >&6
11703 fi
11704        ;;
11705    *)
11706   echo "$as_me:$LINENO: result: no" >&5
11707 echo "${ECHO_T}no" >&6
11708     ;;
11709   esac
11710 fi
11711
11712 if test "x$enable_dlopen" != xyes; then
11713   enable_dlopen=unknown
11714   enable_dlopen_self=unknown
11715   enable_dlopen_self_static=unknown
11716 else
11717   lt_cv_dlopen=no
11718   lt_cv_dlopen_libs=
11719
11720   case $host_os in
11721   beos*)
11722     lt_cv_dlopen="load_add_on"
11723     lt_cv_dlopen_libs=
11724     lt_cv_dlopen_self=yes
11725     ;;
11726
11727   mingw* | pw32*)
11728     lt_cv_dlopen="LoadLibrary"
11729     lt_cv_dlopen_libs=
11730    ;;
11731
11732   cygwin*)
11733     lt_cv_dlopen="dlopen"
11734     lt_cv_dlopen_libs=
11735    ;;
11736
11737   darwin*)
11738   # if libdl is installed we need to link against it
11739     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11740 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11742   echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744   ac_check_lib_save_LIBS=$LIBS
11745 LIBS="-ldl  $LIBS"
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h.  */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h.  */
11752
11753 /* Override any gcc2 internal prototype to avoid an error.  */
11754 #ifdef __cplusplus
11755 extern "C"
11756 #endif
11757 /* We use char because int might match the return type of a gcc2
11758    builtin and then its argument prototype would still apply.  */
11759 char dlopen ();
11760 int
11761 main ()
11762 {
11763 dlopen ();
11764   ;
11765   return 0;
11766 }
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770   (eval $ac_link) 2>conftest.er1
11771   ac_status=$?
11772   grep -v '^ *+' conftest.er1 >conftest.err
11773   rm -f conftest.er1
11774   cat conftest.err >&5
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); } &&
11777          { ac_try='test -z "$ac_cxx_werror_flag"
11778                          || test ! -s conftest.err'
11779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780   (eval $ac_try) 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); }; } &&
11784          { ac_try='test -s conftest$ac_exeext'
11785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786   (eval $ac_try) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790   ac_cv_lib_dl_dlopen=yes
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795 ac_cv_lib_dl_dlopen=no
11796 fi
11797 rm -f conftest.err conftest.$ac_objext \
11798       conftest$ac_exeext conftest.$ac_ext
11799 LIBS=$ac_check_lib_save_LIBS
11800 fi
11801 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11802 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11803 if test $ac_cv_lib_dl_dlopen = yes; then
11804   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11805 else
11806
11807     lt_cv_dlopen="dyld"
11808     lt_cv_dlopen_libs=
11809     lt_cv_dlopen_self=yes
11810
11811 fi
11812
11813    ;;
11814
11815   *)
11816     echo "$as_me:$LINENO: checking for shl_load" >&5
11817 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11818 if test "${ac_cv_func_shl_load+set}" = set; then
11819   echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821   cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11829 #define shl_load innocuous_shl_load
11830
11831 /* System header to define __stub macros and hopefully few prototypes,
11832     which can conflict with char shl_load (); below.
11833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11834     <limits.h> exists even on freestanding compilers.  */
11835
11836 #ifdef __STDC__
11837 # include <limits.h>
11838 #else
11839 # include <assert.h>
11840 #endif
11841
11842 #undef shl_load
11843
11844 /* Override any gcc2 internal prototype to avoid an error.  */
11845 #ifdef __cplusplus
11846 extern "C"
11847 {
11848 #endif
11849 /* We use char because int might match the return type of a gcc2
11850    builtin and then its argument prototype would still apply.  */
11851 char shl_load ();
11852 /* The GNU C library defines this for functions which it implements
11853     to always fail with ENOSYS.  Some functions are actually named
11854     something starting with __ and the normal name is an alias.  */
11855 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11856 choke me
11857 #else
11858 char (*f) () = shl_load;
11859 #endif
11860 #ifdef __cplusplus
11861 }
11862 #endif
11863
11864 int
11865 main ()
11866 {
11867 return f != shl_load;
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874   (eval $ac_link) 2>conftest.er1
11875   ac_status=$?
11876   grep -v '^ *+' conftest.er1 >conftest.err
11877   rm -f conftest.er1
11878   cat conftest.err >&5
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } &&
11881          { ac_try='test -z "$ac_cxx_werror_flag"
11882                          || test ! -s conftest.err'
11883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884   (eval $ac_try) 2>&5
11885   ac_status=$?
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); }; } &&
11888          { ac_try='test -s conftest$ac_exeext'
11889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890   (eval $ac_try) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; }; then
11894   ac_cv_func_shl_load=yes
11895 else
11896   echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11898
11899 ac_cv_func_shl_load=no
11900 fi
11901 rm -f conftest.err conftest.$ac_objext \
11902       conftest$ac_exeext conftest.$ac_ext
11903 fi
11904 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11905 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11906 if test $ac_cv_func_shl_load = yes; then
11907   lt_cv_dlopen="shl_load"
11908 else
11909   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11910 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11911 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11912   echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914   ac_check_lib_save_LIBS=$LIBS
11915 LIBS="-ldld  $LIBS"
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h.  */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h.  */
11922
11923 /* Override any gcc2 internal prototype to avoid an error.  */
11924 #ifdef __cplusplus
11925 extern "C"
11926 #endif
11927 /* We use char because int might match the return type of a gcc2
11928    builtin and then its argument prototype would still apply.  */
11929 char shl_load ();
11930 int
11931 main ()
11932 {
11933 shl_load ();
11934   ;
11935   return 0;
11936 }
11937 _ACEOF
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11940   (eval $ac_link) 2>conftest.er1
11941   ac_status=$?
11942   grep -v '^ *+' conftest.er1 >conftest.err
11943   rm -f conftest.er1
11944   cat conftest.err >&5
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); } &&
11947          { ac_try='test -z "$ac_cxx_werror_flag"
11948                          || test ! -s conftest.err'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; } &&
11954          { ac_try='test -s conftest$ac_exeext'
11955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956   (eval $ac_try) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); }; }; then
11960   ac_cv_lib_dld_shl_load=yes
11961 else
11962   echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965 ac_cv_lib_dld_shl_load=no
11966 fi
11967 rm -f conftest.err conftest.$ac_objext \
11968       conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11970 fi
11971 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11972 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11973 if test $ac_cv_lib_dld_shl_load = yes; then
11974   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11975 else
11976   echo "$as_me:$LINENO: checking for dlopen" >&5
11977 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11978 if test "${ac_cv_func_dlopen+set}" = set; then
11979   echo $ECHO_N "(cached) $ECHO_C" >&6
11980 else
11981   cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h.  */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h.  */
11987 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11989 #define dlopen innocuous_dlopen
11990
11991 /* System header to define __stub macros and hopefully few prototypes,
11992     which can conflict with char dlopen (); below.
11993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11994     <limits.h> exists even on freestanding compilers.  */
11995
11996 #ifdef __STDC__
11997 # include <limits.h>
11998 #else
11999 # include <assert.h>
12000 #endif
12001
12002 #undef dlopen
12003
12004 /* Override any gcc2 internal prototype to avoid an error.  */
12005 #ifdef __cplusplus
12006 extern "C"
12007 {
12008 #endif
12009 /* We use char because int might match the return type of a gcc2
12010    builtin and then its argument prototype would still apply.  */
12011 char dlopen ();
12012 /* The GNU C library defines this for functions which it implements
12013     to always fail with ENOSYS.  Some functions are actually named
12014     something starting with __ and the normal name is an alias.  */
12015 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12016 choke me
12017 #else
12018 char (*f) () = dlopen;
12019 #endif
12020 #ifdef __cplusplus
12021 }
12022 #endif
12023
12024 int
12025 main ()
12026 {
12027 return f != dlopen;
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034   (eval $ac_link) 2>conftest.er1
12035   ac_status=$?
12036   grep -v '^ *+' conftest.er1 >conftest.err
12037   rm -f conftest.er1
12038   cat conftest.err >&5
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -z "$ac_cxx_werror_flag"
12042                          || test ! -s conftest.err'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; } &&
12048          { ac_try='test -s conftest$ac_exeext'
12049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050   (eval $ac_try) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   ac_cv_func_dlopen=yes
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 ac_cv_func_dlopen=no
12060 fi
12061 rm -f conftest.err conftest.$ac_objext \
12062       conftest$ac_exeext conftest.$ac_ext
12063 fi
12064 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12065 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12066 if test $ac_cv_func_dlopen = yes; then
12067   lt_cv_dlopen="dlopen"
12068 else
12069   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12070 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12071 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12072   echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074   ac_check_lib_save_LIBS=$LIBS
12075 LIBS="-ldl  $LIBS"
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h.  */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h.  */
12082
12083 /* Override any gcc2 internal prototype to avoid an error.  */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 /* We use char because int might match the return type of a gcc2
12088    builtin and then its argument prototype would still apply.  */
12089 char dlopen ();
12090 int
12091 main ()
12092 {
12093 dlopen ();
12094   ;
12095   return 0;
12096 }
12097 _ACEOF
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100   (eval $ac_link) 2>conftest.er1
12101   ac_status=$?
12102   grep -v '^ *+' conftest.er1 >conftest.err
12103   rm -f conftest.er1
12104   cat conftest.err >&5
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); } &&
12107          { ac_try='test -z "$ac_cxx_werror_flag"
12108                          || test ! -s conftest.err'
12109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110   (eval $ac_try) 2>&5
12111   ac_status=$?
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); }; } &&
12114          { ac_try='test -s conftest$ac_exeext'
12115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116   (eval $ac_try) 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); }; }; then
12120   ac_cv_lib_dl_dlopen=yes
12121 else
12122   echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12124
12125 ac_cv_lib_dl_dlopen=no
12126 fi
12127 rm -f conftest.err conftest.$ac_objext \
12128       conftest$ac_exeext conftest.$ac_ext
12129 LIBS=$ac_check_lib_save_LIBS
12130 fi
12131 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12132 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12133 if test $ac_cv_lib_dl_dlopen = yes; then
12134   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12135 else
12136   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12137 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12138 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12139   echo $ECHO_N "(cached) $ECHO_C" >&6
12140 else
12141   ac_check_lib_save_LIBS=$LIBS
12142 LIBS="-lsvld  $LIBS"
12143 cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h.  */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h.  */
12149
12150 /* Override any gcc2 internal prototype to avoid an error.  */
12151 #ifdef __cplusplus
12152 extern "C"
12153 #endif
12154 /* We use char because int might match the return type of a gcc2
12155    builtin and then its argument prototype would still apply.  */
12156 char dlopen ();
12157 int
12158 main ()
12159 {
12160 dlopen ();
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12167   (eval $ac_link) 2>conftest.er1
12168   ac_status=$?
12169   grep -v '^ *+' conftest.er1 >conftest.err
12170   rm -f conftest.er1
12171   cat conftest.err >&5
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); } &&
12174          { ac_try='test -z "$ac_cxx_werror_flag"
12175                          || test ! -s conftest.err'
12176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177   (eval $ac_try) 2>&5
12178   ac_status=$?
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); }; } &&
12181          { ac_try='test -s conftest$ac_exeext'
12182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183   (eval $ac_try) 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); }; }; then
12187   ac_cv_lib_svld_dlopen=yes
12188 else
12189   echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12191
12192 ac_cv_lib_svld_dlopen=no
12193 fi
12194 rm -f conftest.err conftest.$ac_objext \
12195       conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12199 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12200 if test $ac_cv_lib_svld_dlopen = yes; then
12201   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12202 else
12203   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12204 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12205 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12206   echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208   ac_check_lib_save_LIBS=$LIBS
12209 LIBS="-ldld  $LIBS"
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h.  */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h.  */
12216
12217 /* Override any gcc2 internal prototype to avoid an error.  */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 /* We use char because int might match the return type of a gcc2
12222    builtin and then its argument prototype would still apply.  */
12223 char dld_link ();
12224 int
12225 main ()
12226 {
12227 dld_link ();
12228   ;
12229   return 0;
12230 }
12231 _ACEOF
12232 rm -f conftest.$ac_objext conftest$ac_exeext
12233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12234   (eval $ac_link) 2>conftest.er1
12235   ac_status=$?
12236   grep -v '^ *+' conftest.er1 >conftest.err
12237   rm -f conftest.er1
12238   cat conftest.err >&5
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); } &&
12241          { ac_try='test -z "$ac_cxx_werror_flag"
12242                          || test ! -s conftest.err'
12243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244   (eval $ac_try) 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; } &&
12248          { ac_try='test -s conftest$ac_exeext'
12249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250   (eval $ac_try) 2>&5
12251   ac_status=$?
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); }; }; then
12254   ac_cv_lib_dld_dld_link=yes
12255 else
12256   echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259 ac_cv_lib_dld_dld_link=no
12260 fi
12261 rm -f conftest.err conftest.$ac_objext \
12262       conftest$ac_exeext conftest.$ac_ext
12263 LIBS=$ac_check_lib_save_LIBS
12264 fi
12265 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12266 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12267 if test $ac_cv_lib_dld_dld_link = yes; then
12268   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12269 fi
12270
12271
12272 fi
12273
12274
12275 fi
12276
12277
12278 fi
12279
12280
12281 fi
12282
12283
12284 fi
12285
12286     ;;
12287   esac
12288
12289   if test "x$lt_cv_dlopen" != xno; then
12290     enable_dlopen=yes
12291   else
12292     enable_dlopen=no
12293   fi
12294
12295   case $lt_cv_dlopen in
12296   dlopen)
12297     save_CPPFLAGS="$CPPFLAGS"
12298     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12299
12300     save_LDFLAGS="$LDFLAGS"
12301     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12302
12303     save_LIBS="$LIBS"
12304     LIBS="$lt_cv_dlopen_libs $LIBS"
12305
12306     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12307 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12308 if test "${lt_cv_dlopen_self+set}" = set; then
12309   echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311           if test "$cross_compiling" = yes; then :
12312   lt_cv_dlopen_self=cross
12313 else
12314   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12315   lt_status=$lt_dlunknown
12316   cat > conftest.$ac_ext <<EOF
12317 #line 12317 "configure"
12318 #include "confdefs.h"
12319
12320 #if HAVE_DLFCN_H
12321 #include <dlfcn.h>
12322 #endif
12323
12324 #include <stdio.h>
12325
12326 #ifdef RTLD_GLOBAL
12327 #  define LT_DLGLOBAL           RTLD_GLOBAL
12328 #else
12329 #  ifdef DL_GLOBAL
12330 #    define LT_DLGLOBAL         DL_GLOBAL
12331 #  else
12332 #    define LT_DLGLOBAL         0
12333 #  endif
12334 #endif
12335
12336 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12337    find out it does not work in some platform. */
12338 #ifndef LT_DLLAZY_OR_NOW
12339 #  ifdef RTLD_LAZY
12340 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12341 #  else
12342 #    ifdef DL_LAZY
12343 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12344 #    else
12345 #      ifdef RTLD_NOW
12346 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12347 #      else
12348 #        ifdef DL_NOW
12349 #          define LT_DLLAZY_OR_NOW      DL_NOW
12350 #        else
12351 #          define LT_DLLAZY_OR_NOW      0
12352 #        endif
12353 #      endif
12354 #    endif
12355 #  endif
12356 #endif
12357
12358 #ifdef __cplusplus
12359 extern "C" void exit (int);
12360 #endif
12361
12362 void fnord() { int i=42;}
12363 int main ()
12364 {
12365   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12366   int status = $lt_dlunknown;
12367
12368   if (self)
12369     {
12370       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12371       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12372       /* dlclose (self); */
12373     }
12374
12375     exit (status);
12376 }
12377 EOF
12378   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379   (eval $ac_link) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12383     (./conftest; exit; ) 2>/dev/null
12384     lt_status=$?
12385     case x$lt_status in
12386       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12387       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12388       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12389     esac
12390   else :
12391     # compilation failed
12392     lt_cv_dlopen_self=no
12393   fi
12394 fi
12395 rm -fr conftest*
12396
12397
12398 fi
12399 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12400 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12401
12402     if test "x$lt_cv_dlopen_self" = xyes; then
12403       LDFLAGS="$LDFLAGS $link_static_flag"
12404       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12405 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12406 if test "${lt_cv_dlopen_self_static+set}" = set; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409           if test "$cross_compiling" = yes; then :
12410   lt_cv_dlopen_self_static=cross
12411 else
12412   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12413   lt_status=$lt_dlunknown
12414   cat > conftest.$ac_ext <<EOF
12415 #line 12415 "configure"
12416 #include "confdefs.h"
12417
12418 #if HAVE_DLFCN_H
12419 #include <dlfcn.h>
12420 #endif
12421
12422 #include <stdio.h>
12423
12424 #ifdef RTLD_GLOBAL
12425 #  define LT_DLGLOBAL           RTLD_GLOBAL
12426 #else
12427 #  ifdef DL_GLOBAL
12428 #    define LT_DLGLOBAL         DL_GLOBAL
12429 #  else
12430 #    define LT_DLGLOBAL         0
12431 #  endif
12432 #endif
12433
12434 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12435    find out it does not work in some platform. */
12436 #ifndef LT_DLLAZY_OR_NOW
12437 #  ifdef RTLD_LAZY
12438 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12439 #  else
12440 #    ifdef DL_LAZY
12441 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12442 #    else
12443 #      ifdef RTLD_NOW
12444 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12445 #      else
12446 #        ifdef DL_NOW
12447 #          define LT_DLLAZY_OR_NOW      DL_NOW
12448 #        else
12449 #          define LT_DLLAZY_OR_NOW      0
12450 #        endif
12451 #      endif
12452 #    endif
12453 #  endif
12454 #endif
12455
12456 #ifdef __cplusplus
12457 extern "C" void exit (int);
12458 #endif
12459
12460 void fnord() { int i=42;}
12461 int main ()
12462 {
12463   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12464   int status = $lt_dlunknown;
12465
12466   if (self)
12467     {
12468       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12469       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12470       /* dlclose (self); */
12471     }
12472
12473     exit (status);
12474 }
12475 EOF
12476   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477   (eval $ac_link) 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12481     (./conftest; exit; ) 2>/dev/null
12482     lt_status=$?
12483     case x$lt_status in
12484       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12485       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12486       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12487     esac
12488   else :
12489     # compilation failed
12490     lt_cv_dlopen_self_static=no
12491   fi
12492 fi
12493 rm -fr conftest*
12494
12495
12496 fi
12497 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12498 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12499     fi
12500
12501     CPPFLAGS="$save_CPPFLAGS"
12502     LDFLAGS="$save_LDFLAGS"
12503     LIBS="$save_LIBS"
12504     ;;
12505   esac
12506
12507   case $lt_cv_dlopen_self in
12508   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12509   *) enable_dlopen_self=unknown ;;
12510   esac
12511
12512   case $lt_cv_dlopen_self_static in
12513   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12514   *) enable_dlopen_self_static=unknown ;;
12515   esac
12516 fi
12517
12518
12519 # The else clause should only fire when bootstrapping the
12520 # libtool distribution, otherwise you forgot to ship ltmain.sh
12521 # with your package, and you will get complaints that there are
12522 # no rules to generate ltmain.sh.
12523 if test -f "$ltmain"; then
12524   # See if we are running on zsh, and set the options which allow our commands through
12525   # without removal of \ escapes.
12526   if test -n "${ZSH_VERSION+set}" ; then
12527     setopt NO_GLOB_SUBST
12528   fi
12529   # Now quote all the things that may contain metacharacters while being
12530   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12531   # variables and quote the copies for generation of the libtool script.
12532   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12533     SED SHELL STRIP \
12534     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12535     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12536     deplibs_check_method reload_flag reload_cmds need_locks \
12537     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12538     lt_cv_sys_global_symbol_to_c_name_address \
12539     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12540     old_postinstall_cmds old_postuninstall_cmds \
12541     compiler_CXX \
12542     CC_CXX \
12543     LD_CXX \
12544     lt_prog_compiler_wl_CXX \
12545     lt_prog_compiler_pic_CXX \
12546     lt_prog_compiler_static_CXX \
12547     lt_prog_compiler_no_builtin_flag_CXX \
12548     export_dynamic_flag_spec_CXX \
12549     thread_safe_flag_spec_CXX \
12550     whole_archive_flag_spec_CXX \
12551     enable_shared_with_static_runtimes_CXX \
12552     old_archive_cmds_CXX \
12553     old_archive_from_new_cmds_CXX \
12554     predep_objects_CXX \
12555     postdep_objects_CXX \
12556     predeps_CXX \
12557     postdeps_CXX \
12558     compiler_lib_search_path_CXX \
12559     archive_cmds_CXX \
12560     archive_expsym_cmds_CXX \
12561     postinstall_cmds_CXX \
12562     postuninstall_cmds_CXX \
12563     old_archive_from_expsyms_cmds_CXX \
12564     allow_undefined_flag_CXX \
12565     no_undefined_flag_CXX \
12566     export_symbols_cmds_CXX \
12567     hardcode_libdir_flag_spec_CXX \
12568     hardcode_libdir_flag_spec_ld_CXX \
12569     hardcode_libdir_separator_CXX \
12570     hardcode_automatic_CXX \
12571     module_cmds_CXX \
12572     module_expsym_cmds_CXX \
12573     lt_cv_prog_compiler_c_o_CXX \
12574     exclude_expsyms_CXX \
12575     include_expsyms_CXX; do
12576
12577     case $var in
12578     old_archive_cmds_CXX | \
12579     old_archive_from_new_cmds_CXX | \
12580     archive_cmds_CXX | \
12581     archive_expsym_cmds_CXX | \
12582     module_cmds_CXX | \
12583     module_expsym_cmds_CXX | \
12584     old_archive_from_expsyms_cmds_CXX | \
12585     export_symbols_cmds_CXX | \
12586     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12587     postinstall_cmds | postuninstall_cmds | \
12588     old_postinstall_cmds | old_postuninstall_cmds | \
12589     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12590       # Double-quote double-evaled strings.
12591       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12592       ;;
12593     *)
12594       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12595       ;;
12596     esac
12597   done
12598
12599   case $lt_echo in
12600   *'\$0 --fallback-echo"')
12601     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12602     ;;
12603   esac
12604
12605 cfgfile="$ofile"
12606
12607   cat <<__EOF__ >> "$cfgfile"
12608 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12609
12610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12611
12612 # Shell to use when invoking shell scripts.
12613 SHELL=$lt_SHELL
12614
12615 # Whether or not to build shared libraries.
12616 build_libtool_libs=$enable_shared
12617
12618 # Whether or not to build static libraries.
12619 build_old_libs=$enable_static
12620
12621 # Whether or not to add -lc for building shared libraries.
12622 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12623
12624 # Whether or not to disallow shared libs when runtime libs are static
12625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12626
12627 # Whether or not to optimize for fast installation.
12628 fast_install=$enable_fast_install
12629
12630 # The host system.
12631 host_alias=$host_alias
12632 host=$host
12633
12634 # An echo program that does not interpret backslashes.
12635 echo=$lt_echo
12636
12637 # The archiver.
12638 AR=$lt_AR
12639 AR_FLAGS=$lt_AR_FLAGS
12640
12641 # A C compiler.
12642 LTCC=$lt_LTCC
12643
12644 # A language-specific compiler.
12645 CC=$lt_compiler_CXX
12646
12647 # Is the compiler the GNU C compiler?
12648 with_gcc=$GCC_CXX
12649
12650 # An ERE matcher.
12651 EGREP=$lt_EGREP
12652
12653 # The linker used to build libraries.
12654 LD=$lt_LD_CXX
12655
12656 # Whether we need hard or soft links.
12657 LN_S=$lt_LN_S
12658
12659 # A BSD-compatible nm program.
12660 NM=$lt_NM
12661
12662 # A symbol stripping program
12663 STRIP=$lt_STRIP
12664
12665 # Used to examine libraries when file_magic_cmd begins "file"
12666 MAGIC_CMD=$MAGIC_CMD
12667
12668 # Used on cygwin: DLL creation program.
12669 DLLTOOL="$DLLTOOL"
12670
12671 # Used on cygwin: object dumper.
12672 OBJDUMP="$OBJDUMP"
12673
12674 # Used on cygwin: assembler.
12675 AS="$AS"
12676
12677 # The name of the directory that contains temporary libtool files.
12678 objdir=$objdir
12679
12680 # How to create reloadable object files.
12681 reload_flag=$lt_reload_flag
12682 reload_cmds=$lt_reload_cmds
12683
12684 # How to pass a linker flag through the compiler.
12685 wl=$lt_lt_prog_compiler_wl_CXX
12686
12687 # Object file suffix (normally "o").
12688 objext="$ac_objext"
12689
12690 # Old archive suffix (normally "a").
12691 libext="$libext"
12692
12693 # Shared library suffix (normally ".so").
12694 shrext_cmds='$shrext_cmds'
12695
12696 # Executable file suffix (normally "").
12697 exeext="$exeext"
12698
12699 # Additional compiler flags for building library objects.
12700 pic_flag=$lt_lt_prog_compiler_pic_CXX
12701 pic_mode=$pic_mode
12702
12703 # What is the maximum length of a command?
12704 max_cmd_len=$lt_cv_sys_max_cmd_len
12705
12706 # Does compiler simultaneously support -c and -o options?
12707 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12708
12709 # Must we lock files when doing compilation ?
12710 need_locks=$lt_need_locks
12711
12712 # Do we need the lib prefix for modules?
12713 need_lib_prefix=$need_lib_prefix
12714
12715 # Do we need a version for libraries?
12716 need_version=$need_version
12717
12718 # Whether dlopen is supported.
12719 dlopen_support=$enable_dlopen
12720
12721 # Whether dlopen of programs is supported.
12722 dlopen_self=$enable_dlopen_self
12723
12724 # Whether dlopen of statically linked programs is supported.
12725 dlopen_self_static=$enable_dlopen_self_static
12726
12727 # Compiler flag to prevent dynamic linking.
12728 link_static_flag=$lt_lt_prog_compiler_static_CXX
12729
12730 # Compiler flag to turn off builtin functions.
12731 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12732
12733 # Compiler flag to allow reflexive dlopens.
12734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12735
12736 # Compiler flag to generate shared objects directly from archives.
12737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12738
12739 # Compiler flag to generate thread-safe objects.
12740 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12741
12742 # Library versioning type.
12743 version_type=$version_type
12744
12745 # Format of library name prefix.
12746 libname_spec=$lt_libname_spec
12747
12748 # List of archive names.  First name is the real one, the rest are links.
12749 # The last name is the one that the linker finds with -lNAME.
12750 library_names_spec=$lt_library_names_spec
12751
12752 # The coded name of the library, if different from the real name.
12753 soname_spec=$lt_soname_spec
12754
12755 # Commands used to build and install an old-style archive.
12756 RANLIB=$lt_RANLIB
12757 old_archive_cmds=$lt_old_archive_cmds_CXX
12758 old_postinstall_cmds=$lt_old_postinstall_cmds
12759 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12760
12761 # Create an old-style archive from a shared archive.
12762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12763
12764 # Create a temporary old-style archive to link instead of a shared archive.
12765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12766
12767 # Commands used to build and install a shared archive.
12768 archive_cmds=$lt_archive_cmds_CXX
12769 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12770 postinstall_cmds=$lt_postinstall_cmds
12771 postuninstall_cmds=$lt_postuninstall_cmds
12772
12773 # Commands used to build a loadable module (assumed same as above if empty)
12774 module_cmds=$lt_module_cmds_CXX
12775 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12776
12777 # Commands to strip libraries.
12778 old_striplib=$lt_old_striplib
12779 striplib=$lt_striplib
12780
12781 # Dependencies to place before the objects being linked to create a
12782 # shared library.
12783 predep_objects=$lt_predep_objects_CXX
12784
12785 # Dependencies to place after the objects being linked to create a
12786 # shared library.
12787 postdep_objects=$lt_postdep_objects_CXX
12788
12789 # Dependencies to place before the objects being linked to create a
12790 # shared library.
12791 predeps=$lt_predeps_CXX
12792
12793 # Dependencies to place after the objects being linked to create a
12794 # shared library.
12795 postdeps=$lt_postdeps_CXX
12796
12797 # The library search path used internally by the compiler when linking
12798 # a shared library.
12799 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12800
12801 # Method to check whether dependent libraries are shared objects.
12802 deplibs_check_method=$lt_deplibs_check_method
12803
12804 # Command to use when deplibs_check_method == file_magic.
12805 file_magic_cmd=$lt_file_magic_cmd
12806
12807 # Flag that allows shared libraries with undefined symbols to be built.
12808 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12809
12810 # Flag that forces no undefined symbols.
12811 no_undefined_flag=$lt_no_undefined_flag_CXX
12812
12813 # Commands used to finish a libtool library installation in a directory.
12814 finish_cmds=$lt_finish_cmds
12815
12816 # Same as above, but a single script fragment to be evaled but not shown.
12817 finish_eval=$lt_finish_eval
12818
12819 # Take the output of nm and produce a listing of raw symbols and C names.
12820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12821
12822 # Transform the output of nm in a proper C declaration
12823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12824
12825 # Transform the output of nm in a C name address pair
12826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12827
12828 # This is the shared library runtime path variable.
12829 runpath_var=$runpath_var
12830
12831 # This is the shared library path variable.
12832 shlibpath_var=$shlibpath_var
12833
12834 # Is shlibpath searched before the hard-coded library search path?
12835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12836
12837 # How to hardcode a shared library path into an executable.
12838 hardcode_action=$hardcode_action_CXX
12839
12840 # Whether we should hardcode library paths into libraries.
12841 hardcode_into_libs=$hardcode_into_libs
12842
12843 # Flag to hardcode \$libdir into a binary during linking.
12844 # This must work even if \$libdir does not exist.
12845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12846
12847 # If ld is used when linking, flag to hardcode \$libdir into
12848 # a binary during linking. This must work even if \$libdir does
12849 # not exist.
12850 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12851
12852 # Whether we need a single -rpath flag with a separated argument.
12853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12854
12855 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12856 # resulting binary.
12857 hardcode_direct=$hardcode_direct_CXX
12858
12859 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12860 # resulting binary.
12861 hardcode_minus_L=$hardcode_minus_L_CXX
12862
12863 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12864 # the resulting binary.
12865 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12866
12867 # Set to yes if building a shared library automatically hardcodes DIR into the library
12868 # and all subsequent libraries and executables linked against it.
12869 hardcode_automatic=$hardcode_automatic_CXX
12870
12871 # Variables whose values should be saved in libtool wrapper scripts and
12872 # restored at relink time.
12873 variables_saved_for_relink="$variables_saved_for_relink"
12874
12875 # Whether libtool must link a program against all its dependency libraries.
12876 link_all_deplibs=$link_all_deplibs_CXX
12877
12878 # Compile-time system search path for libraries
12879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12880
12881 # Run-time system search path for libraries
12882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12883
12884 # Fix the shell variable \$srcfile for the compiler.
12885 fix_srcfile_path="$fix_srcfile_path_CXX"
12886
12887 # Set to yes if exported symbols are required.
12888 always_export_symbols=$always_export_symbols_CXX
12889
12890 # The commands to list exported symbols.
12891 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12892
12893 # The commands to extract the exported symbol list from a shared archive.
12894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12895
12896 # Symbols that should not be listed in the preloaded symbols.
12897 exclude_expsyms=$lt_exclude_expsyms_CXX
12898
12899 # Symbols that must always be exported.
12900 include_expsyms=$lt_include_expsyms_CXX
12901
12902 # ### END LIBTOOL TAG CONFIG: $tagname
12903
12904 __EOF__
12905
12906
12907 else
12908   # If there is no Makefile yet, we rely on a make rule to execute
12909   # `config.status --recheck' to rerun these tests and create the
12910   # libtool script then.
12911   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12912   if test -f "$ltmain_in"; then
12913     test -f Makefile && make "$ltmain"
12914   fi
12915 fi
12916
12917
12918 ac_ext=c
12919 ac_cpp='$CPP $CPPFLAGS'
12920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12923
12924 CC=$lt_save_CC
12925 LDCXX=$LD
12926 LD=$lt_save_LD
12927 GCC=$lt_save_GCC
12928 with_gnu_ldcxx=$with_gnu_ld
12929 with_gnu_ld=$lt_save_with_gnu_ld
12930 lt_cv_path_LDCXX=$lt_cv_path_LD
12931 lt_cv_path_LD=$lt_save_path_LD
12932 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12933 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12934
12935         else
12936           tagname=""
12937         fi
12938         ;;
12939
12940       F77)
12941         if test -n "$F77" && test "X$F77" != "Xno"; then
12942
12943 ac_ext=f
12944 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12945 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12947
12948
12949 archive_cmds_need_lc_F77=no
12950 allow_undefined_flag_F77=
12951 always_export_symbols_F77=no
12952 archive_expsym_cmds_F77=
12953 export_dynamic_flag_spec_F77=
12954 hardcode_direct_F77=no
12955 hardcode_libdir_flag_spec_F77=
12956 hardcode_libdir_flag_spec_ld_F77=
12957 hardcode_libdir_separator_F77=
12958 hardcode_minus_L_F77=no
12959 hardcode_automatic_F77=no
12960 module_cmds_F77=
12961 module_expsym_cmds_F77=
12962 link_all_deplibs_F77=unknown
12963 old_archive_cmds_F77=$old_archive_cmds
12964 no_undefined_flag_F77=
12965 whole_archive_flag_spec_F77=
12966 enable_shared_with_static_runtimes_F77=no
12967
12968 # Source file extension for f77 test sources.
12969 ac_ext=f
12970
12971 # Object file extension for compiled f77 test sources.
12972 objext=o
12973 objext_F77=$objext
12974
12975 # Code to be used in simple compile tests
12976 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12977
12978 # Code to be used in simple link tests
12979 lt_simple_link_test_code="      program t\n      end\n"
12980
12981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12982
12983 # If no C compiler was specified, use CC.
12984 LTCC=${LTCC-"$CC"}
12985
12986 # Allow CC to be a program name with arguments.
12987 compiler=$CC
12988
12989
12990 # Allow CC to be a program name with arguments.
12991 lt_save_CC="$CC"
12992 CC=${F77-"f77"}
12993 compiler=$CC
12994 compiler_F77=$CC
12995 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12996
12997 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12998 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12999 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13000 echo "${ECHO_T}$can_build_shared" >&6
13001
13002 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13003 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13004 test "$can_build_shared" = "no" && enable_shared=no
13005
13006 # On AIX, shared libraries and static libraries use the same namespace, and
13007 # are all built from PIC.
13008 case "$host_os" in
13009 aix3*)
13010   test "$enable_shared" = yes && enable_static=no
13011   if test -n "$RANLIB"; then
13012     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13013     postinstall_cmds='$RANLIB $lib'
13014   fi
13015   ;;
13016 aix4* | aix5*)
13017   test "$enable_shared" = yes && enable_static=no
13018   ;;
13019 esac
13020 echo "$as_me:$LINENO: result: $enable_shared" >&5
13021 echo "${ECHO_T}$enable_shared" >&6
13022
13023 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13024 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13025 # Make sure either enable_shared or enable_static is yes.
13026 test "$enable_shared" = yes || enable_static=yes
13027 echo "$as_me:$LINENO: result: $enable_static" >&5
13028 echo "${ECHO_T}$enable_static" >&6
13029
13030 test "$ld_shlibs_F77" = no && can_build_shared=no
13031
13032 GCC_F77="$G77"
13033 LD_F77="$LD"
13034
13035 lt_prog_compiler_wl_F77=
13036 lt_prog_compiler_pic_F77=
13037 lt_prog_compiler_static_F77=
13038
13039 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13040 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13041
13042   if test "$GCC" = yes; then
13043     lt_prog_compiler_wl_F77='-Wl,'
13044     lt_prog_compiler_static_F77='-static'
13045
13046     case $host_os in
13047       aix*)
13048       # All AIX code is PIC.
13049       if test "$host_cpu" = ia64; then
13050         # AIX 5 now supports IA64 processor
13051         lt_prog_compiler_static_F77='-Bstatic'
13052       fi
13053       ;;
13054
13055     amigaos*)
13056       # FIXME: we need at least 68020 code to build shared libraries, but
13057       # adding the `-m68020' flag to GCC prevents building anything better,
13058       # like `-m68040'.
13059       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13060       ;;
13061
13062     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13063       # PIC is the default for these OSes.
13064       ;;
13065
13066     mingw* | pw32* | os2*)
13067       # This hack is so that the source file can tell whether it is being
13068       # built for inclusion in a dll (and should export symbols for example).
13069       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13070       ;;
13071
13072     darwin* | rhapsody*)
13073       # PIC is the default on this platform
13074       # Common symbols not allowed in MH_DYLIB files
13075       lt_prog_compiler_pic_F77='-fno-common'
13076       ;;
13077
13078     msdosdjgpp*)
13079       # Just because we use GCC doesn't mean we suddenly get shared libraries
13080       # on systems that don't support them.
13081       lt_prog_compiler_can_build_shared_F77=no
13082       enable_shared=no
13083       ;;
13084
13085     sysv4*MP*)
13086       if test -d /usr/nec; then
13087         lt_prog_compiler_pic_F77=-Kconform_pic
13088       fi
13089       ;;
13090
13091     hpux*)
13092       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13093       # not for PA HP-UX.
13094       case "$host_cpu" in
13095       hppa*64*|ia64*)
13096         # +Z the default
13097         ;;
13098       *)
13099         lt_prog_compiler_pic_F77='-fPIC'
13100         ;;
13101       esac
13102       ;;
13103
13104     *)
13105       lt_prog_compiler_pic_F77='-fPIC'
13106       ;;
13107     esac
13108   else
13109     # PORTME Check for flag to pass linker flags through the system compiler.
13110     case $host_os in
13111     aix*)
13112       lt_prog_compiler_wl_F77='-Wl,'
13113       if test "$host_cpu" = ia64; then
13114         # AIX 5 now supports IA64 processor
13115         lt_prog_compiler_static_F77='-Bstatic'
13116       else
13117         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13118       fi
13119       ;;
13120       darwin*)
13121         # PIC is the default on this platform
13122         # Common symbols not allowed in MH_DYLIB files
13123        case "$cc_basename" in
13124          xlc*)
13125          lt_prog_compiler_pic_F77='-qnocommon'
13126          lt_prog_compiler_wl_F77='-Wl,'
13127          ;;
13128        esac
13129        ;;
13130
13131     mingw* | pw32* | os2*)
13132       # This hack is so that the source file can tell whether it is being
13133       # built for inclusion in a dll (and should export symbols for example).
13134       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13135       ;;
13136
13137     hpux9* | hpux10* | hpux11*)
13138       lt_prog_compiler_wl_F77='-Wl,'
13139       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13140       # not for PA HP-UX.
13141       case "$host_cpu" in
13142       hppa*64*|ia64*)
13143         # +Z the default
13144         ;;
13145       *)
13146         lt_prog_compiler_pic_F77='+Z'
13147         ;;
13148       esac
13149       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13150       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13151       ;;
13152
13153     irix5* | irix6* | nonstopux*)
13154       lt_prog_compiler_wl_F77='-Wl,'
13155       # PIC (with -KPIC) is the default.
13156       lt_prog_compiler_static_F77='-non_shared'
13157       ;;
13158
13159     newsos6)
13160       lt_prog_compiler_pic_F77='-KPIC'
13161       lt_prog_compiler_static_F77='-Bstatic'
13162       ;;
13163
13164     linux*)
13165       case $CC in
13166       icc* | ecc*)
13167         lt_prog_compiler_wl_F77='-Wl,'
13168         lt_prog_compiler_pic_F77='-KPIC'
13169         lt_prog_compiler_static_F77='-static'
13170         ;;
13171       ccc*)
13172         lt_prog_compiler_wl_F77='-Wl,'
13173         # All Alpha code is PIC.
13174         lt_prog_compiler_static_F77='-non_shared'
13175         ;;
13176       esac
13177       ;;
13178
13179     osf3* | osf4* | osf5*)
13180       lt_prog_compiler_wl_F77='-Wl,'
13181       # All OSF/1 code is PIC.
13182       lt_prog_compiler_static_F77='-non_shared'
13183       ;;
13184
13185     sco3.2v5*)
13186       lt_prog_compiler_pic_F77='-Kpic'
13187       lt_prog_compiler_static_F77='-dn'
13188       ;;
13189
13190     solaris*)
13191       lt_prog_compiler_wl_F77='-Wl,'
13192       lt_prog_compiler_pic_F77='-KPIC'
13193       lt_prog_compiler_static_F77='-Bstatic'
13194       ;;
13195
13196     sunos4*)
13197       lt_prog_compiler_wl_F77='-Qoption ld '
13198       lt_prog_compiler_pic_F77='-PIC'
13199       lt_prog_compiler_static_F77='-Bstatic'
13200       ;;
13201
13202     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13203       lt_prog_compiler_wl_F77='-Wl,'
13204       lt_prog_compiler_pic_F77='-KPIC'
13205       lt_prog_compiler_static_F77='-Bstatic'
13206       ;;
13207
13208     sysv4*MP*)
13209       if test -d /usr/nec ;then
13210         lt_prog_compiler_pic_F77='-Kconform_pic'
13211         lt_prog_compiler_static_F77='-Bstatic'
13212       fi
13213       ;;
13214
13215     uts4*)
13216       lt_prog_compiler_pic_F77='-pic'
13217       lt_prog_compiler_static_F77='-Bstatic'
13218       ;;
13219
13220     *)
13221       lt_prog_compiler_can_build_shared_F77=no
13222       ;;
13223     esac
13224   fi
13225
13226 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13227 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13228
13229 #
13230 # Check to make sure the PIC flag actually works.
13231 #
13232 if test -n "$lt_prog_compiler_pic_F77"; then
13233
13234 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13235 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13236 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13237   echo $ECHO_N "(cached) $ECHO_C" >&6
13238 else
13239   lt_prog_compiler_pic_works_F77=no
13240   ac_outfile=conftest.$ac_objext
13241    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13242    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13243    # Insert the option either (1) after the last *FLAGS variable, or
13244    # (2) before a word containing "conftest.", or (3) at the end.
13245    # Note that $ac_compile itself does not contain backslashes and begins
13246    # with a dollar sign (not a hyphen), so the echo should work correctly.
13247    # The option is referenced via a variable to avoid confusing sed.
13248    lt_compile=`echo "$ac_compile" | $SED \
13249    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13250    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13251    -e 's:$: $lt_compiler_flag:'`
13252    (eval echo "\"\$as_me:13252: $lt_compile\"" >&5)
13253    (eval "$lt_compile" 2>conftest.err)
13254    ac_status=$?
13255    cat conftest.err >&5
13256    echo "$as_me:13256: \$? = $ac_status" >&5
13257    if (exit $ac_status) && test -s "$ac_outfile"; then
13258      # The compiler can only warn and ignore the option if not recognized
13259      # So say no if there are warnings
13260      if test ! -s conftest.err; then
13261        lt_prog_compiler_pic_works_F77=yes
13262      fi
13263    fi
13264    $rm conftest*
13265
13266 fi
13267 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13268 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13269
13270 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13271     case $lt_prog_compiler_pic_F77 in
13272      "" | " "*) ;;
13273      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13274      esac
13275 else
13276     lt_prog_compiler_pic_F77=
13277      lt_prog_compiler_can_build_shared_F77=no
13278 fi
13279
13280 fi
13281 case "$host_os" in
13282   # For platforms which do not support PIC, -DPIC is meaningless:
13283   *djgpp*)
13284     lt_prog_compiler_pic_F77=
13285     ;;
13286   *)
13287     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13288     ;;
13289 esac
13290
13291 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13292 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13293 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13294   echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296   lt_cv_prog_compiler_c_o_F77=no
13297    $rm -r conftest 2>/dev/null
13298    mkdir conftest
13299    cd conftest
13300    mkdir out
13301    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13302
13303    lt_compiler_flag="-o out/conftest2.$ac_objext"
13304    # Insert the option either (1) after the last *FLAGS variable, or
13305    # (2) before a word containing "conftest.", or (3) at the end.
13306    # Note that $ac_compile itself does not contain backslashes and begins
13307    # with a dollar sign (not a hyphen), so the echo should work correctly.
13308    lt_compile=`echo "$ac_compile" | $SED \
13309    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13311    -e 's:$: $lt_compiler_flag:'`
13312    (eval echo "\"\$as_me:13312: $lt_compile\"" >&5)
13313    (eval "$lt_compile" 2>out/conftest.err)
13314    ac_status=$?
13315    cat out/conftest.err >&5
13316    echo "$as_me:13316: \$? = $ac_status" >&5
13317    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13318    then
13319      # The compiler can only warn and ignore the option if not recognized
13320      # So say no if there are warnings
13321      if test ! -s out/conftest.err; then
13322        lt_cv_prog_compiler_c_o_F77=yes
13323      fi
13324    fi
13325    chmod u+w .
13326    $rm conftest*
13327    # SGI C++ compiler will create directory out/ii_files/ for
13328    # template instantiation
13329    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13330    $rm out/* && rmdir out
13331    cd ..
13332    rmdir conftest
13333    $rm conftest*
13334
13335 fi
13336 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13337 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13338
13339
13340 hard_links="nottested"
13341 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13342   # do not overwrite the value of need_locks provided by the user
13343   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13344 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13345   hard_links=yes
13346   $rm conftest*
13347   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13348   touch conftest.a
13349   ln conftest.a conftest.b 2>&5 || hard_links=no
13350   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13351   echo "$as_me:$LINENO: result: $hard_links" >&5
13352 echo "${ECHO_T}$hard_links" >&6
13353   if test "$hard_links" = no; then
13354     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13355 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13356     need_locks=warn
13357   fi
13358 else
13359   need_locks=no
13360 fi
13361
13362 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13363 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13364
13365   runpath_var=
13366   allow_undefined_flag_F77=
13367   enable_shared_with_static_runtimes_F77=no
13368   archive_cmds_F77=
13369   archive_expsym_cmds_F77=
13370   old_archive_From_new_cmds_F77=
13371   old_archive_from_expsyms_cmds_F77=
13372   export_dynamic_flag_spec_F77=
13373   whole_archive_flag_spec_F77=
13374   thread_safe_flag_spec_F77=
13375   hardcode_libdir_flag_spec_F77=
13376   hardcode_libdir_flag_spec_ld_F77=
13377   hardcode_libdir_separator_F77=
13378   hardcode_direct_F77=no
13379   hardcode_minus_L_F77=no
13380   hardcode_shlibpath_var_F77=unsupported
13381   link_all_deplibs_F77=unknown
13382   hardcode_automatic_F77=no
13383   module_cmds_F77=
13384   module_expsym_cmds_F77=
13385   always_export_symbols_F77=no
13386   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13387   # include_expsyms should be a list of space-separated symbols to be *always*
13388   # included in the symbol list
13389   include_expsyms_F77=
13390   # exclude_expsyms can be an extended regexp of symbols to exclude
13391   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13392   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13393   # as well as any symbol that contains `d'.
13394   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13395   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13396   # platforms (ab)use it in PIC code, but their linkers get confused if
13397   # the symbol is explicitly referenced.  Since portable code cannot
13398   # rely on this symbol name, it's probably fine to never include it in
13399   # preloaded symbol tables.
13400   extract_expsyms_cmds=
13401
13402   case $host_os in
13403   cygwin* | mingw* | pw32*)
13404     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13405     # When not using gcc, we currently assume that we are using
13406     # Microsoft Visual C++.
13407     if test "$GCC" != yes; then
13408       with_gnu_ld=no
13409     fi
13410     ;;
13411   openbsd*)
13412     with_gnu_ld=no
13413     ;;
13414   esac
13415
13416   ld_shlibs_F77=yes
13417   if test "$with_gnu_ld" = yes; then
13418     # If archive_cmds runs LD, not CC, wlarc should be empty
13419     wlarc='${wl}'
13420
13421     # See if GNU ld supports shared libraries.
13422     case $host_os in
13423     aix3* | aix4* | aix5*)
13424       # On AIX/PPC, the GNU linker is very broken
13425       if test "$host_cpu" != ia64; then
13426         ld_shlibs_F77=no
13427         cat <<EOF 1>&2
13428
13429 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13430 *** to be unable to reliably create shared libraries on AIX.
13431 *** Therefore, libtool is disabling shared libraries support.  If you
13432 *** really care for shared libraries, you may want to modify your PATH
13433 *** so that a non-GNU linker is found, and then restart.
13434
13435 EOF
13436       fi
13437       ;;
13438
13439     amigaos*)
13440       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)'
13441       hardcode_libdir_flag_spec_F77='-L$libdir'
13442       hardcode_minus_L_F77=yes
13443
13444       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13445       # that the semantics of dynamic libraries on AmigaOS, at least up
13446       # to version 4, is to share data among multiple programs linked
13447       # with the same dynamic library.  Since this doesn't match the
13448       # behavior of shared libraries on other platforms, we can't use
13449       # them.
13450       ld_shlibs_F77=no
13451       ;;
13452
13453     beos*)
13454       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13455         allow_undefined_flag_F77=unsupported
13456         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13457         # support --undefined.  This deserves some investigation.  FIXME
13458         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13459       else
13460         ld_shlibs_F77=no
13461       fi
13462       ;;
13463
13464     cygwin* | mingw* | pw32*)
13465       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13466       # as there is no search path for DLLs.
13467       hardcode_libdir_flag_spec_F77='-L$libdir'
13468       allow_undefined_flag_F77=unsupported
13469       always_export_symbols_F77=no
13470       enable_shared_with_static_runtimes_F77=yes
13471       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13472
13473       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13474         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13475         # If the export-symbols file already is a .def file (1st line
13476         # is EXPORTS), use it as is; otherwise, prepend...
13477         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13478           cp $export_symbols $output_objdir/$soname.def;
13479         else
13480           echo EXPORTS > $output_objdir/$soname.def;
13481           cat $export_symbols >> $output_objdir/$soname.def;
13482         fi~
13483         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13484       else
13485         ld_shlibs=no
13486       fi
13487       ;;
13488
13489     netbsd*)
13490       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13491         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13492         wlarc=
13493       else
13494         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13495         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13496       fi
13497       ;;
13498
13499     solaris* | sysv5*)
13500       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13501         ld_shlibs_F77=no
13502         cat <<EOF 1>&2
13503
13504 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13505 *** create shared libraries on Solaris systems.  Therefore, libtool
13506 *** is disabling shared libraries support.  We urge you to upgrade GNU
13507 *** binutils to release 2.9.1 or newer.  Another option is to modify
13508 *** your PATH or compiler configuration so that the native linker is
13509 *** used, and then restart.
13510
13511 EOF
13512       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13513         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13515       else
13516         ld_shlibs_F77=no
13517       fi
13518       ;;
13519
13520     sunos4*)
13521       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13522       wlarc=
13523       hardcode_direct_F77=yes
13524       hardcode_shlibpath_var_F77=no
13525       ;;
13526
13527   linux*)
13528     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13529         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13530         archive_cmds_F77="$tmp_archive_cmds"
13531       supports_anon_versioning=no
13532       case `$LD -v 2>/dev/null` in
13533         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13534         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13535         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13536         *\ 2.11.*) ;; # other 2.11 versions
13537         *) supports_anon_versioning=yes ;;
13538       esac
13539       if test $supports_anon_versioning = yes; then
13540         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13541 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13542 $echo "local: *; };" >> $output_objdir/$libname.ver~
13543         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13544       else
13545         archive_expsym_cmds_F77="$tmp_archive_cmds"
13546       fi
13547     else
13548       ld_shlibs_F77=no
13549     fi
13550     ;;
13551
13552     *)
13553       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13554         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13555         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13556       else
13557         ld_shlibs_F77=no
13558       fi
13559       ;;
13560     esac
13561
13562     if test "$ld_shlibs_F77" = yes; then
13563       runpath_var=LD_RUN_PATH
13564       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13565       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13566       # ancient GNU ld didn't support --whole-archive et. al.
13567       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13568         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13569       else
13570         whole_archive_flag_spec_F77=
13571       fi
13572     fi
13573   else
13574     # PORTME fill in a description of your system's linker (not GNU ld)
13575     case $host_os in
13576     aix3*)
13577       allow_undefined_flag_F77=unsupported
13578       always_export_symbols_F77=yes
13579       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'
13580       # Note: this linker hardcodes the directories in LIBPATH if there
13581       # are no directories specified by -L.
13582       hardcode_minus_L_F77=yes
13583       if test "$GCC" = yes && test -z "$link_static_flag"; then
13584         # Neither direct hardcoding nor static linking is supported with a
13585         # broken collect2.
13586         hardcode_direct_F77=unsupported
13587       fi
13588       ;;
13589
13590     aix4* | aix5*)
13591       if test "$host_cpu" = ia64; then
13592         # On IA64, the linker does run time linking by default, so we don't
13593         # have to do anything special.
13594         aix_use_runtimelinking=no
13595         exp_sym_flag='-Bexport'
13596         no_entry_flag=""
13597       else
13598         # If we're using GNU nm, then we don't want the "-C" option.
13599         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13600         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13601           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'
13602         else
13603           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'
13604         fi
13605         aix_use_runtimelinking=no
13606
13607         # Test if we are trying to use run time linking or normal
13608         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13609         # need to do runtime linking.
13610         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13611           for ld_flag in $LDFLAGS; do
13612           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13613             aix_use_runtimelinking=yes
13614             break
13615           fi
13616           done
13617         esac
13618
13619         exp_sym_flag='-bexport'
13620         no_entry_flag='-bnoentry'
13621       fi
13622
13623       # When large executables or shared objects are built, AIX ld can
13624       # have problems creating the table of contents.  If linking a library
13625       # or program results in "error TOC overflow" add -mminimal-toc to
13626       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13627       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13628
13629       archive_cmds_F77=''
13630       hardcode_direct_F77=yes
13631       hardcode_libdir_separator_F77=':'
13632       link_all_deplibs_F77=yes
13633
13634       if test "$GCC" = yes; then
13635         case $host_os in aix4.012|aix4.012.*)
13636         # We only want to do this on AIX 4.2 and lower, the check
13637         # below for broken collect2 doesn't work under 4.3+
13638           collect2name=`${CC} -print-prog-name=collect2`
13639           if test -f "$collect2name" && \
13640            strings "$collect2name" | grep resolve_lib_name >/dev/null
13641           then
13642           # We have reworked collect2
13643           hardcode_direct_F77=yes
13644           else
13645           # We have old collect2
13646           hardcode_direct_F77=unsupported
13647           # It fails to find uninstalled libraries when the uninstalled
13648           # path is not listed in the libpath.  Setting hardcode_minus_L
13649           # to unsupported forces relinking
13650           hardcode_minus_L_F77=yes
13651           hardcode_libdir_flag_spec_F77='-L$libdir'
13652           hardcode_libdir_separator_F77=
13653           fi
13654         esac
13655         shared_flag='-shared'
13656       else
13657         # not using gcc
13658         if test "$host_cpu" = ia64; then
13659         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13660         # chokes on -Wl,-G. The following line is correct:
13661           shared_flag='-G'
13662         else
13663         if test "$aix_use_runtimelinking" = yes; then
13664             shared_flag='${wl}-G'
13665           else
13666             shared_flag='${wl}-bM:SRE'
13667         fi
13668         fi
13669       fi
13670
13671       # It seems that -bexpall does not export symbols beginning with
13672       # underscore (_), so it is better to generate a list of symbols to export.
13673       always_export_symbols_F77=yes
13674       if test "$aix_use_runtimelinking" = yes; then
13675         # Warning - without using the other runtime loading flags (-brtl),
13676         # -berok will link without error, but may produce a broken library.
13677         allow_undefined_flag_F77='-berok'
13678        # Determine the default libpath from the value encoded in an empty executable.
13679        cat >conftest.$ac_ext <<_ACEOF
13680       program main
13681
13682       end
13683 _ACEOF
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13686   (eval $ac_link) 2>conftest.er1
13687   ac_status=$?
13688   grep -v '^ *+' conftest.er1 >conftest.err
13689   rm -f conftest.er1
13690   cat conftest.err >&5
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } &&
13693          { ac_try='test -z "$ac_f77_werror_flag"
13694                          || test ! -s conftest.err'
13695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696   (eval $ac_try) 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); }; } &&
13700          { ac_try='test -s conftest$ac_exeext'
13701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702   (eval $ac_try) 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); }; }; then
13706
13707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13708 }'`
13709 # Check for a 64-bit object if we didn't find anything.
13710 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; }
13711 }'`; fi
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 fi
13717 rm -f conftest.err conftest.$ac_objext \
13718       conftest$ac_exeext conftest.$ac_ext
13719 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13720
13721        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13722         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"
13723        else
13724         if test "$host_cpu" = ia64; then
13725           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13726           allow_undefined_flag_F77="-z nodefs"
13727           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"
13728         else
13729          # Determine the default libpath from the value encoded in an empty executable.
13730          cat >conftest.$ac_ext <<_ACEOF
13731       program main
13732
13733       end
13734 _ACEOF
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13737   (eval $ac_link) 2>conftest.er1
13738   ac_status=$?
13739   grep -v '^ *+' conftest.er1 >conftest.err
13740   rm -f conftest.er1
13741   cat conftest.err >&5
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); } &&
13744          { ac_try='test -z "$ac_f77_werror_flag"
13745                          || test ! -s conftest.err'
13746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747   (eval $ac_try) 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); }; } &&
13751          { ac_try='test -s conftest$ac_exeext'
13752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753   (eval $ac_try) 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; }; then
13757
13758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13759 }'`
13760 # Check for a 64-bit object if we didn't find anything.
13761 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; }
13762 }'`; fi
13763 else
13764   echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767 fi
13768 rm -f conftest.err conftest.$ac_objext \
13769       conftest$ac_exeext conftest.$ac_ext
13770 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13771
13772          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13773           # Warning - without using the other run time loading flags,
13774           # -berok will link without error, but may produce a broken library.
13775           no_undefined_flag_F77=' ${wl}-bernotok'
13776           allow_undefined_flag_F77=' ${wl}-berok'
13777           # -bexpall does not export symbols beginning with underscore (_)
13778           always_export_symbols_F77=yes
13779           # Exported symbols can be pulled into shared objects from archives
13780           whole_archive_flag_spec_F77=' '
13781           archive_cmds_need_lc_F77=yes
13782           # This is similar to how AIX traditionally builds it's shared libraries.
13783           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'
13784         fi
13785       fi
13786       ;;
13787
13788     amigaos*)
13789       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)'
13790       hardcode_libdir_flag_spec_F77='-L$libdir'
13791       hardcode_minus_L_F77=yes
13792       # see comment about different semantics on the GNU ld section
13793       ld_shlibs_F77=no
13794       ;;
13795
13796     bsdi[45]*)
13797       export_dynamic_flag_spec_F77=-rdynamic
13798       ;;
13799
13800     cygwin* | mingw* | pw32*)
13801       # When not using gcc, we currently assume that we are using
13802       # Microsoft Visual C++.
13803       # hardcode_libdir_flag_spec is actually meaningless, as there is
13804       # no search path for DLLs.
13805       hardcode_libdir_flag_spec_F77=' '
13806       allow_undefined_flag_F77=unsupported
13807       # Tell ltmain to make .lib files, not .a files.
13808       libext=lib
13809       # Tell ltmain to make .dll files, not .so files.
13810       shrext_cmds=".dll"
13811       # FIXME: Setting linknames here is a bad hack.
13812       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13813       # The linker will automatically build a .lib file if we build a DLL.
13814       old_archive_From_new_cmds_F77='true'
13815       # FIXME: Should let the user specify the lib program.
13816       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13817       fix_srcfile_path='`cygpath -w "$srcfile"`'
13818       enable_shared_with_static_runtimes_F77=yes
13819       ;;
13820
13821     darwin* | rhapsody*)
13822       case "$host_os" in
13823         rhapsody* | darwin1.[012])
13824          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13825          ;;
13826        *) # Darwin 1.3 on
13827          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13828            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13829          else
13830            case ${MACOSX_DEPLOYMENT_TARGET} in
13831              10.[012])
13832                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13833                ;;
13834              10.*)
13835                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13836                ;;
13837            esac
13838          fi
13839          ;;
13840       esac
13841       archive_cmds_need_lc_F77=no
13842       hardcode_direct_F77=no
13843       hardcode_automatic_F77=yes
13844       hardcode_shlibpath_var_F77=unsupported
13845       whole_archive_flag_spec_F77=''
13846       link_all_deplibs_F77=yes
13847     if test "$GCC" = yes ; then
13848         output_verbose_link_cmd='echo'
13849         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13850       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13851       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13852       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}'
13853       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}'
13854     else
13855       case "$cc_basename" in
13856         xlc*)
13857          output_verbose_link_cmd='echo'
13858          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13859          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13860           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13861          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}'
13862           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}'
13863           ;;
13864        *)
13865          ld_shlibs_F77=no
13866           ;;
13867       esac
13868     fi
13869       ;;
13870
13871     dgux*)
13872       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13873       hardcode_libdir_flag_spec_F77='-L$libdir'
13874       hardcode_shlibpath_var_F77=no
13875       ;;
13876
13877     freebsd1*)
13878       ld_shlibs_F77=no
13879       ;;
13880
13881     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13882     # support.  Future versions do this automatically, but an explicit c++rt0.o
13883     # does not break anything, and helps significantly (at the cost of a little
13884     # extra space).
13885     freebsd2.2*)
13886       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13887       hardcode_libdir_flag_spec_F77='-R$libdir'
13888       hardcode_direct_F77=yes
13889       hardcode_shlibpath_var_F77=no
13890       ;;
13891
13892     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13893     freebsd2*)
13894       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13895       hardcode_direct_F77=yes
13896       hardcode_minus_L_F77=yes
13897       hardcode_shlibpath_var_F77=no
13898       ;;
13899
13900     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13901     freebsd* | kfreebsd*-gnu)
13902       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13903       hardcode_libdir_flag_spec_F77='-R$libdir'
13904       hardcode_direct_F77=yes
13905       hardcode_shlibpath_var_F77=no
13906       ;;
13907
13908     hpux9*)
13909       if test "$GCC" = yes; then
13910         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'
13911       else
13912         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'
13913       fi
13914       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13915       hardcode_libdir_separator_F77=:
13916       hardcode_direct_F77=yes
13917
13918       # hardcode_minus_L: Not really in the search PATH,
13919       # but as the default location of the library.
13920       hardcode_minus_L_F77=yes
13921       export_dynamic_flag_spec_F77='${wl}-E'
13922       ;;
13923
13924     hpux10* | hpux11*)
13925       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13926         case "$host_cpu" in
13927         hppa*64*|ia64*)
13928           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13929           ;;
13930         *)
13931           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13932           ;;
13933         esac
13934       else
13935         case "$host_cpu" in
13936         hppa*64*|ia64*)
13937           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13938           ;;
13939         *)
13940           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13941           ;;
13942         esac
13943       fi
13944       if test "$with_gnu_ld" = no; then
13945         case "$host_cpu" in
13946         hppa*64*)
13947           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13948           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13949           hardcode_libdir_separator_F77=:
13950           hardcode_direct_F77=no
13951           hardcode_shlibpath_var_F77=no
13952           ;;
13953         ia64*)
13954           hardcode_libdir_flag_spec_F77='-L$libdir'
13955           hardcode_direct_F77=no
13956           hardcode_shlibpath_var_F77=no
13957
13958           # hardcode_minus_L: Not really in the search PATH,
13959           # but as the default location of the library.
13960           hardcode_minus_L_F77=yes
13961           ;;
13962         *)
13963           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13964           hardcode_libdir_separator_F77=:
13965           hardcode_direct_F77=yes
13966           export_dynamic_flag_spec_F77='${wl}-E'
13967
13968           # hardcode_minus_L: Not really in the search PATH,
13969           # but as the default location of the library.
13970           hardcode_minus_L_F77=yes
13971           ;;
13972         esac
13973       fi
13974       ;;
13975
13976     irix5* | irix6* | nonstopux*)
13977       if test "$GCC" = yes; then
13978         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'
13979       else
13980         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'
13981         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13982       fi
13983       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13984       hardcode_libdir_separator_F77=:
13985       link_all_deplibs_F77=yes
13986       ;;
13987
13988     netbsd*)
13989       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13990         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13991       else
13992         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13993       fi
13994       hardcode_libdir_flag_spec_F77='-R$libdir'
13995       hardcode_direct_F77=yes
13996       hardcode_shlibpath_var_F77=no
13997       ;;
13998
13999     newsos6)
14000       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14001       hardcode_direct_F77=yes
14002       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14003       hardcode_libdir_separator_F77=:
14004       hardcode_shlibpath_var_F77=no
14005       ;;
14006
14007     openbsd*)
14008       hardcode_direct_F77=yes
14009       hardcode_shlibpath_var_F77=no
14010       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14011         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14012         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14013         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14014         export_dynamic_flag_spec_F77='${wl}-E'
14015       else
14016        case $host_os in
14017          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14018            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14019            hardcode_libdir_flag_spec_F77='-R$libdir'
14020            ;;
14021          *)
14022            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14023            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14024            ;;
14025        esac
14026       fi
14027       ;;
14028
14029     os2*)
14030       hardcode_libdir_flag_spec_F77='-L$libdir'
14031       hardcode_minus_L_F77=yes
14032       allow_undefined_flag_F77=unsupported
14033       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'
14034       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14035       ;;
14036
14037     osf3*)
14038       if test "$GCC" = yes; then
14039         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14040         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'
14041       else
14042         allow_undefined_flag_F77=' -expect_unresolved \*'
14043         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'
14044       fi
14045       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14046       hardcode_libdir_separator_F77=:
14047       ;;
14048
14049     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14050       if test "$GCC" = yes; then
14051         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14052         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'
14053         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14054       else
14055         allow_undefined_flag_F77=' -expect_unresolved \*'
14056         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'
14057         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~
14058         $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'
14059
14060         # Both c and cxx compiler support -rpath directly
14061         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14062       fi
14063       hardcode_libdir_separator_F77=:
14064       ;;
14065
14066     sco3.2v5*)
14067       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14068       hardcode_shlibpath_var_F77=no
14069       export_dynamic_flag_spec_F77='${wl}-Bexport'
14070       runpath_var=LD_RUN_PATH
14071       hardcode_runpath_var=yes
14072       ;;
14073
14074     solaris*)
14075       no_undefined_flag_F77=' -z text'
14076       if test "$GCC" = yes; then
14077         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14078         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14079           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14080       else
14081         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14082         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14083         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14084       fi
14085       hardcode_libdir_flag_spec_F77='-R$libdir'
14086       hardcode_shlibpath_var_F77=no
14087       case $host_os in
14088       solaris2.[0-5] | solaris2.[0-5].*) ;;
14089       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14090         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14091       esac
14092       link_all_deplibs_F77=yes
14093       ;;
14094
14095     sunos4*)
14096       if test "x$host_vendor" = xsequent; then
14097         # Use $CC to link under sequent, because it throws in some extra .o
14098         # files that make .init and .fini sections work.
14099         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14100       else
14101         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14102       fi
14103       hardcode_libdir_flag_spec_F77='-L$libdir'
14104       hardcode_direct_F77=yes
14105       hardcode_minus_L_F77=yes
14106       hardcode_shlibpath_var_F77=no
14107       ;;
14108
14109     sysv4)
14110       case $host_vendor in
14111         sni)
14112           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14113           hardcode_direct_F77=yes # is this really true???
14114         ;;
14115         siemens)
14116           ## LD is ld it makes a PLAMLIB
14117           ## CC just makes a GrossModule.
14118           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14119           reload_cmds_F77='$CC -r -o $output$reload_objs'
14120           hardcode_direct_F77=no
14121         ;;
14122         motorola)
14123           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14124           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14125         ;;
14126       esac
14127       runpath_var='LD_RUN_PATH'
14128       hardcode_shlibpath_var_F77=no
14129       ;;
14130
14131     sysv4.3*)
14132       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14133       hardcode_shlibpath_var_F77=no
14134       export_dynamic_flag_spec_F77='-Bexport'
14135       ;;
14136
14137     sysv4*MP*)
14138       if test -d /usr/nec; then
14139         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14140         hardcode_shlibpath_var_F77=no
14141         runpath_var=LD_RUN_PATH
14142         hardcode_runpath_var=yes
14143         ld_shlibs_F77=yes
14144       fi
14145       ;;
14146
14147     sysv4.2uw2*)
14148       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14149       hardcode_direct_F77=yes
14150       hardcode_minus_L_F77=no
14151       hardcode_shlibpath_var_F77=no
14152       hardcode_runpath_var=yes
14153       runpath_var=LD_RUN_PATH
14154       ;;
14155
14156    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14157       no_undefined_flag_F77='${wl}-z ${wl}text'
14158       if test "$GCC" = yes; then
14159         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14160       else
14161         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14162       fi
14163       runpath_var='LD_RUN_PATH'
14164       hardcode_shlibpath_var_F77=no
14165       ;;
14166
14167     sysv5*)
14168       no_undefined_flag_F77=' -z text'
14169       # $CC -shared without GNU ld will not create a library from C++
14170       # object files and a static libstdc++, better avoid it by now
14171       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14172       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14173                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14174       hardcode_libdir_flag_spec_F77=
14175       hardcode_shlibpath_var_F77=no
14176       runpath_var='LD_RUN_PATH'
14177       ;;
14178
14179     uts4*)
14180       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14181       hardcode_libdir_flag_spec_F77='-L$libdir'
14182       hardcode_shlibpath_var_F77=no
14183       ;;
14184
14185     *)
14186       ld_shlibs_F77=no
14187       ;;
14188     esac
14189   fi
14190
14191 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14192 echo "${ECHO_T}$ld_shlibs_F77" >&6
14193 test "$ld_shlibs_F77" = no && can_build_shared=no
14194
14195 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14196 if test "$GCC" = yes; then
14197   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14198 fi
14199
14200 #
14201 # Do we need to explicitly link libc?
14202 #
14203 case "x$archive_cmds_need_lc_F77" in
14204 x|xyes)
14205   # Assume -lc should be added
14206   archive_cmds_need_lc_F77=yes
14207
14208   if test "$enable_shared" = yes && test "$GCC" = yes; then
14209     case $archive_cmds_F77 in
14210     *'~'*)
14211       # FIXME: we may have to deal with multi-command sequences.
14212       ;;
14213     '$CC '*)
14214       # Test whether the compiler implicitly links with -lc since on some
14215       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14216       # to ld, don't add -lc before -lgcc.
14217       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14218 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14219       $rm conftest*
14220       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14221
14222       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223   (eval $ac_compile) 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); } 2>conftest.err; then
14227         soname=conftest
14228         lib=conftest
14229         libobjs=conftest.$ac_objext
14230         deplibs=
14231         wl=$lt_prog_compiler_wl_F77
14232         compiler_flags=-v
14233         linker_flags=-v
14234         verstring=
14235         output_objdir=.
14236         libname=conftest
14237         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14238         allow_undefined_flag_F77=
14239         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14240   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }
14244         then
14245           archive_cmds_need_lc_F77=no
14246         else
14247           archive_cmds_need_lc_F77=yes
14248         fi
14249         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14250       else
14251         cat conftest.err 1>&5
14252       fi
14253       $rm conftest*
14254       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14255 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14256       ;;
14257     esac
14258   fi
14259   ;;
14260 esac
14261
14262 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14263 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14264 library_names_spec=
14265 libname_spec='lib$name'
14266 soname_spec=
14267 shrext_cmds=".so"
14268 postinstall_cmds=
14269 postuninstall_cmds=
14270 finish_cmds=
14271 finish_eval=
14272 shlibpath_var=
14273 shlibpath_overrides_runpath=unknown
14274 version_type=none
14275 dynamic_linker="$host_os ld.so"
14276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14277 if test "$GCC" = yes; then
14278   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14279   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14280     # if the path contains ";" then we assume it to be the separator
14281     # otherwise default to the standard path separator (i.e. ":") - it is
14282     # assumed that no part of a normal pathname contains ";" but that should
14283     # okay in the real world where ";" in dirpaths is itself problematic.
14284     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14285   else
14286     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14287   fi
14288 else
14289   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14290 fi
14291 need_lib_prefix=unknown
14292 hardcode_into_libs=no
14293
14294 # when you set need_version to no, make sure it does not cause -set_version
14295 # flags to be left without arguments
14296 need_version=unknown
14297
14298 case $host_os in
14299 aix3*)
14300   version_type=linux
14301   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14302   shlibpath_var=LIBPATH
14303
14304   # AIX 3 has no versioning support, so we append a major version to the name.
14305   soname_spec='${libname}${release}${shared_ext}$major'
14306   ;;
14307
14308 aix4* | aix5*)
14309   version_type=linux
14310   need_lib_prefix=no
14311   need_version=no
14312   hardcode_into_libs=yes
14313   if test "$host_cpu" = ia64; then
14314     # AIX 5 supports IA64
14315     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14316     shlibpath_var=LD_LIBRARY_PATH
14317   else
14318     # With GCC up to 2.95.x, collect2 would create an import file
14319     # for dependence libraries.  The import file would start with
14320     # the line `#! .'.  This would cause the generated library to
14321     # depend on `.', always an invalid library.  This was fixed in
14322     # development snapshots of GCC prior to 3.0.
14323     case $host_os in
14324       aix4 | aix4.[01] | aix4.[01].*)
14325       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14326            echo ' yes '
14327            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14328         :
14329       else
14330         can_build_shared=no
14331       fi
14332       ;;
14333     esac
14334     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14335     # soname into executable. Probably we can add versioning support to
14336     # collect2, so additional links can be useful in future.
14337     if test "$aix_use_runtimelinking" = yes; then
14338       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14339       # instead of lib<name>.a to let people know that these are not
14340       # typical AIX shared libraries.
14341       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342     else
14343       # We preserve .a as extension for shared libraries through AIX4.2
14344       # and later when we are not doing run time linking.
14345       library_names_spec='${libname}${release}.a $libname.a'
14346       soname_spec='${libname}${release}${shared_ext}$major'
14347     fi
14348     shlibpath_var=LIBPATH
14349   fi
14350   ;;
14351
14352 amigaos*)
14353   library_names_spec='$libname.ixlibrary $libname.a'
14354   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14355   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'
14356   ;;
14357
14358 beos*)
14359   library_names_spec='${libname}${shared_ext}'
14360   dynamic_linker="$host_os ld.so"
14361   shlibpath_var=LIBRARY_PATH
14362   ;;
14363
14364 bsdi[45]*)
14365   version_type=linux
14366   need_version=no
14367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368   soname_spec='${libname}${release}${shared_ext}$major'
14369   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14370   shlibpath_var=LD_LIBRARY_PATH
14371   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14372   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14373   # the default ld.so.conf also contains /usr/contrib/lib and
14374   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14375   # libtool to hard-code these into programs
14376   ;;
14377
14378 cygwin* | mingw* | pw32*)
14379   version_type=windows
14380   shrext_cmds=".dll"
14381   need_version=no
14382   need_lib_prefix=no
14383
14384   case $GCC,$host_os in
14385   yes,cygwin* | yes,mingw* | yes,pw32*)
14386     library_names_spec='$libname.dll.a'
14387     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14388     postinstall_cmds='base_file=`basename \${file}`~
14389       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14390       dldir=$destdir/`dirname \$dlpath`~
14391       test -d \$dldir || mkdir -p \$dldir~
14392       $install_prog $dir/$dlname \$dldir/$dlname'
14393     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14394       dlpath=$dir/\$dldll~
14395        $rm \$dlpath'
14396     shlibpath_overrides_runpath=yes
14397
14398     case $host_os in
14399     cygwin*)
14400       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14401       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14402       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14403       ;;
14404     mingw*)
14405       # MinGW DLLs use traditional 'lib' prefix
14406       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14407       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14408       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14409         # It is most probably a Windows format PATH printed by
14410         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14411         # path with ; separators, and with drive letters. We can handle the
14412         # drive letters (cygwin fileutils understands them), so leave them,
14413         # especially as we might pass files found there to a mingw objdump,
14414         # which wouldn't understand a cygwinified path. Ahh.
14415         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14416       else
14417         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14418       fi
14419       ;;
14420     pw32*)
14421       # pw32 DLLs use 'pw' prefix rather than 'lib'
14422       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14423       ;;
14424     esac
14425     ;;
14426
14427   *)
14428     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14429     ;;
14430   esac
14431   dynamic_linker='Win32 ld.exe'
14432   # FIXME: first we should search . and the directory the executable is in
14433   shlibpath_var=PATH
14434   ;;
14435
14436 darwin* | rhapsody*)
14437   dynamic_linker="$host_os dyld"
14438   version_type=darwin
14439   need_lib_prefix=no
14440   need_version=no
14441   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14442   soname_spec='${libname}${release}${major}$shared_ext'
14443   shlibpath_overrides_runpath=yes
14444   shlibpath_var=DYLD_LIBRARY_PATH
14445   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14446   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14447   if test "$GCC" = yes; then
14448     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"`
14449   else
14450     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14451   fi
14452   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14453   ;;
14454
14455 dgux*)
14456   version_type=linux
14457   need_lib_prefix=no
14458   need_version=no
14459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14460   soname_spec='${libname}${release}${shared_ext}$major'
14461   shlibpath_var=LD_LIBRARY_PATH
14462   ;;
14463
14464 freebsd1*)
14465   dynamic_linker=no
14466   ;;
14467
14468 kfreebsd*-gnu)
14469   version_type=linux
14470   need_lib_prefix=no
14471   need_version=no
14472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14473   soname_spec='${libname}${release}${shared_ext}$major'
14474   shlibpath_var=LD_LIBRARY_PATH
14475   shlibpath_overrides_runpath=no
14476   hardcode_into_libs=yes
14477   dynamic_linker='GNU ld.so'
14478   ;;
14479
14480 freebsd*)
14481   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14482   version_type=freebsd-$objformat
14483   case $version_type in
14484     freebsd-elf*)
14485       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14486       need_version=no
14487       need_lib_prefix=no
14488       ;;
14489     freebsd-*)
14490       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14491       need_version=yes
14492       ;;
14493   esac
14494   shlibpath_var=LD_LIBRARY_PATH
14495   case $host_os in
14496   freebsd2*)
14497     shlibpath_overrides_runpath=yes
14498     ;;
14499   freebsd3.01* | freebsdelf3.01*)
14500     shlibpath_overrides_runpath=yes
14501     hardcode_into_libs=yes
14502     ;;
14503   *) # from 3.2 on
14504     shlibpath_overrides_runpath=no
14505     hardcode_into_libs=yes
14506     ;;
14507   esac
14508   ;;
14509
14510 gnu*)
14511   version_type=linux
14512   need_lib_prefix=no
14513   need_version=no
14514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14515   soname_spec='${libname}${release}${shared_ext}$major'
14516   shlibpath_var=LD_LIBRARY_PATH
14517   hardcode_into_libs=yes
14518   ;;
14519
14520 hpux9* | hpux10* | hpux11*)
14521   # Give a soname corresponding to the major version so that dld.sl refuses to
14522   # link against other versions.
14523   version_type=sunos
14524   need_lib_prefix=no
14525   need_version=no
14526   case "$host_cpu" in
14527   ia64*)
14528     shrext_cmds='.so'
14529     hardcode_into_libs=yes
14530     dynamic_linker="$host_os dld.so"
14531     shlibpath_var=LD_LIBRARY_PATH
14532     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534     soname_spec='${libname}${release}${shared_ext}$major'
14535     if test "X$HPUX_IA64_MODE" = X32; then
14536       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14537     else
14538       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14539     fi
14540     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14541     ;;
14542    hppa*64*)
14543      shrext_cmds='.sl'
14544      hardcode_into_libs=yes
14545      dynamic_linker="$host_os dld.sl"
14546      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14547      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14548      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549      soname_spec='${libname}${release}${shared_ext}$major'
14550      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14551      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14552      ;;
14553    *)
14554     shrext_cmds='.sl'
14555     dynamic_linker="$host_os dld.sl"
14556     shlibpath_var=SHLIB_PATH
14557     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14558     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559     soname_spec='${libname}${release}${shared_ext}$major'
14560     ;;
14561   esac
14562   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14563   postinstall_cmds='chmod 555 $lib'
14564   ;;
14565
14566 irix5* | irix6* | nonstopux*)
14567   case $host_os in
14568     nonstopux*) version_type=nonstopux ;;
14569     *)
14570         if test "$lt_cv_prog_gnu_ld" = yes; then
14571                 version_type=linux
14572         else
14573                 version_type=irix
14574         fi ;;
14575   esac
14576   need_lib_prefix=no
14577   need_version=no
14578   soname_spec='${libname}${release}${shared_ext}$major'
14579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14580   case $host_os in
14581   irix5* | nonstopux*)
14582     libsuff= shlibsuff=
14583     ;;
14584   *)
14585     case $LD in # libtool.m4 will add one of these switches to LD
14586     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14587       libsuff= shlibsuff= libmagic=32-bit;;
14588     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14589       libsuff=32 shlibsuff=N32 libmagic=N32;;
14590     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14591       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14592     *) libsuff= shlibsuff= libmagic=never-match;;
14593     esac
14594     ;;
14595   esac
14596   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14597   shlibpath_overrides_runpath=no
14598   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14599   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14600   hardcode_into_libs=yes
14601   ;;
14602
14603 # No shared lib support for Linux oldld, aout, or coff.
14604 linux*oldld* | linux*aout* | linux*coff*)
14605   dynamic_linker=no
14606   ;;
14607
14608 # This must be Linux ELF.
14609 linux*)
14610   version_type=linux
14611   need_lib_prefix=no
14612   need_version=no
14613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614   soname_spec='${libname}${release}${shared_ext}$major'
14615   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14616   shlibpath_var=LD_LIBRARY_PATH
14617   shlibpath_overrides_runpath=no
14618   # This implies no fast_install, which is unacceptable.
14619   # Some rework will be needed to allow for fast_install
14620   # before this can be enabled.
14621   hardcode_into_libs=yes
14622
14623   # Append ld.so.conf contents to the search path
14624   if test -f /etc/ld.so.conf; then
14625     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14626     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14627   fi
14628
14629   # We used to test for /lib/ld.so.1 and disable shared libraries on
14630   # powerpc, because MkLinux only supported shared libraries with the
14631   # GNU dynamic linker.  Since this was broken with cross compilers,
14632   # most powerpc-linux boxes support dynamic linking these days and
14633   # people can always --disable-shared, the test was removed, and we
14634   # assume the GNU/Linux dynamic linker is in use.
14635   dynamic_linker='GNU/Linux ld.so'
14636   ;;
14637
14638 knetbsd*-gnu)
14639   version_type=linux
14640   need_lib_prefix=no
14641   need_version=no
14642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14643   soname_spec='${libname}${release}${shared_ext}$major'
14644   shlibpath_var=LD_LIBRARY_PATH
14645   shlibpath_overrides_runpath=no
14646   hardcode_into_libs=yes
14647   dynamic_linker='GNU ld.so'
14648   ;;
14649
14650 netbsd*)
14651   version_type=sunos
14652   need_lib_prefix=no
14653   need_version=no
14654   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14655     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14656     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14657     dynamic_linker='NetBSD (a.out) ld.so'
14658   else
14659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14660     soname_spec='${libname}${release}${shared_ext}$major'
14661     dynamic_linker='NetBSD ld.elf_so'
14662   fi
14663   shlibpath_var=LD_LIBRARY_PATH
14664   shlibpath_overrides_runpath=yes
14665   hardcode_into_libs=yes
14666   ;;
14667
14668 newsos6)
14669   version_type=linux
14670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671   shlibpath_var=LD_LIBRARY_PATH
14672   shlibpath_overrides_runpath=yes
14673   ;;
14674
14675 nto-qnx*)
14676   version_type=linux
14677   need_lib_prefix=no
14678   need_version=no
14679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680   soname_spec='${libname}${release}${shared_ext}$major'
14681   shlibpath_var=LD_LIBRARY_PATH
14682   shlibpath_overrides_runpath=yes
14683   ;;
14684
14685 openbsd*)
14686   version_type=sunos
14687   need_lib_prefix=no
14688   need_version=no
14689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14690   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14691   shlibpath_var=LD_LIBRARY_PATH
14692   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14693     case $host_os in
14694       openbsd2.[89] | openbsd2.[89].*)
14695         shlibpath_overrides_runpath=no
14696         ;;
14697       *)
14698         shlibpath_overrides_runpath=yes
14699         ;;
14700       esac
14701   else
14702     shlibpath_overrides_runpath=yes
14703   fi
14704   ;;
14705
14706 os2*)
14707   libname_spec='$name'
14708   shrext_cmds=".dll"
14709   need_lib_prefix=no
14710   library_names_spec='$libname${shared_ext} $libname.a'
14711   dynamic_linker='OS/2 ld.exe'
14712   shlibpath_var=LIBPATH
14713   ;;
14714
14715 osf3* | osf4* | osf5*)
14716   version_type=osf
14717   need_lib_prefix=no
14718   need_version=no
14719   soname_spec='${libname}${release}${shared_ext}$major'
14720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14721   shlibpath_var=LD_LIBRARY_PATH
14722   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14723   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14724   ;;
14725
14726 sco3.2v5*)
14727   version_type=osf
14728   soname_spec='${libname}${release}${shared_ext}$major'
14729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730   shlibpath_var=LD_LIBRARY_PATH
14731   ;;
14732
14733 solaris*)
14734   version_type=linux
14735   need_lib_prefix=no
14736   need_version=no
14737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738   soname_spec='${libname}${release}${shared_ext}$major'
14739   shlibpath_var=LD_LIBRARY_PATH
14740   shlibpath_overrides_runpath=yes
14741   hardcode_into_libs=yes
14742   # ldd complains unless libraries are executable
14743   postinstall_cmds='chmod +x $lib'
14744   ;;
14745
14746 sunos4*)
14747   version_type=sunos
14748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14749   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14750   shlibpath_var=LD_LIBRARY_PATH
14751   shlibpath_overrides_runpath=yes
14752   if test "$with_gnu_ld" = yes; then
14753     need_lib_prefix=no
14754   fi
14755   need_version=yes
14756   ;;
14757
14758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14759   version_type=linux
14760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761   soname_spec='${libname}${release}${shared_ext}$major'
14762   shlibpath_var=LD_LIBRARY_PATH
14763   case $host_vendor in
14764     sni)
14765       shlibpath_overrides_runpath=no
14766       need_lib_prefix=no
14767       export_dynamic_flag_spec='${wl}-Blargedynsym'
14768       runpath_var=LD_RUN_PATH
14769       ;;
14770     siemens)
14771       need_lib_prefix=no
14772       ;;
14773     motorola)
14774       need_lib_prefix=no
14775       need_version=no
14776       shlibpath_overrides_runpath=no
14777       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14778       ;;
14779   esac
14780   ;;
14781
14782 sysv4*MP*)
14783   if test -d /usr/nec ;then
14784     version_type=linux
14785     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14786     soname_spec='$libname${shared_ext}.$major'
14787     shlibpath_var=LD_LIBRARY_PATH
14788   fi
14789   ;;
14790
14791 uts4*)
14792   version_type=linux
14793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794   soname_spec='${libname}${release}${shared_ext}$major'
14795   shlibpath_var=LD_LIBRARY_PATH
14796   ;;
14797
14798 *)
14799   dynamic_linker=no
14800   ;;
14801 esac
14802 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14803 echo "${ECHO_T}$dynamic_linker" >&6
14804 test "$dynamic_linker" = no && can_build_shared=no
14805
14806 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14807 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14808 hardcode_action_F77=
14809 if test -n "$hardcode_libdir_flag_spec_F77" || \
14810    test -n "$runpath_var_F77" || \
14811    test "X$hardcode_automatic_F77" = "Xyes" ; then
14812
14813   # We can hardcode non-existant directories.
14814   if test "$hardcode_direct_F77" != no &&
14815      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14816      # have to relink, otherwise we might link with an installed library
14817      # when we should be linking with a yet-to-be-installed one
14818      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14819      test "$hardcode_minus_L_F77" != no; then
14820     # Linking always hardcodes the temporary library directory.
14821     hardcode_action_F77=relink
14822   else
14823     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14824     hardcode_action_F77=immediate
14825   fi
14826 else
14827   # We cannot hardcode anything, or else we can only hardcode existing
14828   # directories.
14829   hardcode_action_F77=unsupported
14830 fi
14831 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14832 echo "${ECHO_T}$hardcode_action_F77" >&6
14833
14834 if test "$hardcode_action_F77" = relink; then
14835   # Fast installation is not supported
14836   enable_fast_install=no
14837 elif test "$shlibpath_overrides_runpath" = yes ||
14838      test "$enable_shared" = no; then
14839   # Fast installation is not necessary
14840   enable_fast_install=needless
14841 fi
14842
14843 striplib=
14844 old_striplib=
14845 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14846 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14847 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14848   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14849   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14850   echo "$as_me:$LINENO: result: yes" >&5
14851 echo "${ECHO_T}yes" >&6
14852 else
14853 # FIXME - insert some real tests, host_os isn't really good enough
14854   case $host_os in
14855    darwin*)
14856        if test -n "$STRIP" ; then
14857          striplib="$STRIP -x"
14858          echo "$as_me:$LINENO: result: yes" >&5
14859 echo "${ECHO_T}yes" >&6
14860        else
14861   echo "$as_me:$LINENO: result: no" >&5
14862 echo "${ECHO_T}no" >&6
14863 fi
14864        ;;
14865    *)
14866   echo "$as_me:$LINENO: result: no" >&5
14867 echo "${ECHO_T}no" >&6
14868     ;;
14869   esac
14870 fi
14871
14872
14873
14874 # The else clause should only fire when bootstrapping the
14875 # libtool distribution, otherwise you forgot to ship ltmain.sh
14876 # with your package, and you will get complaints that there are
14877 # no rules to generate ltmain.sh.
14878 if test -f "$ltmain"; then
14879   # See if we are running on zsh, and set the options which allow our commands through
14880   # without removal of \ escapes.
14881   if test -n "${ZSH_VERSION+set}" ; then
14882     setopt NO_GLOB_SUBST
14883   fi
14884   # Now quote all the things that may contain metacharacters while being
14885   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14886   # variables and quote the copies for generation of the libtool script.
14887   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14888     SED SHELL STRIP \
14889     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14890     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14891     deplibs_check_method reload_flag reload_cmds need_locks \
14892     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14893     lt_cv_sys_global_symbol_to_c_name_address \
14894     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14895     old_postinstall_cmds old_postuninstall_cmds \
14896     compiler_F77 \
14897     CC_F77 \
14898     LD_F77 \
14899     lt_prog_compiler_wl_F77 \
14900     lt_prog_compiler_pic_F77 \
14901     lt_prog_compiler_static_F77 \
14902     lt_prog_compiler_no_builtin_flag_F77 \
14903     export_dynamic_flag_spec_F77 \
14904     thread_safe_flag_spec_F77 \
14905     whole_archive_flag_spec_F77 \
14906     enable_shared_with_static_runtimes_F77 \
14907     old_archive_cmds_F77 \
14908     old_archive_from_new_cmds_F77 \
14909     predep_objects_F77 \
14910     postdep_objects_F77 \
14911     predeps_F77 \
14912     postdeps_F77 \
14913     compiler_lib_search_path_F77 \
14914     archive_cmds_F77 \
14915     archive_expsym_cmds_F77 \
14916     postinstall_cmds_F77 \
14917     postuninstall_cmds_F77 \
14918     old_archive_from_expsyms_cmds_F77 \
14919     allow_undefined_flag_F77 \
14920     no_undefined_flag_F77 \
14921     export_symbols_cmds_F77 \
14922     hardcode_libdir_flag_spec_F77 \
14923     hardcode_libdir_flag_spec_ld_F77 \
14924     hardcode_libdir_separator_F77 \
14925     hardcode_automatic_F77 \
14926     module_cmds_F77 \
14927     module_expsym_cmds_F77 \
14928     lt_cv_prog_compiler_c_o_F77 \
14929     exclude_expsyms_F77 \
14930     include_expsyms_F77; do
14931
14932     case $var in
14933     old_archive_cmds_F77 | \
14934     old_archive_from_new_cmds_F77 | \
14935     archive_cmds_F77 | \
14936     archive_expsym_cmds_F77 | \
14937     module_cmds_F77 | \
14938     module_expsym_cmds_F77 | \
14939     old_archive_from_expsyms_cmds_F77 | \
14940     export_symbols_cmds_F77 | \
14941     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14942     postinstall_cmds | postuninstall_cmds | \
14943     old_postinstall_cmds | old_postuninstall_cmds | \
14944     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14945       # Double-quote double-evaled strings.
14946       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14947       ;;
14948     *)
14949       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14950       ;;
14951     esac
14952   done
14953
14954   case $lt_echo in
14955   *'\$0 --fallback-echo"')
14956     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14957     ;;
14958   esac
14959
14960 cfgfile="$ofile"
14961
14962   cat <<__EOF__ >> "$cfgfile"
14963 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14964
14965 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14966
14967 # Shell to use when invoking shell scripts.
14968 SHELL=$lt_SHELL
14969
14970 # Whether or not to build shared libraries.
14971 build_libtool_libs=$enable_shared
14972
14973 # Whether or not to build static libraries.
14974 build_old_libs=$enable_static
14975
14976 # Whether or not to add -lc for building shared libraries.
14977 build_libtool_need_lc=$archive_cmds_need_lc_F77
14978
14979 # Whether or not to disallow shared libs when runtime libs are static
14980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14981
14982 # Whether or not to optimize for fast installation.
14983 fast_install=$enable_fast_install
14984
14985 # The host system.
14986 host_alias=$host_alias
14987 host=$host
14988
14989 # An echo program that does not interpret backslashes.
14990 echo=$lt_echo
14991
14992 # The archiver.
14993 AR=$lt_AR
14994 AR_FLAGS=$lt_AR_FLAGS
14995
14996 # A C compiler.
14997 LTCC=$lt_LTCC
14998
14999 # A language-specific compiler.
15000 CC=$lt_compiler_F77
15001
15002 # Is the compiler the GNU C compiler?
15003 with_gcc=$GCC_F77
15004
15005 # An ERE matcher.
15006 EGREP=$lt_EGREP
15007
15008 # The linker used to build libraries.
15009 LD=$lt_LD_F77
15010
15011 # Whether we need hard or soft links.
15012 LN_S=$lt_LN_S
15013
15014 # A BSD-compatible nm program.
15015 NM=$lt_NM
15016
15017 # A symbol stripping program
15018 STRIP=$lt_STRIP
15019
15020 # Used to examine libraries when file_magic_cmd begins "file"
15021 MAGIC_CMD=$MAGIC_CMD
15022
15023 # Used on cygwin: DLL creation program.
15024 DLLTOOL="$DLLTOOL"
15025
15026 # Used on cygwin: object dumper.
15027 OBJDUMP="$OBJDUMP"
15028
15029 # Used on cygwin: assembler.
15030 AS="$AS"
15031
15032 # The name of the directory that contains temporary libtool files.
15033 objdir=$objdir
15034
15035 # How to create reloadable object files.
15036 reload_flag=$lt_reload_flag
15037 reload_cmds=$lt_reload_cmds
15038
15039 # How to pass a linker flag through the compiler.
15040 wl=$lt_lt_prog_compiler_wl_F77
15041
15042 # Object file suffix (normally "o").
15043 objext="$ac_objext"
15044
15045 # Old archive suffix (normally "a").
15046 libext="$libext"
15047
15048 # Shared library suffix (normally ".so").
15049 shrext_cmds='$shrext_cmds'
15050
15051 # Executable file suffix (normally "").
15052 exeext="$exeext"
15053
15054 # Additional compiler flags for building library objects.
15055 pic_flag=$lt_lt_prog_compiler_pic_F77
15056 pic_mode=$pic_mode
15057
15058 # What is the maximum length of a command?
15059 max_cmd_len=$lt_cv_sys_max_cmd_len
15060
15061 # Does compiler simultaneously support -c and -o options?
15062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15063
15064 # Must we lock files when doing compilation ?
15065 need_locks=$lt_need_locks
15066
15067 # Do we need the lib prefix for modules?
15068 need_lib_prefix=$need_lib_prefix
15069
15070 # Do we need a version for libraries?
15071 need_version=$need_version
15072
15073 # Whether dlopen is supported.
15074 dlopen_support=$enable_dlopen
15075
15076 # Whether dlopen of programs is supported.
15077 dlopen_self=$enable_dlopen_self
15078
15079 # Whether dlopen of statically linked programs is supported.
15080 dlopen_self_static=$enable_dlopen_self_static
15081
15082 # Compiler flag to prevent dynamic linking.
15083 link_static_flag=$lt_lt_prog_compiler_static_F77
15084
15085 # Compiler flag to turn off builtin functions.
15086 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15087
15088 # Compiler flag to allow reflexive dlopens.
15089 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15090
15091 # Compiler flag to generate shared objects directly from archives.
15092 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15093
15094 # Compiler flag to generate thread-safe objects.
15095 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15096
15097 # Library versioning type.
15098 version_type=$version_type
15099
15100 # Format of library name prefix.
15101 libname_spec=$lt_libname_spec
15102
15103 # List of archive names.  First name is the real one, the rest are links.
15104 # The last name is the one that the linker finds with -lNAME.
15105 library_names_spec=$lt_library_names_spec
15106
15107 # The coded name of the library, if different from the real name.
15108 soname_spec=$lt_soname_spec
15109
15110 # Commands used to build and install an old-style archive.
15111 RANLIB=$lt_RANLIB
15112 old_archive_cmds=$lt_old_archive_cmds_F77
15113 old_postinstall_cmds=$lt_old_postinstall_cmds
15114 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15115
15116 # Create an old-style archive from a shared archive.
15117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15118
15119 # Create a temporary old-style archive to link instead of a shared archive.
15120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15121
15122 # Commands used to build and install a shared archive.
15123 archive_cmds=$lt_archive_cmds_F77
15124 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15125 postinstall_cmds=$lt_postinstall_cmds
15126 postuninstall_cmds=$lt_postuninstall_cmds
15127
15128 # Commands used to build a loadable module (assumed same as above if empty)
15129 module_cmds=$lt_module_cmds_F77
15130 module_expsym_cmds=$lt_module_expsym_cmds_F77
15131
15132 # Commands to strip libraries.
15133 old_striplib=$lt_old_striplib
15134 striplib=$lt_striplib
15135
15136 # Dependencies to place before the objects being linked to create a
15137 # shared library.
15138 predep_objects=$lt_predep_objects_F77
15139
15140 # Dependencies to place after the objects being linked to create a
15141 # shared library.
15142 postdep_objects=$lt_postdep_objects_F77
15143
15144 # Dependencies to place before the objects being linked to create a
15145 # shared library.
15146 predeps=$lt_predeps_F77
15147
15148 # Dependencies to place after the objects being linked to create a
15149 # shared library.
15150 postdeps=$lt_postdeps_F77
15151
15152 # The library search path used internally by the compiler when linking
15153 # a shared library.
15154 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15155
15156 # Method to check whether dependent libraries are shared objects.
15157 deplibs_check_method=$lt_deplibs_check_method
15158
15159 # Command to use when deplibs_check_method == file_magic.
15160 file_magic_cmd=$lt_file_magic_cmd
15161
15162 # Flag that allows shared libraries with undefined symbols to be built.
15163 allow_undefined_flag=$lt_allow_undefined_flag_F77
15164
15165 # Flag that forces no undefined symbols.
15166 no_undefined_flag=$lt_no_undefined_flag_F77
15167
15168 # Commands used to finish a libtool library installation in a directory.
15169 finish_cmds=$lt_finish_cmds
15170
15171 # Same as above, but a single script fragment to be evaled but not shown.
15172 finish_eval=$lt_finish_eval
15173
15174 # Take the output of nm and produce a listing of raw symbols and C names.
15175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15176
15177 # Transform the output of nm in a proper C declaration
15178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15179
15180 # Transform the output of nm in a C name address pair
15181 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15182
15183 # This is the shared library runtime path variable.
15184 runpath_var=$runpath_var
15185
15186 # This is the shared library path variable.
15187 shlibpath_var=$shlibpath_var
15188
15189 # Is shlibpath searched before the hard-coded library search path?
15190 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15191
15192 # How to hardcode a shared library path into an executable.
15193 hardcode_action=$hardcode_action_F77
15194
15195 # Whether we should hardcode library paths into libraries.
15196 hardcode_into_libs=$hardcode_into_libs
15197
15198 # Flag to hardcode \$libdir into a binary during linking.
15199 # This must work even if \$libdir does not exist.
15200 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15201
15202 # If ld is used when linking, flag to hardcode \$libdir into
15203 # a binary during linking. This must work even if \$libdir does
15204 # not exist.
15205 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15206
15207 # Whether we need a single -rpath flag with a separated argument.
15208 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15209
15210 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15211 # resulting binary.
15212 hardcode_direct=$hardcode_direct_F77
15213
15214 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15215 # resulting binary.
15216 hardcode_minus_L=$hardcode_minus_L_F77
15217
15218 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15219 # the resulting binary.
15220 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15221
15222 # Set to yes if building a shared library automatically hardcodes DIR into the library
15223 # and all subsequent libraries and executables linked against it.
15224 hardcode_automatic=$hardcode_automatic_F77
15225
15226 # Variables whose values should be saved in libtool wrapper scripts and
15227 # restored at relink time.
15228 variables_saved_for_relink="$variables_saved_for_relink"
15229
15230 # Whether libtool must link a program against all its dependency libraries.
15231 link_all_deplibs=$link_all_deplibs_F77
15232
15233 # Compile-time system search path for libraries
15234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15235
15236 # Run-time system search path for libraries
15237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15238
15239 # Fix the shell variable \$srcfile for the compiler.
15240 fix_srcfile_path="$fix_srcfile_path_F77"
15241
15242 # Set to yes if exported symbols are required.
15243 always_export_symbols=$always_export_symbols_F77
15244
15245 # The commands to list exported symbols.
15246 export_symbols_cmds=$lt_export_symbols_cmds_F77
15247
15248 # The commands to extract the exported symbol list from a shared archive.
15249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15250
15251 # Symbols that should not be listed in the preloaded symbols.
15252 exclude_expsyms=$lt_exclude_expsyms_F77
15253
15254 # Symbols that must always be exported.
15255 include_expsyms=$lt_include_expsyms_F77
15256
15257 # ### END LIBTOOL TAG CONFIG: $tagname
15258
15259 __EOF__
15260
15261
15262 else
15263   # If there is no Makefile yet, we rely on a make rule to execute
15264   # `config.status --recheck' to rerun these tests and create the
15265   # libtool script then.
15266   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15267   if test -f "$ltmain_in"; then
15268     test -f Makefile && make "$ltmain"
15269   fi
15270 fi
15271
15272
15273 ac_ext=c
15274 ac_cpp='$CPP $CPPFLAGS'
15275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15278
15279 CC="$lt_save_CC"
15280
15281         else
15282           tagname=""
15283         fi
15284         ;;
15285
15286       GCJ)
15287         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15288           ac_ext=c
15289 ac_cpp='$CPP $CPPFLAGS'
15290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15293
15294
15295 # Source file extension for Java test sources.
15296 ac_ext=java
15297
15298 # Object file extension for compiled Java test sources.
15299 objext=o
15300 objext_GCJ=$objext
15301
15302 # Code to be used in simple compile tests
15303 lt_simple_compile_test_code="class foo {}\n"
15304
15305 # Code to be used in simple link tests
15306 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15307
15308 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15309
15310 # If no C compiler was specified, use CC.
15311 LTCC=${LTCC-"$CC"}
15312
15313 # Allow CC to be a program name with arguments.
15314 compiler=$CC
15315
15316
15317 # Allow CC to be a program name with arguments.
15318 lt_save_CC="$CC"
15319 CC=${GCJ-"gcj"}
15320 compiler=$CC
15321 compiler_GCJ=$CC
15322
15323 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15324 archive_cmds_need_lc_GCJ=no
15325
15326
15327 lt_prog_compiler_no_builtin_flag_GCJ=
15328
15329 if test "$GCC" = yes; then
15330   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15331
15332
15333 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15334 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15336   echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338   lt_cv_prog_compiler_rtti_exceptions=no
15339   ac_outfile=conftest.$ac_objext
15340    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15341    lt_compiler_flag="-fno-rtti -fno-exceptions"
15342    # Insert the option either (1) after the last *FLAGS variable, or
15343    # (2) before a word containing "conftest.", or (3) at the end.
15344    # Note that $ac_compile itself does not contain backslashes and begins
15345    # with a dollar sign (not a hyphen), so the echo should work correctly.
15346    # The option is referenced via a variable to avoid confusing sed.
15347    lt_compile=`echo "$ac_compile" | $SED \
15348    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15350    -e 's:$: $lt_compiler_flag:'`
15351    (eval echo "\"\$as_me:15351: $lt_compile\"" >&5)
15352    (eval "$lt_compile" 2>conftest.err)
15353    ac_status=$?
15354    cat conftest.err >&5
15355    echo "$as_me:15355: \$? = $ac_status" >&5
15356    if (exit $ac_status) && test -s "$ac_outfile"; then
15357      # The compiler can only warn and ignore the option if not recognized
15358      # So say no if there are warnings
15359      if test ! -s conftest.err; then
15360        lt_cv_prog_compiler_rtti_exceptions=yes
15361      fi
15362    fi
15363    $rm conftest*
15364
15365 fi
15366 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15367 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15368
15369 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15370     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15371 else
15372     :
15373 fi
15374
15375 fi
15376
15377 lt_prog_compiler_wl_GCJ=
15378 lt_prog_compiler_pic_GCJ=
15379 lt_prog_compiler_static_GCJ=
15380
15381 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15382 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15383
15384   if test "$GCC" = yes; then
15385     lt_prog_compiler_wl_GCJ='-Wl,'
15386     lt_prog_compiler_static_GCJ='-static'
15387
15388     case $host_os in
15389       aix*)
15390       # All AIX code is PIC.
15391       if test "$host_cpu" = ia64; then
15392         # AIX 5 now supports IA64 processor
15393         lt_prog_compiler_static_GCJ='-Bstatic'
15394       fi
15395       ;;
15396
15397     amigaos*)
15398       # FIXME: we need at least 68020 code to build shared libraries, but
15399       # adding the `-m68020' flag to GCC prevents building anything better,
15400       # like `-m68040'.
15401       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15402       ;;
15403
15404     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15405       # PIC is the default for these OSes.
15406       ;;
15407
15408     mingw* | pw32* | os2*)
15409       # This hack is so that the source file can tell whether it is being
15410       # built for inclusion in a dll (and should export symbols for example).
15411       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15412       ;;
15413
15414     darwin* | rhapsody*)
15415       # PIC is the default on this platform
15416       # Common symbols not allowed in MH_DYLIB files
15417       lt_prog_compiler_pic_GCJ='-fno-common'
15418       ;;
15419
15420     msdosdjgpp*)
15421       # Just because we use GCC doesn't mean we suddenly get shared libraries
15422       # on systems that don't support them.
15423       lt_prog_compiler_can_build_shared_GCJ=no
15424       enable_shared=no
15425       ;;
15426
15427     sysv4*MP*)
15428       if test -d /usr/nec; then
15429         lt_prog_compiler_pic_GCJ=-Kconform_pic
15430       fi
15431       ;;
15432
15433     hpux*)
15434       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15435       # not for PA HP-UX.
15436       case "$host_cpu" in
15437       hppa*64*|ia64*)
15438         # +Z the default
15439         ;;
15440       *)
15441         lt_prog_compiler_pic_GCJ='-fPIC'
15442         ;;
15443       esac
15444       ;;
15445
15446     *)
15447       lt_prog_compiler_pic_GCJ='-fPIC'
15448       ;;
15449     esac
15450   else
15451     # PORTME Check for flag to pass linker flags through the system compiler.
15452     case $host_os in
15453     aix*)
15454       lt_prog_compiler_wl_GCJ='-Wl,'
15455       if test "$host_cpu" = ia64; then
15456         # AIX 5 now supports IA64 processor
15457         lt_prog_compiler_static_GCJ='-Bstatic'
15458       else
15459         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15460       fi
15461       ;;
15462       darwin*)
15463         # PIC is the default on this platform
15464         # Common symbols not allowed in MH_DYLIB files
15465        case "$cc_basename" in
15466          xlc*)
15467          lt_prog_compiler_pic_GCJ='-qnocommon'
15468          lt_prog_compiler_wl_GCJ='-Wl,'
15469          ;;
15470        esac
15471        ;;
15472
15473     mingw* | pw32* | os2*)
15474       # This hack is so that the source file can tell whether it is being
15475       # built for inclusion in a dll (and should export symbols for example).
15476       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15477       ;;
15478
15479     hpux9* | hpux10* | hpux11*)
15480       lt_prog_compiler_wl_GCJ='-Wl,'
15481       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15482       # not for PA HP-UX.
15483       case "$host_cpu" in
15484       hppa*64*|ia64*)
15485         # +Z the default
15486         ;;
15487       *)
15488         lt_prog_compiler_pic_GCJ='+Z'
15489         ;;
15490       esac
15491       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15492       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15493       ;;
15494
15495     irix5* | irix6* | nonstopux*)
15496       lt_prog_compiler_wl_GCJ='-Wl,'
15497       # PIC (with -KPIC) is the default.
15498       lt_prog_compiler_static_GCJ='-non_shared'
15499       ;;
15500
15501     newsos6)
15502       lt_prog_compiler_pic_GCJ='-KPIC'
15503       lt_prog_compiler_static_GCJ='-Bstatic'
15504       ;;
15505
15506     linux*)
15507       case $CC in
15508       icc* | ecc*)
15509         lt_prog_compiler_wl_GCJ='-Wl,'
15510         lt_prog_compiler_pic_GCJ='-KPIC'
15511         lt_prog_compiler_static_GCJ='-static'
15512         ;;
15513       ccc*)
15514         lt_prog_compiler_wl_GCJ='-Wl,'
15515         # All Alpha code is PIC.
15516         lt_prog_compiler_static_GCJ='-non_shared'
15517         ;;
15518       esac
15519       ;;
15520
15521     osf3* | osf4* | osf5*)
15522       lt_prog_compiler_wl_GCJ='-Wl,'
15523       # All OSF/1 code is PIC.
15524       lt_prog_compiler_static_GCJ='-non_shared'
15525       ;;
15526
15527     sco3.2v5*)
15528       lt_prog_compiler_pic_GCJ='-Kpic'
15529       lt_prog_compiler_static_GCJ='-dn'
15530       ;;
15531
15532     solaris*)
15533       lt_prog_compiler_wl_GCJ='-Wl,'
15534       lt_prog_compiler_pic_GCJ='-KPIC'
15535       lt_prog_compiler_static_GCJ='-Bstatic'
15536       ;;
15537
15538     sunos4*)
15539       lt_prog_compiler_wl_GCJ='-Qoption ld '
15540       lt_prog_compiler_pic_GCJ='-PIC'
15541       lt_prog_compiler_static_GCJ='-Bstatic'
15542       ;;
15543
15544     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15545       lt_prog_compiler_wl_GCJ='-Wl,'
15546       lt_prog_compiler_pic_GCJ='-KPIC'
15547       lt_prog_compiler_static_GCJ='-Bstatic'
15548       ;;
15549
15550     sysv4*MP*)
15551       if test -d /usr/nec ;then
15552         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15553         lt_prog_compiler_static_GCJ='-Bstatic'
15554       fi
15555       ;;
15556
15557     uts4*)
15558       lt_prog_compiler_pic_GCJ='-pic'
15559       lt_prog_compiler_static_GCJ='-Bstatic'
15560       ;;
15561
15562     *)
15563       lt_prog_compiler_can_build_shared_GCJ=no
15564       ;;
15565     esac
15566   fi
15567
15568 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15569 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15570
15571 #
15572 # Check to make sure the PIC flag actually works.
15573 #
15574 if test -n "$lt_prog_compiler_pic_GCJ"; then
15575
15576 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15577 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15578 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15579   echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581   lt_prog_compiler_pic_works_GCJ=no
15582   ac_outfile=conftest.$ac_objext
15583    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15584    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15585    # Insert the option either (1) after the last *FLAGS variable, or
15586    # (2) before a word containing "conftest.", or (3) at the end.
15587    # Note that $ac_compile itself does not contain backslashes and begins
15588    # with a dollar sign (not a hyphen), so the echo should work correctly.
15589    # The option is referenced via a variable to avoid confusing sed.
15590    lt_compile=`echo "$ac_compile" | $SED \
15591    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15593    -e 's:$: $lt_compiler_flag:'`
15594    (eval echo "\"\$as_me:15594: $lt_compile\"" >&5)
15595    (eval "$lt_compile" 2>conftest.err)
15596    ac_status=$?
15597    cat conftest.err >&5
15598    echo "$as_me:15598: \$? = $ac_status" >&5
15599    if (exit $ac_status) && test -s "$ac_outfile"; then
15600      # The compiler can only warn and ignore the option if not recognized
15601      # So say no if there are warnings
15602      if test ! -s conftest.err; then
15603        lt_prog_compiler_pic_works_GCJ=yes
15604      fi
15605    fi
15606    $rm conftest*
15607
15608 fi
15609 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15610 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15611
15612 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15613     case $lt_prog_compiler_pic_GCJ in
15614      "" | " "*) ;;
15615      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15616      esac
15617 else
15618     lt_prog_compiler_pic_GCJ=
15619      lt_prog_compiler_can_build_shared_GCJ=no
15620 fi
15621
15622 fi
15623 case "$host_os" in
15624   # For platforms which do not support PIC, -DPIC is meaningless:
15625   *djgpp*)
15626     lt_prog_compiler_pic_GCJ=
15627     ;;
15628   *)
15629     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15630     ;;
15631 esac
15632
15633 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15634 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15635 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15636   echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638   lt_cv_prog_compiler_c_o_GCJ=no
15639    $rm -r conftest 2>/dev/null
15640    mkdir conftest
15641    cd conftest
15642    mkdir out
15643    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15644
15645    lt_compiler_flag="-o out/conftest2.$ac_objext"
15646    # Insert the option either (1) after the last *FLAGS variable, or
15647    # (2) before a word containing "conftest.", or (3) at the end.
15648    # Note that $ac_compile itself does not contain backslashes and begins
15649    # with a dollar sign (not a hyphen), so the echo should work correctly.
15650    lt_compile=`echo "$ac_compile" | $SED \
15651    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15653    -e 's:$: $lt_compiler_flag:'`
15654    (eval echo "\"\$as_me:15654: $lt_compile\"" >&5)
15655    (eval "$lt_compile" 2>out/conftest.err)
15656    ac_status=$?
15657    cat out/conftest.err >&5
15658    echo "$as_me:15658: \$? = $ac_status" >&5
15659    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15660    then
15661      # The compiler can only warn and ignore the option if not recognized
15662      # So say no if there are warnings
15663      if test ! -s out/conftest.err; then
15664        lt_cv_prog_compiler_c_o_GCJ=yes
15665      fi
15666    fi
15667    chmod u+w .
15668    $rm conftest*
15669    # SGI C++ compiler will create directory out/ii_files/ for
15670    # template instantiation
15671    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15672    $rm out/* && rmdir out
15673    cd ..
15674    rmdir conftest
15675    $rm conftest*
15676
15677 fi
15678 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15679 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15680
15681
15682 hard_links="nottested"
15683 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15684   # do not overwrite the value of need_locks provided by the user
15685   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15686 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15687   hard_links=yes
15688   $rm conftest*
15689   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15690   touch conftest.a
15691   ln conftest.a conftest.b 2>&5 || hard_links=no
15692   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15693   echo "$as_me:$LINENO: result: $hard_links" >&5
15694 echo "${ECHO_T}$hard_links" >&6
15695   if test "$hard_links" = no; then
15696     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15697 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15698     need_locks=warn
15699   fi
15700 else
15701   need_locks=no
15702 fi
15703
15704 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15705 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15706
15707   runpath_var=
15708   allow_undefined_flag_GCJ=
15709   enable_shared_with_static_runtimes_GCJ=no
15710   archive_cmds_GCJ=
15711   archive_expsym_cmds_GCJ=
15712   old_archive_From_new_cmds_GCJ=
15713   old_archive_from_expsyms_cmds_GCJ=
15714   export_dynamic_flag_spec_GCJ=
15715   whole_archive_flag_spec_GCJ=
15716   thread_safe_flag_spec_GCJ=
15717   hardcode_libdir_flag_spec_GCJ=
15718   hardcode_libdir_flag_spec_ld_GCJ=
15719   hardcode_libdir_separator_GCJ=
15720   hardcode_direct_GCJ=no
15721   hardcode_minus_L_GCJ=no
15722   hardcode_shlibpath_var_GCJ=unsupported
15723   link_all_deplibs_GCJ=unknown
15724   hardcode_automatic_GCJ=no
15725   module_cmds_GCJ=
15726   module_expsym_cmds_GCJ=
15727   always_export_symbols_GCJ=no
15728   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15729   # include_expsyms should be a list of space-separated symbols to be *always*
15730   # included in the symbol list
15731   include_expsyms_GCJ=
15732   # exclude_expsyms can be an extended regexp of symbols to exclude
15733   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15734   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15735   # as well as any symbol that contains `d'.
15736   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15737   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15738   # platforms (ab)use it in PIC code, but their linkers get confused if
15739   # the symbol is explicitly referenced.  Since portable code cannot
15740   # rely on this symbol name, it's probably fine to never include it in
15741   # preloaded symbol tables.
15742   extract_expsyms_cmds=
15743
15744   case $host_os in
15745   cygwin* | mingw* | pw32*)
15746     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15747     # When not using gcc, we currently assume that we are using
15748     # Microsoft Visual C++.
15749     if test "$GCC" != yes; then
15750       with_gnu_ld=no
15751     fi
15752     ;;
15753   openbsd*)
15754     with_gnu_ld=no
15755     ;;
15756   esac
15757
15758   ld_shlibs_GCJ=yes
15759   if test "$with_gnu_ld" = yes; then
15760     # If archive_cmds runs LD, not CC, wlarc should be empty
15761     wlarc='${wl}'
15762
15763     # See if GNU ld supports shared libraries.
15764     case $host_os in
15765     aix3* | aix4* | aix5*)
15766       # On AIX/PPC, the GNU linker is very broken
15767       if test "$host_cpu" != ia64; then
15768         ld_shlibs_GCJ=no
15769         cat <<EOF 1>&2
15770
15771 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15772 *** to be unable to reliably create shared libraries on AIX.
15773 *** Therefore, libtool is disabling shared libraries support.  If you
15774 *** really care for shared libraries, you may want to modify your PATH
15775 *** so that a non-GNU linker is found, and then restart.
15776
15777 EOF
15778       fi
15779       ;;
15780
15781     amigaos*)
15782       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)'
15783       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15784       hardcode_minus_L_GCJ=yes
15785
15786       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15787       # that the semantics of dynamic libraries on AmigaOS, at least up
15788       # to version 4, is to share data among multiple programs linked
15789       # with the same dynamic library.  Since this doesn't match the
15790       # behavior of shared libraries on other platforms, we can't use
15791       # them.
15792       ld_shlibs_GCJ=no
15793       ;;
15794
15795     beos*)
15796       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15797         allow_undefined_flag_GCJ=unsupported
15798         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15799         # support --undefined.  This deserves some investigation.  FIXME
15800         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801       else
15802         ld_shlibs_GCJ=no
15803       fi
15804       ;;
15805
15806     cygwin* | mingw* | pw32*)
15807       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15808       # as there is no search path for DLLs.
15809       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15810       allow_undefined_flag_GCJ=unsupported
15811       always_export_symbols_GCJ=no
15812       enable_shared_with_static_runtimes_GCJ=yes
15813       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15814
15815       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15816         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15817         # If the export-symbols file already is a .def file (1st line
15818         # is EXPORTS), use it as is; otherwise, prepend...
15819         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15820           cp $export_symbols $output_objdir/$soname.def;
15821         else
15822           echo EXPORTS > $output_objdir/$soname.def;
15823           cat $export_symbols >> $output_objdir/$soname.def;
15824         fi~
15825         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15826       else
15827         ld_shlibs=no
15828       fi
15829       ;;
15830
15831     netbsd*)
15832       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15833         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15834         wlarc=
15835       else
15836         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15837         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15838       fi
15839       ;;
15840
15841     solaris* | sysv5*)
15842       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15843         ld_shlibs_GCJ=no
15844         cat <<EOF 1>&2
15845
15846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15847 *** create shared libraries on Solaris systems.  Therefore, libtool
15848 *** is disabling shared libraries support.  We urge you to upgrade GNU
15849 *** binutils to release 2.9.1 or newer.  Another option is to modify
15850 *** your PATH or compiler configuration so that the native linker is
15851 *** used, and then restart.
15852
15853 EOF
15854       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15855         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15857       else
15858         ld_shlibs_GCJ=no
15859       fi
15860       ;;
15861
15862     sunos4*)
15863       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15864       wlarc=
15865       hardcode_direct_GCJ=yes
15866       hardcode_shlibpath_var_GCJ=no
15867       ;;
15868
15869   linux*)
15870     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15871         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15872         archive_cmds_GCJ="$tmp_archive_cmds"
15873       supports_anon_versioning=no
15874       case `$LD -v 2>/dev/null` in
15875         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15876         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15877         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15878         *\ 2.11.*) ;; # other 2.11 versions
15879         *) supports_anon_versioning=yes ;;
15880       esac
15881       if test $supports_anon_versioning = yes; then
15882         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15883 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15884 $echo "local: *; };" >> $output_objdir/$libname.ver~
15885         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15886       else
15887         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15888       fi
15889     else
15890       ld_shlibs_GCJ=no
15891     fi
15892     ;;
15893
15894     *)
15895       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15896         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15897         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15898       else
15899         ld_shlibs_GCJ=no
15900       fi
15901       ;;
15902     esac
15903
15904     if test "$ld_shlibs_GCJ" = yes; then
15905       runpath_var=LD_RUN_PATH
15906       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15907       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15908       # ancient GNU ld didn't support --whole-archive et. al.
15909       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15910         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15911       else
15912         whole_archive_flag_spec_GCJ=
15913       fi
15914     fi
15915   else
15916     # PORTME fill in a description of your system's linker (not GNU ld)
15917     case $host_os in
15918     aix3*)
15919       allow_undefined_flag_GCJ=unsupported
15920       always_export_symbols_GCJ=yes
15921       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'
15922       # Note: this linker hardcodes the directories in LIBPATH if there
15923       # are no directories specified by -L.
15924       hardcode_minus_L_GCJ=yes
15925       if test "$GCC" = yes && test -z "$link_static_flag"; then
15926         # Neither direct hardcoding nor static linking is supported with a
15927         # broken collect2.
15928         hardcode_direct_GCJ=unsupported
15929       fi
15930       ;;
15931
15932     aix4* | aix5*)
15933       if test "$host_cpu" = ia64; then
15934         # On IA64, the linker does run time linking by default, so we don't
15935         # have to do anything special.
15936         aix_use_runtimelinking=no
15937         exp_sym_flag='-Bexport'
15938         no_entry_flag=""
15939       else
15940         # If we're using GNU nm, then we don't want the "-C" option.
15941         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15942         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15943           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'
15944         else
15945           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'
15946         fi
15947         aix_use_runtimelinking=no
15948
15949         # Test if we are trying to use run time linking or normal
15950         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15951         # need to do runtime linking.
15952         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15953           for ld_flag in $LDFLAGS; do
15954           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15955             aix_use_runtimelinking=yes
15956             break
15957           fi
15958           done
15959         esac
15960
15961         exp_sym_flag='-bexport'
15962         no_entry_flag='-bnoentry'
15963       fi
15964
15965       # When large executables or shared objects are built, AIX ld can
15966       # have problems creating the table of contents.  If linking a library
15967       # or program results in "error TOC overflow" add -mminimal-toc to
15968       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15969       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15970
15971       archive_cmds_GCJ=''
15972       hardcode_direct_GCJ=yes
15973       hardcode_libdir_separator_GCJ=':'
15974       link_all_deplibs_GCJ=yes
15975
15976       if test "$GCC" = yes; then
15977         case $host_os in aix4.012|aix4.012.*)
15978         # We only want to do this on AIX 4.2 and lower, the check
15979         # below for broken collect2 doesn't work under 4.3+
15980           collect2name=`${CC} -print-prog-name=collect2`
15981           if test -f "$collect2name" && \
15982            strings "$collect2name" | grep resolve_lib_name >/dev/null
15983           then
15984           # We have reworked collect2
15985           hardcode_direct_GCJ=yes
15986           else
15987           # We have old collect2
15988           hardcode_direct_GCJ=unsupported
15989           # It fails to find uninstalled libraries when the uninstalled
15990           # path is not listed in the libpath.  Setting hardcode_minus_L
15991           # to unsupported forces relinking
15992           hardcode_minus_L_GCJ=yes
15993           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15994           hardcode_libdir_separator_GCJ=
15995           fi
15996         esac
15997         shared_flag='-shared'
15998       else
15999         # not using gcc
16000         if test "$host_cpu" = ia64; then
16001         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16002         # chokes on -Wl,-G. The following line is correct:
16003           shared_flag='-G'
16004         else
16005         if test "$aix_use_runtimelinking" = yes; then
16006             shared_flag='${wl}-G'
16007           else
16008             shared_flag='${wl}-bM:SRE'
16009         fi
16010         fi
16011       fi
16012
16013       # It seems that -bexpall does not export symbols beginning with
16014       # underscore (_), so it is better to generate a list of symbols to export.
16015       always_export_symbols_GCJ=yes
16016       if test "$aix_use_runtimelinking" = yes; then
16017         # Warning - without using the other runtime loading flags (-brtl),
16018         # -berok will link without error, but may produce a broken library.
16019         allow_undefined_flag_GCJ='-berok'
16020        # Determine the default libpath from the value encoded in an empty executable.
16021        cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h.  */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h.  */
16027
16028 int
16029 main ()
16030 {
16031
16032   ;
16033   return 0;
16034 }
16035 _ACEOF
16036 rm -f conftest.$ac_objext conftest$ac_exeext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038   (eval $ac_link) 2>conftest.er1
16039   ac_status=$?
16040   grep -v '^ *+' conftest.er1 >conftest.err
16041   rm -f conftest.er1
16042   cat conftest.err >&5
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); } &&
16045          { ac_try='test -z "$ac_c_werror_flag"
16046                          || test ! -s conftest.err'
16047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048   (eval $ac_try) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; } &&
16052          { ac_try='test -s conftest$ac_exeext'
16053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054   (eval $ac_try) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; }; then
16058
16059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16060 }'`
16061 # Check for a 64-bit object if we didn't find anything.
16062 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; }
16063 }'`; fi
16064 else
16065   echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068 fi
16069 rm -f conftest.err conftest.$ac_objext \
16070       conftest$ac_exeext conftest.$ac_ext
16071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16072
16073        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16074         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"
16075        else
16076         if test "$host_cpu" = ia64; then
16077           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16078           allow_undefined_flag_GCJ="-z nodefs"
16079           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"
16080         else
16081          # Determine the default libpath from the value encoded in an empty executable.
16082          cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h.  */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h.  */
16088
16089 int
16090 main ()
16091 {
16092
16093   ;
16094   return 0;
16095 }
16096 _ACEOF
16097 rm -f conftest.$ac_objext conftest$ac_exeext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16099   (eval $ac_link) 2>conftest.er1
16100   ac_status=$?
16101   grep -v '^ *+' conftest.er1 >conftest.err
16102   rm -f conftest.er1
16103   cat conftest.err >&5
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); } &&
16106          { ac_try='test -z "$ac_c_werror_flag"
16107                          || test ! -s conftest.err'
16108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109   (eval $ac_try) 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); }; } &&
16113          { ac_try='test -s conftest$ac_exeext'
16114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115   (eval $ac_try) 2>&5
16116   ac_status=$?
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); }; }; then
16119
16120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16121 }'`
16122 # Check for a 64-bit object if we didn't find anything.
16123 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; }
16124 }'`; fi
16125 else
16126   echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16128
16129 fi
16130 rm -f conftest.err conftest.$ac_objext \
16131       conftest$ac_exeext conftest.$ac_ext
16132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16133
16134          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16135           # Warning - without using the other run time loading flags,
16136           # -berok will link without error, but may produce a broken library.
16137           no_undefined_flag_GCJ=' ${wl}-bernotok'
16138           allow_undefined_flag_GCJ=' ${wl}-berok'
16139           # -bexpall does not export symbols beginning with underscore (_)
16140           always_export_symbols_GCJ=yes
16141           # Exported symbols can be pulled into shared objects from archives
16142           whole_archive_flag_spec_GCJ=' '
16143           archive_cmds_need_lc_GCJ=yes
16144           # This is similar to how AIX traditionally builds it's shared libraries.
16145           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'
16146         fi
16147       fi
16148       ;;
16149
16150     amigaos*)
16151       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)'
16152       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16153       hardcode_minus_L_GCJ=yes
16154       # see comment about different semantics on the GNU ld section
16155       ld_shlibs_GCJ=no
16156       ;;
16157
16158     bsdi[45]*)
16159       export_dynamic_flag_spec_GCJ=-rdynamic
16160       ;;
16161
16162     cygwin* | mingw* | pw32*)
16163       # When not using gcc, we currently assume that we are using
16164       # Microsoft Visual C++.
16165       # hardcode_libdir_flag_spec is actually meaningless, as there is
16166       # no search path for DLLs.
16167       hardcode_libdir_flag_spec_GCJ=' '
16168       allow_undefined_flag_GCJ=unsupported
16169       # Tell ltmain to make .lib files, not .a files.
16170       libext=lib
16171       # Tell ltmain to make .dll files, not .so files.
16172       shrext_cmds=".dll"
16173       # FIXME: Setting linknames here is a bad hack.
16174       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16175       # The linker will automatically build a .lib file if we build a DLL.
16176       old_archive_From_new_cmds_GCJ='true'
16177       # FIXME: Should let the user specify the lib program.
16178       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16179       fix_srcfile_path='`cygpath -w "$srcfile"`'
16180       enable_shared_with_static_runtimes_GCJ=yes
16181       ;;
16182
16183     darwin* | rhapsody*)
16184       case "$host_os" in
16185         rhapsody* | darwin1.[012])
16186          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16187          ;;
16188        *) # Darwin 1.3 on
16189          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16190            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16191          else
16192            case ${MACOSX_DEPLOYMENT_TARGET} in
16193              10.[012])
16194                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16195                ;;
16196              10.*)
16197                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16198                ;;
16199            esac
16200          fi
16201          ;;
16202       esac
16203       archive_cmds_need_lc_GCJ=no
16204       hardcode_direct_GCJ=no
16205       hardcode_automatic_GCJ=yes
16206       hardcode_shlibpath_var_GCJ=unsupported
16207       whole_archive_flag_spec_GCJ=''
16208       link_all_deplibs_GCJ=yes
16209     if test "$GCC" = yes ; then
16210         output_verbose_link_cmd='echo'
16211         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16212       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16213       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16214       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}'
16215       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}'
16216     else
16217       case "$cc_basename" in
16218         xlc*)
16219          output_verbose_link_cmd='echo'
16220          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16221          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16222           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16223          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}'
16224           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}'
16225           ;;
16226        *)
16227          ld_shlibs_GCJ=no
16228           ;;
16229       esac
16230     fi
16231       ;;
16232
16233     dgux*)
16234       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16235       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16236       hardcode_shlibpath_var_GCJ=no
16237       ;;
16238
16239     freebsd1*)
16240       ld_shlibs_GCJ=no
16241       ;;
16242
16243     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16244     # support.  Future versions do this automatically, but an explicit c++rt0.o
16245     # does not break anything, and helps significantly (at the cost of a little
16246     # extra space).
16247     freebsd2.2*)
16248       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16249       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16250       hardcode_direct_GCJ=yes
16251       hardcode_shlibpath_var_GCJ=no
16252       ;;
16253
16254     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16255     freebsd2*)
16256       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16257       hardcode_direct_GCJ=yes
16258       hardcode_minus_L_GCJ=yes
16259       hardcode_shlibpath_var_GCJ=no
16260       ;;
16261
16262     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16263     freebsd* | kfreebsd*-gnu)
16264       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16265       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16266       hardcode_direct_GCJ=yes
16267       hardcode_shlibpath_var_GCJ=no
16268       ;;
16269
16270     hpux9*)
16271       if test "$GCC" = yes; then
16272         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'
16273       else
16274         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'
16275       fi
16276       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16277       hardcode_libdir_separator_GCJ=:
16278       hardcode_direct_GCJ=yes
16279
16280       # hardcode_minus_L: Not really in the search PATH,
16281       # but as the default location of the library.
16282       hardcode_minus_L_GCJ=yes
16283       export_dynamic_flag_spec_GCJ='${wl}-E'
16284       ;;
16285
16286     hpux10* | hpux11*)
16287       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16288         case "$host_cpu" in
16289         hppa*64*|ia64*)
16290           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16291           ;;
16292         *)
16293           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16294           ;;
16295         esac
16296       else
16297         case "$host_cpu" in
16298         hppa*64*|ia64*)
16299           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16300           ;;
16301         *)
16302           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16303           ;;
16304         esac
16305       fi
16306       if test "$with_gnu_ld" = no; then
16307         case "$host_cpu" in
16308         hppa*64*)
16309           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16310           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16311           hardcode_libdir_separator_GCJ=:
16312           hardcode_direct_GCJ=no
16313           hardcode_shlibpath_var_GCJ=no
16314           ;;
16315         ia64*)
16316           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16317           hardcode_direct_GCJ=no
16318           hardcode_shlibpath_var_GCJ=no
16319
16320           # hardcode_minus_L: Not really in the search PATH,
16321           # but as the default location of the library.
16322           hardcode_minus_L_GCJ=yes
16323           ;;
16324         *)
16325           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16326           hardcode_libdir_separator_GCJ=:
16327           hardcode_direct_GCJ=yes
16328           export_dynamic_flag_spec_GCJ='${wl}-E'
16329
16330           # hardcode_minus_L: Not really in the search PATH,
16331           # but as the default location of the library.
16332           hardcode_minus_L_GCJ=yes
16333           ;;
16334         esac
16335       fi
16336       ;;
16337
16338     irix5* | irix6* | nonstopux*)
16339       if test "$GCC" = yes; then
16340         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'
16341       else
16342         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'
16343         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16344       fi
16345       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16346       hardcode_libdir_separator_GCJ=:
16347       link_all_deplibs_GCJ=yes
16348       ;;
16349
16350     netbsd*)
16351       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16352         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16353       else
16354         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16355       fi
16356       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16357       hardcode_direct_GCJ=yes
16358       hardcode_shlibpath_var_GCJ=no
16359       ;;
16360
16361     newsos6)
16362       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16363       hardcode_direct_GCJ=yes
16364       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16365       hardcode_libdir_separator_GCJ=:
16366       hardcode_shlibpath_var_GCJ=no
16367       ;;
16368
16369     openbsd*)
16370       hardcode_direct_GCJ=yes
16371       hardcode_shlibpath_var_GCJ=no
16372       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16373         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16374         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16375         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16376         export_dynamic_flag_spec_GCJ='${wl}-E'
16377       else
16378        case $host_os in
16379          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16380            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16381            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16382            ;;
16383          *)
16384            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16385            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16386            ;;
16387        esac
16388       fi
16389       ;;
16390
16391     os2*)
16392       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16393       hardcode_minus_L_GCJ=yes
16394       allow_undefined_flag_GCJ=unsupported
16395       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'
16396       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16397       ;;
16398
16399     osf3*)
16400       if test "$GCC" = yes; then
16401         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16402         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'
16403       else
16404         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16405         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'
16406       fi
16407       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16408       hardcode_libdir_separator_GCJ=:
16409       ;;
16410
16411     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16412       if test "$GCC" = yes; then
16413         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16414         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'
16415         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16416       else
16417         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16418         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'
16419         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~
16420         $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'
16421
16422         # Both c and cxx compiler support -rpath directly
16423         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16424       fi
16425       hardcode_libdir_separator_GCJ=:
16426       ;;
16427
16428     sco3.2v5*)
16429       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16430       hardcode_shlibpath_var_GCJ=no
16431       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16432       runpath_var=LD_RUN_PATH
16433       hardcode_runpath_var=yes
16434       ;;
16435
16436     solaris*)
16437       no_undefined_flag_GCJ=' -z text'
16438       if test "$GCC" = yes; then
16439         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16440         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16441           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16442       else
16443         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16444         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16445         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16446       fi
16447       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16448       hardcode_shlibpath_var_GCJ=no
16449       case $host_os in
16450       solaris2.[0-5] | solaris2.[0-5].*) ;;
16451       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16452         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16453       esac
16454       link_all_deplibs_GCJ=yes
16455       ;;
16456
16457     sunos4*)
16458       if test "x$host_vendor" = xsequent; then
16459         # Use $CC to link under sequent, because it throws in some extra .o
16460         # files that make .init and .fini sections work.
16461         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16462       else
16463         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16464       fi
16465       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16466       hardcode_direct_GCJ=yes
16467       hardcode_minus_L_GCJ=yes
16468       hardcode_shlibpath_var_GCJ=no
16469       ;;
16470
16471     sysv4)
16472       case $host_vendor in
16473         sni)
16474           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16475           hardcode_direct_GCJ=yes # is this really true???
16476         ;;
16477         siemens)
16478           ## LD is ld it makes a PLAMLIB
16479           ## CC just makes a GrossModule.
16480           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16481           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16482           hardcode_direct_GCJ=no
16483         ;;
16484         motorola)
16485           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16487         ;;
16488       esac
16489       runpath_var='LD_RUN_PATH'
16490       hardcode_shlibpath_var_GCJ=no
16491       ;;
16492
16493     sysv4.3*)
16494       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495       hardcode_shlibpath_var_GCJ=no
16496       export_dynamic_flag_spec_GCJ='-Bexport'
16497       ;;
16498
16499     sysv4*MP*)
16500       if test -d /usr/nec; then
16501         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16502         hardcode_shlibpath_var_GCJ=no
16503         runpath_var=LD_RUN_PATH
16504         hardcode_runpath_var=yes
16505         ld_shlibs_GCJ=yes
16506       fi
16507       ;;
16508
16509     sysv4.2uw2*)
16510       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16511       hardcode_direct_GCJ=yes
16512       hardcode_minus_L_GCJ=no
16513       hardcode_shlibpath_var_GCJ=no
16514       hardcode_runpath_var=yes
16515       runpath_var=LD_RUN_PATH
16516       ;;
16517
16518    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16519       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16520       if test "$GCC" = yes; then
16521         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16522       else
16523         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16524       fi
16525       runpath_var='LD_RUN_PATH'
16526       hardcode_shlibpath_var_GCJ=no
16527       ;;
16528
16529     sysv5*)
16530       no_undefined_flag_GCJ=' -z text'
16531       # $CC -shared without GNU ld will not create a library from C++
16532       # object files and a static libstdc++, better avoid it by now
16533       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16535                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16536       hardcode_libdir_flag_spec_GCJ=
16537       hardcode_shlibpath_var_GCJ=no
16538       runpath_var='LD_RUN_PATH'
16539       ;;
16540
16541     uts4*)
16542       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16544       hardcode_shlibpath_var_GCJ=no
16545       ;;
16546
16547     *)
16548       ld_shlibs_GCJ=no
16549       ;;
16550     esac
16551   fi
16552
16553 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16554 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16555 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16556
16557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16558 if test "$GCC" = yes; then
16559   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16560 fi
16561
16562 #
16563 # Do we need to explicitly link libc?
16564 #
16565 case "x$archive_cmds_need_lc_GCJ" in
16566 x|xyes)
16567   # Assume -lc should be added
16568   archive_cmds_need_lc_GCJ=yes
16569
16570   if test "$enable_shared" = yes && test "$GCC" = yes; then
16571     case $archive_cmds_GCJ in
16572     *'~'*)
16573       # FIXME: we may have to deal with multi-command sequences.
16574       ;;
16575     '$CC '*)
16576       # Test whether the compiler implicitly links with -lc since on some
16577       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16578       # to ld, don't add -lc before -lgcc.
16579       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16580 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16581       $rm conftest*
16582       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16583
16584       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16585   (eval $ac_compile) 2>&5
16586   ac_status=$?
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); } 2>conftest.err; then
16589         soname=conftest
16590         lib=conftest
16591         libobjs=conftest.$ac_objext
16592         deplibs=
16593         wl=$lt_prog_compiler_wl_GCJ
16594         compiler_flags=-v
16595         linker_flags=-v
16596         verstring=
16597         output_objdir=.
16598         libname=conftest
16599         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16600         allow_undefined_flag_GCJ=
16601         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16602   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); }
16606         then
16607           archive_cmds_need_lc_GCJ=no
16608         else
16609           archive_cmds_need_lc_GCJ=yes
16610         fi
16611         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16612       else
16613         cat conftest.err 1>&5
16614       fi
16615       $rm conftest*
16616       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16617 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16618       ;;
16619     esac
16620   fi
16621   ;;
16622 esac
16623
16624 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16625 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16626 library_names_spec=
16627 libname_spec='lib$name'
16628 soname_spec=
16629 shrext_cmds=".so"
16630 postinstall_cmds=
16631 postuninstall_cmds=
16632 finish_cmds=
16633 finish_eval=
16634 shlibpath_var=
16635 shlibpath_overrides_runpath=unknown
16636 version_type=none
16637 dynamic_linker="$host_os ld.so"
16638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16639 if test "$GCC" = yes; then
16640   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16641   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16642     # if the path contains ";" then we assume it to be the separator
16643     # otherwise default to the standard path separator (i.e. ":") - it is
16644     # assumed that no part of a normal pathname contains ";" but that should
16645     # okay in the real world where ";" in dirpaths is itself problematic.
16646     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16647   else
16648     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16649   fi
16650 else
16651   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16652 fi
16653 need_lib_prefix=unknown
16654 hardcode_into_libs=no
16655
16656 # when you set need_version to no, make sure it does not cause -set_version
16657 # flags to be left without arguments
16658 need_version=unknown
16659
16660 case $host_os in
16661 aix3*)
16662   version_type=linux
16663   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16664   shlibpath_var=LIBPATH
16665
16666   # AIX 3 has no versioning support, so we append a major version to the name.
16667   soname_spec='${libname}${release}${shared_ext}$major'
16668   ;;
16669
16670 aix4* | aix5*)
16671   version_type=linux
16672   need_lib_prefix=no
16673   need_version=no
16674   hardcode_into_libs=yes
16675   if test "$host_cpu" = ia64; then
16676     # AIX 5 supports IA64
16677     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16678     shlibpath_var=LD_LIBRARY_PATH
16679   else
16680     # With GCC up to 2.95.x, collect2 would create an import file
16681     # for dependence libraries.  The import file would start with
16682     # the line `#! .'.  This would cause the generated library to
16683     # depend on `.', always an invalid library.  This was fixed in
16684     # development snapshots of GCC prior to 3.0.
16685     case $host_os in
16686       aix4 | aix4.[01] | aix4.[01].*)
16687       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16688            echo ' yes '
16689            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16690         :
16691       else
16692         can_build_shared=no
16693       fi
16694       ;;
16695     esac
16696     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16697     # soname into executable. Probably we can add versioning support to
16698     # collect2, so additional links can be useful in future.
16699     if test "$aix_use_runtimelinking" = yes; then
16700       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16701       # instead of lib<name>.a to let people know that these are not
16702       # typical AIX shared libraries.
16703       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704     else
16705       # We preserve .a as extension for shared libraries through AIX4.2
16706       # and later when we are not doing run time linking.
16707       library_names_spec='${libname}${release}.a $libname.a'
16708       soname_spec='${libname}${release}${shared_ext}$major'
16709     fi
16710     shlibpath_var=LIBPATH
16711   fi
16712   ;;
16713
16714 amigaos*)
16715   library_names_spec='$libname.ixlibrary $libname.a'
16716   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16717   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'
16718   ;;
16719
16720 beos*)
16721   library_names_spec='${libname}${shared_ext}'
16722   dynamic_linker="$host_os ld.so"
16723   shlibpath_var=LIBRARY_PATH
16724   ;;
16725
16726 bsdi[45]*)
16727   version_type=linux
16728   need_version=no
16729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730   soname_spec='${libname}${release}${shared_ext}$major'
16731   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16732   shlibpath_var=LD_LIBRARY_PATH
16733   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16734   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16735   # the default ld.so.conf also contains /usr/contrib/lib and
16736   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16737   # libtool to hard-code these into programs
16738   ;;
16739
16740 cygwin* | mingw* | pw32*)
16741   version_type=windows
16742   shrext_cmds=".dll"
16743   need_version=no
16744   need_lib_prefix=no
16745
16746   case $GCC,$host_os in
16747   yes,cygwin* | yes,mingw* | yes,pw32*)
16748     library_names_spec='$libname.dll.a'
16749     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16750     postinstall_cmds='base_file=`basename \${file}`~
16751       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16752       dldir=$destdir/`dirname \$dlpath`~
16753       test -d \$dldir || mkdir -p \$dldir~
16754       $install_prog $dir/$dlname \$dldir/$dlname'
16755     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16756       dlpath=$dir/\$dldll~
16757        $rm \$dlpath'
16758     shlibpath_overrides_runpath=yes
16759
16760     case $host_os in
16761     cygwin*)
16762       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16763       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16764       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16765       ;;
16766     mingw*)
16767       # MinGW DLLs use traditional 'lib' prefix
16768       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16769       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16770       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16771         # It is most probably a Windows format PATH printed by
16772         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16773         # path with ; separators, and with drive letters. We can handle the
16774         # drive letters (cygwin fileutils understands them), so leave them,
16775         # especially as we might pass files found there to a mingw objdump,
16776         # which wouldn't understand a cygwinified path. Ahh.
16777         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16778       else
16779         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16780       fi
16781       ;;
16782     pw32*)
16783       # pw32 DLLs use 'pw' prefix rather than 'lib'
16784       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16785       ;;
16786     esac
16787     ;;
16788
16789   *)
16790     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16791     ;;
16792   esac
16793   dynamic_linker='Win32 ld.exe'
16794   # FIXME: first we should search . and the directory the executable is in
16795   shlibpath_var=PATH
16796   ;;
16797
16798 darwin* | rhapsody*)
16799   dynamic_linker="$host_os dyld"
16800   version_type=darwin
16801   need_lib_prefix=no
16802   need_version=no
16803   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16804   soname_spec='${libname}${release}${major}$shared_ext'
16805   shlibpath_overrides_runpath=yes
16806   shlibpath_var=DYLD_LIBRARY_PATH
16807   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16808   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16809   if test "$GCC" = yes; then
16810     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"`
16811   else
16812     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16813   fi
16814   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16815   ;;
16816
16817 dgux*)
16818   version_type=linux
16819   need_lib_prefix=no
16820   need_version=no
16821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16822   soname_spec='${libname}${release}${shared_ext}$major'
16823   shlibpath_var=LD_LIBRARY_PATH
16824   ;;
16825
16826 freebsd1*)
16827   dynamic_linker=no
16828   ;;
16829
16830 kfreebsd*-gnu)
16831   version_type=linux
16832   need_lib_prefix=no
16833   need_version=no
16834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16835   soname_spec='${libname}${release}${shared_ext}$major'
16836   shlibpath_var=LD_LIBRARY_PATH
16837   shlibpath_overrides_runpath=no
16838   hardcode_into_libs=yes
16839   dynamic_linker='GNU ld.so'
16840   ;;
16841
16842 freebsd*)
16843   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16844   version_type=freebsd-$objformat
16845   case $version_type in
16846     freebsd-elf*)
16847       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16848       need_version=no
16849       need_lib_prefix=no
16850       ;;
16851     freebsd-*)
16852       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16853       need_version=yes
16854       ;;
16855   esac
16856   shlibpath_var=LD_LIBRARY_PATH
16857   case $host_os in
16858   freebsd2*)
16859     shlibpath_overrides_runpath=yes
16860     ;;
16861   freebsd3.01* | freebsdelf3.01*)
16862     shlibpath_overrides_runpath=yes
16863     hardcode_into_libs=yes
16864     ;;
16865   *) # from 3.2 on
16866     shlibpath_overrides_runpath=no
16867     hardcode_into_libs=yes
16868     ;;
16869   esac
16870   ;;
16871
16872 gnu*)
16873   version_type=linux
16874   need_lib_prefix=no
16875   need_version=no
16876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16877   soname_spec='${libname}${release}${shared_ext}$major'
16878   shlibpath_var=LD_LIBRARY_PATH
16879   hardcode_into_libs=yes
16880   ;;
16881
16882 hpux9* | hpux10* | hpux11*)
16883   # Give a soname corresponding to the major version so that dld.sl refuses to
16884   # link against other versions.
16885   version_type=sunos
16886   need_lib_prefix=no
16887   need_version=no
16888   case "$host_cpu" in
16889   ia64*)
16890     shrext_cmds='.so'
16891     hardcode_into_libs=yes
16892     dynamic_linker="$host_os dld.so"
16893     shlibpath_var=LD_LIBRARY_PATH
16894     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896     soname_spec='${libname}${release}${shared_ext}$major'
16897     if test "X$HPUX_IA64_MODE" = X32; then
16898       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16899     else
16900       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16901     fi
16902     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16903     ;;
16904    hppa*64*)
16905      shrext_cmds='.sl'
16906      hardcode_into_libs=yes
16907      dynamic_linker="$host_os dld.sl"
16908      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16909      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16910      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16911      soname_spec='${libname}${release}${shared_ext}$major'
16912      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16913      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16914      ;;
16915    *)
16916     shrext_cmds='.sl'
16917     dynamic_linker="$host_os dld.sl"
16918     shlibpath_var=SHLIB_PATH
16919     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921     soname_spec='${libname}${release}${shared_ext}$major'
16922     ;;
16923   esac
16924   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16925   postinstall_cmds='chmod 555 $lib'
16926   ;;
16927
16928 irix5* | irix6* | nonstopux*)
16929   case $host_os in
16930     nonstopux*) version_type=nonstopux ;;
16931     *)
16932         if test "$lt_cv_prog_gnu_ld" = yes; then
16933                 version_type=linux
16934         else
16935                 version_type=irix
16936         fi ;;
16937   esac
16938   need_lib_prefix=no
16939   need_version=no
16940   soname_spec='${libname}${release}${shared_ext}$major'
16941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16942   case $host_os in
16943   irix5* | nonstopux*)
16944     libsuff= shlibsuff=
16945     ;;
16946   *)
16947     case $LD in # libtool.m4 will add one of these switches to LD
16948     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16949       libsuff= shlibsuff= libmagic=32-bit;;
16950     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16951       libsuff=32 shlibsuff=N32 libmagic=N32;;
16952     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16953       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16954     *) libsuff= shlibsuff= libmagic=never-match;;
16955     esac
16956     ;;
16957   esac
16958   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16959   shlibpath_overrides_runpath=no
16960   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16961   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16962   hardcode_into_libs=yes
16963   ;;
16964
16965 # No shared lib support for Linux oldld, aout, or coff.
16966 linux*oldld* | linux*aout* | linux*coff*)
16967   dynamic_linker=no
16968   ;;
16969
16970 # This must be Linux ELF.
16971 linux*)
16972   version_type=linux
16973   need_lib_prefix=no
16974   need_version=no
16975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976   soname_spec='${libname}${release}${shared_ext}$major'
16977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16978   shlibpath_var=LD_LIBRARY_PATH
16979   shlibpath_overrides_runpath=no
16980   # This implies no fast_install, which is unacceptable.
16981   # Some rework will be needed to allow for fast_install
16982   # before this can be enabled.
16983   hardcode_into_libs=yes
16984
16985   # Append ld.so.conf contents to the search path
16986   if test -f /etc/ld.so.conf; then
16987     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16988     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16989   fi
16990
16991   # We used to test for /lib/ld.so.1 and disable shared libraries on
16992   # powerpc, because MkLinux only supported shared libraries with the
16993   # GNU dynamic linker.  Since this was broken with cross compilers,
16994   # most powerpc-linux boxes support dynamic linking these days and
16995   # people can always --disable-shared, the test was removed, and we
16996   # assume the GNU/Linux dynamic linker is in use.
16997   dynamic_linker='GNU/Linux ld.so'
16998   ;;
16999
17000 knetbsd*-gnu)
17001   version_type=linux
17002   need_lib_prefix=no
17003   need_version=no
17004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17005   soname_spec='${libname}${release}${shared_ext}$major'
17006   shlibpath_var=LD_LIBRARY_PATH
17007   shlibpath_overrides_runpath=no
17008   hardcode_into_libs=yes
17009   dynamic_linker='GNU ld.so'
17010   ;;
17011
17012 netbsd*)
17013   version_type=sunos
17014   need_lib_prefix=no
17015   need_version=no
17016   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17018     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17019     dynamic_linker='NetBSD (a.out) ld.so'
17020   else
17021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17022     soname_spec='${libname}${release}${shared_ext}$major'
17023     dynamic_linker='NetBSD ld.elf_so'
17024   fi
17025   shlibpath_var=LD_LIBRARY_PATH
17026   shlibpath_overrides_runpath=yes
17027   hardcode_into_libs=yes
17028   ;;
17029
17030 newsos6)
17031   version_type=linux
17032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033   shlibpath_var=LD_LIBRARY_PATH
17034   shlibpath_overrides_runpath=yes
17035   ;;
17036
17037 nto-qnx*)
17038   version_type=linux
17039   need_lib_prefix=no
17040   need_version=no
17041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042   soname_spec='${libname}${release}${shared_ext}$major'
17043   shlibpath_var=LD_LIBRARY_PATH
17044   shlibpath_overrides_runpath=yes
17045   ;;
17046
17047 openbsd*)
17048   version_type=sunos
17049   need_lib_prefix=no
17050   need_version=no
17051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17052   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17053   shlibpath_var=LD_LIBRARY_PATH
17054   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17055     case $host_os in
17056       openbsd2.[89] | openbsd2.[89].*)
17057         shlibpath_overrides_runpath=no
17058         ;;
17059       *)
17060         shlibpath_overrides_runpath=yes
17061         ;;
17062       esac
17063   else
17064     shlibpath_overrides_runpath=yes
17065   fi
17066   ;;
17067
17068 os2*)
17069   libname_spec='$name'
17070   shrext_cmds=".dll"
17071   need_lib_prefix=no
17072   library_names_spec='$libname${shared_ext} $libname.a'
17073   dynamic_linker='OS/2 ld.exe'
17074   shlibpath_var=LIBPATH
17075   ;;
17076
17077 osf3* | osf4* | osf5*)
17078   version_type=osf
17079   need_lib_prefix=no
17080   need_version=no
17081   soname_spec='${libname}${release}${shared_ext}$major'
17082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17083   shlibpath_var=LD_LIBRARY_PATH
17084   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17085   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17086   ;;
17087
17088 sco3.2v5*)
17089   version_type=osf
17090   soname_spec='${libname}${release}${shared_ext}$major'
17091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092   shlibpath_var=LD_LIBRARY_PATH
17093   ;;
17094
17095 solaris*)
17096   version_type=linux
17097   need_lib_prefix=no
17098   need_version=no
17099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100   soname_spec='${libname}${release}${shared_ext}$major'
17101   shlibpath_var=LD_LIBRARY_PATH
17102   shlibpath_overrides_runpath=yes
17103   hardcode_into_libs=yes
17104   # ldd complains unless libraries are executable
17105   postinstall_cmds='chmod +x $lib'
17106   ;;
17107
17108 sunos4*)
17109   version_type=sunos
17110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17111   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17112   shlibpath_var=LD_LIBRARY_PATH
17113   shlibpath_overrides_runpath=yes
17114   if test "$with_gnu_ld" = yes; then
17115     need_lib_prefix=no
17116   fi
17117   need_version=yes
17118   ;;
17119
17120 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17121   version_type=linux
17122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123   soname_spec='${libname}${release}${shared_ext}$major'
17124   shlibpath_var=LD_LIBRARY_PATH
17125   case $host_vendor in
17126     sni)
17127       shlibpath_overrides_runpath=no
17128       need_lib_prefix=no
17129       export_dynamic_flag_spec='${wl}-Blargedynsym'
17130       runpath_var=LD_RUN_PATH
17131       ;;
17132     siemens)
17133       need_lib_prefix=no
17134       ;;
17135     motorola)
17136       need_lib_prefix=no
17137       need_version=no
17138       shlibpath_overrides_runpath=no
17139       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17140       ;;
17141   esac
17142   ;;
17143
17144 sysv4*MP*)
17145   if test -d /usr/nec ;then
17146     version_type=linux
17147     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17148     soname_spec='$libname${shared_ext}.$major'
17149     shlibpath_var=LD_LIBRARY_PATH
17150   fi
17151   ;;
17152
17153 uts4*)
17154   version_type=linux
17155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156   soname_spec='${libname}${release}${shared_ext}$major'
17157   shlibpath_var=LD_LIBRARY_PATH
17158   ;;
17159
17160 *)
17161   dynamic_linker=no
17162   ;;
17163 esac
17164 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17165 echo "${ECHO_T}$dynamic_linker" >&6
17166 test "$dynamic_linker" = no && can_build_shared=no
17167
17168 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17169 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17170 hardcode_action_GCJ=
17171 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17172    test -n "$runpath_var_GCJ" || \
17173    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17174
17175   # We can hardcode non-existant directories.
17176   if test "$hardcode_direct_GCJ" != no &&
17177      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17178      # have to relink, otherwise we might link with an installed library
17179      # when we should be linking with a yet-to-be-installed one
17180      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17181      test "$hardcode_minus_L_GCJ" != no; then
17182     # Linking always hardcodes the temporary library directory.
17183     hardcode_action_GCJ=relink
17184   else
17185     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17186     hardcode_action_GCJ=immediate
17187   fi
17188 else
17189   # We cannot hardcode anything, or else we can only hardcode existing
17190   # directories.
17191   hardcode_action_GCJ=unsupported
17192 fi
17193 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17194 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17195
17196 if test "$hardcode_action_GCJ" = relink; then
17197   # Fast installation is not supported
17198   enable_fast_install=no
17199 elif test "$shlibpath_overrides_runpath" = yes ||
17200      test "$enable_shared" = no; then
17201   # Fast installation is not necessary
17202   enable_fast_install=needless
17203 fi
17204
17205 striplib=
17206 old_striplib=
17207 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17208 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17209 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17210   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17211   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17212   echo "$as_me:$LINENO: result: yes" >&5
17213 echo "${ECHO_T}yes" >&6
17214 else
17215 # FIXME - insert some real tests, host_os isn't really good enough
17216   case $host_os in
17217    darwin*)
17218        if test -n "$STRIP" ; then
17219          striplib="$STRIP -x"
17220          echo "$as_me:$LINENO: result: yes" >&5
17221 echo "${ECHO_T}yes" >&6
17222        else
17223   echo "$as_me:$LINENO: result: no" >&5
17224 echo "${ECHO_T}no" >&6
17225 fi
17226        ;;
17227    *)
17228   echo "$as_me:$LINENO: result: no" >&5
17229 echo "${ECHO_T}no" >&6
17230     ;;
17231   esac
17232 fi
17233
17234 if test "x$enable_dlopen" != xyes; then
17235   enable_dlopen=unknown
17236   enable_dlopen_self=unknown
17237   enable_dlopen_self_static=unknown
17238 else
17239   lt_cv_dlopen=no
17240   lt_cv_dlopen_libs=
17241
17242   case $host_os in
17243   beos*)
17244     lt_cv_dlopen="load_add_on"
17245     lt_cv_dlopen_libs=
17246     lt_cv_dlopen_self=yes
17247     ;;
17248
17249   mingw* | pw32*)
17250     lt_cv_dlopen="LoadLibrary"
17251     lt_cv_dlopen_libs=
17252    ;;
17253
17254   cygwin*)
17255     lt_cv_dlopen="dlopen"
17256     lt_cv_dlopen_libs=
17257    ;;
17258
17259   darwin*)
17260   # if libdl is installed we need to link against it
17261     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17262 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17264   echo $ECHO_N "(cached) $ECHO_C" >&6
17265 else
17266   ac_check_lib_save_LIBS=$LIBS
17267 LIBS="-ldl  $LIBS"
17268 cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274
17275 /* Override any gcc2 internal prototype to avoid an error.  */
17276 #ifdef __cplusplus
17277 extern "C"
17278 #endif
17279 /* We use char because int might match the return type of a gcc2
17280    builtin and then its argument prototype would still apply.  */
17281 char dlopen ();
17282 int
17283 main ()
17284 {
17285 dlopen ();
17286   ;
17287   return 0;
17288 }
17289 _ACEOF
17290 rm -f conftest.$ac_objext conftest$ac_exeext
17291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17292   (eval $ac_link) 2>conftest.er1
17293   ac_status=$?
17294   grep -v '^ *+' conftest.er1 >conftest.err
17295   rm -f conftest.er1
17296   cat conftest.err >&5
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); } &&
17299          { ac_try='test -z "$ac_c_werror_flag"
17300                          || test ! -s conftest.err'
17301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302   (eval $ac_try) 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); }; } &&
17306          { ac_try='test -s conftest$ac_exeext'
17307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308   (eval $ac_try) 2>&5
17309   ac_status=$?
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); }; }; then
17312   ac_cv_lib_dl_dlopen=yes
17313 else
17314   echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17316
17317 ac_cv_lib_dl_dlopen=no
17318 fi
17319 rm -f conftest.err conftest.$ac_objext \
17320       conftest$ac_exeext conftest.$ac_ext
17321 LIBS=$ac_check_lib_save_LIBS
17322 fi
17323 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17324 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17325 if test $ac_cv_lib_dl_dlopen = yes; then
17326   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17327 else
17328
17329     lt_cv_dlopen="dyld"
17330     lt_cv_dlopen_libs=
17331     lt_cv_dlopen_self=yes
17332
17333 fi
17334
17335    ;;
17336
17337   *)
17338     echo "$as_me:$LINENO: checking for shl_load" >&5
17339 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17340 if test "${ac_cv_func_shl_load+set}" = set; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343   cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h.  */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h.  */
17349 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17351 #define shl_load innocuous_shl_load
17352
17353 /* System header to define __stub macros and hopefully few prototypes,
17354     which can conflict with char shl_load (); below.
17355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17356     <limits.h> exists even on freestanding compilers.  */
17357
17358 #ifdef __STDC__
17359 # include <limits.h>
17360 #else
17361 # include <assert.h>
17362 #endif
17363
17364 #undef shl_load
17365
17366 /* Override any gcc2 internal prototype to avoid an error.  */
17367 #ifdef __cplusplus
17368 extern "C"
17369 {
17370 #endif
17371 /* We use char because int might match the return type of a gcc2
17372    builtin and then its argument prototype would still apply.  */
17373 char shl_load ();
17374 /* The GNU C library defines this for functions which it implements
17375     to always fail with ENOSYS.  Some functions are actually named
17376     something starting with __ and the normal name is an alias.  */
17377 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17378 choke me
17379 #else
17380 char (*f) () = shl_load;
17381 #endif
17382 #ifdef __cplusplus
17383 }
17384 #endif
17385
17386 int
17387 main ()
17388 {
17389 return f != shl_load;
17390   ;
17391   return 0;
17392 }
17393 _ACEOF
17394 rm -f conftest.$ac_objext conftest$ac_exeext
17395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17396   (eval $ac_link) 2>conftest.er1
17397   ac_status=$?
17398   grep -v '^ *+' conftest.er1 >conftest.err
17399   rm -f conftest.er1
17400   cat conftest.err >&5
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); } &&
17403          { ac_try='test -z "$ac_c_werror_flag"
17404                          || test ! -s conftest.err'
17405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406   (eval $ac_try) 2>&5
17407   ac_status=$?
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); }; } &&
17410          { ac_try='test -s conftest$ac_exeext'
17411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412   (eval $ac_try) 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; }; then
17416   ac_cv_func_shl_load=yes
17417 else
17418   echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421 ac_cv_func_shl_load=no
17422 fi
17423 rm -f conftest.err conftest.$ac_objext \
17424       conftest$ac_exeext conftest.$ac_ext
17425 fi
17426 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17427 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17428 if test $ac_cv_func_shl_load = yes; then
17429   lt_cv_dlopen="shl_load"
17430 else
17431   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17432 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17433 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17434   echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436   ac_check_lib_save_LIBS=$LIBS
17437 LIBS="-ldld  $LIBS"
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h.  */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h.  */
17444
17445 /* Override any gcc2 internal prototype to avoid an error.  */
17446 #ifdef __cplusplus
17447 extern "C"
17448 #endif
17449 /* We use char because int might match the return type of a gcc2
17450    builtin and then its argument prototype would still apply.  */
17451 char shl_load ();
17452 int
17453 main ()
17454 {
17455 shl_load ();
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462   (eval $ac_link) 2>conftest.er1
17463   ac_status=$?
17464   grep -v '^ *+' conftest.er1 >conftest.err
17465   rm -f conftest.er1
17466   cat conftest.err >&5
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); } &&
17469          { ac_try='test -z "$ac_c_werror_flag"
17470                          || test ! -s conftest.err'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; } &&
17476          { ac_try='test -s conftest$ac_exeext'
17477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478   (eval $ac_try) 2>&5
17479   ac_status=$?
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); }; }; then
17482   ac_cv_lib_dld_shl_load=yes
17483 else
17484   echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17486
17487 ac_cv_lib_dld_shl_load=no
17488 fi
17489 rm -f conftest.err conftest.$ac_objext \
17490       conftest$ac_exeext conftest.$ac_ext
17491 LIBS=$ac_check_lib_save_LIBS
17492 fi
17493 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17494 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17495 if test $ac_cv_lib_dld_shl_load = yes; then
17496   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17497 else
17498   echo "$as_me:$LINENO: checking for dlopen" >&5
17499 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17500 if test "${ac_cv_func_dlopen+set}" = set; then
17501   echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503   cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17511 #define dlopen innocuous_dlopen
17512
17513 /* System header to define __stub macros and hopefully few prototypes,
17514     which can conflict with char dlopen (); below.
17515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17516     <limits.h> exists even on freestanding compilers.  */
17517
17518 #ifdef __STDC__
17519 # include <limits.h>
17520 #else
17521 # include <assert.h>
17522 #endif
17523
17524 #undef dlopen
17525
17526 /* Override any gcc2 internal prototype to avoid an error.  */
17527 #ifdef __cplusplus
17528 extern "C"
17529 {
17530 #endif
17531 /* We use char because int might match the return type of a gcc2
17532    builtin and then its argument prototype would still apply.  */
17533 char dlopen ();
17534 /* The GNU C library defines this for functions which it implements
17535     to always fail with ENOSYS.  Some functions are actually named
17536     something starting with __ and the normal name is an alias.  */
17537 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17538 choke me
17539 #else
17540 char (*f) () = dlopen;
17541 #endif
17542 #ifdef __cplusplus
17543 }
17544 #endif
17545
17546 int
17547 main ()
17548 {
17549 return f != dlopen;
17550   ;
17551   return 0;
17552 }
17553 _ACEOF
17554 rm -f conftest.$ac_objext conftest$ac_exeext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17556   (eval $ac_link) 2>conftest.er1
17557   ac_status=$?
17558   grep -v '^ *+' conftest.er1 >conftest.err
17559   rm -f conftest.er1
17560   cat conftest.err >&5
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } &&
17563          { ac_try='test -z "$ac_c_werror_flag"
17564                          || test ! -s conftest.err'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } &&
17570          { ac_try='test -s conftest$ac_exeext'
17571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572   (eval $ac_try) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; }; then
17576   ac_cv_func_dlopen=yes
17577 else
17578   echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17580
17581 ac_cv_func_dlopen=no
17582 fi
17583 rm -f conftest.err conftest.$ac_objext \
17584       conftest$ac_exeext conftest.$ac_ext
17585 fi
17586 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17587 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17588 if test $ac_cv_func_dlopen = yes; then
17589   lt_cv_dlopen="dlopen"
17590 else
17591   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17592 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17593 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17594   echo $ECHO_N "(cached) $ECHO_C" >&6
17595 else
17596   ac_check_lib_save_LIBS=$LIBS
17597 LIBS="-ldl  $LIBS"
17598 cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h.  */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h.  */
17604
17605 /* Override any gcc2 internal prototype to avoid an error.  */
17606 #ifdef __cplusplus
17607 extern "C"
17608 #endif
17609 /* We use char because int might match the return type of a gcc2
17610    builtin and then its argument prototype would still apply.  */
17611 char dlopen ();
17612 int
17613 main ()
17614 {
17615 dlopen ();
17616   ;
17617   return 0;
17618 }
17619 _ACEOF
17620 rm -f conftest.$ac_objext conftest$ac_exeext
17621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17622   (eval $ac_link) 2>conftest.er1
17623   ac_status=$?
17624   grep -v '^ *+' conftest.er1 >conftest.err
17625   rm -f conftest.er1
17626   cat conftest.err >&5
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); } &&
17629          { ac_try='test -z "$ac_c_werror_flag"
17630                          || test ! -s conftest.err'
17631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632   (eval $ac_try) 2>&5
17633   ac_status=$?
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); }; } &&
17636          { ac_try='test -s conftest$ac_exeext'
17637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638   (eval $ac_try) 2>&5
17639   ac_status=$?
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); }; }; then
17642   ac_cv_lib_dl_dlopen=yes
17643 else
17644   echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.$ac_ext >&5
17646
17647 ac_cv_lib_dl_dlopen=no
17648 fi
17649 rm -f conftest.err conftest.$ac_objext \
17650       conftest$ac_exeext conftest.$ac_ext
17651 LIBS=$ac_check_lib_save_LIBS
17652 fi
17653 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17654 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17655 if test $ac_cv_lib_dl_dlopen = yes; then
17656   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17657 else
17658   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17659 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17660 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17661   echo $ECHO_N "(cached) $ECHO_C" >&6
17662 else
17663   ac_check_lib_save_LIBS=$LIBS
17664 LIBS="-lsvld  $LIBS"
17665 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h.  */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h.  */
17671
17672 /* Override any gcc2 internal prototype to avoid an error.  */
17673 #ifdef __cplusplus
17674 extern "C"
17675 #endif
17676 /* We use char because int might match the return type of a gcc2
17677    builtin and then its argument prototype would still apply.  */
17678 char dlopen ();
17679 int
17680 main ()
17681 {
17682 dlopen ();
17683   ;
17684   return 0;
17685 }
17686 _ACEOF
17687 rm -f conftest.$ac_objext conftest$ac_exeext
17688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17689   (eval $ac_link) 2>conftest.er1
17690   ac_status=$?
17691   grep -v '^ *+' conftest.er1 >conftest.err
17692   rm -f conftest.er1
17693   cat conftest.err >&5
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); } &&
17696          { ac_try='test -z "$ac_c_werror_flag"
17697                          || test ! -s conftest.err'
17698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699   (eval $ac_try) 2>&5
17700   ac_status=$?
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; } &&
17703          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17709   ac_cv_lib_svld_dlopen=yes
17710 else
17711   echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17713
17714 ac_cv_lib_svld_dlopen=no
17715 fi
17716 rm -f conftest.err conftest.$ac_objext \
17717       conftest$ac_exeext conftest.$ac_ext
17718 LIBS=$ac_check_lib_save_LIBS
17719 fi
17720 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17721 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17722 if test $ac_cv_lib_svld_dlopen = yes; then
17723   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17724 else
17725   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17726 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17727 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17728   echo $ECHO_N "(cached) $ECHO_C" >&6
17729 else
17730   ac_check_lib_save_LIBS=$LIBS
17731 LIBS="-ldld  $LIBS"
17732 cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h.  */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h.  */
17738
17739 /* Override any gcc2 internal prototype to avoid an error.  */
17740 #ifdef __cplusplus
17741 extern "C"
17742 #endif
17743 /* We use char because int might match the return type of a gcc2
17744    builtin and then its argument prototype would still apply.  */
17745 char dld_link ();
17746 int
17747 main ()
17748 {
17749 dld_link ();
17750   ;
17751   return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756   (eval $ac_link) 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } &&
17763          { ac_try='test -z "$ac_c_werror_flag"
17764                          || test ! -s conftest.err'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; } &&
17770          { ac_try='test -s conftest$ac_exeext'
17771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772   (eval $ac_try) 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; }; then
17776   ac_cv_lib_dld_dld_link=yes
17777 else
17778   echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781 ac_cv_lib_dld_dld_link=no
17782 fi
17783 rm -f conftest.err conftest.$ac_objext \
17784       conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17786 fi
17787 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17788 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17789 if test $ac_cv_lib_dld_dld_link = yes; then
17790   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17791 fi
17792
17793
17794 fi
17795
17796
17797 fi
17798
17799
17800 fi
17801
17802
17803 fi
17804
17805
17806 fi
17807
17808     ;;
17809   esac
17810
17811   if test "x$lt_cv_dlopen" != xno; then
17812     enable_dlopen=yes
17813   else
17814     enable_dlopen=no
17815   fi
17816
17817   case $lt_cv_dlopen in
17818   dlopen)
17819     save_CPPFLAGS="$CPPFLAGS"
17820     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17821
17822     save_LDFLAGS="$LDFLAGS"
17823     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17824
17825     save_LIBS="$LIBS"
17826     LIBS="$lt_cv_dlopen_libs $LIBS"
17827
17828     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17829 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17830 if test "${lt_cv_dlopen_self+set}" = set; then
17831   echo $ECHO_N "(cached) $ECHO_C" >&6
17832 else
17833           if test "$cross_compiling" = yes; then :
17834   lt_cv_dlopen_self=cross
17835 else
17836   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17837   lt_status=$lt_dlunknown
17838   cat > conftest.$ac_ext <<EOF
17839 #line 17839 "configure"
17840 #include "confdefs.h"
17841
17842 #if HAVE_DLFCN_H
17843 #include <dlfcn.h>
17844 #endif
17845
17846 #include <stdio.h>
17847
17848 #ifdef RTLD_GLOBAL
17849 #  define LT_DLGLOBAL           RTLD_GLOBAL
17850 #else
17851 #  ifdef DL_GLOBAL
17852 #    define LT_DLGLOBAL         DL_GLOBAL
17853 #  else
17854 #    define LT_DLGLOBAL         0
17855 #  endif
17856 #endif
17857
17858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17859    find out it does not work in some platform. */
17860 #ifndef LT_DLLAZY_OR_NOW
17861 #  ifdef RTLD_LAZY
17862 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17863 #  else
17864 #    ifdef DL_LAZY
17865 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17866 #    else
17867 #      ifdef RTLD_NOW
17868 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17869 #      else
17870 #        ifdef DL_NOW
17871 #          define LT_DLLAZY_OR_NOW      DL_NOW
17872 #        else
17873 #          define LT_DLLAZY_OR_NOW      0
17874 #        endif
17875 #      endif
17876 #    endif
17877 #  endif
17878 #endif
17879
17880 #ifdef __cplusplus
17881 extern "C" void exit (int);
17882 #endif
17883
17884 void fnord() { int i=42;}
17885 int main ()
17886 {
17887   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17888   int status = $lt_dlunknown;
17889
17890   if (self)
17891     {
17892       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17893       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17894       /* dlclose (self); */
17895     }
17896
17897     exit (status);
17898 }
17899 EOF
17900   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17901   (eval $ac_link) 2>&5
17902   ac_status=$?
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17905     (./conftest; exit; ) 2>/dev/null
17906     lt_status=$?
17907     case x$lt_status in
17908       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17909       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17910       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17911     esac
17912   else :
17913     # compilation failed
17914     lt_cv_dlopen_self=no
17915   fi
17916 fi
17917 rm -fr conftest*
17918
17919
17920 fi
17921 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17922 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17923
17924     if test "x$lt_cv_dlopen_self" = xyes; then
17925       LDFLAGS="$LDFLAGS $link_static_flag"
17926       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17927 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17928 if test "${lt_cv_dlopen_self_static+set}" = set; then
17929   echo $ECHO_N "(cached) $ECHO_C" >&6
17930 else
17931           if test "$cross_compiling" = yes; then :
17932   lt_cv_dlopen_self_static=cross
17933 else
17934   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17935   lt_status=$lt_dlunknown
17936   cat > conftest.$ac_ext <<EOF
17937 #line 17937 "configure"
17938 #include "confdefs.h"
17939
17940 #if HAVE_DLFCN_H
17941 #include <dlfcn.h>
17942 #endif
17943
17944 #include <stdio.h>
17945
17946 #ifdef RTLD_GLOBAL
17947 #  define LT_DLGLOBAL           RTLD_GLOBAL
17948 #else
17949 #  ifdef DL_GLOBAL
17950 #    define LT_DLGLOBAL         DL_GLOBAL
17951 #  else
17952 #    define LT_DLGLOBAL         0
17953 #  endif
17954 #endif
17955
17956 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17957    find out it does not work in some platform. */
17958 #ifndef LT_DLLAZY_OR_NOW
17959 #  ifdef RTLD_LAZY
17960 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17961 #  else
17962 #    ifdef DL_LAZY
17963 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17964 #    else
17965 #      ifdef RTLD_NOW
17966 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17967 #      else
17968 #        ifdef DL_NOW
17969 #          define LT_DLLAZY_OR_NOW      DL_NOW
17970 #        else
17971 #          define LT_DLLAZY_OR_NOW      0
17972 #        endif
17973 #      endif
17974 #    endif
17975 #  endif
17976 #endif
17977
17978 #ifdef __cplusplus
17979 extern "C" void exit (int);
17980 #endif
17981
17982 void fnord() { int i=42;}
17983 int main ()
17984 {
17985   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17986   int status = $lt_dlunknown;
17987
17988   if (self)
17989     {
17990       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17991       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17992       /* dlclose (self); */
17993     }
17994
17995     exit (status);
17996 }
17997 EOF
17998   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17999   (eval $ac_link) 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18003     (./conftest; exit; ) 2>/dev/null
18004     lt_status=$?
18005     case x$lt_status in
18006       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18007       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18008       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18009     esac
18010   else :
18011     # compilation failed
18012     lt_cv_dlopen_self_static=no
18013   fi
18014 fi
18015 rm -fr conftest*
18016
18017
18018 fi
18019 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18020 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18021     fi
18022
18023     CPPFLAGS="$save_CPPFLAGS"
18024     LDFLAGS="$save_LDFLAGS"
18025     LIBS="$save_LIBS"
18026     ;;
18027   esac
18028
18029   case $lt_cv_dlopen_self in
18030   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18031   *) enable_dlopen_self=unknown ;;
18032   esac
18033
18034   case $lt_cv_dlopen_self_static in
18035   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18036   *) enable_dlopen_self_static=unknown ;;
18037   esac
18038 fi
18039
18040
18041 # The else clause should only fire when bootstrapping the
18042 # libtool distribution, otherwise you forgot to ship ltmain.sh
18043 # with your package, and you will get complaints that there are
18044 # no rules to generate ltmain.sh.
18045 if test -f "$ltmain"; then
18046   # See if we are running on zsh, and set the options which allow our commands through
18047   # without removal of \ escapes.
18048   if test -n "${ZSH_VERSION+set}" ; then
18049     setopt NO_GLOB_SUBST
18050   fi
18051   # Now quote all the things that may contain metacharacters while being
18052   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18053   # variables and quote the copies for generation of the libtool script.
18054   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18055     SED SHELL STRIP \
18056     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18057     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18058     deplibs_check_method reload_flag reload_cmds need_locks \
18059     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18060     lt_cv_sys_global_symbol_to_c_name_address \
18061     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18062     old_postinstall_cmds old_postuninstall_cmds \
18063     compiler_GCJ \
18064     CC_GCJ \
18065     LD_GCJ \
18066     lt_prog_compiler_wl_GCJ \
18067     lt_prog_compiler_pic_GCJ \
18068     lt_prog_compiler_static_GCJ \
18069     lt_prog_compiler_no_builtin_flag_GCJ \
18070     export_dynamic_flag_spec_GCJ \
18071     thread_safe_flag_spec_GCJ \
18072     whole_archive_flag_spec_GCJ \
18073     enable_shared_with_static_runtimes_GCJ \
18074     old_archive_cmds_GCJ \
18075     old_archive_from_new_cmds_GCJ \
18076     predep_objects_GCJ \
18077     postdep_objects_GCJ \
18078     predeps_GCJ \
18079     postdeps_GCJ \
18080     compiler_lib_search_path_GCJ \
18081     archive_cmds_GCJ \
18082     archive_expsym_cmds_GCJ \
18083     postinstall_cmds_GCJ \
18084     postuninstall_cmds_GCJ \
18085     old_archive_from_expsyms_cmds_GCJ \
18086     allow_undefined_flag_GCJ \
18087     no_undefined_flag_GCJ \
18088     export_symbols_cmds_GCJ \
18089     hardcode_libdir_flag_spec_GCJ \
18090     hardcode_libdir_flag_spec_ld_GCJ \
18091     hardcode_libdir_separator_GCJ \
18092     hardcode_automatic_GCJ \
18093     module_cmds_GCJ \
18094     module_expsym_cmds_GCJ \
18095     lt_cv_prog_compiler_c_o_GCJ \
18096     exclude_expsyms_GCJ \
18097     include_expsyms_GCJ; do
18098
18099     case $var in
18100     old_archive_cmds_GCJ | \
18101     old_archive_from_new_cmds_GCJ | \
18102     archive_cmds_GCJ | \
18103     archive_expsym_cmds_GCJ | \
18104     module_cmds_GCJ | \
18105     module_expsym_cmds_GCJ | \
18106     old_archive_from_expsyms_cmds_GCJ | \
18107     export_symbols_cmds_GCJ | \
18108     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18109     postinstall_cmds | postuninstall_cmds | \
18110     old_postinstall_cmds | old_postuninstall_cmds | \
18111     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18112       # Double-quote double-evaled strings.
18113       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18114       ;;
18115     *)
18116       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18117       ;;
18118     esac
18119   done
18120
18121   case $lt_echo in
18122   *'\$0 --fallback-echo"')
18123     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18124     ;;
18125   esac
18126
18127 cfgfile="$ofile"
18128
18129   cat <<__EOF__ >> "$cfgfile"
18130 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18131
18132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18133
18134 # Shell to use when invoking shell scripts.
18135 SHELL=$lt_SHELL
18136
18137 # Whether or not to build shared libraries.
18138 build_libtool_libs=$enable_shared
18139
18140 # Whether or not to build static libraries.
18141 build_old_libs=$enable_static
18142
18143 # Whether or not to add -lc for building shared libraries.
18144 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18145
18146 # Whether or not to disallow shared libs when runtime libs are static
18147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18148
18149 # Whether or not to optimize for fast installation.
18150 fast_install=$enable_fast_install
18151
18152 # The host system.
18153 host_alias=$host_alias
18154 host=$host
18155
18156 # An echo program that does not interpret backslashes.
18157 echo=$lt_echo
18158
18159 # The archiver.
18160 AR=$lt_AR
18161 AR_FLAGS=$lt_AR_FLAGS
18162
18163 # A C compiler.
18164 LTCC=$lt_LTCC
18165
18166 # A language-specific compiler.
18167 CC=$lt_compiler_GCJ
18168
18169 # Is the compiler the GNU C compiler?
18170 with_gcc=$GCC_GCJ
18171
18172 # An ERE matcher.
18173 EGREP=$lt_EGREP
18174
18175 # The linker used to build libraries.
18176 LD=$lt_LD_GCJ
18177
18178 # Whether we need hard or soft links.
18179 LN_S=$lt_LN_S
18180
18181 # A BSD-compatible nm program.
18182 NM=$lt_NM
18183
18184 # A symbol stripping program
18185 STRIP=$lt_STRIP
18186
18187 # Used to examine libraries when file_magic_cmd begins "file"
18188 MAGIC_CMD=$MAGIC_CMD
18189
18190 # Used on cygwin: DLL creation program.
18191 DLLTOOL="$DLLTOOL"
18192
18193 # Used on cygwin: object dumper.
18194 OBJDUMP="$OBJDUMP"
18195
18196 # Used on cygwin: assembler.
18197 AS="$AS"
18198
18199 # The name of the directory that contains temporary libtool files.
18200 objdir=$objdir
18201
18202 # How to create reloadable object files.
18203 reload_flag=$lt_reload_flag
18204 reload_cmds=$lt_reload_cmds
18205
18206 # How to pass a linker flag through the compiler.
18207 wl=$lt_lt_prog_compiler_wl_GCJ
18208
18209 # Object file suffix (normally "o").
18210 objext="$ac_objext"
18211
18212 # Old archive suffix (normally "a").
18213 libext="$libext"
18214
18215 # Shared library suffix (normally ".so").
18216 shrext_cmds='$shrext_cmds'
18217
18218 # Executable file suffix (normally "").
18219 exeext="$exeext"
18220
18221 # Additional compiler flags for building library objects.
18222 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18223 pic_mode=$pic_mode
18224
18225 # What is the maximum length of a command?
18226 max_cmd_len=$lt_cv_sys_max_cmd_len
18227
18228 # Does compiler simultaneously support -c and -o options?
18229 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18230
18231 # Must we lock files when doing compilation ?
18232 need_locks=$lt_need_locks
18233
18234 # Do we need the lib prefix for modules?
18235 need_lib_prefix=$need_lib_prefix
18236
18237 # Do we need a version for libraries?
18238 need_version=$need_version
18239
18240 # Whether dlopen is supported.
18241 dlopen_support=$enable_dlopen
18242
18243 # Whether dlopen of programs is supported.
18244 dlopen_self=$enable_dlopen_self
18245
18246 # Whether dlopen of statically linked programs is supported.
18247 dlopen_self_static=$enable_dlopen_self_static
18248
18249 # Compiler flag to prevent dynamic linking.
18250 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18251
18252 # Compiler flag to turn off builtin functions.
18253 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18254
18255 # Compiler flag to allow reflexive dlopens.
18256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18257
18258 # Compiler flag to generate shared objects directly from archives.
18259 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18260
18261 # Compiler flag to generate thread-safe objects.
18262 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18263
18264 # Library versioning type.
18265 version_type=$version_type
18266
18267 # Format of library name prefix.
18268 libname_spec=$lt_libname_spec
18269
18270 # List of archive names.  First name is the real one, the rest are links.
18271 # The last name is the one that the linker finds with -lNAME.
18272 library_names_spec=$lt_library_names_spec
18273
18274 # The coded name of the library, if different from the real name.
18275 soname_spec=$lt_soname_spec
18276
18277 # Commands used to build and install an old-style archive.
18278 RANLIB=$lt_RANLIB
18279 old_archive_cmds=$lt_old_archive_cmds_GCJ
18280 old_postinstall_cmds=$lt_old_postinstall_cmds
18281 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18282
18283 # Create an old-style archive from a shared archive.
18284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18285
18286 # Create a temporary old-style archive to link instead of a shared archive.
18287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18288
18289 # Commands used to build and install a shared archive.
18290 archive_cmds=$lt_archive_cmds_GCJ
18291 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18292 postinstall_cmds=$lt_postinstall_cmds
18293 postuninstall_cmds=$lt_postuninstall_cmds
18294
18295 # Commands used to build a loadable module (assumed same as above if empty)
18296 module_cmds=$lt_module_cmds_GCJ
18297 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18298
18299 # Commands to strip libraries.
18300 old_striplib=$lt_old_striplib
18301 striplib=$lt_striplib
18302
18303 # Dependencies to place before the objects being linked to create a
18304 # shared library.
18305 predep_objects=$lt_predep_objects_GCJ
18306
18307 # Dependencies to place after the objects being linked to create a
18308 # shared library.
18309 postdep_objects=$lt_postdep_objects_GCJ
18310
18311 # Dependencies to place before the objects being linked to create a
18312 # shared library.
18313 predeps=$lt_predeps_GCJ
18314
18315 # Dependencies to place after the objects being linked to create a
18316 # shared library.
18317 postdeps=$lt_postdeps_GCJ
18318
18319 # The library search path used internally by the compiler when linking
18320 # a shared library.
18321 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18322
18323 # Method to check whether dependent libraries are shared objects.
18324 deplibs_check_method=$lt_deplibs_check_method
18325
18326 # Command to use when deplibs_check_method == file_magic.
18327 file_magic_cmd=$lt_file_magic_cmd
18328
18329 # Flag that allows shared libraries with undefined symbols to be built.
18330 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18331
18332 # Flag that forces no undefined symbols.
18333 no_undefined_flag=$lt_no_undefined_flag_GCJ
18334
18335 # Commands used to finish a libtool library installation in a directory.
18336 finish_cmds=$lt_finish_cmds
18337
18338 # Same as above, but a single script fragment to be evaled but not shown.
18339 finish_eval=$lt_finish_eval
18340
18341 # Take the output of nm and produce a listing of raw symbols and C names.
18342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18343
18344 # Transform the output of nm in a proper C declaration
18345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18346
18347 # Transform the output of nm in a C name address pair
18348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18349
18350 # This is the shared library runtime path variable.
18351 runpath_var=$runpath_var
18352
18353 # This is the shared library path variable.
18354 shlibpath_var=$shlibpath_var
18355
18356 # Is shlibpath searched before the hard-coded library search path?
18357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18358
18359 # How to hardcode a shared library path into an executable.
18360 hardcode_action=$hardcode_action_GCJ
18361
18362 # Whether we should hardcode library paths into libraries.
18363 hardcode_into_libs=$hardcode_into_libs
18364
18365 # Flag to hardcode \$libdir into a binary during linking.
18366 # This must work even if \$libdir does not exist.
18367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18368
18369 # If ld is used when linking, flag to hardcode \$libdir into
18370 # a binary during linking. This must work even if \$libdir does
18371 # not exist.
18372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18373
18374 # Whether we need a single -rpath flag with a separated argument.
18375 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18376
18377 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18378 # resulting binary.
18379 hardcode_direct=$hardcode_direct_GCJ
18380
18381 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18382 # resulting binary.
18383 hardcode_minus_L=$hardcode_minus_L_GCJ
18384
18385 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18386 # the resulting binary.
18387 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18388
18389 # Set to yes if building a shared library automatically hardcodes DIR into the library
18390 # and all subsequent libraries and executables linked against it.
18391 hardcode_automatic=$hardcode_automatic_GCJ
18392
18393 # Variables whose values should be saved in libtool wrapper scripts and
18394 # restored at relink time.
18395 variables_saved_for_relink="$variables_saved_for_relink"
18396
18397 # Whether libtool must link a program against all its dependency libraries.
18398 link_all_deplibs=$link_all_deplibs_GCJ
18399
18400 # Compile-time system search path for libraries
18401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18402
18403 # Run-time system search path for libraries
18404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18405
18406 # Fix the shell variable \$srcfile for the compiler.
18407 fix_srcfile_path="$fix_srcfile_path_GCJ"
18408
18409 # Set to yes if exported symbols are required.
18410 always_export_symbols=$always_export_symbols_GCJ
18411
18412 # The commands to list exported symbols.
18413 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18414
18415 # The commands to extract the exported symbol list from a shared archive.
18416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18417
18418 # Symbols that should not be listed in the preloaded symbols.
18419 exclude_expsyms=$lt_exclude_expsyms_GCJ
18420
18421 # Symbols that must always be exported.
18422 include_expsyms=$lt_include_expsyms_GCJ
18423
18424 # ### END LIBTOOL TAG CONFIG: $tagname
18425
18426 __EOF__
18427
18428
18429 else
18430   # If there is no Makefile yet, we rely on a make rule to execute
18431   # `config.status --recheck' to rerun these tests and create the
18432   # libtool script then.
18433   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18434   if test -f "$ltmain_in"; then
18435     test -f Makefile && make "$ltmain"
18436   fi
18437 fi
18438
18439
18440 ac_ext=c
18441 ac_cpp='$CPP $CPPFLAGS'
18442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18445
18446 CC="$lt_save_CC"
18447
18448         else
18449           tagname=""
18450         fi
18451         ;;
18452
18453       RC)
18454         ac_ext=c
18455 ac_cpp='$CPP $CPPFLAGS'
18456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18459
18460
18461 # Source file extension for RC test sources.
18462 ac_ext=rc
18463
18464 # Object file extension for compiled RC test sources.
18465 objext=o
18466 objext_RC=$objext
18467
18468 # Code to be used in simple compile tests
18469 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18470
18471 # Code to be used in simple link tests
18472 lt_simple_link_test_code="$lt_simple_compile_test_code"
18473
18474 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18475
18476 # If no C compiler was specified, use CC.
18477 LTCC=${LTCC-"$CC"}
18478
18479 # Allow CC to be a program name with arguments.
18480 compiler=$CC
18481
18482
18483 # Allow CC to be a program name with arguments.
18484 lt_save_CC="$CC"
18485 CC=${RC-"windres"}
18486 compiler=$CC
18487 compiler_RC=$CC
18488 lt_cv_prog_compiler_c_o_RC=yes
18489
18490 # The else clause should only fire when bootstrapping the
18491 # libtool distribution, otherwise you forgot to ship ltmain.sh
18492 # with your package, and you will get complaints that there are
18493 # no rules to generate ltmain.sh.
18494 if test -f "$ltmain"; then
18495   # See if we are running on zsh, and set the options which allow our commands through
18496   # without removal of \ escapes.
18497   if test -n "${ZSH_VERSION+set}" ; then
18498     setopt NO_GLOB_SUBST
18499   fi
18500   # Now quote all the things that may contain metacharacters while being
18501   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18502   # variables and quote the copies for generation of the libtool script.
18503   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18504     SED SHELL STRIP \
18505     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18506     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18507     deplibs_check_method reload_flag reload_cmds need_locks \
18508     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18509     lt_cv_sys_global_symbol_to_c_name_address \
18510     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18511     old_postinstall_cmds old_postuninstall_cmds \
18512     compiler_RC \
18513     CC_RC \
18514     LD_RC \
18515     lt_prog_compiler_wl_RC \
18516     lt_prog_compiler_pic_RC \
18517     lt_prog_compiler_static_RC \
18518     lt_prog_compiler_no_builtin_flag_RC \
18519     export_dynamic_flag_spec_RC \
18520     thread_safe_flag_spec_RC \
18521     whole_archive_flag_spec_RC \
18522     enable_shared_with_static_runtimes_RC \
18523     old_archive_cmds_RC \
18524     old_archive_from_new_cmds_RC \
18525     predep_objects_RC \
18526     postdep_objects_RC \
18527     predeps_RC \
18528     postdeps_RC \
18529     compiler_lib_search_path_RC \
18530     archive_cmds_RC \
18531     archive_expsym_cmds_RC \
18532     postinstall_cmds_RC \
18533     postuninstall_cmds_RC \
18534     old_archive_from_expsyms_cmds_RC \
18535     allow_undefined_flag_RC \
18536     no_undefined_flag_RC \
18537     export_symbols_cmds_RC \
18538     hardcode_libdir_flag_spec_RC \
18539     hardcode_libdir_flag_spec_ld_RC \
18540     hardcode_libdir_separator_RC \
18541     hardcode_automatic_RC \
18542     module_cmds_RC \
18543     module_expsym_cmds_RC \
18544     lt_cv_prog_compiler_c_o_RC \
18545     exclude_expsyms_RC \
18546     include_expsyms_RC; do
18547
18548     case $var in
18549     old_archive_cmds_RC | \
18550     old_archive_from_new_cmds_RC | \
18551     archive_cmds_RC | \
18552     archive_expsym_cmds_RC | \
18553     module_cmds_RC | \
18554     module_expsym_cmds_RC | \
18555     old_archive_from_expsyms_cmds_RC | \
18556     export_symbols_cmds_RC | \
18557     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18558     postinstall_cmds | postuninstall_cmds | \
18559     old_postinstall_cmds | old_postuninstall_cmds | \
18560     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18561       # Double-quote double-evaled strings.
18562       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18563       ;;
18564     *)
18565       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18566       ;;
18567     esac
18568   done
18569
18570   case $lt_echo in
18571   *'\$0 --fallback-echo"')
18572     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18573     ;;
18574   esac
18575
18576 cfgfile="$ofile"
18577
18578   cat <<__EOF__ >> "$cfgfile"
18579 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18580
18581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18582
18583 # Shell to use when invoking shell scripts.
18584 SHELL=$lt_SHELL
18585
18586 # Whether or not to build shared libraries.
18587 build_libtool_libs=$enable_shared
18588
18589 # Whether or not to build static libraries.
18590 build_old_libs=$enable_static
18591
18592 # Whether or not to add -lc for building shared libraries.
18593 build_libtool_need_lc=$archive_cmds_need_lc_RC
18594
18595 # Whether or not to disallow shared libs when runtime libs are static
18596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18597
18598 # Whether or not to optimize for fast installation.
18599 fast_install=$enable_fast_install
18600
18601 # The host system.
18602 host_alias=$host_alias
18603 host=$host
18604
18605 # An echo program that does not interpret backslashes.
18606 echo=$lt_echo
18607
18608 # The archiver.
18609 AR=$lt_AR
18610 AR_FLAGS=$lt_AR_FLAGS
18611
18612 # A C compiler.
18613 LTCC=$lt_LTCC
18614
18615 # A language-specific compiler.
18616 CC=$lt_compiler_RC
18617
18618 # Is the compiler the GNU C compiler?
18619 with_gcc=$GCC_RC
18620
18621 # An ERE matcher.
18622 EGREP=$lt_EGREP
18623
18624 # The linker used to build libraries.
18625 LD=$lt_LD_RC
18626
18627 # Whether we need hard or soft links.
18628 LN_S=$lt_LN_S
18629
18630 # A BSD-compatible nm program.
18631 NM=$lt_NM
18632
18633 # A symbol stripping program
18634 STRIP=$lt_STRIP
18635
18636 # Used to examine libraries when file_magic_cmd begins "file"
18637 MAGIC_CMD=$MAGIC_CMD
18638
18639 # Used on cygwin: DLL creation program.
18640 DLLTOOL="$DLLTOOL"
18641
18642 # Used on cygwin: object dumper.
18643 OBJDUMP="$OBJDUMP"
18644
18645 # Used on cygwin: assembler.
18646 AS="$AS"
18647
18648 # The name of the directory that contains temporary libtool files.
18649 objdir=$objdir
18650
18651 # How to create reloadable object files.
18652 reload_flag=$lt_reload_flag
18653 reload_cmds=$lt_reload_cmds
18654
18655 # How to pass a linker flag through the compiler.
18656 wl=$lt_lt_prog_compiler_wl_RC
18657
18658 # Object file suffix (normally "o").
18659 objext="$ac_objext"
18660
18661 # Old archive suffix (normally "a").
18662 libext="$libext"
18663
18664 # Shared library suffix (normally ".so").
18665 shrext_cmds='$shrext_cmds'
18666
18667 # Executable file suffix (normally "").
18668 exeext="$exeext"
18669
18670 # Additional compiler flags for building library objects.
18671 pic_flag=$lt_lt_prog_compiler_pic_RC
18672 pic_mode=$pic_mode
18673
18674 # What is the maximum length of a command?
18675 max_cmd_len=$lt_cv_sys_max_cmd_len
18676
18677 # Does compiler simultaneously support -c and -o options?
18678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18679
18680 # Must we lock files when doing compilation ?
18681 need_locks=$lt_need_locks
18682
18683 # Do we need the lib prefix for modules?
18684 need_lib_prefix=$need_lib_prefix
18685
18686 # Do we need a version for libraries?
18687 need_version=$need_version
18688
18689 # Whether dlopen is supported.
18690 dlopen_support=$enable_dlopen
18691
18692 # Whether dlopen of programs is supported.
18693 dlopen_self=$enable_dlopen_self
18694
18695 # Whether dlopen of statically linked programs is supported.
18696 dlopen_self_static=$enable_dlopen_self_static
18697
18698 # Compiler flag to prevent dynamic linking.
18699 link_static_flag=$lt_lt_prog_compiler_static_RC
18700
18701 # Compiler flag to turn off builtin functions.
18702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18703
18704 # Compiler flag to allow reflexive dlopens.
18705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18706
18707 # Compiler flag to generate shared objects directly from archives.
18708 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18709
18710 # Compiler flag to generate thread-safe objects.
18711 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18712
18713 # Library versioning type.
18714 version_type=$version_type
18715
18716 # Format of library name prefix.
18717 libname_spec=$lt_libname_spec
18718
18719 # List of archive names.  First name is the real one, the rest are links.
18720 # The last name is the one that the linker finds with -lNAME.
18721 library_names_spec=$lt_library_names_spec
18722
18723 # The coded name of the library, if different from the real name.
18724 soname_spec=$lt_soname_spec
18725
18726 # Commands used to build and install an old-style archive.
18727 RANLIB=$lt_RANLIB
18728 old_archive_cmds=$lt_old_archive_cmds_RC
18729 old_postinstall_cmds=$lt_old_postinstall_cmds
18730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18731
18732 # Create an old-style archive from a shared archive.
18733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18734
18735 # Create a temporary old-style archive to link instead of a shared archive.
18736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18737
18738 # Commands used to build and install a shared archive.
18739 archive_cmds=$lt_archive_cmds_RC
18740 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18741 postinstall_cmds=$lt_postinstall_cmds
18742 postuninstall_cmds=$lt_postuninstall_cmds
18743
18744 # Commands used to build a loadable module (assumed same as above if empty)
18745 module_cmds=$lt_module_cmds_RC
18746 module_expsym_cmds=$lt_module_expsym_cmds_RC
18747
18748 # Commands to strip libraries.
18749 old_striplib=$lt_old_striplib
18750 striplib=$lt_striplib
18751
18752 # Dependencies to place before the objects being linked to create a
18753 # shared library.
18754 predep_objects=$lt_predep_objects_RC
18755
18756 # Dependencies to place after the objects being linked to create a
18757 # shared library.
18758 postdep_objects=$lt_postdep_objects_RC
18759
18760 # Dependencies to place before the objects being linked to create a
18761 # shared library.
18762 predeps=$lt_predeps_RC
18763
18764 # Dependencies to place after the objects being linked to create a
18765 # shared library.
18766 postdeps=$lt_postdeps_RC
18767
18768 # The library search path used internally by the compiler when linking
18769 # a shared library.
18770 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18771
18772 # Method to check whether dependent libraries are shared objects.
18773 deplibs_check_method=$lt_deplibs_check_method
18774
18775 # Command to use when deplibs_check_method == file_magic.
18776 file_magic_cmd=$lt_file_magic_cmd
18777
18778 # Flag that allows shared libraries with undefined symbols to be built.
18779 allow_undefined_flag=$lt_allow_undefined_flag_RC
18780
18781 # Flag that forces no undefined symbols.
18782 no_undefined_flag=$lt_no_undefined_flag_RC
18783
18784 # Commands used to finish a libtool library installation in a directory.
18785 finish_cmds=$lt_finish_cmds
18786
18787 # Same as above, but a single script fragment to be evaled but not shown.
18788 finish_eval=$lt_finish_eval
18789
18790 # Take the output of nm and produce a listing of raw symbols and C names.
18791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18792
18793 # Transform the output of nm in a proper C declaration
18794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18795
18796 # Transform the output of nm in a C name address pair
18797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18798
18799 # This is the shared library runtime path variable.
18800 runpath_var=$runpath_var
18801
18802 # This is the shared library path variable.
18803 shlibpath_var=$shlibpath_var
18804
18805 # Is shlibpath searched before the hard-coded library search path?
18806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18807
18808 # How to hardcode a shared library path into an executable.
18809 hardcode_action=$hardcode_action_RC
18810
18811 # Whether we should hardcode library paths into libraries.
18812 hardcode_into_libs=$hardcode_into_libs
18813
18814 # Flag to hardcode \$libdir into a binary during linking.
18815 # This must work even if \$libdir does not exist.
18816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18817
18818 # If ld is used when linking, flag to hardcode \$libdir into
18819 # a binary during linking. This must work even if \$libdir does
18820 # not exist.
18821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18822
18823 # Whether we need a single -rpath flag with a separated argument.
18824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18825
18826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18827 # resulting binary.
18828 hardcode_direct=$hardcode_direct_RC
18829
18830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18831 # resulting binary.
18832 hardcode_minus_L=$hardcode_minus_L_RC
18833
18834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18835 # the resulting binary.
18836 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18837
18838 # Set to yes if building a shared library automatically hardcodes DIR into the library
18839 # and all subsequent libraries and executables linked against it.
18840 hardcode_automatic=$hardcode_automatic_RC
18841
18842 # Variables whose values should be saved in libtool wrapper scripts and
18843 # restored at relink time.
18844 variables_saved_for_relink="$variables_saved_for_relink"
18845
18846 # Whether libtool must link a program against all its dependency libraries.
18847 link_all_deplibs=$link_all_deplibs_RC
18848
18849 # Compile-time system search path for libraries
18850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18851
18852 # Run-time system search path for libraries
18853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18854
18855 # Fix the shell variable \$srcfile for the compiler.
18856 fix_srcfile_path="$fix_srcfile_path_RC"
18857
18858 # Set to yes if exported symbols are required.
18859 always_export_symbols=$always_export_symbols_RC
18860
18861 # The commands to list exported symbols.
18862 export_symbols_cmds=$lt_export_symbols_cmds_RC
18863
18864 # The commands to extract the exported symbol list from a shared archive.
18865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18866
18867 # Symbols that should not be listed in the preloaded symbols.
18868 exclude_expsyms=$lt_exclude_expsyms_RC
18869
18870 # Symbols that must always be exported.
18871 include_expsyms=$lt_include_expsyms_RC
18872
18873 # ### END LIBTOOL TAG CONFIG: $tagname
18874
18875 __EOF__
18876
18877
18878 else
18879   # If there is no Makefile yet, we rely on a make rule to execute
18880   # `config.status --recheck' to rerun these tests and create the
18881   # libtool script then.
18882   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18883   if test -f "$ltmain_in"; then
18884     test -f Makefile && make "$ltmain"
18885   fi
18886 fi
18887
18888
18889 ac_ext=c
18890 ac_cpp='$CPP $CPPFLAGS'
18891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18894
18895 CC="$lt_save_CC"
18896
18897         ;;
18898
18899       *)
18900         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18901 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18902    { (exit 1); exit 1; }; }
18903         ;;
18904       esac
18905
18906       # Append the new tag name to the list of available tags.
18907       if test -n "$tagname" ; then
18908       available_tags="$available_tags $tagname"
18909     fi
18910     fi
18911   done
18912   IFS="$lt_save_ifs"
18913
18914   # Now substitute the updated list of available tags.
18915   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18916     mv "${ofile}T" "$ofile"
18917     chmod +x "$ofile"
18918   else
18919     rm -f "${ofile}T"
18920     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18921 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18922    { (exit 1); exit 1; }; }
18923   fi
18924 fi
18925
18926
18927
18928 # This can be used to rebuild libtool when needed
18929 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18930
18931 # Always use our own libtool.
18932 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18933
18934 # Prevent multiple expansion
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956 # Extract the first word of "dot", so it can be a program name with args.
18957 set dummy dot; ac_word=$2
18958 echo "$as_me:$LINENO: checking for $ac_word" >&5
18959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18960 if test "${ac_cv_path_DOT+set}" = set; then
18961   echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963   case $DOT in
18964   [\\/]* | ?:[\\/]*)
18965   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18966   ;;
18967   *)
18968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18969 for as_dir in $PATH
18970 do
18971   IFS=$as_save_IFS
18972   test -z "$as_dir" && as_dir=.
18973   for ac_exec_ext in '' $ac_executable_extensions; do
18974   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18975     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18977     break 2
18978   fi
18979 done
18980 done
18981
18982   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18983   ;;
18984 esac
18985 fi
18986 DOT=$ac_cv_path_DOT
18987
18988 if test -n "$DOT"; then
18989   echo "$as_me:$LINENO: result: $DOT" >&5
18990 echo "${ECHO_T}$DOT" >&6
18991 else
18992   echo "$as_me:$LINENO: result: no" >&5
18993 echo "${ECHO_T}no" >&6
18994 fi
18995
18996 # Extract the first word of "etags", so it can be a program name with args.
18997 set dummy etags; ac_word=$2
18998 echo "$as_me:$LINENO: checking for $ac_word" >&5
18999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19000 if test "${ac_cv_path_ETAGS+set}" = set; then
19001   echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003   case $ETAGS in
19004   [\\/]* | ?:[\\/]*)
19005   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19006   ;;
19007   *)
19008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19009 for as_dir in $PATH
19010 do
19011   IFS=$as_save_IFS
19012   test -z "$as_dir" && as_dir=.
19013   for ac_exec_ext in '' $ac_executable_extensions; do
19014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19015     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19017     break 2
19018   fi
19019 done
19020 done
19021
19022   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
19023   ;;
19024 esac
19025 fi
19026 ETAGS=$ac_cv_path_ETAGS
19027
19028 if test -n "$ETAGS"; then
19029   echo "$as_me:$LINENO: result: $ETAGS" >&5
19030 echo "${ECHO_T}$ETAGS" >&6
19031 else
19032   echo "$as_me:$LINENO: result: no" >&5
19033 echo "${ECHO_T}no" >&6
19034 fi
19035
19036 etags_version=`$ETAGS --version 2>&1`
19037 case "$etags_version" in
19038         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19039         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19040         *) ETAGSFLAGS="" ;;
19041 esac
19042 ETAGSFLAGS=$ETAGSFLAGS
19043
19044 # Extract the first word of "python", so it can be a program name with args.
19045 set dummy python; ac_word=$2
19046 echo "$as_me:$LINENO: checking for $ac_word" >&5
19047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19048 if test "${ac_cv_path_PYTHON+set}" = set; then
19049   echo $ECHO_N "(cached) $ECHO_C" >&6
19050 else
19051   case $PYTHON in
19052   [\\/]* | ?:[\\/]*)
19053   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19054   ;;
19055   *)
19056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19057 for as_dir in $PATH
19058 do
19059   IFS=$as_save_IFS
19060   test -z "$as_dir" && as_dir=.
19061   for ac_exec_ext in '' $ac_executable_extensions; do
19062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19063     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19065     break 2
19066   fi
19067 done
19068 done
19069
19070   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19071   ;;
19072 esac
19073 fi
19074 PYTHON=$ac_cv_path_PYTHON
19075
19076 if test -n "$PYTHON"; then
19077   echo "$as_me:$LINENO: result: $PYTHON" >&5
19078 echo "${ECHO_T}$PYTHON" >&6
19079 else
19080   echo "$as_me:$LINENO: result: no" >&5
19081 echo "${ECHO_T}no" >&6
19082 fi
19083
19084 if test "$PYTHON" = "false"
19085 then
19086         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19087 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19088 fi
19089 # Extract the first word of "qmtest", so it can be a program name with args.
19090 set dummy qmtest; ac_word=$2
19091 echo "$as_me:$LINENO: checking for $ac_word" >&5
19092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19093 if test "${ac_cv_path_QMTEST+set}" = set; then
19094   echo $ECHO_N "(cached) $ECHO_C" >&6
19095 else
19096   case $QMTEST in
19097   [\\/]* | ?:[\\/]*)
19098   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19099   ;;
19100   *)
19101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19102 for as_dir in $PATH
19103 do
19104   IFS=$as_save_IFS
19105   test -z "$as_dir" && as_dir=.
19106   for ac_exec_ext in '' $ac_executable_extensions; do
19107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19108     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19110     break 2
19111   fi
19112 done
19113 done
19114
19115   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19116   ;;
19117 esac
19118 fi
19119 QMTEST=$ac_cv_path_QMTEST
19120
19121 if test -n "$QMTEST"; then
19122   echo "$as_me:$LINENO: result: $QMTEST" >&5
19123 echo "${ECHO_T}$QMTEST" >&6
19124 else
19125   echo "$as_me:$LINENO: result: no" >&5
19126 echo "${ECHO_T}no" >&6
19127 fi
19128
19129 if test "$QMTEST" = "false"
19130 then
19131         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19132 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19133 fi
19134
19135 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19136 pymajor=`echo $pyversion | cut -d. -f1`
19137 pyminor=`echo $pyversion | cut -d. -f2`
19138
19139 if test "$pymajor" -ge "2"
19140 then
19141         if test "$pymajor" -eq "2"
19142         then
19143                 if test "$pyminor" -lt "2"
19144                 then
19145                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19146 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19147                 fi
19148         fi
19149 else
19150         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19151 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19152 fi
19153
19154
19155 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19156 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19157 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19158   echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160   ac_check_lib_save_LIBS=$LIBS
19161 LIBS="-lelf  $LIBS"
19162 cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h.  */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h.  */
19168
19169 /* Override any gcc2 internal prototype to avoid an error.  */
19170 #ifdef __cplusplus
19171 extern "C"
19172 #endif
19173 /* We use char because int might match the return type of a gcc2
19174    builtin and then its argument prototype would still apply.  */
19175 char elf_begin ();
19176 int
19177 main ()
19178 {
19179 elf_begin ();
19180   ;
19181   return 0;
19182 }
19183 _ACEOF
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19186   (eval $ac_link) 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } &&
19193          { ac_try='test -z "$ac_c_werror_flag"
19194                          || test ! -s conftest.err'
19195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196   (eval $ac_try) 2>&5
19197   ac_status=$?
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); }; } &&
19200          { ac_try='test -s conftest$ac_exeext'
19201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202   (eval $ac_try) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; }; then
19206   ac_cv_lib_elf_elf_begin=yes
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 ac_cv_lib_elf_elf_begin=no
19212 fi
19213 rm -f conftest.err conftest.$ac_objext \
19214       conftest$ac_exeext conftest.$ac_ext
19215 LIBS=$ac_check_lib_save_LIBS
19216 fi
19217 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19218 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19219 if test $ac_cv_lib_elf_elf_begin = yes; then
19220   cat >>confdefs.h <<_ACEOF
19221 #define HAVE_LIBELF 1
19222 _ACEOF
19223
19224   LIBS="-lelf $LIBS"
19225
19226 fi
19227
19228
19229 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19230 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19231 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19232   echo $ECHO_N "(cached) $ECHO_C" >&6
19233 else
19234   ac_check_lib_save_LIBS=$LIBS
19235 LIBS="-lbz2  $LIBS"
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h.  */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h.  */
19242
19243 /* Override any gcc2 internal prototype to avoid an error.  */
19244 #ifdef __cplusplus
19245 extern "C"
19246 #endif
19247 /* We use char because int might match the return type of a gcc2
19248    builtin and then its argument prototype would still apply.  */
19249 char BZ2_bzCompressInit ();
19250 int
19251 main ()
19252 {
19253 BZ2_bzCompressInit ();
19254   ;
19255   return 0;
19256 }
19257 _ACEOF
19258 rm -f conftest.$ac_objext conftest$ac_exeext
19259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19260   (eval $ac_link) 2>conftest.er1
19261   ac_status=$?
19262   grep -v '^ *+' conftest.er1 >conftest.err
19263   rm -f conftest.er1
19264   cat conftest.err >&5
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } &&
19267          { ac_try='test -z "$ac_c_werror_flag"
19268                          || test ! -s conftest.err'
19269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270   (eval $ac_try) 2>&5
19271   ac_status=$?
19272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273   (exit $ac_status); }; } &&
19274          { ac_try='test -s conftest$ac_exeext'
19275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276   (eval $ac_try) 2>&5
19277   ac_status=$?
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); }; }; then
19280   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19281 else
19282   echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19284
19285 ac_cv_lib_bz2_BZ2_bzCompressInit=no
19286 fi
19287 rm -f conftest.err conftest.$ac_objext \
19288       conftest$ac_exeext conftest.$ac_ext
19289 LIBS=$ac_check_lib_save_LIBS
19290 fi
19291 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19292 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19293 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19294   bzip2_found=1
19295 else
19296   bzip2_found=0
19297 fi
19298
19299
19300 for ac_header in bzlib.h
19301 do
19302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19304   echo "$as_me:$LINENO: checking for $ac_header" >&5
19305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19307   echo $ECHO_N "(cached) $ECHO_C" >&6
19308 fi
19309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19311 else
19312   # Is the header compilable?
19313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19315 cat >conftest.$ac_ext <<_ACEOF
19316 /* confdefs.h.  */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h.  */
19321 $ac_includes_default
19322 #include <$ac_header>
19323 _ACEOF
19324 rm -f conftest.$ac_objext
19325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19326   (eval $ac_compile) 2>conftest.er1
19327   ac_status=$?
19328   grep -v '^ *+' conftest.er1 >conftest.err
19329   rm -f conftest.er1
19330   cat conftest.err >&5
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); } &&
19333          { ac_try='test -z "$ac_c_werror_flag"
19334                          || test ! -s conftest.err'
19335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336   (eval $ac_try) 2>&5
19337   ac_status=$?
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); }; } &&
19340          { ac_try='test -s conftest.$ac_objext'
19341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342   (eval $ac_try) 2>&5
19343   ac_status=$?
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); }; }; then
19346   ac_header_compiler=yes
19347 else
19348   echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19350
19351 ac_header_compiler=no
19352 fi
19353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19355 echo "${ECHO_T}$ac_header_compiler" >&6
19356
19357 # Is the header present?
19358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19360 cat >conftest.$ac_ext <<_ACEOF
19361 /* confdefs.h.  */
19362 _ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h.  */
19366 #include <$ac_header>
19367 _ACEOF
19368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19369   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19370   ac_status=$?
19371   grep -v '^ *+' conftest.er1 >conftest.err
19372   rm -f conftest.er1
19373   cat conftest.err >&5
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); } >/dev/null; then
19376   if test -s conftest.err; then
19377     ac_cpp_err=$ac_c_preproc_warn_flag
19378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19379   else
19380     ac_cpp_err=
19381   fi
19382 else
19383   ac_cpp_err=yes
19384 fi
19385 if test -z "$ac_cpp_err"; then
19386   ac_header_preproc=yes
19387 else
19388   echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391   ac_header_preproc=no
19392 fi
19393 rm -f conftest.err conftest.$ac_ext
19394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19395 echo "${ECHO_T}$ac_header_preproc" >&6
19396
19397 # So?  What about this header?
19398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19399   yes:no: )
19400     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19404     ac_header_preproc=yes
19405     ;;
19406   no:yes:* )
19407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19409     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19410 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19411     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19413     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19414 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19417     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19419     (
19420       cat <<\_ASBOX
19421 ## ----------------------------------- ##
19422 ## Report this to llvmbugs@cs.uiuc.edu ##
19423 ## ----------------------------------- ##
19424 _ASBOX
19425     ) |
19426       sed "s/^/$as_me: WARNING:     /" >&2
19427     ;;
19428 esac
19429 echo "$as_me:$LINENO: checking for $ac_header" >&5
19430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19432   echo $ECHO_N "(cached) $ECHO_C" >&6
19433 else
19434   eval "$as_ac_Header=\$ac_header_preproc"
19435 fi
19436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19438
19439 fi
19440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19441   cat >>confdefs.h <<_ACEOF
19442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19443 _ACEOF
19444  bzlib_h_found=1
19445 else
19446   bzlib_h_found=0
19447 fi
19448
19449 done
19450
19451 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19452 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19453 if test "${ac_cv_lib_z_gzopen+set}" = set; then
19454   echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456   ac_check_lib_save_LIBS=$LIBS
19457 LIBS="-lz  $LIBS"
19458 cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h.  */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h.  */
19464
19465 /* Override any gcc2 internal prototype to avoid an error.  */
19466 #ifdef __cplusplus
19467 extern "C"
19468 #endif
19469 /* We use char because int might match the return type of a gcc2
19470    builtin and then its argument prototype would still apply.  */
19471 char gzopen ();
19472 int
19473 main ()
19474 {
19475 gzopen ();
19476   ;
19477   return 0;
19478 }
19479 _ACEOF
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19482   (eval $ac_link) 2>conftest.er1
19483   ac_status=$?
19484   grep -v '^ *+' conftest.er1 >conftest.err
19485   rm -f conftest.er1
19486   cat conftest.err >&5
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); } &&
19489          { ac_try='test -z "$ac_c_werror_flag"
19490                          || test ! -s conftest.err'
19491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492   (eval $ac_try) 2>&5
19493   ac_status=$?
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); }; } &&
19496          { ac_try='test -s conftest$ac_exeext'
19497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498   (eval $ac_try) 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; }; then
19502   ac_cv_lib_z_gzopen=yes
19503 else
19504   echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19506
19507 ac_cv_lib_z_gzopen=no
19508 fi
19509 rm -f conftest.err conftest.$ac_objext \
19510       conftest$ac_exeext conftest.$ac_ext
19511 LIBS=$ac_check_lib_save_LIBS
19512 fi
19513 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19514 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19515 if test $ac_cv_lib_z_gzopen = yes; then
19516   zlib_found=1
19517 else
19518   zlib_found=0
19519 fi
19520
19521
19522 for ac_header in zlib.h
19523 do
19524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19526   echo "$as_me:$LINENO: checking for $ac_header" >&5
19527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19529   echo $ECHO_N "(cached) $ECHO_C" >&6
19530 fi
19531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19533 else
19534   # Is the header compilable?
19535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h.  */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h.  */
19543 $ac_includes_default
19544 #include <$ac_header>
19545 _ACEOF
19546 rm -f conftest.$ac_objext
19547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548   (eval $ac_compile) 2>conftest.er1
19549   ac_status=$?
19550   grep -v '^ *+' conftest.er1 >conftest.err
19551   rm -f conftest.er1
19552   cat conftest.err >&5
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } &&
19555          { ac_try='test -z "$ac_c_werror_flag"
19556                          || test ! -s conftest.err'
19557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558   (eval $ac_try) 2>&5
19559   ac_status=$?
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); }; } &&
19562          { ac_try='test -s conftest.$ac_objext'
19563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564   (eval $ac_try) 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }; }; then
19568   ac_header_compiler=yes
19569 else
19570   echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573 ac_header_compiler=no
19574 fi
19575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19577 echo "${ECHO_T}$ac_header_compiler" >&6
19578
19579 # Is the header present?
19580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588 #include <$ac_header>
19589 _ACEOF
19590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19592   ac_status=$?
19593   grep -v '^ *+' conftest.er1 >conftest.err
19594   rm -f conftest.er1
19595   cat conftest.err >&5
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); } >/dev/null; then
19598   if test -s conftest.err; then
19599     ac_cpp_err=$ac_c_preproc_warn_flag
19600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19601   else
19602     ac_cpp_err=
19603   fi
19604 else
19605   ac_cpp_err=yes
19606 fi
19607 if test -z "$ac_cpp_err"; then
19608   ac_header_preproc=yes
19609 else
19610   echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613   ac_header_preproc=no
19614 fi
19615 rm -f conftest.err conftest.$ac_ext
19616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19617 echo "${ECHO_T}$ac_header_preproc" >&6
19618
19619 # So?  What about this header?
19620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19621   yes:no: )
19622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19626     ac_header_preproc=yes
19627     ;;
19628   no:yes:* )
19629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19631     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19632 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19633     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19635     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19636 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19639     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19641     (
19642       cat <<\_ASBOX
19643 ## ----------------------------------- ##
19644 ## Report this to llvmbugs@cs.uiuc.edu ##
19645 ## ----------------------------------- ##
19646 _ASBOX
19647     ) |
19648       sed "s/^/$as_me: WARNING:     /" >&2
19649     ;;
19650 esac
19651 echo "$as_me:$LINENO: checking for $ac_header" >&5
19652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19654   echo $ECHO_N "(cached) $ECHO_C" >&6
19655 else
19656   eval "$as_ac_Header=\$ac_header_preproc"
19657 fi
19658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19660
19661 fi
19662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19663   cat >>confdefs.h <<_ACEOF
19664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19665 _ACEOF
19666  zlib_h_found=1
19667 else
19668   zlib_h_found=0
19669 fi
19670
19671 done
19672
19673 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define HAVE_ZLIB 1
19677 _ACEOF
19678
19679   HAVE_ZLIB=1
19680
19681 else
19682   HAVE_ZLIB=0
19683
19684 fi
19685 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
19686
19687 cat >>confdefs.h <<\_ACEOF
19688 #define HAVE_BZIP2 1
19689 _ACEOF
19690
19691   HAVE_BZIP2=1
19692
19693 else
19694   HAVE_BZIP2=0
19695
19696 fi
19697 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19698 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19699 if test "${ac_cv_search_dlopen+set}" = set; then
19700   echo $ECHO_N "(cached) $ECHO_C" >&6
19701 else
19702   ac_func_search_save_LIBS=$LIBS
19703 ac_cv_search_dlopen=no
19704 cat >conftest.$ac_ext <<_ACEOF
19705 /* confdefs.h.  */
19706 _ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h.  */
19710
19711 /* Override any gcc2 internal prototype to avoid an error.  */
19712 #ifdef __cplusplus
19713 extern "C"
19714 #endif
19715 /* We use char because int might match the return type of a gcc2
19716    builtin and then its argument prototype would still apply.  */
19717 char dlopen ();
19718 int
19719 main ()
19720 {
19721 dlopen ();
19722   ;
19723   return 0;
19724 }
19725 _ACEOF
19726 rm -f conftest.$ac_objext conftest$ac_exeext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19728   (eval $ac_link) 2>conftest.er1
19729   ac_status=$?
19730   grep -v '^ *+' conftest.er1 >conftest.err
19731   rm -f conftest.er1
19732   cat conftest.err >&5
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); } &&
19735          { ac_try='test -z "$ac_c_werror_flag"
19736                          || test ! -s conftest.err'
19737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738   (eval $ac_try) 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; } &&
19742          { ac_try='test -s conftest$ac_exeext'
19743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744   (eval $ac_try) 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); }; }; then
19748   ac_cv_search_dlopen="none required"
19749 else
19750   echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753 fi
19754 rm -f conftest.err conftest.$ac_objext \
19755       conftest$ac_exeext conftest.$ac_ext
19756 if test "$ac_cv_search_dlopen" = no; then
19757   for ac_lib in dl; do
19758     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19759     cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h.  */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h.  */
19765
19766 /* Override any gcc2 internal prototype to avoid an error.  */
19767 #ifdef __cplusplus
19768 extern "C"
19769 #endif
19770 /* We use char because int might match the return type of a gcc2
19771    builtin and then its argument prototype would still apply.  */
19772 char dlopen ();
19773 int
19774 main ()
19775 {
19776 dlopen ();
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19783   (eval $ac_link) 2>conftest.er1
19784   ac_status=$?
19785   grep -v '^ *+' conftest.er1 >conftest.err
19786   rm -f conftest.er1
19787   cat conftest.err >&5
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); } &&
19790          { ac_try='test -z "$ac_c_werror_flag"
19791                          || test ! -s conftest.err'
19792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793   (eval $ac_try) 2>&5
19794   ac_status=$?
19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); }; } &&
19797          { ac_try='test -s conftest$ac_exeext'
19798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799   (eval $ac_try) 2>&5
19800   ac_status=$?
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); }; }; then
19803   ac_cv_search_dlopen="-l$ac_lib"
19804 break
19805 else
19806   echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19808
19809 fi
19810 rm -f conftest.err conftest.$ac_objext \
19811       conftest$ac_exeext conftest.$ac_ext
19812   done
19813 fi
19814 LIBS=$ac_func_search_save_LIBS
19815 fi
19816 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19817 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19818 if test "$ac_cv_search_dlopen" != no; then
19819   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19820
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_DLOPEN 1
19823 _ACEOF
19824
19825 else
19826   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19827 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19828 fi
19829
19830
19831 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19832 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19833 if test "${ac_cv_search_mallinfo+set}" = set; then
19834   echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836   ac_func_search_save_LIBS=$LIBS
19837 ac_cv_search_mallinfo=no
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h.  */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h.  */
19844
19845 /* Override any gcc2 internal prototype to avoid an error.  */
19846 #ifdef __cplusplus
19847 extern "C"
19848 #endif
19849 /* We use char because int might match the return type of a gcc2
19850    builtin and then its argument prototype would still apply.  */
19851 char mallinfo ();
19852 int
19853 main ()
19854 {
19855 mallinfo ();
19856   ;
19857   return 0;
19858 }
19859 _ACEOF
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19862   (eval $ac_link) 2>conftest.er1
19863   ac_status=$?
19864   grep -v '^ *+' conftest.er1 >conftest.err
19865   rm -f conftest.er1
19866   cat conftest.err >&5
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); } &&
19869          { ac_try='test -z "$ac_c_werror_flag"
19870                          || test ! -s conftest.err'
19871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872   (eval $ac_try) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); }; } &&
19876          { ac_try='test -s conftest$ac_exeext'
19877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878   (eval $ac_try) 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); }; }; then
19882   ac_cv_search_mallinfo="none required"
19883 else
19884   echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19886
19887 fi
19888 rm -f conftest.err conftest.$ac_objext \
19889       conftest$ac_exeext conftest.$ac_ext
19890 if test "$ac_cv_search_mallinfo" = no; then
19891   for ac_lib in malloc; do
19892     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19893     cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h.  */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h.  */
19899
19900 /* Override any gcc2 internal prototype to avoid an error.  */
19901 #ifdef __cplusplus
19902 extern "C"
19903 #endif
19904 /* We use char because int might match the return type of a gcc2
19905    builtin and then its argument prototype would still apply.  */
19906 char mallinfo ();
19907 int
19908 main ()
19909 {
19910 mallinfo ();
19911   ;
19912   return 0;
19913 }
19914 _ACEOF
19915 rm -f conftest.$ac_objext conftest$ac_exeext
19916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19917   (eval $ac_link) 2>conftest.er1
19918   ac_status=$?
19919   grep -v '^ *+' conftest.er1 >conftest.err
19920   rm -f conftest.er1
19921   cat conftest.err >&5
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); } &&
19924          { ac_try='test -z "$ac_c_werror_flag"
19925                          || test ! -s conftest.err'
19926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927   (eval $ac_try) 2>&5
19928   ac_status=$?
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); }; } &&
19931          { ac_try='test -s conftest$ac_exeext'
19932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933   (eval $ac_try) 2>&5
19934   ac_status=$?
19935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936   (exit $ac_status); }; }; then
19937   ac_cv_search_mallinfo="-l$ac_lib"
19938 break
19939 else
19940   echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19942
19943 fi
19944 rm -f conftest.err conftest.$ac_objext \
19945       conftest$ac_exeext conftest.$ac_ext
19946   done
19947 fi
19948 LIBS=$ac_func_search_save_LIBS
19949 fi
19950 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19951 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19952 if test "$ac_cv_search_mallinfo" != no; then
19953   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19954
19955 cat >>confdefs.h <<\_ACEOF
19956 #define HAVE_MALLINFO 1
19957 _ACEOF
19958
19959 fi
19960
19961
19962 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19963 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19964 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19965   echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967   ac_func_search_save_LIBS=$LIBS
19968 ac_cv_search_pthread_mutex_lock=no
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h.  */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h.  */
19975
19976 /* Override any gcc2 internal prototype to avoid an error.  */
19977 #ifdef __cplusplus
19978 extern "C"
19979 #endif
19980 /* We use char because int might match the return type of a gcc2
19981    builtin and then its argument prototype would still apply.  */
19982 char pthread_mutex_lock ();
19983 int
19984 main ()
19985 {
19986 pthread_mutex_lock ();
19987   ;
19988   return 0;
19989 }
19990 _ACEOF
19991 rm -f conftest.$ac_objext conftest$ac_exeext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19993   (eval $ac_link) 2>conftest.er1
19994   ac_status=$?
19995   grep -v '^ *+' conftest.er1 >conftest.err
19996   rm -f conftest.er1
19997   cat conftest.err >&5
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } &&
20000          { ac_try='test -z "$ac_c_werror_flag"
20001                          || test ! -s conftest.err'
20002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003   (eval $ac_try) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; } &&
20007          { ac_try='test -s conftest$ac_exeext'
20008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009   (eval $ac_try) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; }; then
20013   ac_cv_search_pthread_mutex_lock="none required"
20014 else
20015   echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018 fi
20019 rm -f conftest.err conftest.$ac_objext \
20020       conftest$ac_exeext conftest.$ac_ext
20021 if test "$ac_cv_search_pthread_mutex_lock" = no; then
20022   for ac_lib in pthread; do
20023     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20024     cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h.  */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h.  */
20030
20031 /* Override any gcc2 internal prototype to avoid an error.  */
20032 #ifdef __cplusplus
20033 extern "C"
20034 #endif
20035 /* We use char because int might match the return type of a gcc2
20036    builtin and then its argument prototype would still apply.  */
20037 char pthread_mutex_lock ();
20038 int
20039 main ()
20040 {
20041 pthread_mutex_lock ();
20042   ;
20043   return 0;
20044 }
20045 _ACEOF
20046 rm -f conftest.$ac_objext conftest$ac_exeext
20047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20048   (eval $ac_link) 2>conftest.er1
20049   ac_status=$?
20050   grep -v '^ *+' conftest.er1 >conftest.err
20051   rm -f conftest.er1
20052   cat conftest.err >&5
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); } &&
20055          { ac_try='test -z "$ac_c_werror_flag"
20056                          || test ! -s conftest.err'
20057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058   (eval $ac_try) 2>&5
20059   ac_status=$?
20060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061   (exit $ac_status); }; } &&
20062          { ac_try='test -s conftest$ac_exeext'
20063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064   (eval $ac_try) 2>&5
20065   ac_status=$?
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); }; }; then
20068   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
20069 break
20070 else
20071   echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074 fi
20075 rm -f conftest.err conftest.$ac_objext \
20076       conftest$ac_exeext conftest.$ac_ext
20077   done
20078 fi
20079 LIBS=$ac_func_search_save_LIBS
20080 fi
20081 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20082 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20083 if test "$ac_cv_search_pthread_mutex_lock" != no; then
20084   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
20085
20086 cat >>confdefs.h <<\_ACEOF
20087 #define HAVE_PTHREAD_MUTEX_LOCK 1
20088 _ACEOF
20089
20090 fi
20091
20092
20093 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20094 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20095 if test "${ac_cv_header_stdc+set}" = set; then
20096   echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098   cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h.  */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h.  */
20104 #include <stdlib.h>
20105 #include <stdarg.h>
20106 #include <string.h>
20107 #include <float.h>
20108
20109 int
20110 main ()
20111 {
20112
20113   ;
20114   return 0;
20115 }
20116 _ACEOF
20117 rm -f conftest.$ac_objext
20118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20119   (eval $ac_compile) 2>conftest.er1
20120   ac_status=$?
20121   grep -v '^ *+' conftest.er1 >conftest.err
20122   rm -f conftest.er1
20123   cat conftest.err >&5
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); } &&
20126          { ac_try='test -z "$ac_c_werror_flag"
20127                          || test ! -s conftest.err'
20128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129   (eval $ac_try) 2>&5
20130   ac_status=$?
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); }; } &&
20133          { ac_try='test -s conftest.$ac_objext'
20134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135   (eval $ac_try) 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); }; }; then
20139   ac_cv_header_stdc=yes
20140 else
20141   echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20143
20144 ac_cv_header_stdc=no
20145 fi
20146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20147
20148 if test $ac_cv_header_stdc = yes; then
20149   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20150   cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h.  */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h.  */
20156 #include <string.h>
20157
20158 _ACEOF
20159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20160   $EGREP "memchr" >/dev/null 2>&1; then
20161   :
20162 else
20163   ac_cv_header_stdc=no
20164 fi
20165 rm -f conftest*
20166
20167 fi
20168
20169 if test $ac_cv_header_stdc = yes; then
20170   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20171   cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h.  */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h.  */
20177 #include <stdlib.h>
20178
20179 _ACEOF
20180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20181   $EGREP "free" >/dev/null 2>&1; then
20182   :
20183 else
20184   ac_cv_header_stdc=no
20185 fi
20186 rm -f conftest*
20187
20188 fi
20189
20190 if test $ac_cv_header_stdc = yes; then
20191   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20192   if test "$cross_compiling" = yes; then
20193   :
20194 else
20195   cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h.  */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h.  */
20201 #include <ctype.h>
20202 #if ((' ' & 0x0FF) == 0x020)
20203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20205 #else
20206 # define ISLOWER(c) \
20207                    (('a' <= (c) && (c) <= 'i') \
20208                      || ('j' <= (c) && (c) <= 'r') \
20209                      || ('s' <= (c) && (c) <= 'z'))
20210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20211 #endif
20212
20213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20214 int
20215 main ()
20216 {
20217   int i;
20218   for (i = 0; i < 256; i++)
20219     if (XOR (islower (i), ISLOWER (i))
20220         || toupper (i) != TOUPPER (i))
20221       exit(2);
20222   exit (0);
20223 }
20224 _ACEOF
20225 rm -f conftest$ac_exeext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20227   (eval $ac_link) 2>&5
20228   ac_status=$?
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232   (eval $ac_try) 2>&5
20233   ac_status=$?
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); }; }; then
20236   :
20237 else
20238   echo "$as_me: program exited with status $ac_status" >&5
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20241
20242 ( exit $ac_status )
20243 ac_cv_header_stdc=no
20244 fi
20245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20246 fi
20247 fi
20248 fi
20249 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20250 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20251 if test $ac_cv_header_stdc = yes; then
20252
20253 cat >>confdefs.h <<\_ACEOF
20254 #define STDC_HEADERS 1
20255 _ACEOF
20256
20257 fi
20258
20259 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20260 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20261 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20262   echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264   cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h.  */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h.  */
20270 #include <sys/types.h>
20271 #include <sys/wait.h>
20272 #ifndef WEXITSTATUS
20273 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20274 #endif
20275 #ifndef WIFEXITED
20276 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20277 #endif
20278
20279 int
20280 main ()
20281 {
20282   int s;
20283   wait (&s);
20284   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20285   ;
20286   return 0;
20287 }
20288 _ACEOF
20289 rm -f conftest.$ac_objext
20290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20291   (eval $ac_compile) 2>conftest.er1
20292   ac_status=$?
20293   grep -v '^ *+' conftest.er1 >conftest.err
20294   rm -f conftest.er1
20295   cat conftest.err >&5
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); } &&
20298          { ac_try='test -z "$ac_c_werror_flag"
20299                          || test ! -s conftest.err'
20300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301   (eval $ac_try) 2>&5
20302   ac_status=$?
20303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304   (exit $ac_status); }; } &&
20305          { ac_try='test -s conftest.$ac_objext'
20306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307   (eval $ac_try) 2>&5
20308   ac_status=$?
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); }; }; then
20311   ac_cv_header_sys_wait_h=yes
20312 else
20313   echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316 ac_cv_header_sys_wait_h=no
20317 fi
20318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20319 fi
20320 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20321 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20322 if test $ac_cv_header_sys_wait_h = yes; then
20323
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE_SYS_WAIT_H 1
20326 _ACEOF
20327
20328 fi
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
20343 do
20344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20346   echo "$as_me:$LINENO: checking for $ac_header" >&5
20347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 fi
20351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20353 else
20354   # Is the header compilable?
20355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20357 cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363 $ac_includes_default
20364 #include <$ac_header>
20365 _ACEOF
20366 rm -f conftest.$ac_objext
20367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20368   (eval $ac_compile) 2>conftest.er1
20369   ac_status=$?
20370   grep -v '^ *+' conftest.er1 >conftest.err
20371   rm -f conftest.er1
20372   cat conftest.err >&5
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); } &&
20375          { ac_try='test -z "$ac_c_werror_flag"
20376                          || test ! -s conftest.err'
20377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378   (eval $ac_try) 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; } &&
20382          { ac_try='test -s conftest.$ac_objext'
20383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384   (eval $ac_try) 2>&5
20385   ac_status=$?
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); }; }; then
20388   ac_header_compiler=yes
20389 else
20390   echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393 ac_header_compiler=no
20394 fi
20395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20397 echo "${ECHO_T}$ac_header_compiler" >&6
20398
20399 # Is the header present?
20400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20402 cat >conftest.$ac_ext <<_ACEOF
20403 /* confdefs.h.  */
20404 _ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h.  */
20408 #include <$ac_header>
20409 _ACEOF
20410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20412   ac_status=$?
20413   grep -v '^ *+' conftest.er1 >conftest.err
20414   rm -f conftest.er1
20415   cat conftest.err >&5
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } >/dev/null; then
20418   if test -s conftest.err; then
20419     ac_cpp_err=$ac_c_preproc_warn_flag
20420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20421   else
20422     ac_cpp_err=
20423   fi
20424 else
20425   ac_cpp_err=yes
20426 fi
20427 if test -z "$ac_cpp_err"; then
20428   ac_header_preproc=yes
20429 else
20430   echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433   ac_header_preproc=no
20434 fi
20435 rm -f conftest.err conftest.$ac_ext
20436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20437 echo "${ECHO_T}$ac_header_preproc" >&6
20438
20439 # So?  What about this header?
20440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20441   yes:no: )
20442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20446     ac_header_preproc=yes
20447     ;;
20448   no:yes:* )
20449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20461     (
20462       cat <<\_ASBOX
20463 ## ----------------------------------- ##
20464 ## Report this to llvmbugs@cs.uiuc.edu ##
20465 ## ----------------------------------- ##
20466 _ASBOX
20467     ) |
20468       sed "s/^/$as_me: WARNING:     /" >&2
20469     ;;
20470 esac
20471 echo "$as_me:$LINENO: checking for $ac_header" >&5
20472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476   eval "$as_ac_Header=\$ac_header_preproc"
20477 fi
20478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20480
20481 fi
20482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20483   cat >>confdefs.h <<_ACEOF
20484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20485 _ACEOF
20486
20487 fi
20488
20489 done
20490
20491
20492 if test "${ac_cv_header_sys_types_h+set}" = set; then
20493   echo "$as_me:$LINENO: checking for sys/types.h" >&5
20494 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20495 if test "${ac_cv_header_sys_types_h+set}" = set; then
20496   echo $ECHO_N "(cached) $ECHO_C" >&6
20497 fi
20498 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20499 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20500 else
20501   # Is the header compilable?
20502 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20503 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20504 cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 $ac_includes_default
20511 #include <sys/types.h>
20512 _ACEOF
20513 rm -f conftest.$ac_objext
20514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20515   (eval $ac_compile) 2>conftest.er1
20516   ac_status=$?
20517   grep -v '^ *+' conftest.er1 >conftest.err
20518   rm -f conftest.er1
20519   cat conftest.err >&5
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); } &&
20522          { ac_try='test -z "$ac_c_werror_flag"
20523                          || test ! -s conftest.err'
20524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525   (eval $ac_try) 2>&5
20526   ac_status=$?
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); }; } &&
20529          { ac_try='test -s conftest.$ac_objext'
20530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531   (eval $ac_try) 2>&5
20532   ac_status=$?
20533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534   (exit $ac_status); }; }; then
20535   ac_header_compiler=yes
20536 else
20537   echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20539
20540 ac_header_compiler=no
20541 fi
20542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20544 echo "${ECHO_T}$ac_header_compiler" >&6
20545
20546 # Is the header present?
20547 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20548 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20549 cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h.  */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h.  */
20555 #include <sys/types.h>
20556 _ACEOF
20557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20559   ac_status=$?
20560   grep -v '^ *+' conftest.er1 >conftest.err
20561   rm -f conftest.er1
20562   cat conftest.err >&5
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); } >/dev/null; then
20565   if test -s conftest.err; then
20566     ac_cpp_err=$ac_c_preproc_warn_flag
20567     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20568   else
20569     ac_cpp_err=
20570   fi
20571 else
20572   ac_cpp_err=yes
20573 fi
20574 if test -z "$ac_cpp_err"; then
20575   ac_header_preproc=yes
20576 else
20577   echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20579
20580   ac_header_preproc=no
20581 fi
20582 rm -f conftest.err conftest.$ac_ext
20583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20584 echo "${ECHO_T}$ac_header_preproc" >&6
20585
20586 # So?  What about this header?
20587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20588   yes:no: )
20589     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20590 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20591     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20592 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20593     ac_header_preproc=yes
20594     ;;
20595   no:yes:* )
20596     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20597 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20598     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20599 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20600     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20601 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20602     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20603 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20604     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20605 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20606     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20607 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20608     (
20609       cat <<\_ASBOX
20610 ## ----------------------------------- ##
20611 ## Report this to llvmbugs@cs.uiuc.edu ##
20612 ## ----------------------------------- ##
20613 _ASBOX
20614     ) |
20615       sed "s/^/$as_me: WARNING:     /" >&2
20616     ;;
20617 esac
20618 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20619 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20620 if test "${ac_cv_header_sys_types_h+set}" = set; then
20621   echo $ECHO_N "(cached) $ECHO_C" >&6
20622 else
20623   ac_cv_header_sys_types_h=$ac_header_preproc
20624 fi
20625 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20626 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20627
20628 fi
20629
20630
20631 if test "${ac_cv_header_inttypes_h+set}" = set; then
20632   echo "$as_me:$LINENO: checking for inttypes.h" >&5
20633 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20634 if test "${ac_cv_header_inttypes_h+set}" = set; then
20635   echo $ECHO_N "(cached) $ECHO_C" >&6
20636 fi
20637 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20638 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20639 else
20640   # Is the header compilable?
20641 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20642 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20643 cat >conftest.$ac_ext <<_ACEOF
20644 /* confdefs.h.  */
20645 _ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h.  */
20649 $ac_includes_default
20650 #include <inttypes.h>
20651 _ACEOF
20652 rm -f conftest.$ac_objext
20653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20654   (eval $ac_compile) 2>conftest.er1
20655   ac_status=$?
20656   grep -v '^ *+' conftest.er1 >conftest.err
20657   rm -f conftest.er1
20658   cat conftest.err >&5
20659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660   (exit $ac_status); } &&
20661          { ac_try='test -z "$ac_c_werror_flag"
20662                          || test ! -s conftest.err'
20663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664   (eval $ac_try) 2>&5
20665   ac_status=$?
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); }; } &&
20668          { ac_try='test -s conftest.$ac_objext'
20669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670   (eval $ac_try) 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; }; then
20674   ac_header_compiler=yes
20675 else
20676   echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679 ac_header_compiler=no
20680 fi
20681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20683 echo "${ECHO_T}$ac_header_compiler" >&6
20684
20685 # Is the header present?
20686 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20687 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h.  */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h.  */
20694 #include <inttypes.h>
20695 _ACEOF
20696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20698   ac_status=$?
20699   grep -v '^ *+' conftest.er1 >conftest.err
20700   rm -f conftest.er1
20701   cat conftest.err >&5
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); } >/dev/null; then
20704   if test -s conftest.err; then
20705     ac_cpp_err=$ac_c_preproc_warn_flag
20706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20707   else
20708     ac_cpp_err=
20709   fi
20710 else
20711   ac_cpp_err=yes
20712 fi
20713 if test -z "$ac_cpp_err"; then
20714   ac_header_preproc=yes
20715 else
20716   echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719   ac_header_preproc=no
20720 fi
20721 rm -f conftest.err conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20723 echo "${ECHO_T}$ac_header_preproc" >&6
20724
20725 # So?  What about this header?
20726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20727   yes:no: )
20728     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20729 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20730     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20731 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20732     ac_header_preproc=yes
20733     ;;
20734   no:yes:* )
20735     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20736 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20737     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20738 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20739     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20740 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20741     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20742 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20743     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20744 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20745     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20746 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20747     (
20748       cat <<\_ASBOX
20749 ## ----------------------------------- ##
20750 ## Report this to llvmbugs@cs.uiuc.edu ##
20751 ## ----------------------------------- ##
20752 _ASBOX
20753     ) |
20754       sed "s/^/$as_me: WARNING:     /" >&2
20755     ;;
20756 esac
20757 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20758 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20759 if test "${ac_cv_header_inttypes_h+set}" = set; then
20760   echo $ECHO_N "(cached) $ECHO_C" >&6
20761 else
20762   ac_cv_header_inttypes_h=$ac_header_preproc
20763 fi
20764 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20765 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20766
20767 fi
20768
20769
20770 if test "${ac_cv_header_stdint_h+set}" = set; then
20771   echo "$as_me:$LINENO: checking for stdint.h" >&5
20772 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20773 if test "${ac_cv_header_stdint_h+set}" = set; then
20774   echo $ECHO_N "(cached) $ECHO_C" >&6
20775 fi
20776 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20777 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20778 else
20779   # Is the header compilable?
20780 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20781 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20782 cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h.  */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h.  */
20788 $ac_includes_default
20789 #include <stdint.h>
20790 _ACEOF
20791 rm -f conftest.$ac_objext
20792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20793   (eval $ac_compile) 2>conftest.er1
20794   ac_status=$?
20795   grep -v '^ *+' conftest.er1 >conftest.err
20796   rm -f conftest.er1
20797   cat conftest.err >&5
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); } &&
20800          { ac_try='test -z "$ac_c_werror_flag"
20801                          || test ! -s conftest.err'
20802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803   (eval $ac_try) 2>&5
20804   ac_status=$?
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); }; } &&
20807          { ac_try='test -s conftest.$ac_objext'
20808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809   (eval $ac_try) 2>&5
20810   ac_status=$?
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); }; }; then
20813   ac_header_compiler=yes
20814 else
20815   echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20817
20818 ac_header_compiler=no
20819 fi
20820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20822 echo "${ECHO_T}$ac_header_compiler" >&6
20823
20824 # Is the header present?
20825 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20826 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20827 cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h.  */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h.  */
20833 #include <stdint.h>
20834 _ACEOF
20835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20837   ac_status=$?
20838   grep -v '^ *+' conftest.er1 >conftest.err
20839   rm -f conftest.er1
20840   cat conftest.err >&5
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); } >/dev/null; then
20843   if test -s conftest.err; then
20844     ac_cpp_err=$ac_c_preproc_warn_flag
20845     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20846   else
20847     ac_cpp_err=
20848   fi
20849 else
20850   ac_cpp_err=yes
20851 fi
20852 if test -z "$ac_cpp_err"; then
20853   ac_header_preproc=yes
20854 else
20855   echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20857
20858   ac_header_preproc=no
20859 fi
20860 rm -f conftest.err conftest.$ac_ext
20861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20862 echo "${ECHO_T}$ac_header_preproc" >&6
20863
20864 # So?  What about this header?
20865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20866   yes:no: )
20867     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20868 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20869     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20870 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20871     ac_header_preproc=yes
20872     ;;
20873   no:yes:* )
20874     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20875 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20876     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20877 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20878     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20879 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20880     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20881 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20882     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20883 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20884     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20885 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20886     (
20887       cat <<\_ASBOX
20888 ## ----------------------------------- ##
20889 ## Report this to llvmbugs@cs.uiuc.edu ##
20890 ## ----------------------------------- ##
20891 _ASBOX
20892     ) |
20893       sed "s/^/$as_me: WARNING:     /" >&2
20894     ;;
20895 esac
20896 echo "$as_me:$LINENO: checking for stdint.h" >&5
20897 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20898 if test "${ac_cv_header_stdint_h+set}" = set; then
20899   echo $ECHO_N "(cached) $ECHO_C" >&6
20900 else
20901   ac_cv_header_stdint_h=$ac_header_preproc
20902 fi
20903 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20904 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20905
20906 fi
20907
20908
20909
20910 echo "$as_me:$LINENO: checking for pid_t" >&5
20911 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20912 if test "${ac_cv_type_pid_t+set}" = set; then
20913   echo $ECHO_N "(cached) $ECHO_C" >&6
20914 else
20915   cat >conftest.$ac_ext <<_ACEOF
20916 /* confdefs.h.  */
20917 _ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h.  */
20921 $ac_includes_default
20922 int
20923 main ()
20924 {
20925 if ((pid_t *) 0)
20926   return 0;
20927 if (sizeof (pid_t))
20928   return 0;
20929   ;
20930   return 0;
20931 }
20932 _ACEOF
20933 rm -f conftest.$ac_objext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20935   (eval $ac_compile) 2>conftest.er1
20936   ac_status=$?
20937   grep -v '^ *+' conftest.er1 >conftest.err
20938   rm -f conftest.er1
20939   cat conftest.err >&5
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } &&
20942          { ac_try='test -z "$ac_c_werror_flag"
20943                          || test ! -s conftest.err'
20944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945   (eval $ac_try) 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); }; } &&
20949          { ac_try='test -s conftest.$ac_objext'
20950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951   (eval $ac_try) 2>&5
20952   ac_status=$?
20953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954   (exit $ac_status); }; }; then
20955   ac_cv_type_pid_t=yes
20956 else
20957   echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20959
20960 ac_cv_type_pid_t=no
20961 fi
20962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20963 fi
20964 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20965 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20966 if test $ac_cv_type_pid_t = yes; then
20967   :
20968 else
20969
20970 cat >>confdefs.h <<_ACEOF
20971 #define pid_t int
20972 _ACEOF
20973
20974 fi
20975
20976 echo "$as_me:$LINENO: checking for size_t" >&5
20977 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20978 if test "${ac_cv_type_size_t+set}" = set; then
20979   echo $ECHO_N "(cached) $ECHO_C" >&6
20980 else
20981   cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h.  */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h.  */
20987 $ac_includes_default
20988 int
20989 main ()
20990 {
20991 if ((size_t *) 0)
20992   return 0;
20993 if (sizeof (size_t))
20994   return 0;
20995   ;
20996   return 0;
20997 }
20998 _ACEOF
20999 rm -f conftest.$ac_objext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001   (eval $ac_compile) 2>conftest.er1
21002   ac_status=$?
21003   grep -v '^ *+' conftest.er1 >conftest.err
21004   rm -f conftest.er1
21005   cat conftest.err >&5
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); } &&
21008          { ac_try='test -z "$ac_c_werror_flag"
21009                          || test ! -s conftest.err'
21010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011   (eval $ac_try) 2>&5
21012   ac_status=$?
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); }; } &&
21015          { ac_try='test -s conftest.$ac_objext'
21016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017   (eval $ac_try) 2>&5
21018   ac_status=$?
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); }; }; then
21021   ac_cv_type_size_t=yes
21022 else
21023   echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026 ac_cv_type_size_t=no
21027 fi
21028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21029 fi
21030 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21031 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21032 if test $ac_cv_type_size_t = yes; then
21033   :
21034 else
21035
21036 cat >>confdefs.h <<_ACEOF
21037 #define size_t unsigned
21038 _ACEOF
21039
21040 fi
21041
21042 echo "$as_me:$LINENO: checking for int64_t" >&5
21043 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
21044 if test "${ac_cv_type_int64_t+set}" = set; then
21045   echo $ECHO_N "(cached) $ECHO_C" >&6
21046 else
21047   cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053 $ac_includes_default
21054 int
21055 main ()
21056 {
21057 if ((int64_t *) 0)
21058   return 0;
21059 if (sizeof (int64_t))
21060   return 0;
21061   ;
21062   return 0;
21063 }
21064 _ACEOF
21065 rm -f conftest.$ac_objext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21067   (eval $ac_compile) 2>conftest.er1
21068   ac_status=$?
21069   grep -v '^ *+' conftest.er1 >conftest.err
21070   rm -f conftest.er1
21071   cat conftest.err >&5
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); } &&
21074          { ac_try='test -z "$ac_c_werror_flag"
21075                          || test ! -s conftest.err'
21076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077   (eval $ac_try) 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); }; } &&
21081          { ac_try='test -s conftest.$ac_objext'
21082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083   (eval $ac_try) 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); }; }; then
21087   ac_cv_type_int64_t=yes
21088 else
21089   echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21091
21092 ac_cv_type_int64_t=no
21093 fi
21094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21095 fi
21096 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21097 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21098 if test $ac_cv_type_int64_t = yes; then
21099
21100 cat >>confdefs.h <<_ACEOF
21101 #define HAVE_INT64_T 1
21102 _ACEOF
21103
21104
21105 else
21106   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21107 echo "$as_me: error: Type int64_t required but not found" >&2;}
21108    { (exit 1); exit 1; }; }
21109 fi
21110
21111 echo "$as_me:$LINENO: checking for uint64_t" >&5
21112 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21113 if test "${ac_cv_type_uint64_t+set}" = set; then
21114   echo $ECHO_N "(cached) $ECHO_C" >&6
21115 else
21116   cat >conftest.$ac_ext <<_ACEOF
21117 /* confdefs.h.  */
21118 _ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h.  */
21122 $ac_includes_default
21123 int
21124 main ()
21125 {
21126 if ((uint64_t *) 0)
21127   return 0;
21128 if (sizeof (uint64_t))
21129   return 0;
21130   ;
21131   return 0;
21132 }
21133 _ACEOF
21134 rm -f conftest.$ac_objext
21135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21136   (eval $ac_compile) 2>conftest.er1
21137   ac_status=$?
21138   grep -v '^ *+' conftest.er1 >conftest.err
21139   rm -f conftest.er1
21140   cat conftest.err >&5
21141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142   (exit $ac_status); } &&
21143          { ac_try='test -z "$ac_c_werror_flag"
21144                          || test ! -s conftest.err'
21145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146   (eval $ac_try) 2>&5
21147   ac_status=$?
21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149   (exit $ac_status); }; } &&
21150          { ac_try='test -s conftest.$ac_objext'
21151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152   (eval $ac_try) 2>&5
21153   ac_status=$?
21154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); }; }; then
21156   ac_cv_type_uint64_t=yes
21157 else
21158   echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161 ac_cv_type_uint64_t=no
21162 fi
21163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21164 fi
21165 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21166 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21167 if test $ac_cv_type_uint64_t = yes; then
21168
21169 cat >>confdefs.h <<_ACEOF
21170 #define HAVE_UINT64_T 1
21171 _ACEOF
21172
21173
21174 else
21175   echo "$as_me:$LINENO: checking for u_int64_t" >&5
21176 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21177 if test "${ac_cv_type_u_int64_t+set}" = set; then
21178   echo $ECHO_N "(cached) $ECHO_C" >&6
21179 else
21180   cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h.  */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h.  */
21186 $ac_includes_default
21187 int
21188 main ()
21189 {
21190 if ((u_int64_t *) 0)
21191   return 0;
21192 if (sizeof (u_int64_t))
21193   return 0;
21194   ;
21195   return 0;
21196 }
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200   (eval $ac_compile) 2>conftest.er1
21201   ac_status=$?
21202   grep -v '^ *+' conftest.er1 >conftest.err
21203   rm -f conftest.er1
21204   cat conftest.err >&5
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); } &&
21207          { ac_try='test -z "$ac_c_werror_flag"
21208                          || test ! -s conftest.err'
21209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210   (eval $ac_try) 2>&5
21211   ac_status=$?
21212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213   (exit $ac_status); }; } &&
21214          { ac_try='test -s conftest.$ac_objext'
21215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216   (eval $ac_try) 2>&5
21217   ac_status=$?
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); }; }; then
21220   ac_cv_type_u_int64_t=yes
21221 else
21222   echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21224
21225 ac_cv_type_u_int64_t=no
21226 fi
21227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21228 fi
21229 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21230 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21231 if test $ac_cv_type_u_int64_t = yes; then
21232
21233 cat >>confdefs.h <<_ACEOF
21234 #define HAVE_U_INT64_T 1
21235 _ACEOF
21236
21237
21238 else
21239   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21240 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21241    { (exit 1); exit 1; }; }
21242 fi
21243
21244 fi
21245
21246 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21247 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21248 if test "${ac_cv_header_time+set}" = set; then
21249   echo $ECHO_N "(cached) $ECHO_C" >&6
21250 else
21251   cat >conftest.$ac_ext <<_ACEOF
21252 /* confdefs.h.  */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h.  */
21257 #include <sys/types.h>
21258 #include <sys/time.h>
21259 #include <time.h>
21260
21261 int
21262 main ()
21263 {
21264 if ((struct tm *) 0)
21265 return 0;
21266   ;
21267   return 0;
21268 }
21269 _ACEOF
21270 rm -f conftest.$ac_objext
21271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21272   (eval $ac_compile) 2>conftest.er1
21273   ac_status=$?
21274   grep -v '^ *+' conftest.er1 >conftest.err
21275   rm -f conftest.er1
21276   cat conftest.err >&5
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); } &&
21279          { ac_try='test -z "$ac_c_werror_flag"
21280                          || test ! -s conftest.err'
21281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282   (eval $ac_try) 2>&5
21283   ac_status=$?
21284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285   (exit $ac_status); }; } &&
21286          { ac_try='test -s conftest.$ac_objext'
21287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288   (eval $ac_try) 2>&5
21289   ac_status=$?
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); }; }; then
21292   ac_cv_header_time=yes
21293 else
21294   echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21296
21297 ac_cv_header_time=no
21298 fi
21299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21300 fi
21301 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21302 echo "${ECHO_T}$ac_cv_header_time" >&6
21303 if test $ac_cv_header_time = yes; then
21304
21305 cat >>confdefs.h <<\_ACEOF
21306 #define TIME_WITH_SYS_TIME 1
21307 _ACEOF
21308
21309 fi
21310
21311 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21312 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21313 if test "${ac_cv_struct_tm+set}" = set; then
21314   echo $ECHO_N "(cached) $ECHO_C" >&6
21315 else
21316   cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322 #include <sys/types.h>
21323 #include <time.h>
21324
21325 int
21326 main ()
21327 {
21328 struct tm *tp; tp->tm_sec;
21329   ;
21330   return 0;
21331 }
21332 _ACEOF
21333 rm -f conftest.$ac_objext
21334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21335   (eval $ac_compile) 2>conftest.er1
21336   ac_status=$?
21337   grep -v '^ *+' conftest.er1 >conftest.err
21338   rm -f conftest.er1
21339   cat conftest.err >&5
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); } &&
21342          { ac_try='test -z "$ac_c_werror_flag"
21343                          || test ! -s conftest.err'
21344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345   (eval $ac_try) 2>&5
21346   ac_status=$?
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); }; } &&
21349          { ac_try='test -s conftest.$ac_objext'
21350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351   (eval $ac_try) 2>&5
21352   ac_status=$?
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); }; }; then
21355   ac_cv_struct_tm=time.h
21356 else
21357   echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21359
21360 ac_cv_struct_tm=sys/time.h
21361 fi
21362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21363 fi
21364 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21365 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21366 if test $ac_cv_struct_tm = sys/time.h; then
21367
21368 cat >>confdefs.h <<\_ACEOF
21369 #define TM_IN_SYS_TIME 1
21370 _ACEOF
21371
21372 fi
21373
21374
21375
21376   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
21377 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
21378   ac_ext=c
21379 ac_cpp='$CPP $CPPFLAGS'
21380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21383
21384   if test "$cross_compiling" = yes; then
21385   ac_c_printf_a=no
21386 else
21387   cat >conftest.$ac_ext <<_ACEOF
21388
21389     /* confdefs.h.  */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h.  */
21394
21395 #include <stdio.h>
21396 #include <stdlib.h>
21397
21398 int
21399 main ()
21400 {
21401
21402 volatile double A, B;
21403 char Buffer[100];
21404 A = 1;
21405 A /= 10.0;
21406 sprintf(Buffer, "%a", A);
21407 B = atof(Buffer);
21408 if (A != B)
21409   return (1);
21410 if (A != 0x1.999999999999ap-4)
21411   return (1);
21412 return (0);
21413   ;
21414   return 0;
21415 }
21416 _ACEOF
21417 rm -f conftest$ac_exeext
21418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21419   (eval $ac_link) 2>&5
21420   ac_status=$?
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424   (eval $ac_try) 2>&5
21425   ac_status=$?
21426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427   (exit $ac_status); }; }; then
21428   ac_c_printf_a=yes
21429 else
21430   echo "$as_me: program exited with status $ac_status" >&5
21431 echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21433
21434 ( exit $ac_status )
21435 ac_c_printf_a=no
21436 fi
21437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21438 fi
21439  ac_ext=c
21440 ac_cpp='$CPP $CPPFLAGS'
21441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21444
21445  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
21446 echo "${ECHO_T}$ac_c_printf_a" >&6
21447  if test "$ac_c_printf_a" = "yes"; then
21448
21449 cat >>confdefs.h <<\_ACEOF
21450 #define HAVE_PRINTF_A 1
21451 _ACEOF
21452
21453  fi
21454
21455
21456 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21457 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21458 if test "${ac_cv_c_bigendian+set}" = set; then
21459   echo $ECHO_N "(cached) $ECHO_C" >&6
21460 else
21461   # See if sys/param.h defines the BYTE_ORDER macro.
21462 cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468 #include <sys/types.h>
21469 #include <sys/param.h>
21470
21471 int
21472 main ()
21473 {
21474 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21475  bogus endian macros
21476 #endif
21477
21478   ;
21479   return 0;
21480 }
21481 _ACEOF
21482 rm -f conftest.$ac_objext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21484   (eval $ac_compile) 2>conftest.er1
21485   ac_status=$?
21486   grep -v '^ *+' conftest.er1 >conftest.err
21487   rm -f conftest.er1
21488   cat conftest.err >&5
21489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490   (exit $ac_status); } &&
21491          { ac_try='test -z "$ac_c_werror_flag"
21492                          || test ! -s conftest.err'
21493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494   (eval $ac_try) 2>&5
21495   ac_status=$?
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); }; } &&
21498          { ac_try='test -s conftest.$ac_objext'
21499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500   (eval $ac_try) 2>&5
21501   ac_status=$?
21502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503   (exit $ac_status); }; }; then
21504   # It does; now see whether it defined to BIG_ENDIAN or not.
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511 #include <sys/types.h>
21512 #include <sys/param.h>
21513
21514 int
21515 main ()
21516 {
21517 #if BYTE_ORDER != BIG_ENDIAN
21518  not big endian
21519 #endif
21520
21521   ;
21522   return 0;
21523 }
21524 _ACEOF
21525 rm -f conftest.$ac_objext
21526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21527   (eval $ac_compile) 2>conftest.er1
21528   ac_status=$?
21529   grep -v '^ *+' conftest.er1 >conftest.err
21530   rm -f conftest.er1
21531   cat conftest.err >&5
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); } &&
21534          { ac_try='test -z "$ac_c_werror_flag"
21535                          || test ! -s conftest.err'
21536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537   (eval $ac_try) 2>&5
21538   ac_status=$?
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); }; } &&
21541          { ac_try='test -s conftest.$ac_objext'
21542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543   (eval $ac_try) 2>&5
21544   ac_status=$?
21545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546   (exit $ac_status); }; }; then
21547   ac_cv_c_bigendian=yes
21548 else
21549   echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21551
21552 ac_cv_c_bigendian=no
21553 fi
21554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21555 else
21556   echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559 # It does not; compile a test program.
21560 if test "$cross_compiling" = yes; then
21561   # try to guess the endianness by grepping values into an object file
21562   ac_cv_c_bigendian=unknown
21563   cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h.  */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h.  */
21569 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21570 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21571 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21572 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21573 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21574 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21575 int
21576 main ()
21577 {
21578  _ascii (); _ebcdic ();
21579   ;
21580   return 0;
21581 }
21582 _ACEOF
21583 rm -f conftest.$ac_objext
21584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21585   (eval $ac_compile) 2>conftest.er1
21586   ac_status=$?
21587   grep -v '^ *+' conftest.er1 >conftest.err
21588   rm -f conftest.er1
21589   cat conftest.err >&5
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); } &&
21592          { ac_try='test -z "$ac_c_werror_flag"
21593                          || test ! -s conftest.err'
21594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595   (eval $ac_try) 2>&5
21596   ac_status=$?
21597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598   (exit $ac_status); }; } &&
21599          { ac_try='test -s conftest.$ac_objext'
21600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601   (eval $ac_try) 2>&5
21602   ac_status=$?
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); }; }; then
21605   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21606   ac_cv_c_bigendian=yes
21607 fi
21608 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21609   if test "$ac_cv_c_bigendian" = unknown; then
21610     ac_cv_c_bigendian=no
21611   else
21612     # finding both strings is unlikely to happen, but who knows?
21613     ac_cv_c_bigendian=unknown
21614   fi
21615 fi
21616 else
21617   echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21619
21620 fi
21621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21622 else
21623   cat >conftest.$ac_ext <<_ACEOF
21624 /* confdefs.h.  */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h.  */
21629 int
21630 main ()
21631 {
21632   /* Are we little or big endian?  From Harbison&Steele.  */
21633   union
21634   {
21635     long l;
21636     char c[sizeof (long)];
21637   } u;
21638   u.l = 1;
21639   exit (u.c[sizeof (long) - 1] == 1);
21640 }
21641 _ACEOF
21642 rm -f conftest$ac_exeext
21643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21644   (eval $ac_link) 2>&5
21645   ac_status=$?
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649   (eval $ac_try) 2>&5
21650   ac_status=$?
21651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652   (exit $ac_status); }; }; then
21653   ac_cv_c_bigendian=no
21654 else
21655   echo "$as_me: program exited with status $ac_status" >&5
21656 echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21658
21659 ( exit $ac_status )
21660 ac_cv_c_bigendian=yes
21661 fi
21662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21663 fi
21664 fi
21665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21666 fi
21667 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21668 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21669 case $ac_cv_c_bigendian in
21670   yes)
21671     ENDIAN=big
21672  ;;
21673   no)
21674     ENDIAN=little
21675  ;;
21676   *)
21677     { { echo "$as_me:$LINENO: error: unknown endianness
21678 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21679 echo "$as_me: error: unknown endianness
21680 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21681    { (exit 1); exit 1; }; } ;;
21682 esac
21683
21684
21685 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21686 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21687 if test "${ac_cv_cxx_namespaces+set}" = set; then
21688   echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690   ac_ext=cc
21691 ac_cpp='$CXXCPP $CPPFLAGS'
21692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21695
21696  cat >conftest.$ac_ext <<_ACEOF
21697 /* confdefs.h.  */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h.  */
21702 namespace Outer { namespace Inner { int i = 0; }}
21703 int
21704 main ()
21705 {
21706 using namespace Outer::Inner; return i;
21707   ;
21708   return 0;
21709 }
21710 _ACEOF
21711 rm -f conftest.$ac_objext
21712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21713   (eval $ac_compile) 2>conftest.er1
21714   ac_status=$?
21715   grep -v '^ *+' conftest.er1 >conftest.err
21716   rm -f conftest.er1
21717   cat conftest.err >&5
21718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719   (exit $ac_status); } &&
21720          { ac_try='test -z "$ac_cxx_werror_flag"
21721                          || test ! -s conftest.err'
21722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723   (eval $ac_try) 2>&5
21724   ac_status=$?
21725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726   (exit $ac_status); }; } &&
21727          { ac_try='test -s conftest.$ac_objext'
21728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21729   (eval $ac_try) 2>&5
21730   ac_status=$?
21731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732   (exit $ac_status); }; }; then
21733   ac_cv_cxx_namespaces=yes
21734 else
21735   echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21737
21738 ac_cv_cxx_namespaces=no
21739 fi
21740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21741  ac_ext=c
21742 ac_cpp='$CPP $CPPFLAGS'
21743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21746
21747
21748 fi
21749 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21750 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21751 if test "$ac_cv_cxx_namespaces" = yes; then
21752
21753 cat >>confdefs.h <<\_ACEOF
21754 #define HAVE_NAMESPACES
21755 _ACEOF
21756
21757 fi
21758
21759 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21760 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21761 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21762   echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764
21765   ac_ext=cc
21766 ac_cpp='$CXXCPP $CPPFLAGS'
21767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21770
21771   cat >conftest.$ac_ext <<_ACEOF
21772 /* confdefs.h.  */
21773 _ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h.  */
21777 #include <ext/hash_map>
21778 #ifdef HAVE_NAMESPACES
21779 using namespace std;
21780 #endif
21781 int
21782 main ()
21783 {
21784 hash_map<int, int> t;
21785   ;
21786   return 0;
21787 }
21788 _ACEOF
21789 rm -f conftest.$ac_objext
21790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21791   (eval $ac_compile) 2>conftest.er1
21792   ac_status=$?
21793   grep -v '^ *+' conftest.er1 >conftest.err
21794   rm -f conftest.er1
21795   cat conftest.err >&5
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); } &&
21798          { ac_try='test -z "$ac_cxx_werror_flag"
21799                          || test ! -s conftest.err'
21800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801   (eval $ac_try) 2>&5
21802   ac_status=$?
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); }; } &&
21805          { ac_try='test -s conftest.$ac_objext'
21806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807   (eval $ac_try) 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; }; then
21811   ac_cv_cxx_have_std_ext_hash_map=yes
21812 else
21813   echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21815
21816 ac_cv_cxx_have_std_ext_hash_map=no
21817 fi
21818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21819   ac_ext=c
21820 ac_cpp='$CPP $CPPFLAGS'
21821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21824
21825 fi
21826 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21827 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21828  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21829  then
21830
21831 cat >>confdefs.h <<\_ACEOF
21832 #define HAVE_STD_EXT_HASH_MAP 1
21833 _ACEOF
21834
21835  else
21836
21837 cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_STD_EXT_HASH_MAP 0
21839 _ACEOF
21840
21841  fi
21842
21843  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21844 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21845 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21846   echo $ECHO_N "(cached) $ECHO_C" >&6
21847 else
21848
21849   ac_ext=cc
21850 ac_cpp='$CXXCPP $CPPFLAGS'
21851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21854
21855   cat >conftest.$ac_ext <<_ACEOF
21856 /* confdefs.h.  */
21857 _ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h.  */
21861 #include <ext/hash_map>
21862 #ifdef HAVE_NAMESPACES
21863 using namespace __gnu_cxx;
21864 #endif
21865 int
21866 main ()
21867 {
21868 hash_map<int,int> t;
21869   ;
21870   return 0;
21871 }
21872 _ACEOF
21873 rm -f conftest.$ac_objext
21874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21875   (eval $ac_compile) 2>conftest.er1
21876   ac_status=$?
21877   grep -v '^ *+' conftest.er1 >conftest.err
21878   rm -f conftest.er1
21879   cat conftest.err >&5
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); } &&
21882          { ac_try='test -z "$ac_cxx_werror_flag"
21883                          || test ! -s conftest.err'
21884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885   (eval $ac_try) 2>&5
21886   ac_status=$?
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); }; } &&
21889          { ac_try='test -s conftest.$ac_objext'
21890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891   (eval $ac_try) 2>&5
21892   ac_status=$?
21893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894   (exit $ac_status); }; }; then
21895   ac_cv_cxx_have_gnu_ext_hash_map=yes
21896 else
21897   echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21899
21900 ac_cv_cxx_have_gnu_ext_hash_map=no
21901 fi
21902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21903   ac_ext=c
21904 ac_cpp='$CPP $CPPFLAGS'
21905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21908
21909 fi
21910 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21911 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21912  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21913  then
21914
21915 cat >>confdefs.h <<\_ACEOF
21916 #define HAVE_GNU_EXT_HASH_MAP 1
21917 _ACEOF
21918
21919  else
21920
21921 cat >>confdefs.h <<\_ACEOF
21922 #define HAVE_GNU_EXT_HASH_MAP 0
21923 _ACEOF
21924
21925  fi
21926
21927  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21928 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21929 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21930   echo $ECHO_N "(cached) $ECHO_C" >&6
21931 else
21932
21933   ac_ext=cc
21934 ac_cpp='$CXXCPP $CPPFLAGS'
21935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21938
21939   cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h.  */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h.  */
21945 #include <hash_map>
21946 int
21947 main ()
21948 {
21949 hash_map<int,int> t;
21950   ;
21951   return 0;
21952 }
21953 _ACEOF
21954 rm -f conftest.$ac_objext
21955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21956   (eval $ac_compile) 2>conftest.er1
21957   ac_status=$?
21958   grep -v '^ *+' conftest.er1 >conftest.err
21959   rm -f conftest.er1
21960   cat conftest.err >&5
21961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962   (exit $ac_status); } &&
21963          { ac_try='test -z "$ac_cxx_werror_flag"
21964                          || test ! -s conftest.err'
21965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966   (eval $ac_try) 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; } &&
21970          { ac_try='test -s conftest.$ac_objext'
21971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972   (eval $ac_try) 2>&5
21973   ac_status=$?
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); }; }; then
21976   ac_cv_cxx_have_global_hash_map=yes
21977 else
21978   echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21980
21981 ac_cv_cxx_have_global_hash_map=no
21982 fi
21983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21984   ac_ext=c
21985 ac_cpp='$CPP $CPPFLAGS'
21986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21989
21990 fi
21991 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21992 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21993  if test "$ac_cv_cxx_have_global_hash_map" = yes
21994  then
21995
21996 cat >>confdefs.h <<\_ACEOF
21997 #define HAVE_GLOBAL_HASH_MAP 1
21998 _ACEOF
21999
22000  else
22001
22002 cat >>confdefs.h <<\_ACEOF
22003 #define HAVE_GLOBAL_HASH_MAP 0
22004 _ACEOF
22005
22006  fi
22007
22008 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
22009 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
22010 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
22011   echo $ECHO_N "(cached) $ECHO_C" >&6
22012 else
22013
22014   ac_ext=cc
22015 ac_cpp='$CXXCPP $CPPFLAGS'
22016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22019
22020   cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h.  */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h.  */
22026 #include <ext/hash_set>
22027 #ifdef HAVE_NAMESPACES
22028 using namespace std;
22029 #endif
22030 int
22031 main ()
22032 {
22033 hash_set<int> t;
22034   ;
22035   return 0;
22036 }
22037 _ACEOF
22038 rm -f conftest.$ac_objext
22039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22040   (eval $ac_compile) 2>conftest.er1
22041   ac_status=$?
22042   grep -v '^ *+' conftest.er1 >conftest.err
22043   rm -f conftest.er1
22044   cat conftest.err >&5
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); } &&
22047          { ac_try='test -z "$ac_cxx_werror_flag"
22048                          || test ! -s conftest.err'
22049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050   (eval $ac_try) 2>&5
22051   ac_status=$?
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); }; } &&
22054          { ac_try='test -s conftest.$ac_objext'
22055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056   (eval $ac_try) 2>&5
22057   ac_status=$?
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); }; }; then
22060   ac_cv_cxx_have_std_ext_hash_set=yes
22061 else
22062   echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22064
22065 ac_cv_cxx_have_std_ext_hash_set=no
22066 fi
22067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22068   ac_ext=c
22069 ac_cpp='$CPP $CPPFLAGS'
22070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22073
22074 fi
22075 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22076 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
22077  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22078  then
22079
22080 cat >>confdefs.h <<\_ACEOF
22081 #define HAVE_STD_EXT_HASH_SET 1
22082 _ACEOF
22083
22084  else
22085
22086 cat >>confdefs.h <<\_ACEOF
22087 #define HAVE_STD_EXT_HASH_SET 0
22088 _ACEOF
22089
22090  fi
22091
22092  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22093 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22094 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22095   echo $ECHO_N "(cached) $ECHO_C" >&6
22096 else
22097
22098   ac_ext=cc
22099 ac_cpp='$CXXCPP $CPPFLAGS'
22100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22103
22104   cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h.  */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h.  */
22110 #include <ext/hash_set>
22111 #ifdef HAVE_NAMESPACES
22112 using namespace __gnu_cxx;
22113 #endif
22114 int
22115 main ()
22116 {
22117 hash_set<int> t;
22118   ;
22119   return 0;
22120 }
22121 _ACEOF
22122 rm -f conftest.$ac_objext
22123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22124   (eval $ac_compile) 2>conftest.er1
22125   ac_status=$?
22126   grep -v '^ *+' conftest.er1 >conftest.err
22127   rm -f conftest.er1
22128   cat conftest.err >&5
22129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130   (exit $ac_status); } &&
22131          { ac_try='test -z "$ac_cxx_werror_flag"
22132                          || test ! -s conftest.err'
22133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134   (eval $ac_try) 2>&5
22135   ac_status=$?
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); }; } &&
22138          { ac_try='test -s conftest.$ac_objext'
22139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140   (eval $ac_try) 2>&5
22141   ac_status=$?
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); }; }; then
22144   ac_cv_cxx_have_gnu_ext_hash_set=yes
22145 else
22146   echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22148
22149 ac_cv_cxx_have_gnu_ext_hash_set=no
22150 fi
22151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22152   ac_ext=c
22153 ac_cpp='$CPP $CPPFLAGS'
22154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22157
22158 fi
22159 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22160 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
22161  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22162  then
22163
22164 cat >>confdefs.h <<\_ACEOF
22165 #define HAVE_GNU_EXT_HASH_SET 1
22166 _ACEOF
22167
22168  else
22169
22170 cat >>confdefs.h <<\_ACEOF
22171 #define HAVE_GNU_EXT_HASH_SET 0
22172 _ACEOF
22173
22174  fi
22175
22176  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22177 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22178 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22179   echo $ECHO_N "(cached) $ECHO_C" >&6
22180 else
22181
22182   ac_ext=cc
22183 ac_cpp='$CXXCPP $CPPFLAGS'
22184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22187
22188   cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h.  */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h.  */
22194 #include <hash_set>
22195 int
22196 main ()
22197 {
22198 hash_set<int> t; return 0;
22199   ;
22200   return 0;
22201 }
22202 _ACEOF
22203 rm -f conftest.$ac_objext
22204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22205   (eval $ac_compile) 2>conftest.er1
22206   ac_status=$?
22207   grep -v '^ *+' conftest.er1 >conftest.err
22208   rm -f conftest.er1
22209   cat conftest.err >&5
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); } &&
22212          { ac_try='test -z "$ac_cxx_werror_flag"
22213                          || test ! -s conftest.err'
22214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215   (eval $ac_try) 2>&5
22216   ac_status=$?
22217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218   (exit $ac_status); }; } &&
22219          { ac_try='test -s conftest.$ac_objext'
22220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221   (eval $ac_try) 2>&5
22222   ac_status=$?
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); }; }; then
22225   ac_cv_cxx_have_global_hash_set=yes
22226 else
22227   echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22229
22230 ac_cv_cxx_have_global_hash_set=no
22231 fi
22232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22233   ac_ext=c
22234 ac_cpp='$CPP $CPPFLAGS'
22235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22238
22239 fi
22240 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22241 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
22242  if test "$ac_cv_cxx_have_global_hash_set" = yes
22243  then
22244
22245 cat >>confdefs.h <<\_ACEOF
22246 #define HAVE_GLOBAL_HASH_SET 1
22247 _ACEOF
22248
22249  else
22250
22251 cat >>confdefs.h <<\_ACEOF
22252 #define HAVE_GLOBAL_HASH_SET 0
22253 _ACEOF
22254
22255  fi
22256
22257 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22258 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22259 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22260   echo $ECHO_N "(cached) $ECHO_C" >&6
22261 else
22262
22263   ac_ext=cc
22264 ac_cpp='$CXXCPP $CPPFLAGS'
22265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22268
22269   cat >conftest.$ac_ext <<_ACEOF
22270 /* confdefs.h.  */
22271 _ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h.  */
22275 #include <iterator>
22276 #ifdef HAVE_NAMESPACES
22277 using namespace std;
22278 #endif
22279 int
22280 main ()
22281 {
22282 iterator<int,int,int> t; return 0;
22283   ;
22284   return 0;
22285 }
22286 _ACEOF
22287 rm -f conftest.$ac_objext
22288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22289   (eval $ac_compile) 2>conftest.er1
22290   ac_status=$?
22291   grep -v '^ *+' conftest.er1 >conftest.err
22292   rm -f conftest.er1
22293   cat conftest.err >&5
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); } &&
22296          { ac_try='test -z "$ac_cxx_werror_flag"
22297                          || test ! -s conftest.err'
22298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299   (eval $ac_try) 2>&5
22300   ac_status=$?
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); }; } &&
22303          { ac_try='test -s conftest.$ac_objext'
22304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305   (eval $ac_try) 2>&5
22306   ac_status=$?
22307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308   (exit $ac_status); }; }; then
22309   ac_cv_cxx_have_std_iterator=yes
22310 else
22311   echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22313
22314 ac_cv_cxx_have_std_iterator=no
22315 fi
22316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22317   ac_ext=c
22318 ac_cpp='$CPP $CPPFLAGS'
22319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22322
22323
22324 fi
22325 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22326 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
22327 if test "$ac_cv_cxx_have_std_iterator" = yes
22328 then
22329
22330 cat >>confdefs.h <<\_ACEOF
22331 #define HAVE_STD_ITERATOR 1
22332 _ACEOF
22333
22334 else
22335
22336 cat >>confdefs.h <<\_ACEOF
22337 #define HAVE_STD_ITERATOR 0
22338 _ACEOF
22339
22340 fi
22341
22342 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22343 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22344 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22345   echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347
22348   ac_ext=cc
22349 ac_cpp='$CXXCPP $CPPFLAGS'
22350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22353
22354   cat >conftest.$ac_ext <<_ACEOF
22355 /* confdefs.h.  */
22356 _ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h.  */
22360 #include <iterator>
22361 #ifdef HAVE_NAMESPACES
22362 using namespace std;
22363 #endif
22364 int
22365 main ()
22366 {
22367 bidirectional_iterator<int,int> t; return 0;
22368   ;
22369   return 0;
22370 }
22371 _ACEOF
22372 rm -f conftest.$ac_objext
22373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22374   (eval $ac_compile) 2>conftest.er1
22375   ac_status=$?
22376   grep -v '^ *+' conftest.er1 >conftest.err
22377   rm -f conftest.er1
22378   cat conftest.err >&5
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); } &&
22381          { ac_try='test -z "$ac_cxx_werror_flag"
22382                          || test ! -s conftest.err'
22383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384   (eval $ac_try) 2>&5
22385   ac_status=$?
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); }; } &&
22388          { ac_try='test -s conftest.$ac_objext'
22389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22390   (eval $ac_try) 2>&5
22391   ac_status=$?
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); }; }; then
22394   ac_cv_cxx_have_bi_iterator=yes
22395 else
22396   echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22398
22399 ac_cv_cxx_have_bi_iterator=no
22400 fi
22401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22402   ac_ext=c
22403 ac_cpp='$CPP $CPPFLAGS'
22404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22407
22408
22409 fi
22410 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22411 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
22412 if test "$ac_cv_cxx_have_bi_iterator" = yes
22413 then
22414
22415 cat >>confdefs.h <<\_ACEOF
22416 #define HAVE_BI_ITERATOR 1
22417 _ACEOF
22418
22419 else
22420
22421 cat >>confdefs.h <<\_ACEOF
22422 #define HAVE_BI_ITERATOR 0
22423 _ACEOF
22424
22425 fi
22426
22427 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22428 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22429 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22430   echo $ECHO_N "(cached) $ECHO_C" >&6
22431 else
22432
22433   ac_ext=cc
22434 ac_cpp='$CXXCPP $CPPFLAGS'
22435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22438
22439   cat >conftest.$ac_ext <<_ACEOF
22440 /* confdefs.h.  */
22441 _ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h.  */
22445 #include <iterator>
22446 #ifdef HAVE_NAMESPACES
22447 using namespace std;
22448 #endif
22449 int
22450 main ()
22451 {
22452 forward_iterator<int,int> t; return 0;
22453   ;
22454   return 0;
22455 }
22456 _ACEOF
22457 rm -f conftest.$ac_objext
22458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22459   (eval $ac_compile) 2>conftest.er1
22460   ac_status=$?
22461   grep -v '^ *+' conftest.er1 >conftest.err
22462   rm -f conftest.er1
22463   cat conftest.err >&5
22464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); } &&
22466          { ac_try='test -z "$ac_cxx_werror_flag"
22467                          || test ! -s conftest.err'
22468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469   (eval $ac_try) 2>&5
22470   ac_status=$?
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); }; } &&
22473          { ac_try='test -s conftest.$ac_objext'
22474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475   (eval $ac_try) 2>&5
22476   ac_status=$?
22477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); }; }; then
22479   ac_cv_cxx_have_fwd_iterator=yes
22480 else
22481   echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22483
22484 ac_cv_cxx_have_fwd_iterator=no
22485 fi
22486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22487   ac_ext=c
22488 ac_cpp='$CPP $CPPFLAGS'
22489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22492
22493
22494 fi
22495 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22496 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
22497 if test "$ac_cv_cxx_have_fwd_iterator" = yes
22498 then
22499
22500 cat >>confdefs.h <<\_ACEOF
22501 #define HAVE_FWD_ITERATOR 1
22502 _ACEOF
22503
22504 else
22505
22506 cat >>confdefs.h <<\_ACEOF
22507 #define HAVE_FWD_ITERATOR 0
22508 _ACEOF
22509
22510 fi
22511
22512
22513
22514 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22515 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22516 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22517   echo $ECHO_N "(cached) $ECHO_C" >&6
22518 else
22519   ac_ext=cc
22520 ac_cpp='$CXXCPP $CPPFLAGS'
22521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22524
22525   cat >conftest.$ac_ext <<_ACEOF
22526 /* confdefs.h.  */
22527 _ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h.  */
22531 #include <math.h>
22532                      int foo(float f) {return isnan(f);}
22533 _ACEOF
22534 rm -f conftest.$ac_objext
22535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22536   (eval $ac_compile) 2>conftest.er1
22537   ac_status=$?
22538   grep -v '^ *+' conftest.er1 >conftest.err
22539   rm -f conftest.er1
22540   cat conftest.err >&5
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); } &&
22543          { ac_try='test -z "$ac_cxx_werror_flag"
22544                          || test ! -s conftest.err'
22545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546   (eval $ac_try) 2>&5
22547   ac_status=$?
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); }; } &&
22550          { ac_try='test -s conftest.$ac_objext'
22551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552   (eval $ac_try) 2>&5
22553   ac_status=$?
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); }; }; then
22556   ac_cv_func_isnan_in_math_h=yes
22557 else
22558   echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22560
22561 ac_cv_func_isnan_in_math_h=no
22562 fi
22563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22564  ac_ext=c
22565 ac_cpp='$CPP $CPPFLAGS'
22566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22569
22570 fi
22571 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22572 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22573  if test "$ac_cv_func_isnan_in_math_h" = "yes"
22574  then
22575
22576 cat >>confdefs.h <<\_ACEOF
22577 #define HAVE_ISNAN_IN_MATH_H 1
22578 _ACEOF
22579
22580  fi
22581 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22582 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22583 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22584   echo $ECHO_N "(cached) $ECHO_C" >&6
22585 else
22586   ac_ext=cc
22587 ac_cpp='$CXXCPP $CPPFLAGS'
22588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22591
22592   cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h.  */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h.  */
22598 #include <cmath>
22599                      int foo(float f) {return isnan(f);}
22600 _ACEOF
22601 rm -f conftest.$ac_objext
22602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22603   (eval $ac_compile) 2>conftest.er1
22604   ac_status=$?
22605   grep -v '^ *+' conftest.er1 >conftest.err
22606   rm -f conftest.er1
22607   cat conftest.err >&5
22608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); } &&
22610          { ac_try='test -z "$ac_cxx_werror_flag"
22611                          || test ! -s conftest.err'
22612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613   (eval $ac_try) 2>&5
22614   ac_status=$?
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); }; } &&
22617          { ac_try='test -s conftest.$ac_objext'
22618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619   (eval $ac_try) 2>&5
22620   ac_status=$?
22621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); }; }; then
22623   ac_cv_func_isnan_in_cmath=yes
22624 else
22625   echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22627
22628 ac_cv_func_isnan_in_cmath=no
22629 fi
22630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22631  ac_ext=c
22632 ac_cpp='$CPP $CPPFLAGS'
22633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22636
22637 fi
22638 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22639 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22640  if test "$ac_cv_func_isnan_in_cmath" = "yes"
22641  then
22642
22643 cat >>confdefs.h <<\_ACEOF
22644 #define HAVE_ISNAN_IN_CMATH 1
22645 _ACEOF
22646
22647  fi
22648 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22649 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22650 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22651   echo $ECHO_N "(cached) $ECHO_C" >&6
22652 else
22653   ac_ext=cc
22654 ac_cpp='$CXXCPP $CPPFLAGS'
22655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22658
22659   cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h.  */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h.  */
22665 #include <cmath>
22666                      using std::isnan; int foo(float f) {return isnan(f);}
22667 _ACEOF
22668 rm -f conftest.$ac_objext
22669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22670   (eval $ac_compile) 2>conftest.er1
22671   ac_status=$?
22672   grep -v '^ *+' conftest.er1 >conftest.err
22673   rm -f conftest.er1
22674   cat conftest.err >&5
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); } &&
22677          { ac_try='test -z "$ac_cxx_werror_flag"
22678                          || test ! -s conftest.err'
22679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680   (eval $ac_try) 2>&5
22681   ac_status=$?
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); }; } &&
22684          { ac_try='test -s conftest.$ac_objext'
22685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22686   (eval $ac_try) 2>&5
22687   ac_status=$?
22688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); }; }; then
22690   ac_cv_func_std_isnan_in_cmath=yes
22691 else
22692   echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22694
22695 ac_cv_func_std_isnan_in_cmath=no
22696 fi
22697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22698  ac_ext=c
22699 ac_cpp='$CPP $CPPFLAGS'
22700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22703
22704 fi
22705 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22706 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22707  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22708  then
22709
22710 cat >>confdefs.h <<\_ACEOF
22711 #define HAVE_STD_ISNAN_IN_CMATH 1
22712 _ACEOF
22713
22714  fi
22715
22716
22717 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22718 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22719 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22720   echo $ECHO_N "(cached) $ECHO_C" >&6
22721 else
22722   ac_ext=cc
22723 ac_cpp='$CXXCPP $CPPFLAGS'
22724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22727
22728   cat >conftest.$ac_ext <<_ACEOF
22729 /* confdefs.h.  */
22730 _ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h.  */
22734 #include <math.h>
22735                      int foo(float f) {return isinf(f);}
22736 _ACEOF
22737 rm -f conftest.$ac_objext
22738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22739   (eval $ac_compile) 2>conftest.er1
22740   ac_status=$?
22741   grep -v '^ *+' conftest.er1 >conftest.err
22742   rm -f conftest.er1
22743   cat conftest.err >&5
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); } &&
22746          { ac_try='test -z "$ac_cxx_werror_flag"
22747                          || test ! -s conftest.err'
22748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749   (eval $ac_try) 2>&5
22750   ac_status=$?
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); }; } &&
22753          { ac_try='test -s conftest.$ac_objext'
22754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755   (eval $ac_try) 2>&5
22756   ac_status=$?
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); }; }; then
22759   ac_cv_func_isinf_in_math_h=yes
22760 else
22761   echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22763
22764 ac_cv_func_isinf_in_math_h=no
22765 fi
22766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22767  ac_ext=c
22768 ac_cpp='$CPP $CPPFLAGS'
22769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22772
22773 fi
22774 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22775 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22776  if test "$ac_cv_func_isinf_in_math_h" = "yes"
22777  then
22778
22779 cat >>confdefs.h <<\_ACEOF
22780 #define HAVE_ISINF_IN_MATH_H 1
22781 _ACEOF
22782
22783  fi
22784 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22785 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22786 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789   ac_ext=cc
22790 ac_cpp='$CXXCPP $CPPFLAGS'
22791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22794
22795   cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h.  */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h.  */
22801 #include <cmath>
22802                      int foo(float f) {return isinf(f);}
22803 _ACEOF
22804 rm -f conftest.$ac_objext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806   (eval $ac_compile) 2>conftest.er1
22807   ac_status=$?
22808   grep -v '^ *+' conftest.er1 >conftest.err
22809   rm -f conftest.er1
22810   cat conftest.err >&5
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } &&
22813          { ac_try='test -z "$ac_cxx_werror_flag"
22814                          || test ! -s conftest.err'
22815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816   (eval $ac_try) 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); }; } &&
22820          { ac_try='test -s conftest.$ac_objext'
22821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822   (eval $ac_try) 2>&5
22823   ac_status=$?
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); }; }; then
22826   ac_cv_func_isinf_in_cmath=yes
22827 else
22828   echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831 ac_cv_func_isinf_in_cmath=no
22832 fi
22833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22834  ac_ext=c
22835 ac_cpp='$CPP $CPPFLAGS'
22836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22839
22840 fi
22841 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22842 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22843  if test "$ac_cv_func_isinf_in_cmath" = "yes"
22844  then
22845
22846 cat >>confdefs.h <<\_ACEOF
22847 #define HAVE_ISINF_IN_CMATH 1
22848 _ACEOF
22849
22850  fi
22851 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22852 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22853 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22854   echo $ECHO_N "(cached) $ECHO_C" >&6
22855 else
22856   ac_ext=cc
22857 ac_cpp='$CXXCPP $CPPFLAGS'
22858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22861
22862   cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h.  */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h.  */
22868 #include <cmath>
22869                      using std::isinf; int foo(float f) {return isinf(f);}
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22873   (eval $ac_compile) 2>conftest.er1
22874   ac_status=$?
22875   grep -v '^ *+' conftest.er1 >conftest.err
22876   rm -f conftest.er1
22877   cat conftest.err >&5
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); } &&
22880          { ac_try='test -z "$ac_cxx_werror_flag"
22881                          || test ! -s conftest.err'
22882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883   (eval $ac_try) 2>&5
22884   ac_status=$?
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); }; } &&
22887          { ac_try='test -s conftest.$ac_objext'
22888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889   (eval $ac_try) 2>&5
22890   ac_status=$?
22891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892   (exit $ac_status); }; }; then
22893   ac_cv_func_std_isinf_in_cmath=yes
22894 else
22895   echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22897
22898 ac_cv_func_std_isinf_in_cmath=no
22899 fi
22900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22901  ac_ext=c
22902 ac_cpp='$CPP $CPPFLAGS'
22903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22906
22907 fi
22908 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22909 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22910  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22911  then
22912
22913 cat >>confdefs.h <<\_ACEOF
22914 #define HAVE_STD_ISINF_IN_CMATH 1
22915 _ACEOF
22916
22917  fi
22918 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22919 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22920 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22921   echo $ECHO_N "(cached) $ECHO_C" >&6
22922 else
22923   ac_ext=cc
22924 ac_cpp='$CXXCPP $CPPFLAGS'
22925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22928
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 #include <ieeefp.h>
22936                      int foo(float f) {return finite(f);}
22937 _ACEOF
22938 rm -f conftest.$ac_objext
22939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22940   (eval $ac_compile) 2>conftest.er1
22941   ac_status=$?
22942   grep -v '^ *+' conftest.er1 >conftest.err
22943   rm -f conftest.er1
22944   cat conftest.err >&5
22945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946   (exit $ac_status); } &&
22947          { ac_try='test -z "$ac_cxx_werror_flag"
22948                          || test ! -s conftest.err'
22949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950   (eval $ac_try) 2>&5
22951   ac_status=$?
22952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); }; } &&
22954          { ac_try='test -s conftest.$ac_objext'
22955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956   (eval $ac_try) 2>&5
22957   ac_status=$?
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); }; }; then
22960   ac_cv_func_finite_in_ieeefp_h=yes
22961 else
22962   echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22964
22965 ac_cv_func_finite_in_ieeefp_h=no
22966 fi
22967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22968  ac_ext=c
22969 ac_cpp='$CPP $CPPFLAGS'
22970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22973
22974 fi
22975 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22976 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22977  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22978  then
22979
22980 cat >>confdefs.h <<\_ACEOF
22981 #define HAVE_FINITE_IN_IEEEFP_H 1
22982 _ACEOF
22983
22984  fi
22985
22986
22987 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22988 # for constant arguments.  Useless!
22989 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22990 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22991 if test "${ac_cv_working_alloca_h+set}" = set; then
22992   echo $ECHO_N "(cached) $ECHO_C" >&6
22993 else
22994   cat >conftest.$ac_ext <<_ACEOF
22995 /* confdefs.h.  */
22996 _ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h.  */
23000 #include <alloca.h>
23001 int
23002 main ()
23003 {
23004 char *p = (char *) alloca (2 * sizeof (int));
23005   ;
23006   return 0;
23007 }
23008 _ACEOF
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23011   (eval $ac_link) 2>conftest.er1
23012   ac_status=$?
23013   grep -v '^ *+' conftest.er1 >conftest.err
23014   rm -f conftest.er1
23015   cat conftest.err >&5
23016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017   (exit $ac_status); } &&
23018          { ac_try='test -z "$ac_c_werror_flag"
23019                          || test ! -s conftest.err'
23020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021   (eval $ac_try) 2>&5
23022   ac_status=$?
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); }; } &&
23025          { ac_try='test -s conftest$ac_exeext'
23026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027   (eval $ac_try) 2>&5
23028   ac_status=$?
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); }; }; then
23031   ac_cv_working_alloca_h=yes
23032 else
23033   echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23035
23036 ac_cv_working_alloca_h=no
23037 fi
23038 rm -f conftest.err conftest.$ac_objext \
23039       conftest$ac_exeext conftest.$ac_ext
23040 fi
23041 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23042 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23043 if test $ac_cv_working_alloca_h = yes; then
23044
23045 cat >>confdefs.h <<\_ACEOF
23046 #define HAVE_ALLOCA_H 1
23047 _ACEOF
23048
23049 fi
23050
23051 echo "$as_me:$LINENO: checking for alloca" >&5
23052 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23053 if test "${ac_cv_func_alloca_works+set}" = set; then
23054   echo $ECHO_N "(cached) $ECHO_C" >&6
23055 else
23056   cat >conftest.$ac_ext <<_ACEOF
23057 /* confdefs.h.  */
23058 _ACEOF
23059 cat confdefs.h >>conftest.$ac_ext
23060 cat >>conftest.$ac_ext <<_ACEOF
23061 /* end confdefs.h.  */
23062 #ifdef __GNUC__
23063 # define alloca __builtin_alloca
23064 #else
23065 # ifdef _MSC_VER
23066 #  include <malloc.h>
23067 #  define alloca _alloca
23068 # else
23069 #  if HAVE_ALLOCA_H
23070 #   include <alloca.h>
23071 #  else
23072 #   ifdef _AIX
23073  #pragma alloca
23074 #   else
23075 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23076 char *alloca ();
23077 #    endif
23078 #   endif
23079 #  endif
23080 # endif
23081 #endif
23082
23083 int
23084 main ()
23085 {
23086 char *p = (char *) alloca (1);
23087   ;
23088   return 0;
23089 }
23090 _ACEOF
23091 rm -f conftest.$ac_objext conftest$ac_exeext
23092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23093   (eval $ac_link) 2>conftest.er1
23094   ac_status=$?
23095   grep -v '^ *+' conftest.er1 >conftest.err
23096   rm -f conftest.er1
23097   cat conftest.err >&5
23098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099   (exit $ac_status); } &&
23100          { ac_try='test -z "$ac_c_werror_flag"
23101                          || test ! -s conftest.err'
23102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103   (eval $ac_try) 2>&5
23104   ac_status=$?
23105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106   (exit $ac_status); }; } &&
23107          { ac_try='test -s conftest$ac_exeext'
23108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23109   (eval $ac_try) 2>&5
23110   ac_status=$?
23111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112   (exit $ac_status); }; }; then
23113   ac_cv_func_alloca_works=yes
23114 else
23115   echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23117
23118 ac_cv_func_alloca_works=no
23119 fi
23120 rm -f conftest.err conftest.$ac_objext \
23121       conftest$ac_exeext conftest.$ac_ext
23122 fi
23123 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23124 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23125
23126 if test $ac_cv_func_alloca_works = yes; then
23127
23128 cat >>confdefs.h <<\_ACEOF
23129 #define HAVE_ALLOCA 1
23130 _ACEOF
23131
23132 else
23133   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23134 # that cause trouble.  Some versions do not even contain alloca or
23135 # contain a buggy version.  If you still want to use their alloca,
23136 # use ar to extract alloca.o from them instead of compiling alloca.c.
23137
23138 ALLOCA=alloca.$ac_objext
23139
23140 cat >>confdefs.h <<\_ACEOF
23141 #define C_ALLOCA 1
23142 _ACEOF
23143
23144
23145 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23146 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23147 if test "${ac_cv_os_cray+set}" = set; then
23148   echo $ECHO_N "(cached) $ECHO_C" >&6
23149 else
23150   cat >conftest.$ac_ext <<_ACEOF
23151 /* confdefs.h.  */
23152 _ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h.  */
23156 #if defined(CRAY) && ! defined(CRAY2)
23157 webecray
23158 #else
23159 wenotbecray
23160 #endif
23161
23162 _ACEOF
23163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23164   $EGREP "webecray" >/dev/null 2>&1; then
23165   ac_cv_os_cray=yes
23166 else
23167   ac_cv_os_cray=no
23168 fi
23169 rm -f conftest*
23170
23171 fi
23172 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23173 echo "${ECHO_T}$ac_cv_os_cray" >&6
23174 if test $ac_cv_os_cray = yes; then
23175   for ac_func in _getb67 GETB67 getb67; do
23176     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23177 echo "$as_me:$LINENO: checking for $ac_func" >&5
23178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23179 if eval "test \"\${$as_ac_var+set}\" = set"; then
23180   echo $ECHO_N "(cached) $ECHO_C" >&6
23181 else
23182   cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h.  */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h.  */
23188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23190 #define $ac_func innocuous_$ac_func
23191
23192 /* System header to define __stub macros and hopefully few prototypes,
23193     which can conflict with char $ac_func (); below.
23194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23195     <limits.h> exists even on freestanding compilers.  */
23196
23197 #ifdef __STDC__
23198 # include <limits.h>
23199 #else
23200 # include <assert.h>
23201 #endif
23202
23203 #undef $ac_func
23204
23205 /* Override any gcc2 internal prototype to avoid an error.  */
23206 #ifdef __cplusplus
23207 extern "C"
23208 {
23209 #endif
23210 /* We use char because int might match the return type of a gcc2
23211    builtin and then its argument prototype would still apply.  */
23212 char $ac_func ();
23213 /* The GNU C library defines this for functions which it implements
23214     to always fail with ENOSYS.  Some functions are actually named
23215     something starting with __ and the normal name is an alias.  */
23216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23217 choke me
23218 #else
23219 char (*f) () = $ac_func;
23220 #endif
23221 #ifdef __cplusplus
23222 }
23223 #endif
23224
23225 int
23226 main ()
23227 {
23228 return f != $ac_func;
23229   ;
23230   return 0;
23231 }
23232 _ACEOF
23233 rm -f conftest.$ac_objext conftest$ac_exeext
23234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23235   (eval $ac_link) 2>conftest.er1
23236   ac_status=$?
23237   grep -v '^ *+' conftest.er1 >conftest.err
23238   rm -f conftest.er1
23239   cat conftest.err >&5
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); } &&
23242          { ac_try='test -z "$ac_c_werror_flag"
23243                          || test ! -s conftest.err'
23244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245   (eval $ac_try) 2>&5
23246   ac_status=$?
23247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248   (exit $ac_status); }; } &&
23249          { ac_try='test -s conftest$ac_exeext'
23250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251   (eval $ac_try) 2>&5
23252   ac_status=$?
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); }; }; then
23255   eval "$as_ac_var=yes"
23256 else
23257   echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23259
23260 eval "$as_ac_var=no"
23261 fi
23262 rm -f conftest.err conftest.$ac_objext \
23263       conftest$ac_exeext conftest.$ac_ext
23264 fi
23265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23267 if test `eval echo '${'$as_ac_var'}'` = yes; then
23268
23269 cat >>confdefs.h <<_ACEOF
23270 #define CRAY_STACKSEG_END $ac_func
23271 _ACEOF
23272
23273     break
23274 fi
23275
23276   done
23277 fi
23278
23279 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23280 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23281 if test "${ac_cv_c_stack_direction+set}" = set; then
23282   echo $ECHO_N "(cached) $ECHO_C" >&6
23283 else
23284   if test "$cross_compiling" = yes; then
23285   ac_cv_c_stack_direction=0
23286 else
23287   cat >conftest.$ac_ext <<_ACEOF
23288 /* confdefs.h.  */
23289 _ACEOF
23290 cat confdefs.h >>conftest.$ac_ext
23291 cat >>conftest.$ac_ext <<_ACEOF
23292 /* end confdefs.h.  */
23293 int
23294 find_stack_direction ()
23295 {
23296   static char *addr = 0;
23297   auto char dummy;
23298   if (addr == 0)
23299     {
23300       addr = &dummy;
23301       return find_stack_direction ();
23302     }
23303   else
23304     return (&dummy > addr) ? 1 : -1;
23305 }
23306
23307 int
23308 main ()
23309 {
23310   exit (find_stack_direction () < 0);
23311 }
23312 _ACEOF
23313 rm -f conftest$ac_exeext
23314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23315   (eval $ac_link) 2>&5
23316   ac_status=$?
23317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320   (eval $ac_try) 2>&5
23321   ac_status=$?
23322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323   (exit $ac_status); }; }; then
23324   ac_cv_c_stack_direction=1
23325 else
23326   echo "$as_me: program exited with status $ac_status" >&5
23327 echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23329
23330 ( exit $ac_status )
23331 ac_cv_c_stack_direction=-1
23332 fi
23333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23334 fi
23335 fi
23336 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23337 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23338
23339 cat >>confdefs.h <<_ACEOF
23340 #define STACK_DIRECTION $ac_cv_c_stack_direction
23341 _ACEOF
23342
23343
23344 fi
23345
23346
23347
23348 for ac_header in stdlib.h unistd.h
23349 do
23350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23352   echo "$as_me:$LINENO: checking for $ac_header" >&5
23353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23355   echo $ECHO_N "(cached) $ECHO_C" >&6
23356 fi
23357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23359 else
23360   # Is the header compilable?
23361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23363 cat >conftest.$ac_ext <<_ACEOF
23364 /* confdefs.h.  */
23365 _ACEOF
23366 cat confdefs.h >>conftest.$ac_ext
23367 cat >>conftest.$ac_ext <<_ACEOF
23368 /* end confdefs.h.  */
23369 $ac_includes_default
23370 #include <$ac_header>
23371 _ACEOF
23372 rm -f conftest.$ac_objext
23373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23374   (eval $ac_compile) 2>conftest.er1
23375   ac_status=$?
23376   grep -v '^ *+' conftest.er1 >conftest.err
23377   rm -f conftest.er1
23378   cat conftest.err >&5
23379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380   (exit $ac_status); } &&
23381          { ac_try='test -z "$ac_c_werror_flag"
23382                          || test ! -s conftest.err'
23383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384   (eval $ac_try) 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; } &&
23388          { ac_try='test -s conftest.$ac_objext'
23389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390   (eval $ac_try) 2>&5
23391   ac_status=$?
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); }; }; then
23394   ac_header_compiler=yes
23395 else
23396   echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399 ac_header_compiler=no
23400 fi
23401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23403 echo "${ECHO_T}$ac_header_compiler" >&6
23404
23405 # Is the header present?
23406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23408 cat >conftest.$ac_ext <<_ACEOF
23409 /* confdefs.h.  */
23410 _ACEOF
23411 cat confdefs.h >>conftest.$ac_ext
23412 cat >>conftest.$ac_ext <<_ACEOF
23413 /* end confdefs.h.  */
23414 #include <$ac_header>
23415 _ACEOF
23416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23417   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
23424   if test -s conftest.err; then
23425     ac_cpp_err=$ac_c_preproc_warn_flag
23426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23427   else
23428     ac_cpp_err=
23429   fi
23430 else
23431   ac_cpp_err=yes
23432 fi
23433 if test -z "$ac_cpp_err"; then
23434   ac_header_preproc=yes
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439   ac_header_preproc=no
23440 fi
23441 rm -f conftest.err conftest.$ac_ext
23442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23443 echo "${ECHO_T}$ac_header_preproc" >&6
23444
23445 # So?  What about this header?
23446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23447   yes:no: )
23448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23452     ac_header_preproc=yes
23453     ;;
23454   no:yes:* )
23455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23467     (
23468       cat <<\_ASBOX
23469 ## ----------------------------------- ##
23470 ## Report this to llvmbugs@cs.uiuc.edu ##
23471 ## ----------------------------------- ##
23472 _ASBOX
23473     ) |
23474       sed "s/^/$as_me: WARNING:     /" >&2
23475     ;;
23476 esac
23477 echo "$as_me:$LINENO: checking for $ac_header" >&5
23478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23480   echo $ECHO_N "(cached) $ECHO_C" >&6
23481 else
23482   eval "$as_ac_Header=\$ac_header_preproc"
23483 fi
23484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23486
23487 fi
23488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23489   cat >>confdefs.h <<_ACEOF
23490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23491 _ACEOF
23492
23493 fi
23494
23495 done
23496
23497
23498 for ac_func in getpagesize
23499 do
23500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23501 echo "$as_me:$LINENO: checking for $ac_func" >&5
23502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23503 if eval "test \"\${$as_ac_var+set}\" = set"; then
23504   echo $ECHO_N "(cached) $ECHO_C" >&6
23505 else
23506   cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h.  */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h.  */
23512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23514 #define $ac_func innocuous_$ac_func
23515
23516 /* System header to define __stub macros and hopefully few prototypes,
23517     which can conflict with char $ac_func (); below.
23518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23519     <limits.h> exists even on freestanding compilers.  */
23520
23521 #ifdef __STDC__
23522 # include <limits.h>
23523 #else
23524 # include <assert.h>
23525 #endif
23526
23527 #undef $ac_func
23528
23529 /* Override any gcc2 internal prototype to avoid an error.  */
23530 #ifdef __cplusplus
23531 extern "C"
23532 {
23533 #endif
23534 /* We use char because int might match the return type of a gcc2
23535    builtin and then its argument prototype would still apply.  */
23536 char $ac_func ();
23537 /* The GNU C library defines this for functions which it implements
23538     to always fail with ENOSYS.  Some functions are actually named
23539     something starting with __ and the normal name is an alias.  */
23540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23541 choke me
23542 #else
23543 char (*f) () = $ac_func;
23544 #endif
23545 #ifdef __cplusplus
23546 }
23547 #endif
23548
23549 int
23550 main ()
23551 {
23552 return f != $ac_func;
23553   ;
23554   return 0;
23555 }
23556 _ACEOF
23557 rm -f conftest.$ac_objext conftest$ac_exeext
23558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23559   (eval $ac_link) 2>conftest.er1
23560   ac_status=$?
23561   grep -v '^ *+' conftest.er1 >conftest.err
23562   rm -f conftest.er1
23563   cat conftest.err >&5
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); } &&
23566          { ac_try='test -z "$ac_c_werror_flag"
23567                          || test ! -s conftest.err'
23568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569   (eval $ac_try) 2>&5
23570   ac_status=$?
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); }; } &&
23573          { ac_try='test -s conftest$ac_exeext'
23574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575   (eval $ac_try) 2>&5
23576   ac_status=$?
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); }; }; then
23579   eval "$as_ac_var=yes"
23580 else
23581   echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23583
23584 eval "$as_ac_var=no"
23585 fi
23586 rm -f conftest.err conftest.$ac_objext \
23587       conftest$ac_exeext conftest.$ac_ext
23588 fi
23589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23591 if test `eval echo '${'$as_ac_var'}'` = yes; then
23592   cat >>confdefs.h <<_ACEOF
23593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23594 _ACEOF
23595
23596 fi
23597 done
23598
23599 echo "$as_me:$LINENO: checking for working mmap" >&5
23600 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23601 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23602   echo $ECHO_N "(cached) $ECHO_C" >&6
23603 else
23604   if test "$cross_compiling" = yes; then
23605   ac_cv_func_mmap_fixed_mapped=no
23606 else
23607   cat >conftest.$ac_ext <<_ACEOF
23608 /* confdefs.h.  */
23609 _ACEOF
23610 cat confdefs.h >>conftest.$ac_ext
23611 cat >>conftest.$ac_ext <<_ACEOF
23612 /* end confdefs.h.  */
23613 $ac_includes_default
23614 /* malloc might have been renamed as rpl_malloc. */
23615 #undef malloc
23616
23617 /* Thanks to Mike Haertel and Jim Avera for this test.
23618    Here is a matrix of mmap possibilities:
23619         mmap private not fixed
23620         mmap private fixed at somewhere currently unmapped
23621         mmap private fixed at somewhere already mapped
23622         mmap shared not fixed
23623         mmap shared fixed at somewhere currently unmapped
23624         mmap shared fixed at somewhere already mapped
23625    For private mappings, we should verify that changes cannot be read()
23626    back from the file, nor mmap's back from the file at a different
23627    address.  (There have been systems where private was not correctly
23628    implemented like the infamous i386 svr4.0, and systems where the
23629    VM page cache was not coherent with the file system buffer cache
23630    like early versions of FreeBSD and possibly contemporary NetBSD.)
23631    For shared mappings, we should conversely verify that changes get
23632    propagated back to all the places they're supposed to be.
23633
23634    Grep wants private fixed already mapped.
23635    The main things grep needs to know about mmap are:
23636    * does it exist and is it safe to write into the mmap'd area
23637    * how to use it (BSD variants)  */
23638
23639 #include <fcntl.h>
23640 #include <sys/mman.h>
23641
23642 #if !STDC_HEADERS && !HAVE_STDLIB_H
23643 char *malloc ();
23644 #endif
23645
23646 /* This mess was copied from the GNU getpagesize.h.  */
23647 #if !HAVE_GETPAGESIZE
23648 /* Assume that all systems that can run configure have sys/param.h.  */
23649 # if !HAVE_SYS_PARAM_H
23650 #  define HAVE_SYS_PARAM_H 1
23651 # endif
23652
23653 # ifdef _SC_PAGESIZE
23654 #  define getpagesize() sysconf(_SC_PAGESIZE)
23655 # else /* no _SC_PAGESIZE */
23656 #  if HAVE_SYS_PARAM_H
23657 #   include <sys/param.h>
23658 #   ifdef EXEC_PAGESIZE
23659 #    define getpagesize() EXEC_PAGESIZE
23660 #   else /* no EXEC_PAGESIZE */
23661 #    ifdef NBPG
23662 #     define getpagesize() NBPG * CLSIZE
23663 #     ifndef CLSIZE
23664 #      define CLSIZE 1
23665 #     endif /* no CLSIZE */
23666 #    else /* no NBPG */
23667 #     ifdef NBPC
23668 #      define getpagesize() NBPC
23669 #     else /* no NBPC */
23670 #      ifdef PAGESIZE
23671 #       define getpagesize() PAGESIZE
23672 #      endif /* PAGESIZE */
23673 #     endif /* no NBPC */
23674 #    endif /* no NBPG */
23675 #   endif /* no EXEC_PAGESIZE */
23676 #  else /* no HAVE_SYS_PARAM_H */
23677 #   define getpagesize() 8192   /* punt totally */
23678 #  endif /* no HAVE_SYS_PARAM_H */
23679 # endif /* no _SC_PAGESIZE */
23680
23681 #endif /* no HAVE_GETPAGESIZE */
23682
23683 int
23684 main ()
23685 {
23686   char *data, *data2, *data3;
23687   int i, pagesize;
23688   int fd;
23689
23690   pagesize = getpagesize ();
23691
23692   /* First, make a file with some known garbage in it. */
23693   data = (char *) malloc (pagesize);
23694   if (!data)
23695     exit (1);
23696   for (i = 0; i < pagesize; ++i)
23697     *(data + i) = rand ();
23698   umask (0);
23699   fd = creat ("conftest.mmap", 0600);
23700   if (fd < 0)
23701     exit (1);
23702   if (write (fd, data, pagesize) != pagesize)
23703     exit (1);
23704   close (fd);
23705
23706   /* Next, try to mmap the file at a fixed address which already has
23707      something else allocated at it.  If we can, also make sure that
23708      we see the same garbage.  */
23709   fd = open ("conftest.mmap", O_RDWR);
23710   if (fd < 0)
23711     exit (1);
23712   data2 = (char *) malloc (2 * pagesize);
23713   if (!data2)
23714     exit (1);
23715   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23716   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23717                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23718     exit (1);
23719   for (i = 0; i < pagesize; ++i)
23720     if (*(data + i) != *(data2 + i))
23721       exit (1);
23722
23723   /* Finally, make sure that changes to the mapped area do not
23724      percolate back to the file as seen by read().  (This is a bug on
23725      some variants of i386 svr4.0.)  */
23726   for (i = 0; i < pagesize; ++i)
23727     *(data2 + i) = *(data2 + i) + 1;
23728   data3 = (char *) malloc (pagesize);
23729   if (!data3)
23730     exit (1);
23731   if (read (fd, data3, pagesize) != pagesize)
23732     exit (1);
23733   for (i = 0; i < pagesize; ++i)
23734     if (*(data + i) != *(data3 + i))
23735       exit (1);
23736   close (fd);
23737   exit (0);
23738 }
23739 _ACEOF
23740 rm -f conftest$ac_exeext
23741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23742   (eval $ac_link) 2>&5
23743   ac_status=$?
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23747   (eval $ac_try) 2>&5
23748   ac_status=$?
23749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750   (exit $ac_status); }; }; then
23751   ac_cv_func_mmap_fixed_mapped=yes
23752 else
23753   echo "$as_me: program exited with status $ac_status" >&5
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756
23757 ( exit $ac_status )
23758 ac_cv_func_mmap_fixed_mapped=no
23759 fi
23760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23761 fi
23762 fi
23763 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23764 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23765 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23766
23767 cat >>confdefs.h <<\_ACEOF
23768 #define HAVE_MMAP 1
23769 _ACEOF
23770
23771 fi
23772 rm -f conftest.mmap
23773
23774 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23775 then
23776         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23777 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23778 fi
23779 echo "$as_me:$LINENO: checking for mmap of files" >&5
23780 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23781 if test "${ac_cv_func_mmap_file+set}" = set; then
23782   echo $ECHO_N "(cached) $ECHO_C" >&6
23783 else
23784    ac_ext=c
23785 ac_cpp='$CPP $CPPFLAGS'
23786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23789
23790   if test "$cross_compiling" = yes; then
23791   ac_cv_func_mmap_file=no
23792 else
23793   cat >conftest.$ac_ext <<_ACEOF
23794
23795     /* confdefs.h.  */
23796 _ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h.  */
23800
23801 #include <sys/types.h>
23802 #include <sys/mman.h>
23803 #include <fcntl.h>
23804
23805 int
23806 main ()
23807 {
23808
23809   int fd;
23810   fd = creat ("foo",0777);
23811   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23812   unlink ("foo");
23813   return (fd != (int) MAP_FAILED);
23814   ;
23815   return 0;
23816 }
23817 _ACEOF
23818 rm -f conftest$ac_exeext
23819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23820   (eval $ac_link) 2>&5
23821   ac_status=$?
23822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825   (eval $ac_try) 2>&5
23826   ac_status=$?
23827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828   (exit $ac_status); }; }; then
23829   ac_cv_func_mmap_file=yes
23830 else
23831   echo "$as_me: program exited with status $ac_status" >&5
23832 echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23834
23835 ( exit $ac_status )
23836 ac_cv_func_mmap_file=no
23837 fi
23838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23839 fi
23840   ac_ext=c
23841 ac_cpp='$CPP $CPPFLAGS'
23842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23845
23846
23847 fi
23848 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23849 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23850 if test "$ac_cv_func_mmap_file" = yes; then
23851
23852 cat >>confdefs.h <<\_ACEOF
23853 #define HAVE_MMAP_FILE
23854 _ACEOF
23855
23856    MMAP_FILE=yes
23857
23858 fi
23859
23860 if test "$ac_cv_func_mmap_file" = "no"
23861 then
23862         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23863 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23864 fi
23865 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23866 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23867 if test "${ac_cv_header_mmap_anon+set}" = set; then
23868   echo $ECHO_N "(cached) $ECHO_C" >&6
23869 else
23870    ac_ext=c
23871 ac_cpp='$CPP $CPPFLAGS'
23872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23875
23876   cat >conftest.$ac_ext <<_ACEOF
23877 /* confdefs.h.  */
23878 _ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h.  */
23882 #include <sys/mman.h>
23883 #include <unistd.h>
23884 #include <fcntl.h>
23885 int
23886 main ()
23887 {
23888 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23889   ;
23890   return 0;
23891 }
23892 _ACEOF
23893 rm -f conftest.$ac_objext
23894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23895   (eval $ac_compile) 2>conftest.er1
23896   ac_status=$?
23897   grep -v '^ *+' conftest.er1 >conftest.err
23898   rm -f conftest.er1
23899   cat conftest.err >&5
23900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901   (exit $ac_status); } &&
23902          { ac_try='test -z "$ac_c_werror_flag"
23903                          || test ! -s conftest.err'
23904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23905   (eval $ac_try) 2>&5
23906   ac_status=$?
23907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908   (exit $ac_status); }; } &&
23909          { ac_try='test -s conftest.$ac_objext'
23910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911   (eval $ac_try) 2>&5
23912   ac_status=$?
23913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914   (exit $ac_status); }; }; then
23915   ac_cv_header_mmap_anon=yes
23916 else
23917   echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23919
23920 ac_cv_header_mmap_anon=no
23921 fi
23922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23923   ac_ext=c
23924 ac_cpp='$CPP $CPPFLAGS'
23925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23928
23929
23930 fi
23931 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23932 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23933 if test "$ac_cv_header_mmap_anon" = yes; then
23934
23935 cat >>confdefs.h <<\_ACEOF
23936 #define HAVE_MMAP_ANONYMOUS
23937 _ACEOF
23938
23939 fi
23940
23941 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23942 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23943 if test "${ac_cv_type_signal+set}" = set; then
23944   echo $ECHO_N "(cached) $ECHO_C" >&6
23945 else
23946   cat >conftest.$ac_ext <<_ACEOF
23947 /* confdefs.h.  */
23948 _ACEOF
23949 cat confdefs.h >>conftest.$ac_ext
23950 cat >>conftest.$ac_ext <<_ACEOF
23951 /* end confdefs.h.  */
23952 #include <sys/types.h>
23953 #include <signal.h>
23954 #ifdef signal
23955 # undef signal
23956 #endif
23957 #ifdef __cplusplus
23958 extern "C" void (*signal (int, void (*)(int)))(int);
23959 #else
23960 void (*signal ()) ();
23961 #endif
23962
23963 int
23964 main ()
23965 {
23966 int i;
23967   ;
23968   return 0;
23969 }
23970 _ACEOF
23971 rm -f conftest.$ac_objext
23972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23973   (eval $ac_compile) 2>conftest.er1
23974   ac_status=$?
23975   grep -v '^ *+' conftest.er1 >conftest.err
23976   rm -f conftest.er1
23977   cat conftest.err >&5
23978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979   (exit $ac_status); } &&
23980          { ac_try='test -z "$ac_c_werror_flag"
23981                          || test ! -s conftest.err'
23982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983   (eval $ac_try) 2>&5
23984   ac_status=$?
23985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986   (exit $ac_status); }; } &&
23987          { ac_try='test -s conftest.$ac_objext'
23988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989   (eval $ac_try) 2>&5
23990   ac_status=$?
23991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992   (exit $ac_status); }; }; then
23993   ac_cv_type_signal=void
23994 else
23995   echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998 ac_cv_type_signal=int
23999 fi
24000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24001 fi
24002 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24003 echo "${ECHO_T}$ac_cv_type_signal" >&6
24004
24005 cat >>confdefs.h <<_ACEOF
24006 #define RETSIGTYPE $ac_cv_type_signal
24007 _ACEOF
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
24020 do
24021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24022 echo "$as_me:$LINENO: checking for $ac_func" >&5
24023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24024 if eval "test \"\${$as_ac_var+set}\" = set"; then
24025   echo $ECHO_N "(cached) $ECHO_C" >&6
24026 else
24027   cat >conftest.$ac_ext <<_ACEOF
24028 /* confdefs.h.  */
24029 _ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h.  */
24033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24035 #define $ac_func innocuous_$ac_func
24036
24037 /* System header to define __stub macros and hopefully few prototypes,
24038     which can conflict with char $ac_func (); below.
24039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24040     <limits.h> exists even on freestanding compilers.  */
24041
24042 #ifdef __STDC__
24043 # include <limits.h>
24044 #else
24045 # include <assert.h>
24046 #endif
24047
24048 #undef $ac_func
24049
24050 /* Override any gcc2 internal prototype to avoid an error.  */
24051 #ifdef __cplusplus
24052 extern "C"
24053 {
24054 #endif
24055 /* We use char because int might match the return type of a gcc2
24056    builtin and then its argument prototype would still apply.  */
24057 char $ac_func ();
24058 /* The GNU C library defines this for functions which it implements
24059     to always fail with ENOSYS.  Some functions are actually named
24060     something starting with __ and the normal name is an alias.  */
24061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24062 choke me
24063 #else
24064 char (*f) () = $ac_func;
24065 #endif
24066 #ifdef __cplusplus
24067 }
24068 #endif
24069
24070 int
24071 main ()
24072 {
24073 return f != $ac_func;
24074   ;
24075   return 0;
24076 }
24077 _ACEOF
24078 rm -f conftest.$ac_objext conftest$ac_exeext
24079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24080   (eval $ac_link) 2>conftest.er1
24081   ac_status=$?
24082   grep -v '^ *+' conftest.er1 >conftest.err
24083   rm -f conftest.er1
24084   cat conftest.err >&5
24085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086   (exit $ac_status); } &&
24087          { ac_try='test -z "$ac_c_werror_flag"
24088                          || test ! -s conftest.err'
24089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090   (eval $ac_try) 2>&5
24091   ac_status=$?
24092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093   (exit $ac_status); }; } &&
24094          { ac_try='test -s conftest$ac_exeext'
24095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096   (eval $ac_try) 2>&5
24097   ac_status=$?
24098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099   (exit $ac_status); }; }; then
24100   eval "$as_ac_var=yes"
24101 else
24102   echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.$ac_ext >&5
24104
24105 eval "$as_ac_var=no"
24106 fi
24107 rm -f conftest.err conftest.$ac_objext \
24108       conftest$ac_exeext conftest.$ac_ext
24109 fi
24110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24112 if test `eval echo '${'$as_ac_var'}'` = yes; then
24113   cat >>confdefs.h <<_ACEOF
24114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24115 _ACEOF
24116
24117 fi
24118 done
24119
24120 echo "$as_me:$LINENO: checking for mprotect" >&5
24121 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24122 if test "${ac_cv_func_mprotect+set}" = set; then
24123   echo $ECHO_N "(cached) $ECHO_C" >&6
24124 else
24125   cat >conftest.$ac_ext <<_ACEOF
24126 /* confdefs.h.  */
24127 _ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h.  */
24131 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24133 #define mprotect innocuous_mprotect
24134
24135 /* System header to define __stub macros and hopefully few prototypes,
24136     which can conflict with char mprotect (); below.
24137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24138     <limits.h> exists even on freestanding compilers.  */
24139
24140 #ifdef __STDC__
24141 # include <limits.h>
24142 #else
24143 # include <assert.h>
24144 #endif
24145
24146 #undef mprotect
24147
24148 /* Override any gcc2 internal prototype to avoid an error.  */
24149 #ifdef __cplusplus
24150 extern "C"
24151 {
24152 #endif
24153 /* We use char because int might match the return type of a gcc2
24154    builtin and then its argument prototype would still apply.  */
24155 char mprotect ();
24156 /* The GNU C library defines this for functions which it implements
24157     to always fail with ENOSYS.  Some functions are actually named
24158     something starting with __ and the normal name is an alias.  */
24159 #if defined (__stub_mprotect) || defined (__stub___mprotect)
24160 choke me
24161 #else
24162 char (*f) () = mprotect;
24163 #endif
24164 #ifdef __cplusplus
24165 }
24166 #endif
24167
24168 int
24169 main ()
24170 {
24171 return f != mprotect;
24172   ;
24173   return 0;
24174 }
24175 _ACEOF
24176 rm -f conftest.$ac_objext conftest$ac_exeext
24177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24178   (eval $ac_link) 2>conftest.er1
24179   ac_status=$?
24180   grep -v '^ *+' conftest.er1 >conftest.err
24181   rm -f conftest.er1
24182   cat conftest.err >&5
24183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184   (exit $ac_status); } &&
24185          { ac_try='test -z "$ac_c_werror_flag"
24186                          || test ! -s conftest.err'
24187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188   (eval $ac_try) 2>&5
24189   ac_status=$?
24190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191   (exit $ac_status); }; } &&
24192          { ac_try='test -s conftest$ac_exeext'
24193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194   (eval $ac_try) 2>&5
24195   ac_status=$?
24196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197   (exit $ac_status); }; }; then
24198   ac_cv_func_mprotect=yes
24199 else
24200   echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24202
24203 ac_cv_func_mprotect=no
24204 fi
24205 rm -f conftest.err conftest.$ac_objext \
24206       conftest$ac_exeext conftest.$ac_ext
24207 fi
24208 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24209 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24210 if test $ac_cv_func_mprotect = yes; then
24211   :
24212 else
24213   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24214 echo "$as_me: error: Function mprotect() required but not found" >&2;}
24215    { (exit 1); exit 1; }; }
24216 fi
24217
24218
24219
24220   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24221 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
24222   ac_ext=c
24223 ac_cpp='$CPP $CPPFLAGS'
24224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24227
24228   oldcflags="$CFLAGS"
24229   CFLAGS="$CFLAGS -Wl,-R."
24230   cat >conftest.$ac_ext <<_ACEOF
24231 /* confdefs.h.  */
24232 _ACEOF
24233 cat confdefs.h >>conftest.$ac_ext
24234 cat >>conftest.$ac_ext <<_ACEOF
24235 /* end confdefs.h.  */
24236
24237 int
24238 main ()
24239 {
24240 int main() { return 0; }
24241   ;
24242   return 0;
24243 }
24244 _ACEOF
24245 rm -f conftest.$ac_objext conftest$ac_exeext
24246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24247   (eval $ac_link) 2>conftest.er1
24248   ac_status=$?
24249   grep -v '^ *+' conftest.er1 >conftest.err
24250   rm -f conftest.er1
24251   cat conftest.err >&5
24252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253   (exit $ac_status); } &&
24254          { ac_try='test -z "$ac_c_werror_flag"
24255                          || test ! -s conftest.err'
24256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257   (eval $ac_try) 2>&5
24258   ac_status=$?
24259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); }; } &&
24261          { ac_try='test -s conftest$ac_exeext'
24262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263   (eval $ac_try) 2>&5
24264   ac_status=$?
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); }; }; then
24267   ac_cv_link_use_r=yes
24268 else
24269   echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24271
24272 ac_cv_link_use_r=no
24273 fi
24274 rm -f conftest.err conftest.$ac_objext \
24275       conftest$ac_exeext conftest.$ac_ext
24276   CFLAGS="$oldcflags"
24277   ac_ext=c
24278 ac_cpp='$CPP $CPPFLAGS'
24279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24282
24283   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24284 echo "${ECHO_T}$ac_cv_link_use_r" >&6
24285   if test "$ac_cv_link_use_r" = yes
24286   then
24287
24288 cat >>confdefs.h <<\_ACEOF
24289 #define HAVE_LINK_R 1
24290 _ACEOF
24291
24292   fi
24293
24294
24295 # Check whether --enable-optimized or --disable-optimized was given.
24296 if test "${enable_optimized+set}" = set; then
24297   enableval="$enable_optimized"
24298
24299 else
24300   enableval=no
24301 fi;
24302 if test ${enableval} = "no"
24303 then
24304         ENABLE_OPTIMIZED=
24305
24306 else
24307         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24308
24309 fi
24310
24311 # Check whether --enable-jit or --disable-jit was given.
24312 if test "${enable_jit+set}" = set; then
24313   enableval="$enable_jit"
24314
24315 else
24316   enableval=default
24317 fi;
24318 if test ${enableval} = "no"
24319 then
24320         JIT=
24321
24322 else
24323         case $target in
24324                 *i*86*)
24325                         JIT=TARGET_HAS_JIT=1
24326
24327                         ;;
24328                 *sparc*)
24329                         JIT=TARGET_HAS_JIT=1
24330
24331                         ;;
24332                 *)
24333                         JIT=
24334
24335                         ;;
24336         esac
24337 fi
24338
24339
24340 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24341 if test "${with_llvmgccdir+set}" = set; then
24342   withval="$with_llvmgccdir"
24343   LLVMGCCDIR=$withval
24344
24345 fi;
24346 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24347 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24348 LLVM_GCC_CHECK=no
24349 if test -d "$LLVMGCCDIR"
24350 then
24351         if test -x "$LLVMGCCDIR/bin/gcc"
24352         then
24353                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24354         fi
24355 fi
24356 llvmgccwarn=no
24357 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24358 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24359 if test "$LLVM_GCC_CHECK" = "no"
24360 then
24361     llvmgccwarn=yes
24362 fi
24363 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24364 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24365 LLVM_GCC_SANE=no
24366 if test -x "$LLVM_GCC_CHECK"
24367 then
24368         cp /dev/null conftest.c
24369     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24370         if test $? -eq 0
24371         then
24372                 LLVM_GCC_SANE=yes
24373         fi
24374         rm conftest.c
24375         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
24376         LLVMCC1=$llvmcc1path
24377
24378         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
24379         LLVMCC1PLUS=$llvmcc1pluspath
24380
24381 fi
24382 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24383 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24384 if test "$LLVM_GCC_SANE" = "no"
24385 then
24386         llvmgccwarn=yes
24387 fi
24388
24389 echo "$as_me:$LINENO: checking for shared library suffix" >&5
24390 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
24391 eval "SHLIBEXT=$shrext_cmds"
24392 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24393 echo "${ECHO_T}$SHLIBEXT" >&6
24394 SHLIBEXT=$SHLIBEXT
24395
24396
24397 cat >>confdefs.h <<_ACEOF
24398 #define SHLIBEXT "$SHLIBEXT"
24399 _ACEOF
24400
24401
24402 # Translate the various configuration directories and other basic
24403 # information into substitutions that will end up in config.h.in so
24404 # that these configured values can be hard-wired into a program.
24405 eval LLVM_PREFIX="${prefix}";
24406 eval LLVM_BINDIR="${prefix}/bin";
24407 eval LLVM_LIBDIR="${prefix}/lib";
24408 eval LLVM_DATADIR="${prefix}/data";
24409 eval LLVM_DOCSDIR="${prefix}/docs";
24410 eval LLVM_ETCDIR="${prefix}/etc";
24411 eval LLVM_INCLUDEDIR="${prefix}/include";
24412 eval LLVM_INFODIR="${prefix}/info";
24413 eval LLVM_MANDIR="${prefix}/man";
24414 LLVM_CONFIGTIME=`date`
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426 cat >>confdefs.h <<_ACEOF
24427 #define LLVM_PREFIX "$LLVM_PREFIX"
24428 _ACEOF
24429
24430
24431 cat >>confdefs.h <<_ACEOF
24432 #define LLVM_BINDIR "$LLVM_BINDIR"
24433 _ACEOF
24434
24435
24436 cat >>confdefs.h <<_ACEOF
24437 #define LLVM_LIBDIR "$LLVM_LIBDIR"
24438 _ACEOF
24439
24440
24441 cat >>confdefs.h <<_ACEOF
24442 #define LLVM_DATADIR "$LLVM_DATADIR"
24443 _ACEOF
24444
24445
24446 cat >>confdefs.h <<_ACEOF
24447 #define LLVM_DATADIR "$LLVM_DOCSDIR"
24448 _ACEOF
24449
24450
24451 cat >>confdefs.h <<_ACEOF
24452 #define LLVM_ETCDIR "$LLVM_ETCDIR"
24453 _ACEOF
24454
24455
24456 cat >>confdefs.h <<_ACEOF
24457 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24458 _ACEOF
24459
24460
24461 cat >>confdefs.h <<_ACEOF
24462 #define LLVM_INFODIR "$LLVM_INFODIR"
24463 _ACEOF
24464
24465
24466 cat >>confdefs.h <<_ACEOF
24467 #define LLVM_MANDIR "$LLVM_MANDIR"
24468 _ACEOF
24469
24470
24471 cat >>confdefs.h <<_ACEOF
24472 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24473 _ACEOF
24474
24475
24476 cat >confcache <<\_ACEOF
24477 # This file is a shell script that caches the results of configure
24478 # tests run on this system so they can be shared between configure
24479 # scripts and configure runs, see configure's option --config-cache.
24480 # It is not useful on other systems.  If it contains results you don't
24481 # want to keep, you may remove or edit it.
24482 #
24483 # config.status only pays attention to the cache file if you give it
24484 # the --recheck option to rerun configure.
24485 #
24486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24488 # following values.
24489
24490 _ACEOF
24491
24492 # The following way of writing the cache mishandles newlines in values,
24493 # but we know of no workaround that is simple, portable, and efficient.
24494 # So, don't put newlines in cache variables' values.
24495 # Ultrix sh set writes to stderr and can't be redirected directly,
24496 # and sets the high bit in the cache file unless we assign to the vars.
24497 {
24498   (set) 2>&1 |
24499     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24500     *ac_space=\ *)
24501       # `set' does not quote correctly, so add quotes (double-quote
24502       # substitution turns \\\\ into \\, and sed turns \\ into \).
24503       sed -n \
24504         "s/'/'\\\\''/g;
24505           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24506       ;;
24507     *)
24508       # `set' quotes correctly as required by POSIX, so do not add quotes.
24509       sed -n \
24510         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24511       ;;
24512     esac;
24513 } |
24514   sed '
24515      t clear
24516      : clear
24517      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24518      t end
24519      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24520      : end' >>confcache
24521 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24522   if test -w $cache_file; then
24523     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24524     cat confcache >$cache_file
24525   else
24526     echo "not updating unwritable cache $cache_file"
24527   fi
24528 fi
24529 rm -f confcache
24530
24531 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24532 # Let make expand exec_prefix.
24533 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24534
24535 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24536 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24537 # trailing colons and then remove the whole line if VPATH becomes empty
24538 # (actually we leave an empty line to preserve line numbers).
24539 if test "x$srcdir" = x.; then
24540   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24541 s/:*\$(srcdir):*/:/;
24542 s/:*\${srcdir}:*/:/;
24543 s/:*@srcdir@:*/:/;
24544 s/^\([^=]*=[     ]*\):*/\1/;
24545 s/:*$//;
24546 s/^[^=]*=[       ]*$//;
24547 }'
24548 fi
24549
24550 DEFS=-DHAVE_CONFIG_H
24551
24552 ac_libobjs=
24553 ac_ltlibobjs=
24554 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24555   # 1. Remove the extension, and $U if already installed.
24556   ac_i=`echo "$ac_i" |
24557          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24558   # 2. Add them.
24559   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24560   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24561 done
24562 LIBOBJS=$ac_libobjs
24563
24564 LTLIBOBJS=$ac_ltlibobjs
24565
24566
24567
24568 : ${CONFIG_STATUS=./config.status}
24569 ac_clean_files_save=$ac_clean_files
24570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24571 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24572 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24573 cat >$CONFIG_STATUS <<_ACEOF
24574 #! $SHELL
24575 # Generated by $as_me.
24576 # Run this file to recreate the current configuration.
24577 # Compiler output produced by configure, useful for debugging
24578 # configure, is in config.log if it exists.
24579
24580 debug=false
24581 ac_cs_recheck=false
24582 ac_cs_silent=false
24583 SHELL=\${CONFIG_SHELL-$SHELL}
24584 _ACEOF
24585
24586 cat >>$CONFIG_STATUS <<\_ACEOF
24587 ## --------------------- ##
24588 ## M4sh Initialization.  ##
24589 ## --------------------- ##
24590
24591 # Be Bourne compatible
24592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24593   emulate sh
24594   NULLCMD=:
24595   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24596   # is contrary to our usage.  Disable this feature.
24597   alias -g '${1+"$@"}'='"$@"'
24598 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24599   set -o posix
24600 fi
24601 DUALCASE=1; export DUALCASE # for MKS sh
24602
24603 # Support unset when possible.
24604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24605   as_unset=unset
24606 else
24607   as_unset=false
24608 fi
24609
24610
24611 # Work around bugs in pre-3.0 UWIN ksh.
24612 $as_unset ENV MAIL MAILPATH
24613 PS1='$ '
24614 PS2='> '
24615 PS4='+ '
24616
24617 # NLS nuisances.
24618 for as_var in \
24619   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24620   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24621   LC_TELEPHONE LC_TIME
24622 do
24623   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24624     eval $as_var=C; export $as_var
24625   else
24626     $as_unset $as_var
24627   fi
24628 done
24629
24630 # Required to use basename.
24631 if expr a : '\(a\)' >/dev/null 2>&1; then
24632   as_expr=expr
24633 else
24634   as_expr=false
24635 fi
24636
24637 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24638   as_basename=basename
24639 else
24640   as_basename=false
24641 fi
24642
24643
24644 # Name of the executable.
24645 as_me=`$as_basename "$0" ||
24646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24647          X"$0" : 'X\(//\)$' \| \
24648          X"$0" : 'X\(/\)$' \| \
24649          .     : '\(.\)' 2>/dev/null ||
24650 echo X/"$0" |
24651     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24652           /^X\/\(\/\/\)$/{ s//\1/; q; }
24653           /^X\/\(\/\).*/{ s//\1/; q; }
24654           s/.*/./; q'`
24655
24656
24657 # PATH needs CR, and LINENO needs CR and PATH.
24658 # Avoid depending upon Character Ranges.
24659 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24660 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24661 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24662 as_cr_digits='0123456789'
24663 as_cr_alnum=$as_cr_Letters$as_cr_digits
24664
24665 # The user is always right.
24666 if test "${PATH_SEPARATOR+set}" != set; then
24667   echo "#! /bin/sh" >conf$$.sh
24668   echo  "exit 0"   >>conf$$.sh
24669   chmod +x conf$$.sh
24670   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24671     PATH_SEPARATOR=';'
24672   else
24673     PATH_SEPARATOR=:
24674   fi
24675   rm -f conf$$.sh
24676 fi
24677
24678
24679   as_lineno_1=$LINENO
24680   as_lineno_2=$LINENO
24681   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24682   test "x$as_lineno_1" != "x$as_lineno_2" &&
24683   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24684   # Find who we are.  Look in the path if we contain no path at all
24685   # relative or not.
24686   case $0 in
24687     *[\\/]* ) as_myself=$0 ;;
24688     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24689 for as_dir in $PATH
24690 do
24691   IFS=$as_save_IFS
24692   test -z "$as_dir" && as_dir=.
24693   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24694 done
24695
24696        ;;
24697   esac
24698   # We did not find ourselves, most probably we were run as `sh COMMAND'
24699   # in which case we are not to be found in the path.
24700   if test "x$as_myself" = x; then
24701     as_myself=$0
24702   fi
24703   if test ! -f "$as_myself"; then
24704     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24705 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24706    { (exit 1); exit 1; }; }
24707   fi
24708   case $CONFIG_SHELL in
24709   '')
24710     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24711 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24712 do
24713   IFS=$as_save_IFS
24714   test -z "$as_dir" && as_dir=.
24715   for as_base in sh bash ksh sh5; do
24716          case $as_dir in
24717          /*)
24718            if ("$as_dir/$as_base" -c '
24719   as_lineno_1=$LINENO
24720   as_lineno_2=$LINENO
24721   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24722   test "x$as_lineno_1" != "x$as_lineno_2" &&
24723   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24724              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24725              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24726              CONFIG_SHELL=$as_dir/$as_base
24727              export CONFIG_SHELL
24728              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24729            fi;;
24730          esac
24731        done
24732 done
24733 ;;
24734   esac
24735
24736   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24737   # uniformly replaced by the line number.  The first 'sed' inserts a
24738   # line-number line before each line; the second 'sed' does the real
24739   # work.  The second script uses 'N' to pair each line-number line
24740   # with the numbered line, and appends trailing '-' during
24741   # substitution so that $LINENO is not a special case at line end.
24742   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24743   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24744   sed '=' <$as_myself |
24745     sed '
24746       N
24747       s,$,-,
24748       : loop
24749       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24750       t loop
24751       s,-$,,
24752       s,^['$as_cr_digits']*\n,,
24753     ' >$as_me.lineno &&
24754   chmod +x $as_me.lineno ||
24755     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24756 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24757    { (exit 1); exit 1; }; }
24758
24759   # Don't try to exec as it changes $[0], causing all sort of problems
24760   # (the dirname of $[0] is not the place where we might find the
24761   # original and so on.  Autoconf is especially sensible to this).
24762   . ./$as_me.lineno
24763   # Exit status is that of the last command.
24764   exit
24765 }
24766
24767
24768 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24769   *c*,-n*) ECHO_N= ECHO_C='
24770 ' ECHO_T='      ' ;;
24771   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24772   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24773 esac
24774
24775 if expr a : '\(a\)' >/dev/null 2>&1; then
24776   as_expr=expr
24777 else
24778   as_expr=false
24779 fi
24780
24781 rm -f conf$$ conf$$.exe conf$$.file
24782 echo >conf$$.file
24783 if ln -s conf$$.file conf$$ 2>/dev/null; then
24784   # We could just check for DJGPP; but this test a) works b) is more generic
24785   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24786   if test -f conf$$.exe; then
24787     # Don't use ln at all; we don't have any links
24788     as_ln_s='cp -p'
24789   else
24790     as_ln_s='ln -s'
24791   fi
24792 elif ln conf$$.file conf$$ 2>/dev/null; then
24793   as_ln_s=ln
24794 else
24795   as_ln_s='cp -p'
24796 fi
24797 rm -f conf$$ conf$$.exe conf$$.file
24798
24799 if mkdir -p . 2>/dev/null; then
24800   as_mkdir_p=:
24801 else
24802   test -d ./-p && rmdir ./-p
24803   as_mkdir_p=false
24804 fi
24805
24806 as_executable_p="test -f"
24807
24808 # Sed expression to map a string onto a valid CPP name.
24809 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24810
24811 # Sed expression to map a string onto a valid variable name.
24812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24813
24814
24815 # IFS
24816 # We need space, tab and new line, in precisely that order.
24817 as_nl='
24818 '
24819 IFS="   $as_nl"
24820
24821 # CDPATH.
24822 $as_unset CDPATH
24823
24824 exec 6>&1
24825
24826 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24827 # report actual input values of CONFIG_FILES etc. instead of their
24828 # values after options handling.  Logging --version etc. is OK.
24829 exec 5>>config.log
24830 {
24831   echo
24832   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24833 ## Running $as_me. ##
24834 _ASBOX
24835 } >&5
24836 cat >&5 <<_CSEOF
24837
24838 This file was extended by LLVM $as_me 1.4, which was
24839 generated by GNU Autoconf 2.59.  Invocation command line was
24840
24841   CONFIG_FILES    = $CONFIG_FILES
24842   CONFIG_HEADERS  = $CONFIG_HEADERS
24843   CONFIG_LINKS    = $CONFIG_LINKS
24844   CONFIG_COMMANDS = $CONFIG_COMMANDS
24845   $ $0 $@
24846
24847 _CSEOF
24848 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24849 echo >&5
24850 _ACEOF
24851
24852 # Files that config.status was made for.
24853 if test -n "$ac_config_files"; then
24854   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24855 fi
24856
24857 if test -n "$ac_config_headers"; then
24858   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24859 fi
24860
24861 if test -n "$ac_config_links"; then
24862   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24863 fi
24864
24865 if test -n "$ac_config_commands"; then
24866   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24867 fi
24868
24869 cat >>$CONFIG_STATUS <<\_ACEOF
24870
24871 ac_cs_usage="\
24872 \`$as_me' instantiates files from templates according to the
24873 current configuration.
24874
24875 Usage: $0 [OPTIONS] [FILE]...
24876
24877   -h, --help       print this help, then exit
24878   -V, --version    print version number, then exit
24879   -q, --quiet      do not print progress messages
24880   -d, --debug      don't remove temporary files
24881       --recheck    update $as_me by reconfiguring in the same conditions
24882   --file=FILE[:TEMPLATE]
24883                    instantiate the configuration file FILE
24884   --header=FILE[:TEMPLATE]
24885                    instantiate the configuration header FILE
24886
24887 Configuration files:
24888 $config_files
24889
24890 Configuration headers:
24891 $config_headers
24892
24893 Configuration links:
24894 $config_links
24895
24896 Configuration commands:
24897 $config_commands
24898
24899 Report bugs to <bug-autoconf@gnu.org>."
24900 _ACEOF
24901
24902 cat >>$CONFIG_STATUS <<_ACEOF
24903 ac_cs_version="\\
24904 LLVM config.status 1.4
24905 configured by $0, generated by GNU Autoconf 2.59,
24906   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24907
24908 Copyright (C) 2003 Free Software Foundation, Inc.
24909 This config.status script is free software; the Free Software Foundation
24910 gives unlimited permission to copy, distribute and modify it."
24911 srcdir=$srcdir
24912 INSTALL="$INSTALL"
24913 _ACEOF
24914
24915 cat >>$CONFIG_STATUS <<\_ACEOF
24916 # If no file are specified by the user, then we need to provide default
24917 # value.  By we need to know if files were specified by the user.
24918 ac_need_defaults=:
24919 while test $# != 0
24920 do
24921   case $1 in
24922   --*=*)
24923     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24924     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24925     ac_shift=:
24926     ;;
24927   -*)
24928     ac_option=$1
24929     ac_optarg=$2
24930     ac_shift=shift
24931     ;;
24932   *) # This is not an option, so the user has probably given explicit
24933      # arguments.
24934      ac_option=$1
24935      ac_need_defaults=false;;
24936   esac
24937
24938   case $ac_option in
24939   # Handling of the options.
24940 _ACEOF
24941 cat >>$CONFIG_STATUS <<\_ACEOF
24942   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24943     ac_cs_recheck=: ;;
24944   --version | --vers* | -V )
24945     echo "$ac_cs_version"; exit 0 ;;
24946   --he | --h)
24947     # Conflict between --help and --header
24948     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24949 Try \`$0 --help' for more information." >&5
24950 echo "$as_me: error: ambiguous option: $1
24951 Try \`$0 --help' for more information." >&2;}
24952    { (exit 1); exit 1; }; };;
24953   --help | --hel | -h )
24954     echo "$ac_cs_usage"; exit 0 ;;
24955   --debug | --d* | -d )
24956     debug=: ;;
24957   --file | --fil | --fi | --f )
24958     $ac_shift
24959     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24960     ac_need_defaults=false;;
24961   --header | --heade | --head | --hea )
24962     $ac_shift
24963     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24964     ac_need_defaults=false;;
24965   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24966   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24967     ac_cs_silent=: ;;
24968
24969   # This is an error.
24970   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24971 Try \`$0 --help' for more information." >&5
24972 echo "$as_me: error: unrecognized option: $1
24973 Try \`$0 --help' for more information." >&2;}
24974    { (exit 1); exit 1; }; } ;;
24975
24976   *) ac_config_targets="$ac_config_targets $1" ;;
24977
24978   esac
24979   shift
24980 done
24981
24982 ac_configure_extra_args=
24983
24984 if $ac_cs_silent; then
24985   exec 6>/dev/null
24986   ac_configure_extra_args="$ac_configure_extra_args --silent"
24987 fi
24988
24989 _ACEOF
24990 cat >>$CONFIG_STATUS <<_ACEOF
24991 if \$ac_cs_recheck; then
24992   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24993   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24994 fi
24995
24996 _ACEOF
24997
24998 cat >>$CONFIG_STATUS <<_ACEOF
24999 #
25000 # INIT-COMMANDS section.
25001 #
25002
25003 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25004 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
25005 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
25006 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
25007 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
25008 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25009 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
25010 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25011 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
25012 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
25013 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
25014 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
25015 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
25016
25017 _ACEOF
25018
25019
25020
25021 cat >>$CONFIG_STATUS <<\_ACEOF
25022 for ac_config_target in $ac_config_targets
25023 do
25024   case "$ac_config_target" in
25025   # Handling of arguments.
25026   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
25027   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
25028   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25029   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
25030   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
25031   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
25032   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
25033   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25034   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
25035   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25036   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
25037   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
25038   "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
25039   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
25040   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
25041   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
25042   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
25043   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25044   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
25045   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25046   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
25047   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25048 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25049    { (exit 1); exit 1; }; };;
25050   esac
25051 done
25052
25053 # If the user did not use the arguments to specify the items to instantiate,
25054 # then the envvar interface is used.  Set only those that are not.
25055 # We use the long form for the default assignment because of an extremely
25056 # bizarre bug on SunOS 4.1.3.
25057 if $ac_need_defaults; then
25058   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25059   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25060   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25061   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25062 fi
25063
25064 # Have a temporary directory for convenience.  Make it in the build tree
25065 # simply because there is no reason to put it here, and in addition,
25066 # creating and moving files from /tmp can sometimes cause problems.
25067 # Create a temporary directory, and hook for its removal unless debugging.
25068 $debug ||
25069 {
25070   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25071   trap '{ (exit 1); exit 1; }' 1 2 13 15
25072 }
25073
25074 # Create a (secure) tmp directory for tmp files.
25075
25076 {
25077   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25078   test -n "$tmp" && test -d "$tmp"
25079 }  ||
25080 {
25081   tmp=./confstat$$-$RANDOM
25082   (umask 077 && mkdir $tmp)
25083 } ||
25084 {
25085    echo "$me: cannot create a temporary directory in ." >&2
25086    { (exit 1); exit 1; }
25087 }
25088
25089 _ACEOF
25090
25091 cat >>$CONFIG_STATUS <<_ACEOF
25092
25093 #
25094 # CONFIG_FILES section.
25095 #
25096
25097 # No need to generate the scripts if there are no CONFIG_FILES.
25098 # This happens for instance when ./config.status config.h
25099 if test -n "\$CONFIG_FILES"; then
25100   # Protect against being on the right side of a sed subst in config.status.
25101   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25102    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25103 s,@SHELL@,$SHELL,;t t
25104 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25105 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25106 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25107 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25108 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25109 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25110 s,@exec_prefix@,$exec_prefix,;t t
25111 s,@prefix@,$prefix,;t t
25112 s,@program_transform_name@,$program_transform_name,;t t
25113 s,@bindir@,$bindir,;t t
25114 s,@sbindir@,$sbindir,;t t
25115 s,@libexecdir@,$libexecdir,;t t
25116 s,@datadir@,$datadir,;t t
25117 s,@sysconfdir@,$sysconfdir,;t t
25118 s,@sharedstatedir@,$sharedstatedir,;t t
25119 s,@localstatedir@,$localstatedir,;t t
25120 s,@libdir@,$libdir,;t t
25121 s,@includedir@,$includedir,;t t
25122 s,@oldincludedir@,$oldincludedir,;t t
25123 s,@infodir@,$infodir,;t t
25124 s,@mandir@,$mandir,;t t
25125 s,@build_alias@,$build_alias,;t t
25126 s,@host_alias@,$host_alias,;t t
25127 s,@target_alias@,$target_alias,;t t
25128 s,@DEFS@,$DEFS,;t t
25129 s,@ECHO_C@,$ECHO_C,;t t
25130 s,@ECHO_N@,$ECHO_N,;t t
25131 s,@ECHO_T@,$ECHO_T,;t t
25132 s,@LIBS@,$LIBS,;t t
25133 s,@subdirs@,$subdirs,;t t
25134 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25135 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25136 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25137 s,@build@,$build,;t t
25138 s,@build_cpu@,$build_cpu,;t t
25139 s,@build_vendor@,$build_vendor,;t t
25140 s,@build_os@,$build_os,;t t
25141 s,@host@,$host,;t t
25142 s,@host_cpu@,$host_cpu,;t t
25143 s,@host_vendor@,$host_vendor,;t t
25144 s,@host_os@,$host_os,;t t
25145 s,@target@,$target,;t t
25146 s,@target_cpu@,$target_cpu,;t t
25147 s,@target_vendor@,$target_vendor,;t t
25148 s,@target_os@,$target_os,;t t
25149 s,@OS@,$OS,;t t
25150 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
25151 s,@ARCH@,$ARCH,;t t
25152 s,@CXX@,$CXX,;t t
25153 s,@CXXFLAGS@,$CXXFLAGS,;t t
25154 s,@LDFLAGS@,$LDFLAGS,;t t
25155 s,@CPPFLAGS@,$CPPFLAGS,;t t
25156 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25157 s,@EXEEXT@,$EXEEXT,;t t
25158 s,@OBJEXT@,$OBJEXT,;t t
25159 s,@CC@,$CC,;t t
25160 s,@CFLAGS@,$CFLAGS,;t t
25161 s,@ac_ct_CC@,$ac_ct_CC,;t t
25162 s,@CPP@,$CPP,;t t
25163 s,@ifGNUmake@,$ifGNUmake,;t t
25164 s,@LEX@,$LEX,;t t
25165 s,@LEXLIB@,$LEXLIB,;t t
25166 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
25167 s,@FLEX@,$FLEX,;t t
25168 s,@YACC@,$YACC,;t t
25169 s,@BISON@,$BISON,;t t
25170 s,@EGREP@,$EGREP,;t t
25171 s,@LN_S@,$LN_S,;t t
25172 s,@ECHO@,$ECHO,;t t
25173 s,@AR@,$AR,;t t
25174 s,@ac_ct_AR@,$ac_ct_AR,;t t
25175 s,@RANLIB@,$RANLIB,;t t
25176 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25177 s,@STRIP@,$STRIP,;t t
25178 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25179 s,@CXXCPP@,$CXXCPP,;t t
25180 s,@F77@,$F77,;t t
25181 s,@FFLAGS@,$FFLAGS,;t t
25182 s,@ac_ct_F77@,$ac_ct_F77,;t t
25183 s,@LIBTOOL@,$LIBTOOL,;t t
25184 s,@DOT@,$DOT,;t t
25185 s,@ETAGS@,$ETAGS,;t t
25186 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
25187 s,@PYTHON@,$PYTHON,;t t
25188 s,@QMTEST@,$QMTEST,;t t
25189 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25190 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
25191 s,@ENDIAN@,$ENDIAN,;t t
25192 s,@ALLOCA@,$ALLOCA,;t t
25193 s,@MMAP_FILE@,$MMAP_FILE,;t t
25194 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
25195 s,@JIT@,$JIT,;t t
25196 s,@LLVMCC1@,$LLVMCC1,;t t
25197 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
25198 s,@SHLIBEXT@,$SHLIBEXT,;t t
25199 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25200 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25201 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25202 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25203 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25204 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25205 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25206 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25207 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25208 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
25209 s,@LIBOBJS@,$LIBOBJS,;t t
25210 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25211 CEOF
25212
25213 _ACEOF
25214
25215   cat >>$CONFIG_STATUS <<\_ACEOF
25216   # Split the substitutions into bite-sized pieces for seds with
25217   # small command number limits, like on Digital OSF/1 and HP-UX.
25218   ac_max_sed_lines=48
25219   ac_sed_frag=1 # Number of current file.
25220   ac_beg=1 # First line for current file.
25221   ac_end=$ac_max_sed_lines # Line after last line for current file.
25222   ac_more_lines=:
25223   ac_sed_cmds=
25224   while $ac_more_lines; do
25225     if test $ac_beg -gt 1; then
25226       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25227     else
25228       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25229     fi
25230     if test ! -s $tmp/subs.frag; then
25231       ac_more_lines=false
25232     else
25233       # The purpose of the label and of the branching condition is to
25234       # speed up the sed processing (if there are no `@' at all, there
25235       # is no need to browse any of the substitutions).
25236       # These are the two extra sed commands mentioned above.
25237       (echo ':t
25238   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25239       if test -z "$ac_sed_cmds"; then
25240         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25241       else
25242         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25243       fi
25244       ac_sed_frag=`expr $ac_sed_frag + 1`
25245       ac_beg=$ac_end
25246       ac_end=`expr $ac_end + $ac_max_sed_lines`
25247     fi
25248   done
25249   if test -z "$ac_sed_cmds"; then
25250     ac_sed_cmds=cat
25251   fi
25252 fi # test -n "$CONFIG_FILES"
25253
25254 _ACEOF
25255 cat >>$CONFIG_STATUS <<\_ACEOF
25256 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25257   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25258   case $ac_file in
25259   - | *:- | *:-:* ) # input from stdin
25260         cat >$tmp/stdin
25261         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25262         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25263   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25264         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25265   * )   ac_file_in=$ac_file.in ;;
25266   esac
25267
25268   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25269   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25270 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25271          X"$ac_file" : 'X\(//\)[^/]' \| \
25272          X"$ac_file" : 'X\(//\)$' \| \
25273          X"$ac_file" : 'X\(/\)' \| \
25274          .     : '\(.\)' 2>/dev/null ||
25275 echo X"$ac_file" |
25276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25277           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25278           /^X\(\/\/\)$/{ s//\1/; q; }
25279           /^X\(\/\).*/{ s//\1/; q; }
25280           s/.*/./; q'`
25281   { if $as_mkdir_p; then
25282     mkdir -p "$ac_dir"
25283   else
25284     as_dir="$ac_dir"
25285     as_dirs=
25286     while test ! -d "$as_dir"; do
25287       as_dirs="$as_dir $as_dirs"
25288       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25290          X"$as_dir" : 'X\(//\)[^/]' \| \
25291          X"$as_dir" : 'X\(//\)$' \| \
25292          X"$as_dir" : 'X\(/\)' \| \
25293          .     : '\(.\)' 2>/dev/null ||
25294 echo X"$as_dir" |
25295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25296           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25297           /^X\(\/\/\)$/{ s//\1/; q; }
25298           /^X\(\/\).*/{ s//\1/; q; }
25299           s/.*/./; q'`
25300     done
25301     test ! -n "$as_dirs" || mkdir $as_dirs
25302   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25303 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25304    { (exit 1); exit 1; }; }; }
25305
25306   ac_builddir=.
25307
25308 if test "$ac_dir" != .; then
25309   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25310   # A "../" for each directory in $ac_dir_suffix.
25311   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25312 else
25313   ac_dir_suffix= ac_top_builddir=
25314 fi
25315
25316 case $srcdir in
25317   .)  # No --srcdir option.  We are building in place.
25318     ac_srcdir=.
25319     if test -z "$ac_top_builddir"; then
25320        ac_top_srcdir=.
25321     else
25322        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25323     fi ;;
25324   [\\/]* | ?:[\\/]* )  # Absolute path.
25325     ac_srcdir=$srcdir$ac_dir_suffix;
25326     ac_top_srcdir=$srcdir ;;
25327   *) # Relative path.
25328     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25329     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25330 esac
25331
25332 # Do not use `cd foo && pwd` to compute absolute paths, because
25333 # the directories may not exist.
25334 case `pwd` in
25335 .) ac_abs_builddir="$ac_dir";;
25336 *)
25337   case "$ac_dir" in
25338   .) ac_abs_builddir=`pwd`;;
25339   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25340   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25341   esac;;
25342 esac
25343 case $ac_abs_builddir in
25344 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25345 *)
25346   case ${ac_top_builddir}. in
25347   .) ac_abs_top_builddir=$ac_abs_builddir;;
25348   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25349   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25350   esac;;
25351 esac
25352 case $ac_abs_builddir in
25353 .) ac_abs_srcdir=$ac_srcdir;;
25354 *)
25355   case $ac_srcdir in
25356   .) ac_abs_srcdir=$ac_abs_builddir;;
25357   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25358   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25359   esac;;
25360 esac
25361 case $ac_abs_builddir in
25362 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25363 *)
25364   case $ac_top_srcdir in
25365   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25366   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25367   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25368   esac;;
25369 esac
25370
25371
25372   case $INSTALL in
25373   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25374   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25375   esac
25376
25377   if test x"$ac_file" != x-; then
25378     { echo "$as_me:$LINENO: creating $ac_file" >&5
25379 echo "$as_me: creating $ac_file" >&6;}
25380     rm -f "$ac_file"
25381   fi
25382   # Let's still pretend it is `configure' which instantiates (i.e., don't
25383   # use $as_me), people would be surprised to read:
25384   #    /* config.h.  Generated by config.status.  */
25385   if test x"$ac_file" = x-; then
25386     configure_input=
25387   else
25388     configure_input="$ac_file.  "
25389   fi
25390   configure_input=$configure_input"Generated from `echo $ac_file_in |
25391                                      sed 's,.*/,,'` by configure."
25392
25393   # First look for the input files in the build tree, otherwise in the
25394   # src tree.
25395   ac_file_inputs=`IFS=:
25396     for f in $ac_file_in; do
25397       case $f in
25398       -) echo $tmp/stdin ;;
25399       [\\/$]*)
25400          # Absolute (can't be DOS-style, as IFS=:)
25401          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25402 echo "$as_me: error: cannot find input file: $f" >&2;}
25403    { (exit 1); exit 1; }; }
25404          echo "$f";;
25405       *) # Relative
25406          if test -f "$f"; then
25407            # Build tree
25408            echo "$f"
25409          elif test -f "$srcdir/$f"; then
25410            # Source tree
25411            echo "$srcdir/$f"
25412          else
25413            # /dev/null tree
25414            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25415 echo "$as_me: error: cannot find input file: $f" >&2;}
25416    { (exit 1); exit 1; }; }
25417          fi;;
25418       esac
25419     done` || { (exit 1); exit 1; }
25420 _ACEOF
25421 cat >>$CONFIG_STATUS <<_ACEOF
25422   sed "$ac_vpsub
25423 $extrasub
25424 _ACEOF
25425 cat >>$CONFIG_STATUS <<\_ACEOF
25426 :t
25427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25428 s,@configure_input@,$configure_input,;t t
25429 s,@srcdir@,$ac_srcdir,;t t
25430 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25431 s,@top_srcdir@,$ac_top_srcdir,;t t
25432 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25433 s,@builddir@,$ac_builddir,;t t
25434 s,@abs_builddir@,$ac_abs_builddir,;t t
25435 s,@top_builddir@,$ac_top_builddir,;t t
25436 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25437 s,@INSTALL@,$ac_INSTALL,;t t
25438 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25439   rm -f $tmp/stdin
25440   if test x"$ac_file" != x-; then
25441     mv $tmp/out $ac_file
25442   else
25443     cat $tmp/out
25444     rm -f $tmp/out
25445   fi
25446
25447 done
25448 _ACEOF
25449 cat >>$CONFIG_STATUS <<\_ACEOF
25450
25451 #
25452 # CONFIG_HEADER section.
25453 #
25454
25455 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25456 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25457 #
25458 # ac_d sets the value in "#define NAME VALUE" lines.
25459 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25460 ac_dB='[         ].*$,\1#\2'
25461 ac_dC=' '
25462 ac_dD=',;t'
25463 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25464 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25465 ac_uB='$,\1#\2define\3'
25466 ac_uC=' '
25467 ac_uD=',;t'
25468
25469 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25470   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25471   case $ac_file in
25472   - | *:- | *:-:* ) # input from stdin
25473         cat >$tmp/stdin
25474         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25475         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25476   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25477         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25478   * )   ac_file_in=$ac_file.in ;;
25479   esac
25480
25481   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25482 echo "$as_me: creating $ac_file" >&6;}
25483
25484   # First look for the input files in the build tree, otherwise in the
25485   # src tree.
25486   ac_file_inputs=`IFS=:
25487     for f in $ac_file_in; do
25488       case $f in
25489       -) echo $tmp/stdin ;;
25490       [\\/$]*)
25491          # Absolute (can't be DOS-style, as IFS=:)
25492          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25493 echo "$as_me: error: cannot find input file: $f" >&2;}
25494    { (exit 1); exit 1; }; }
25495          # Do quote $f, to prevent DOS paths from being IFS'd.
25496          echo "$f";;
25497       *) # Relative
25498          if test -f "$f"; then
25499            # Build tree
25500            echo "$f"
25501          elif test -f "$srcdir/$f"; then
25502            # Source tree
25503            echo "$srcdir/$f"
25504          else
25505            # /dev/null tree
25506            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25507 echo "$as_me: error: cannot find input file: $f" >&2;}
25508    { (exit 1); exit 1; }; }
25509          fi;;
25510       esac
25511     done` || { (exit 1); exit 1; }
25512   # Remove the trailing spaces.
25513   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25514
25515 _ACEOF
25516
25517 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25518 # `conftest.undefs', that substitutes the proper values into
25519 # config.h.in to produce config.h.  The first handles `#define'
25520 # templates, and the second `#undef' templates.
25521 # And first: Protect against being on the right side of a sed subst in
25522 # config.status.  Protect against being in an unquoted here document
25523 # in config.status.
25524 rm -f conftest.defines conftest.undefs
25525 # Using a here document instead of a string reduces the quoting nightmare.
25526 # Putting comments in sed scripts is not portable.
25527 #
25528 # `end' is used to avoid that the second main sed command (meant for
25529 # 0-ary CPP macros) applies to n-ary macro definitions.
25530 # See the Autoconf documentation for `clear'.
25531 cat >confdef2sed.sed <<\_ACEOF
25532 s/[\\&,]/\\&/g
25533 s,[\\$`],\\&,g
25534 t clear
25535 : clear
25536 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25537 t end
25538 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25539 : end
25540 _ACEOF
25541 # If some macros were called several times there might be several times
25542 # the same #defines, which is useless.  Nevertheless, we may not want to
25543 # sort them, since we want the *last* AC-DEFINE to be honored.
25544 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25545 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25546 rm -f confdef2sed.sed
25547
25548 # This sed command replaces #undef with comments.  This is necessary, for
25549 # example, in the case of _POSIX_SOURCE, which is predefined and required
25550 # on some systems where configure will not decide to define it.
25551 cat >>conftest.undefs <<\_ACEOF
25552 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25553 _ACEOF
25554
25555 # Break up conftest.defines because some shells have a limit on the size
25556 # of here documents, and old seds have small limits too (100 cmds).
25557 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25558 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25559 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25560 echo '  :' >>$CONFIG_STATUS
25561 rm -f conftest.tail
25562 while grep . conftest.defines >/dev/null
25563 do
25564   # Write a limited-size here document to $tmp/defines.sed.
25565   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25566   # Speed up: don't consider the non `#define' lines.
25567   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25568   # Work around the forget-to-reset-the-flag bug.
25569   echo 't clr' >>$CONFIG_STATUS
25570   echo ': clr' >>$CONFIG_STATUS
25571   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25572   echo 'CEOF
25573   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25574   rm -f $tmp/in
25575   mv $tmp/out $tmp/in
25576 ' >>$CONFIG_STATUS
25577   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25578   rm -f conftest.defines
25579   mv conftest.tail conftest.defines
25580 done
25581 rm -f conftest.defines
25582 echo '  fi # grep' >>$CONFIG_STATUS
25583 echo >>$CONFIG_STATUS
25584
25585 # Break up conftest.undefs because some shells have a limit on the size
25586 # of here documents, and old seds have small limits too (100 cmds).
25587 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25588 rm -f conftest.tail
25589 while grep . conftest.undefs >/dev/null
25590 do
25591   # Write a limited-size here document to $tmp/undefs.sed.
25592   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25593   # Speed up: don't consider the non `#undef'
25594   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25595   # Work around the forget-to-reset-the-flag bug.
25596   echo 't clr' >>$CONFIG_STATUS
25597   echo ': clr' >>$CONFIG_STATUS
25598   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25599   echo 'CEOF
25600   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25601   rm -f $tmp/in
25602   mv $tmp/out $tmp/in
25603 ' >>$CONFIG_STATUS
25604   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25605   rm -f conftest.undefs
25606   mv conftest.tail conftest.undefs
25607 done
25608 rm -f conftest.undefs
25609
25610 cat >>$CONFIG_STATUS <<\_ACEOF
25611   # Let's still pretend it is `configure' which instantiates (i.e., don't
25612   # use $as_me), people would be surprised to read:
25613   #    /* config.h.  Generated by config.status.  */
25614   if test x"$ac_file" = x-; then
25615     echo "/* Generated by configure.  */" >$tmp/config.h
25616   else
25617     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25618   fi
25619   cat $tmp/in >>$tmp/config.h
25620   rm -f $tmp/in
25621   if test x"$ac_file" != x-; then
25622     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25623       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25624 echo "$as_me: $ac_file is unchanged" >&6;}
25625     else
25626       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25628          X"$ac_file" : 'X\(//\)[^/]' \| \
25629          X"$ac_file" : 'X\(//\)$' \| \
25630          X"$ac_file" : 'X\(/\)' \| \
25631          .     : '\(.\)' 2>/dev/null ||
25632 echo X"$ac_file" |
25633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25634           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25635           /^X\(\/\/\)$/{ s//\1/; q; }
25636           /^X\(\/\).*/{ s//\1/; q; }
25637           s/.*/./; q'`
25638       { if $as_mkdir_p; then
25639     mkdir -p "$ac_dir"
25640   else
25641     as_dir="$ac_dir"
25642     as_dirs=
25643     while test ! -d "$as_dir"; do
25644       as_dirs="$as_dir $as_dirs"
25645       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25647          X"$as_dir" : 'X\(//\)[^/]' \| \
25648          X"$as_dir" : 'X\(//\)$' \| \
25649          X"$as_dir" : 'X\(/\)' \| \
25650          .     : '\(.\)' 2>/dev/null ||
25651 echo X"$as_dir" |
25652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25653           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25654           /^X\(\/\/\)$/{ s//\1/; q; }
25655           /^X\(\/\).*/{ s//\1/; q; }
25656           s/.*/./; q'`
25657     done
25658     test ! -n "$as_dirs" || mkdir $as_dirs
25659   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25660 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25661    { (exit 1); exit 1; }; }; }
25662
25663       rm -f $ac_file
25664       mv $tmp/config.h $ac_file
25665     fi
25666   else
25667     cat $tmp/config.h
25668     rm -f $tmp/config.h
25669   fi
25670 done
25671 _ACEOF
25672 cat >>$CONFIG_STATUS <<\_ACEOF
25673
25674 #
25675 # CONFIG_LINKS section.
25676 #
25677
25678 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25679   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25680   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25681
25682   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25683 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25684
25685   if test ! -r $srcdir/$ac_source; then
25686     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25687 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25688    { (exit 1); exit 1; }; }
25689   fi
25690   rm -f $ac_dest
25691
25692   # Make relative symlinks.
25693   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25694 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25695          X"$ac_dest" : 'X\(//\)[^/]' \| \
25696          X"$ac_dest" : 'X\(//\)$' \| \
25697          X"$ac_dest" : 'X\(/\)' \| \
25698          .     : '\(.\)' 2>/dev/null ||
25699 echo X"$ac_dest" |
25700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25701           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25702           /^X\(\/\/\)$/{ s//\1/; q; }
25703           /^X\(\/\).*/{ s//\1/; q; }
25704           s/.*/./; q'`
25705   { if $as_mkdir_p; then
25706     mkdir -p "$ac_dest_dir"
25707   else
25708     as_dir="$ac_dest_dir"
25709     as_dirs=
25710     while test ! -d "$as_dir"; do
25711       as_dirs="$as_dir $as_dirs"
25712       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25714          X"$as_dir" : 'X\(//\)[^/]' \| \
25715          X"$as_dir" : 'X\(//\)$' \| \
25716          X"$as_dir" : 'X\(/\)' \| \
25717          .     : '\(.\)' 2>/dev/null ||
25718 echo X"$as_dir" |
25719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25721           /^X\(\/\/\)$/{ s//\1/; q; }
25722           /^X\(\/\).*/{ s//\1/; q; }
25723           s/.*/./; q'`
25724     done
25725     test ! -n "$as_dirs" || mkdir $as_dirs
25726   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25727 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25728    { (exit 1); exit 1; }; }; }
25729
25730   ac_builddir=.
25731
25732 if test "$ac_dest_dir" != .; then
25733   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25734   # A "../" for each directory in $ac_dir_suffix.
25735   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25736 else
25737   ac_dir_suffix= ac_top_builddir=
25738 fi
25739
25740 case $srcdir in
25741   .)  # No --srcdir option.  We are building in place.
25742     ac_srcdir=.
25743     if test -z "$ac_top_builddir"; then
25744        ac_top_srcdir=.
25745     else
25746        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25747     fi ;;
25748   [\\/]* | ?:[\\/]* )  # Absolute path.
25749     ac_srcdir=$srcdir$ac_dir_suffix;
25750     ac_top_srcdir=$srcdir ;;
25751   *) # Relative path.
25752     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25753     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25754 esac
25755
25756 # Do not use `cd foo && pwd` to compute absolute paths, because
25757 # the directories may not exist.
25758 case `pwd` in
25759 .) ac_abs_builddir="$ac_dest_dir";;
25760 *)
25761   case "$ac_dest_dir" in
25762   .) ac_abs_builddir=`pwd`;;
25763   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25764   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25765   esac;;
25766 esac
25767 case $ac_abs_builddir in
25768 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25769 *)
25770   case ${ac_top_builddir}. in
25771   .) ac_abs_top_builddir=$ac_abs_builddir;;
25772   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25773   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25774   esac;;
25775 esac
25776 case $ac_abs_builddir in
25777 .) ac_abs_srcdir=$ac_srcdir;;
25778 *)
25779   case $ac_srcdir in
25780   .) ac_abs_srcdir=$ac_abs_builddir;;
25781   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25782   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25783   esac;;
25784 esac
25785 case $ac_abs_builddir in
25786 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25787 *)
25788   case $ac_top_srcdir in
25789   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25790   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25791   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25792   esac;;
25793 esac
25794
25795
25796   case $srcdir in
25797   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25798       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25799   esac
25800
25801   # Try a symlink, then a hard link, then a copy.
25802   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25803     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25804     cp -p $srcdir/$ac_source $ac_dest ||
25805     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25806 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25807    { (exit 1); exit 1; }; }
25808 done
25809 _ACEOF
25810 cat >>$CONFIG_STATUS <<\_ACEOF
25811
25812 #
25813 # CONFIG_COMMANDS section.
25814 #
25815 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25816   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25817   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25818   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25819 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25820          X"$ac_dest" : 'X\(//\)[^/]' \| \
25821          X"$ac_dest" : 'X\(//\)$' \| \
25822          X"$ac_dest" : 'X\(/\)' \| \
25823          .     : '\(.\)' 2>/dev/null ||
25824 echo X"$ac_dest" |
25825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25827           /^X\(\/\/\)$/{ s//\1/; q; }
25828           /^X\(\/\).*/{ s//\1/; q; }
25829           s/.*/./; q'`
25830   { if $as_mkdir_p; then
25831     mkdir -p "$ac_dir"
25832   else
25833     as_dir="$ac_dir"
25834     as_dirs=
25835     while test ! -d "$as_dir"; do
25836       as_dirs="$as_dir $as_dirs"
25837       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25839          X"$as_dir" : 'X\(//\)[^/]' \| \
25840          X"$as_dir" : 'X\(//\)$' \| \
25841          X"$as_dir" : 'X\(/\)' \| \
25842          .     : '\(.\)' 2>/dev/null ||
25843 echo X"$as_dir" |
25844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25846           /^X\(\/\/\)$/{ s//\1/; q; }
25847           /^X\(\/\).*/{ s//\1/; q; }
25848           s/.*/./; q'`
25849     done
25850     test ! -n "$as_dirs" || mkdir $as_dirs
25851   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25853    { (exit 1); exit 1; }; }; }
25854
25855   ac_builddir=.
25856
25857 if test "$ac_dir" != .; then
25858   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25859   # A "../" for each directory in $ac_dir_suffix.
25860   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25861 else
25862   ac_dir_suffix= ac_top_builddir=
25863 fi
25864
25865 case $srcdir in
25866   .)  # No --srcdir option.  We are building in place.
25867     ac_srcdir=.
25868     if test -z "$ac_top_builddir"; then
25869        ac_top_srcdir=.
25870     else
25871        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25872     fi ;;
25873   [\\/]* | ?:[\\/]* )  # Absolute path.
25874     ac_srcdir=$srcdir$ac_dir_suffix;
25875     ac_top_srcdir=$srcdir ;;
25876   *) # Relative path.
25877     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25878     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25879 esac
25880
25881 # Do not use `cd foo && pwd` to compute absolute paths, because
25882 # the directories may not exist.
25883 case `pwd` in
25884 .) ac_abs_builddir="$ac_dir";;
25885 *)
25886   case "$ac_dir" in
25887   .) ac_abs_builddir=`pwd`;;
25888   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25889   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25890   esac;;
25891 esac
25892 case $ac_abs_builddir in
25893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25894 *)
25895   case ${ac_top_builddir}. in
25896   .) ac_abs_top_builddir=$ac_abs_builddir;;
25897   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25898   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25899   esac;;
25900 esac
25901 case $ac_abs_builddir in
25902 .) ac_abs_srcdir=$ac_srcdir;;
25903 *)
25904   case $ac_srcdir in
25905   .) ac_abs_srcdir=$ac_abs_builddir;;
25906   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25907   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25908   esac;;
25909 esac
25910 case $ac_abs_builddir in
25911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25912 *)
25913   case $ac_top_srcdir in
25914   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25915   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25916   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25917   esac;;
25918 esac
25919
25920
25921   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25922 echo "$as_me: executing $ac_dest commands" >&6;}
25923   case $ac_dest in
25924     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25925     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25926     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25927     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25928     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25929     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25930     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25931     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25932     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25933     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25934     tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
25935     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25936     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25937   esac
25938 done
25939 _ACEOF
25940
25941 cat >>$CONFIG_STATUS <<\_ACEOF
25942
25943 { (exit 0); exit 0; }
25944 _ACEOF
25945 chmod +x $CONFIG_STATUS
25946 ac_clean_files=$ac_clean_files_save
25947
25948
25949 # configure is writing to config.log, and then calls config.status.
25950 # config.status does its own redirection, appending to config.log.
25951 # Unfortunately, on DOS this fails, as config.log is still kept open
25952 # by configure, so config.status won't be able to write to it; its
25953 # output is simply discarded.  So we exec the FD to /dev/null,
25954 # effectively closing config.log, so it can be properly (re)opened and
25955 # appended to by config.status.  When coming back to configure, we
25956 # need to make the FD available again.
25957 if test "$no_create" != yes; then
25958   ac_cs_success=:
25959   ac_config_status_args=
25960   test "$silent" = yes &&
25961     ac_config_status_args="$ac_config_status_args --quiet"
25962   exec 5>/dev/null
25963   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25964   exec 5>>config.log
25965   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25966   # would make configure fail if this is the last instruction.
25967   $ac_cs_success || { (exit 1); exit 1; }
25968 fi
25969
25970 #
25971 # CONFIG_SUBDIRS section.
25972 #
25973 if test "$no_recursion" != yes; then
25974
25975   # Remove --cache-file and --srcdir arguments so they do not pile up.
25976   ac_sub_configure_args=
25977   ac_prev=
25978   for ac_arg in $ac_configure_args; do
25979     if test -n "$ac_prev"; then
25980       ac_prev=
25981       continue
25982     fi
25983     case $ac_arg in
25984     -cache-file | --cache-file | --cache-fil | --cache-fi \
25985     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25986       ac_prev=cache_file ;;
25987     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25988     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25989     | --c=*)
25990       ;;
25991     --config-cache | -C)
25992       ;;
25993     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25994       ac_prev=srcdir ;;
25995     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25996       ;;
25997     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25998       ac_prev=prefix ;;
25999     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26000       ;;
26001     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26002     esac
26003   done
26004
26005   # Always prepend --prefix to ensure using the same prefix
26006   # in subdir configurations.
26007   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26008
26009   ac_popdir=`pwd`
26010   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26011
26012     # Do not complain, so a configure script can configure whichever
26013     # parts of a large source tree are present.
26014     test -d $srcdir/$ac_dir || continue
26015
26016     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26017 echo "$as_me: configuring in $ac_dir" >&6;}
26018     { if $as_mkdir_p; then
26019     mkdir -p "$ac_dir"
26020   else
26021     as_dir="$ac_dir"
26022     as_dirs=
26023     while test ! -d "$as_dir"; do
26024       as_dirs="$as_dir $as_dirs"
26025       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26027          X"$as_dir" : 'X\(//\)[^/]' \| \
26028          X"$as_dir" : 'X\(//\)$' \| \
26029          X"$as_dir" : 'X\(/\)' \| \
26030          .     : '\(.\)' 2>/dev/null ||
26031 echo X"$as_dir" |
26032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26033           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26034           /^X\(\/\/\)$/{ s//\1/; q; }
26035           /^X\(\/\).*/{ s//\1/; q; }
26036           s/.*/./; q'`
26037     done
26038     test ! -n "$as_dirs" || mkdir $as_dirs
26039   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26040 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26041    { (exit 1); exit 1; }; }; }
26042
26043     ac_builddir=.
26044
26045 if test "$ac_dir" != .; then
26046   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26047   # A "../" for each directory in $ac_dir_suffix.
26048   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26049 else
26050   ac_dir_suffix= ac_top_builddir=
26051 fi
26052
26053 case $srcdir in
26054   .)  # No --srcdir option.  We are building in place.
26055     ac_srcdir=.
26056     if test -z "$ac_top_builddir"; then
26057        ac_top_srcdir=.
26058     else
26059        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26060     fi ;;
26061   [\\/]* | ?:[\\/]* )  # Absolute path.
26062     ac_srcdir=$srcdir$ac_dir_suffix;
26063     ac_top_srcdir=$srcdir ;;
26064   *) # Relative path.
26065     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26066     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26067 esac
26068
26069 # Do not use `cd foo && pwd` to compute absolute paths, because
26070 # the directories may not exist.
26071 case `pwd` in
26072 .) ac_abs_builddir="$ac_dir";;
26073 *)
26074   case "$ac_dir" in
26075   .) ac_abs_builddir=`pwd`;;
26076   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26077   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26078   esac;;
26079 esac
26080 case $ac_abs_builddir in
26081 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26082 *)
26083   case ${ac_top_builddir}. in
26084   .) ac_abs_top_builddir=$ac_abs_builddir;;
26085   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26086   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26087   esac;;
26088 esac
26089 case $ac_abs_builddir in
26090 .) ac_abs_srcdir=$ac_srcdir;;
26091 *)
26092   case $ac_srcdir in
26093   .) ac_abs_srcdir=$ac_abs_builddir;;
26094   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26095   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26096   esac;;
26097 esac
26098 case $ac_abs_builddir in
26099 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26100 *)
26101   case $ac_top_srcdir in
26102   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26103   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26104   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26105   esac;;
26106 esac
26107
26108
26109     cd $ac_dir
26110
26111     # Check for guested configure; otherwise get Cygnus style configure.
26112     if test -f $ac_srcdir/configure.gnu; then
26113       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26114     elif test -f $ac_srcdir/configure; then
26115       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26116     elif test -f $ac_srcdir/configure.in; then
26117       ac_sub_configure=$ac_configure
26118     else
26119       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26121       ac_sub_configure=
26122     fi
26123
26124     # The recursion is here.
26125     if test -n "$ac_sub_configure"; then
26126       # Make the cache file name correct relative to the subdirectory.
26127       case $cache_file in
26128       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26129       *) # Relative path.
26130         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26131       esac
26132
26133       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26134 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26135       # The eval makes quoting arguments work.
26136       eval $ac_sub_configure $ac_sub_configure_args \
26137            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26138         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26139 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26140    { (exit 1); exit 1; }; }
26141     fi
26142
26143     cd $ac_popdir
26144   done
26145 fi
26146
26147
26148 if test $bzip2_found -ne 1 ; then
26149   if test $zlib_found -ne 1 ; then
26150     { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26151 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26152     { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26153 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26154     { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26155 echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26156   fi
26157 fi
26158
26159 if test $llvmgccwarn = yes
26160 then
26161         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26162 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26163         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26164 echo "$as_me: WARNING: ***** appear to be working." >&2;}
26165         { echo "$as_me:$LINENO: WARNING: ***** " >&5
26166 echo "$as_me: WARNING: ***** " >&2;}
26167         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26168 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26169         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26170 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26171         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26172 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
26173 fi
26174