Configure Datatypes.h.in with AC_CONFIG_HEADERS. This should prevent it
[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_PTHREAD_MUTEX_LOCK ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR 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 projects (${i})won't be configured automatically" >&5
1592 echo "$as_me: WARNING: Unknown projects (${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 include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1602
1603           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1604
1605
1606           ac_config_commands="$ac_config_commands Makefile"
1607
1608
1609           ac_config_commands="$ac_config_commands Makefile.common"
1610
1611
1612           ac_config_commands="$ac_config_commands examples/Makefile"
1613
1614
1615           ac_config_commands="$ac_config_commands lib/Makefile"
1616
1617
1618           ac_config_commands="$ac_config_commands runtime/Makefile"
1619
1620
1621           ac_config_commands="$ac_config_commands test/Makefile"
1622
1623
1624           ac_config_commands="$ac_config_commands test/Makefile.tests"
1625
1626
1627           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1628
1629
1630           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1631
1632
1633           ac_config_commands="$ac_config_commands tools/Makefile"
1634
1635
1636           ac_config_commands="$ac_config_commands utils/Makefile"
1637
1638
1639           ac_config_commands="$ac_config_commands projects/Makefile"
1640
1641
1642
1643 # Find a good install program.  We prefer a C program (faster),
1644 # so one script is as good as another.  But avoid the broken or
1645 # incompatible versions:
1646 # SysV /etc/install, /usr/sbin/install
1647 # SunOS /usr/etc/install
1648 # IRIX /sbin/install
1649 # AIX /bin/install
1650 # AmigaOS /C/install, which installs bootblocks on floppy discs
1651 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1652 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1653 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1654 # OS/2's system install, which has a completely different semantic
1655 # ./install, which can be erroneously created by make from ./install.sh.
1656 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1657 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1658 if test -z "$INSTALL"; then
1659 if test "${ac_cv_path_install+set}" = set; then
1660   echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   # Account for people who put trailing slashes in PATH elements.
1668 case $as_dir/ in
1669   ./ | .// | /cC/* | \
1670   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1671   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1672   /usr/ucb/* ) ;;
1673   *)
1674     # OSF1 and SCO ODT 3.0 have their own names for install.
1675     # Don't use installbsd from OSF since it installs stuff as root
1676     # by default.
1677     for ac_prog in ginstall scoinst install; do
1678       for ac_exec_ext in '' $ac_executable_extensions; do
1679         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1680           if test $ac_prog = install &&
1681             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1682             # AIX install.  It has an incompatible calling convention.
1683             :
1684           elif test $ac_prog = install &&
1685             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686             # program-specific install script used by HP pwplus--don't use.
1687             :
1688           else
1689             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1690             break 3
1691           fi
1692         fi
1693       done
1694     done
1695     ;;
1696 esac
1697 done
1698
1699
1700 fi
1701   if test "${ac_cv_path_install+set}" = set; then
1702     INSTALL=$ac_cv_path_install
1703   else
1704     # As a last resort, use the slow shell script.  We don't cache a
1705     # path for INSTALL within a source directory, because that will
1706     # break other packages using the cache if that directory is
1707     # removed, or if the path is relative.
1708     INSTALL=$ac_install_sh
1709   fi
1710 fi
1711 echo "$as_me:$LINENO: result: $INSTALL" >&5
1712 echo "${ECHO_T}$INSTALL" >&6
1713
1714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1715 # It thinks the first close brace ends the variable substitution.
1716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1717
1718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1719
1720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1721
1722
1723 # Make sure we can run config.sub.
1724 $ac_config_sub sun4 >/dev/null 2>&1 ||
1725   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1726 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1727    { (exit 1); exit 1; }; }
1728
1729 echo "$as_me:$LINENO: checking build system type" >&5
1730 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1731 if test "${ac_cv_build+set}" = set; then
1732   echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734   ac_cv_build_alias=$build_alias
1735 test -z "$ac_cv_build_alias" &&
1736   ac_cv_build_alias=`$ac_config_guess`
1737 test -z "$ac_cv_build_alias" &&
1738   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1739 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1740    { (exit 1); exit 1; }; }
1741 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1742   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1743 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1744    { (exit 1); exit 1; }; }
1745
1746 fi
1747 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1748 echo "${ECHO_T}$ac_cv_build" >&6
1749 build=$ac_cv_build
1750 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1751 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1752 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1753
1754
1755 echo "$as_me:$LINENO: checking host system type" >&5
1756 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1757 if test "${ac_cv_host+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   ac_cv_host_alias=$host_alias
1761 test -z "$ac_cv_host_alias" &&
1762   ac_cv_host_alias=$ac_cv_build_alias
1763 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1764   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1765 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1766    { (exit 1); exit 1; }; }
1767
1768 fi
1769 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1770 echo "${ECHO_T}$ac_cv_host" >&6
1771 host=$ac_cv_host
1772 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1773 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1774 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1775
1776
1777 echo "$as_me:$LINENO: checking target system type" >&5
1778 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1779 if test "${ac_cv_target+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   ac_cv_target_alias=$target_alias
1783 test "x$ac_cv_target_alias" = "x" &&
1784   ac_cv_target_alias=$ac_cv_host_alias
1785 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1786   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1787 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1788    { (exit 1); exit 1; }; }
1789
1790 fi
1791 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1792 echo "${ECHO_T}$ac_cv_target" >&6
1793 target=$ac_cv_target
1794 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1795 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1796 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1797
1798
1799 # The aliases save the names the user supplied, while $host etc.
1800 # will get canonicalized.
1801 test -n "$target_alias" &&
1802   test "$program_prefix$program_suffix$program_transform_name" = \
1803     NONENONEs,x,x, &&
1804   program_prefix=${target_alias}-
1805
1806
1807 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1808 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1809 case $build in
1810         *-*-aix*)
1811              OS=AIX
1812
1813              platform_type="AIX"
1814              ;;
1815         *-*-cygwin*)
1816              OS=Cygwin
1817
1818              platform_type="Cygwin"
1819              ;;
1820         *-*-darwin*)
1821              OS=Darwin
1822
1823              platform_type="Darwin"
1824              ;;
1825         *-*-freebsd*)
1826              OS=Linux
1827
1828              platform_type="FreeBSD"
1829              ;;
1830         *-*-interix*)
1831              OS=SunOS
1832
1833              platform_type="Interix"
1834              ;;
1835         *-*-linux*)
1836              OS=Linux
1837
1838              platform_type="Linux"
1839              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1840              then
1841                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1842
1843              fi
1844              ;;
1845         *-*-solaris*)
1846              OS=SunOS
1847
1848              platform_type="SunOS"
1849              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1850              then
1851                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1852
1853              fi
1854              ;;
1855         *-*-win32*)
1856              OS=Win32
1857
1858              platform_type="Win32"
1859              ;;
1860         *-*-mingw*)
1861              OS=Win32
1862
1863              platform_type="Win32"
1864              ;;
1865         *)
1866              OS=Unknown
1867
1868              platform_type="Unknown"
1869              ;;
1870 esac
1871
1872 if test "$platform_type" = "Unknown" ; then
1873   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1874 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1875    { (exit 1); exit 1; }; }
1876 fi
1877
1878           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1879
1880
1881
1882 echo "$as_me:$LINENO: checking target architecture" >&5
1883 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1884 case $target in
1885         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1886
1887                             ;;
1888 esac
1889
1890 case $target in
1891         i*86-*)
1892           ARCH="x86"
1893           ARCH=x86
1894
1895           ;;
1896         sparc*-*)
1897           ARCH="Sparc"
1898           ARCH=Sparc
1899
1900           ;;
1901         powerpc*-*)
1902           ARCH="PowerPC"
1903           ARCH=PowerPC
1904
1905           ;;
1906         *)
1907           ARCH="Unknown"
1908           ARCH=Unknown
1909
1910           ;;
1911 esac
1912
1913 echo "$as_me:$LINENO: result: $ARCH" >&5
1914 echo "${ECHO_T}$ARCH" >&6
1915
1916 ac_ext=cc
1917 ac_cpp='$CXXCPP $CPPFLAGS'
1918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1921 if test -n "$ac_tool_prefix"; then
1922   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1923   do
1924     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CXX+set}" = set; then
1929   echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931   if test -n "$CXX"; then
1932   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1933 else
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1936 do
1937   IFS=$as_save_IFS
1938   test -z "$as_dir" && as_dir=.
1939   for ac_exec_ext in '' $ac_executable_extensions; do
1940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943     break 2
1944   fi
1945 done
1946 done
1947
1948 fi
1949 fi
1950 CXX=$ac_cv_prog_CXX
1951 if test -n "$CXX"; then
1952   echo "$as_me:$LINENO: result: $CXX" >&5
1953 echo "${ECHO_T}$CXX" >&6
1954 else
1955   echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1957 fi
1958
1959     test -n "$CXX" && break
1960   done
1961 fi
1962 if test -z "$CXX"; then
1963   ac_ct_CXX=$CXX
1964   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1965 do
1966   # Extract the first word of "$ac_prog", so it can be a program name with args.
1967 set dummy $ac_prog; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   if test -n "$ac_ct_CXX"; then
1974   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979   IFS=$as_save_IFS
1980   test -z "$as_dir" && as_dir=.
1981   for ac_exec_ext in '' $ac_executable_extensions; do
1982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983     ac_cv_prog_ac_ct_CXX="$ac_prog"
1984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985     break 2
1986   fi
1987 done
1988 done
1989
1990 fi
1991 fi
1992 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1993 if test -n "$ac_ct_CXX"; then
1994   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1995 echo "${ECHO_T}$ac_ct_CXX" >&6
1996 else
1997   echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
1999 fi
2000
2001   test -n "$ac_ct_CXX" && break
2002 done
2003 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2004
2005   CXX=$ac_ct_CXX
2006 fi
2007
2008
2009 # Provide some information about the compiler.
2010 echo "$as_me:$LINENO:" \
2011      "checking for C++ compiler version" >&5
2012 ac_compiler=`set X $ac_compile; echo $2`
2013 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2014   (eval $ac_compiler --version </dev/null >&5) 2>&5
2015   ac_status=$?
2016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017   (exit $ac_status); }
2018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2019   (eval $ac_compiler -v </dev/null >&5) 2>&5
2020   ac_status=$?
2021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022   (exit $ac_status); }
2023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2024   (eval $ac_compiler -V </dev/null >&5) 2>&5
2025   ac_status=$?
2026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027   (exit $ac_status); }
2028
2029 cat >conftest.$ac_ext <<_ACEOF
2030 /* confdefs.h.  */
2031 _ACEOF
2032 cat confdefs.h >>conftest.$ac_ext
2033 cat >>conftest.$ac_ext <<_ACEOF
2034 /* end confdefs.h.  */
2035
2036 int
2037 main ()
2038 {
2039
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 ac_clean_files_save=$ac_clean_files
2045 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2046 # Try to create an executable without -o first, disregard a.out.
2047 # It will help us diagnose broken compilers, and finding out an intuition
2048 # of exeext.
2049 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2050 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2051 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2052 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2053   (eval $ac_link_default) 2>&5
2054   ac_status=$?
2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056   (exit $ac_status); }; then
2057   # Find the output, starting from the most likely.  This scheme is
2058 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2059 # resort.
2060
2061 # Be careful to initialize this variable, since it used to be cached.
2062 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2063 ac_cv_exeext=
2064 # b.out is created by i960 compilers.
2065 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2066 do
2067   test -f "$ac_file" || continue
2068   case $ac_file in
2069     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2070         ;;
2071     conftest.$ac_ext )
2072         # This is the source file.
2073         ;;
2074     [ab].out )
2075         # We found the default executable, but exeext='' is most
2076         # certainly right.
2077         break;;
2078     *.* )
2079         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080         # FIXME: I believe we export ac_cv_exeext for Libtool,
2081         # but it would be cool to find out if it's true.  Does anybody
2082         # maintain Libtool? --akim.
2083         export ac_cv_exeext
2084         break;;
2085     * )
2086         break;;
2087   esac
2088 done
2089 else
2090   echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2094 See \`config.log' for more details." >&5
2095 echo "$as_me: error: C++ compiler cannot create executables
2096 See \`config.log' for more details." >&2;}
2097    { (exit 77); exit 77; }; }
2098 fi
2099
2100 ac_exeext=$ac_cv_exeext
2101 echo "$as_me:$LINENO: result: $ac_file" >&5
2102 echo "${ECHO_T}$ac_file" >&6
2103
2104 # Check the compiler produces executables we can run.  If not, either
2105 # the compiler is broken, or we cross compile.
2106 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2107 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2108 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2109 # If not cross compiling, check that we can run a simple program.
2110 if test "$cross_compiling" != yes; then
2111   if { ac_try='./$ac_file'
2112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113   (eval $ac_try) 2>&5
2114   ac_status=$?
2115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116   (exit $ac_status); }; }; then
2117     cross_compiling=no
2118   else
2119     if test "$cross_compiling" = maybe; then
2120         cross_compiling=yes
2121     else
2122         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2123 If you meant to cross compile, use \`--host'.
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: cannot run C++ compiled programs.
2126 If you meant to cross compile, use \`--host'.
2127 See \`config.log' for more details." >&2;}
2128    { (exit 1); exit 1; }; }
2129     fi
2130   fi
2131 fi
2132 echo "$as_me:$LINENO: result: yes" >&5
2133 echo "${ECHO_T}yes" >&6
2134
2135 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2136 ac_clean_files=$ac_clean_files_save
2137 # Check the compiler produces executables we can run.  If not, either
2138 # the compiler is broken, or we cross compile.
2139 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2140 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2141 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2142 echo "${ECHO_T}$cross_compiling" >&6
2143
2144 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2145 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2147   (eval $ac_link) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }; then
2151   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2152 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2153 # work properly (i.e., refer to `conftest.exe'), while it won't with
2154 # `rm'.
2155 for ac_file in conftest.exe conftest conftest.*; do
2156   test -f "$ac_file" || continue
2157   case $ac_file in
2158     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2159     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2160           export ac_cv_exeext
2161           break;;
2162     * ) break;;
2163   esac
2164 done
2165 else
2166   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2167 See \`config.log' for more details." >&5
2168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2169 See \`config.log' for more details." >&2;}
2170    { (exit 1); exit 1; }; }
2171 fi
2172
2173 rm -f conftest$ac_cv_exeext
2174 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2175 echo "${ECHO_T}$ac_cv_exeext" >&6
2176
2177 rm -f conftest.$ac_ext
2178 EXEEXT=$ac_cv_exeext
2179 ac_exeext=$EXEEXT
2180 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2182 if test "${ac_cv_objext+set}" = set; then
2183   echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185   cat >conftest.$ac_ext <<_ACEOF
2186 /* confdefs.h.  */
2187 _ACEOF
2188 cat confdefs.h >>conftest.$ac_ext
2189 cat >>conftest.$ac_ext <<_ACEOF
2190 /* end confdefs.h.  */
2191
2192 int
2193 main ()
2194 {
2195
2196   ;
2197   return 0;
2198 }
2199 _ACEOF
2200 rm -f conftest.o conftest.obj
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202   (eval $ac_compile) 2>&5
2203   ac_status=$?
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); }; then
2206   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2207   case $ac_file in
2208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2209     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2210        break;;
2211   esac
2212 done
2213 else
2214   echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2220 See \`config.log' for more details." >&2;}
2221    { (exit 1); exit 1; }; }
2222 fi
2223
2224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2225 fi
2226 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2227 echo "${ECHO_T}$ac_cv_objext" >&6
2228 OBJEXT=$ac_cv_objext
2229 ac_objext=$OBJEXT
2230 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2231 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2232 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235   cat >conftest.$ac_ext <<_ACEOF
2236 /* confdefs.h.  */
2237 _ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h.  */
2241
2242 int
2243 main ()
2244 {
2245 #ifndef __GNUC__
2246        choke me
2247 #endif
2248
2249   ;
2250   return 0;
2251 }
2252 _ACEOF
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255   (eval $ac_compile) 2>conftest.er1
2256   ac_status=$?
2257   grep -v '^ *+' conftest.er1 >conftest.err
2258   rm -f conftest.er1
2259   cat conftest.err >&5
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); } &&
2262          { ac_try='test -z "$ac_cxx_werror_flag"
2263                          || test ! -s conftest.err'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; } &&
2269          { ac_try='test -s conftest.$ac_objext'
2270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271   (eval $ac_try) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; }; then
2275   ac_compiler_gnu=yes
2276 else
2277   echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 ac_compiler_gnu=no
2281 fi
2282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2284
2285 fi
2286 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2287 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2288 GXX=`test $ac_compiler_gnu = yes && echo yes`
2289 ac_test_CXXFLAGS=${CXXFLAGS+set}
2290 ac_save_CXXFLAGS=$CXXFLAGS
2291 CXXFLAGS="-g"
2292 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2293 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2294 if test "${ac_cv_prog_cxx_g+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303
2304 int
2305 main ()
2306 {
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314   (eval $ac_compile) 2>conftest.er1
2315   ac_status=$?
2316   grep -v '^ *+' conftest.er1 >conftest.err
2317   rm -f conftest.er1
2318   cat conftest.err >&5
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); } &&
2321          { ac_try='test -z "$ac_cxx_werror_flag"
2322                          || test ! -s conftest.err'
2323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324   (eval $ac_try) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; } &&
2328          { ac_try='test -s conftest.$ac_objext'
2329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330   (eval $ac_try) 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }; }; then
2334   ac_cv_prog_cxx_g=yes
2335 else
2336   echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 ac_cv_prog_cxx_g=no
2340 fi
2341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 fi
2343 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2344 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2345 if test "$ac_test_CXXFLAGS" = set; then
2346   CXXFLAGS=$ac_save_CXXFLAGS
2347 elif test $ac_cv_prog_cxx_g = yes; then
2348   if test "$GXX" = yes; then
2349     CXXFLAGS="-g -O2"
2350   else
2351     CXXFLAGS="-g"
2352   fi
2353 else
2354   if test "$GXX" = yes; then
2355     CXXFLAGS="-O2"
2356   else
2357     CXXFLAGS=
2358   fi
2359 fi
2360 for ac_declaration in \
2361    '' \
2362    'extern "C" void std::exit (int) throw (); using std::exit;' \
2363    'extern "C" void std::exit (int); using std::exit;' \
2364    'extern "C" void exit (int) throw ();' \
2365    'extern "C" void exit (int);' \
2366    'void exit (int);'
2367 do
2368   cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374 $ac_declaration
2375 #include <stdlib.h>
2376 int
2377 main ()
2378 {
2379 exit (42);
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 rm -f conftest.$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386   (eval $ac_compile) 2>conftest.er1
2387   ac_status=$?
2388   grep -v '^ *+' conftest.er1 >conftest.err
2389   rm -f conftest.er1
2390   cat conftest.err >&5
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); } &&
2393          { ac_try='test -z "$ac_cxx_werror_flag"
2394                          || test ! -s conftest.err'
2395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396   (eval $ac_try) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; } &&
2400          { ac_try='test -s conftest.$ac_objext'
2401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402   (eval $ac_try) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; }; then
2406   :
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411 continue
2412 fi
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414   cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h.  */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h.  */
2420 $ac_declaration
2421 int
2422 main ()
2423 {
2424 exit (42);
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431   (eval $ac_compile) 2>conftest.er1
2432   ac_status=$?
2433   grep -v '^ *+' conftest.er1 >conftest.err
2434   rm -f conftest.er1
2435   cat conftest.err >&5
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); } &&
2438          { ac_try='test -z "$ac_cxx_werror_flag"
2439                          || test ! -s conftest.err'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; } &&
2445          { ac_try='test -s conftest.$ac_objext'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; }; then
2451   break
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 fi
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 done
2459 rm -f conftest*
2460 if test -n "$ac_declaration"; then
2461   echo '#ifdef __cplusplus' >>confdefs.h
2462   echo $ac_declaration      >>confdefs.h
2463   echo '#endif'             >>confdefs.h
2464 fi
2465
2466 ac_ext=c
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471
2472 ac_ext=c
2473 ac_cpp='$CPP $CPPFLAGS'
2474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477 if test -n "$ac_tool_prefix"; then
2478   for ac_prog in gcc
2479   do
2480     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_CC+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test -n "$CC"; then
2488   ac_cv_prog_CC="$CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503
2504 fi
2505 fi
2506 CC=$ac_cv_prog_CC
2507 if test -n "$CC"; then
2508   echo "$as_me:$LINENO: result: $CC" >&5
2509 echo "${ECHO_T}$CC" >&6
2510 else
2511   echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2513 fi
2514
2515     test -n "$CC" && break
2516   done
2517 fi
2518 if test -z "$CC"; then
2519   ac_ct_CC=$CC
2520   for ac_prog in gcc
2521 do
2522   # Extract the first word of "$ac_prog", so it can be a program name with args.
2523 set dummy $ac_prog; ac_word=$2
2524 echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   if test -n "$ac_ct_CC"; then
2530   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535   IFS=$as_save_IFS
2536   test -z "$as_dir" && as_dir=.
2537   for ac_exec_ext in '' $ac_executable_extensions; do
2538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539     ac_cv_prog_ac_ct_CC="$ac_prog"
2540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541     break 2
2542   fi
2543 done
2544 done
2545
2546 fi
2547 fi
2548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2549 if test -n "$ac_ct_CC"; then
2550   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2551 echo "${ECHO_T}$ac_ct_CC" >&6
2552 else
2553   echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6
2555 fi
2556
2557   test -n "$ac_ct_CC" && break
2558 done
2559
2560   CC=$ac_ct_CC
2561 fi
2562
2563
2564 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: no acceptable C compiler found in \$PATH
2567 See \`config.log' for more details." >&2;}
2568    { (exit 1); exit 1; }; }
2569
2570 # Provide some information about the compiler.
2571 echo "$as_me:$LINENO:" \
2572      "checking for C compiler version" >&5
2573 ac_compiler=`set X $ac_compile; echo $2`
2574 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2575   (eval $ac_compiler --version </dev/null >&5) 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }
2579 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2580   (eval $ac_compiler -v </dev/null >&5) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }
2584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2585   (eval $ac_compiler -V </dev/null >&5) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }
2589
2590 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2591 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2592 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2593   echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595   cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h.  */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h.  */
2601
2602 int
2603 main ()
2604 {
2605 #ifndef __GNUC__
2606        choke me
2607 #endif
2608
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615   (eval $ac_compile) 2>conftest.er1
2616   ac_status=$?
2617   grep -v '^ *+' conftest.er1 >conftest.err
2618   rm -f conftest.er1
2619   cat conftest.err >&5
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } &&
2622          { ac_try='test -z "$ac_c_werror_flag"
2623                          || test ! -s conftest.err'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; } &&
2629          { ac_try='test -s conftest.$ac_objext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   ac_compiler_gnu=yes
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 ac_compiler_gnu=no
2641 fi
2642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2644
2645 fi
2646 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2647 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2648 GCC=`test $ac_compiler_gnu = yes && echo yes`
2649 ac_test_CFLAGS=${CFLAGS+set}
2650 ac_save_CFLAGS=$CFLAGS
2651 CFLAGS="-g"
2652 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2653 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2654 if test "${ac_cv_prog_cc_g+set}" = set; then
2655   echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657   cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h.  */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h.  */
2663
2664 int
2665 main ()
2666 {
2667
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674   (eval $ac_compile) 2>conftest.er1
2675   ac_status=$?
2676   grep -v '^ *+' conftest.er1 >conftest.err
2677   rm -f conftest.er1
2678   cat conftest.err >&5
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); } &&
2681          { ac_try='test -z "$ac_c_werror_flag"
2682                          || test ! -s conftest.err'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; } &&
2688          { ac_try='test -s conftest.$ac_objext'
2689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690   (eval $ac_try) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }; }; then
2694   ac_cv_prog_cc_g=yes
2695 else
2696   echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2698
2699 ac_cv_prog_cc_g=no
2700 fi
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702 fi
2703 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2705 if test "$ac_test_CFLAGS" = set; then
2706   CFLAGS=$ac_save_CFLAGS
2707 elif test $ac_cv_prog_cc_g = yes; then
2708   if test "$GCC" = yes; then
2709     CFLAGS="-g -O2"
2710   else
2711     CFLAGS="-g"
2712   fi
2713 else
2714   if test "$GCC" = yes; then
2715     CFLAGS="-O2"
2716   else
2717     CFLAGS=
2718   fi
2719 fi
2720 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2721 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2722 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2723   echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725   ac_cv_prog_cc_stdc=no
2726 ac_save_CC=$CC
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2733 #include <stdarg.h>
2734 #include <stdio.h>
2735 #include <sys/types.h>
2736 #include <sys/stat.h>
2737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2738 struct buf { int x; };
2739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740 static char *e (p, i)
2741      char **p;
2742      int i;
2743 {
2744   return p[i];
2745 }
2746 static char *f (char * (*g) (char **, int), char **p, ...)
2747 {
2748   char *s;
2749   va_list v;
2750   va_start (v,p);
2751   s = g (p, va_arg (v,int));
2752   va_end (v);
2753   return s;
2754 }
2755
2756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2757    function prototypes and stuff, but not '\xHH' hex character constants.
2758    These don't provoke an error unfortunately, instead are silently treated
2759    as 'x'.  The following induces an error, until -std1 is added to get
2760    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2761    array size at least.  It's necessary to write '\x00'==0 to get something
2762    that's true only with -std1.  */
2763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2764
2765 int test (int i, double x);
2766 struct s1 {int (*f) (int a);};
2767 struct s2 {int (*f) (double a);};
2768 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2769 int argc;
2770 char **argv;
2771 int
2772 main ()
2773 {
2774 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 # Don't try gcc -ansi; that turns off useful extensions and
2780 # breaks some systems' header files.
2781 # AIX                   -qlanglvl=ansi
2782 # Ultrix and OSF/1      -std1
2783 # HP-UX 10.20 and later -Ae
2784 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2785 # SVR4                  -Xc -D__EXTENSIONS__
2786 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2787 do
2788   CC="$ac_save_CC $ac_arg"
2789   rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791   (eval $ac_compile) 2>conftest.er1
2792   ac_status=$?
2793   grep -v '^ *+' conftest.er1 >conftest.err
2794   rm -f conftest.er1
2795   cat conftest.err >&5
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); } &&
2798          { ac_try='test -z "$ac_c_werror_flag"
2799                          || test ! -s conftest.err'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; } &&
2805          { ac_try='test -s conftest.$ac_objext'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811   ac_cv_prog_cc_stdc=$ac_arg
2812 break
2813 else
2814   echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817 fi
2818 rm -f conftest.err conftest.$ac_objext
2819 done
2820 rm -f conftest.$ac_ext conftest.$ac_objext
2821 CC=$ac_save_CC
2822
2823 fi
2824
2825 case "x$ac_cv_prog_cc_stdc" in
2826   x|xno)
2827     echo "$as_me:$LINENO: result: none needed" >&5
2828 echo "${ECHO_T}none needed" >&6 ;;
2829   *)
2830     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2831 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2832     CC="$CC $ac_cv_prog_cc_stdc" ;;
2833 esac
2834
2835 # Some people use a C++ compiler to compile C.  Since we use `exit',
2836 # in C++ we need to declare it.  In case someone uses the same compiler
2837 # for both compiling C and C++ we need to have the C++ compiler decide
2838 # the declaration of exit, since it's the most demanding environment.
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #ifndef __cplusplus
2841   choke me
2842 #endif
2843 _ACEOF
2844 rm -f conftest.$ac_objext
2845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2846   (eval $ac_compile) 2>conftest.er1
2847   ac_status=$?
2848   grep -v '^ *+' conftest.er1 >conftest.err
2849   rm -f conftest.er1
2850   cat conftest.err >&5
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); } &&
2853          { ac_try='test -z "$ac_c_werror_flag"
2854                          || test ! -s conftest.err'
2855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; } &&
2860          { ac_try='test -s conftest.$ac_objext'
2861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }; }; then
2866   for ac_declaration in \
2867    '' \
2868    'extern "C" void std::exit (int) throw (); using std::exit;' \
2869    'extern "C" void std::exit (int); using std::exit;' \
2870    'extern "C" void exit (int) throw ();' \
2871    'extern "C" void exit (int);' \
2872    'void exit (int);'
2873 do
2874   cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h.  */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h.  */
2880 $ac_declaration
2881 #include <stdlib.h>
2882 int
2883 main ()
2884 {
2885 exit (42);
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892   (eval $ac_compile) 2>conftest.er1
2893   ac_status=$?
2894   grep -v '^ *+' conftest.er1 >conftest.err
2895   rm -f conftest.er1
2896   cat conftest.err >&5
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); } &&
2899          { ac_try='test -z "$ac_c_werror_flag"
2900                          || test ! -s conftest.err'
2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; } &&
2906          { ac_try='test -s conftest.$ac_objext'
2907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908   (eval $ac_try) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; }; then
2912   :
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917 continue
2918 fi
2919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926 $ac_declaration
2927 int
2928 main ()
2929 {
2930 exit (42);
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937   (eval $ac_compile) 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } &&
2944          { ac_try='test -z "$ac_c_werror_flag"
2945                          || test ! -s conftest.err'
2946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947   (eval $ac_try) 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; } &&
2951          { ac_try='test -s conftest.$ac_objext'
2952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953   (eval $ac_try) 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; }; then
2957   break
2958 else
2959   echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2961
2962 fi
2963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2964 done
2965 rm -f conftest*
2966 if test -n "$ac_declaration"; then
2967   echo '#ifdef __cplusplus' >>confdefs.h
2968   echo $ac_declaration      >>confdefs.h
2969   echo '#endif'             >>confdefs.h
2970 fi
2971
2972 else
2973   echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 fi
2977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983
2984 if test "$GCC" != "yes"
2985 then
2986         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2987 echo "$as_me: error: gcc required but not found" >&2;}
2988    { (exit 1); exit 1; }; }
2989 fi
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2996 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2997 # On Suns, sometimes $CPP names a directory.
2998 if test -n "$CPP" && test -d "$CPP"; then
2999   CPP=
3000 fi
3001 if test -z "$CPP"; then
3002   if test "${ac_cv_prog_CPP+set}" = set; then
3003   echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005       # Double quotes because CPP needs to be expanded
3006     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3007     do
3008       ac_preproc_ok=false
3009 for ac_c_preproc_warn_flag in '' yes
3010 do
3011   # Use a header file that comes with gcc, so configuring glibc
3012   # with a fresh cross-compiler works.
3013   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014   # <limits.h> exists even on freestanding compilers.
3015   # On the NeXT, cc -E runs the code through the compiler's parser,
3016   # not just through cpp. "Syntax error" is here to catch this case.
3017   cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023 #ifdef __STDC__
3024 # include <limits.h>
3025 #else
3026 # include <assert.h>
3027 #endif
3028                      Syntax error
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } >/dev/null; then
3038   if test -s conftest.err; then
3039     ac_cpp_err=$ac_c_preproc_warn_flag
3040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041   else
3042     ac_cpp_err=
3043   fi
3044 else
3045   ac_cpp_err=yes
3046 fi
3047 if test -z "$ac_cpp_err"; then
3048   :
3049 else
3050   echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053   # Broken: fails on valid input.
3054 continue
3055 fi
3056 rm -f conftest.err conftest.$ac_ext
3057
3058   # OK, works on sane cases.  Now check whether non-existent headers
3059   # can be detected and how.
3060   cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066 #include <ac_nonexistent.h>
3067 _ACEOF
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070   ac_status=$?
3071   grep -v '^ *+' conftest.er1 >conftest.err
3072   rm -f conftest.er1
3073   cat conftest.err >&5
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } >/dev/null; then
3076   if test -s conftest.err; then
3077     ac_cpp_err=$ac_c_preproc_warn_flag
3078     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079   else
3080     ac_cpp_err=
3081   fi
3082 else
3083   ac_cpp_err=yes
3084 fi
3085 if test -z "$ac_cpp_err"; then
3086   # Broken: success on invalid input.
3087 continue
3088 else
3089   echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092   # Passes both tests.
3093 ac_preproc_ok=:
3094 break
3095 fi
3096 rm -f conftest.err conftest.$ac_ext
3097
3098 done
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.$ac_ext
3101 if $ac_preproc_ok; then
3102   break
3103 fi
3104
3105     done
3106     ac_cv_prog_CPP=$CPP
3107
3108 fi
3109   CPP=$ac_cv_prog_CPP
3110 else
3111   ac_cv_prog_CPP=$CPP
3112 fi
3113 echo "$as_me:$LINENO: result: $CPP" >&5
3114 echo "${ECHO_T}$CPP" >&6
3115 ac_preproc_ok=false
3116 for ac_c_preproc_warn_flag in '' yes
3117 do
3118   # Use a header file that comes with gcc, so configuring glibc
3119   # with a fresh cross-compiler works.
3120   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3121   # <limits.h> exists even on freestanding compilers.
3122   # On the NeXT, cc -E runs the code through the compiler's parser,
3123   # not just through cpp. "Syntax error" is here to catch this case.
3124   cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130 #ifdef __STDC__
3131 # include <limits.h>
3132 #else
3133 # include <assert.h>
3134 #endif
3135                      Syntax error
3136 _ACEOF
3137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } >/dev/null; then
3145   if test -s conftest.err; then
3146     ac_cpp_err=$ac_c_preproc_warn_flag
3147     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3148   else
3149     ac_cpp_err=
3150   fi
3151 else
3152   ac_cpp_err=yes
3153 fi
3154 if test -z "$ac_cpp_err"; then
3155   :
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160   # Broken: fails on valid input.
3161 continue
3162 fi
3163 rm -f conftest.err conftest.$ac_ext
3164
3165   # OK, works on sane cases.  Now check whether non-existent headers
3166   # can be detected and how.
3167   cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h.  */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h.  */
3173 #include <ac_nonexistent.h>
3174 _ACEOF
3175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3176   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3177   ac_status=$?
3178   grep -v '^ *+' conftest.er1 >conftest.err
3179   rm -f conftest.er1
3180   cat conftest.err >&5
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); } >/dev/null; then
3183   if test -s conftest.err; then
3184     ac_cpp_err=$ac_c_preproc_warn_flag
3185     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3186   else
3187     ac_cpp_err=
3188   fi
3189 else
3190   ac_cpp_err=yes
3191 fi
3192 if test -z "$ac_cpp_err"; then
3193   # Broken: success on invalid input.
3194 continue
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199   # Passes both tests.
3200 ac_preproc_ok=:
3201 break
3202 fi
3203 rm -f conftest.err conftest.$ac_ext
3204
3205 done
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then
3209   :
3210 else
3211   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3212 See \`config.log' for more details." >&5
3213 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3214 See \`config.log' for more details." >&2;}
3215    { (exit 1); exit 1; }; }
3216 fi
3217
3218 ac_ext=c
3219 ac_cpp='$CPP $CPPFLAGS'
3220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223
3224 if test "$GXX" != "yes"
3225 then
3226         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3227 echo "$as_me: error: g++ required but not found" >&2;}
3228    { (exit 1); exit 1; }; }
3229 fi
3230
3231 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3232 if test "$gccmajor" -lt "3"
3233 then
3234         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3235 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3236    { (exit 1); exit 1; }; }
3237 fi
3238
3239  echo "$as_me:$LINENO: checking for GNU make" >&5
3240 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3241 if test "${_cv_gnu_make_command+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244   _cv_gnu_make_command='' ;
3245                 for a in "$MAKE" make gmake gnumake ; do
3246                         if test -z "$a" ; then continue ; fi ;
3247                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3248                                 _cv_gnu_make_command=$a ;
3249                                 break;
3250                         fi
3251                 done ;
3252
3253 fi
3254 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3255 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3256         if test  "x$_cv_gnu_make_command" != "x"  ; then
3257                 ifGNUmake='' ;
3258         else
3259                 ifGNUmake='#' ;
3260                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3261 echo "${ECHO_T}\"Not found\"" >&6;
3262         fi
3263
3264
3265 if test -z "$_cv_gnu_make_command"
3266 then
3267         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3268 echo "$as_me: error: GNU Make required but not found" >&2;}
3269    { (exit 1); exit 1; }; }
3270 fi
3271
3272
3273 echo "$as_me:$LINENO: checking " >&5
3274 echo $ECHO_N "checking ... $ECHO_C" >&6
3275 if test "${ac_cv_has_flex+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   for ac_prog in flex lex
3279 do
3280   # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy $ac_prog; ac_word=$2
3282 echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3284 if test "${ac_cv_prog_LEX+set}" = set; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   if test -n "$LEX"; then
3288   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293   IFS=$as_save_IFS
3294   test -z "$as_dir" && as_dir=.
3295   for ac_exec_ext in '' $ac_executable_extensions; do
3296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297     ac_cv_prog_LEX="$ac_prog"
3298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299     break 2
3300   fi
3301 done
3302 done
3303
3304 fi
3305 fi
3306 LEX=$ac_cv_prog_LEX
3307 if test -n "$LEX"; then
3308   echo "$as_me:$LINENO: result: $LEX" >&5
3309 echo "${ECHO_T}$LEX" >&6
3310 else
3311   echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6
3313 fi
3314
3315   test -n "$LEX" && break
3316 done
3317 test -n "$LEX" || LEX=":"
3318
3319 if test -z "$LEXLIB"
3320 then
3321   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3322 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3323 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3324   echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326   ac_check_lib_save_LIBS=$LIBS
3327 LIBS="-lfl  $LIBS"
3328 cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h.  */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h.  */
3334
3335 /* Override any gcc2 internal prototype to avoid an error.  */
3336 #ifdef __cplusplus
3337 extern "C"
3338 #endif
3339 /* We use char because int might match the return type of a gcc2
3340    builtin and then its argument prototype would still apply.  */
3341 char yywrap ();
3342 int
3343 main ()
3344 {
3345 yywrap ();
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.$ac_objext conftest$ac_exeext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3352   (eval $ac_link) 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } &&
3359          { ac_try='test -z "$ac_c_werror_flag"
3360                          || test ! -s conftest.err'
3361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362   (eval $ac_try) 2>&5
3363   ac_status=$?
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); }; } &&
3366          { ac_try='test -s conftest$ac_exeext'
3367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368   (eval $ac_try) 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }; }; then
3372   ac_cv_lib_fl_yywrap=yes
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377 ac_cv_lib_fl_yywrap=no
3378 fi
3379 rm -f conftest.err conftest.$ac_objext \
3380       conftest$ac_exeext conftest.$ac_ext
3381 LIBS=$ac_check_lib_save_LIBS
3382 fi
3383 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3384 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3385 if test $ac_cv_lib_fl_yywrap = yes; then
3386   LEXLIB="-lfl"
3387 else
3388   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3389 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3390 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3391   echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393   ac_check_lib_save_LIBS=$LIBS
3394 LIBS="-ll  $LIBS"
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h.  */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h.  */
3401
3402 /* Override any gcc2 internal prototype to avoid an error.  */
3403 #ifdef __cplusplus
3404 extern "C"
3405 #endif
3406 /* We use char because int might match the return type of a gcc2
3407    builtin and then its argument prototype would still apply.  */
3408 char yywrap ();
3409 int
3410 main ()
3411 {
3412 yywrap ();
3413   ;
3414   return 0;
3415 }
3416 _ACEOF
3417 rm -f conftest.$ac_objext conftest$ac_exeext
3418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3419   (eval $ac_link) 2>conftest.er1
3420   ac_status=$?
3421   grep -v '^ *+' conftest.er1 >conftest.err
3422   rm -f conftest.er1
3423   cat conftest.err >&5
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); } &&
3426          { ac_try='test -z "$ac_c_werror_flag"
3427                          || test ! -s conftest.err'
3428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429   (eval $ac_try) 2>&5
3430   ac_status=$?
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); }; } &&
3433          { ac_try='test -s conftest$ac_exeext'
3434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435   (eval $ac_try) 2>&5
3436   ac_status=$?
3437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); }; }; then
3439   ac_cv_lib_l_yywrap=yes
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444 ac_cv_lib_l_yywrap=no
3445 fi
3446 rm -f conftest.err conftest.$ac_objext \
3447       conftest$ac_exeext conftest.$ac_ext
3448 LIBS=$ac_check_lib_save_LIBS
3449 fi
3450 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3451 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3452 if test $ac_cv_lib_l_yywrap = yes; then
3453   LEXLIB="-ll"
3454 fi
3455
3456 fi
3457
3458 fi
3459
3460 if test "x$LEX" != "x:"; then
3461   echo "$as_me:$LINENO: checking lex output file root" >&5
3462 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3463 if test "${ac_cv_prog_lex_root+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   # The minimal lex program is just a single line: %%.  But some broken lexes
3467 # (Solaris, I think it was) want two %% lines, so accommodate them.
3468 cat >conftest.l <<_ACEOF
3469 %%
3470 %%
3471 _ACEOF
3472 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3473   (eval $LEX conftest.l) 2>&5
3474   ac_status=$?
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); }
3477 if test -f lex.yy.c; then
3478   ac_cv_prog_lex_root=lex.yy
3479 elif test -f lexyy.c; then
3480   ac_cv_prog_lex_root=lexyy
3481 else
3482   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3483 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3484    { (exit 1); exit 1; }; }
3485 fi
3486 fi
3487 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3488 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3489 rm -f conftest.l
3490 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3491
3492 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3493 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3494 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   # POSIX says lex can declare yytext either as a pointer or an array; the
3498 # default is implementation-dependent. Figure out which it is, since
3499 # not all implementations provide the %pointer and %array declarations.
3500 ac_cv_prog_lex_yytext_pointer=no
3501 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3502 ac_save_LIBS=$LIBS
3503 LIBS="$LIBS $LEXLIB"
3504 cat >conftest.$ac_ext <<_ACEOF
3505 `cat $LEX_OUTPUT_ROOT.c`
3506 _ACEOF
3507 rm -f conftest.$ac_objext conftest$ac_exeext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509   (eval $ac_link) 2>conftest.er1
3510   ac_status=$?
3511   grep -v '^ *+' conftest.er1 >conftest.err
3512   rm -f conftest.er1
3513   cat conftest.err >&5
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); } &&
3516          { ac_try='test -z "$ac_c_werror_flag"
3517                          || test ! -s conftest.err'
3518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519   (eval $ac_try) 2>&5
3520   ac_status=$?
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); }; } &&
3523          { ac_try='test -s conftest$ac_exeext'
3524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525   (eval $ac_try) 2>&5
3526   ac_status=$?
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); }; }; then
3529   ac_cv_prog_lex_yytext_pointer=yes
3530 else
3531   echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 fi
3535 rm -f conftest.err conftest.$ac_objext \
3536       conftest$ac_exeext conftest.$ac_ext
3537 LIBS=$ac_save_LIBS
3538 rm -f "${LEX_OUTPUT_ROOT}.c"
3539
3540 fi
3541 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3542 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3543 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3544
3545 cat >>confdefs.h <<\_ACEOF
3546 #define YYTEXT_POINTER 1
3547 _ACEOF
3548
3549 fi
3550
3551 fi
3552
3553 fi
3554 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3555 echo "${ECHO_T}$ac_cv_has_flex" >&6
3556 if test "$LEX" != "flex"; then
3557   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3558 echo "$as_me: error: flex not found but required" >&2;}
3559    { (exit 1); exit 1; }; }
3560 else
3561   FLEX=flex
3562
3563 fi
3564
3565 echo "$as_me:$LINENO: checking " >&5
3566 echo $ECHO_N "checking ... $ECHO_C" >&6
3567 if test "${ac_cv_has_bison+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   for ac_prog in 'bison -y' byacc
3571 do
3572   # Extract the first word of "$ac_prog", so it can be a program name with args.
3573 set dummy $ac_prog; ac_word=$2
3574 echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3576 if test "${ac_cv_prog_YACC+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   if test -n "$YACC"; then
3580   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585   IFS=$as_save_IFS
3586   test -z "$as_dir" && as_dir=.
3587   for ac_exec_ext in '' $ac_executable_extensions; do
3588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589     ac_cv_prog_YACC="$ac_prog"
3590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591     break 2
3592   fi
3593 done
3594 done
3595
3596 fi
3597 fi
3598 YACC=$ac_cv_prog_YACC
3599 if test -n "$YACC"; then
3600   echo "$as_me:$LINENO: result: $YACC" >&5
3601 echo "${ECHO_T}$YACC" >&6
3602 else
3603   echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3605 fi
3606
3607   test -n "$YACC" && break
3608 done
3609 test -n "$YACC" || YACC="yacc"
3610
3611
3612 fi
3613 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3614 echo "${ECHO_T}$ac_cv_has_bison" >&6
3615 if test "$YACC" != "bison -y"; then
3616   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3617 echo "$as_me: error: bison not found but required" >&2;}
3618    { (exit 1); exit 1; }; }
3619 else
3620   BISON=bison
3621
3622 fi
3623
3624 # Check whether --enable-shared or --disable-shared was given.
3625 if test "${enable_shared+set}" = set; then
3626   enableval="$enable_shared"
3627   p=${PACKAGE-default}
3628     case $enableval in
3629     yes) enable_shared=yes ;;
3630     no) enable_shared=no ;;
3631     *)
3632       enable_shared=no
3633       # Look at the argument we got.  We use all the common list separators.
3634       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3635       for pkg in $enableval; do
3636         IFS="$lt_save_ifs"
3637         if test "X$pkg" = "X$p"; then
3638           enable_shared=yes
3639         fi
3640       done
3641       IFS="$lt_save_ifs"
3642       ;;
3643     esac
3644 else
3645   enable_shared=yes
3646 fi;
3647
3648 # Check whether --enable-static or --disable-static was given.
3649 if test "${enable_static+set}" = set; then
3650   enableval="$enable_static"
3651   p=${PACKAGE-default}
3652     case $enableval in
3653     yes) enable_static=yes ;;
3654     no) enable_static=no ;;
3655     *)
3656      enable_static=no
3657       # Look at the argument we got.  We use all the common list separators.
3658       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3659       for pkg in $enableval; do
3660         IFS="$lt_save_ifs"
3661         if test "X$pkg" = "X$p"; then
3662           enable_static=yes
3663         fi
3664       done
3665       IFS="$lt_save_ifs"
3666       ;;
3667     esac
3668 else
3669   enable_static=yes
3670 fi;
3671
3672 # Check whether --enable-fast-install or --disable-fast-install was given.
3673 if test "${enable_fast_install+set}" = set; then
3674   enableval="$enable_fast_install"
3675   p=${PACKAGE-default}
3676     case $enableval in
3677     yes) enable_fast_install=yes ;;
3678     no) enable_fast_install=no ;;
3679     *)
3680       enable_fast_install=no
3681       # Look at the argument we got.  We use all the common list separators.
3682       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3683       for pkg in $enableval; do
3684         IFS="$lt_save_ifs"
3685         if test "X$pkg" = "X$p"; then
3686           enable_fast_install=yes
3687         fi
3688       done
3689       IFS="$lt_save_ifs"
3690       ;;
3691     esac
3692 else
3693   enable_fast_install=yes
3694 fi;
3695
3696 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3697 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3698 if test "${lt_cv_path_SED+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   # Loop through the user's path and test for sed and gsed.
3702 # Then use that list of sed's as ones to test for truncation.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708   for lt_ac_prog in sed gsed; do
3709     for ac_exec_ext in '' $ac_executable_extensions; do
3710       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3711         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3712       fi
3713     done
3714   done
3715 done
3716 lt_ac_max=0
3717 lt_ac_count=0
3718 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3719 # along with /bin/sed that truncates output.
3720 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3721   test ! -f $lt_ac_sed && break
3722   cat /dev/null > conftest.in
3723   lt_ac_count=0
3724   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3725   # Check for GNU sed and select it if it is found.
3726   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3727     lt_cv_path_SED=$lt_ac_sed
3728     break
3729   fi
3730   while true; do
3731     cat conftest.in conftest.in >conftest.tmp
3732     mv conftest.tmp conftest.in
3733     cp conftest.in conftest.nl
3734     echo >>conftest.nl
3735     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3736     cmp -s conftest.out conftest.nl || break
3737     # 10000 chars as input seems more than enough
3738     test $lt_ac_count -gt 10 && break
3739     lt_ac_count=`expr $lt_ac_count + 1`
3740     if test $lt_ac_count -gt $lt_ac_max; then
3741       lt_ac_max=$lt_ac_count
3742       lt_cv_path_SED=$lt_ac_sed
3743     fi
3744   done
3745 done
3746
3747 fi
3748
3749 SED=$lt_cv_path_SED
3750 echo "$as_me:$LINENO: result: $SED" >&5
3751 echo "${ECHO_T}$SED" >&6
3752
3753 echo "$as_me:$LINENO: checking for egrep" >&5
3754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3755 if test "${ac_cv_prog_egrep+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3759     then ac_cv_prog_egrep='grep -E'
3760     else ac_cv_prog_egrep='egrep'
3761     fi
3762 fi
3763 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3764 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3765  EGREP=$ac_cv_prog_egrep
3766
3767
3768
3769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3770 if test "${with_gnu_ld+set}" = set; then
3771   withval="$with_gnu_ld"
3772   test "$withval" = no || with_gnu_ld=yes
3773 else
3774   with_gnu_ld=no
3775 fi;
3776 ac_prog=ld
3777 if test "$GCC" = yes; then
3778   # Check if gcc -print-prog-name=ld gives a path.
3779   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3780 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3781   case $host in
3782   *-*-mingw*)
3783     # gcc leaves a trailing carriage return which upsets mingw
3784     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3785   *)
3786     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3787   esac
3788   case $ac_prog in
3789     # Accept absolute paths.
3790     [\\/]* | ?:[\\/]*)
3791       re_direlt='/[^/][^/]*/\.\./'
3792       # Canonicalize the pathname of ld
3793       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3794       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3795         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3796       done
3797       test -z "$LD" && LD="$ac_prog"
3798       ;;
3799   "")
3800     # If it fails, then pretend we aren't using GCC.
3801     ac_prog=ld
3802     ;;
3803   *)
3804     # If it is relative, then search for the first ld in PATH.
3805     with_gnu_ld=unknown
3806     ;;
3807   esac
3808 elif test "$with_gnu_ld" = yes; then
3809   echo "$as_me:$LINENO: checking for GNU ld" >&5
3810 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3811 else
3812   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3813 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3814 fi
3815 if test "${lt_cv_path_LD+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   if test -z "$LD"; then
3819   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3820   for ac_dir in $PATH; do
3821     IFS="$lt_save_ifs"
3822     test -z "$ac_dir" && ac_dir=.
3823     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3824       lt_cv_path_LD="$ac_dir/$ac_prog"
3825       # Check to see if the program is GNU ld.  I'd rather use --version,
3826       # but apparently some GNU ld's only accept -v.
3827       # Break only if it was the GNU/non-GNU ld that we prefer.
3828       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3829       *GNU* | *'with BFD'*)
3830         test "$with_gnu_ld" != no && break
3831         ;;
3832       *)
3833         test "$with_gnu_ld" != yes && break
3834         ;;
3835       esac
3836     fi
3837   done
3838   IFS="$lt_save_ifs"
3839 else
3840   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3841 fi
3842 fi
3843
3844 LD="$lt_cv_path_LD"
3845 if test -n "$LD"; then
3846   echo "$as_me:$LINENO: result: $LD" >&5
3847 echo "${ECHO_T}$LD" >&6
3848 else
3849   echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3851 fi
3852 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3853 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3854    { (exit 1); exit 1; }; }
3855 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3856 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3857 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3861 case `$LD -v 2>&1 </dev/null` in
3862 *GNU* | *'with BFD'*)
3863   lt_cv_prog_gnu_ld=yes
3864   ;;
3865 *)
3866   lt_cv_prog_gnu_ld=no
3867   ;;
3868 esac
3869 fi
3870 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3871 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3872 with_gnu_ld=$lt_cv_prog_gnu_ld
3873
3874
3875 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3876 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3877 if test "${lt_cv_ld_reload_flag+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880   lt_cv_ld_reload_flag='-r'
3881 fi
3882 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3883 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3884 reload_flag=$lt_cv_ld_reload_flag
3885 case $reload_flag in
3886 "" | " "*) ;;
3887 *) reload_flag=" $reload_flag" ;;
3888 esac
3889 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3890 case $host_os in
3891   darwin*)
3892     if test "$GCC" = yes; then
3893       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3894     else
3895       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3896     fi
3897     ;;
3898 esac
3899
3900 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3901 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3902 if test "${lt_cv_path_NM+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   if test -n "$NM"; then
3906   # Let the user override the test.
3907   lt_cv_path_NM="$NM"
3908 else
3909   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3910   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3911     IFS="$lt_save_ifs"
3912     test -z "$ac_dir" && ac_dir=.
3913     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3914     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3915       # Check to see if the nm accepts a BSD-compat flag.
3916       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3917       #   nm: unknown option "B" ignored
3918       # Tru64's nm complains that /dev/null is an invalid object file
3919       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3920       */dev/null* | *'Invalid file or object type'*)
3921         lt_cv_path_NM="$tmp_nm -B"
3922         break
3923         ;;
3924       *)
3925         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3926         */dev/null*)
3927           lt_cv_path_NM="$tmp_nm -p"
3928           break
3929           ;;
3930         *)
3931           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3932           continue # so that we can try to find one that supports BSD flags
3933           ;;
3934         esac
3935       esac
3936     fi
3937   done
3938   IFS="$lt_save_ifs"
3939   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3940 fi
3941 fi
3942 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3943 echo "${ECHO_T}$lt_cv_path_NM" >&6
3944 NM="$lt_cv_path_NM"
3945
3946 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3947 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3948 LN_S=$as_ln_s
3949 if test "$LN_S" = "ln -s"; then
3950   echo "$as_me:$LINENO: result: yes" >&5
3951 echo "${ECHO_T}yes" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3954 echo "${ECHO_T}no, using $LN_S" >&6
3955 fi
3956
3957 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3958 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3959 if test "${lt_cv_deplibs_check_method+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   lt_cv_file_magic_cmd='$MAGIC_CMD'
3963 lt_cv_file_magic_test_file=
3964 lt_cv_deplibs_check_method='unknown'
3965 # Need to set the preceding variable on all platforms that support
3966 # interlibrary dependencies.
3967 # 'none' -- dependencies not supported.
3968 # `unknown' -- same as none, but documents that we really don't know.
3969 # 'pass_all' -- all dependencies passed with no checks.
3970 # 'test_compile' -- check by making test program.
3971 # 'file_magic [[regex]]' -- check by looking for files in library path
3972 # which responds to the $file_magic_cmd with a given extended regex.
3973 # If you have `file' or equivalent on your system and you're not sure
3974 # whether `pass_all' will *always* work, you probably want this one.
3975
3976 case $host_os in
3977 aix4* | aix5*)
3978   lt_cv_deplibs_check_method=pass_all
3979   ;;
3980
3981 beos*)
3982   lt_cv_deplibs_check_method=pass_all
3983   ;;
3984
3985 bsdi[45]*)
3986   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3987   lt_cv_file_magic_cmd='/usr/bin/file -L'
3988   lt_cv_file_magic_test_file=/shlib/libc.so
3989   ;;
3990
3991 cygwin*)
3992   # func_win32_libid is a shell function defined in ltmain.sh
3993   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3994   lt_cv_file_magic_cmd='func_win32_libid'
3995   ;;
3996
3997 mingw* | pw32*)
3998   # Base MSYS/MinGW do not provide the 'file' command needed by
3999   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4000   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4001   lt_cv_file_magic_cmd='$OBJDUMP -f'
4002   ;;
4003
4004 darwin* | rhapsody*)
4005   lt_cv_deplibs_check_method=pass_all
4006   ;;
4007
4008 freebsd* | kfreebsd*-gnu)
4009   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4010     case $host_cpu in
4011     i*86 )
4012       # Not sure whether the presence of OpenBSD here was a mistake.
4013       # Let's accept both of them until this is cleared up.
4014       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4015       lt_cv_file_magic_cmd=/usr/bin/file
4016       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4017       ;;
4018     esac
4019   else
4020     lt_cv_deplibs_check_method=pass_all
4021   fi
4022   ;;
4023
4024 gnu*)
4025   lt_cv_deplibs_check_method=pass_all
4026   ;;
4027
4028 hpux10.20* | hpux11*)
4029   lt_cv_file_magic_cmd=/usr/bin/file
4030   case "$host_cpu" in
4031   ia64*)
4032     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4033     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4034     ;;
4035   hppa*64*)
4036     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]'
4037     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4038     ;;
4039   *)
4040     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4041     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4042     ;;
4043   esac
4044   ;;
4045
4046 irix5* | irix6* | nonstopux*)
4047   case $LD in
4048   *-32|*"-32 ") libmagic=32-bit;;
4049   *-n32|*"-n32 ") libmagic=N32;;
4050   *-64|*"-64 ") libmagic=64-bit;;
4051   *) libmagic=never-match;;
4052   esac
4053   lt_cv_deplibs_check_method=pass_all
4054   ;;
4055
4056 # This must be Linux ELF.
4057 linux*)
4058   lt_cv_deplibs_check_method=pass_all
4059   ;;
4060
4061 netbsd*)
4062   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4063     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4064   else
4065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4066   fi
4067   ;;
4068
4069 newos6*)
4070   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4071   lt_cv_file_magic_cmd=/usr/bin/file
4072   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4073   ;;
4074
4075 nto-qnx*)
4076   lt_cv_deplibs_check_method=unknown
4077   ;;
4078
4079 openbsd*)
4080   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4081     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4082   else
4083     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4084   fi
4085   ;;
4086
4087 osf3* | osf4* | osf5*)
4088   lt_cv_deplibs_check_method=pass_all
4089   ;;
4090
4091 sco3.2v5*)
4092   lt_cv_deplibs_check_method=pass_all
4093   ;;
4094
4095 solaris*)
4096   lt_cv_deplibs_check_method=pass_all
4097   ;;
4098
4099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4100   case $host_vendor in
4101   motorola)
4102     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]'
4103     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4104     ;;
4105   ncr)
4106     lt_cv_deplibs_check_method=pass_all
4107     ;;
4108   sequent)
4109     lt_cv_file_magic_cmd='/bin/file'
4110     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4111     ;;
4112   sni)
4113     lt_cv_file_magic_cmd='/bin/file'
4114     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4115     lt_cv_file_magic_test_file=/lib/libc.so
4116     ;;
4117   siemens)
4118     lt_cv_deplibs_check_method=pass_all
4119     ;;
4120   esac
4121   ;;
4122
4123 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4124   lt_cv_deplibs_check_method=pass_all
4125   ;;
4126 esac
4127
4128 fi
4129 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4130 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4131 file_magic_cmd=$lt_cv_file_magic_cmd
4132 deplibs_check_method=$lt_cv_deplibs_check_method
4133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4134
4135
4136
4137
4138 # If no C compiler was specified, use CC.
4139 LTCC=${LTCC-"$CC"}
4140
4141 # Allow CC to be a program name with arguments.
4142 compiler=$CC
4143
4144 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4145 if test "${enable_libtool_lock+set}" = set; then
4146   enableval="$enable_libtool_lock"
4147
4148 fi;
4149 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4150
4151 # Some flags need to be propagated to the compiler or linker for good
4152 # libtool support.
4153 case $host in
4154 ia64-*-hpux*)
4155   # Find out which ABI we are using.
4156   echo 'int i;' > conftest.$ac_ext
4157   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158   (eval $ac_compile) 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; then
4162     case `/usr/bin/file conftest.$ac_objext` in
4163     *ELF-32*)
4164       HPUX_IA64_MODE="32"
4165       ;;
4166     *ELF-64*)
4167       HPUX_IA64_MODE="64"
4168       ;;
4169     esac
4170   fi
4171   rm -rf conftest*
4172   ;;
4173 *-*-irix6*)
4174   # Find out which ABI we are using.
4175   echo '#line 4175 "configure"' > conftest.$ac_ext
4176   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177   (eval $ac_compile) 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; then
4181    if test "$lt_cv_prog_gnu_ld" = yes; then
4182     case `/usr/bin/file conftest.$ac_objext` in
4183     *32-bit*)
4184       LD="${LD-ld} -melf32bsmip"
4185       ;;
4186     *N32*)
4187       LD="${LD-ld} -melf32bmipn32"
4188       ;;
4189     *64-bit*)
4190       LD="${LD-ld} -melf64bmip"
4191       ;;
4192     esac
4193    else
4194     case `/usr/bin/file conftest.$ac_objext` in
4195     *32-bit*)
4196       LD="${LD-ld} -32"
4197       ;;
4198     *N32*)
4199       LD="${LD-ld} -n32"
4200       ;;
4201     *64-bit*)
4202       LD="${LD-ld} -64"
4203       ;;
4204     esac
4205    fi
4206   fi
4207   rm -rf conftest*
4208   ;;
4209
4210 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4211   # Find out which ABI we are using.
4212   echo 'int i;' > conftest.$ac_ext
4213   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214   (eval $ac_compile) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }; then
4218     case "`/usr/bin/file conftest.o`" in
4219     *32-bit*)
4220       case $host in
4221         x86_64-*linux*)
4222           LD="${LD-ld} -m elf_i386"
4223           ;;
4224         ppc64-*linux*|powerpc64-*linux*)
4225           LD="${LD-ld} -m elf32ppclinux"
4226           ;;
4227         s390x-*linux*)
4228           LD="${LD-ld} -m elf_s390"
4229           ;;
4230         sparc64-*linux*)
4231           LD="${LD-ld} -m elf32_sparc"
4232           ;;
4233       esac
4234       ;;
4235     *64-bit*)
4236       case $host in
4237         x86_64-*linux*)
4238           LD="${LD-ld} -m elf_x86_64"
4239           ;;
4240         ppc*-*linux*|powerpc*-*linux*)
4241           LD="${LD-ld} -m elf64ppc"
4242           ;;
4243         s390*-*linux*)
4244           LD="${LD-ld} -m elf64_s390"
4245           ;;
4246         sparc*-*linux*)
4247           LD="${LD-ld} -m elf64_sparc"
4248           ;;
4249       esac
4250       ;;
4251     esac
4252   fi
4253   rm -rf conftest*
4254   ;;
4255
4256 *-*-sco3.2v5*)
4257   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4258   SAVE_CFLAGS="$CFLAGS"
4259   CFLAGS="$CFLAGS -belf"
4260   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4261 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4262 if test "${lt_cv_cc_needs_belf+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   ac_ext=c
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271      cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h.  */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h.  */
4277
4278 int
4279 main ()
4280 {
4281
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288   (eval $ac_link) 2>conftest.er1
4289   ac_status=$?
4290   grep -v '^ *+' conftest.er1 >conftest.err
4291   rm -f conftest.er1
4292   cat conftest.err >&5
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); } &&
4295          { ac_try='test -z "$ac_c_werror_flag"
4296                          || test ! -s conftest.err'
4297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298   (eval $ac_try) 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); }; } &&
4302          { ac_try='test -s conftest$ac_exeext'
4303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304   (eval $ac_try) 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }; }; then
4308   lt_cv_cc_needs_belf=yes
4309 else
4310   echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4312
4313 lt_cv_cc_needs_belf=no
4314 fi
4315 rm -f conftest.err conftest.$ac_objext \
4316       conftest$ac_exeext conftest.$ac_ext
4317      ac_ext=c
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322
4323 fi
4324 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4325 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4326   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4327     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4328     CFLAGS="$SAVE_CFLAGS"
4329   fi
4330   ;;
4331
4332 esac
4333
4334 need_locks="$enable_libtool_lock"
4335
4336
4337
4338 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4340 if test "${ac_cv_header_stdc+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h.  */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h.  */
4349 #include <stdlib.h>
4350 #include <stdarg.h>
4351 #include <string.h>
4352 #include <float.h>
4353
4354 int
4355 main ()
4356 {
4357
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364   (eval $ac_compile) 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } &&
4371          { ac_try='test -z "$ac_c_werror_flag"
4372                          || test ! -s conftest.err'
4373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374   (eval $ac_try) 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; } &&
4378          { ac_try='test -s conftest.$ac_objext'
4379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380   (eval $ac_try) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); }; }; then
4384   ac_cv_header_stdc=yes
4385 else
4386   echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 ac_cv_header_stdc=no
4390 fi
4391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4392
4393 if test $ac_cv_header_stdc = yes; then
4394   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4395   cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h.  */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h.  */
4401 #include <string.h>
4402
4403 _ACEOF
4404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405   $EGREP "memchr" >/dev/null 2>&1; then
4406   :
4407 else
4408   ac_cv_header_stdc=no
4409 fi
4410 rm -f conftest*
4411
4412 fi
4413
4414 if test $ac_cv_header_stdc = yes; then
4415   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4416   cat >conftest.$ac_ext <<_ACEOF
4417 /* confdefs.h.  */
4418 _ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h.  */
4422 #include <stdlib.h>
4423
4424 _ACEOF
4425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4426   $EGREP "free" >/dev/null 2>&1; then
4427   :
4428 else
4429   ac_cv_header_stdc=no
4430 fi
4431 rm -f conftest*
4432
4433 fi
4434
4435 if test $ac_cv_header_stdc = yes; then
4436   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4437   if test "$cross_compiling" = yes; then
4438   :
4439 else
4440   cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h.  */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h.  */
4446 #include <ctype.h>
4447 #if ((' ' & 0x0FF) == 0x020)
4448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4450 #else
4451 # define ISLOWER(c) \
4452                    (('a' <= (c) && (c) <= 'i') \
4453                      || ('j' <= (c) && (c) <= 'r') \
4454                      || ('s' <= (c) && (c) <= 'z'))
4455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4456 #endif
4457
4458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4459 int
4460 main ()
4461 {
4462   int i;
4463   for (i = 0; i < 256; i++)
4464     if (XOR (islower (i), ISLOWER (i))
4465         || toupper (i) != TOUPPER (i))
4466       exit(2);
4467   exit (0);
4468 }
4469 _ACEOF
4470 rm -f conftest$ac_exeext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4472   (eval $ac_link) 2>&5
4473   ac_status=$?
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477   (eval $ac_try) 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; }; then
4481   :
4482 else
4483   echo "$as_me: program exited with status $ac_status" >&5
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 ( exit $ac_status )
4488 ac_cv_header_stdc=no
4489 fi
4490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4491 fi
4492 fi
4493 fi
4494 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4495 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4496 if test $ac_cv_header_stdc = yes; then
4497
4498 cat >>confdefs.h <<\_ACEOF
4499 #define STDC_HEADERS 1
4500 _ACEOF
4501
4502 fi
4503
4504 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4515                   inttypes.h stdint.h unistd.h
4516 do
4517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518 echo "$as_me:$LINENO: checking for $ac_header" >&5
4519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h.  */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h.  */
4529 $ac_includes_default
4530
4531 #include <$ac_header>
4532 _ACEOF
4533 rm -f conftest.$ac_objext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535   (eval $ac_compile) 2>conftest.er1
4536   ac_status=$?
4537   grep -v '^ *+' conftest.er1 >conftest.err
4538   rm -f conftest.er1
4539   cat conftest.err >&5
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); } &&
4542          { ac_try='test -z "$ac_c_werror_flag"
4543                          || test ! -s conftest.err'
4544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545   (eval $ac_try) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }; } &&
4549          { ac_try='test -s conftest.$ac_objext'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; }; then
4555   eval "$as_ac_Header=yes"
4556 else
4557   echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4559
4560 eval "$as_ac_Header=no"
4561 fi
4562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4563 fi
4564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4567   cat >>confdefs.h <<_ACEOF
4568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4569 _ACEOF
4570
4571 fi
4572
4573 done
4574
4575
4576
4577 for ac_header in dlfcn.h
4578 do
4579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4581   echo "$as_me:$LINENO: checking for $ac_header" >&5
4582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4584   echo $ECHO_N "(cached) $ECHO_C" >&6
4585 fi
4586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4588 else
4589   # Is the header compilable?
4590 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4592 cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598 $ac_includes_default
4599 #include <$ac_header>
4600 _ACEOF
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603   (eval $ac_compile) 2>conftest.er1
4604   ac_status=$?
4605   grep -v '^ *+' conftest.er1 >conftest.err
4606   rm -f conftest.er1
4607   cat conftest.err >&5
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); } &&
4610          { ac_try='test -z "$ac_c_werror_flag"
4611                          || test ! -s conftest.err'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; } &&
4617          { ac_try='test -s conftest.$ac_objext'
4618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619   (eval $ac_try) 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); }; }; then
4623   ac_header_compiler=yes
4624 else
4625   echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4627
4628 ac_header_compiler=no
4629 fi
4630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4632 echo "${ECHO_T}$ac_header_compiler" >&6
4633
4634 # Is the header present?
4635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4637 cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643 #include <$ac_header>
4644 _ACEOF
4645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4647   ac_status=$?
4648   grep -v '^ *+' conftest.er1 >conftest.err
4649   rm -f conftest.er1
4650   cat conftest.err >&5
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); } >/dev/null; then
4653   if test -s conftest.err; then
4654     ac_cpp_err=$ac_c_preproc_warn_flag
4655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4656   else
4657     ac_cpp_err=
4658   fi
4659 else
4660   ac_cpp_err=yes
4661 fi
4662 if test -z "$ac_cpp_err"; then
4663   ac_header_preproc=yes
4664 else
4665   echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4667
4668   ac_header_preproc=no
4669 fi
4670 rm -f conftest.err conftest.$ac_ext
4671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4672 echo "${ECHO_T}$ac_header_preproc" >&6
4673
4674 # So?  What about this header?
4675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4676   yes:no: )
4677     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4681     ac_header_preproc=yes
4682     ;;
4683   no:yes:* )
4684     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4686     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4687 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4688     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4690     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4691 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4694     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4696     (
4697       cat <<\_ASBOX
4698 ## ----------------------------------- ##
4699 ## Report this to llvmbugs@cs.uiuc.edu ##
4700 ## ----------------------------------- ##
4701 _ASBOX
4702     ) |
4703       sed "s/^/$as_me: WARNING:     /" >&2
4704     ;;
4705 esac
4706 echo "$as_me:$LINENO: checking for $ac_header" >&5
4707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   eval "$as_ac_Header=\$ac_header_preproc"
4712 fi
4713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4715
4716 fi
4717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4718   cat >>confdefs.h <<_ACEOF
4719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4720 _ACEOF
4721
4722 fi
4723
4724 done
4725
4726
4727
4728 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4729     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4730     (test "X$CXX" != "Xg++"))) ; then
4731   ac_ext=cc
4732 ac_cpp='$CXXCPP $CPPFLAGS'
4733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4736 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4737 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4738 if test -z "$CXXCPP"; then
4739   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742       # Double quotes because CXXCPP needs to be expanded
4743     for CXXCPP in "$CXX -E" "/lib/cpp"
4744     do
4745       ac_preproc_ok=false
4746 for ac_cxx_preproc_warn_flag in '' yes
4747 do
4748   # Use a header file that comes with gcc, so configuring glibc
4749   # with a fresh cross-compiler works.
4750   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751   # <limits.h> exists even on freestanding compilers.
4752   # On the NeXT, cc -E runs the code through the compiler's parser,
4753   # not just through cpp. "Syntax error" is here to catch this case.
4754   cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h.  */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h.  */
4760 #ifdef __STDC__
4761 # include <limits.h>
4762 #else
4763 # include <assert.h>
4764 #endif
4765                      Syntax error
4766 _ACEOF
4767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4769   ac_status=$?
4770   grep -v '^ *+' conftest.er1 >conftest.err
4771   rm -f conftest.er1
4772   cat conftest.err >&5
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); } >/dev/null; then
4775   if test -s conftest.err; then
4776     ac_cpp_err=$ac_cxx_preproc_warn_flag
4777     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4778   else
4779     ac_cpp_err=
4780   fi
4781 else
4782   ac_cpp_err=yes
4783 fi
4784 if test -z "$ac_cpp_err"; then
4785   :
4786 else
4787   echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790   # Broken: fails on valid input.
4791 continue
4792 fi
4793 rm -f conftest.err conftest.$ac_ext
4794
4795   # OK, works on sane cases.  Now check whether non-existent headers
4796   # can be detected and how.
4797   cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h.  */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h.  */
4803 #include <ac_nonexistent.h>
4804 _ACEOF
4805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4807   ac_status=$?
4808   grep -v '^ *+' conftest.er1 >conftest.err
4809   rm -f conftest.er1
4810   cat conftest.err >&5
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); } >/dev/null; then
4813   if test -s conftest.err; then
4814     ac_cpp_err=$ac_cxx_preproc_warn_flag
4815     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4816   else
4817     ac_cpp_err=
4818   fi
4819 else
4820   ac_cpp_err=yes
4821 fi
4822 if test -z "$ac_cpp_err"; then
4823   # Broken: success on invalid input.
4824 continue
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829   # Passes both tests.
4830 ac_preproc_ok=:
4831 break
4832 fi
4833 rm -f conftest.err conftest.$ac_ext
4834
4835 done
4836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837 rm -f conftest.err conftest.$ac_ext
4838 if $ac_preproc_ok; then
4839   break
4840 fi
4841
4842     done
4843     ac_cv_prog_CXXCPP=$CXXCPP
4844
4845 fi
4846   CXXCPP=$ac_cv_prog_CXXCPP
4847 else
4848   ac_cv_prog_CXXCPP=$CXXCPP
4849 fi
4850 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4851 echo "${ECHO_T}$CXXCPP" >&6
4852 ac_preproc_ok=false
4853 for ac_cxx_preproc_warn_flag in '' yes
4854 do
4855   # Use a header file that comes with gcc, so configuring glibc
4856   # with a fresh cross-compiler works.
4857   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4858   # <limits.h> exists even on freestanding compilers.
4859   # On the NeXT, cc -E runs the code through the compiler's parser,
4860   # not just through cpp. "Syntax error" is here to catch this case.
4861   cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h.  */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h.  */
4867 #ifdef __STDC__
4868 # include <limits.h>
4869 #else
4870 # include <assert.h>
4871 #endif
4872                      Syntax error
4873 _ACEOF
4874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4876   ac_status=$?
4877   grep -v '^ *+' conftest.er1 >conftest.err
4878   rm -f conftest.er1
4879   cat conftest.err >&5
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); } >/dev/null; then
4882   if test -s conftest.err; then
4883     ac_cpp_err=$ac_cxx_preproc_warn_flag
4884     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4885   else
4886     ac_cpp_err=
4887   fi
4888 else
4889   ac_cpp_err=yes
4890 fi
4891 if test -z "$ac_cpp_err"; then
4892   :
4893 else
4894   echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4896
4897   # Broken: fails on valid input.
4898 continue
4899 fi
4900 rm -f conftest.err conftest.$ac_ext
4901
4902   # OK, works on sane cases.  Now check whether non-existent headers
4903   # can be detected and how.
4904   cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h.  */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h.  */
4910 #include <ac_nonexistent.h>
4911 _ACEOF
4912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4914   ac_status=$?
4915   grep -v '^ *+' conftest.er1 >conftest.err
4916   rm -f conftest.er1
4917   cat conftest.err >&5
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); } >/dev/null; then
4920   if test -s conftest.err; then
4921     ac_cpp_err=$ac_cxx_preproc_warn_flag
4922     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4923   else
4924     ac_cpp_err=
4925   fi
4926 else
4927   ac_cpp_err=yes
4928 fi
4929 if test -z "$ac_cpp_err"; then
4930   # Broken: success on invalid input.
4931 continue
4932 else
4933   echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4935
4936   # Passes both tests.
4937 ac_preproc_ok=:
4938 break
4939 fi
4940 rm -f conftest.err conftest.$ac_ext
4941
4942 done
4943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944 rm -f conftest.err conftest.$ac_ext
4945 if $ac_preproc_ok; then
4946   :
4947 else
4948   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4949 See \`config.log' for more details." >&5
4950 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4951 See \`config.log' for more details." >&2;}
4952    { (exit 1); exit 1; }; }
4953 fi
4954
4955 ac_ext=cc
4956 ac_cpp='$CXXCPP $CPPFLAGS'
4957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4960
4961 fi
4962
4963
4964 ac_ext=f
4965 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4966 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4968 if test -n "$ac_tool_prefix"; then
4969   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4970   do
4971     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4973 echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4975 if test "${ac_cv_prog_F77+set}" = set; then
4976   echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978   if test -n "$F77"; then
4979   ac_cv_prog_F77="$F77" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4983 do
4984   IFS=$as_save_IFS
4985   test -z "$as_dir" && as_dir=.
4986   for ac_exec_ext in '' $ac_executable_extensions; do
4987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990     break 2
4991   fi
4992 done
4993 done
4994
4995 fi
4996 fi
4997 F77=$ac_cv_prog_F77
4998 if test -n "$F77"; then
4999   echo "$as_me:$LINENO: result: $F77" >&5
5000 echo "${ECHO_T}$F77" >&6
5001 else
5002   echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6
5004 fi
5005
5006     test -n "$F77" && break
5007   done
5008 fi
5009 if test -z "$F77"; then
5010   ac_ct_F77=$F77
5011   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5012 do
5013   # Extract the first word of "$ac_prog", so it can be a program name with args.
5014 set dummy $ac_prog; ac_word=$2
5015 echo "$as_me:$LINENO: checking for $ac_word" >&5
5016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5018   echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020   if test -n "$ac_ct_F77"; then
5021   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028   for ac_exec_ext in '' $ac_executable_extensions; do
5029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030     ac_cv_prog_ac_ct_F77="$ac_prog"
5031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032     break 2
5033   fi
5034 done
5035 done
5036
5037 fi
5038 fi
5039 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5040 if test -n "$ac_ct_F77"; then
5041   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5042 echo "${ECHO_T}$ac_ct_F77" >&6
5043 else
5044   echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5046 fi
5047
5048   test -n "$ac_ct_F77" && break
5049 done
5050
5051   F77=$ac_ct_F77
5052 fi
5053
5054
5055 # Provide some information about the compiler.
5056 echo "$as_me:5056:" \
5057      "checking for Fortran 77 compiler version" >&5
5058 ac_compiler=`set X $ac_compile; echo $2`
5059 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5060   (eval $ac_compiler --version </dev/null >&5) 2>&5
5061   ac_status=$?
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); }
5064 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5065   (eval $ac_compiler -v </dev/null >&5) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); }
5069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5070   (eval $ac_compiler -V </dev/null >&5) 2>&5
5071   ac_status=$?
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); }
5074 rm -f a.out
5075
5076 # If we don't use `.F' as extension, the preprocessor is not run on the
5077 # input file.  (Note that this only needs to work for GNU compilers.)
5078 ac_save_ext=$ac_ext
5079 ac_ext=F
5080 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5081 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5082 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085   cat >conftest.$ac_ext <<_ACEOF
5086       program main
5087 #ifndef __GNUC__
5088        choke me
5089 #endif
5090
5091       end
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095   (eval $ac_compile) 2>conftest.er1
5096   ac_status=$?
5097   grep -v '^ *+' conftest.er1 >conftest.err
5098   rm -f conftest.er1
5099   cat conftest.err >&5
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } &&
5102          { ac_try='test -z "$ac_f77_werror_flag"
5103                          || test ! -s conftest.err'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; } &&
5109          { ac_try='test -s conftest.$ac_objext'
5110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111   (eval $ac_try) 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); }; }; then
5115   ac_compiler_gnu=yes
5116 else
5117   echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5119
5120 ac_compiler_gnu=no
5121 fi
5122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5124
5125 fi
5126 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5127 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5128 ac_ext=$ac_save_ext
5129 ac_test_FFLAGS=${FFLAGS+set}
5130 ac_save_FFLAGS=$FFLAGS
5131 FFLAGS=
5132 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5133 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5134 if test "${ac_cv_prog_f77_g+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   FFLAGS=-g
5138 cat >conftest.$ac_ext <<_ACEOF
5139       program main
5140
5141       end
5142 _ACEOF
5143 rm -f conftest.$ac_objext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145   (eval $ac_compile) 2>conftest.er1
5146   ac_status=$?
5147   grep -v '^ *+' conftest.er1 >conftest.err
5148   rm -f conftest.er1
5149   cat conftest.err >&5
5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151   (exit $ac_status); } &&
5152          { ac_try='test -z "$ac_f77_werror_flag"
5153                          || test ! -s conftest.err'
5154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155   (eval $ac_try) 2>&5
5156   ac_status=$?
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); }; } &&
5159          { ac_try='test -s conftest.$ac_objext'
5160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161   (eval $ac_try) 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); }; }; then
5165   ac_cv_prog_f77_g=yes
5166 else
5167   echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5169
5170 ac_cv_prog_f77_g=no
5171 fi
5172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5173
5174 fi
5175 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5176 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5177 if test "$ac_test_FFLAGS" = set; then
5178   FFLAGS=$ac_save_FFLAGS
5179 elif test $ac_cv_prog_f77_g = yes; then
5180   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5181     FFLAGS="-g -O2"
5182   else
5183     FFLAGS="-g"
5184   fi
5185 else
5186   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5187     FFLAGS="-O2"
5188   else
5189     FFLAGS=
5190   fi
5191 fi
5192
5193 G77=`test $ac_compiler_gnu = yes && echo yes`
5194 ac_ext=c
5195 ac_cpp='$CPP $CPPFLAGS'
5196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199
5200
5201
5202 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5203
5204 # find the maximum length of command line arguments
5205 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5206 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5207 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5208   echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210     i=0
5211   teststring="ABCD"
5212
5213   case $build_os in
5214   msdosdjgpp*)
5215     # On DJGPP, this test can blow up pretty badly due to problems in libc
5216     # (any single argument exceeding 2000 bytes causes a buffer overrun
5217     # during glob expansion).  Even if it were fixed, the result of this
5218     # check would be larger than it should be.
5219     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5220     ;;
5221
5222   gnu*)
5223     # Under GNU Hurd, this test is not required because there is
5224     # no limit to the length of command line arguments.
5225     # Libtool will interpret -1 as no limit whatsoever
5226     lt_cv_sys_max_cmd_len=-1;
5227     ;;
5228
5229   cygwin* | mingw*)
5230     # On Win9x/ME, this test blows up -- it succeeds, but takes
5231     # about 5 minutes as the teststring grows exponentially.
5232     # Worse, since 9x/ME are not pre-emptively multitasking,
5233     # you end up with a "frozen" computer, even though with patience
5234     # the test eventually succeeds (with a max line length of 256k).
5235     # Instead, let's just punt: use the minimum linelength reported by
5236     # all of the supported platforms: 8192 (on NT/2K/XP).
5237     lt_cv_sys_max_cmd_len=8192;
5238     ;;
5239
5240   amigaos*)
5241     # On AmigaOS with pdksh, this test takes hours, literally.
5242     # So we just punt and use a minimum line length of 8192.
5243     lt_cv_sys_max_cmd_len=8192;
5244     ;;
5245
5246   netbsd* | freebsd* | openbsd* | darwin* )
5247     # This has been around since 386BSD, at least.  Likely further.
5248     if test -x /sbin/sysctl; then
5249       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5250     elif test -x /usr/sbin/sysctl; then
5251       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5252     else
5253       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5254     fi
5255     # And add a safety zone
5256     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5257     ;;
5258
5259  *)
5260     # If test is not a shell built-in, we'll probably end up computing a
5261     # maximum length that is only half of the actual maximum length, but
5262     # we can't tell.
5263     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5264     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5265                = "XX$teststring") >/dev/null 2>&1 &&
5266             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5267             lt_cv_sys_max_cmd_len=$new_result &&
5268             test $i != 17 # 1/2 MB should be enough
5269     do
5270       i=`expr $i + 1`
5271       teststring=$teststring$teststring
5272     done
5273     teststring=
5274     # Add a significant safety factor because C++ compilers can tack on massive
5275     # amounts of additional arguments before passing them to the linker.
5276     # It appears as though 1/2 is a usable value.
5277     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5278     ;;
5279   esac
5280
5281 fi
5282
5283 if test -n $lt_cv_sys_max_cmd_len ; then
5284   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5285 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5286 else
5287   echo "$as_me:$LINENO: result: none" >&5
5288 echo "${ECHO_T}none" >&6
5289 fi
5290
5291
5292
5293
5294 # Check for command to grab the raw symbol name followed by C symbol from nm.
5295 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5296 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5297 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5298   echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300
5301 # These are sane defaults that work on at least a few old systems.
5302 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5303
5304 # Character class describing NM global symbol codes.
5305 symcode='[BCDEGRST]'
5306
5307 # Regexp to match symbols that can be accessed directly from C.
5308 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5309
5310 # Transform the above into a raw symbol and a C symbol.
5311 symxfrm='\1 \2\3 \3'
5312
5313 # Transform an extracted symbol line into a proper C declaration
5314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5315
5316 # Transform an extracted symbol line into symbol name and symbol address
5317 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'"
5318
5319 # Define system-specific variables.
5320 case $host_os in
5321 aix*)
5322   symcode='[BCDT]'
5323   ;;
5324 cygwin* | mingw* | pw32*)
5325   symcode='[ABCDGISTW]'
5326   ;;
5327 hpux*) # Its linker distinguishes data from code symbols
5328   if test "$host_cpu" = ia64; then
5329     symcode='[ABCDEGRST]'
5330   fi
5331   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5332   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'"
5333   ;;
5334 linux*)
5335   if test "$host_cpu" = ia64; then
5336     symcode='[ABCDGIRSTW]'
5337     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5338     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'"
5339   fi
5340   ;;
5341 irix* | nonstopux*)
5342   symcode='[BCDEGRST]'
5343   ;;
5344 osf*)
5345   symcode='[BCDEGQRST]'
5346   ;;
5347 solaris* | sysv5*)
5348   symcode='[BDRT]'
5349   ;;
5350 sysv4)
5351   symcode='[DFNSTU]'
5352   ;;
5353 esac
5354
5355 # Handle CRLF in mingw tool chain
5356 opt_cr=
5357 case $build_os in
5358 mingw*)
5359   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5360   ;;
5361 esac
5362
5363 # If we're using GNU nm, then use its standard symbol codes.
5364 case `$NM -V 2>&1` in
5365 *GNU* | *'with BFD'*)
5366   symcode='[ABCDGIRSTW]' ;;
5367 esac
5368
5369 # Try without a prefix undercore, then with it.
5370 for ac_symprfx in "" "_"; do
5371
5372   # Write the raw and C identifiers.
5373   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5374
5375   # Check to see that the pipe works correctly.
5376   pipe_works=no
5377
5378   rm -f conftest*
5379   cat > conftest.$ac_ext <<EOF
5380 #ifdef __cplusplus
5381 extern "C" {
5382 #endif
5383 char nm_test_var;
5384 void nm_test_func(){}
5385 #ifdef __cplusplus
5386 }
5387 #endif
5388 int main(){nm_test_var='a';nm_test_func();return(0);}
5389 EOF
5390
5391   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392   (eval $ac_compile) 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }; then
5396     # Now try to grab the symbols.
5397     nlist=conftest.nm
5398     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5399   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); } && test -s "$nlist"; then
5403       # Try sorting and uniquifying the output.
5404       if sort "$nlist" | uniq > "$nlist"T; then
5405         mv -f "$nlist"T "$nlist"
5406       else
5407         rm -f "$nlist"T
5408       fi
5409
5410       # Make sure that we snagged all the symbols we need.
5411       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5412         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5413           cat <<EOF > conftest.$ac_ext
5414 #ifdef __cplusplus
5415 extern "C" {
5416 #endif
5417
5418 EOF
5419           # Now generate the symbol file.
5420           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5421
5422           cat <<EOF >> conftest.$ac_ext
5423 #if defined (__STDC__) && __STDC__
5424 # define lt_ptr_t void *
5425 #else
5426 # define lt_ptr_t char *
5427 # define const
5428 #endif
5429
5430 /* The mapping between symbol names and symbols. */
5431 const struct {
5432   const char *name;
5433   lt_ptr_t address;
5434 }
5435 lt_preloaded_symbols[] =
5436 {
5437 EOF
5438           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5439           cat <<\EOF >> conftest.$ac_ext
5440   {0, (lt_ptr_t) 0}
5441 };
5442
5443 #ifdef __cplusplus
5444 }
5445 #endif
5446 EOF
5447           # Now try linking the two files.
5448           mv conftest.$ac_objext conftstm.$ac_objext
5449           lt_save_LIBS="$LIBS"
5450           lt_save_CFLAGS="$CFLAGS"
5451           LIBS="conftstm.$ac_objext"
5452           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5453           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5454   (eval $ac_link) 2>&5
5455   ac_status=$?
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5458             pipe_works=yes
5459           fi
5460           LIBS="$lt_save_LIBS"
5461           CFLAGS="$lt_save_CFLAGS"
5462         else
5463           echo "cannot find nm_test_func in $nlist" >&5
5464         fi
5465       else
5466         echo "cannot find nm_test_var in $nlist" >&5
5467       fi
5468     else
5469       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5470     fi
5471   else
5472     echo "$progname: failed program was:" >&5
5473     cat conftest.$ac_ext >&5
5474   fi
5475   rm -f conftest* conftst*
5476
5477   # Do not use the global_symbol_pipe unless it works.
5478   if test "$pipe_works" = yes; then
5479     break
5480   else
5481     lt_cv_sys_global_symbol_pipe=
5482   fi
5483 done
5484
5485 fi
5486
5487 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5488   lt_cv_sys_global_symbol_to_cdecl=
5489 fi
5490 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5491   echo "$as_me:$LINENO: result: failed" >&5
5492 echo "${ECHO_T}failed" >&6
5493 else
5494   echo "$as_me:$LINENO: result: ok" >&5
5495 echo "${ECHO_T}ok" >&6
5496 fi
5497
5498 echo "$as_me:$LINENO: checking for objdir" >&5
5499 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5500 if test "${lt_cv_objdir+set}" = set; then
5501   echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503   rm -f .libs 2>/dev/null
5504 mkdir .libs 2>/dev/null
5505 if test -d .libs; then
5506   lt_cv_objdir=.libs
5507 else
5508   # MS-DOS does not allow filenames that begin with a dot.
5509   lt_cv_objdir=_libs
5510 fi
5511 rmdir .libs 2>/dev/null
5512 fi
5513 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5514 echo "${ECHO_T}$lt_cv_objdir" >&6
5515 objdir=$lt_cv_objdir
5516
5517
5518
5519
5520
5521 case $host_os in
5522 aix3*)
5523   # AIX sometimes has problems with the GCC collect2 program.  For some
5524   # reason, if we set the COLLECT_NAMES environment variable, the problems
5525   # vanish in a puff of smoke.
5526   if test "X${COLLECT_NAMES+set}" != Xset; then
5527     COLLECT_NAMES=
5528     export COLLECT_NAMES
5529   fi
5530   ;;
5531 esac
5532
5533 # Sed substitution that helps us do robust quoting.  It backslashifies
5534 # metacharacters that are still active within double-quoted strings.
5535 Xsed='sed -e s/^X//'
5536 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5537
5538 # Same as above, but do not quote variable references.
5539 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5540
5541 # Sed substitution to delay expansion of an escaped shell variable in a
5542 # double_quote_subst'ed string.
5543 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5544
5545 # Sed substitution to avoid accidental globbing in evaled expressions
5546 no_glob_subst='s/\*/\\\*/g'
5547
5548 # Constants:
5549 rm="rm -f"
5550
5551 # Global variables:
5552 default_ofile=mklib
5553 can_build_shared=yes
5554
5555 # All known linkers require a `.a' archive for static linking (except M$VC,
5556 # which needs '.lib').
5557 libext=a
5558 ltmain="$ac_aux_dir/ltmain.sh"
5559 ofile="$default_ofile"
5560 with_gnu_ld="$lt_cv_prog_gnu_ld"
5561
5562 if test -n "$ac_tool_prefix"; then
5563   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5564 set dummy ${ac_tool_prefix}ar; ac_word=$2
5565 echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5567 if test "${ac_cv_prog_AR+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   if test -n "$AR"; then
5571   ac_cv_prog_AR="$AR" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578   for ac_exec_ext in '' $ac_executable_extensions; do
5579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580     ac_cv_prog_AR="${ac_tool_prefix}ar"
5581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585 done
5586
5587 fi
5588 fi
5589 AR=$ac_cv_prog_AR
5590 if test -n "$AR"; then
5591   echo "$as_me:$LINENO: result: $AR" >&5
5592 echo "${ECHO_T}$AR" >&6
5593 else
5594   echo "$as_me:$LINENO: result: no" >&5
5595 echo "${ECHO_T}no" >&6
5596 fi
5597
5598 fi
5599 if test -z "$ac_cv_prog_AR"; then
5600   ac_ct_AR=$AR
5601   # Extract the first word of "ar", so it can be a program name with args.
5602 set dummy ar; ac_word=$2
5603 echo "$as_me:$LINENO: checking for $ac_word" >&5
5604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5605 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608   if test -n "$ac_ct_AR"; then
5609   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614   IFS=$as_save_IFS
5615   test -z "$as_dir" && as_dir=.
5616   for ac_exec_ext in '' $ac_executable_extensions; do
5617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618     ac_cv_prog_ac_ct_AR="ar"
5619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620     break 2
5621   fi
5622 done
5623 done
5624
5625   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5626 fi
5627 fi
5628 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5629 if test -n "$ac_ct_AR"; then
5630   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5631 echo "${ECHO_T}$ac_ct_AR" >&6
5632 else
5633   echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6
5635 fi
5636
5637   AR=$ac_ct_AR
5638 else
5639   AR="$ac_cv_prog_AR"
5640 fi
5641
5642 if test -n "$ac_tool_prefix"; then
5643   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5645 echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647 if test "${ac_cv_prog_RANLIB+set}" = set; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650   if test -n "$RANLIB"; then
5651   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656   IFS=$as_save_IFS
5657   test -z "$as_dir" && as_dir=.
5658   for ac_exec_ext in '' $ac_executable_extensions; do
5659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662     break 2
5663   fi
5664 done
5665 done
5666
5667 fi
5668 fi
5669 RANLIB=$ac_cv_prog_RANLIB
5670 if test -n "$RANLIB"; then
5671   echo "$as_me:$LINENO: result: $RANLIB" >&5
5672 echo "${ECHO_T}$RANLIB" >&6
5673 else
5674   echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5676 fi
5677
5678 fi
5679 if test -z "$ac_cv_prog_RANLIB"; then
5680   ac_ct_RANLIB=$RANLIB
5681   # Extract the first word of "ranlib", so it can be a program name with args.
5682 set dummy ranlib; ac_word=$2
5683 echo "$as_me:$LINENO: checking for $ac_word" >&5
5684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5685 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5686   echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688   if test -n "$ac_ct_RANLIB"; then
5689   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694   IFS=$as_save_IFS
5695   test -z "$as_dir" && as_dir=.
5696   for ac_exec_ext in '' $ac_executable_extensions; do
5697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698     ac_cv_prog_ac_ct_RANLIB="ranlib"
5699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700     break 2
5701   fi
5702 done
5703 done
5704
5705   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5706 fi
5707 fi
5708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5709 if test -n "$ac_ct_RANLIB"; then
5710   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5711 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5712 else
5713   echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5715 fi
5716
5717   RANLIB=$ac_ct_RANLIB
5718 else
5719   RANLIB="$ac_cv_prog_RANLIB"
5720 fi
5721
5722 if test -n "$ac_tool_prefix"; then
5723   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5724 set dummy ${ac_tool_prefix}strip; ac_word=$2
5725 echo "$as_me:$LINENO: checking for $ac_word" >&5
5726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727 if test "${ac_cv_prog_STRIP+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   if test -n "$STRIP"; then
5731   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738   for ac_exec_ext in '' $ac_executable_extensions; do
5739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745 done
5746
5747 fi
5748 fi
5749 STRIP=$ac_cv_prog_STRIP
5750 if test -n "$STRIP"; then
5751   echo "$as_me:$LINENO: result: $STRIP" >&5
5752 echo "${ECHO_T}$STRIP" >&6
5753 else
5754   echo "$as_me:$LINENO: result: no" >&5
5755 echo "${ECHO_T}no" >&6
5756 fi
5757
5758 fi
5759 if test -z "$ac_cv_prog_STRIP"; then
5760   ac_ct_STRIP=$STRIP
5761   # Extract the first word of "strip", so it can be a program name with args.
5762 set dummy strip; ac_word=$2
5763 echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5765 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5766   echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768   if test -n "$ac_ct_STRIP"; then
5769   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774   IFS=$as_save_IFS
5775   test -z "$as_dir" && as_dir=.
5776   for ac_exec_ext in '' $ac_executable_extensions; do
5777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778     ac_cv_prog_ac_ct_STRIP="strip"
5779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780     break 2
5781   fi
5782 done
5783 done
5784
5785   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5786 fi
5787 fi
5788 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5789 if test -n "$ac_ct_STRIP"; then
5790   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5791 echo "${ECHO_T}$ac_ct_STRIP" >&6
5792 else
5793   echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6
5795 fi
5796
5797   STRIP=$ac_ct_STRIP
5798 else
5799   STRIP="$ac_cv_prog_STRIP"
5800 fi
5801
5802
5803 old_CC="$CC"
5804 old_CFLAGS="$CFLAGS"
5805
5806 # Set sane defaults for various variables
5807 test -z "$AR" && AR=ar
5808 test -z "$AR_FLAGS" && AR_FLAGS=cru
5809 test -z "$AS" && AS=as
5810 test -z "$CC" && CC=cc
5811 test -z "$LTCC" && LTCC=$CC
5812 test -z "$DLLTOOL" && DLLTOOL=dlltool
5813 test -z "$LD" && LD=ld
5814 test -z "$LN_S" && LN_S="ln -s"
5815 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5816 test -z "$NM" && NM=nm
5817 test -z "$SED" && SED=sed
5818 test -z "$OBJDUMP" && OBJDUMP=objdump
5819 test -z "$RANLIB" && RANLIB=:
5820 test -z "$STRIP" && STRIP=:
5821 test -z "$ac_objext" && ac_objext=o
5822
5823 # Determine commands to create old-style static archives.
5824 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5825 old_postinstall_cmds='chmod 644 $oldlib'
5826 old_postuninstall_cmds=
5827
5828 if test -n "$RANLIB"; then
5829   case $host_os in
5830   openbsd*)
5831     old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
5832     ;;
5833   *)
5834     old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
5835     ;;
5836   esac
5837   old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
5838 fi
5839
5840 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5841
5842 # Only perform the check for file, if the check method requires it
5843 case $deplibs_check_method in
5844 file_magic*)
5845   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5846     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5847 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5848 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5849   echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851   case $MAGIC_CMD in
5852 [\\/*] |  ?:[\\/]*)
5853   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5854   ;;
5855 *)
5856   lt_save_MAGIC_CMD="$MAGIC_CMD"
5857   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5858   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5859   for ac_dir in $ac_dummy; do
5860     IFS="$lt_save_ifs"
5861     test -z "$ac_dir" && ac_dir=.
5862     if test -f $ac_dir/${ac_tool_prefix}file; then
5863       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5864       if test -n "$file_magic_test_file"; then
5865         case $deplibs_check_method in
5866         "file_magic "*)
5867           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5868           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5869           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5870             $EGREP "$file_magic_regex" > /dev/null; then
5871             :
5872           else
5873             cat <<EOF 1>&2
5874
5875 *** Warning: the command libtool uses to detect shared libraries,
5876 *** $file_magic_cmd, produces output that libtool cannot recognize.
5877 *** The result is that libtool may fail to recognize shared libraries
5878 *** as such.  This will affect the creation of libtool libraries that
5879 *** depend on shared libraries, but programs linked with such libtool
5880 *** libraries will work regardless of this problem.  Nevertheless, you
5881 *** may want to report the problem to your system manager and/or to
5882 *** bug-libtool@gnu.org
5883
5884 EOF
5885           fi ;;
5886         esac
5887       fi
5888       break
5889     fi
5890   done
5891   IFS="$lt_save_ifs"
5892   MAGIC_CMD="$lt_save_MAGIC_CMD"
5893   ;;
5894 esac
5895 fi
5896
5897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5898 if test -n "$MAGIC_CMD"; then
5899   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5900 echo "${ECHO_T}$MAGIC_CMD" >&6
5901 else
5902   echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6
5904 fi
5905
5906 if test -z "$lt_cv_path_MAGIC_CMD"; then
5907   if test -n "$ac_tool_prefix"; then
5908     echo "$as_me:$LINENO: checking for file" >&5
5909 echo $ECHO_N "checking for file... $ECHO_C" >&6
5910 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   case $MAGIC_CMD in
5914 [\\/*] |  ?:[\\/]*)
5915   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5916   ;;
5917 *)
5918   lt_save_MAGIC_CMD="$MAGIC_CMD"
5919   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5920   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5921   for ac_dir in $ac_dummy; do
5922     IFS="$lt_save_ifs"
5923     test -z "$ac_dir" && ac_dir=.
5924     if test -f $ac_dir/file; then
5925       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5926       if test -n "$file_magic_test_file"; then
5927         case $deplibs_check_method in
5928         "file_magic "*)
5929           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5930           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5931           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5932             $EGREP "$file_magic_regex" > /dev/null; then
5933             :
5934           else
5935             cat <<EOF 1>&2
5936
5937 *** Warning: the command libtool uses to detect shared libraries,
5938 *** $file_magic_cmd, produces output that libtool cannot recognize.
5939 *** The result is that libtool may fail to recognize shared libraries
5940 *** as such.  This will affect the creation of libtool libraries that
5941 *** depend on shared libraries, but programs linked with such libtool
5942 *** libraries will work regardless of this problem.  Nevertheless, you
5943 *** may want to report the problem to your system manager and/or to
5944 *** bug-libtool@gnu.org
5945
5946 EOF
5947           fi ;;
5948         esac
5949       fi
5950       break
5951     fi
5952   done
5953   IFS="$lt_save_ifs"
5954   MAGIC_CMD="$lt_save_MAGIC_CMD"
5955   ;;
5956 esac
5957 fi
5958
5959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5960 if test -n "$MAGIC_CMD"; then
5961   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5962 echo "${ECHO_T}$MAGIC_CMD" >&6
5963 else
5964   echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5966 fi
5967
5968   else
5969     MAGIC_CMD=:
5970   fi
5971 fi
5972
5973   fi
5974   ;;
5975 esac
5976
5977 enable_dlopen=no
5978 enable_win32_dll=no
5979
5980 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5981 if test "${enable_libtool_lock+set}" = set; then
5982   enableval="$enable_libtool_lock"
5983
5984 fi;
5985 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5986
5987
5988 # Check whether --with-pic or --without-pic was given.
5989 if test "${with_pic+set}" = set; then
5990   withval="$with_pic"
5991   pic_mode="$withval"
5992 else
5993   pic_mode=default
5994 fi;
5995 test -z "$pic_mode" && pic_mode=default
5996
5997 # Use C for the default configuration in the libtool script
5998 tagname=
5999 lt_save_CC="$CC"
6000 ac_ext=c
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005
6006
6007 # Source file extension for C test sources.
6008 ac_ext=c
6009
6010 # Object file extension for compiled C test sources.
6011 objext=o
6012 objext=$objext
6013
6014 # Code to be used in simple compile tests
6015 lt_simple_compile_test_code="int some_variable = 0;\n"
6016
6017 # Code to be used in simple link tests
6018 lt_simple_link_test_code='int main(){return(0);}\n'
6019
6020
6021 # If no C compiler was specified, use CC.
6022 LTCC=${LTCC-"$CC"}
6023
6024 # Allow CC to be a program name with arguments.
6025 compiler=$CC
6026
6027
6028 #
6029 # Check for any special shared library compilation flags.
6030 #
6031 lt_prog_cc_shlib=
6032 if test "$GCC" = no; then
6033   case $host_os in
6034   sco3.2v5*)
6035     lt_prog_cc_shlib='-belf'
6036     ;;
6037   esac
6038 fi
6039 if test -n "$lt_prog_cc_shlib"; then
6040   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6041 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6042   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6043   else
6044     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6045 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6046     lt_cv_prog_cc_can_build_shared=no
6047   fi
6048 fi
6049
6050
6051 #
6052 # Check to make sure the static flag actually works.
6053 #
6054 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6055 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6056 if test "${lt_prog_compiler_static_works+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   lt_prog_compiler_static_works=no
6060    save_LDFLAGS="$LDFLAGS"
6061    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6062    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6063    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6064      # The compiler can only warn and ignore the option if not recognized
6065      # So say no if there are warnings
6066      if test -s conftest.err; then
6067        # Append any errors to the config.log.
6068        cat conftest.err 1>&5
6069      else
6070        lt_prog_compiler_static_works=yes
6071      fi
6072    fi
6073    $rm conftest*
6074    LDFLAGS="$save_LDFLAGS"
6075
6076 fi
6077 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6078 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6079
6080 if test x"$lt_prog_compiler_static_works" = xyes; then
6081     :
6082 else
6083     lt_prog_compiler_static=
6084 fi
6085
6086
6087
6088
6089 lt_prog_compiler_no_builtin_flag=
6090
6091 if test "$GCC" = yes; then
6092   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6093
6094
6095 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6096 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6097 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100   lt_cv_prog_compiler_rtti_exceptions=no
6101   ac_outfile=conftest.$ac_objext
6102    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6103    lt_compiler_flag="-fno-rtti -fno-exceptions"
6104    # Insert the option either (1) after the last *FLAGS variable, or
6105    # (2) before a word containing "conftest.", or (3) at the end.
6106    # Note that $ac_compile itself does not contain backslashes and begins
6107    # with a dollar sign (not a hyphen), so the echo should work correctly.
6108    # The option is referenced via a variable to avoid confusing sed.
6109    lt_compile=`echo "$ac_compile" | $SED \
6110    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6111    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6112    -e 's:$: $lt_compiler_flag:'`
6113    (eval echo "\"\$as_me:6113: $lt_compile\"" >&5)
6114    (eval "$lt_compile" 2>conftest.err)
6115    ac_status=$?
6116    cat conftest.err >&5
6117    echo "$as_me:6117: \$? = $ac_status" >&5
6118    if (exit $ac_status) && test -s "$ac_outfile"; then
6119      # The compiler can only warn and ignore the option if not recognized
6120      # So say no if there are warnings
6121      if test ! -s conftest.err; then
6122        lt_cv_prog_compiler_rtti_exceptions=yes
6123      fi
6124    fi
6125    $rm conftest*
6126
6127 fi
6128 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6129 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6130
6131 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6132     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6133 else
6134     :
6135 fi
6136
6137 fi
6138
6139 lt_prog_compiler_wl=
6140 lt_prog_compiler_pic=
6141 lt_prog_compiler_static=
6142
6143 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6144 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6145
6146   if test "$GCC" = yes; then
6147     lt_prog_compiler_wl='-Wl,'
6148     lt_prog_compiler_static='-static'
6149
6150     case $host_os in
6151       aix*)
6152       # All AIX code is PIC.
6153       if test "$host_cpu" = ia64; then
6154         # AIX 5 now supports IA64 processor
6155         lt_prog_compiler_static='-Bstatic'
6156       fi
6157       ;;
6158
6159     amigaos*)
6160       # FIXME: we need at least 68020 code to build shared libraries, but
6161       # adding the `-m68020' flag to GCC prevents building anything better,
6162       # like `-m68040'.
6163       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6164       ;;
6165
6166     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6167       # PIC is the default for these OSes.
6168       ;;
6169
6170     mingw* | pw32* | os2*)
6171       # This hack is so that the source file can tell whether it is being
6172       # built for inclusion in a dll (and should export symbols for example).
6173       lt_prog_compiler_pic='-DDLL_EXPORT'
6174       ;;
6175
6176     darwin* | rhapsody*)
6177       # PIC is the default on this platform
6178       # Common symbols not allowed in MH_DYLIB files
6179       lt_prog_compiler_pic='-fno-common'
6180       ;;
6181
6182     msdosdjgpp*)
6183       # Just because we use GCC doesn't mean we suddenly get shared libraries
6184       # on systems that don't support them.
6185       lt_prog_compiler_can_build_shared=no
6186       enable_shared=no
6187       ;;
6188
6189     sysv4*MP*)
6190       if test -d /usr/nec; then
6191         lt_prog_compiler_pic=-Kconform_pic
6192       fi
6193       ;;
6194
6195     hpux*)
6196       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6197       # not for PA HP-UX.
6198       case "$host_cpu" in
6199       hppa*64*|ia64*)
6200         # +Z the default
6201         ;;
6202       *)
6203         lt_prog_compiler_pic='-fPIC'
6204         ;;
6205       esac
6206       ;;
6207
6208     *)
6209       lt_prog_compiler_pic='-fPIC'
6210       ;;
6211     esac
6212   else
6213     # PORTME Check for flag to pass linker flags through the system compiler.
6214     case $host_os in
6215     aix*)
6216       lt_prog_compiler_wl='-Wl,'
6217       if test "$host_cpu" = ia64; then
6218         # AIX 5 now supports IA64 processor
6219         lt_prog_compiler_static='-Bstatic'
6220       else
6221         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6222       fi
6223       ;;
6224       darwin*)
6225         # PIC is the default on this platform
6226         # Common symbols not allowed in MH_DYLIB files
6227        case "$cc_basename" in
6228          xlc*)
6229          lt_prog_compiler_pic='-qnocommon'
6230          lt_prog_compiler_wl='-Wl,'
6231          ;;
6232        esac
6233        ;;
6234
6235     mingw* | pw32* | os2*)
6236       # This hack is so that the source file can tell whether it is being
6237       # built for inclusion in a dll (and should export symbols for example).
6238       lt_prog_compiler_pic='-DDLL_EXPORT'
6239       ;;
6240
6241     hpux9* | hpux10* | hpux11*)
6242       lt_prog_compiler_wl='-Wl,'
6243       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6244       # not for PA HP-UX.
6245       case "$host_cpu" in
6246       hppa*64*|ia64*)
6247         # +Z the default
6248         ;;
6249       *)
6250         lt_prog_compiler_pic='+Z'
6251         ;;
6252       esac
6253       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6254       lt_prog_compiler_static='${wl}-a ${wl}archive'
6255       ;;
6256
6257     irix5* | irix6* | nonstopux*)
6258       lt_prog_compiler_wl='-Wl,'
6259       # PIC (with -KPIC) is the default.
6260       lt_prog_compiler_static='-non_shared'
6261       ;;
6262
6263     newsos6)
6264       lt_prog_compiler_pic='-KPIC'
6265       lt_prog_compiler_static='-Bstatic'
6266       ;;
6267
6268     linux*)
6269       case $CC in
6270       icc* | ecc*)
6271         lt_prog_compiler_wl='-Wl,'
6272         lt_prog_compiler_pic='-KPIC'
6273         lt_prog_compiler_static='-static'
6274         ;;
6275       ccc*)
6276         lt_prog_compiler_wl='-Wl,'
6277         # All Alpha code is PIC.
6278         lt_prog_compiler_static='-non_shared'
6279         ;;
6280       esac
6281       ;;
6282
6283     osf3* | osf4* | osf5*)
6284       lt_prog_compiler_wl='-Wl,'
6285       # All OSF/1 code is PIC.
6286       lt_prog_compiler_static='-non_shared'
6287       ;;
6288
6289     sco3.2v5*)
6290       lt_prog_compiler_pic='-Kpic'
6291       lt_prog_compiler_static='-dn'
6292       ;;
6293
6294     solaris*)
6295       lt_prog_compiler_wl='-Wl,'
6296       lt_prog_compiler_pic='-KPIC'
6297       lt_prog_compiler_static='-Bstatic'
6298       ;;
6299
6300     sunos4*)
6301       lt_prog_compiler_wl='-Qoption ld '
6302       lt_prog_compiler_pic='-PIC'
6303       lt_prog_compiler_static='-Bstatic'
6304       ;;
6305
6306     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6307       lt_prog_compiler_wl='-Wl,'
6308       lt_prog_compiler_pic='-KPIC'
6309       lt_prog_compiler_static='-Bstatic'
6310       ;;
6311
6312     sysv4*MP*)
6313       if test -d /usr/nec ;then
6314         lt_prog_compiler_pic='-Kconform_pic'
6315         lt_prog_compiler_static='-Bstatic'
6316       fi
6317       ;;
6318
6319     uts4*)
6320       lt_prog_compiler_pic='-pic'
6321       lt_prog_compiler_static='-Bstatic'
6322       ;;
6323
6324     *)
6325       lt_prog_compiler_can_build_shared=no
6326       ;;
6327     esac
6328   fi
6329
6330 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6331 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6332
6333 #
6334 # Check to make sure the PIC flag actually works.
6335 #
6336 if test -n "$lt_prog_compiler_pic"; then
6337
6338 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6339 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6340 if test "${lt_prog_compiler_pic_works+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   lt_prog_compiler_pic_works=no
6344   ac_outfile=conftest.$ac_objext
6345    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6346    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6347    # Insert the option either (1) after the last *FLAGS variable, or
6348    # (2) before a word containing "conftest.", or (3) at the end.
6349    # Note that $ac_compile itself does not contain backslashes and begins
6350    # with a dollar sign (not a hyphen), so the echo should work correctly.
6351    # The option is referenced via a variable to avoid confusing sed.
6352    lt_compile=`echo "$ac_compile" | $SED \
6353    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6355    -e 's:$: $lt_compiler_flag:'`
6356    (eval echo "\"\$as_me:6356: $lt_compile\"" >&5)
6357    (eval "$lt_compile" 2>conftest.err)
6358    ac_status=$?
6359    cat conftest.err >&5
6360    echo "$as_me:6360: \$? = $ac_status" >&5
6361    if (exit $ac_status) && test -s "$ac_outfile"; then
6362      # The compiler can only warn and ignore the option if not recognized
6363      # So say no if there are warnings
6364      if test ! -s conftest.err; then
6365        lt_prog_compiler_pic_works=yes
6366      fi
6367    fi
6368    $rm conftest*
6369
6370 fi
6371 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6372 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6373
6374 if test x"$lt_prog_compiler_pic_works" = xyes; then
6375     case $lt_prog_compiler_pic in
6376      "" | " "*) ;;
6377      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6378      esac
6379 else
6380     lt_prog_compiler_pic=
6381      lt_prog_compiler_can_build_shared=no
6382 fi
6383
6384 fi
6385 case "$host_os" in
6386   # For platforms which do not support PIC, -DPIC is meaningless:
6387   *djgpp*)
6388     lt_prog_compiler_pic=
6389     ;;
6390   *)
6391     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6392     ;;
6393 esac
6394
6395 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6396 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6397 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400   lt_cv_prog_compiler_c_o=no
6401    $rm -r conftest 2>/dev/null
6402    mkdir conftest
6403    cd conftest
6404    mkdir out
6405    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6406
6407    lt_compiler_flag="-o out/conftest2.$ac_objext"
6408    # Insert the option either (1) after the last *FLAGS variable, or
6409    # (2) before a word containing "conftest.", or (3) at the end.
6410    # Note that $ac_compile itself does not contain backslashes and begins
6411    # with a dollar sign (not a hyphen), so the echo should work correctly.
6412    lt_compile=`echo "$ac_compile" | $SED \
6413    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6414    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6415    -e 's:$: $lt_compiler_flag:'`
6416    (eval echo "\"\$as_me:6416: $lt_compile\"" >&5)
6417    (eval "$lt_compile" 2>out/conftest.err)
6418    ac_status=$?
6419    cat out/conftest.err >&5
6420    echo "$as_me:6420: \$? = $ac_status" >&5
6421    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6422    then
6423      # The compiler can only warn and ignore the option if not recognized
6424      # So say no if there are warnings
6425      if test ! -s out/conftest.err; then
6426        lt_cv_prog_compiler_c_o=yes
6427      fi
6428    fi
6429    chmod u+w .
6430    $rm conftest*
6431    # SGI C++ compiler will create directory out/ii_files/ for
6432    # template instantiation
6433    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6434    $rm out/* && rmdir out
6435    cd ..
6436    rmdir conftest
6437    $rm conftest*
6438
6439 fi
6440 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6441 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6442
6443
6444 hard_links="nottested"
6445 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6446   # do not overwrite the value of need_locks provided by the user
6447   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6448 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6449   hard_links=yes
6450   $rm conftest*
6451   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6452   touch conftest.a
6453   ln conftest.a conftest.b 2>&5 || hard_links=no
6454   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6455   echo "$as_me:$LINENO: result: $hard_links" >&5
6456 echo "${ECHO_T}$hard_links" >&6
6457   if test "$hard_links" = no; then
6458     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6459 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6460     need_locks=warn
6461   fi
6462 else
6463   need_locks=no
6464 fi
6465
6466 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6467 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6468
6469   runpath_var=
6470   allow_undefined_flag=
6471   enable_shared_with_static_runtimes=no
6472   archive_cmds=
6473   archive_expsym_cmds=
6474   old_archive_From_new_cmds=
6475   old_archive_from_expsyms_cmds=
6476   export_dynamic_flag_spec=
6477   whole_archive_flag_spec=
6478   thread_safe_flag_spec=
6479   hardcode_libdir_flag_spec=
6480   hardcode_libdir_flag_spec_ld=
6481   hardcode_libdir_separator=
6482   hardcode_direct=no
6483   hardcode_minus_L=no
6484   hardcode_shlibpath_var=unsupported
6485   link_all_deplibs=unknown
6486   hardcode_automatic=no
6487   module_cmds=
6488   module_expsym_cmds=
6489   always_export_symbols=no
6490   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6491   # include_expsyms should be a list of space-separated symbols to be *always*
6492   # included in the symbol list
6493   include_expsyms=
6494   # exclude_expsyms can be an extended regexp of symbols to exclude
6495   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6496   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6497   # as well as any symbol that contains `d'.
6498   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6499   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6500   # platforms (ab)use it in PIC code, but their linkers get confused if
6501   # the symbol is explicitly referenced.  Since portable code cannot
6502   # rely on this symbol name, it's probably fine to never include it in
6503   # preloaded symbol tables.
6504   extract_expsyms_cmds=
6505
6506   case $host_os in
6507   cygwin* | mingw* | pw32*)
6508     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6509     # When not using gcc, we currently assume that we are using
6510     # Microsoft Visual C++.
6511     if test "$GCC" != yes; then
6512       with_gnu_ld=no
6513     fi
6514     ;;
6515   openbsd*)
6516     with_gnu_ld=no
6517     ;;
6518   esac
6519
6520   ld_shlibs=yes
6521   if test "$with_gnu_ld" = yes; then
6522     # If archive_cmds runs LD, not CC, wlarc should be empty
6523     wlarc='${wl}'
6524
6525     # See if GNU ld supports shared libraries.
6526     case $host_os in
6527     aix3* | aix4* | aix5*)
6528       # On AIX/PPC, the GNU linker is very broken
6529       if test "$host_cpu" != ia64; then
6530         ld_shlibs=no
6531         cat <<EOF 1>&2
6532
6533 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6534 *** to be unable to reliably create shared libraries on AIX.
6535 *** Therefore, libtool is disabling shared libraries support.  If you
6536 *** really care for shared libraries, you may want to modify your PATH
6537 *** so that a non-GNU linker is found, and then restart.
6538
6539 EOF
6540       fi
6541       ;;
6542
6543     amigaos*)
6544       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)'
6545       hardcode_libdir_flag_spec='-L$libdir'
6546       hardcode_minus_L=yes
6547
6548       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6549       # that the semantics of dynamic libraries on AmigaOS, at least up
6550       # to version 4, is to share data among multiple programs linked
6551       # with the same dynamic library.  Since this doesn't match the
6552       # behavior of shared libraries on other platforms, we can't use
6553       # them.
6554       ld_shlibs=no
6555       ;;
6556
6557     beos*)
6558       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6559         allow_undefined_flag=unsupported
6560         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6561         # support --undefined.  This deserves some investigation.  FIXME
6562         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6563       else
6564         ld_shlibs=no
6565       fi
6566       ;;
6567
6568     cygwin* | mingw* | pw32*)
6569       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6570       # as there is no search path for DLLs.
6571       hardcode_libdir_flag_spec='-L$libdir'
6572       allow_undefined_flag=unsupported
6573       always_export_symbols=no
6574       enable_shared_with_static_runtimes=yes
6575       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6576
6577       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6578         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6579         # If the export-symbols file already is a .def file (1st line
6580         # is EXPORTS), use it as is; otherwise, prepend...
6581         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6582           cp $export_symbols $output_objdir/$soname.def;
6583         else
6584           echo EXPORTS > $output_objdir/$soname.def;
6585           cat $export_symbols >> $output_objdir/$soname.def;
6586         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6587       else
6588         ld_shlibs=no
6589       fi
6590       ;;
6591
6592     netbsd*)
6593       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6594         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6595         wlarc=
6596       else
6597         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6598         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6599       fi
6600       ;;
6601
6602     solaris* | sysv5*)
6603       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6604         ld_shlibs=no
6605         cat <<EOF 1>&2
6606
6607 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6608 *** create shared libraries on Solaris systems.  Therefore, libtool
6609 *** is disabling shared libraries support.  We urge you to upgrade GNU
6610 *** binutils to release 2.9.1 or newer.  Another option is to modify
6611 *** your PATH or compiler configuration so that the native linker is
6612 *** used, and then restart.
6613
6614 EOF
6615       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6616         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6617         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6618       else
6619         ld_shlibs=no
6620       fi
6621       ;;
6622
6623     sunos4*)
6624       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6625       wlarc=
6626       hardcode_direct=yes
6627       hardcode_shlibpath_var=no
6628       ;;
6629
6630   linux*)
6631     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6632         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6633         archive_cmds="$tmp_archive_cmds"
6634       supports_anon_versioning=no
6635       case `$LD -v 2>/dev/null` in
6636         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6637         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6638         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6639         *\ 2.11.*) ;; # other 2.11 versions
6640         *) supports_anon_versioning=yes ;;
6641       esac
6642       if test $supports_anon_versioning = yes; then
6643         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
6644         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6645       else
6646         archive_expsym_cmds="$tmp_archive_cmds"
6647       fi
6648     else
6649       ld_shlibs=no
6650     fi
6651     ;;
6652
6653     *)
6654       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6655         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6656         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6657       else
6658         ld_shlibs=no
6659       fi
6660       ;;
6661     esac
6662
6663     if test "$ld_shlibs" = yes; then
6664       runpath_var=LD_RUN_PATH
6665       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6666       export_dynamic_flag_spec='${wl}--export-dynamic'
6667       # ancient GNU ld didn't support --whole-archive et. al.
6668       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6669         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6670       else
6671         whole_archive_flag_spec=
6672       fi
6673     fi
6674   else
6675     # PORTME fill in a description of your system's linker (not GNU ld)
6676     case $host_os in
6677     aix3*)
6678       allow_undefined_flag=unsupported
6679       always_export_symbols=yes
6680       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'
6681       # Note: this linker hardcodes the directories in LIBPATH if there
6682       # are no directories specified by -L.
6683       hardcode_minus_L=yes
6684       if test "$GCC" = yes && test -z "$link_static_flag"; then
6685         # Neither direct hardcoding nor static linking is supported with a
6686         # broken collect2.
6687         hardcode_direct=unsupported
6688       fi
6689       ;;
6690
6691     aix4* | aix5*)
6692       if test "$host_cpu" = ia64; then
6693         # On IA64, the linker does run time linking by default, so we don't
6694         # have to do anything special.
6695         aix_use_runtimelinking=no
6696         exp_sym_flag='-Bexport'
6697         no_entry_flag=""
6698       else
6699         # If we're using GNU nm, then we don't want the "-C" option.
6700         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6701         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6702           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'
6703         else
6704           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'
6705         fi
6706         aix_use_runtimelinking=no
6707
6708         # Test if we are trying to use run time linking or normal
6709         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6710         # need to do runtime linking.
6711         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6712           for ld_flag in $LDFLAGS; do
6713           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6714             aix_use_runtimelinking=yes
6715             break
6716           fi
6717           done
6718         esac
6719
6720         exp_sym_flag='-bexport'
6721         no_entry_flag='-bnoentry'
6722       fi
6723
6724       # When large executables or shared objects are built, AIX ld can
6725       # have problems creating the table of contents.  If linking a library
6726       # or program results in "error TOC overflow" add -mminimal-toc to
6727       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6728       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6729
6730       archive_cmds=''
6731       hardcode_direct=yes
6732       hardcode_libdir_separator=':'
6733       link_all_deplibs=yes
6734
6735       if test "$GCC" = yes; then
6736         case $host_os in aix4.012|aix4.012.*)
6737         # We only want to do this on AIX 4.2 and lower, the check
6738         # below for broken collect2 doesn't work under 4.3+
6739           collect2name=`${CC} -print-prog-name=collect2`
6740           if test -f "$collect2name" && \
6741            strings "$collect2name" | grep resolve_lib_name >/dev/null
6742           then
6743           # We have reworked collect2
6744           hardcode_direct=yes
6745           else
6746           # We have old collect2
6747           hardcode_direct=unsupported
6748           # It fails to find uninstalled libraries when the uninstalled
6749           # path is not listed in the libpath.  Setting hardcode_minus_L
6750           # to unsupported forces relinking
6751           hardcode_minus_L=yes
6752           hardcode_libdir_flag_spec='-L$libdir'
6753           hardcode_libdir_separator=
6754           fi
6755         esac
6756         shared_flag='-shared'
6757       else
6758         # not using gcc
6759         if test "$host_cpu" = ia64; then
6760         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6761         # chokes on -Wl,-G. The following line is correct:
6762           shared_flag='-G'
6763         else
6764         if test "$aix_use_runtimelinking" = yes; then
6765             shared_flag='${wl}-G'
6766           else
6767             shared_flag='${wl}-bM:SRE'
6768         fi
6769         fi
6770       fi
6771
6772       # It seems that -bexpall does not export symbols beginning with
6773       # underscore (_), so it is better to generate a list of symbols to export.
6774       always_export_symbols=yes
6775       if test "$aix_use_runtimelinking" = yes; then
6776         # Warning - without using the other runtime loading flags (-brtl),
6777         # -berok will link without error, but may produce a broken library.
6778         allow_undefined_flag='-berok'
6779        # Determine the default libpath from the value encoded in an empty executable.
6780        cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h.  */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h.  */
6786
6787 int
6788 main ()
6789 {
6790
6791   ;
6792   return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6797   (eval $ac_link) 2>conftest.er1
6798   ac_status=$?
6799   grep -v '^ *+' conftest.er1 >conftest.err
6800   rm -f conftest.er1
6801   cat conftest.err >&5
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); } &&
6804          { ac_try='test -z "$ac_c_werror_flag"
6805                          || test ! -s conftest.err'
6806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807   (eval $ac_try) 2>&5
6808   ac_status=$?
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); }; } &&
6811          { ac_try='test -s conftest$ac_exeext'
6812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813   (eval $ac_try) 2>&5
6814   ac_status=$?
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); }; }; then
6817
6818 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6819 }'`
6820 # Check for a 64-bit object if we didn't find anything.
6821 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; }
6822 }'`; fi
6823 else
6824   echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 fi
6828 rm -f conftest.err conftest.$ac_objext \
6829       conftest$ac_exeext conftest.$ac_ext
6830 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6831
6832        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6833         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"
6834        else
6835         if test "$host_cpu" = ia64; then
6836           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6837           allow_undefined_flag="-z nodefs"
6838           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"
6839         else
6840          # Determine the default libpath from the value encoded in an empty executable.
6841          cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h.  */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h.  */
6847
6848 int
6849 main ()
6850 {
6851
6852   ;
6853   return 0;
6854 }
6855 _ACEOF
6856 rm -f conftest.$ac_objext conftest$ac_exeext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6858   (eval $ac_link) 2>conftest.er1
6859   ac_status=$?
6860   grep -v '^ *+' conftest.er1 >conftest.err
6861   rm -f conftest.er1
6862   cat conftest.err >&5
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); } &&
6865          { ac_try='test -z "$ac_c_werror_flag"
6866                          || test ! -s conftest.err'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; } &&
6872          { ac_try='test -s conftest$ac_exeext'
6873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874   (eval $ac_try) 2>&5
6875   ac_status=$?
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); }; }; then
6878
6879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6880 }'`
6881 # Check for a 64-bit object if we didn't find anything.
6882 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; }
6883 }'`; fi
6884 else
6885   echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6887
6888 fi
6889 rm -f conftest.err conftest.$ac_objext \
6890       conftest$ac_exeext conftest.$ac_ext
6891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6892
6893          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6894           # Warning - without using the other run time loading flags,
6895           # -berok will link without error, but may produce a broken library.
6896           no_undefined_flag=' ${wl}-bernotok'
6897           allow_undefined_flag=' ${wl}-berok'
6898           # -bexpall does not export symbols beginning with underscore (_)
6899           always_export_symbols=yes
6900           # Exported symbols can be pulled into shared objects from archives
6901           whole_archive_flag_spec=' '
6902           archive_cmds_need_lc=yes
6903           # This is similar to how AIX traditionally builds it's shared libraries.
6904           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'
6905         fi
6906       fi
6907       ;;
6908
6909     amigaos*)
6910       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)'
6911       hardcode_libdir_flag_spec='-L$libdir'
6912       hardcode_minus_L=yes
6913       # see comment about different semantics on the GNU ld section
6914       ld_shlibs=no
6915       ;;
6916
6917     bsdi[45]*)
6918       export_dynamic_flag_spec=-rdynamic
6919       ;;
6920
6921     cygwin* | mingw* | pw32*)
6922       # When not using gcc, we currently assume that we are using
6923       # Microsoft Visual C++.
6924       # hardcode_libdir_flag_spec is actually meaningless, as there is
6925       # no search path for DLLs.
6926       hardcode_libdir_flag_spec=' '
6927       allow_undefined_flag=unsupported
6928       # Tell ltmain to make .lib files, not .a files.
6929       libext=lib
6930       # Tell ltmain to make .dll files, not .so files.
6931       shrext_cmds=".dll"
6932       # FIXME: Setting linknames here is a bad hack.
6933       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
6934       # The linker will automatically build a .lib file if we build a DLL.
6935       old_archive_From_new_cmds='true'
6936       # FIXME: Should let the user specify the lib program.
6937       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6938       fix_srcfile_path='`cygpath -w "$srcfile"`'
6939       enable_shared_with_static_runtimes=yes
6940       ;;
6941
6942     darwin* | rhapsody*)
6943       case "$host_os" in
6944         rhapsody* | darwin1.[012])
6945          allow_undefined_flag='${wl}-undefined ${wl}suppress'
6946          ;;
6947        *) # Darwin 1.3 on
6948          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6949            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6950          else
6951            case ${MACOSX_DEPLOYMENT_TARGET} in
6952              10.[012])
6953                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6954                ;;
6955              10.*)
6956                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6957                ;;
6958            esac
6959          fi
6960          ;;
6961       esac
6962       archive_cmds_need_lc=no
6963       hardcode_direct=no
6964       hardcode_automatic=yes
6965       hardcode_shlibpath_var=unsupported
6966       whole_archive_flag_spec=''
6967       link_all_deplibs=yes
6968     if test "$GCC" = yes ; then
6969         output_verbose_link_cmd='echo'
6970         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6971       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6972       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6973       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}'
6974       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}'
6975     else
6976       case "$cc_basename" in
6977         xlc*)
6978          output_verbose_link_cmd='echo'
6979          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6980          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6981           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6982          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}'
6983           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}'
6984           ;;
6985        *)
6986          ld_shlibs=no
6987           ;;
6988       esac
6989     fi
6990       ;;
6991
6992     dgux*)
6993       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6994       hardcode_libdir_flag_spec='-L$libdir'
6995       hardcode_shlibpath_var=no
6996       ;;
6997
6998     freebsd1*)
6999       ld_shlibs=no
7000       ;;
7001
7002     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7003     # support.  Future versions do this automatically, but an explicit c++rt0.o
7004     # does not break anything, and helps significantly (at the cost of a little
7005     # extra space).
7006     freebsd2.2*)
7007       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7008       hardcode_libdir_flag_spec='-R$libdir'
7009       hardcode_direct=yes
7010       hardcode_shlibpath_var=no
7011       ;;
7012
7013     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7014     freebsd2*)
7015       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7016       hardcode_direct=yes
7017       hardcode_minus_L=yes
7018       hardcode_shlibpath_var=no
7019       ;;
7020
7021     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7022     freebsd* | kfreebsd*-gnu)
7023       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7024       hardcode_libdir_flag_spec='-R$libdir'
7025       hardcode_direct=yes
7026       hardcode_shlibpath_var=no
7027       ;;
7028
7029     hpux9*)
7030       if test "$GCC" = yes; then
7031         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'
7032       else
7033         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'
7034       fi
7035       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7036       hardcode_libdir_separator=:
7037       hardcode_direct=yes
7038
7039       # hardcode_minus_L: Not really in the search PATH,
7040       # but as the default location of the library.
7041       hardcode_minus_L=yes
7042       export_dynamic_flag_spec='${wl}-E'
7043       ;;
7044
7045     hpux10* | hpux11*)
7046       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7047         case "$host_cpu" in
7048         hppa*64*|ia64*)
7049           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7050           ;;
7051         *)
7052           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7053           ;;
7054         esac
7055       else
7056         case "$host_cpu" in
7057         hppa*64*|ia64*)
7058           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7059           ;;
7060         *)
7061           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7062           ;;
7063         esac
7064       fi
7065       if test "$with_gnu_ld" = no; then
7066         case "$host_cpu" in
7067         hppa*64*)
7068           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7069           hardcode_libdir_flag_spec_ld='+b $libdir'
7070           hardcode_libdir_separator=:
7071           hardcode_direct=no
7072           hardcode_shlibpath_var=no
7073           ;;
7074         ia64*)
7075           hardcode_libdir_flag_spec='-L$libdir'
7076           hardcode_direct=no
7077           hardcode_shlibpath_var=no
7078
7079           # hardcode_minus_L: Not really in the search PATH,
7080           # but as the default location of the library.
7081           hardcode_minus_L=yes
7082           ;;
7083         *)
7084           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7085           hardcode_libdir_separator=:
7086           hardcode_direct=yes
7087           export_dynamic_flag_spec='${wl}-E'
7088
7089           # hardcode_minus_L: Not really in the search PATH,
7090           # but as the default location of the library.
7091           hardcode_minus_L=yes
7092           ;;
7093         esac
7094       fi
7095       ;;
7096
7097     irix5* | irix6* | nonstopux*)
7098       if test "$GCC" = yes; then
7099         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'
7100       else
7101         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'
7102         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7103       fi
7104       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7105       hardcode_libdir_separator=:
7106       link_all_deplibs=yes
7107       ;;
7108
7109     netbsd*)
7110       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7111         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7112       else
7113         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7114       fi
7115       hardcode_libdir_flag_spec='-R$libdir'
7116       hardcode_direct=yes
7117       hardcode_shlibpath_var=no
7118       ;;
7119
7120     newsos6)
7121       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7122       hardcode_direct=yes
7123       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7124       hardcode_libdir_separator=:
7125       hardcode_shlibpath_var=no
7126       ;;
7127
7128     openbsd*)
7129       hardcode_direct=yes
7130       hardcode_shlibpath_var=no
7131       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7132         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7133         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7134         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7135         export_dynamic_flag_spec='${wl}-E'
7136       else
7137        case $host_os in
7138          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7139            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7140            hardcode_libdir_flag_spec='-R$libdir'
7141            ;;
7142          *)
7143            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7144            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7145            ;;
7146        esac
7147       fi
7148       ;;
7149
7150     os2*)
7151       hardcode_libdir_flag_spec='-L$libdir'
7152       hardcode_minus_L=yes
7153       allow_undefined_flag=unsupported
7154       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'
7155       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7156       ;;
7157
7158     osf3*)
7159       if test "$GCC" = yes; then
7160         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7161         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'
7162       else
7163         allow_undefined_flag=' -expect_unresolved \*'
7164         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'
7165       fi
7166       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7167       hardcode_libdir_separator=:
7168       ;;
7169
7170     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7171       if test "$GCC" = yes; then
7172         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7173         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'
7174         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7175       else
7176         allow_undefined_flag=' -expect_unresolved \*'
7177         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'
7178         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $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'
7179         # Both c and cxx compiler support -rpath directly
7180         hardcode_libdir_flag_spec='-rpath $libdir'
7181       fi
7182       hardcode_libdir_separator=:
7183       ;;
7184
7185     sco3.2v5*)
7186       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7187       hardcode_shlibpath_var=no
7188       export_dynamic_flag_spec='${wl}-Bexport'
7189       runpath_var=LD_RUN_PATH
7190       hardcode_runpath_var=yes
7191       ;;
7192
7193     solaris*)
7194       no_undefined_flag=' -z text'
7195       if test "$GCC" = yes; then
7196         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7197         archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
7198       else
7199         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7200         archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
7201       fi
7202       hardcode_libdir_flag_spec='-R$libdir'
7203       hardcode_shlibpath_var=no
7204       case $host_os in
7205       solaris2.[0-5] | solaris2.[0-5].*) ;;
7206       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7207         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7208       esac
7209       link_all_deplibs=yes
7210       ;;
7211
7212     sunos4*)
7213       if test "x$host_vendor" = xsequent; then
7214         # Use $CC to link under sequent, because it throws in some extra .o
7215         # files that make .init and .fini sections work.
7216         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7217       else
7218         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7219       fi
7220       hardcode_libdir_flag_spec='-L$libdir'
7221       hardcode_direct=yes
7222       hardcode_minus_L=yes
7223       hardcode_shlibpath_var=no
7224       ;;
7225
7226     sysv4)
7227       case $host_vendor in
7228         sni)
7229           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7230           hardcode_direct=yes # is this really true???
7231         ;;
7232         siemens)
7233           ## LD is ld it makes a PLAMLIB
7234           ## CC just makes a GrossModule.
7235           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7236           reload_cmds='$CC -r -o $output$reload_objs'
7237           hardcode_direct=no
7238         ;;
7239         motorola)
7240           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7241           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7242         ;;
7243       esac
7244       runpath_var='LD_RUN_PATH'
7245       hardcode_shlibpath_var=no
7246       ;;
7247
7248     sysv4.3*)
7249       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7250       hardcode_shlibpath_var=no
7251       export_dynamic_flag_spec='-Bexport'
7252       ;;
7253
7254     sysv4*MP*)
7255       if test -d /usr/nec; then
7256         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7257         hardcode_shlibpath_var=no
7258         runpath_var=LD_RUN_PATH
7259         hardcode_runpath_var=yes
7260         ld_shlibs=yes
7261       fi
7262       ;;
7263
7264     sysv4.2uw2*)
7265       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7266       hardcode_direct=yes
7267       hardcode_minus_L=no
7268       hardcode_shlibpath_var=no
7269       hardcode_runpath_var=yes
7270       runpath_var=LD_RUN_PATH
7271       ;;
7272
7273    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7274       no_undefined_flag='${wl}-z ${wl}text'
7275       if test "$GCC" = yes; then
7276         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7277       else
7278         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7279       fi
7280       runpath_var='LD_RUN_PATH'
7281       hardcode_shlibpath_var=no
7282       ;;
7283
7284     sysv5*)
7285       no_undefined_flag=' -z text'
7286       # $CC -shared without GNU ld will not create a library from C++
7287       # object files and a static libstdc++, better avoid it by now
7288       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7289       archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
7290       hardcode_libdir_flag_spec=
7291       hardcode_shlibpath_var=no
7292       runpath_var='LD_RUN_PATH'
7293       ;;
7294
7295     uts4*)
7296       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7297       hardcode_libdir_flag_spec='-L$libdir'
7298       hardcode_shlibpath_var=no
7299       ;;
7300
7301     *)
7302       ld_shlibs=no
7303       ;;
7304     esac
7305   fi
7306
7307 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7308 echo "${ECHO_T}$ld_shlibs" >&6
7309 test "$ld_shlibs" = no && can_build_shared=no
7310
7311 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7312 if test "$GCC" = yes; then
7313   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7314 fi
7315
7316 #
7317 # Do we need to explicitly link libc?
7318 #
7319 case "x$archive_cmds_need_lc" in
7320 x|xyes)
7321   # Assume -lc should be added
7322   archive_cmds_need_lc=yes
7323
7324   if test "$enable_shared" = yes && test "$GCC" = yes; then
7325     case $archive_cmds in
7326     *'~'*)
7327       # FIXME: we may have to deal with multi-command sequences.
7328       ;;
7329     '$CC '*)
7330       # Test whether the compiler implicitly links with -lc since on some
7331       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7332       # to ld, don't add -lc before -lgcc.
7333       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7334 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7335       $rm conftest*
7336       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7337
7338       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7339   (eval $ac_compile) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); } 2>conftest.err; then
7343         soname=conftest
7344         lib=conftest
7345         libobjs=conftest.$ac_objext
7346         deplibs=
7347         wl=$lt_prog_compiler_wl
7348         compiler_flags=-v
7349         linker_flags=-v
7350         verstring=
7351         output_objdir=.
7352         libname=conftest
7353         lt_save_allow_undefined_flag=$allow_undefined_flag
7354         allow_undefined_flag=
7355         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7356   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7357   ac_status=$?
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); }
7360         then
7361           archive_cmds_need_lc=no
7362         else
7363           archive_cmds_need_lc=yes
7364         fi
7365         allow_undefined_flag=$lt_save_allow_undefined_flag
7366       else
7367         cat conftest.err 1>&5
7368       fi
7369       $rm conftest*
7370       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7371 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7372       ;;
7373     esac
7374   fi
7375   ;;
7376 esac
7377
7378 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7379 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7380 library_names_spec=
7381 libname_spec='lib$name'
7382 soname_spec=
7383 shrext_cmds=".so"
7384 postinstall_cmds=
7385 postuninstall_cmds=
7386 finish_cmds=
7387 finish_eval=
7388 shlibpath_var=
7389 shlibpath_overrides_runpath=unknown
7390 version_type=none
7391 dynamic_linker="$host_os ld.so"
7392 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7393 if test "$GCC" = yes; then
7394   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7395   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7396     # if the path contains ";" then we assume it to be the separator
7397     # otherwise default to the standard path separator (i.e. ":") - it is
7398     # assumed that no part of a normal pathname contains ";" but that should
7399     # okay in the real world where ";" in dirpaths is itself problematic.
7400     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7401   else
7402     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7403   fi
7404 else
7405   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7406 fi
7407 need_lib_prefix=unknown
7408 hardcode_into_libs=no
7409
7410 # when you set need_version to no, make sure it does not cause -set_version
7411 # flags to be left without arguments
7412 need_version=unknown
7413
7414 case $host_os in
7415 aix3*)
7416   version_type=linux
7417   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7418   shlibpath_var=LIBPATH
7419
7420   # AIX 3 has no versioning support, so we append a major version to the name.
7421   soname_spec='${libname}${release}${shared_ext}$major'
7422   ;;
7423
7424 aix4* | aix5*)
7425   version_type=linux
7426   need_lib_prefix=no
7427   need_version=no
7428   hardcode_into_libs=yes
7429   if test "$host_cpu" = ia64; then
7430     # AIX 5 supports IA64
7431     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7432     shlibpath_var=LD_LIBRARY_PATH
7433   else
7434     # With GCC up to 2.95.x, collect2 would create an import file
7435     # for dependence libraries.  The import file would start with
7436     # the line `#! .'.  This would cause the generated library to
7437     # depend on `.', always an invalid library.  This was fixed in
7438     # development snapshots of GCC prior to 3.0.
7439     case $host_os in
7440       aix4 | aix4.[01] | aix4.[01].*)
7441       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7442            echo ' yes '
7443            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7444         :
7445       else
7446         can_build_shared=no
7447       fi
7448       ;;
7449     esac
7450     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7451     # soname into executable. Probably we can add versioning support to
7452     # collect2, so additional links can be useful in future.
7453     if test "$aix_use_runtimelinking" = yes; then
7454       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7455       # instead of lib<name>.a to let people know that these are not
7456       # typical AIX shared libraries.
7457       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7458     else
7459       # We preserve .a as extension for shared libraries through AIX4.2
7460       # and later when we are not doing run time linking.
7461       library_names_spec='${libname}${release}.a $libname.a'
7462       soname_spec='${libname}${release}${shared_ext}$major'
7463     fi
7464     shlibpath_var=LIBPATH
7465   fi
7466   ;;
7467
7468 amigaos*)
7469   library_names_spec='$libname.ixlibrary $libname.a'
7470   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7471   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'
7472   ;;
7473
7474 beos*)
7475   library_names_spec='${libname}${shared_ext}'
7476   dynamic_linker="$host_os ld.so"
7477   shlibpath_var=LIBRARY_PATH
7478   ;;
7479
7480 bsdi[45]*)
7481   version_type=linux
7482   need_version=no
7483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7484   soname_spec='${libname}${release}${shared_ext}$major'
7485   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7486   shlibpath_var=LD_LIBRARY_PATH
7487   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7488   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7489   # the default ld.so.conf also contains /usr/contrib/lib and
7490   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7491   # libtool to hard-code these into programs
7492   ;;
7493
7494 cygwin* | mingw* | pw32*)
7495   version_type=windows
7496   shrext_cmds=".dll"
7497   need_version=no
7498   need_lib_prefix=no
7499
7500   case $GCC,$host_os in
7501   yes,cygwin* | yes,mingw* | yes,pw32*)
7502     library_names_spec='$libname.dll.a'
7503     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7504     postinstall_cmds='base_file=`basename \${file}`;
7505       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
7506       dldir=$destdir/`dirname \$dlpath`;
7507       test -d \$dldir || mkdir -p \$dldir;
7508       $install_prog $dir/$dlname \$dldir/$dlname'
7509     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
7510       dlpath=$dir/\$dldll;
7511        $rm \$dlpath'
7512     shlibpath_overrides_runpath=yes
7513
7514     case $host_os in
7515     cygwin*)
7516       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7517       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7518       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7519       ;;
7520     mingw*)
7521       # MinGW DLLs use traditional 'lib' prefix
7522       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7523       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7524       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7525         # It is most probably a Windows format PATH printed by
7526         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7527         # path with ; separators, and with drive letters. We can handle the
7528         # drive letters (cygwin fileutils understands them), so leave them,
7529         # especially as we might pass files found there to a mingw objdump,
7530         # which wouldn't understand a cygwinified path. Ahh.
7531         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7532       else
7533         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7534       fi
7535       ;;
7536     pw32*)
7537       # pw32 DLLs use 'pw' prefix rather than 'lib'
7538       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7539       ;;
7540     esac
7541     ;;
7542
7543   *)
7544     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7545     ;;
7546   esac
7547   dynamic_linker='Win32 ld.exe'
7548   # FIXME: first we should search . and the directory the executable is in
7549   shlibpath_var=PATH
7550   ;;
7551
7552 darwin* | rhapsody*)
7553   dynamic_linker="$host_os dyld"
7554   version_type=darwin
7555   need_lib_prefix=no
7556   need_version=no
7557   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7558   soname_spec='${libname}${release}${major}$shared_ext'
7559   shlibpath_overrides_runpath=yes
7560   shlibpath_var=DYLD_LIBRARY_PATH
7561   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7562   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7563   if test "$GCC" = yes; then
7564     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"`
7565   else
7566     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7567   fi
7568   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7569   ;;
7570
7571 dgux*)
7572   version_type=linux
7573   need_lib_prefix=no
7574   need_version=no
7575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7576   soname_spec='${libname}${release}${shared_ext}$major'
7577   shlibpath_var=LD_LIBRARY_PATH
7578   ;;
7579
7580 freebsd1*)
7581   dynamic_linker=no
7582   ;;
7583
7584 kfreebsd*-gnu)
7585   version_type=linux
7586   need_lib_prefix=no
7587   need_version=no
7588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7589   soname_spec='${libname}${release}${shared_ext}$major'
7590   shlibpath_var=LD_LIBRARY_PATH
7591   shlibpath_overrides_runpath=no
7592   hardcode_into_libs=yes
7593   dynamic_linker='GNU ld.so'
7594   ;;
7595
7596 freebsd*)
7597   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7598   version_type=freebsd-$objformat
7599   case $version_type in
7600     freebsd-elf*)
7601       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7602       need_version=no
7603       need_lib_prefix=no
7604       ;;
7605     freebsd-*)
7606       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7607       need_version=yes
7608       ;;
7609   esac
7610   shlibpath_var=LD_LIBRARY_PATH
7611   case $host_os in
7612   freebsd2*)
7613     shlibpath_overrides_runpath=yes
7614     ;;
7615   freebsd3.01* | freebsdelf3.01*)
7616     shlibpath_overrides_runpath=yes
7617     hardcode_into_libs=yes
7618     ;;
7619   *) # from 3.2 on
7620     shlibpath_overrides_runpath=no
7621     hardcode_into_libs=yes
7622     ;;
7623   esac
7624   ;;
7625
7626 gnu*)
7627   version_type=linux
7628   need_lib_prefix=no
7629   need_version=no
7630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7631   soname_spec='${libname}${release}${shared_ext}$major'
7632   shlibpath_var=LD_LIBRARY_PATH
7633   hardcode_into_libs=yes
7634   ;;
7635
7636 hpux9* | hpux10* | hpux11*)
7637   # Give a soname corresponding to the major version so that dld.sl refuses to
7638   # link against other versions.
7639   version_type=sunos
7640   need_lib_prefix=no
7641   need_version=no
7642   case "$host_cpu" in
7643   ia64*)
7644     shrext_cmds='.so'
7645     hardcode_into_libs=yes
7646     dynamic_linker="$host_os dld.so"
7647     shlibpath_var=LD_LIBRARY_PATH
7648     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7649     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7650     soname_spec='${libname}${release}${shared_ext}$major'
7651     if test "X$HPUX_IA64_MODE" = X32; then
7652       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7653     else
7654       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7655     fi
7656     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7657     ;;
7658    hppa*64*)
7659      shrext_cmds='.sl'
7660      hardcode_into_libs=yes
7661      dynamic_linker="$host_os dld.sl"
7662      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7663      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7664      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7665      soname_spec='${libname}${release}${shared_ext}$major'
7666      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7667      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7668      ;;
7669    *)
7670     shrext_cmds='.sl'
7671     dynamic_linker="$host_os dld.sl"
7672     shlibpath_var=SHLIB_PATH
7673     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7675     soname_spec='${libname}${release}${shared_ext}$major'
7676     ;;
7677   esac
7678   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7679   postinstall_cmds='chmod 555 $lib'
7680   ;;
7681
7682 irix5* | irix6* | nonstopux*)
7683   case $host_os in
7684     nonstopux*) version_type=nonstopux ;;
7685     *)
7686         if test "$lt_cv_prog_gnu_ld" = yes; then
7687                 version_type=linux
7688         else
7689                 version_type=irix
7690         fi ;;
7691   esac
7692   need_lib_prefix=no
7693   need_version=no
7694   soname_spec='${libname}${release}${shared_ext}$major'
7695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7696   case $host_os in
7697   irix5* | nonstopux*)
7698     libsuff= shlibsuff=
7699     ;;
7700   *)
7701     case $LD in # libtool.m4 will add one of these switches to LD
7702     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7703       libsuff= shlibsuff= libmagic=32-bit;;
7704     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7705       libsuff=32 shlibsuff=N32 libmagic=N32;;
7706     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7707       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7708     *) libsuff= shlibsuff= libmagic=never-match;;
7709     esac
7710     ;;
7711   esac
7712   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7713   shlibpath_overrides_runpath=no
7714   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7715   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7716   hardcode_into_libs=yes
7717   ;;
7718
7719 # No shared lib support for Linux oldld, aout, or coff.
7720 linux*oldld* | linux*aout* | linux*coff*)
7721   dynamic_linker=no
7722   ;;
7723
7724 # This must be Linux ELF.
7725 linux*)
7726   version_type=linux
7727   need_lib_prefix=no
7728   need_version=no
7729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7730   soname_spec='${libname}${release}${shared_ext}$major'
7731   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7732   shlibpath_var=LD_LIBRARY_PATH
7733   shlibpath_overrides_runpath=no
7734   # This implies no fast_install, which is unacceptable.
7735   # Some rework will be needed to allow for fast_install
7736   # before this can be enabled.
7737   hardcode_into_libs=yes
7738
7739   # Append ld.so.conf contents to the search path
7740   if test -f /etc/ld.so.conf; then
7741     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7742     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7743   fi
7744
7745   # We used to test for /lib/ld.so.1 and disable shared libraries on
7746   # powerpc, because MkLinux only supported shared libraries with the
7747   # GNU dynamic linker.  Since this was broken with cross compilers,
7748   # most powerpc-linux boxes support dynamic linking these days and
7749   # people can always --disable-shared, the test was removed, and we
7750   # assume the GNU/Linux dynamic linker is in use.
7751   dynamic_linker='GNU/Linux ld.so'
7752   ;;
7753
7754 knetbsd*-gnu)
7755   version_type=linux
7756   need_lib_prefix=no
7757   need_version=no
7758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7759   soname_spec='${libname}${release}${shared_ext}$major'
7760   shlibpath_var=LD_LIBRARY_PATH
7761   shlibpath_overrides_runpath=no
7762   hardcode_into_libs=yes
7763   dynamic_linker='GNU ld.so'
7764   ;;
7765
7766 netbsd*)
7767   version_type=sunos
7768   need_lib_prefix=no
7769   need_version=no
7770   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7771     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7772     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7773     dynamic_linker='NetBSD (a.out) ld.so'
7774   else
7775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7776     soname_spec='${libname}${release}${shared_ext}$major'
7777     dynamic_linker='NetBSD ld.elf_so'
7778   fi
7779   shlibpath_var=LD_LIBRARY_PATH
7780   shlibpath_overrides_runpath=yes
7781   hardcode_into_libs=yes
7782   ;;
7783
7784 newsos6)
7785   version_type=linux
7786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7787   shlibpath_var=LD_LIBRARY_PATH
7788   shlibpath_overrides_runpath=yes
7789   ;;
7790
7791 nto-qnx*)
7792   version_type=linux
7793   need_lib_prefix=no
7794   need_version=no
7795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7796   soname_spec='${libname}${release}${shared_ext}$major'
7797   shlibpath_var=LD_LIBRARY_PATH
7798   shlibpath_overrides_runpath=yes
7799   ;;
7800
7801 openbsd*)
7802   version_type=sunos
7803   need_lib_prefix=no
7804   need_version=no
7805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7806   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7807   shlibpath_var=LD_LIBRARY_PATH
7808   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7809     case $host_os in
7810       openbsd2.[89] | openbsd2.[89].*)
7811         shlibpath_overrides_runpath=no
7812         ;;
7813       *)
7814         shlibpath_overrides_runpath=yes
7815         ;;
7816       esac
7817   else
7818     shlibpath_overrides_runpath=yes
7819   fi
7820   ;;
7821
7822 os2*)
7823   libname_spec='$name'
7824   shrext_cmds=".dll"
7825   need_lib_prefix=no
7826   library_names_spec='$libname${shared_ext} $libname.a'
7827   dynamic_linker='OS/2 ld.exe'
7828   shlibpath_var=LIBPATH
7829   ;;
7830
7831 osf3* | osf4* | osf5*)
7832   version_type=osf
7833   need_lib_prefix=no
7834   need_version=no
7835   soname_spec='${libname}${release}${shared_ext}$major'
7836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7837   shlibpath_var=LD_LIBRARY_PATH
7838   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7839   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7840   ;;
7841
7842 sco3.2v5*)
7843   version_type=osf
7844   soname_spec='${libname}${release}${shared_ext}$major'
7845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7846   shlibpath_var=LD_LIBRARY_PATH
7847   ;;
7848
7849 solaris*)
7850   version_type=linux
7851   need_lib_prefix=no
7852   need_version=no
7853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854   soname_spec='${libname}${release}${shared_ext}$major'
7855   shlibpath_var=LD_LIBRARY_PATH
7856   shlibpath_overrides_runpath=yes
7857   hardcode_into_libs=yes
7858   # ldd complains unless libraries are executable
7859   postinstall_cmds='chmod +x $lib'
7860   ;;
7861
7862 sunos4*)
7863   version_type=sunos
7864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7865   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7866   shlibpath_var=LD_LIBRARY_PATH
7867   shlibpath_overrides_runpath=yes
7868   if test "$with_gnu_ld" = yes; then
7869     need_lib_prefix=no
7870   fi
7871   need_version=yes
7872   ;;
7873
7874 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7875   version_type=linux
7876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7877   soname_spec='${libname}${release}${shared_ext}$major'
7878   shlibpath_var=LD_LIBRARY_PATH
7879   case $host_vendor in
7880     sni)
7881       shlibpath_overrides_runpath=no
7882       need_lib_prefix=no
7883       export_dynamic_flag_spec='${wl}-Blargedynsym'
7884       runpath_var=LD_RUN_PATH
7885       ;;
7886     siemens)
7887       need_lib_prefix=no
7888       ;;
7889     motorola)
7890       need_lib_prefix=no
7891       need_version=no
7892       shlibpath_overrides_runpath=no
7893       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7894       ;;
7895   esac
7896   ;;
7897
7898 sysv4*MP*)
7899   if test -d /usr/nec ;then
7900     version_type=linux
7901     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7902     soname_spec='$libname${shared_ext}.$major'
7903     shlibpath_var=LD_LIBRARY_PATH
7904   fi
7905   ;;
7906
7907 uts4*)
7908   version_type=linux
7909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7910   soname_spec='${libname}${release}${shared_ext}$major'
7911   shlibpath_var=LD_LIBRARY_PATH
7912   ;;
7913
7914 *)
7915   dynamic_linker=no
7916   ;;
7917 esac
7918 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7919 echo "${ECHO_T}$dynamic_linker" >&6
7920 test "$dynamic_linker" = no && can_build_shared=no
7921
7922 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7923 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7924 hardcode_action=
7925 if test -n "$hardcode_libdir_flag_spec" || \
7926    test -n "$runpath_var" || \
7927    test "X$hardcode_automatic" = "Xyes" ; then
7928
7929   # We can hardcode non-existant directories.
7930   if test "$hardcode_direct" != no &&
7931      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7932      # have to relink, otherwise we might link with an installed library
7933      # when we should be linking with a yet-to-be-installed one
7934      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7935      test "$hardcode_minus_L" != no; then
7936     # Linking always hardcodes the temporary library directory.
7937     hardcode_action=relink
7938   else
7939     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7940     hardcode_action=immediate
7941   fi
7942 else
7943   # We cannot hardcode anything, or else we can only hardcode existing
7944   # directories.
7945   hardcode_action=unsupported
7946 fi
7947 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7948 echo "${ECHO_T}$hardcode_action" >&6
7949
7950 if test "$hardcode_action" = relink; then
7951   # Fast installation is not supported
7952   enable_fast_install=no
7953 elif test "$shlibpath_overrides_runpath" = yes ||
7954      test "$enable_shared" = no; then
7955   # Fast installation is not necessary
7956   enable_fast_install=needless
7957 fi
7958
7959 striplib=
7960 old_striplib=
7961 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7962 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7963 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7964   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7965   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7966   echo "$as_me:$LINENO: result: yes" >&5
7967 echo "${ECHO_T}yes" >&6
7968 else
7969 # FIXME - insert some real tests, host_os isn't really good enough
7970   case $host_os in
7971    darwin*)
7972        if test -n "$STRIP" ; then
7973          striplib="$STRIP -x"
7974          echo "$as_me:$LINENO: result: yes" >&5
7975 echo "${ECHO_T}yes" >&6
7976        else
7977   echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6
7979 fi
7980        ;;
7981    *)
7982   echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6
7984     ;;
7985   esac
7986 fi
7987
7988 if test "x$enable_dlopen" != xyes; then
7989   enable_dlopen=unknown
7990   enable_dlopen_self=unknown
7991   enable_dlopen_self_static=unknown
7992 else
7993   lt_cv_dlopen=no
7994   lt_cv_dlopen_libs=
7995
7996   case $host_os in
7997   beos*)
7998     lt_cv_dlopen="load_add_on"
7999     lt_cv_dlopen_libs=
8000     lt_cv_dlopen_self=yes
8001     ;;
8002
8003   mingw* | pw32*)
8004     lt_cv_dlopen="LoadLibrary"
8005     lt_cv_dlopen_libs=
8006    ;;
8007
8008   cygwin*)
8009     lt_cv_dlopen="dlopen"
8010     lt_cv_dlopen_libs=
8011    ;;
8012
8013   darwin*)
8014   # if libdl is installed we need to link against it
8015     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8016 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8017 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020   ac_check_lib_save_LIBS=$LIBS
8021 LIBS="-ldl  $LIBS"
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h.  */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h.  */
8028
8029 /* Override any gcc2 internal prototype to avoid an error.  */
8030 #ifdef __cplusplus
8031 extern "C"
8032 #endif
8033 /* We use char because int might match the return type of a gcc2
8034    builtin and then its argument prototype would still apply.  */
8035 char dlopen ();
8036 int
8037 main ()
8038 {
8039 dlopen ();
8040   ;
8041   return 0;
8042 }
8043 _ACEOF
8044 rm -f conftest.$ac_objext conftest$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046   (eval $ac_link) 2>conftest.er1
8047   ac_status=$?
8048   grep -v '^ *+' conftest.er1 >conftest.err
8049   rm -f conftest.er1
8050   cat conftest.err >&5
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } &&
8053          { ac_try='test -z "$ac_c_werror_flag"
8054                          || test ! -s conftest.err'
8055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056   (eval $ac_try) 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; } &&
8060          { ac_try='test -s conftest$ac_exeext'
8061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062   (eval $ac_try) 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; }; then
8066   ac_cv_lib_dl_dlopen=yes
8067 else
8068   echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071 ac_cv_lib_dl_dlopen=no
8072 fi
8073 rm -f conftest.err conftest.$ac_objext \
8074       conftest$ac_exeext conftest.$ac_ext
8075 LIBS=$ac_check_lib_save_LIBS
8076 fi
8077 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8079 if test $ac_cv_lib_dl_dlopen = yes; then
8080   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8081 else
8082
8083     lt_cv_dlopen="dyld"
8084     lt_cv_dlopen_libs=
8085     lt_cv_dlopen_self=yes
8086
8087 fi
8088
8089    ;;
8090
8091   *)
8092     echo "$as_me:$LINENO: checking for shl_load" >&5
8093 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8094 if test "${ac_cv_func_shl_load+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8105 #define shl_load innocuous_shl_load
8106
8107 /* System header to define __stub macros and hopefully few prototypes,
8108     which can conflict with char shl_load (); below.
8109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8110     <limits.h> exists even on freestanding compilers.  */
8111
8112 #ifdef __STDC__
8113 # include <limits.h>
8114 #else
8115 # include <assert.h>
8116 #endif
8117
8118 #undef shl_load
8119
8120 /* Override any gcc2 internal prototype to avoid an error.  */
8121 #ifdef __cplusplus
8122 extern "C"
8123 {
8124 #endif
8125 /* We use char because int might match the return type of a gcc2
8126    builtin and then its argument prototype would still apply.  */
8127 char shl_load ();
8128 /* The GNU C library defines this for functions which it implements
8129     to always fail with ENOSYS.  Some functions are actually named
8130     something starting with __ and the normal name is an alias.  */
8131 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8132 choke me
8133 #else
8134 char (*f) () = shl_load;
8135 #endif
8136 #ifdef __cplusplus
8137 }
8138 #endif
8139
8140 int
8141 main ()
8142 {
8143 return f != shl_load;
8144   ;
8145   return 0;
8146 }
8147 _ACEOF
8148 rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8150   (eval $ac_link) 2>conftest.er1
8151   ac_status=$?
8152   grep -v '^ *+' conftest.er1 >conftest.err
8153   rm -f conftest.er1
8154   cat conftest.err >&5
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); } &&
8157          { ac_try='test -z "$ac_c_werror_flag"
8158                          || test ! -s conftest.err'
8159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160   (eval $ac_try) 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); }; } &&
8164          { ac_try='test -s conftest$ac_exeext'
8165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166   (eval $ac_try) 2>&5
8167   ac_status=$?
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); }; }; then
8170   ac_cv_func_shl_load=yes
8171 else
8172   echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175 ac_cv_func_shl_load=no
8176 fi
8177 rm -f conftest.err conftest.$ac_objext \
8178       conftest$ac_exeext conftest.$ac_ext
8179 fi
8180 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8181 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8182 if test $ac_cv_func_shl_load = yes; then
8183   lt_cv_dlopen="shl_load"
8184 else
8185   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8186 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8187 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8188   echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190   ac_check_lib_save_LIBS=$LIBS
8191 LIBS="-ldld  $LIBS"
8192 cat >conftest.$ac_ext <<_ACEOF
8193 /* confdefs.h.  */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h.  */
8198
8199 /* Override any gcc2 internal prototype to avoid an error.  */
8200 #ifdef __cplusplus
8201 extern "C"
8202 #endif
8203 /* We use char because int might match the return type of a gcc2
8204    builtin and then its argument prototype would still apply.  */
8205 char shl_load ();
8206 int
8207 main ()
8208 {
8209 shl_load ();
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216   (eval $ac_link) 2>conftest.er1
8217   ac_status=$?
8218   grep -v '^ *+' conftest.er1 >conftest.err
8219   rm -f conftest.er1
8220   cat conftest.err >&5
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } &&
8223          { ac_try='test -z "$ac_c_werror_flag"
8224                          || test ! -s conftest.err'
8225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226   (eval $ac_try) 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; } &&
8230          { ac_try='test -s conftest$ac_exeext'
8231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232   (eval $ac_try) 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); }; }; then
8236   ac_cv_lib_dld_shl_load=yes
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ac_cv_lib_dld_shl_load=no
8242 fi
8243 rm -f conftest.err conftest.$ac_objext \
8244       conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8246 fi
8247 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8248 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8249 if test $ac_cv_lib_dld_shl_load = yes; then
8250   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8251 else
8252   echo "$as_me:$LINENO: checking for dlopen" >&5
8253 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8254 if test "${ac_cv_func_dlopen+set}" = set; then
8255   echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257   cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h.  */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h.  */
8263 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8265 #define dlopen innocuous_dlopen
8266
8267 /* System header to define __stub macros and hopefully few prototypes,
8268     which can conflict with char dlopen (); below.
8269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270     <limits.h> exists even on freestanding compilers.  */
8271
8272 #ifdef __STDC__
8273 # include <limits.h>
8274 #else
8275 # include <assert.h>
8276 #endif
8277
8278 #undef dlopen
8279
8280 /* Override any gcc2 internal prototype to avoid an error.  */
8281 #ifdef __cplusplus
8282 extern "C"
8283 {
8284 #endif
8285 /* We use char because int might match the return type of a gcc2
8286    builtin and then its argument prototype would still apply.  */
8287 char dlopen ();
8288 /* The GNU C library defines this for functions which it implements
8289     to always fail with ENOSYS.  Some functions are actually named
8290     something starting with __ and the normal name is an alias.  */
8291 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8292 choke me
8293 #else
8294 char (*f) () = dlopen;
8295 #endif
8296 #ifdef __cplusplus
8297 }
8298 #endif
8299
8300 int
8301 main ()
8302 {
8303 return f != dlopen;
8304   ;
8305   return 0;
8306 }
8307 _ACEOF
8308 rm -f conftest.$ac_objext conftest$ac_exeext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310   (eval $ac_link) 2>conftest.er1
8311   ac_status=$?
8312   grep -v '^ *+' conftest.er1 >conftest.err
8313   rm -f conftest.er1
8314   cat conftest.err >&5
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); } &&
8317          { ac_try='test -z "$ac_c_werror_flag"
8318                          || test ! -s conftest.err'
8319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320   (eval $ac_try) 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; } &&
8324          { ac_try='test -s conftest$ac_exeext'
8325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326   (eval $ac_try) 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); }; }; then
8330   ac_cv_func_dlopen=yes
8331 else
8332   echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 ac_cv_func_dlopen=no
8336 fi
8337 rm -f conftest.err conftest.$ac_objext \
8338       conftest$ac_exeext conftest.$ac_ext
8339 fi
8340 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8341 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8342 if test $ac_cv_func_dlopen = yes; then
8343   lt_cv_dlopen="dlopen"
8344 else
8345   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8346 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8347 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350   ac_check_lib_save_LIBS=$LIBS
8351 LIBS="-ldl  $LIBS"
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358
8359 /* Override any gcc2 internal prototype to avoid an error.  */
8360 #ifdef __cplusplus
8361 extern "C"
8362 #endif
8363 /* We use char because int might match the return type of a gcc2
8364    builtin and then its argument prototype would still apply.  */
8365 char dlopen ();
8366 int
8367 main ()
8368 {
8369 dlopen ();
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376   (eval $ac_link) 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -z "$ac_c_werror_flag"
8384                          || test ! -s conftest.err'
8385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386   (eval $ac_try) 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; } &&
8390          { ac_try='test -s conftest$ac_exeext'
8391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392   (eval $ac_try) 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); }; }; then
8396   ac_cv_lib_dl_dlopen=yes
8397 else
8398   echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8400
8401 ac_cv_lib_dl_dlopen=no
8402 fi
8403 rm -f conftest.err conftest.$ac_objext \
8404       conftest$ac_exeext conftest.$ac_ext
8405 LIBS=$ac_check_lib_save_LIBS
8406 fi
8407 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8408 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8409 if test $ac_cv_lib_dl_dlopen = yes; then
8410   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8411 else
8412   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8413 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8414 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417   ac_check_lib_save_LIBS=$LIBS
8418 LIBS="-lsvld  $LIBS"
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425
8426 /* Override any gcc2 internal prototype to avoid an error.  */
8427 #ifdef __cplusplus
8428 extern "C"
8429 #endif
8430 /* We use char because int might match the return type of a gcc2
8431    builtin and then its argument prototype would still apply.  */
8432 char dlopen ();
8433 int
8434 main ()
8435 {
8436 dlopen ();
8437   ;
8438   return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443   (eval $ac_link) 2>conftest.er1
8444   ac_status=$?
8445   grep -v '^ *+' conftest.er1 >conftest.err
8446   rm -f conftest.er1
8447   cat conftest.err >&5
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } &&
8450          { ac_try='test -z "$ac_c_werror_flag"
8451                          || test ! -s conftest.err'
8452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453   (eval $ac_try) 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; } &&
8457          { ac_try='test -s conftest$ac_exeext'
8458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459   (eval $ac_try) 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); }; }; then
8463   ac_cv_lib_svld_dlopen=yes
8464 else
8465   echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468 ac_cv_lib_svld_dlopen=no
8469 fi
8470 rm -f conftest.err conftest.$ac_objext \
8471       conftest$ac_exeext conftest.$ac_ext
8472 LIBS=$ac_check_lib_save_LIBS
8473 fi
8474 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8475 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8476 if test $ac_cv_lib_svld_dlopen = yes; then
8477   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8478 else
8479   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8480 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8481 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8482   echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484   ac_check_lib_save_LIBS=$LIBS
8485 LIBS="-ldld  $LIBS"
8486 cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h.  */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h.  */
8492
8493 /* Override any gcc2 internal prototype to avoid an error.  */
8494 #ifdef __cplusplus
8495 extern "C"
8496 #endif
8497 /* We use char because int might match the return type of a gcc2
8498    builtin and then its argument prototype would still apply.  */
8499 char dld_link ();
8500 int
8501 main ()
8502 {
8503 dld_link ();
8504   ;
8505   return 0;
8506 }
8507 _ACEOF
8508 rm -f conftest.$ac_objext conftest$ac_exeext
8509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8510   (eval $ac_link) 2>conftest.er1
8511   ac_status=$?
8512   grep -v '^ *+' conftest.er1 >conftest.err
8513   rm -f conftest.er1
8514   cat conftest.err >&5
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } &&
8517          { ac_try='test -z "$ac_c_werror_flag"
8518                          || test ! -s conftest.err'
8519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520   (eval $ac_try) 2>&5
8521   ac_status=$?
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); }; } &&
8524          { ac_try='test -s conftest$ac_exeext'
8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526   (eval $ac_try) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); }; }; then
8530   ac_cv_lib_dld_dld_link=yes
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535 ac_cv_lib_dld_dld_link=no
8536 fi
8537 rm -f conftest.err conftest.$ac_objext \
8538       conftest$ac_exeext conftest.$ac_ext
8539 LIBS=$ac_check_lib_save_LIBS
8540 fi
8541 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8542 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8543 if test $ac_cv_lib_dld_dld_link = yes; then
8544   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8545 fi
8546
8547
8548 fi
8549
8550
8551 fi
8552
8553
8554 fi
8555
8556
8557 fi
8558
8559
8560 fi
8561
8562     ;;
8563   esac
8564
8565   if test "x$lt_cv_dlopen" != xno; then
8566     enable_dlopen=yes
8567   else
8568     enable_dlopen=no
8569   fi
8570
8571   case $lt_cv_dlopen in
8572   dlopen)
8573     save_CPPFLAGS="$CPPFLAGS"
8574     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8575
8576     save_LDFLAGS="$LDFLAGS"
8577     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8578
8579     save_LIBS="$LIBS"
8580     LIBS="$lt_cv_dlopen_libs $LIBS"
8581
8582     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8583 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8584 if test "${lt_cv_dlopen_self+set}" = set; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587           if test "$cross_compiling" = yes; then :
8588   lt_cv_dlopen_self=cross
8589 else
8590   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8591   lt_status=$lt_dlunknown
8592   cat > conftest.$ac_ext <<EOF
8593 #line 8593 "configure"
8594 #include "confdefs.h"
8595
8596 #if HAVE_DLFCN_H
8597 #include <dlfcn.h>
8598 #endif
8599
8600 #include <stdio.h>
8601
8602 #ifdef RTLD_GLOBAL
8603 #  define LT_DLGLOBAL           RTLD_GLOBAL
8604 #else
8605 #  ifdef DL_GLOBAL
8606 #    define LT_DLGLOBAL         DL_GLOBAL
8607 #  else
8608 #    define LT_DLGLOBAL         0
8609 #  endif
8610 #endif
8611
8612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8613    find out it does not work in some platform. */
8614 #ifndef LT_DLLAZY_OR_NOW
8615 #  ifdef RTLD_LAZY
8616 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8617 #  else
8618 #    ifdef DL_LAZY
8619 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8620 #    else
8621 #      ifdef RTLD_NOW
8622 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8623 #      else
8624 #        ifdef DL_NOW
8625 #          define LT_DLLAZY_OR_NOW      DL_NOW
8626 #        else
8627 #          define LT_DLLAZY_OR_NOW      0
8628 #        endif
8629 #      endif
8630 #    endif
8631 #  endif
8632 #endif
8633
8634 #ifdef __cplusplus
8635 extern "C" void exit (int);
8636 #endif
8637
8638 void fnord() { int i=42;}
8639 int main ()
8640 {
8641   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8642   int status = $lt_dlunknown;
8643
8644   if (self)
8645     {
8646       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8647       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8648       /* dlclose (self); */
8649     }
8650
8651     exit (status);
8652 }
8653 EOF
8654   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655   (eval $ac_link) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8659     (./conftest; exit; ) 2>/dev/null
8660     lt_status=$?
8661     case x$lt_status in
8662       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8663       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8664       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8665     esac
8666   else :
8667     # compilation failed
8668     lt_cv_dlopen_self=no
8669   fi
8670 fi
8671 rm -fr conftest*
8672
8673
8674 fi
8675 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8676 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8677
8678     if test "x$lt_cv_dlopen_self" = xyes; then
8679       LDFLAGS="$LDFLAGS $link_static_flag"
8680       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8681 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8682 if test "${lt_cv_dlopen_self_static+set}" = set; then
8683   echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685           if test "$cross_compiling" = yes; then :
8686   lt_cv_dlopen_self_static=cross
8687 else
8688   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8689   lt_status=$lt_dlunknown
8690   cat > conftest.$ac_ext <<EOF
8691 #line 8691 "configure"
8692 #include "confdefs.h"
8693
8694 #if HAVE_DLFCN_H
8695 #include <dlfcn.h>
8696 #endif
8697
8698 #include <stdio.h>
8699
8700 #ifdef RTLD_GLOBAL
8701 #  define LT_DLGLOBAL           RTLD_GLOBAL
8702 #else
8703 #  ifdef DL_GLOBAL
8704 #    define LT_DLGLOBAL         DL_GLOBAL
8705 #  else
8706 #    define LT_DLGLOBAL         0
8707 #  endif
8708 #endif
8709
8710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8711    find out it does not work in some platform. */
8712 #ifndef LT_DLLAZY_OR_NOW
8713 #  ifdef RTLD_LAZY
8714 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8715 #  else
8716 #    ifdef DL_LAZY
8717 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8718 #    else
8719 #      ifdef RTLD_NOW
8720 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8721 #      else
8722 #        ifdef DL_NOW
8723 #          define LT_DLLAZY_OR_NOW      DL_NOW
8724 #        else
8725 #          define LT_DLLAZY_OR_NOW      0
8726 #        endif
8727 #      endif
8728 #    endif
8729 #  endif
8730 #endif
8731
8732 #ifdef __cplusplus
8733 extern "C" void exit (int);
8734 #endif
8735
8736 void fnord() { int i=42;}
8737 int main ()
8738 {
8739   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8740   int status = $lt_dlunknown;
8741
8742   if (self)
8743     {
8744       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8745       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8746       /* dlclose (self); */
8747     }
8748
8749     exit (status);
8750 }
8751 EOF
8752   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753   (eval $ac_link) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8757     (./conftest; exit; ) 2>/dev/null
8758     lt_status=$?
8759     case x$lt_status in
8760       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8761       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8762       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8763     esac
8764   else :
8765     # compilation failed
8766     lt_cv_dlopen_self_static=no
8767   fi
8768 fi
8769 rm -fr conftest*
8770
8771
8772 fi
8773 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8774 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8775     fi
8776
8777     CPPFLAGS="$save_CPPFLAGS"
8778     LDFLAGS="$save_LDFLAGS"
8779     LIBS="$save_LIBS"
8780     ;;
8781   esac
8782
8783   case $lt_cv_dlopen_self in
8784   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8785   *) enable_dlopen_self=unknown ;;
8786   esac
8787
8788   case $lt_cv_dlopen_self_static in
8789   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8790   *) enable_dlopen_self_static=unknown ;;
8791   esac
8792 fi
8793
8794
8795 # Report which librarie types wil actually be built
8796 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8797 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8798 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8799 echo "${ECHO_T}$can_build_shared" >&6
8800
8801 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8802 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8803 test "$can_build_shared" = "no" && enable_shared=no
8804
8805 # On AIX, shared libraries and static libraries use the same namespace, and
8806 # are all built from PIC.
8807 case "$host_os" in
8808 aix3*)
8809   test "$enable_shared" = yes && enable_static=no
8810   if test -n "$RANLIB"; then
8811     archive_cmds="$archive_cmds;\$RANLIB \$lib"
8812     postinstall_cmds='$RANLIB $lib'
8813   fi
8814   ;;
8815
8816 aix4* | aix5*)
8817   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8818     test "$enable_shared" = yes && enable_static=no
8819   fi
8820     ;;
8821 esac
8822 echo "$as_me:$LINENO: result: $enable_shared" >&5
8823 echo "${ECHO_T}$enable_shared" >&6
8824
8825 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8826 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8827 # Make sure either enable_shared or enable_static is yes.
8828 test "$enable_shared" = yes || enable_static=yes
8829 echo "$as_me:$LINENO: result: $enable_static" >&5
8830 echo "${ECHO_T}$enable_static" >&6
8831
8832 # The else clause should only fire when bootstrapping the
8833 # libtool distribution, otherwise you forgot to ship ltmain.sh
8834 # with your package, and you will get complaints that there are
8835 # no rules to generate ltmain.sh.
8836 if test -f "$ltmain"; then
8837   # See if we are running on zsh, and set the options which allow our commands through
8838   # without removal of \ escapes.
8839   if test -n "${ZSH_VERSION+set}" ; then
8840     setopt NO_GLOB_SUBST
8841   fi
8842   # Now quote all the things that may contain metacharacters while being
8843   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8844   # variables and quote the copies for generation of the libtool script.
8845   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8846     SED SHELL STRIP \
8847     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8848     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8849     deplibs_check_method reload_flag reload_cmds need_locks \
8850     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8851     lt_cv_sys_global_symbol_to_c_name_address \
8852     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8853     old_postinstall_cmds old_postuninstall_cmds \
8854     compiler \
8855     CC \
8856     LD \
8857     lt_prog_compiler_wl \
8858     lt_prog_compiler_pic \
8859     lt_prog_compiler_static \
8860     lt_prog_compiler_no_builtin_flag \
8861     export_dynamic_flag_spec \
8862     thread_safe_flag_spec \
8863     whole_archive_flag_spec \
8864     enable_shared_with_static_runtimes \
8865     old_archive_cmds \
8866     old_archive_from_new_cmds \
8867     predep_objects \
8868     postdep_objects \
8869     predeps \
8870     postdeps \
8871     compiler_lib_search_path \
8872     archive_cmds \
8873     archive_expsym_cmds \
8874     postinstall_cmds \
8875     postuninstall_cmds \
8876     old_archive_from_expsyms_cmds \
8877     allow_undefined_flag \
8878     no_undefined_flag \
8879     export_symbols_cmds \
8880     hardcode_libdir_flag_spec \
8881     hardcode_libdir_flag_spec_ld \
8882     hardcode_libdir_separator \
8883     hardcode_automatic \
8884     module_cmds \
8885     module_expsym_cmds \
8886     lt_cv_prog_compiler_c_o \
8887     exclude_expsyms \
8888     include_expsyms; do
8889
8890     case $var in
8891     old_archive_cmds | \
8892     old_archive_from_new_cmds | \
8893     archive_cmds | \
8894     archive_expsym_cmds | \
8895     module_cmds | \
8896     module_expsym_cmds | \
8897     old_archive_from_expsyms_cmds | \
8898     export_symbols_cmds | \
8899     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8900     postinstall_cmds | postuninstall_cmds | \
8901     old_postinstall_cmds | old_postuninstall_cmds | \
8902     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8903       # Double-quote double-evaled strings.
8904       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8905       ;;
8906     *)
8907       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8908       ;;
8909     esac
8910   done
8911
8912   case $lt_echo in
8913   *'\$0 --fallback-echo"')
8914     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8915     ;;
8916   esac
8917
8918 cfgfile="${ofile}T"
8919   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8920   $rm -f "$cfgfile"
8921   { echo "$as_me:$LINENO: creating $ofile" >&5
8922 echo "$as_me: creating $ofile" >&6;}
8923
8924   cat <<__EOF__ >> "$cfgfile"
8925 #! $SHELL
8926
8927 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8928 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8929 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8930 #
8931 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8932 # Free Software Foundation, Inc.
8933 #
8934 # This file is part of GNU Libtool:
8935 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8936 #
8937 # This program is free software; you can redistribute it and/or modify
8938 # it under the terms of the GNU General Public License as published by
8939 # the Free Software Foundation; either version 2 of the License, or
8940 # (at your option) any later version.
8941 #
8942 # This program is distributed in the hope that it will be useful, but
8943 # WITHOUT ANY WARRANTY; without even the implied warranty of
8944 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8945 # General Public License for more details.
8946 #
8947 # You should have received a copy of the GNU General Public License
8948 # along with this program; if not, write to the Free Software
8949 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8950 #
8951 # As a special exception to the GNU General Public License, if you
8952 # distribute this file as part of a program that contains a
8953 # configuration script generated by Autoconf, you may include it under
8954 # the same distribution terms that you use for the rest of that program.
8955
8956 # A sed program that does not truncate output.
8957 SED=$lt_SED
8958
8959 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8960 Xsed="$SED -e s/^X//"
8961
8962 # The HP-UX ksh and POSIX shell print the target directory to stdout
8963 # if CDPATH is set.
8964 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8965
8966 # The names of the tagged configurations supported by this script.
8967 available_tags=
8968
8969 # ### BEGIN LIBTOOL CONFIG
8970
8971 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8972
8973 # Shell to use when invoking shell scripts.
8974 SHELL=$lt_SHELL
8975
8976 # Whether or not to build shared libraries.
8977 build_libtool_libs=$enable_shared
8978
8979 # Whether or not to build static libraries.
8980 build_old_libs=$enable_static
8981
8982 # Whether or not to add -lc for building shared libraries.
8983 build_libtool_need_lc=$archive_cmds_need_lc
8984
8985 # Whether or not to disallow shared libs when runtime libs are static
8986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8987
8988 # Whether or not to optimize for fast installation.
8989 fast_install=$enable_fast_install
8990
8991 # The host system.
8992 host_alias=$host_alias
8993 host=$host
8994
8995 # An echo program that does not interpret backslashes.
8996 echo=$lt_echo
8997
8998 # The archiver.
8999 AR=$lt_AR
9000 AR_FLAGS=$lt_AR_FLAGS
9001
9002 # A C compiler.
9003 LTCC=$lt_LTCC
9004
9005 # A language-specific compiler.
9006 CC=$lt_compiler
9007
9008 # Is the compiler the GNU C compiler?
9009 with_gcc=$GCC
9010
9011 # An ERE matcher.
9012 EGREP=$lt_EGREP
9013
9014 # The linker used to build libraries.
9015 LD=$lt_LD
9016
9017 # Whether we need hard or soft links.
9018 LN_S=$lt_LN_S
9019
9020 # A BSD-compatible nm program.
9021 NM=$lt_NM
9022
9023 # A symbol stripping program
9024 STRIP=$lt_STRIP
9025
9026 # Used to examine libraries when file_magic_cmd begins "file"
9027 MAGIC_CMD=$MAGIC_CMD
9028
9029 # Used on cygwin: DLL creation program.
9030 DLLTOOL="$DLLTOOL"
9031
9032 # Used on cygwin: object dumper.
9033 OBJDUMP="$OBJDUMP"
9034
9035 # Used on cygwin: assembler.
9036 AS="$AS"
9037
9038 # The name of the directory that contains temporary libtool files.
9039 objdir=$objdir
9040
9041 # How to create reloadable object files.
9042 reload_flag=$lt_reload_flag
9043 reload_cmds=$lt_reload_cmds
9044
9045 # How to pass a linker flag through the compiler.
9046 wl=$lt_lt_prog_compiler_wl
9047
9048 # Object file suffix (normally "o").
9049 objext="$ac_objext"
9050
9051 # Old archive suffix (normally "a").
9052 libext="$libext"
9053
9054 # Shared library suffix (normally ".so").
9055 shrext_cmds='$shrext_cmds'
9056
9057 # Executable file suffix (normally "").
9058 exeext="$exeext"
9059
9060 # Additional compiler flags for building library objects.
9061 pic_flag=$lt_lt_prog_compiler_pic
9062 pic_mode=$pic_mode
9063
9064 # What is the maximum length of a command?
9065 max_cmd_len=$lt_cv_sys_max_cmd_len
9066
9067 # Does compiler simultaneously support -c and -o options?
9068 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9069
9070 # Must we lock files when doing compilation ?
9071 need_locks=$lt_need_locks
9072
9073 # Do we need the lib prefix for modules?
9074 need_lib_prefix=$need_lib_prefix
9075
9076 # Do we need a version for libraries?
9077 need_version=$need_version
9078
9079 # Whether dlopen is supported.
9080 dlopen_support=$enable_dlopen
9081
9082 # Whether dlopen of programs is supported.
9083 dlopen_self=$enable_dlopen_self
9084
9085 # Whether dlopen of statically linked programs is supported.
9086 dlopen_self_static=$enable_dlopen_self_static
9087
9088 # Compiler flag to prevent dynamic linking.
9089 link_static_flag=$lt_lt_prog_compiler_static
9090
9091 # Compiler flag to turn off builtin functions.
9092 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9093
9094 # Compiler flag to allow reflexive dlopens.
9095 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9096
9097 # Compiler flag to generate shared objects directly from archives.
9098 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9099
9100 # Compiler flag to generate thread-safe objects.
9101 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9102
9103 # Library versioning type.
9104 version_type=$version_type
9105
9106 # Format of library name prefix.
9107 libname_spec=$lt_libname_spec
9108
9109 # List of archive names.  First name is the real one, the rest are links.
9110 # The last name is the one that the linker finds with -lNAME.
9111 library_names_spec=$lt_library_names_spec
9112
9113 # The coded name of the library, if different from the real name.
9114 soname_spec=$lt_soname_spec
9115
9116 # Commands used to build and install an old-style archive.
9117 RANLIB=$lt_RANLIB
9118 old_archive_cmds=$lt_old_archive_cmds
9119 old_postinstall_cmds=$lt_old_postinstall_cmds
9120 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9121
9122 # Create an old-style archive from a shared archive.
9123 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9124
9125 # Create a temporary old-style archive to link instead of a shared archive.
9126 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9127
9128 # Commands used to build and install a shared archive.
9129 archive_cmds=$lt_archive_cmds
9130 archive_expsym_cmds=$lt_archive_expsym_cmds
9131 postinstall_cmds=$lt_postinstall_cmds
9132 postuninstall_cmds=$lt_postuninstall_cmds
9133
9134 # Commands used to build a loadable module (assumed same as above if empty)
9135 module_cmds=$lt_module_cmds
9136 module_expsym_cmds=$lt_module_expsym_cmds
9137
9138 # Commands to strip libraries.
9139 old_striplib=$lt_old_striplib
9140 striplib=$lt_striplib
9141
9142 # Dependencies to place before the objects being linked to create a
9143 # shared library.
9144 predep_objects=$lt_predep_objects
9145
9146 # Dependencies to place after the objects being linked to create a
9147 # shared library.
9148 postdep_objects=$lt_postdep_objects
9149
9150 # Dependencies to place before the objects being linked to create a
9151 # shared library.
9152 predeps=$lt_predeps
9153
9154 # Dependencies to place after the objects being linked to create a
9155 # shared library.
9156 postdeps=$lt_postdeps
9157
9158 # The library search path used internally by the compiler when linking
9159 # a shared library.
9160 compiler_lib_search_path=$lt_compiler_lib_search_path
9161
9162 # Method to check whether dependent libraries are shared objects.
9163 deplibs_check_method=$lt_deplibs_check_method
9164
9165 # Command to use when deplibs_check_method == file_magic.
9166 file_magic_cmd=$lt_file_magic_cmd
9167
9168 # Flag that allows shared libraries with undefined symbols to be built.
9169 allow_undefined_flag=$lt_allow_undefined_flag
9170
9171 # Flag that forces no undefined symbols.
9172 no_undefined_flag=$lt_no_undefined_flag
9173
9174 # Commands used to finish a libtool library installation in a directory.
9175 finish_cmds=$lt_finish_cmds
9176
9177 # Same as above, but a single script fragment to be evaled but not shown.
9178 finish_eval=$lt_finish_eval
9179
9180 # Take the output of nm and produce a listing of raw symbols and C names.
9181 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9182
9183 # Transform the output of nm in a proper C declaration
9184 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9185
9186 # Transform the output of nm in a C name address pair
9187 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9188
9189 # This is the shared library runtime path variable.
9190 runpath_var=$runpath_var
9191
9192 # This is the shared library path variable.
9193 shlibpath_var=$shlibpath_var
9194
9195 # Is shlibpath searched before the hard-coded library search path?
9196 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9197
9198 # How to hardcode a shared library path into an executable.
9199 hardcode_action=$hardcode_action
9200
9201 # Whether we should hardcode library paths into libraries.
9202 hardcode_into_libs=$hardcode_into_libs
9203
9204 # Flag to hardcode \$libdir into a binary during linking.
9205 # This must work even if \$libdir does not exist.
9206 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9207
9208 # If ld is used when linking, flag to hardcode \$libdir into
9209 # a binary during linking. This must work even if \$libdir does
9210 # not exist.
9211 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9212
9213 # Whether we need a single -rpath flag with a separated argument.
9214 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9215
9216 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9217 # resulting binary.
9218 hardcode_direct=$hardcode_direct
9219
9220 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9221 # resulting binary.
9222 hardcode_minus_L=$hardcode_minus_L
9223
9224 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9225 # the resulting binary.
9226 hardcode_shlibpath_var=$hardcode_shlibpath_var
9227
9228 # Set to yes if building a shared library automatically hardcodes DIR into the library
9229 # and all subsequent libraries and executables linked against it.
9230 hardcode_automatic=$hardcode_automatic
9231
9232 # Variables whose values should be saved in libtool wrapper scripts and
9233 # restored at relink time.
9234 variables_saved_for_relink="$variables_saved_for_relink"
9235
9236 # Whether libtool must link a program against all its dependency libraries.
9237 link_all_deplibs=$link_all_deplibs
9238
9239 # Compile-time system search path for libraries
9240 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9241
9242 # Run-time system search path for libraries
9243 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9244
9245 # Fix the shell variable \$srcfile for the compiler.
9246 fix_srcfile_path="$fix_srcfile_path"
9247
9248 # Set to yes if exported symbols are required.
9249 always_export_symbols=$always_export_symbols
9250
9251 # The commands to list exported symbols.
9252 export_symbols_cmds=$lt_export_symbols_cmds
9253
9254 # The commands to extract the exported symbol list from a shared archive.
9255 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9256
9257 # Symbols that should not be listed in the preloaded symbols.
9258 exclude_expsyms=$lt_exclude_expsyms
9259
9260 # Symbols that must always be exported.
9261 include_expsyms=$lt_include_expsyms
9262
9263 # ### END LIBTOOL CONFIG
9264
9265 __EOF__
9266
9267
9268   case $host_os in
9269   aix3*)
9270     cat <<\EOF >> "$cfgfile"
9271
9272 # AIX sometimes has problems with the GCC collect2 program.  For some
9273 # reason, if we set the COLLECT_NAMES environment variable, the problems
9274 # vanish in a puff of smoke.
9275 if test "X${COLLECT_NAMES+set}" != Xset; then
9276   COLLECT_NAMES=
9277   export COLLECT_NAMES
9278 fi
9279 EOF
9280     ;;
9281   esac
9282
9283   # We use sed instead of cat because bash on DJGPP gets confused if
9284   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9285   # text mode, it properly converts lines to CR/LF.  This bash problem
9286   # is reportedly fixed, but why not run on old versions too?
9287   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9288
9289   mv -f "$cfgfile" "$ofile" || \
9290     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9291   chmod +x "$ofile"
9292
9293 else
9294   # If there is no Makefile yet, we rely on a make rule to execute
9295   # `config.status --recheck' to rerun these tests and create the
9296   # libtool script then.
9297   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9298   if test -f "$ltmain_in"; then
9299     test -f Makefile && make "$ltmain"
9300   fi
9301 fi
9302
9303
9304 ac_ext=c
9305 ac_cpp='$CPP $CPPFLAGS'
9306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9309
9310 CC="$lt_save_CC"
9311
9312
9313 # Check whether --with-tags or --without-tags was given.
9314 if test "${with_tags+set}" = set; then
9315   withval="$with_tags"
9316   tagnames="$withval"
9317 fi;
9318
9319 if test -f "$ltmain" && test -n "$tagnames"; then
9320   if test ! -f "${ofile}"; then
9321     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9322 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9323   fi
9324
9325   if test -z "$LTCC"; then
9326     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9327     if test -z "$LTCC"; then
9328       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9329 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9330     else
9331       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9332 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9333     fi
9334   fi
9335
9336   # Extract list of available tagged configurations in $ofile.
9337   # Note that this assumes the entire list is on one line.
9338   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9339
9340   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9341   for tagname in $tagnames; do
9342     IFS="$lt_save_ifs"
9343     # Check whether tagname contains only valid characters
9344     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9345     "") ;;
9346     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9347 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9348    { (exit 1); exit 1; }; }
9349         ;;
9350     esac
9351
9352     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9353     then
9354       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9355 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9356    { (exit 1); exit 1; }; }
9357     fi
9358
9359     # Update the list of available tags.
9360     if test -n "$tagname"; then
9361       echo appending configuration tag \"$tagname\" to $ofile
9362
9363       case $tagname in
9364       CXX)
9365         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9366             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9367             (test "X$CXX" != "Xg++"))) ; then
9368           ac_ext=cc
9369 ac_cpp='$CXXCPP $CPPFLAGS'
9370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9373
9374
9375
9376
9377 archive_cmds_need_lc_CXX=no
9378 allow_undefined_flag_CXX=
9379 always_export_symbols_CXX=no
9380 archive_expsym_cmds_CXX=
9381 export_dynamic_flag_spec_CXX=
9382 hardcode_direct_CXX=no
9383 hardcode_libdir_flag_spec_CXX=
9384 hardcode_libdir_flag_spec_ld_CXX=
9385 hardcode_libdir_separator_CXX=
9386 hardcode_minus_L_CXX=no
9387 hardcode_automatic_CXX=no
9388 module_cmds_CXX=
9389 module_expsym_cmds_CXX=
9390 link_all_deplibs_CXX=unknown
9391 old_archive_cmds_CXX=$old_archive_cmds
9392 no_undefined_flag_CXX=
9393 whole_archive_flag_spec_CXX=
9394 enable_shared_with_static_runtimes_CXX=no
9395
9396 # Dependencies to place before and after the object being linked:
9397 predep_objects_CXX=
9398 postdep_objects_CXX=
9399 predeps_CXX=
9400 postdeps_CXX=
9401 compiler_lib_search_path_CXX=
9402
9403 # Source file extension for C++ test sources.
9404 ac_ext=cc
9405
9406 # Object file extension for compiled C++ test sources.
9407 objext=o
9408 objext_CXX=$objext
9409
9410 # Code to be used in simple compile tests
9411 lt_simple_compile_test_code="int some_variable = 0;\n"
9412
9413 # Code to be used in simple link tests
9414 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9415
9416 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9417
9418 # If no C compiler was specified, use CC.
9419 LTCC=${LTCC-"$CC"}
9420
9421 # Allow CC to be a program name with arguments.
9422 compiler=$CC
9423
9424
9425 # Allow CC to be a program name with arguments.
9426 lt_save_CC=$CC
9427 lt_save_LD=$LD
9428 lt_save_GCC=$GCC
9429 GCC=$GXX
9430 lt_save_with_gnu_ld=$with_gnu_ld
9431 lt_save_path_LD=$lt_cv_path_LD
9432 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9433   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9434 else
9435   unset lt_cv_prog_gnu_ld
9436 fi
9437 if test -n "${lt_cv_path_LDCXX+set}"; then
9438   lt_cv_path_LD=$lt_cv_path_LDCXX
9439 else
9440   unset lt_cv_path_LD
9441 fi
9442 test -z "${LDCXX+set}" || LD=$LDCXX
9443 CC=${CXX-"c++"}
9444 compiler=$CC
9445 compiler_CXX=$CC
9446 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9447
9448 # We don't want -fno-exception wen compiling C++ code, so set the
9449 # no_builtin_flag separately
9450 if test "$GXX" = yes; then
9451   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9452 else
9453   lt_prog_compiler_no_builtin_flag_CXX=
9454 fi
9455
9456 if test "$GXX" = yes; then
9457   # Set up default GNU C++ configuration
9458
9459
9460 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9461 if test "${with_gnu_ld+set}" = set; then
9462   withval="$with_gnu_ld"
9463   test "$withval" = no || with_gnu_ld=yes
9464 else
9465   with_gnu_ld=no
9466 fi;
9467 ac_prog=ld
9468 if test "$GCC" = yes; then
9469   # Check if gcc -print-prog-name=ld gives a path.
9470   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9471 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9472   case $host in
9473   *-*-mingw*)
9474     # gcc leaves a trailing carriage return which upsets mingw
9475     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9476   *)
9477     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9478   esac
9479   case $ac_prog in
9480     # Accept absolute paths.
9481     [\\/]* | ?:[\\/]*)
9482       re_direlt='/[^/][^/]*/\.\./'
9483       # Canonicalize the pathname of ld
9484       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9485       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9486         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9487       done
9488       test -z "$LD" && LD="$ac_prog"
9489       ;;
9490   "")
9491     # If it fails, then pretend we aren't using GCC.
9492     ac_prog=ld
9493     ;;
9494   *)
9495     # If it is relative, then search for the first ld in PATH.
9496     with_gnu_ld=unknown
9497     ;;
9498   esac
9499 elif test "$with_gnu_ld" = yes; then
9500   echo "$as_me:$LINENO: checking for GNU ld" >&5
9501 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9502 else
9503   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9504 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9505 fi
9506 if test "${lt_cv_path_LD+set}" = set; then
9507   echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509   if test -z "$LD"; then
9510   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9511   for ac_dir in $PATH; do
9512     IFS="$lt_save_ifs"
9513     test -z "$ac_dir" && ac_dir=.
9514     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9515       lt_cv_path_LD="$ac_dir/$ac_prog"
9516       # Check to see if the program is GNU ld.  I'd rather use --version,
9517       # but apparently some GNU ld's only accept -v.
9518       # Break only if it was the GNU/non-GNU ld that we prefer.
9519       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9520       *GNU* | *'with BFD'*)
9521         test "$with_gnu_ld" != no && break
9522         ;;
9523       *)
9524         test "$with_gnu_ld" != yes && break
9525         ;;
9526       esac
9527     fi
9528   done
9529   IFS="$lt_save_ifs"
9530 else
9531   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9532 fi
9533 fi
9534
9535 LD="$lt_cv_path_LD"
9536 if test -n "$LD"; then
9537   echo "$as_me:$LINENO: result: $LD" >&5
9538 echo "${ECHO_T}$LD" >&6
9539 else
9540   echo "$as_me:$LINENO: result: no" >&5
9541 echo "${ECHO_T}no" >&6
9542 fi
9543 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9544 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9545    { (exit 1); exit 1; }; }
9546 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9547 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9548 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9552 case `$LD -v 2>&1 </dev/null` in
9553 *GNU* | *'with BFD'*)
9554   lt_cv_prog_gnu_ld=yes
9555   ;;
9556 *)
9557   lt_cv_prog_gnu_ld=no
9558   ;;
9559 esac
9560 fi
9561 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9562 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9563 with_gnu_ld=$lt_cv_prog_gnu_ld
9564
9565
9566
9567   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9568   # archiving commands below assume that GNU ld is being used.
9569   if test "$with_gnu_ld" = yes; then
9570     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571     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'
9572
9573     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9574     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9575
9576     # If archive_cmds runs LD, not CC, wlarc should be empty
9577     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9578     #     investigate it a little bit more. (MM)
9579     wlarc='${wl}'
9580
9581     # ancient GNU ld didn't support --whole-archive et. al.
9582     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9583         grep 'no-whole-archive' > /dev/null; then
9584       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9585     else
9586       whole_archive_flag_spec_CXX=
9587     fi
9588   else
9589     with_gnu_ld=no
9590     wlarc=
9591
9592     # A generic and very simple default shared library creation
9593     # command for GNU C++ for the case where it uses the native
9594     # linker, instead of GNU ld.  If possible, this setting should
9595     # overridden to take advantage of the native linker features on
9596     # the platform it is being used on.
9597     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9598   fi
9599
9600   # Commands to make compiler produce verbose output that lists
9601   # what "hidden" libraries, object files and flags are used when
9602   # linking a shared library.
9603   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9604
9605 else
9606   GXX=no
9607   with_gnu_ld=no
9608   wlarc=
9609 fi
9610
9611 # PORTME: fill in a description of your system's C++ link characteristics
9612 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9614 ld_shlibs_CXX=yes
9615 case $host_os in
9616   aix3*)
9617     # FIXME: insert proper C++ library support
9618     ld_shlibs_CXX=no
9619     ;;
9620   aix4* | aix5*)
9621     if test "$host_cpu" = ia64; then
9622       # On IA64, the linker does run time linking by default, so we don't
9623       # have to do anything special.
9624       aix_use_runtimelinking=no
9625       exp_sym_flag='-Bexport'
9626       no_entry_flag=""
9627     else
9628       aix_use_runtimelinking=no
9629
9630       # Test if we are trying to use run time linking or normal
9631       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9632       # need to do runtime linking.
9633       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9634         for ld_flag in $LDFLAGS; do
9635           case $ld_flag in
9636           *-brtl*)
9637             aix_use_runtimelinking=yes
9638             break
9639             ;;
9640           esac
9641         done
9642       esac
9643
9644       exp_sym_flag='-bexport'
9645       no_entry_flag='-bnoentry'
9646     fi
9647
9648     # When large executables or shared objects are built, AIX ld can
9649     # have problems creating the table of contents.  If linking a library
9650     # or program results in "error TOC overflow" add -mminimal-toc to
9651     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9652     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9653
9654     archive_cmds_CXX=''
9655     hardcode_direct_CXX=yes
9656     hardcode_libdir_separator_CXX=':'
9657     link_all_deplibs_CXX=yes
9658
9659     if test "$GXX" = yes; then
9660       case $host_os in aix4.012|aix4.012.*)
9661       # We only want to do this on AIX 4.2 and lower, the check
9662       # below for broken collect2 doesn't work under 4.3+
9663         collect2name=`${CC} -print-prog-name=collect2`
9664         if test -f "$collect2name" && \
9665            strings "$collect2name" | grep resolve_lib_name >/dev/null
9666         then
9667           # We have reworked collect2
9668           hardcode_direct_CXX=yes
9669         else
9670           # We have old collect2
9671           hardcode_direct_CXX=unsupported
9672           # It fails to find uninstalled libraries when the uninstalled
9673           # path is not listed in the libpath.  Setting hardcode_minus_L
9674           # to unsupported forces relinking
9675           hardcode_minus_L_CXX=yes
9676           hardcode_libdir_flag_spec_CXX='-L$libdir'
9677           hardcode_libdir_separator_CXX=
9678         fi
9679       esac
9680       shared_flag='-shared'
9681     else
9682       # not using gcc
9683       if test "$host_cpu" = ia64; then
9684         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9685         # chokes on -Wl,-G. The following line is correct:
9686         shared_flag='-G'
9687       else
9688         if test "$aix_use_runtimelinking" = yes; then
9689           shared_flag='${wl}-G'
9690         else
9691           shared_flag='${wl}-bM:SRE'
9692         fi
9693       fi
9694     fi
9695
9696     # It seems that -bexpall does not export symbols beginning with
9697     # underscore (_), so it is better to generate a list of symbols to export.
9698     always_export_symbols_CXX=yes
9699     if test "$aix_use_runtimelinking" = yes; then
9700       # Warning - without using the other runtime loading flags (-brtl),
9701       # -berok will link without error, but may produce a broken library.
9702       allow_undefined_flag_CXX='-berok'
9703       # Determine the default libpath from the value encoded in an empty executable.
9704       cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h.  */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h.  */
9710
9711 int
9712 main ()
9713 {
9714
9715   ;
9716   return 0;
9717 }
9718 _ACEOF
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9721   (eval $ac_link) 2>conftest.er1
9722   ac_status=$?
9723   grep -v '^ *+' conftest.er1 >conftest.err
9724   rm -f conftest.er1
9725   cat conftest.err >&5
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); } &&
9728          { ac_try='test -z "$ac_cxx_werror_flag"
9729                          || test ! -s conftest.err'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; } &&
9735          { ac_try='test -s conftest$ac_exeext'
9736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737   (eval $ac_try) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); }; }; then
9741
9742 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9743 }'`
9744 # Check for a 64-bit object if we didn't find anything.
9745 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; }
9746 }'`; fi
9747 else
9748   echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751 fi
9752 rm -f conftest.err conftest.$ac_objext \
9753       conftest$ac_exeext conftest.$ac_ext
9754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9755
9756       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9757
9758       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"
9759      else
9760       if test "$host_cpu" = ia64; then
9761         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9762         allow_undefined_flag_CXX="-z nodefs"
9763         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"
9764       else
9765         # Determine the default libpath from the value encoded in an empty executable.
9766         cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h.  */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h.  */
9772
9773 int
9774 main ()
9775 {
9776
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783   (eval $ac_link) 2>conftest.er1
9784   ac_status=$?
9785   grep -v '^ *+' conftest.er1 >conftest.err
9786   rm -f conftest.er1
9787   cat conftest.err >&5
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } &&
9790          { ac_try='test -z "$ac_cxx_werror_flag"
9791                          || test ! -s conftest.err'
9792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793   (eval $ac_try) 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); }; } &&
9797          { ac_try='test -s conftest$ac_exeext'
9798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799   (eval $ac_try) 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; }; then
9803
9804 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9805 }'`
9806 # Check for a 64-bit object if we didn't find anything.
9807 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; }
9808 }'`; fi
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813 fi
9814 rm -f conftest.err conftest.$ac_objext \
9815       conftest$ac_exeext conftest.$ac_ext
9816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9817
9818         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9819         # Warning - without using the other run time loading flags,
9820         # -berok will link without error, but may produce a broken library.
9821         no_undefined_flag_CXX=' ${wl}-bernotok'
9822         allow_undefined_flag_CXX=' ${wl}-berok'
9823         # -bexpall does not export symbols beginning with underscore (_)
9824         always_export_symbols_CXX=yes
9825         # Exported symbols can be pulled into shared objects from archives
9826         whole_archive_flag_spec_CXX=' '
9827         archive_cmds_need_lc_CXX=yes
9828         # This is similar to how AIX traditionally builds it's shared libraries.
9829         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'
9830       fi
9831     fi
9832     ;;
9833   chorus*)
9834     case $cc_basename in
9835       *)
9836         # FIXME: insert proper C++ library support
9837         ld_shlibs_CXX=no
9838         ;;
9839     esac
9840     ;;
9841
9842
9843   cygwin* | mingw* | pw32*)
9844     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9845     # as there is no search path for DLLs.
9846     hardcode_libdir_flag_spec_CXX='-L$libdir'
9847     allow_undefined_flag_CXX=unsupported
9848     always_export_symbols_CXX=no
9849     enable_shared_with_static_runtimes_CXX=yes
9850
9851     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9852       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'
9853       # If the export-symbols file already is a .def file (1st line
9854       # is EXPORTS), use it as is; otherwise, prepend...
9855       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9856         cp $export_symbols $output_objdir/$soname.def;
9857       else
9858         echo EXPORTS > $output_objdir/$soname.def;
9859         cat $export_symbols >> $output_objdir/$soname.def;
9860       fi;$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'
9861     else
9862       ld_shlibs_CXX=no
9863     fi
9864   ;;
9865       darwin* | rhapsody*)
9866         case "$host_os" in
9867         rhapsody* | darwin1.[012])
9868          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9869          ;;
9870        *) # Darwin 1.3 on
9871          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9872            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9873          else
9874            case ${MACOSX_DEPLOYMENT_TARGET} in
9875              10.[012])
9876                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9877                ;;
9878              10.*)
9879                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9880                ;;
9881            esac
9882          fi
9883          ;;
9884         esac
9885       archive_cmds_need_lc_CXX=no
9886       hardcode_direct_CXX=no
9887       hardcode_automatic_CXX=yes
9888       hardcode_shlibpath_var_CXX=unsupported
9889       whole_archive_flag_spec_CXX=''
9890       link_all_deplibs_CXX=yes
9891
9892     if test "$GXX" = yes ; then
9893       lt_int_apple_cc_single_mod=no
9894       output_verbose_link_cmd='echo'
9895       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9896        lt_int_apple_cc_single_mod=yes
9897       fi
9898       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9899        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9900       else
9901           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'
9902         fi
9903         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9904         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9905           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9906             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}'
9907           else
9908             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}'
9909           fi
9910             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}'
9911       else
9912       case "$cc_basename" in
9913         xlc*)
9914          output_verbose_link_cmd='echo'
9915           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'
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           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}'
9919           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}'
9920           ;;
9921        *)
9922          ld_shlibs_CXX=no
9923           ;;
9924       esac
9925       fi
9926         ;;
9927
9928   dgux*)
9929     case $cc_basename in
9930       ec++)
9931         # FIXME: insert proper C++ library support
9932         ld_shlibs_CXX=no
9933         ;;
9934       ghcx)
9935         # Green Hills C++ Compiler
9936         # FIXME: insert proper C++ library support
9937         ld_shlibs_CXX=no
9938         ;;
9939       *)
9940         # FIXME: insert proper C++ library support
9941         ld_shlibs_CXX=no
9942         ;;
9943     esac
9944     ;;
9945   freebsd12*)
9946     # C++ shared libraries reported to be fairly broken before switch to ELF
9947     ld_shlibs_CXX=no
9948     ;;
9949   freebsd-elf*)
9950     archive_cmds_need_lc_CXX=no
9951     ;;
9952   freebsd* | kfreebsd*-gnu)
9953     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9954     # conventions
9955     ld_shlibs_CXX=yes
9956     ;;
9957   gnu*)
9958     ;;
9959   hpux9*)
9960     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9961     hardcode_libdir_separator_CXX=:
9962     export_dynamic_flag_spec_CXX='${wl}-E'
9963     hardcode_direct_CXX=yes
9964     hardcode_minus_L_CXX=yes # Not in the search PATH,
9965                                 # but as the default
9966                                 # location of the library.
9967
9968     case $cc_basename in
9969     CC)
9970       # FIXME: insert proper C++ library support
9971       ld_shlibs_CXX=no
9972       ;;
9973     aCC)
9974       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'
9975       # Commands to make compiler produce verbose output that lists
9976       # what "hidden" libraries, object files and flags are used when
9977       # linking a shared library.
9978       #
9979       # There doesn't appear to be a way to prevent this compiler from
9980       # explicitly linking system object files so we need to strip them
9981       # from the output so that they don't get included in the library
9982       # dependencies.
9983       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'
9984       ;;
9985     *)
9986       if test "$GXX" = yes; then
9987         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'
9988       else
9989         # FIXME: insert proper C++ library support
9990         ld_shlibs_CXX=no
9991       fi
9992       ;;
9993     esac
9994     ;;
9995   hpux10*|hpux11*)
9996     if test $with_gnu_ld = no; then
9997       case "$host_cpu" in
9998       hppa*64*)
9999         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10000         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10001         hardcode_libdir_separator_CXX=:
10002         ;;
10003       ia64*)
10004         hardcode_libdir_flag_spec_CXX='-L$libdir'
10005         ;;
10006       *)
10007         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10008         hardcode_libdir_separator_CXX=:
10009         export_dynamic_flag_spec_CXX='${wl}-E'
10010         ;;
10011       esac
10012     fi
10013     case "$host_cpu" in
10014     hppa*64*)
10015       hardcode_direct_CXX=no
10016       hardcode_shlibpath_var_CXX=no
10017       ;;
10018     ia64*)
10019       hardcode_direct_CXX=no
10020       hardcode_shlibpath_var_CXX=no
10021       hardcode_minus_L_CXX=yes # Not in the search PATH,
10022                                               # but as the default
10023                                               # location of the library.
10024       ;;
10025     *)
10026       hardcode_direct_CXX=yes
10027       hardcode_minus_L_CXX=yes # Not in the search PATH,
10028                                               # but as the default
10029                                               # location of the library.
10030       ;;
10031     esac
10032
10033     case $cc_basename in
10034       CC)
10035         # FIXME: insert proper C++ library support
10036         ld_shlibs_CXX=no
10037         ;;
10038       aCC)
10039         case "$host_cpu" in
10040         hppa*64*|ia64*)
10041           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10042           ;;
10043         *)
10044           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10045           ;;
10046         esac
10047         # Commands to make compiler produce verbose output that lists
10048         # what "hidden" libraries, object files and flags are used when
10049         # linking a shared library.
10050         #
10051         # There doesn't appear to be a way to prevent this compiler from
10052         # explicitly linking system object files so we need to strip them
10053         # from the output so that they don't get included in the library
10054         # dependencies.
10055         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'
10056         ;;
10057       *)
10058         if test "$GXX" = yes; then
10059           if test $with_gnu_ld = no; then
10060             case "$host_cpu" in
10061             ia64*|hppa*64*)
10062               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10063               ;;
10064             *)
10065               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'
10066               ;;
10067             esac
10068           fi
10069         else
10070           # FIXME: insert proper C++ library support
10071           ld_shlibs_CXX=no
10072         fi
10073         ;;
10074     esac
10075     ;;
10076   irix5* | irix6*)
10077     case $cc_basename in
10078       CC)
10079         # SGI C++
10080         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'
10081
10082         # Archives containing C++ object files must be created using
10083         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10084         # necessary to make sure instantiated templates are included
10085         # in the archive.
10086         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10087         ;;
10088       *)
10089         if test "$GXX" = yes; then
10090           if test "$with_gnu_ld" = no; then
10091             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'
10092           else
10093             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'
10094           fi
10095         fi
10096         link_all_deplibs_CXX=yes
10097         ;;
10098     esac
10099     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10100     hardcode_libdir_separator_CXX=:
10101     ;;
10102   linux*)
10103     case $cc_basename in
10104       KCC)
10105         # Kuck and Associates, Inc. (KAI) C++ Compiler
10106
10107         # KCC will only create a shared library if the output file
10108         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10109         # to its proper name (with version) after linking.
10110         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'
10111         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'
10112         # Commands to make compiler produce verbose output that lists
10113         # what "hidden" libraries, object files and flags are used when
10114         # linking a shared library.
10115         #
10116         # There doesn't appear to be a way to prevent this compiler from
10117         # explicitly linking system object files so we need to strip them
10118         # from the output so that they don't get included in the library
10119         # dependencies.
10120         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'
10121
10122         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10123         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10124
10125         # Archives containing C++ object files must be created using
10126         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10127         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10128         ;;
10129       icpc)
10130         # Intel C++
10131         with_gnu_ld=yes
10132         # version 8.0 and above of icpc choke on multiply defined symbols
10133         # if we add $predep_objects and $postdep_objects, however 7.1 and
10134         # earlier do not add the objects themselves.
10135         case `$CC -V 2>&1` in
10136         *"Version 7."*)
10137           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138           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'
10139           ;;
10140         *)  # Version 8.0 or newer
10141           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10143           ;;
10144         esac
10145         archive_cmds_need_lc_CXX=no
10146         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10147         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10148         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10149         ;;
10150       cxx)
10151         # Compaq C++
10152         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10153         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'
10154
10155         runpath_var=LD_RUN_PATH
10156         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10157         hardcode_libdir_separator_CXX=:
10158
10159         # Commands to make compiler produce verbose output that lists
10160         # what "hidden" libraries, object files and flags are used when
10161         # linking a shared library.
10162         #
10163         # There doesn't appear to be a way to prevent this compiler from
10164         # explicitly linking system object files so we need to strip them
10165         # from the output so that they don't get included in the library
10166         # dependencies.
10167         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'
10168         ;;
10169     esac
10170     ;;
10171   lynxos*)
10172     # FIXME: insert proper C++ library support
10173     ld_shlibs_CXX=no
10174     ;;
10175   m88k*)
10176     # FIXME: insert proper C++ library support
10177     ld_shlibs_CXX=no
10178     ;;
10179   mvs*)
10180     case $cc_basename in
10181       cxx)
10182         # FIXME: insert proper C++ library support
10183         ld_shlibs_CXX=no
10184         ;;
10185       *)
10186         # FIXME: insert proper C++ library support
10187         ld_shlibs_CXX=no
10188         ;;
10189     esac
10190     ;;
10191   netbsd*)
10192     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10193       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10194       wlarc=
10195       hardcode_libdir_flag_spec_CXX='-R$libdir'
10196       hardcode_direct_CXX=yes
10197       hardcode_shlibpath_var_CXX=no
10198     fi
10199     # Workaround some broken pre-1.5 toolchains
10200     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10201     ;;
10202   openbsd2*)
10203     # C++ shared libraries are fairly broken
10204     ld_shlibs_CXX=no
10205     ;;
10206   openbsd*)
10207     hardcode_direct_CXX=yes
10208     hardcode_shlibpath_var_CXX=no
10209     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10210     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10211     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10212       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10213       export_dynamic_flag_spec_CXX='${wl}-E'
10214       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10215     fi
10216     output_verbose_link_cmd='echo'
10217     ;;
10218   osf3*)
10219     case $cc_basename in
10220       KCC)
10221         # Kuck and Associates, Inc. (KAI) C++ Compiler
10222
10223         # KCC will only create a shared library if the output file
10224         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10225         # to its proper name (with version) after linking.
10226         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'
10227
10228         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10229         hardcode_libdir_separator_CXX=:
10230
10231         # Archives containing C++ object files must be created using
10232         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10233         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10234
10235         ;;
10236       RCC)
10237         # Rational C++ 2.4.1
10238         # FIXME: insert proper C++ library support
10239         ld_shlibs_CXX=no
10240         ;;
10241       cxx)
10242         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10243         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'
10244
10245         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10246         hardcode_libdir_separator_CXX=:
10247
10248         # Commands to make compiler produce verbose output that lists
10249         # what "hidden" libraries, object files and flags are used when
10250         # linking a shared library.
10251         #
10252         # There doesn't appear to be a way to prevent this compiler from
10253         # explicitly linking system object files so we need to strip them
10254         # from the output so that they don't get included in the library
10255         # dependencies.
10256         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'
10257         ;;
10258       *)
10259         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10260           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10261           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'
10262
10263           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10264           hardcode_libdir_separator_CXX=:
10265
10266           # Commands to make compiler produce verbose output that lists
10267           # what "hidden" libraries, object files and flags are used when
10268           # linking a shared library.
10269           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10270
10271         else
10272           # FIXME: insert proper C++ library support
10273           ld_shlibs_CXX=no
10274         fi
10275         ;;
10276     esac
10277     ;;
10278   osf4* | osf5*)
10279     case $cc_basename in
10280       KCC)
10281         # Kuck and Associates, Inc. (KAI) C++ Compiler
10282
10283         # KCC will only create a shared library if the output file
10284         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10285         # to its proper name (with version) after linking.
10286         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'
10287
10288         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10289         hardcode_libdir_separator_CXX=:
10290
10291         # Archives containing C++ object files must be created using
10292         # the KAI C++ compiler.
10293         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10294         ;;
10295       RCC)
10296         # Rational C++ 2.4.1
10297         # FIXME: insert proper C++ library support
10298         ld_shlibs_CXX=no
10299         ;;
10300       cxx)
10301         allow_undefined_flag_CXX=' -expect_unresolved \*'
10302         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'
10303         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$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;$rm $lib.exp'
10304
10305         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10306         hardcode_libdir_separator_CXX=:
10307
10308         # Commands to make compiler produce verbose output that lists
10309         # what "hidden" libraries, object files and flags are used when
10310         # linking a shared library.
10311         #
10312         # There doesn't appear to be a way to prevent this compiler from
10313         # explicitly linking system object files so we need to strip them
10314         # from the output so that they don't get included in the library
10315         # dependencies.
10316         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'
10317         ;;
10318       *)
10319         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10320           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10321          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'
10322
10323           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10324           hardcode_libdir_separator_CXX=:
10325
10326           # Commands to make compiler produce verbose output that lists
10327           # what "hidden" libraries, object files and flags are used when
10328           # linking a shared library.
10329           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10330
10331         else
10332           # FIXME: insert proper C++ library support
10333           ld_shlibs_CXX=no
10334         fi
10335         ;;
10336     esac
10337     ;;
10338   psos*)
10339     # FIXME: insert proper C++ library support
10340     ld_shlibs_CXX=no
10341     ;;
10342   sco*)
10343     archive_cmds_need_lc_CXX=no
10344     case $cc_basename in
10345       CC)
10346         # FIXME: insert proper C++ library support
10347         ld_shlibs_CXX=no
10348         ;;
10349       *)
10350         # FIXME: insert proper C++ library support
10351         ld_shlibs_CXX=no
10352         ;;
10353     esac
10354     ;;
10355   sunos4*)
10356     case $cc_basename in
10357       CC)
10358         # Sun C++ 4.x
10359         # FIXME: insert proper C++ library support
10360         ld_shlibs_CXX=no
10361         ;;
10362       lcc)
10363         # Lucid
10364         # FIXME: insert proper C++ library support
10365         ld_shlibs_CXX=no
10366         ;;
10367       *)
10368         # FIXME: insert proper C++ library support
10369         ld_shlibs_CXX=no
10370         ;;
10371     esac
10372     ;;
10373   solaris*)
10374     case $cc_basename in
10375       CC)
10376         # Sun C++ 4.2, 5.x and Centerline C++
10377         no_undefined_flag_CXX=' -zdefs'
10378         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10379         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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'
10380
10381         hardcode_libdir_flag_spec_CXX='-R$libdir'
10382         hardcode_shlibpath_var_CXX=no
10383         case $host_os in
10384           solaris2.0-5 | solaris2.0-5.*) ;;
10385           *)
10386             # The C++ compiler is used as linker so we must use $wl
10387             # flag to pass the commands to the underlying system
10388             # linker.
10389             # Supported since Solaris 2.6 (maybe 2.5.1?)
10390             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10391             ;;
10392         esac
10393         link_all_deplibs_CXX=yes
10394
10395         # Commands to make compiler produce verbose output that lists
10396         # what "hidden" libraries, object files and flags are used when
10397         # linking a shared library.
10398         #
10399         # There doesn't appear to be a way to prevent this compiler from
10400         # explicitly linking system object files so we need to strip them
10401         # from the output so that they don't get included in the library
10402         # dependencies.
10403         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'
10404
10405         # Archives containing C++ object files must be created using
10406         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10407         # necessary to make sure instantiated templates are included
10408         # in the archive.
10409         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10410         ;;
10411       gcx)
10412         # Green Hills C++ Compiler
10413         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10414
10415         # The C++ compiler must be used to create the archive.
10416         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10417         ;;
10418       *)
10419         # GNU C++ compiler with Solaris linker
10420         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10421           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10422           if $CC --version | grep -v '^2\.7' > /dev/null; then
10423             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10424             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10425             # Commands to make compiler produce verbose output that lists
10426             # what "hidden" libraries, object files and flags are used when
10427             # linking a shared library.
10428             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10429           else
10430             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10431             # platform.
10432             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10433             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
10434                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10435
10436             # Commands to make compiler produce verbose output that lists
10437             # what "hidden" libraries, object files and flags are used when
10438             # linking a shared library.
10439             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10440           fi
10441
10442           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10443         fi
10444         ;;
10445     esac
10446     ;;
10447   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10448     archive_cmds_need_lc_CXX=no
10449     ;;
10450   tandem*)
10451     case $cc_basename in
10452       NCC)
10453         # NonStop-UX NCC 3.20
10454         # FIXME: insert proper C++ library support
10455         ld_shlibs_CXX=no
10456         ;;
10457       *)
10458         # FIXME: insert proper C++ library support
10459         ld_shlibs_CXX=no
10460         ;;
10461     esac
10462     ;;
10463   vxworks*)
10464     # FIXME: insert proper C++ library support
10465     ld_shlibs_CXX=no
10466     ;;
10467   *)
10468     # FIXME: insert proper C++ library support
10469     ld_shlibs_CXX=no
10470     ;;
10471 esac
10472 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10473 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10474 test "$ld_shlibs_CXX" = no && can_build_shared=no
10475
10476 GCC_CXX="$GXX"
10477 LD_CXX="$LD"
10478
10479
10480 cat > conftest.$ac_ext <<EOF
10481 class Foo
10482 {
10483 public:
10484   Foo (void) { a = 0; }
10485 private:
10486   int a;
10487 };
10488 EOF
10489
10490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491   (eval $ac_compile) 2>&5
10492   ac_status=$?
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); }; then
10495   # Parse the compiler output and extract the necessary
10496   # objects, libraries and library flags.
10497
10498   # Sentinel used to keep track of whether or not we are before
10499   # the conftest object file.
10500   pre_test_object_deps_done=no
10501
10502   # The `*' in the case matches for architectures that use `case' in
10503   # $output_verbose_cmd can trigger glob expansion during the loop
10504   # eval without this substitution.
10505   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10506
10507   for p in `eval $output_verbose_link_cmd`; do
10508     case $p in
10509
10510     -L* | -R* | -l*)
10511        # Some compilers place space between "-{L,R}" and the path.
10512        # Remove the space.
10513        if test $p = "-L" \
10514           || test $p = "-R"; then
10515          prev=$p
10516          continue
10517        else
10518          prev=
10519        fi
10520
10521        if test "$pre_test_object_deps_done" = no; then
10522          case $p in
10523          -L* | -R*)
10524            # Internal compiler library paths should come after those
10525            # provided the user.  The postdeps already come after the
10526            # user supplied libs so there is no need to process them.
10527            if test -z "$compiler_lib_search_path_CXX"; then
10528              compiler_lib_search_path_CXX="${prev}${p}"
10529            else
10530              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10531            fi
10532            ;;
10533          # The "-l" case would never come before the object being
10534          # linked, so don't bother handling this case.
10535          esac
10536        else
10537          if test -z "$postdeps_CXX"; then
10538            postdeps_CXX="${prev}${p}"
10539          else
10540            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10541          fi
10542        fi
10543        ;;
10544
10545     *.$objext)
10546        # This assumes that the test object file only shows up
10547        # once in the compiler output.
10548        if test "$p" = "conftest.$objext"; then
10549          pre_test_object_deps_done=yes
10550          continue
10551        fi
10552
10553        if test "$pre_test_object_deps_done" = no; then
10554          if test -z "$predep_objects_CXX"; then
10555            predep_objects_CXX="$p"
10556          else
10557            predep_objects_CXX="$predep_objects_CXX $p"
10558          fi
10559        else
10560          if test -z "$postdep_objects_CXX"; then
10561            postdep_objects_CXX="$p"
10562          else
10563            postdep_objects_CXX="$postdep_objects_CXX $p"
10564          fi
10565        fi
10566        ;;
10567
10568     *) ;; # Ignore the rest.
10569
10570     esac
10571   done
10572
10573   # Clean up.
10574   rm -f a.out a.exe
10575 else
10576   echo "libtool.m4: error: problem compiling CXX test program"
10577 fi
10578
10579 $rm -f confest.$objext
10580
10581 case " $postdeps_CXX " in
10582 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10583 esac
10584
10585 lt_prog_compiler_wl_CXX=
10586 lt_prog_compiler_pic_CXX=
10587 lt_prog_compiler_static_CXX=
10588
10589 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10590 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10591
10592   # C++ specific cases for pic, static, wl, etc.
10593   if test "$GXX" = yes; then
10594     lt_prog_compiler_wl_CXX='-Wl,'
10595     lt_prog_compiler_static_CXX='-static'
10596
10597     case $host_os in
10598     aix*)
10599       # All AIX code is PIC.
10600       if test "$host_cpu" = ia64; then
10601         # AIX 5 now supports IA64 processor
10602         lt_prog_compiler_static_CXX='-Bstatic'
10603       fi
10604       ;;
10605     amigaos*)
10606       # FIXME: we need at least 68020 code to build shared libraries, but
10607       # adding the `-m68020' flag to GCC prevents building anything better,
10608       # like `-m68040'.
10609       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10610       ;;
10611     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10612       # PIC is the default for these OSes.
10613       ;;
10614     mingw* | os2* | pw32*)
10615       # This hack is so that the source file can tell whether it is being
10616       # built for inclusion in a dll (and should export symbols for example).
10617       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10618       ;;
10619     darwin* | rhapsody*)
10620       # PIC is the default on this platform
10621       # Common symbols not allowed in MH_DYLIB files
10622       lt_prog_compiler_pic_CXX='-fno-common'
10623       ;;
10624     *djgpp*)
10625       # DJGPP does not support shared libraries at all
10626       lt_prog_compiler_pic_CXX=
10627       ;;
10628     sysv4*MP*)
10629       if test -d /usr/nec; then
10630         lt_prog_compiler_pic_CXX=-Kconform_pic
10631       fi
10632       ;;
10633     hpux*)
10634       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10635       # not for PA HP-UX.
10636       case "$host_cpu" in
10637       hppa*64*|ia64*)
10638         ;;
10639       *)
10640         lt_prog_compiler_pic_CXX='-fPIC'
10641         ;;
10642       esac
10643       ;;
10644     *)
10645       lt_prog_compiler_pic_CXX='-fPIC'
10646       ;;
10647     esac
10648   else
10649     case $host_os in
10650       aix4* | aix5*)
10651         # All AIX code is PIC.
10652         if test "$host_cpu" = ia64; then
10653           # AIX 5 now supports IA64 processor
10654           lt_prog_compiler_static_CXX='-Bstatic'
10655         else
10656           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10657         fi
10658         ;;
10659       chorus*)
10660         case $cc_basename in
10661         cxch68)
10662           # Green Hills C++ Compiler
10663           # _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"
10664           ;;
10665         esac
10666         ;;
10667        darwin*)
10668          # PIC is the default on this platform
10669          # Common symbols not allowed in MH_DYLIB files
10670          case "$cc_basename" in
10671            xlc*)
10672            lt_prog_compiler_pic_CXX='-qnocommon'
10673            lt_prog_compiler_wl_CXX='-Wl,'
10674            ;;
10675          esac
10676        ;;
10677       dgux*)
10678         case $cc_basename in
10679           ec++)
10680             lt_prog_compiler_pic_CXX='-KPIC'
10681             ;;
10682           ghcx)
10683             # Green Hills C++ Compiler
10684             lt_prog_compiler_pic_CXX='-pic'
10685             ;;
10686           *)
10687             ;;
10688         esac
10689         ;;
10690       freebsd* | kfreebsd*-gnu)
10691         # FreeBSD uses GNU C++
10692         ;;
10693       hpux9* | hpux10* | hpux11*)
10694         case $cc_basename in
10695           CC)
10696             lt_prog_compiler_wl_CXX='-Wl,'
10697             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10698             if test "$host_cpu" != ia64; then
10699               lt_prog_compiler_pic_CXX='+Z'
10700             fi
10701             ;;
10702           aCC)
10703             lt_prog_compiler_wl_CXX='-Wl,'
10704             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10705             case "$host_cpu" in
10706             hppa*64*|ia64*)
10707               # +Z the default
10708               ;;
10709             *)
10710               lt_prog_compiler_pic_CXX='+Z'
10711               ;;
10712             esac
10713             ;;
10714           *)
10715             ;;
10716         esac
10717         ;;
10718       irix5* | irix6* | nonstopux*)
10719         case $cc_basename in
10720           CC)
10721             lt_prog_compiler_wl_CXX='-Wl,'
10722             lt_prog_compiler_static_CXX='-non_shared'
10723             # CC pic flag -KPIC is the default.
10724             ;;
10725           *)
10726             ;;
10727         esac
10728         ;;
10729       linux*)
10730         case $cc_basename in
10731           KCC)
10732             # KAI C++ Compiler
10733             lt_prog_compiler_wl_CXX='--backend -Wl,'
10734             lt_prog_compiler_pic_CXX='-fPIC'
10735             ;;
10736           icpc)
10737             # Intel C++
10738             lt_prog_compiler_wl_CXX='-Wl,'
10739             lt_prog_compiler_pic_CXX='-KPIC'
10740             lt_prog_compiler_static_CXX='-static'
10741             ;;
10742           cxx)
10743             # Compaq C++
10744             # Make sure the PIC flag is empty.  It appears that all Alpha
10745             # Linux and Compaq Tru64 Unix objects are PIC.
10746             lt_prog_compiler_pic_CXX=
10747             lt_prog_compiler_static_CXX='-non_shared'
10748             ;;
10749           *)
10750             ;;
10751         esac
10752         ;;
10753       lynxos*)
10754         ;;
10755       m88k*)
10756         ;;
10757       mvs*)
10758         case $cc_basename in
10759           cxx)
10760             lt_prog_compiler_pic_CXX='-W c,exportall'
10761             ;;
10762           *)
10763             ;;
10764         esac
10765         ;;
10766       netbsd*)
10767         ;;
10768       osf3* | osf4* | osf5*)
10769         case $cc_basename in
10770           KCC)
10771             lt_prog_compiler_wl_CXX='--backend -Wl,'
10772             ;;
10773           RCC)
10774             # Rational C++ 2.4.1
10775             lt_prog_compiler_pic_CXX='-pic'
10776             ;;
10777           cxx)
10778             # Digital/Compaq C++
10779             lt_prog_compiler_wl_CXX='-Wl,'
10780             # Make sure the PIC flag is empty.  It appears that all Alpha
10781             # Linux and Compaq Tru64 Unix objects are PIC.
10782             lt_prog_compiler_pic_CXX=
10783             lt_prog_compiler_static_CXX='-non_shared'
10784             ;;
10785           *)
10786             ;;
10787         esac
10788         ;;
10789       psos*)
10790         ;;
10791       sco*)
10792         case $cc_basename in
10793           CC)
10794             lt_prog_compiler_pic_CXX='-fPIC'
10795             ;;
10796           *)
10797             ;;
10798         esac
10799         ;;
10800       solaris*)
10801         case $cc_basename in
10802           CC)
10803             # Sun C++ 4.2, 5.x and Centerline C++
10804             lt_prog_compiler_pic_CXX='-KPIC'
10805             lt_prog_compiler_static_CXX='-Bstatic'
10806             lt_prog_compiler_wl_CXX='-Qoption ld '
10807             ;;
10808           gcx)
10809             # Green Hills C++ Compiler
10810             lt_prog_compiler_pic_CXX='-PIC'
10811             ;;
10812           *)
10813             ;;
10814         esac
10815         ;;
10816       sunos4*)
10817         case $cc_basename in
10818           CC)
10819             # Sun C++ 4.x
10820             lt_prog_compiler_pic_CXX='-pic'
10821             lt_prog_compiler_static_CXX='-Bstatic'
10822             ;;
10823           lcc)
10824             # Lucid
10825             lt_prog_compiler_pic_CXX='-pic'
10826             ;;
10827           *)
10828             ;;
10829         esac
10830         ;;
10831       tandem*)
10832         case $cc_basename in
10833           NCC)
10834             # NonStop-UX NCC 3.20
10835             lt_prog_compiler_pic_CXX='-KPIC'
10836             ;;
10837           *)
10838             ;;
10839         esac
10840         ;;
10841       unixware*)
10842         ;;
10843       vxworks*)
10844         ;;
10845       *)
10846         lt_prog_compiler_can_build_shared_CXX=no
10847         ;;
10848     esac
10849   fi
10850
10851 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10852 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10853
10854 #
10855 # Check to make sure the PIC flag actually works.
10856 #
10857 if test -n "$lt_prog_compiler_pic_CXX"; then
10858
10859 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10860 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10861 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864   lt_prog_compiler_pic_works_CXX=no
10865   ac_outfile=conftest.$ac_objext
10866    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10867    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10868    # Insert the option either (1) after the last *FLAGS variable, or
10869    # (2) before a word containing "conftest.", or (3) at the end.
10870    # Note that $ac_compile itself does not contain backslashes and begins
10871    # with a dollar sign (not a hyphen), so the echo should work correctly.
10872    # The option is referenced via a variable to avoid confusing sed.
10873    lt_compile=`echo "$ac_compile" | $SED \
10874    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10875    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10876    -e 's:$: $lt_compiler_flag:'`
10877    (eval echo "\"\$as_me:10877: $lt_compile\"" >&5)
10878    (eval "$lt_compile" 2>conftest.err)
10879    ac_status=$?
10880    cat conftest.err >&5
10881    echo "$as_me:10881: \$? = $ac_status" >&5
10882    if (exit $ac_status) && test -s "$ac_outfile"; then
10883      # The compiler can only warn and ignore the option if not recognized
10884      # So say no if there are warnings
10885      if test ! -s conftest.err; then
10886        lt_prog_compiler_pic_works_CXX=yes
10887      fi
10888    fi
10889    $rm conftest*
10890
10891 fi
10892 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10893 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10894
10895 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10896     case $lt_prog_compiler_pic_CXX in
10897      "" | " "*) ;;
10898      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10899      esac
10900 else
10901     lt_prog_compiler_pic_CXX=
10902      lt_prog_compiler_can_build_shared_CXX=no
10903 fi
10904
10905 fi
10906 case "$host_os" in
10907   # For platforms which do not support PIC, -DPIC is meaningless:
10908   *djgpp*)
10909     lt_prog_compiler_pic_CXX=
10910     ;;
10911   *)
10912     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10913     ;;
10914 esac
10915
10916 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10917 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10918 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10919   echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921   lt_cv_prog_compiler_c_o_CXX=no
10922    $rm -r conftest 2>/dev/null
10923    mkdir conftest
10924    cd conftest
10925    mkdir out
10926    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10927
10928    lt_compiler_flag="-o out/conftest2.$ac_objext"
10929    # Insert the option either (1) after the last *FLAGS variable, or
10930    # (2) before a word containing "conftest.", or (3) at the end.
10931    # Note that $ac_compile itself does not contain backslashes and begins
10932    # with a dollar sign (not a hyphen), so the echo should work correctly.
10933    lt_compile=`echo "$ac_compile" | $SED \
10934    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10935    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10936    -e 's:$: $lt_compiler_flag:'`
10937    (eval echo "\"\$as_me:10937: $lt_compile\"" >&5)
10938    (eval "$lt_compile" 2>out/conftest.err)
10939    ac_status=$?
10940    cat out/conftest.err >&5
10941    echo "$as_me:10941: \$? = $ac_status" >&5
10942    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10943    then
10944      # The compiler can only warn and ignore the option if not recognized
10945      # So say no if there are warnings
10946      if test ! -s out/conftest.err; then
10947        lt_cv_prog_compiler_c_o_CXX=yes
10948      fi
10949    fi
10950    chmod u+w .
10951    $rm conftest*
10952    # SGI C++ compiler will create directory out/ii_files/ for
10953    # template instantiation
10954    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10955    $rm out/* && rmdir out
10956    cd ..
10957    rmdir conftest
10958    $rm conftest*
10959
10960 fi
10961 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10962 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10963
10964
10965 hard_links="nottested"
10966 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10967   # do not overwrite the value of need_locks provided by the user
10968   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10969 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10970   hard_links=yes
10971   $rm conftest*
10972   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10973   touch conftest.a
10974   ln conftest.a conftest.b 2>&5 || hard_links=no
10975   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10976   echo "$as_me:$LINENO: result: $hard_links" >&5
10977 echo "${ECHO_T}$hard_links" >&6
10978   if test "$hard_links" = no; then
10979     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10980 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10981     need_locks=warn
10982   fi
10983 else
10984   need_locks=no
10985 fi
10986
10987 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10988 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10989
10990   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10991   case $host_os in
10992   aix4* | aix5*)
10993     # If we're using GNU nm, then we don't want the "-C" option.
10994     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10995     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10996       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'
10997     else
10998       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'
10999     fi
11000     ;;
11001   pw32*)
11002     export_symbols_cmds_CXX="$ltdll_cmds"
11003   ;;
11004   cygwin* | mingw*)
11005     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11006   ;;
11007   *)
11008     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11009   ;;
11010   esac
11011
11012 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11013 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11014 test "$ld_shlibs_CXX" = no && can_build_shared=no
11015
11016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11017 if test "$GCC" = yes; then
11018   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11019 fi
11020
11021 #
11022 # Do we need to explicitly link libc?
11023 #
11024 case "x$archive_cmds_need_lc_CXX" in
11025 x|xyes)
11026   # Assume -lc should be added
11027   archive_cmds_need_lc_CXX=yes
11028
11029   if test "$enable_shared" = yes && test "$GCC" = yes; then
11030     case $archive_cmds_CXX in
11031     *'~'*)
11032       # FIXME: we may have to deal with multi-command sequences.
11033       ;;
11034     '$CC '*)
11035       # Test whether the compiler implicitly links with -lc since on some
11036       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11037       # to ld, don't add -lc before -lgcc.
11038       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11039 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11040       $rm conftest*
11041       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11042
11043       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044   (eval $ac_compile) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); } 2>conftest.err; then
11048         soname=conftest
11049         lib=conftest
11050         libobjs=conftest.$ac_objext
11051         deplibs=
11052         wl=$lt_prog_compiler_wl_CXX
11053         compiler_flags=-v
11054         linker_flags=-v
11055         verstring=
11056         output_objdir=.
11057         libname=conftest
11058         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11059         allow_undefined_flag_CXX=
11060         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11061   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }
11065         then
11066           archive_cmds_need_lc_CXX=no
11067         else
11068           archive_cmds_need_lc_CXX=yes
11069         fi
11070         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11071       else
11072         cat conftest.err 1>&5
11073       fi
11074       $rm conftest*
11075       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11076 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11077       ;;
11078     esac
11079   fi
11080   ;;
11081 esac
11082
11083 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11084 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11085 library_names_spec=
11086 libname_spec='lib$name'
11087 soname_spec=
11088 shrext_cmds=".so"
11089 postinstall_cmds=
11090 postuninstall_cmds=
11091 finish_cmds=
11092 finish_eval=
11093 shlibpath_var=
11094 shlibpath_overrides_runpath=unknown
11095 version_type=none
11096 dynamic_linker="$host_os ld.so"
11097 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11098 if test "$GCC" = yes; then
11099   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11100   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11101     # if the path contains ";" then we assume it to be the separator
11102     # otherwise default to the standard path separator (i.e. ":") - it is
11103     # assumed that no part of a normal pathname contains ";" but that should
11104     # okay in the real world where ";" in dirpaths is itself problematic.
11105     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11106   else
11107     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11108   fi
11109 else
11110   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11111 fi
11112 need_lib_prefix=unknown
11113 hardcode_into_libs=no
11114
11115 # when you set need_version to no, make sure it does not cause -set_version
11116 # flags to be left without arguments
11117 need_version=unknown
11118
11119 case $host_os in
11120 aix3*)
11121   version_type=linux
11122   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11123   shlibpath_var=LIBPATH
11124
11125   # AIX 3 has no versioning support, so we append a major version to the name.
11126   soname_spec='${libname}${release}${shared_ext}$major'
11127   ;;
11128
11129 aix4* | aix5*)
11130   version_type=linux
11131   need_lib_prefix=no
11132   need_version=no
11133   hardcode_into_libs=yes
11134   if test "$host_cpu" = ia64; then
11135     # AIX 5 supports IA64
11136     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11137     shlibpath_var=LD_LIBRARY_PATH
11138   else
11139     # With GCC up to 2.95.x, collect2 would create an import file
11140     # for dependence libraries.  The import file would start with
11141     # the line `#! .'.  This would cause the generated library to
11142     # depend on `.', always an invalid library.  This was fixed in
11143     # development snapshots of GCC prior to 3.0.
11144     case $host_os in
11145       aix4 | aix4.[01] | aix4.[01].*)
11146       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11147            echo ' yes '
11148            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11149         :
11150       else
11151         can_build_shared=no
11152       fi
11153       ;;
11154     esac
11155     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11156     # soname into executable. Probably we can add versioning support to
11157     # collect2, so additional links can be useful in future.
11158     if test "$aix_use_runtimelinking" = yes; then
11159       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11160       # instead of lib<name>.a to let people know that these are not
11161       # typical AIX shared libraries.
11162       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163     else
11164       # We preserve .a as extension for shared libraries through AIX4.2
11165       # and later when we are not doing run time linking.
11166       library_names_spec='${libname}${release}.a $libname.a'
11167       soname_spec='${libname}${release}${shared_ext}$major'
11168     fi
11169     shlibpath_var=LIBPATH
11170   fi
11171   ;;
11172
11173 amigaos*)
11174   library_names_spec='$libname.ixlibrary $libname.a'
11175   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11176   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'
11177   ;;
11178
11179 beos*)
11180   library_names_spec='${libname}${shared_ext}'
11181   dynamic_linker="$host_os ld.so"
11182   shlibpath_var=LIBRARY_PATH
11183   ;;
11184
11185 bsdi[45]*)
11186   version_type=linux
11187   need_version=no
11188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189   soname_spec='${libname}${release}${shared_ext}$major'
11190   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11191   shlibpath_var=LD_LIBRARY_PATH
11192   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11193   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11194   # the default ld.so.conf also contains /usr/contrib/lib and
11195   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11196   # libtool to hard-code these into programs
11197   ;;
11198
11199 cygwin* | mingw* | pw32*)
11200   version_type=windows
11201   shrext_cmds=".dll"
11202   need_version=no
11203   need_lib_prefix=no
11204
11205   case $GCC,$host_os in
11206   yes,cygwin* | yes,mingw* | yes,pw32*)
11207     library_names_spec='$libname.dll.a'
11208     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11209     postinstall_cmds='base_file=`basename \${file}`;
11210       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
11211       dldir=$destdir/`dirname \$dlpath`;
11212       test -d \$dldir || mkdir -p \$dldir;
11213       $install_prog $dir/$dlname \$dldir/$dlname'
11214     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
11215       dlpath=$dir/\$dldll;
11216        $rm \$dlpath'
11217     shlibpath_overrides_runpath=yes
11218
11219     case $host_os in
11220     cygwin*)
11221       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11222       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11223       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11224       ;;
11225     mingw*)
11226       # MinGW DLLs use traditional 'lib' prefix
11227       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11228       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11229       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11230         # It is most probably a Windows format PATH printed by
11231         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11232         # path with ; separators, and with drive letters. We can handle the
11233         # drive letters (cygwin fileutils understands them), so leave them,
11234         # especially as we might pass files found there to a mingw objdump,
11235         # which wouldn't understand a cygwinified path. Ahh.
11236         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11237       else
11238         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11239       fi
11240       ;;
11241     pw32*)
11242       # pw32 DLLs use 'pw' prefix rather than 'lib'
11243       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11244       ;;
11245     esac
11246     ;;
11247
11248   *)
11249     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11250     ;;
11251   esac
11252   dynamic_linker='Win32 ld.exe'
11253   # FIXME: first we should search . and the directory the executable is in
11254   shlibpath_var=PATH
11255   ;;
11256
11257 darwin* | rhapsody*)
11258   dynamic_linker="$host_os dyld"
11259   version_type=darwin
11260   need_lib_prefix=no
11261   need_version=no
11262   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11263   soname_spec='${libname}${release}${major}$shared_ext'
11264   shlibpath_overrides_runpath=yes
11265   shlibpath_var=DYLD_LIBRARY_PATH
11266   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11267   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11268   if test "$GCC" = yes; then
11269     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"`
11270   else
11271     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11272   fi
11273   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11274   ;;
11275
11276 dgux*)
11277   version_type=linux
11278   need_lib_prefix=no
11279   need_version=no
11280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11281   soname_spec='${libname}${release}${shared_ext}$major'
11282   shlibpath_var=LD_LIBRARY_PATH
11283   ;;
11284
11285 freebsd1*)
11286   dynamic_linker=no
11287   ;;
11288
11289 kfreebsd*-gnu)
11290   version_type=linux
11291   need_lib_prefix=no
11292   need_version=no
11293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11294   soname_spec='${libname}${release}${shared_ext}$major'
11295   shlibpath_var=LD_LIBRARY_PATH
11296   shlibpath_overrides_runpath=no
11297   hardcode_into_libs=yes
11298   dynamic_linker='GNU ld.so'
11299   ;;
11300
11301 freebsd*)
11302   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11303   version_type=freebsd-$objformat
11304   case $version_type in
11305     freebsd-elf*)
11306       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11307       need_version=no
11308       need_lib_prefix=no
11309       ;;
11310     freebsd-*)
11311       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11312       need_version=yes
11313       ;;
11314   esac
11315   shlibpath_var=LD_LIBRARY_PATH
11316   case $host_os in
11317   freebsd2*)
11318     shlibpath_overrides_runpath=yes
11319     ;;
11320   freebsd3.01* | freebsdelf3.01*)
11321     shlibpath_overrides_runpath=yes
11322     hardcode_into_libs=yes
11323     ;;
11324   *) # from 3.2 on
11325     shlibpath_overrides_runpath=no
11326     hardcode_into_libs=yes
11327     ;;
11328   esac
11329   ;;
11330
11331 gnu*)
11332   version_type=linux
11333   need_lib_prefix=no
11334   need_version=no
11335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11336   soname_spec='${libname}${release}${shared_ext}$major'
11337   shlibpath_var=LD_LIBRARY_PATH
11338   hardcode_into_libs=yes
11339   ;;
11340
11341 hpux9* | hpux10* | hpux11*)
11342   # Give a soname corresponding to the major version so that dld.sl refuses to
11343   # link against other versions.
11344   version_type=sunos
11345   need_lib_prefix=no
11346   need_version=no
11347   case "$host_cpu" in
11348   ia64*)
11349     shrext_cmds='.so'
11350     hardcode_into_libs=yes
11351     dynamic_linker="$host_os dld.so"
11352     shlibpath_var=LD_LIBRARY_PATH
11353     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
11357       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11358     else
11359       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11360     fi
11361     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11362     ;;
11363    hppa*64*)
11364      shrext_cmds='.sl'
11365      hardcode_into_libs=yes
11366      dynamic_linker="$host_os dld.sl"
11367      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11368      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11369      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370      soname_spec='${libname}${release}${shared_ext}$major'
11371      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11372      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11373      ;;
11374    *)
11375     shrext_cmds='.sl'
11376     dynamic_linker="$host_os dld.sl"
11377     shlibpath_var=SHLIB_PATH
11378     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380     soname_spec='${libname}${release}${shared_ext}$major'
11381     ;;
11382   esac
11383   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11384   postinstall_cmds='chmod 555 $lib'
11385   ;;
11386
11387 irix5* | irix6* | nonstopux*)
11388   case $host_os in
11389     nonstopux*) version_type=nonstopux ;;
11390     *)
11391         if test "$lt_cv_prog_gnu_ld" = yes; then
11392                 version_type=linux
11393         else
11394                 version_type=irix
11395         fi ;;
11396   esac
11397   need_lib_prefix=no
11398   need_version=no
11399   soname_spec='${libname}${release}${shared_ext}$major'
11400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11401   case $host_os in
11402   irix5* | nonstopux*)
11403     libsuff= shlibsuff=
11404     ;;
11405   *)
11406     case $LD in # libtool.m4 will add one of these switches to LD
11407     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11408       libsuff= shlibsuff= libmagic=32-bit;;
11409     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11410       libsuff=32 shlibsuff=N32 libmagic=N32;;
11411     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11412       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11413     *) libsuff= shlibsuff= libmagic=never-match;;
11414     esac
11415     ;;
11416   esac
11417   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11418   shlibpath_overrides_runpath=no
11419   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11420   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11421   hardcode_into_libs=yes
11422   ;;
11423
11424 # No shared lib support for Linux oldld, aout, or coff.
11425 linux*oldld* | linux*aout* | linux*coff*)
11426   dynamic_linker=no
11427   ;;
11428
11429 # This must be Linux ELF.
11430 linux*)
11431   version_type=linux
11432   need_lib_prefix=no
11433   need_version=no
11434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435   soname_spec='${libname}${release}${shared_ext}$major'
11436   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11437   shlibpath_var=LD_LIBRARY_PATH
11438   shlibpath_overrides_runpath=no
11439   # This implies no fast_install, which is unacceptable.
11440   # Some rework will be needed to allow for fast_install
11441   # before this can be enabled.
11442   hardcode_into_libs=yes
11443
11444   # Append ld.so.conf contents to the search path
11445   if test -f /etc/ld.so.conf; then
11446     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11447     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11448   fi
11449
11450   # We used to test for /lib/ld.so.1 and disable shared libraries on
11451   # powerpc, because MkLinux only supported shared libraries with the
11452   # GNU dynamic linker.  Since this was broken with cross compilers,
11453   # most powerpc-linux boxes support dynamic linking these days and
11454   # people can always --disable-shared, the test was removed, and we
11455   # assume the GNU/Linux dynamic linker is in use.
11456   dynamic_linker='GNU/Linux ld.so'
11457   ;;
11458
11459 knetbsd*-gnu)
11460   version_type=linux
11461   need_lib_prefix=no
11462   need_version=no
11463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11464   soname_spec='${libname}${release}${shared_ext}$major'
11465   shlibpath_var=LD_LIBRARY_PATH
11466   shlibpath_overrides_runpath=no
11467   hardcode_into_libs=yes
11468   dynamic_linker='GNU ld.so'
11469   ;;
11470
11471 netbsd*)
11472   version_type=sunos
11473   need_lib_prefix=no
11474   need_version=no
11475   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11476     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11477     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11478     dynamic_linker='NetBSD (a.out) ld.so'
11479   else
11480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11481     soname_spec='${libname}${release}${shared_ext}$major'
11482     dynamic_linker='NetBSD ld.elf_so'
11483   fi
11484   shlibpath_var=LD_LIBRARY_PATH
11485   shlibpath_overrides_runpath=yes
11486   hardcode_into_libs=yes
11487   ;;
11488
11489 newsos6)
11490   version_type=linux
11491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492   shlibpath_var=LD_LIBRARY_PATH
11493   shlibpath_overrides_runpath=yes
11494   ;;
11495
11496 nto-qnx*)
11497   version_type=linux
11498   need_lib_prefix=no
11499   need_version=no
11500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11501   soname_spec='${libname}${release}${shared_ext}$major'
11502   shlibpath_var=LD_LIBRARY_PATH
11503   shlibpath_overrides_runpath=yes
11504   ;;
11505
11506 openbsd*)
11507   version_type=sunos
11508   need_lib_prefix=no
11509   need_version=no
11510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11511   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11512   shlibpath_var=LD_LIBRARY_PATH
11513   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11514     case $host_os in
11515       openbsd2.[89] | openbsd2.[89].*)
11516         shlibpath_overrides_runpath=no
11517         ;;
11518       *)
11519         shlibpath_overrides_runpath=yes
11520         ;;
11521       esac
11522   else
11523     shlibpath_overrides_runpath=yes
11524   fi
11525   ;;
11526
11527 os2*)
11528   libname_spec='$name'
11529   shrext_cmds=".dll"
11530   need_lib_prefix=no
11531   library_names_spec='$libname${shared_ext} $libname.a'
11532   dynamic_linker='OS/2 ld.exe'
11533   shlibpath_var=LIBPATH
11534   ;;
11535
11536 osf3* | osf4* | osf5*)
11537   version_type=osf
11538   need_lib_prefix=no
11539   need_version=no
11540   soname_spec='${libname}${release}${shared_ext}$major'
11541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11544   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11545   ;;
11546
11547 sco3.2v5*)
11548   version_type=osf
11549   soname_spec='${libname}${release}${shared_ext}$major'
11550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551   shlibpath_var=LD_LIBRARY_PATH
11552   ;;
11553
11554 solaris*)
11555   version_type=linux
11556   need_lib_prefix=no
11557   need_version=no
11558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559   soname_spec='${libname}${release}${shared_ext}$major'
11560   shlibpath_var=LD_LIBRARY_PATH
11561   shlibpath_overrides_runpath=yes
11562   hardcode_into_libs=yes
11563   # ldd complains unless libraries are executable
11564   postinstall_cmds='chmod +x $lib'
11565   ;;
11566
11567 sunos4*)
11568   version_type=sunos
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11570   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11571   shlibpath_var=LD_LIBRARY_PATH
11572   shlibpath_overrides_runpath=yes
11573   if test "$with_gnu_ld" = yes; then
11574     need_lib_prefix=no
11575   fi
11576   need_version=yes
11577   ;;
11578
11579 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11580   version_type=linux
11581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582   soname_spec='${libname}${release}${shared_ext}$major'
11583   shlibpath_var=LD_LIBRARY_PATH
11584   case $host_vendor in
11585     sni)
11586       shlibpath_overrides_runpath=no
11587       need_lib_prefix=no
11588       export_dynamic_flag_spec='${wl}-Blargedynsym'
11589       runpath_var=LD_RUN_PATH
11590       ;;
11591     siemens)
11592       need_lib_prefix=no
11593       ;;
11594     motorola)
11595       need_lib_prefix=no
11596       need_version=no
11597       shlibpath_overrides_runpath=no
11598       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11599       ;;
11600   esac
11601   ;;
11602
11603 sysv4*MP*)
11604   if test -d /usr/nec ;then
11605     version_type=linux
11606     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11607     soname_spec='$libname${shared_ext}.$major'
11608     shlibpath_var=LD_LIBRARY_PATH
11609   fi
11610   ;;
11611
11612 uts4*)
11613   version_type=linux
11614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615   soname_spec='${libname}${release}${shared_ext}$major'
11616   shlibpath_var=LD_LIBRARY_PATH
11617   ;;
11618
11619 *)
11620   dynamic_linker=no
11621   ;;
11622 esac
11623 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11624 echo "${ECHO_T}$dynamic_linker" >&6
11625 test "$dynamic_linker" = no && can_build_shared=no
11626
11627 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11628 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11629 hardcode_action_CXX=
11630 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11631    test -n "$runpath_var_CXX" || \
11632    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11633
11634   # We can hardcode non-existant directories.
11635   if test "$hardcode_direct_CXX" != no &&
11636      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11637      # have to relink, otherwise we might link with an installed library
11638      # when we should be linking with a yet-to-be-installed one
11639      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11640      test "$hardcode_minus_L_CXX" != no; then
11641     # Linking always hardcodes the temporary library directory.
11642     hardcode_action_CXX=relink
11643   else
11644     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11645     hardcode_action_CXX=immediate
11646   fi
11647 else
11648   # We cannot hardcode anything, or else we can only hardcode existing
11649   # directories.
11650   hardcode_action_CXX=unsupported
11651 fi
11652 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11653 echo "${ECHO_T}$hardcode_action_CXX" >&6
11654
11655 if test "$hardcode_action_CXX" = relink; then
11656   # Fast installation is not supported
11657   enable_fast_install=no
11658 elif test "$shlibpath_overrides_runpath" = yes ||
11659      test "$enable_shared" = no; then
11660   # Fast installation is not necessary
11661   enable_fast_install=needless
11662 fi
11663
11664 striplib=
11665 old_striplib=
11666 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11667 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11668 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11669   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11670   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11671   echo "$as_me:$LINENO: result: yes" >&5
11672 echo "${ECHO_T}yes" >&6
11673 else
11674 # FIXME - insert some real tests, host_os isn't really good enough
11675   case $host_os in
11676    darwin*)
11677        if test -n "$STRIP" ; then
11678          striplib="$STRIP -x"
11679          echo "$as_me:$LINENO: result: yes" >&5
11680 echo "${ECHO_T}yes" >&6
11681        else
11682   echo "$as_me:$LINENO: result: no" >&5
11683 echo "${ECHO_T}no" >&6
11684 fi
11685        ;;
11686    *)
11687   echo "$as_me:$LINENO: result: no" >&5
11688 echo "${ECHO_T}no" >&6
11689     ;;
11690   esac
11691 fi
11692
11693 if test "x$enable_dlopen" != xyes; then
11694   enable_dlopen=unknown
11695   enable_dlopen_self=unknown
11696   enable_dlopen_self_static=unknown
11697 else
11698   lt_cv_dlopen=no
11699   lt_cv_dlopen_libs=
11700
11701   case $host_os in
11702   beos*)
11703     lt_cv_dlopen="load_add_on"
11704     lt_cv_dlopen_libs=
11705     lt_cv_dlopen_self=yes
11706     ;;
11707
11708   mingw* | pw32*)
11709     lt_cv_dlopen="LoadLibrary"
11710     lt_cv_dlopen_libs=
11711    ;;
11712
11713   cygwin*)
11714     lt_cv_dlopen="dlopen"
11715     lt_cv_dlopen_libs=
11716    ;;
11717
11718   darwin*)
11719   # if libdl is installed we need to link against it
11720     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11721 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11722 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11723   echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725   ac_check_lib_save_LIBS=$LIBS
11726 LIBS="-ldl  $LIBS"
11727 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h.  */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h.  */
11733
11734 /* Override any gcc2 internal prototype to avoid an error.  */
11735 #ifdef __cplusplus
11736 extern "C"
11737 #endif
11738 /* We use char because int might match the return type of a gcc2
11739    builtin and then its argument prototype would still apply.  */
11740 char dlopen ();
11741 int
11742 main ()
11743 {
11744 dlopen ();
11745   ;
11746   return 0;
11747 }
11748 _ACEOF
11749 rm -f conftest.$ac_objext conftest$ac_exeext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11751   (eval $ac_link) 2>conftest.er1
11752   ac_status=$?
11753   grep -v '^ *+' conftest.er1 >conftest.err
11754   rm -f conftest.er1
11755   cat conftest.err >&5
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } &&
11758          { ac_try='test -z "$ac_cxx_werror_flag"
11759                          || test ! -s conftest.err'
11760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761   (eval $ac_try) 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); }; } &&
11765          { ac_try='test -s conftest$ac_exeext'
11766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767   (eval $ac_try) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; }; then
11771   ac_cv_lib_dl_dlopen=yes
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776 ac_cv_lib_dl_dlopen=no
11777 fi
11778 rm -f conftest.err conftest.$ac_objext \
11779       conftest$ac_exeext conftest.$ac_ext
11780 LIBS=$ac_check_lib_save_LIBS
11781 fi
11782 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11783 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11784 if test $ac_cv_lib_dl_dlopen = yes; then
11785   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11786 else
11787
11788     lt_cv_dlopen="dyld"
11789     lt_cv_dlopen_libs=
11790     lt_cv_dlopen_self=yes
11791
11792 fi
11793
11794    ;;
11795
11796   *)
11797     echo "$as_me:$LINENO: checking for shl_load" >&5
11798 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11799 if test "${ac_cv_func_shl_load+set}" = set; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802   cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11810 #define shl_load innocuous_shl_load
11811
11812 /* System header to define __stub macros and hopefully few prototypes,
11813     which can conflict with char shl_load (); below.
11814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11815     <limits.h> exists even on freestanding compilers.  */
11816
11817 #ifdef __STDC__
11818 # include <limits.h>
11819 #else
11820 # include <assert.h>
11821 #endif
11822
11823 #undef shl_load
11824
11825 /* Override any gcc2 internal prototype to avoid an error.  */
11826 #ifdef __cplusplus
11827 extern "C"
11828 {
11829 #endif
11830 /* We use char because int might match the return type of a gcc2
11831    builtin and then its argument prototype would still apply.  */
11832 char shl_load ();
11833 /* The GNU C library defines this for functions which it implements
11834     to always fail with ENOSYS.  Some functions are actually named
11835     something starting with __ and the normal name is an alias.  */
11836 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11837 choke me
11838 #else
11839 char (*f) () = shl_load;
11840 #endif
11841 #ifdef __cplusplus
11842 }
11843 #endif
11844
11845 int
11846 main ()
11847 {
11848 return f != shl_load;
11849   ;
11850   return 0;
11851 }
11852 _ACEOF
11853 rm -f conftest.$ac_objext conftest$ac_exeext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855   (eval $ac_link) 2>conftest.er1
11856   ac_status=$?
11857   grep -v '^ *+' conftest.er1 >conftest.err
11858   rm -f conftest.er1
11859   cat conftest.err >&5
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } &&
11862          { ac_try='test -z "$ac_cxx_werror_flag"
11863                          || test ! -s conftest.err'
11864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865   (eval $ac_try) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; } &&
11869          { ac_try='test -s conftest$ac_exeext'
11870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871   (eval $ac_try) 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; }; then
11875   ac_cv_func_shl_load=yes
11876 else
11877   echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11879
11880 ac_cv_func_shl_load=no
11881 fi
11882 rm -f conftest.err conftest.$ac_objext \
11883       conftest$ac_exeext conftest.$ac_ext
11884 fi
11885 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11886 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11887 if test $ac_cv_func_shl_load = yes; then
11888   lt_cv_dlopen="shl_load"
11889 else
11890   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11891 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11892 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11893   echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895   ac_check_lib_save_LIBS=$LIBS
11896 LIBS="-ldld  $LIBS"
11897 cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903
11904 /* Override any gcc2 internal prototype to avoid an error.  */
11905 #ifdef __cplusplus
11906 extern "C"
11907 #endif
11908 /* We use char because int might match the return type of a gcc2
11909    builtin and then its argument prototype would still apply.  */
11910 char shl_load ();
11911 int
11912 main ()
11913 {
11914 shl_load ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921   (eval $ac_link) 2>conftest.er1
11922   ac_status=$?
11923   grep -v '^ *+' conftest.er1 >conftest.err
11924   rm -f conftest.er1
11925   cat conftest.err >&5
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } &&
11928          { ac_try='test -z "$ac_cxx_werror_flag"
11929                          || test ! -s conftest.err'
11930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931   (eval $ac_try) 2>&5
11932   ac_status=$?
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); }; } &&
11935          { ac_try='test -s conftest$ac_exeext'
11936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937   (eval $ac_try) 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); }; }; then
11941   ac_cv_lib_dld_shl_load=yes
11942 else
11943   echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11945
11946 ac_cv_lib_dld_shl_load=no
11947 fi
11948 rm -f conftest.err conftest.$ac_objext \
11949       conftest$ac_exeext conftest.$ac_ext
11950 LIBS=$ac_check_lib_save_LIBS
11951 fi
11952 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11953 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11954 if test $ac_cv_lib_dld_shl_load = yes; then
11955   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11956 else
11957   echo "$as_me:$LINENO: checking for dlopen" >&5
11958 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11959 if test "${ac_cv_func_dlopen+set}" = set; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h.  */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h.  */
11968 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11970 #define dlopen innocuous_dlopen
11971
11972 /* System header to define __stub macros and hopefully few prototypes,
11973     which can conflict with char dlopen (); below.
11974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975     <limits.h> exists even on freestanding compilers.  */
11976
11977 #ifdef __STDC__
11978 # include <limits.h>
11979 #else
11980 # include <assert.h>
11981 #endif
11982
11983 #undef dlopen
11984
11985 /* Override any gcc2 internal prototype to avoid an error.  */
11986 #ifdef __cplusplus
11987 extern "C"
11988 {
11989 #endif
11990 /* We use char because int might match the return type of a gcc2
11991    builtin and then its argument prototype would still apply.  */
11992 char dlopen ();
11993 /* The GNU C library defines this for functions which it implements
11994     to always fail with ENOSYS.  Some functions are actually named
11995     something starting with __ and the normal name is an alias.  */
11996 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11997 choke me
11998 #else
11999 char (*f) () = dlopen;
12000 #endif
12001 #ifdef __cplusplus
12002 }
12003 #endif
12004
12005 int
12006 main ()
12007 {
12008 return f != dlopen;
12009   ;
12010   return 0;
12011 }
12012 _ACEOF
12013 rm -f conftest.$ac_objext conftest$ac_exeext
12014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12015   (eval $ac_link) 2>conftest.er1
12016   ac_status=$?
12017   grep -v '^ *+' conftest.er1 >conftest.err
12018   rm -f conftest.er1
12019   cat conftest.err >&5
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); } &&
12022          { ac_try='test -z "$ac_cxx_werror_flag"
12023                          || test ! -s conftest.err'
12024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025   (eval $ac_try) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; } &&
12029          { ac_try='test -s conftest$ac_exeext'
12030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031   (eval $ac_try) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; }; then
12035   ac_cv_func_dlopen=yes
12036 else
12037   echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 ac_cv_func_dlopen=no
12041 fi
12042 rm -f conftest.err conftest.$ac_objext \
12043       conftest$ac_exeext conftest.$ac_ext
12044 fi
12045 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12046 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12047 if test $ac_cv_func_dlopen = yes; then
12048   lt_cv_dlopen="dlopen"
12049 else
12050   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12051 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12052 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   ac_check_lib_save_LIBS=$LIBS
12056 LIBS="-ldl  $LIBS"
12057 cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h.  */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h.  */
12063
12064 /* Override any gcc2 internal prototype to avoid an error.  */
12065 #ifdef __cplusplus
12066 extern "C"
12067 #endif
12068 /* We use char because int might match the return type of a gcc2
12069    builtin and then its argument prototype would still apply.  */
12070 char dlopen ();
12071 int
12072 main ()
12073 {
12074 dlopen ();
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 rm -f conftest.$ac_objext conftest$ac_exeext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12081   (eval $ac_link) 2>conftest.er1
12082   ac_status=$?
12083   grep -v '^ *+' conftest.er1 >conftest.err
12084   rm -f conftest.er1
12085   cat conftest.err >&5
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); } &&
12088          { ac_try='test -z "$ac_cxx_werror_flag"
12089                          || test ! -s conftest.err'
12090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091   (eval $ac_try) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); }; } &&
12095          { ac_try='test -s conftest$ac_exeext'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; }; then
12101   ac_cv_lib_dl_dlopen=yes
12102 else
12103   echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12105
12106 ac_cv_lib_dl_dlopen=no
12107 fi
12108 rm -f conftest.err conftest.$ac_objext \
12109       conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12111 fi
12112 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12113 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12114 if test $ac_cv_lib_dl_dlopen = yes; then
12115   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12116 else
12117   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12118 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12119 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122   ac_check_lib_save_LIBS=$LIBS
12123 LIBS="-lsvld  $LIBS"
12124 cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h.  */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h.  */
12130
12131 /* Override any gcc2 internal prototype to avoid an error.  */
12132 #ifdef __cplusplus
12133 extern "C"
12134 #endif
12135 /* We use char because int might match the return type of a gcc2
12136    builtin and then its argument prototype would still apply.  */
12137 char dlopen ();
12138 int
12139 main ()
12140 {
12141 dlopen ();
12142   ;
12143   return 0;
12144 }
12145 _ACEOF
12146 rm -f conftest.$ac_objext conftest$ac_exeext
12147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12148   (eval $ac_link) 2>conftest.er1
12149   ac_status=$?
12150   grep -v '^ *+' conftest.er1 >conftest.err
12151   rm -f conftest.er1
12152   cat conftest.err >&5
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } &&
12155          { ac_try='test -z "$ac_cxx_werror_flag"
12156                          || test ! -s conftest.err'
12157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158   (eval $ac_try) 2>&5
12159   ac_status=$?
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); }; } &&
12162          { ac_try='test -s conftest$ac_exeext'
12163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164   (eval $ac_try) 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); }; }; then
12168   ac_cv_lib_svld_dlopen=yes
12169 else
12170   echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173 ac_cv_lib_svld_dlopen=no
12174 fi
12175 rm -f conftest.err conftest.$ac_objext \
12176       conftest$ac_exeext conftest.$ac_ext
12177 LIBS=$ac_check_lib_save_LIBS
12178 fi
12179 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12180 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12181 if test $ac_cv_lib_svld_dlopen = yes; then
12182   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12183 else
12184   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12185 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12186 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12187   echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189   ac_check_lib_save_LIBS=$LIBS
12190 LIBS="-ldld  $LIBS"
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h.  */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h.  */
12197
12198 /* Override any gcc2 internal prototype to avoid an error.  */
12199 #ifdef __cplusplus
12200 extern "C"
12201 #endif
12202 /* We use char because int might match the return type of a gcc2
12203    builtin and then its argument prototype would still apply.  */
12204 char dld_link ();
12205 int
12206 main ()
12207 {
12208 dld_link ();
12209   ;
12210   return 0;
12211 }
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215   (eval $ac_link) 2>conftest.er1
12216   ac_status=$?
12217   grep -v '^ *+' conftest.er1 >conftest.err
12218   rm -f conftest.er1
12219   cat conftest.err >&5
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } &&
12222          { ac_try='test -z "$ac_cxx_werror_flag"
12223                          || test ! -s conftest.err'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; } &&
12229          { ac_try='test -s conftest$ac_exeext'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; }; then
12235   ac_cv_lib_dld_dld_link=yes
12236 else
12237   echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12239
12240 ac_cv_lib_dld_dld_link=no
12241 fi
12242 rm -f conftest.err conftest.$ac_objext \
12243       conftest$ac_exeext conftest.$ac_ext
12244 LIBS=$ac_check_lib_save_LIBS
12245 fi
12246 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12247 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12248 if test $ac_cv_lib_dld_dld_link = yes; then
12249   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12250 fi
12251
12252
12253 fi
12254
12255
12256 fi
12257
12258
12259 fi
12260
12261
12262 fi
12263
12264
12265 fi
12266
12267     ;;
12268   esac
12269
12270   if test "x$lt_cv_dlopen" != xno; then
12271     enable_dlopen=yes
12272   else
12273     enable_dlopen=no
12274   fi
12275
12276   case $lt_cv_dlopen in
12277   dlopen)
12278     save_CPPFLAGS="$CPPFLAGS"
12279     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12280
12281     save_LDFLAGS="$LDFLAGS"
12282     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12283
12284     save_LIBS="$LIBS"
12285     LIBS="$lt_cv_dlopen_libs $LIBS"
12286
12287     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12288 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12289 if test "${lt_cv_dlopen_self+set}" = set; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292           if test "$cross_compiling" = yes; then :
12293   lt_cv_dlopen_self=cross
12294 else
12295   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12296   lt_status=$lt_dlunknown
12297   cat > conftest.$ac_ext <<EOF
12298 #line 12298 "configure"
12299 #include "confdefs.h"
12300
12301 #if HAVE_DLFCN_H
12302 #include <dlfcn.h>
12303 #endif
12304
12305 #include <stdio.h>
12306
12307 #ifdef RTLD_GLOBAL
12308 #  define LT_DLGLOBAL           RTLD_GLOBAL
12309 #else
12310 #  ifdef DL_GLOBAL
12311 #    define LT_DLGLOBAL         DL_GLOBAL
12312 #  else
12313 #    define LT_DLGLOBAL         0
12314 #  endif
12315 #endif
12316
12317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12318    find out it does not work in some platform. */
12319 #ifndef LT_DLLAZY_OR_NOW
12320 #  ifdef RTLD_LAZY
12321 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12322 #  else
12323 #    ifdef DL_LAZY
12324 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12325 #    else
12326 #      ifdef RTLD_NOW
12327 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12328 #      else
12329 #        ifdef DL_NOW
12330 #          define LT_DLLAZY_OR_NOW      DL_NOW
12331 #        else
12332 #          define LT_DLLAZY_OR_NOW      0
12333 #        endif
12334 #      endif
12335 #    endif
12336 #  endif
12337 #endif
12338
12339 #ifdef __cplusplus
12340 extern "C" void exit (int);
12341 #endif
12342
12343 void fnord() { int i=42;}
12344 int main ()
12345 {
12346   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12347   int status = $lt_dlunknown;
12348
12349   if (self)
12350     {
12351       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12352       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12353       /* dlclose (self); */
12354     }
12355
12356     exit (status);
12357 }
12358 EOF
12359   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360   (eval $ac_link) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12364     (./conftest; exit; ) 2>/dev/null
12365     lt_status=$?
12366     case x$lt_status in
12367       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12368       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12369       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12370     esac
12371   else :
12372     # compilation failed
12373     lt_cv_dlopen_self=no
12374   fi
12375 fi
12376 rm -fr conftest*
12377
12378
12379 fi
12380 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12381 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12382
12383     if test "x$lt_cv_dlopen_self" = xyes; then
12384       LDFLAGS="$LDFLAGS $link_static_flag"
12385       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12386 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12387 if test "${lt_cv_dlopen_self_static+set}" = set; then
12388   echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390           if test "$cross_compiling" = yes; then :
12391   lt_cv_dlopen_self_static=cross
12392 else
12393   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394   lt_status=$lt_dlunknown
12395   cat > conftest.$ac_ext <<EOF
12396 #line 12396 "configure"
12397 #include "confdefs.h"
12398
12399 #if HAVE_DLFCN_H
12400 #include <dlfcn.h>
12401 #endif
12402
12403 #include <stdio.h>
12404
12405 #ifdef RTLD_GLOBAL
12406 #  define LT_DLGLOBAL           RTLD_GLOBAL
12407 #else
12408 #  ifdef DL_GLOBAL
12409 #    define LT_DLGLOBAL         DL_GLOBAL
12410 #  else
12411 #    define LT_DLGLOBAL         0
12412 #  endif
12413 #endif
12414
12415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416    find out it does not work in some platform. */
12417 #ifndef LT_DLLAZY_OR_NOW
12418 #  ifdef RTLD_LAZY
12419 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12420 #  else
12421 #    ifdef DL_LAZY
12422 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12423 #    else
12424 #      ifdef RTLD_NOW
12425 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12426 #      else
12427 #        ifdef DL_NOW
12428 #          define LT_DLLAZY_OR_NOW      DL_NOW
12429 #        else
12430 #          define LT_DLLAZY_OR_NOW      0
12431 #        endif
12432 #      endif
12433 #    endif
12434 #  endif
12435 #endif
12436
12437 #ifdef __cplusplus
12438 extern "C" void exit (int);
12439 #endif
12440
12441 void fnord() { int i=42;}
12442 int main ()
12443 {
12444   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12445   int status = $lt_dlunknown;
12446
12447   if (self)
12448     {
12449       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12450       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12451       /* dlclose (self); */
12452     }
12453
12454     exit (status);
12455 }
12456 EOF
12457   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12458   (eval $ac_link) 2>&5
12459   ac_status=$?
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12462     (./conftest; exit; ) 2>/dev/null
12463     lt_status=$?
12464     case x$lt_status in
12465       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12466       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12467       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12468     esac
12469   else :
12470     # compilation failed
12471     lt_cv_dlopen_self_static=no
12472   fi
12473 fi
12474 rm -fr conftest*
12475
12476
12477 fi
12478 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12479 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12480     fi
12481
12482     CPPFLAGS="$save_CPPFLAGS"
12483     LDFLAGS="$save_LDFLAGS"
12484     LIBS="$save_LIBS"
12485     ;;
12486   esac
12487
12488   case $lt_cv_dlopen_self in
12489   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12490   *) enable_dlopen_self=unknown ;;
12491   esac
12492
12493   case $lt_cv_dlopen_self_static in
12494   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12495   *) enable_dlopen_self_static=unknown ;;
12496   esac
12497 fi
12498
12499
12500 # The else clause should only fire when bootstrapping the
12501 # libtool distribution, otherwise you forgot to ship ltmain.sh
12502 # with your package, and you will get complaints that there are
12503 # no rules to generate ltmain.sh.
12504 if test -f "$ltmain"; then
12505   # See if we are running on zsh, and set the options which allow our commands through
12506   # without removal of \ escapes.
12507   if test -n "${ZSH_VERSION+set}" ; then
12508     setopt NO_GLOB_SUBST
12509   fi
12510   # Now quote all the things that may contain metacharacters while being
12511   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12512   # variables and quote the copies for generation of the libtool script.
12513   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12514     SED SHELL STRIP \
12515     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12516     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12517     deplibs_check_method reload_flag reload_cmds need_locks \
12518     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12519     lt_cv_sys_global_symbol_to_c_name_address \
12520     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12521     old_postinstall_cmds old_postuninstall_cmds \
12522     compiler_CXX \
12523     CC_CXX \
12524     LD_CXX \
12525     lt_prog_compiler_wl_CXX \
12526     lt_prog_compiler_pic_CXX \
12527     lt_prog_compiler_static_CXX \
12528     lt_prog_compiler_no_builtin_flag_CXX \
12529     export_dynamic_flag_spec_CXX \
12530     thread_safe_flag_spec_CXX \
12531     whole_archive_flag_spec_CXX \
12532     enable_shared_with_static_runtimes_CXX \
12533     old_archive_cmds_CXX \
12534     old_archive_from_new_cmds_CXX \
12535     predep_objects_CXX \
12536     postdep_objects_CXX \
12537     predeps_CXX \
12538     postdeps_CXX \
12539     compiler_lib_search_path_CXX \
12540     archive_cmds_CXX \
12541     archive_expsym_cmds_CXX \
12542     postinstall_cmds_CXX \
12543     postuninstall_cmds_CXX \
12544     old_archive_from_expsyms_cmds_CXX \
12545     allow_undefined_flag_CXX \
12546     no_undefined_flag_CXX \
12547     export_symbols_cmds_CXX \
12548     hardcode_libdir_flag_spec_CXX \
12549     hardcode_libdir_flag_spec_ld_CXX \
12550     hardcode_libdir_separator_CXX \
12551     hardcode_automatic_CXX \
12552     module_cmds_CXX \
12553     module_expsym_cmds_CXX \
12554     lt_cv_prog_compiler_c_o_CXX \
12555     exclude_expsyms_CXX \
12556     include_expsyms_CXX; do
12557
12558     case $var in
12559     old_archive_cmds_CXX | \
12560     old_archive_from_new_cmds_CXX | \
12561     archive_cmds_CXX | \
12562     archive_expsym_cmds_CXX | \
12563     module_cmds_CXX | \
12564     module_expsym_cmds_CXX | \
12565     old_archive_from_expsyms_cmds_CXX | \
12566     export_symbols_cmds_CXX | \
12567     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12568     postinstall_cmds | postuninstall_cmds | \
12569     old_postinstall_cmds | old_postuninstall_cmds | \
12570     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12571       # Double-quote double-evaled strings.
12572       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12573       ;;
12574     *)
12575       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12576       ;;
12577     esac
12578   done
12579
12580   case $lt_echo in
12581   *'\$0 --fallback-echo"')
12582     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12583     ;;
12584   esac
12585
12586 cfgfile="$ofile"
12587
12588   cat <<__EOF__ >> "$cfgfile"
12589 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12590
12591 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12592
12593 # Shell to use when invoking shell scripts.
12594 SHELL=$lt_SHELL
12595
12596 # Whether or not to build shared libraries.
12597 build_libtool_libs=$enable_shared
12598
12599 # Whether or not to build static libraries.
12600 build_old_libs=$enable_static
12601
12602 # Whether or not to add -lc for building shared libraries.
12603 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12604
12605 # Whether or not to disallow shared libs when runtime libs are static
12606 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12607
12608 # Whether or not to optimize for fast installation.
12609 fast_install=$enable_fast_install
12610
12611 # The host system.
12612 host_alias=$host_alias
12613 host=$host
12614
12615 # An echo program that does not interpret backslashes.
12616 echo=$lt_echo
12617
12618 # The archiver.
12619 AR=$lt_AR
12620 AR_FLAGS=$lt_AR_FLAGS
12621
12622 # A C compiler.
12623 LTCC=$lt_LTCC
12624
12625 # A language-specific compiler.
12626 CC=$lt_compiler_CXX
12627
12628 # Is the compiler the GNU C compiler?
12629 with_gcc=$GCC_CXX
12630
12631 # An ERE matcher.
12632 EGREP=$lt_EGREP
12633
12634 # The linker used to build libraries.
12635 LD=$lt_LD_CXX
12636
12637 # Whether we need hard or soft links.
12638 LN_S=$lt_LN_S
12639
12640 # A BSD-compatible nm program.
12641 NM=$lt_NM
12642
12643 # A symbol stripping program
12644 STRIP=$lt_STRIP
12645
12646 # Used to examine libraries when file_magic_cmd begins "file"
12647 MAGIC_CMD=$MAGIC_CMD
12648
12649 # Used on cygwin: DLL creation program.
12650 DLLTOOL="$DLLTOOL"
12651
12652 # Used on cygwin: object dumper.
12653 OBJDUMP="$OBJDUMP"
12654
12655 # Used on cygwin: assembler.
12656 AS="$AS"
12657
12658 # The name of the directory that contains temporary libtool files.
12659 objdir=$objdir
12660
12661 # How to create reloadable object files.
12662 reload_flag=$lt_reload_flag
12663 reload_cmds=$lt_reload_cmds
12664
12665 # How to pass a linker flag through the compiler.
12666 wl=$lt_lt_prog_compiler_wl_CXX
12667
12668 # Object file suffix (normally "o").
12669 objext="$ac_objext"
12670
12671 # Old archive suffix (normally "a").
12672 libext="$libext"
12673
12674 # Shared library suffix (normally ".so").
12675 shrext_cmds='$shrext_cmds'
12676
12677 # Executable file suffix (normally "").
12678 exeext="$exeext"
12679
12680 # Additional compiler flags for building library objects.
12681 pic_flag=$lt_lt_prog_compiler_pic_CXX
12682 pic_mode=$pic_mode
12683
12684 # What is the maximum length of a command?
12685 max_cmd_len=$lt_cv_sys_max_cmd_len
12686
12687 # Does compiler simultaneously support -c and -o options?
12688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12689
12690 # Must we lock files when doing compilation ?
12691 need_locks=$lt_need_locks
12692
12693 # Do we need the lib prefix for modules?
12694 need_lib_prefix=$need_lib_prefix
12695
12696 # Do we need a version for libraries?
12697 need_version=$need_version
12698
12699 # Whether dlopen is supported.
12700 dlopen_support=$enable_dlopen
12701
12702 # Whether dlopen of programs is supported.
12703 dlopen_self=$enable_dlopen_self
12704
12705 # Whether dlopen of statically linked programs is supported.
12706 dlopen_self_static=$enable_dlopen_self_static
12707
12708 # Compiler flag to prevent dynamic linking.
12709 link_static_flag=$lt_lt_prog_compiler_static_CXX
12710
12711 # Compiler flag to turn off builtin functions.
12712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12713
12714 # Compiler flag to allow reflexive dlopens.
12715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12716
12717 # Compiler flag to generate shared objects directly from archives.
12718 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12719
12720 # Compiler flag to generate thread-safe objects.
12721 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12722
12723 # Library versioning type.
12724 version_type=$version_type
12725
12726 # Format of library name prefix.
12727 libname_spec=$lt_libname_spec
12728
12729 # List of archive names.  First name is the real one, the rest are links.
12730 # The last name is the one that the linker finds with -lNAME.
12731 library_names_spec=$lt_library_names_spec
12732
12733 # The coded name of the library, if different from the real name.
12734 soname_spec=$lt_soname_spec
12735
12736 # Commands used to build and install an old-style archive.
12737 RANLIB=$lt_RANLIB
12738 old_archive_cmds=$lt_old_archive_cmds_CXX
12739 old_postinstall_cmds=$lt_old_postinstall_cmds
12740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12741
12742 # Create an old-style archive from a shared archive.
12743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12744
12745 # Create a temporary old-style archive to link instead of a shared archive.
12746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12747
12748 # Commands used to build and install a shared archive.
12749 archive_cmds=$lt_archive_cmds_CXX
12750 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12751 postinstall_cmds=$lt_postinstall_cmds
12752 postuninstall_cmds=$lt_postuninstall_cmds
12753
12754 # Commands used to build a loadable module (assumed same as above if empty)
12755 module_cmds=$lt_module_cmds_CXX
12756 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12757
12758 # Commands to strip libraries.
12759 old_striplib=$lt_old_striplib
12760 striplib=$lt_striplib
12761
12762 # Dependencies to place before the objects being linked to create a
12763 # shared library.
12764 predep_objects=$lt_predep_objects_CXX
12765
12766 # Dependencies to place after the objects being linked to create a
12767 # shared library.
12768 postdep_objects=$lt_postdep_objects_CXX
12769
12770 # Dependencies to place before the objects being linked to create a
12771 # shared library.
12772 predeps=$lt_predeps_CXX
12773
12774 # Dependencies to place after the objects being linked to create a
12775 # shared library.
12776 postdeps=$lt_postdeps_CXX
12777
12778 # The library search path used internally by the compiler when linking
12779 # a shared library.
12780 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12781
12782 # Method to check whether dependent libraries are shared objects.
12783 deplibs_check_method=$lt_deplibs_check_method
12784
12785 # Command to use when deplibs_check_method == file_magic.
12786 file_magic_cmd=$lt_file_magic_cmd
12787
12788 # Flag that allows shared libraries with undefined symbols to be built.
12789 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12790
12791 # Flag that forces no undefined symbols.
12792 no_undefined_flag=$lt_no_undefined_flag_CXX
12793
12794 # Commands used to finish a libtool library installation in a directory.
12795 finish_cmds=$lt_finish_cmds
12796
12797 # Same as above, but a single script fragment to be evaled but not shown.
12798 finish_eval=$lt_finish_eval
12799
12800 # Take the output of nm and produce a listing of raw symbols and C names.
12801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12802
12803 # Transform the output of nm in a proper C declaration
12804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12805
12806 # Transform the output of nm in a C name address pair
12807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12808
12809 # This is the shared library runtime path variable.
12810 runpath_var=$runpath_var
12811
12812 # This is the shared library path variable.
12813 shlibpath_var=$shlibpath_var
12814
12815 # Is shlibpath searched before the hard-coded library search path?
12816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12817
12818 # How to hardcode a shared library path into an executable.
12819 hardcode_action=$hardcode_action_CXX
12820
12821 # Whether we should hardcode library paths into libraries.
12822 hardcode_into_libs=$hardcode_into_libs
12823
12824 # Flag to hardcode \$libdir into a binary during linking.
12825 # This must work even if \$libdir does not exist.
12826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12827
12828 # If ld is used when linking, flag to hardcode \$libdir into
12829 # a binary during linking. This must work even if \$libdir does
12830 # not exist.
12831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12832
12833 # Whether we need a single -rpath flag with a separated argument.
12834 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12835
12836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12837 # resulting binary.
12838 hardcode_direct=$hardcode_direct_CXX
12839
12840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12841 # resulting binary.
12842 hardcode_minus_L=$hardcode_minus_L_CXX
12843
12844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12845 # the resulting binary.
12846 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12847
12848 # Set to yes if building a shared library automatically hardcodes DIR into the library
12849 # and all subsequent libraries and executables linked against it.
12850 hardcode_automatic=$hardcode_automatic_CXX
12851
12852 # Variables whose values should be saved in libtool wrapper scripts and
12853 # restored at relink time.
12854 variables_saved_for_relink="$variables_saved_for_relink"
12855
12856 # Whether libtool must link a program against all its dependency libraries.
12857 link_all_deplibs=$link_all_deplibs_CXX
12858
12859 # Compile-time system search path for libraries
12860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12861
12862 # Run-time system search path for libraries
12863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12864
12865 # Fix the shell variable \$srcfile for the compiler.
12866 fix_srcfile_path="$fix_srcfile_path_CXX"
12867
12868 # Set to yes if exported symbols are required.
12869 always_export_symbols=$always_export_symbols_CXX
12870
12871 # The commands to list exported symbols.
12872 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12873
12874 # The commands to extract the exported symbol list from a shared archive.
12875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12876
12877 # Symbols that should not be listed in the preloaded symbols.
12878 exclude_expsyms=$lt_exclude_expsyms_CXX
12879
12880 # Symbols that must always be exported.
12881 include_expsyms=$lt_include_expsyms_CXX
12882
12883 # ### END LIBTOOL TAG CONFIG: $tagname
12884
12885 __EOF__
12886
12887
12888 else
12889   # If there is no Makefile yet, we rely on a make rule to execute
12890   # `config.status --recheck' to rerun these tests and create the
12891   # libtool script then.
12892   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12893   if test -f "$ltmain_in"; then
12894     test -f Makefile && make "$ltmain"
12895   fi
12896 fi
12897
12898
12899 ac_ext=c
12900 ac_cpp='$CPP $CPPFLAGS'
12901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12904
12905 CC=$lt_save_CC
12906 LDCXX=$LD
12907 LD=$lt_save_LD
12908 GCC=$lt_save_GCC
12909 with_gnu_ldcxx=$with_gnu_ld
12910 with_gnu_ld=$lt_save_with_gnu_ld
12911 lt_cv_path_LDCXX=$lt_cv_path_LD
12912 lt_cv_path_LD=$lt_save_path_LD
12913 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12914 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12915
12916         else
12917           tagname=""
12918         fi
12919         ;;
12920
12921       F77)
12922         if test -n "$F77" && test "X$F77" != "Xno"; then
12923
12924 ac_ext=f
12925 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12926 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12927 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12928
12929
12930 archive_cmds_need_lc_F77=no
12931 allow_undefined_flag_F77=
12932 always_export_symbols_F77=no
12933 archive_expsym_cmds_F77=
12934 export_dynamic_flag_spec_F77=
12935 hardcode_direct_F77=no
12936 hardcode_libdir_flag_spec_F77=
12937 hardcode_libdir_flag_spec_ld_F77=
12938 hardcode_libdir_separator_F77=
12939 hardcode_minus_L_F77=no
12940 hardcode_automatic_F77=no
12941 module_cmds_F77=
12942 module_expsym_cmds_F77=
12943 link_all_deplibs_F77=unknown
12944 old_archive_cmds_F77=$old_archive_cmds
12945 no_undefined_flag_F77=
12946 whole_archive_flag_spec_F77=
12947 enable_shared_with_static_runtimes_F77=no
12948
12949 # Source file extension for f77 test sources.
12950 ac_ext=f
12951
12952 # Object file extension for compiled f77 test sources.
12953 objext=o
12954 objext_F77=$objext
12955
12956 # Code to be used in simple compile tests
12957 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12958
12959 # Code to be used in simple link tests
12960 lt_simple_link_test_code="      program t\n      end\n"
12961
12962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12963
12964 # If no C compiler was specified, use CC.
12965 LTCC=${LTCC-"$CC"}
12966
12967 # Allow CC to be a program name with arguments.
12968 compiler=$CC
12969
12970
12971 # Allow CC to be a program name with arguments.
12972 lt_save_CC="$CC"
12973 CC=${F77-"f77"}
12974 compiler=$CC
12975 compiler_F77=$CC
12976 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12977
12978 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12979 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12980 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12981 echo "${ECHO_T}$can_build_shared" >&6
12982
12983 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12984 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12985 test "$can_build_shared" = "no" && enable_shared=no
12986
12987 # On AIX, shared libraries and static libraries use the same namespace, and
12988 # are all built from PIC.
12989 case "$host_os" in
12990 aix3*)
12991   test "$enable_shared" = yes && enable_static=no
12992   if test -n "$RANLIB"; then
12993     archive_cmds="$archive_cmds;\$RANLIB \$lib"
12994     postinstall_cmds='$RANLIB $lib'
12995   fi
12996   ;;
12997 aix4* | aix5*)
12998   test "$enable_shared" = yes && enable_static=no
12999   ;;
13000 esac
13001 echo "$as_me:$LINENO: result: $enable_shared" >&5
13002 echo "${ECHO_T}$enable_shared" >&6
13003
13004 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13005 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13006 # Make sure either enable_shared or enable_static is yes.
13007 test "$enable_shared" = yes || enable_static=yes
13008 echo "$as_me:$LINENO: result: $enable_static" >&5
13009 echo "${ECHO_T}$enable_static" >&6
13010
13011 test "$ld_shlibs_F77" = no && can_build_shared=no
13012
13013 GCC_F77="$G77"
13014 LD_F77="$LD"
13015
13016 lt_prog_compiler_wl_F77=
13017 lt_prog_compiler_pic_F77=
13018 lt_prog_compiler_static_F77=
13019
13020 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13021 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13022
13023   if test "$GCC" = yes; then
13024     lt_prog_compiler_wl_F77='-Wl,'
13025     lt_prog_compiler_static_F77='-static'
13026
13027     case $host_os in
13028       aix*)
13029       # All AIX code is PIC.
13030       if test "$host_cpu" = ia64; then
13031         # AIX 5 now supports IA64 processor
13032         lt_prog_compiler_static_F77='-Bstatic'
13033       fi
13034       ;;
13035
13036     amigaos*)
13037       # FIXME: we need at least 68020 code to build shared libraries, but
13038       # adding the `-m68020' flag to GCC prevents building anything better,
13039       # like `-m68040'.
13040       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13041       ;;
13042
13043     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13044       # PIC is the default for these OSes.
13045       ;;
13046
13047     mingw* | pw32* | os2*)
13048       # This hack is so that the source file can tell whether it is being
13049       # built for inclusion in a dll (and should export symbols for example).
13050       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13051       ;;
13052
13053     darwin* | rhapsody*)
13054       # PIC is the default on this platform
13055       # Common symbols not allowed in MH_DYLIB files
13056       lt_prog_compiler_pic_F77='-fno-common'
13057       ;;
13058
13059     msdosdjgpp*)
13060       # Just because we use GCC doesn't mean we suddenly get shared libraries
13061       # on systems that don't support them.
13062       lt_prog_compiler_can_build_shared_F77=no
13063       enable_shared=no
13064       ;;
13065
13066     sysv4*MP*)
13067       if test -d /usr/nec; then
13068         lt_prog_compiler_pic_F77=-Kconform_pic
13069       fi
13070       ;;
13071
13072     hpux*)
13073       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13074       # not for PA HP-UX.
13075       case "$host_cpu" in
13076       hppa*64*|ia64*)
13077         # +Z the default
13078         ;;
13079       *)
13080         lt_prog_compiler_pic_F77='-fPIC'
13081         ;;
13082       esac
13083       ;;
13084
13085     *)
13086       lt_prog_compiler_pic_F77='-fPIC'
13087       ;;
13088     esac
13089   else
13090     # PORTME Check for flag to pass linker flags through the system compiler.
13091     case $host_os in
13092     aix*)
13093       lt_prog_compiler_wl_F77='-Wl,'
13094       if test "$host_cpu" = ia64; then
13095         # AIX 5 now supports IA64 processor
13096         lt_prog_compiler_static_F77='-Bstatic'
13097       else
13098         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13099       fi
13100       ;;
13101       darwin*)
13102         # PIC is the default on this platform
13103         # Common symbols not allowed in MH_DYLIB files
13104        case "$cc_basename" in
13105          xlc*)
13106          lt_prog_compiler_pic_F77='-qnocommon'
13107          lt_prog_compiler_wl_F77='-Wl,'
13108          ;;
13109        esac
13110        ;;
13111
13112     mingw* | pw32* | os2*)
13113       # This hack is so that the source file can tell whether it is being
13114       # built for inclusion in a dll (and should export symbols for example).
13115       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13116       ;;
13117
13118     hpux9* | hpux10* | hpux11*)
13119       lt_prog_compiler_wl_F77='-Wl,'
13120       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13121       # not for PA HP-UX.
13122       case "$host_cpu" in
13123       hppa*64*|ia64*)
13124         # +Z the default
13125         ;;
13126       *)
13127         lt_prog_compiler_pic_F77='+Z'
13128         ;;
13129       esac
13130       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13131       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13132       ;;
13133
13134     irix5* | irix6* | nonstopux*)
13135       lt_prog_compiler_wl_F77='-Wl,'
13136       # PIC (with -KPIC) is the default.
13137       lt_prog_compiler_static_F77='-non_shared'
13138       ;;
13139
13140     newsos6)
13141       lt_prog_compiler_pic_F77='-KPIC'
13142       lt_prog_compiler_static_F77='-Bstatic'
13143       ;;
13144
13145     linux*)
13146       case $CC in
13147       icc* | ecc*)
13148         lt_prog_compiler_wl_F77='-Wl,'
13149         lt_prog_compiler_pic_F77='-KPIC'
13150         lt_prog_compiler_static_F77='-static'
13151         ;;
13152       ccc*)
13153         lt_prog_compiler_wl_F77='-Wl,'
13154         # All Alpha code is PIC.
13155         lt_prog_compiler_static_F77='-non_shared'
13156         ;;
13157       esac
13158       ;;
13159
13160     osf3* | osf4* | osf5*)
13161       lt_prog_compiler_wl_F77='-Wl,'
13162       # All OSF/1 code is PIC.
13163       lt_prog_compiler_static_F77='-non_shared'
13164       ;;
13165
13166     sco3.2v5*)
13167       lt_prog_compiler_pic_F77='-Kpic'
13168       lt_prog_compiler_static_F77='-dn'
13169       ;;
13170
13171     solaris*)
13172       lt_prog_compiler_wl_F77='-Wl,'
13173       lt_prog_compiler_pic_F77='-KPIC'
13174       lt_prog_compiler_static_F77='-Bstatic'
13175       ;;
13176
13177     sunos4*)
13178       lt_prog_compiler_wl_F77='-Qoption ld '
13179       lt_prog_compiler_pic_F77='-PIC'
13180       lt_prog_compiler_static_F77='-Bstatic'
13181       ;;
13182
13183     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13184       lt_prog_compiler_wl_F77='-Wl,'
13185       lt_prog_compiler_pic_F77='-KPIC'
13186       lt_prog_compiler_static_F77='-Bstatic'
13187       ;;
13188
13189     sysv4*MP*)
13190       if test -d /usr/nec ;then
13191         lt_prog_compiler_pic_F77='-Kconform_pic'
13192         lt_prog_compiler_static_F77='-Bstatic'
13193       fi
13194       ;;
13195
13196     uts4*)
13197       lt_prog_compiler_pic_F77='-pic'
13198       lt_prog_compiler_static_F77='-Bstatic'
13199       ;;
13200
13201     *)
13202       lt_prog_compiler_can_build_shared_F77=no
13203       ;;
13204     esac
13205   fi
13206
13207 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13208 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13209
13210 #
13211 # Check to make sure the PIC flag actually works.
13212 #
13213 if test -n "$lt_prog_compiler_pic_F77"; then
13214
13215 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13216 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13217 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13218   echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220   lt_prog_compiler_pic_works_F77=no
13221   ac_outfile=conftest.$ac_objext
13222    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13223    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13224    # Insert the option either (1) after the last *FLAGS variable, or
13225    # (2) before a word containing "conftest.", or (3) at the end.
13226    # Note that $ac_compile itself does not contain backslashes and begins
13227    # with a dollar sign (not a hyphen), so the echo should work correctly.
13228    # The option is referenced via a variable to avoid confusing sed.
13229    lt_compile=`echo "$ac_compile" | $SED \
13230    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13231    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13232    -e 's:$: $lt_compiler_flag:'`
13233    (eval echo "\"\$as_me:13233: $lt_compile\"" >&5)
13234    (eval "$lt_compile" 2>conftest.err)
13235    ac_status=$?
13236    cat conftest.err >&5
13237    echo "$as_me:13237: \$? = $ac_status" >&5
13238    if (exit $ac_status) && test -s "$ac_outfile"; then
13239      # The compiler can only warn and ignore the option if not recognized
13240      # So say no if there are warnings
13241      if test ! -s conftest.err; then
13242        lt_prog_compiler_pic_works_F77=yes
13243      fi
13244    fi
13245    $rm conftest*
13246
13247 fi
13248 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13249 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13250
13251 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13252     case $lt_prog_compiler_pic_F77 in
13253      "" | " "*) ;;
13254      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13255      esac
13256 else
13257     lt_prog_compiler_pic_F77=
13258      lt_prog_compiler_can_build_shared_F77=no
13259 fi
13260
13261 fi
13262 case "$host_os" in
13263   # For platforms which do not support PIC, -DPIC is meaningless:
13264   *djgpp*)
13265     lt_prog_compiler_pic_F77=
13266     ;;
13267   *)
13268     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13269     ;;
13270 esac
13271
13272 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13273 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13274 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13275   echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277   lt_cv_prog_compiler_c_o_F77=no
13278    $rm -r conftest 2>/dev/null
13279    mkdir conftest
13280    cd conftest
13281    mkdir out
13282    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13283
13284    lt_compiler_flag="-o out/conftest2.$ac_objext"
13285    # Insert the option either (1) after the last *FLAGS variable, or
13286    # (2) before a word containing "conftest.", or (3) at the end.
13287    # Note that $ac_compile itself does not contain backslashes and begins
13288    # with a dollar sign (not a hyphen), so the echo should work correctly.
13289    lt_compile=`echo "$ac_compile" | $SED \
13290    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13291    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13292    -e 's:$: $lt_compiler_flag:'`
13293    (eval echo "\"\$as_me:13293: $lt_compile\"" >&5)
13294    (eval "$lt_compile" 2>out/conftest.err)
13295    ac_status=$?
13296    cat out/conftest.err >&5
13297    echo "$as_me:13297: \$? = $ac_status" >&5
13298    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13299    then
13300      # The compiler can only warn and ignore the option if not recognized
13301      # So say no if there are warnings
13302      if test ! -s out/conftest.err; then
13303        lt_cv_prog_compiler_c_o_F77=yes
13304      fi
13305    fi
13306    chmod u+w .
13307    $rm conftest*
13308    # SGI C++ compiler will create directory out/ii_files/ for
13309    # template instantiation
13310    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13311    $rm out/* && rmdir out
13312    cd ..
13313    rmdir conftest
13314    $rm conftest*
13315
13316 fi
13317 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13318 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13319
13320
13321 hard_links="nottested"
13322 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13323   # do not overwrite the value of need_locks provided by the user
13324   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13325 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13326   hard_links=yes
13327   $rm conftest*
13328   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13329   touch conftest.a
13330   ln conftest.a conftest.b 2>&5 || hard_links=no
13331   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13332   echo "$as_me:$LINENO: result: $hard_links" >&5
13333 echo "${ECHO_T}$hard_links" >&6
13334   if test "$hard_links" = no; then
13335     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13336 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13337     need_locks=warn
13338   fi
13339 else
13340   need_locks=no
13341 fi
13342
13343 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13344 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13345
13346   runpath_var=
13347   allow_undefined_flag_F77=
13348   enable_shared_with_static_runtimes_F77=no
13349   archive_cmds_F77=
13350   archive_expsym_cmds_F77=
13351   old_archive_From_new_cmds_F77=
13352   old_archive_from_expsyms_cmds_F77=
13353   export_dynamic_flag_spec_F77=
13354   whole_archive_flag_spec_F77=
13355   thread_safe_flag_spec_F77=
13356   hardcode_libdir_flag_spec_F77=
13357   hardcode_libdir_flag_spec_ld_F77=
13358   hardcode_libdir_separator_F77=
13359   hardcode_direct_F77=no
13360   hardcode_minus_L_F77=no
13361   hardcode_shlibpath_var_F77=unsupported
13362   link_all_deplibs_F77=unknown
13363   hardcode_automatic_F77=no
13364   module_cmds_F77=
13365   module_expsym_cmds_F77=
13366   always_export_symbols_F77=no
13367   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13368   # include_expsyms should be a list of space-separated symbols to be *always*
13369   # included in the symbol list
13370   include_expsyms_F77=
13371   # exclude_expsyms can be an extended regexp of symbols to exclude
13372   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13373   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13374   # as well as any symbol that contains `d'.
13375   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13376   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13377   # platforms (ab)use it in PIC code, but their linkers get confused if
13378   # the symbol is explicitly referenced.  Since portable code cannot
13379   # rely on this symbol name, it's probably fine to never include it in
13380   # preloaded symbol tables.
13381   extract_expsyms_cmds=
13382
13383   case $host_os in
13384   cygwin* | mingw* | pw32*)
13385     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13386     # When not using gcc, we currently assume that we are using
13387     # Microsoft Visual C++.
13388     if test "$GCC" != yes; then
13389       with_gnu_ld=no
13390     fi
13391     ;;
13392   openbsd*)
13393     with_gnu_ld=no
13394     ;;
13395   esac
13396
13397   ld_shlibs_F77=yes
13398   if test "$with_gnu_ld" = yes; then
13399     # If archive_cmds runs LD, not CC, wlarc should be empty
13400     wlarc='${wl}'
13401
13402     # See if GNU ld supports shared libraries.
13403     case $host_os in
13404     aix3* | aix4* | aix5*)
13405       # On AIX/PPC, the GNU linker is very broken
13406       if test "$host_cpu" != ia64; then
13407         ld_shlibs_F77=no
13408         cat <<EOF 1>&2
13409
13410 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13411 *** to be unable to reliably create shared libraries on AIX.
13412 *** Therefore, libtool is disabling shared libraries support.  If you
13413 *** really care for shared libraries, you may want to modify your PATH
13414 *** so that a non-GNU linker is found, and then restart.
13415
13416 EOF
13417       fi
13418       ;;
13419
13420     amigaos*)
13421       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)'
13422       hardcode_libdir_flag_spec_F77='-L$libdir'
13423       hardcode_minus_L_F77=yes
13424
13425       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13426       # that the semantics of dynamic libraries on AmigaOS, at least up
13427       # to version 4, is to share data among multiple programs linked
13428       # with the same dynamic library.  Since this doesn't match the
13429       # behavior of shared libraries on other platforms, we can't use
13430       # them.
13431       ld_shlibs_F77=no
13432       ;;
13433
13434     beos*)
13435       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13436         allow_undefined_flag_F77=unsupported
13437         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13438         # support --undefined.  This deserves some investigation.  FIXME
13439         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13440       else
13441         ld_shlibs_F77=no
13442       fi
13443       ;;
13444
13445     cygwin* | mingw* | pw32*)
13446       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13447       # as there is no search path for DLLs.
13448       hardcode_libdir_flag_spec_F77='-L$libdir'
13449       allow_undefined_flag_F77=unsupported
13450       always_export_symbols_F77=no
13451       enable_shared_with_static_runtimes_F77=yes
13452       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13453
13454       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13455         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13456         # If the export-symbols file already is a .def file (1st line
13457         # is EXPORTS), use it as is; otherwise, prepend...
13458         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13459           cp $export_symbols $output_objdir/$soname.def;
13460         else
13461           echo EXPORTS > $output_objdir/$soname.def;
13462           cat $export_symbols >> $output_objdir/$soname.def;
13463         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13464       else
13465         ld_shlibs=no
13466       fi
13467       ;;
13468
13469     netbsd*)
13470       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13471         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13472         wlarc=
13473       else
13474         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13475         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13476       fi
13477       ;;
13478
13479     solaris* | sysv5*)
13480       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13481         ld_shlibs_F77=no
13482         cat <<EOF 1>&2
13483
13484 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13485 *** create shared libraries on Solaris systems.  Therefore, libtool
13486 *** is disabling shared libraries support.  We urge you to upgrade GNU
13487 *** binutils to release 2.9.1 or newer.  Another option is to modify
13488 *** your PATH or compiler configuration so that the native linker is
13489 *** used, and then restart.
13490
13491 EOF
13492       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13493         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13494         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13495       else
13496         ld_shlibs_F77=no
13497       fi
13498       ;;
13499
13500     sunos4*)
13501       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13502       wlarc=
13503       hardcode_direct_F77=yes
13504       hardcode_shlibpath_var_F77=no
13505       ;;
13506
13507   linux*)
13508     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13509         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13510         archive_cmds_F77="$tmp_archive_cmds"
13511       supports_anon_versioning=no
13512       case `$LD -v 2>/dev/null` in
13513         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13514         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13515         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13516         *\ 2.11.*) ;; # other 2.11 versions
13517         *) supports_anon_versioning=yes ;;
13518       esac
13519       if test $supports_anon_versioning = yes; then
13520         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
13521         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13522       else
13523         archive_expsym_cmds_F77="$tmp_archive_cmds"
13524       fi
13525     else
13526       ld_shlibs_F77=no
13527     fi
13528     ;;
13529
13530     *)
13531       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13532         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13534       else
13535         ld_shlibs_F77=no
13536       fi
13537       ;;
13538     esac
13539
13540     if test "$ld_shlibs_F77" = yes; then
13541       runpath_var=LD_RUN_PATH
13542       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13543       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13544       # ancient GNU ld didn't support --whole-archive et. al.
13545       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13546         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13547       else
13548         whole_archive_flag_spec_F77=
13549       fi
13550     fi
13551   else
13552     # PORTME fill in a description of your system's linker (not GNU ld)
13553     case $host_os in
13554     aix3*)
13555       allow_undefined_flag_F77=unsupported
13556       always_export_symbols_F77=yes
13557       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'
13558       # Note: this linker hardcodes the directories in LIBPATH if there
13559       # are no directories specified by -L.
13560       hardcode_minus_L_F77=yes
13561       if test "$GCC" = yes && test -z "$link_static_flag"; then
13562         # Neither direct hardcoding nor static linking is supported with a
13563         # broken collect2.
13564         hardcode_direct_F77=unsupported
13565       fi
13566       ;;
13567
13568     aix4* | aix5*)
13569       if test "$host_cpu" = ia64; then
13570         # On IA64, the linker does run time linking by default, so we don't
13571         # have to do anything special.
13572         aix_use_runtimelinking=no
13573         exp_sym_flag='-Bexport'
13574         no_entry_flag=""
13575       else
13576         # If we're using GNU nm, then we don't want the "-C" option.
13577         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13578         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13579           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'
13580         else
13581           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'
13582         fi
13583         aix_use_runtimelinking=no
13584
13585         # Test if we are trying to use run time linking or normal
13586         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13587         # need to do runtime linking.
13588         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13589           for ld_flag in $LDFLAGS; do
13590           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13591             aix_use_runtimelinking=yes
13592             break
13593           fi
13594           done
13595         esac
13596
13597         exp_sym_flag='-bexport'
13598         no_entry_flag='-bnoentry'
13599       fi
13600
13601       # When large executables or shared objects are built, AIX ld can
13602       # have problems creating the table of contents.  If linking a library
13603       # or program results in "error TOC overflow" add -mminimal-toc to
13604       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13605       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13606
13607       archive_cmds_F77=''
13608       hardcode_direct_F77=yes
13609       hardcode_libdir_separator_F77=':'
13610       link_all_deplibs_F77=yes
13611
13612       if test "$GCC" = yes; then
13613         case $host_os in aix4.012|aix4.012.*)
13614         # We only want to do this on AIX 4.2 and lower, the check
13615         # below for broken collect2 doesn't work under 4.3+
13616           collect2name=`${CC} -print-prog-name=collect2`
13617           if test -f "$collect2name" && \
13618            strings "$collect2name" | grep resolve_lib_name >/dev/null
13619           then
13620           # We have reworked collect2
13621           hardcode_direct_F77=yes
13622           else
13623           # We have old collect2
13624           hardcode_direct_F77=unsupported
13625           # It fails to find uninstalled libraries when the uninstalled
13626           # path is not listed in the libpath.  Setting hardcode_minus_L
13627           # to unsupported forces relinking
13628           hardcode_minus_L_F77=yes
13629           hardcode_libdir_flag_spec_F77='-L$libdir'
13630           hardcode_libdir_separator_F77=
13631           fi
13632         esac
13633         shared_flag='-shared'
13634       else
13635         # not using gcc
13636         if test "$host_cpu" = ia64; then
13637         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13638         # chokes on -Wl,-G. The following line is correct:
13639           shared_flag='-G'
13640         else
13641         if test "$aix_use_runtimelinking" = yes; then
13642             shared_flag='${wl}-G'
13643           else
13644             shared_flag='${wl}-bM:SRE'
13645         fi
13646         fi
13647       fi
13648
13649       # It seems that -bexpall does not export symbols beginning with
13650       # underscore (_), so it is better to generate a list of symbols to export.
13651       always_export_symbols_F77=yes
13652       if test "$aix_use_runtimelinking" = yes; then
13653         # Warning - without using the other runtime loading flags (-brtl),
13654         # -berok will link without error, but may produce a broken library.
13655         allow_undefined_flag_F77='-berok'
13656        # Determine the default libpath from the value encoded in an empty executable.
13657        cat >conftest.$ac_ext <<_ACEOF
13658       program main
13659
13660       end
13661 _ACEOF
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13664   (eval $ac_link) 2>conftest.er1
13665   ac_status=$?
13666   grep -v '^ *+' conftest.er1 >conftest.err
13667   rm -f conftest.er1
13668   cat conftest.err >&5
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); } &&
13671          { ac_try='test -z "$ac_f77_werror_flag"
13672                          || test ! -s conftest.err'
13673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674   (eval $ac_try) 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; } &&
13678          { ac_try='test -s conftest$ac_exeext'
13679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680   (eval $ac_try) 2>&5
13681   ac_status=$?
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); }; }; then
13684
13685 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13686 }'`
13687 # Check for a 64-bit object if we didn't find anything.
13688 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; }
13689 }'`; fi
13690 else
13691   echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694 fi
13695 rm -f conftest.err conftest.$ac_objext \
13696       conftest$ac_exeext conftest.$ac_ext
13697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13698
13699        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13700         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"
13701        else
13702         if test "$host_cpu" = ia64; then
13703           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13704           allow_undefined_flag_F77="-z nodefs"
13705           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"
13706         else
13707          # Determine the default libpath from the value encoded in an empty executable.
13708          cat >conftest.$ac_ext <<_ACEOF
13709       program main
13710
13711       end
13712 _ACEOF
13713 rm -f conftest.$ac_objext conftest$ac_exeext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13715   (eval $ac_link) 2>conftest.er1
13716   ac_status=$?
13717   grep -v '^ *+' conftest.er1 >conftest.err
13718   rm -f conftest.er1
13719   cat conftest.err >&5
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); } &&
13722          { ac_try='test -z "$ac_f77_werror_flag"
13723                          || test ! -s conftest.err'
13724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725   (eval $ac_try) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); }; } &&
13729          { ac_try='test -s conftest$ac_exeext'
13730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731   (eval $ac_try) 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }; }; then
13735
13736 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13737 }'`
13738 # Check for a 64-bit object if we didn't find anything.
13739 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; }
13740 }'`; fi
13741 else
13742   echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13744
13745 fi
13746 rm -f conftest.err conftest.$ac_objext \
13747       conftest$ac_exeext conftest.$ac_ext
13748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13749
13750          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13751           # Warning - without using the other run time loading flags,
13752           # -berok will link without error, but may produce a broken library.
13753           no_undefined_flag_F77=' ${wl}-bernotok'
13754           allow_undefined_flag_F77=' ${wl}-berok'
13755           # -bexpall does not export symbols beginning with underscore (_)
13756           always_export_symbols_F77=yes
13757           # Exported symbols can be pulled into shared objects from archives
13758           whole_archive_flag_spec_F77=' '
13759           archive_cmds_need_lc_F77=yes
13760           # This is similar to how AIX traditionally builds it's shared libraries.
13761           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'
13762         fi
13763       fi
13764       ;;
13765
13766     amigaos*)
13767       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)'
13768       hardcode_libdir_flag_spec_F77='-L$libdir'
13769       hardcode_minus_L_F77=yes
13770       # see comment about different semantics on the GNU ld section
13771       ld_shlibs_F77=no
13772       ;;
13773
13774     bsdi[45]*)
13775       export_dynamic_flag_spec_F77=-rdynamic
13776       ;;
13777
13778     cygwin* | mingw* | pw32*)
13779       # When not using gcc, we currently assume that we are using
13780       # Microsoft Visual C++.
13781       # hardcode_libdir_flag_spec is actually meaningless, as there is
13782       # no search path for DLLs.
13783       hardcode_libdir_flag_spec_F77=' '
13784       allow_undefined_flag_F77=unsupported
13785       # Tell ltmain to make .lib files, not .a files.
13786       libext=lib
13787       # Tell ltmain to make .dll files, not .so files.
13788       shrext_cmds=".dll"
13789       # FIXME: Setting linknames here is a bad hack.
13790       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
13791       # The linker will automatically build a .lib file if we build a DLL.
13792       old_archive_From_new_cmds_F77='true'
13793       # FIXME: Should let the user specify the lib program.
13794       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13795       fix_srcfile_path='`cygpath -w "$srcfile"`'
13796       enable_shared_with_static_runtimes_F77=yes
13797       ;;
13798
13799     darwin* | rhapsody*)
13800       case "$host_os" in
13801         rhapsody* | darwin1.[012])
13802          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13803          ;;
13804        *) # Darwin 1.3 on
13805          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13806            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13807          else
13808            case ${MACOSX_DEPLOYMENT_TARGET} in
13809              10.[012])
13810                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13811                ;;
13812              10.*)
13813                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13814                ;;
13815            esac
13816          fi
13817          ;;
13818       esac
13819       archive_cmds_need_lc_F77=no
13820       hardcode_direct_F77=no
13821       hardcode_automatic_F77=yes
13822       hardcode_shlibpath_var_F77=unsupported
13823       whole_archive_flag_spec_F77=''
13824       link_all_deplibs_F77=yes
13825     if test "$GCC" = yes ; then
13826         output_verbose_link_cmd='echo'
13827         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13828       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13829       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13830       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}'
13831       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}'
13832     else
13833       case "$cc_basename" in
13834         xlc*)
13835          output_verbose_link_cmd='echo'
13836          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13837          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13838           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13839          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}'
13840           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}'
13841           ;;
13842        *)
13843          ld_shlibs_F77=no
13844           ;;
13845       esac
13846     fi
13847       ;;
13848
13849     dgux*)
13850       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851       hardcode_libdir_flag_spec_F77='-L$libdir'
13852       hardcode_shlibpath_var_F77=no
13853       ;;
13854
13855     freebsd1*)
13856       ld_shlibs_F77=no
13857       ;;
13858
13859     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13860     # support.  Future versions do this automatically, but an explicit c++rt0.o
13861     # does not break anything, and helps significantly (at the cost of a little
13862     # extra space).
13863     freebsd2.2*)
13864       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13865       hardcode_libdir_flag_spec_F77='-R$libdir'
13866       hardcode_direct_F77=yes
13867       hardcode_shlibpath_var_F77=no
13868       ;;
13869
13870     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13871     freebsd2*)
13872       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13873       hardcode_direct_F77=yes
13874       hardcode_minus_L_F77=yes
13875       hardcode_shlibpath_var_F77=no
13876       ;;
13877
13878     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13879     freebsd* | kfreebsd*-gnu)
13880       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13881       hardcode_libdir_flag_spec_F77='-R$libdir'
13882       hardcode_direct_F77=yes
13883       hardcode_shlibpath_var_F77=no
13884       ;;
13885
13886     hpux9*)
13887       if test "$GCC" = yes; then
13888         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'
13889       else
13890         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'
13891       fi
13892       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13893       hardcode_libdir_separator_F77=:
13894       hardcode_direct_F77=yes
13895
13896       # hardcode_minus_L: Not really in the search PATH,
13897       # but as the default location of the library.
13898       hardcode_minus_L_F77=yes
13899       export_dynamic_flag_spec_F77='${wl}-E'
13900       ;;
13901
13902     hpux10* | hpux11*)
13903       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13904         case "$host_cpu" in
13905         hppa*64*|ia64*)
13906           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13907           ;;
13908         *)
13909           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13910           ;;
13911         esac
13912       else
13913         case "$host_cpu" in
13914         hppa*64*|ia64*)
13915           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13916           ;;
13917         *)
13918           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13919           ;;
13920         esac
13921       fi
13922       if test "$with_gnu_ld" = no; then
13923         case "$host_cpu" in
13924         hppa*64*)
13925           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13926           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13927           hardcode_libdir_separator_F77=:
13928           hardcode_direct_F77=no
13929           hardcode_shlibpath_var_F77=no
13930           ;;
13931         ia64*)
13932           hardcode_libdir_flag_spec_F77='-L$libdir'
13933           hardcode_direct_F77=no
13934           hardcode_shlibpath_var_F77=no
13935
13936           # hardcode_minus_L: Not really in the search PATH,
13937           # but as the default location of the library.
13938           hardcode_minus_L_F77=yes
13939           ;;
13940         *)
13941           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13942           hardcode_libdir_separator_F77=:
13943           hardcode_direct_F77=yes
13944           export_dynamic_flag_spec_F77='${wl}-E'
13945
13946           # hardcode_minus_L: Not really in the search PATH,
13947           # but as the default location of the library.
13948           hardcode_minus_L_F77=yes
13949           ;;
13950         esac
13951       fi
13952       ;;
13953
13954     irix5* | irix6* | nonstopux*)
13955       if test "$GCC" = yes; then
13956         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'
13957       else
13958         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'
13959         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13960       fi
13961       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13962       hardcode_libdir_separator_F77=:
13963       link_all_deplibs_F77=yes
13964       ;;
13965
13966     netbsd*)
13967       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13968         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13969       else
13970         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13971       fi
13972       hardcode_libdir_flag_spec_F77='-R$libdir'
13973       hardcode_direct_F77=yes
13974       hardcode_shlibpath_var_F77=no
13975       ;;
13976
13977     newsos6)
13978       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13979       hardcode_direct_F77=yes
13980       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13981       hardcode_libdir_separator_F77=:
13982       hardcode_shlibpath_var_F77=no
13983       ;;
13984
13985     openbsd*)
13986       hardcode_direct_F77=yes
13987       hardcode_shlibpath_var_F77=no
13988       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13989         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13990         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13991         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13992         export_dynamic_flag_spec_F77='${wl}-E'
13993       else
13994        case $host_os in
13995          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13996            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13997            hardcode_libdir_flag_spec_F77='-R$libdir'
13998            ;;
13999          *)
14000            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14001            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14002            ;;
14003        esac
14004       fi
14005       ;;
14006
14007     os2*)
14008       hardcode_libdir_flag_spec_F77='-L$libdir'
14009       hardcode_minus_L_F77=yes
14010       allow_undefined_flag_F77=unsupported
14011       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'
14012       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14013       ;;
14014
14015     osf3*)
14016       if test "$GCC" = yes; then
14017         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14018         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'
14019       else
14020         allow_undefined_flag_F77=' -expect_unresolved \*'
14021         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'
14022       fi
14023       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14024       hardcode_libdir_separator_F77=:
14025       ;;
14026
14027     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14028       if test "$GCC" = yes; then
14029         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14030         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'
14031         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14032       else
14033         allow_undefined_flag_F77=' -expect_unresolved \*'
14034         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'
14035         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; $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'
14036         # Both c and cxx compiler support -rpath directly
14037         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14038       fi
14039       hardcode_libdir_separator_F77=:
14040       ;;
14041
14042     sco3.2v5*)
14043       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14044       hardcode_shlibpath_var_F77=no
14045       export_dynamic_flag_spec_F77='${wl}-Bexport'
14046       runpath_var=LD_RUN_PATH
14047       hardcode_runpath_var=yes
14048       ;;
14049
14050     solaris*)
14051       no_undefined_flag_F77=' -z text'
14052       if test "$GCC" = yes; then
14053         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14054         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
14055       else
14056         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14057         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14058       fi
14059       hardcode_libdir_flag_spec_F77='-R$libdir'
14060       hardcode_shlibpath_var_F77=no
14061       case $host_os in
14062       solaris2.[0-5] | solaris2.[0-5].*) ;;
14063       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14064         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14065       esac
14066       link_all_deplibs_F77=yes
14067       ;;
14068
14069     sunos4*)
14070       if test "x$host_vendor" = xsequent; then
14071         # Use $CC to link under sequent, because it throws in some extra .o
14072         # files that make .init and .fini sections work.
14073         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14074       else
14075         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14076       fi
14077       hardcode_libdir_flag_spec_F77='-L$libdir'
14078       hardcode_direct_F77=yes
14079       hardcode_minus_L_F77=yes
14080       hardcode_shlibpath_var_F77=no
14081       ;;
14082
14083     sysv4)
14084       case $host_vendor in
14085         sni)
14086           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14087           hardcode_direct_F77=yes # is this really true???
14088         ;;
14089         siemens)
14090           ## LD is ld it makes a PLAMLIB
14091           ## CC just makes a GrossModule.
14092           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14093           reload_cmds_F77='$CC -r -o $output$reload_objs'
14094           hardcode_direct_F77=no
14095         ;;
14096         motorola)
14097           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14098           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14099         ;;
14100       esac
14101       runpath_var='LD_RUN_PATH'
14102       hardcode_shlibpath_var_F77=no
14103       ;;
14104
14105     sysv4.3*)
14106       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14107       hardcode_shlibpath_var_F77=no
14108       export_dynamic_flag_spec_F77='-Bexport'
14109       ;;
14110
14111     sysv4*MP*)
14112       if test -d /usr/nec; then
14113         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14114         hardcode_shlibpath_var_F77=no
14115         runpath_var=LD_RUN_PATH
14116         hardcode_runpath_var=yes
14117         ld_shlibs_F77=yes
14118       fi
14119       ;;
14120
14121     sysv4.2uw2*)
14122       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14123       hardcode_direct_F77=yes
14124       hardcode_minus_L_F77=no
14125       hardcode_shlibpath_var_F77=no
14126       hardcode_runpath_var=yes
14127       runpath_var=LD_RUN_PATH
14128       ;;
14129
14130    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14131       no_undefined_flag_F77='${wl}-z ${wl}text'
14132       if test "$GCC" = yes; then
14133         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14134       else
14135         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14136       fi
14137       runpath_var='LD_RUN_PATH'
14138       hardcode_shlibpath_var_F77=no
14139       ;;
14140
14141     sysv5*)
14142       no_undefined_flag_F77=' -z text'
14143       # $CC -shared without GNU ld will not create a library from C++
14144       # object files and a static libstdc++, better avoid it by now
14145       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14146       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14147       hardcode_libdir_flag_spec_F77=
14148       hardcode_shlibpath_var_F77=no
14149       runpath_var='LD_RUN_PATH'
14150       ;;
14151
14152     uts4*)
14153       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14154       hardcode_libdir_flag_spec_F77='-L$libdir'
14155       hardcode_shlibpath_var_F77=no
14156       ;;
14157
14158     *)
14159       ld_shlibs_F77=no
14160       ;;
14161     esac
14162   fi
14163
14164 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14165 echo "${ECHO_T}$ld_shlibs_F77" >&6
14166 test "$ld_shlibs_F77" = no && can_build_shared=no
14167
14168 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14169 if test "$GCC" = yes; then
14170   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14171 fi
14172
14173 #
14174 # Do we need to explicitly link libc?
14175 #
14176 case "x$archive_cmds_need_lc_F77" in
14177 x|xyes)
14178   # Assume -lc should be added
14179   archive_cmds_need_lc_F77=yes
14180
14181   if test "$enable_shared" = yes && test "$GCC" = yes; then
14182     case $archive_cmds_F77 in
14183     *'~'*)
14184       # FIXME: we may have to deal with multi-command sequences.
14185       ;;
14186     '$CC '*)
14187       # Test whether the compiler implicitly links with -lc since on some
14188       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14189       # to ld, don't add -lc before -lgcc.
14190       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14191 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14192       $rm conftest*
14193       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14194
14195       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196   (eval $ac_compile) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); } 2>conftest.err; then
14200         soname=conftest
14201         lib=conftest
14202         libobjs=conftest.$ac_objext
14203         deplibs=
14204         wl=$lt_prog_compiler_wl_F77
14205         compiler_flags=-v
14206         linker_flags=-v
14207         verstring=
14208         output_objdir=.
14209         libname=conftest
14210         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14211         allow_undefined_flag_F77=
14212         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14213   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); }
14217         then
14218           archive_cmds_need_lc_F77=no
14219         else
14220           archive_cmds_need_lc_F77=yes
14221         fi
14222         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14223       else
14224         cat conftest.err 1>&5
14225       fi
14226       $rm conftest*
14227       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14228 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14229       ;;
14230     esac
14231   fi
14232   ;;
14233 esac
14234
14235 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14236 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14237 library_names_spec=
14238 libname_spec='lib$name'
14239 soname_spec=
14240 shrext_cmds=".so"
14241 postinstall_cmds=
14242 postuninstall_cmds=
14243 finish_cmds=
14244 finish_eval=
14245 shlibpath_var=
14246 shlibpath_overrides_runpath=unknown
14247 version_type=none
14248 dynamic_linker="$host_os ld.so"
14249 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14250 if test "$GCC" = yes; then
14251   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14252   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14253     # if the path contains ";" then we assume it to be the separator
14254     # otherwise default to the standard path separator (i.e. ":") - it is
14255     # assumed that no part of a normal pathname contains ";" but that should
14256     # okay in the real world where ";" in dirpaths is itself problematic.
14257     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14258   else
14259     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14260   fi
14261 else
14262   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14263 fi
14264 need_lib_prefix=unknown
14265 hardcode_into_libs=no
14266
14267 # when you set need_version to no, make sure it does not cause -set_version
14268 # flags to be left without arguments
14269 need_version=unknown
14270
14271 case $host_os in
14272 aix3*)
14273   version_type=linux
14274   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14275   shlibpath_var=LIBPATH
14276
14277   # AIX 3 has no versioning support, so we append a major version to the name.
14278   soname_spec='${libname}${release}${shared_ext}$major'
14279   ;;
14280
14281 aix4* | aix5*)
14282   version_type=linux
14283   need_lib_prefix=no
14284   need_version=no
14285   hardcode_into_libs=yes
14286   if test "$host_cpu" = ia64; then
14287     # AIX 5 supports IA64
14288     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14289     shlibpath_var=LD_LIBRARY_PATH
14290   else
14291     # With GCC up to 2.95.x, collect2 would create an import file
14292     # for dependence libraries.  The import file would start with
14293     # the line `#! .'.  This would cause the generated library to
14294     # depend on `.', always an invalid library.  This was fixed in
14295     # development snapshots of GCC prior to 3.0.
14296     case $host_os in
14297       aix4 | aix4.[01] | aix4.[01].*)
14298       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14299            echo ' yes '
14300            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14301         :
14302       else
14303         can_build_shared=no
14304       fi
14305       ;;
14306     esac
14307     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14308     # soname into executable. Probably we can add versioning support to
14309     # collect2, so additional links can be useful in future.
14310     if test "$aix_use_runtimelinking" = yes; then
14311       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14312       # instead of lib<name>.a to let people know that these are not
14313       # typical AIX shared libraries.
14314       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14315     else
14316       # We preserve .a as extension for shared libraries through AIX4.2
14317       # and later when we are not doing run time linking.
14318       library_names_spec='${libname}${release}.a $libname.a'
14319       soname_spec='${libname}${release}${shared_ext}$major'
14320     fi
14321     shlibpath_var=LIBPATH
14322   fi
14323   ;;
14324
14325 amigaos*)
14326   library_names_spec='$libname.ixlibrary $libname.a'
14327   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14328   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'
14329   ;;
14330
14331 beos*)
14332   library_names_spec='${libname}${shared_ext}'
14333   dynamic_linker="$host_os ld.so"
14334   shlibpath_var=LIBRARY_PATH
14335   ;;
14336
14337 bsdi[45]*)
14338   version_type=linux
14339   need_version=no
14340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341   soname_spec='${libname}${release}${shared_ext}$major'
14342   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14343   shlibpath_var=LD_LIBRARY_PATH
14344   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14345   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14346   # the default ld.so.conf also contains /usr/contrib/lib and
14347   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14348   # libtool to hard-code these into programs
14349   ;;
14350
14351 cygwin* | mingw* | pw32*)
14352   version_type=windows
14353   shrext_cmds=".dll"
14354   need_version=no
14355   need_lib_prefix=no
14356
14357   case $GCC,$host_os in
14358   yes,cygwin* | yes,mingw* | yes,pw32*)
14359     library_names_spec='$libname.dll.a'
14360     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14361     postinstall_cmds='base_file=`basename \${file}`;
14362       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
14363       dldir=$destdir/`dirname \$dlpath`;
14364       test -d \$dldir || mkdir -p \$dldir;
14365       $install_prog $dir/$dlname \$dldir/$dlname'
14366     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
14367       dlpath=$dir/\$dldll;
14368        $rm \$dlpath'
14369     shlibpath_overrides_runpath=yes
14370
14371     case $host_os in
14372     cygwin*)
14373       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14374       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14375       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14376       ;;
14377     mingw*)
14378       # MinGW DLLs use traditional 'lib' prefix
14379       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14380       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14381       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14382         # It is most probably a Windows format PATH printed by
14383         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14384         # path with ; separators, and with drive letters. We can handle the
14385         # drive letters (cygwin fileutils understands them), so leave them,
14386         # especially as we might pass files found there to a mingw objdump,
14387         # which wouldn't understand a cygwinified path. Ahh.
14388         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14389       else
14390         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14391       fi
14392       ;;
14393     pw32*)
14394       # pw32 DLLs use 'pw' prefix rather than 'lib'
14395       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14396       ;;
14397     esac
14398     ;;
14399
14400   *)
14401     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14402     ;;
14403   esac
14404   dynamic_linker='Win32 ld.exe'
14405   # FIXME: first we should search . and the directory the executable is in
14406   shlibpath_var=PATH
14407   ;;
14408
14409 darwin* | rhapsody*)
14410   dynamic_linker="$host_os dyld"
14411   version_type=darwin
14412   need_lib_prefix=no
14413   need_version=no
14414   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14415   soname_spec='${libname}${release}${major}$shared_ext'
14416   shlibpath_overrides_runpath=yes
14417   shlibpath_var=DYLD_LIBRARY_PATH
14418   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14419   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14420   if test "$GCC" = yes; then
14421     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"`
14422   else
14423     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14424   fi
14425   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14426   ;;
14427
14428 dgux*)
14429   version_type=linux
14430   need_lib_prefix=no
14431   need_version=no
14432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14433   soname_spec='${libname}${release}${shared_ext}$major'
14434   shlibpath_var=LD_LIBRARY_PATH
14435   ;;
14436
14437 freebsd1*)
14438   dynamic_linker=no
14439   ;;
14440
14441 kfreebsd*-gnu)
14442   version_type=linux
14443   need_lib_prefix=no
14444   need_version=no
14445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14446   soname_spec='${libname}${release}${shared_ext}$major'
14447   shlibpath_var=LD_LIBRARY_PATH
14448   shlibpath_overrides_runpath=no
14449   hardcode_into_libs=yes
14450   dynamic_linker='GNU ld.so'
14451   ;;
14452
14453 freebsd*)
14454   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14455   version_type=freebsd-$objformat
14456   case $version_type in
14457     freebsd-elf*)
14458       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14459       need_version=no
14460       need_lib_prefix=no
14461       ;;
14462     freebsd-*)
14463       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14464       need_version=yes
14465       ;;
14466   esac
14467   shlibpath_var=LD_LIBRARY_PATH
14468   case $host_os in
14469   freebsd2*)
14470     shlibpath_overrides_runpath=yes
14471     ;;
14472   freebsd3.01* | freebsdelf3.01*)
14473     shlibpath_overrides_runpath=yes
14474     hardcode_into_libs=yes
14475     ;;
14476   *) # from 3.2 on
14477     shlibpath_overrides_runpath=no
14478     hardcode_into_libs=yes
14479     ;;
14480   esac
14481   ;;
14482
14483 gnu*)
14484   version_type=linux
14485   need_lib_prefix=no
14486   need_version=no
14487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14488   soname_spec='${libname}${release}${shared_ext}$major'
14489   shlibpath_var=LD_LIBRARY_PATH
14490   hardcode_into_libs=yes
14491   ;;
14492
14493 hpux9* | hpux10* | hpux11*)
14494   # Give a soname corresponding to the major version so that dld.sl refuses to
14495   # link against other versions.
14496   version_type=sunos
14497   need_lib_prefix=no
14498   need_version=no
14499   case "$host_cpu" in
14500   ia64*)
14501     shrext_cmds='.so'
14502     hardcode_into_libs=yes
14503     dynamic_linker="$host_os dld.so"
14504     shlibpath_var=LD_LIBRARY_PATH
14505     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14506     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507     soname_spec='${libname}${release}${shared_ext}$major'
14508     if test "X$HPUX_IA64_MODE" = X32; then
14509       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14510     else
14511       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14512     fi
14513     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14514     ;;
14515    hppa*64*)
14516      shrext_cmds='.sl'
14517      hardcode_into_libs=yes
14518      dynamic_linker="$host_os dld.sl"
14519      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14520      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14521      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522      soname_spec='${libname}${release}${shared_ext}$major'
14523      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14524      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14525      ;;
14526    *)
14527     shrext_cmds='.sl'
14528     dynamic_linker="$host_os dld.sl"
14529     shlibpath_var=SHLIB_PATH
14530     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532     soname_spec='${libname}${release}${shared_ext}$major'
14533     ;;
14534   esac
14535   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14536   postinstall_cmds='chmod 555 $lib'
14537   ;;
14538
14539 irix5* | irix6* | nonstopux*)
14540   case $host_os in
14541     nonstopux*) version_type=nonstopux ;;
14542     *)
14543         if test "$lt_cv_prog_gnu_ld" = yes; then
14544                 version_type=linux
14545         else
14546                 version_type=irix
14547         fi ;;
14548   esac
14549   need_lib_prefix=no
14550   need_version=no
14551   soname_spec='${libname}${release}${shared_ext}$major'
14552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14553   case $host_os in
14554   irix5* | nonstopux*)
14555     libsuff= shlibsuff=
14556     ;;
14557   *)
14558     case $LD in # libtool.m4 will add one of these switches to LD
14559     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14560       libsuff= shlibsuff= libmagic=32-bit;;
14561     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14562       libsuff=32 shlibsuff=N32 libmagic=N32;;
14563     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14564       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14565     *) libsuff= shlibsuff= libmagic=never-match;;
14566     esac
14567     ;;
14568   esac
14569   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14570   shlibpath_overrides_runpath=no
14571   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14572   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14573   hardcode_into_libs=yes
14574   ;;
14575
14576 # No shared lib support for Linux oldld, aout, or coff.
14577 linux*oldld* | linux*aout* | linux*coff*)
14578   dynamic_linker=no
14579   ;;
14580
14581 # This must be Linux ELF.
14582 linux*)
14583   version_type=linux
14584   need_lib_prefix=no
14585   need_version=no
14586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587   soname_spec='${libname}${release}${shared_ext}$major'
14588   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14589   shlibpath_var=LD_LIBRARY_PATH
14590   shlibpath_overrides_runpath=no
14591   # This implies no fast_install, which is unacceptable.
14592   # Some rework will be needed to allow for fast_install
14593   # before this can be enabled.
14594   hardcode_into_libs=yes
14595
14596   # Append ld.so.conf contents to the search path
14597   if test -f /etc/ld.so.conf; then
14598     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14599     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14600   fi
14601
14602   # We used to test for /lib/ld.so.1 and disable shared libraries on
14603   # powerpc, because MkLinux only supported shared libraries with the
14604   # GNU dynamic linker.  Since this was broken with cross compilers,
14605   # most powerpc-linux boxes support dynamic linking these days and
14606   # people can always --disable-shared, the test was removed, and we
14607   # assume the GNU/Linux dynamic linker is in use.
14608   dynamic_linker='GNU/Linux ld.so'
14609   ;;
14610
14611 knetbsd*-gnu)
14612   version_type=linux
14613   need_lib_prefix=no
14614   need_version=no
14615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616   soname_spec='${libname}${release}${shared_ext}$major'
14617   shlibpath_var=LD_LIBRARY_PATH
14618   shlibpath_overrides_runpath=no
14619   hardcode_into_libs=yes
14620   dynamic_linker='GNU ld.so'
14621   ;;
14622
14623 netbsd*)
14624   version_type=sunos
14625   need_lib_prefix=no
14626   need_version=no
14627   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14629     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14630     dynamic_linker='NetBSD (a.out) ld.so'
14631   else
14632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14633     soname_spec='${libname}${release}${shared_ext}$major'
14634     dynamic_linker='NetBSD ld.elf_so'
14635   fi
14636   shlibpath_var=LD_LIBRARY_PATH
14637   shlibpath_overrides_runpath=yes
14638   hardcode_into_libs=yes
14639   ;;
14640
14641 newsos6)
14642   version_type=linux
14643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644   shlibpath_var=LD_LIBRARY_PATH
14645   shlibpath_overrides_runpath=yes
14646   ;;
14647
14648 nto-qnx*)
14649   version_type=linux
14650   need_lib_prefix=no
14651   need_version=no
14652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653   soname_spec='${libname}${release}${shared_ext}$major'
14654   shlibpath_var=LD_LIBRARY_PATH
14655   shlibpath_overrides_runpath=yes
14656   ;;
14657
14658 openbsd*)
14659   version_type=sunos
14660   need_lib_prefix=no
14661   need_version=no
14662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14663   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14664   shlibpath_var=LD_LIBRARY_PATH
14665   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14666     case $host_os in
14667       openbsd2.[89] | openbsd2.[89].*)
14668         shlibpath_overrides_runpath=no
14669         ;;
14670       *)
14671         shlibpath_overrides_runpath=yes
14672         ;;
14673       esac
14674   else
14675     shlibpath_overrides_runpath=yes
14676   fi
14677   ;;
14678
14679 os2*)
14680   libname_spec='$name'
14681   shrext_cmds=".dll"
14682   need_lib_prefix=no
14683   library_names_spec='$libname${shared_ext} $libname.a'
14684   dynamic_linker='OS/2 ld.exe'
14685   shlibpath_var=LIBPATH
14686   ;;
14687
14688 osf3* | osf4* | osf5*)
14689   version_type=osf
14690   need_lib_prefix=no
14691   need_version=no
14692   soname_spec='${libname}${release}${shared_ext}$major'
14693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694   shlibpath_var=LD_LIBRARY_PATH
14695   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14696   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14697   ;;
14698
14699 sco3.2v5*)
14700   version_type=osf
14701   soname_spec='${libname}${release}${shared_ext}$major'
14702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703   shlibpath_var=LD_LIBRARY_PATH
14704   ;;
14705
14706 solaris*)
14707   version_type=linux
14708   need_lib_prefix=no
14709   need_version=no
14710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711   soname_spec='${libname}${release}${shared_ext}$major'
14712   shlibpath_var=LD_LIBRARY_PATH
14713   shlibpath_overrides_runpath=yes
14714   hardcode_into_libs=yes
14715   # ldd complains unless libraries are executable
14716   postinstall_cmds='chmod +x $lib'
14717   ;;
14718
14719 sunos4*)
14720   version_type=sunos
14721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14722   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14723   shlibpath_var=LD_LIBRARY_PATH
14724   shlibpath_overrides_runpath=yes
14725   if test "$with_gnu_ld" = yes; then
14726     need_lib_prefix=no
14727   fi
14728   need_version=yes
14729   ;;
14730
14731 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14732   version_type=linux
14733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734   soname_spec='${libname}${release}${shared_ext}$major'
14735   shlibpath_var=LD_LIBRARY_PATH
14736   case $host_vendor in
14737     sni)
14738       shlibpath_overrides_runpath=no
14739       need_lib_prefix=no
14740       export_dynamic_flag_spec='${wl}-Blargedynsym'
14741       runpath_var=LD_RUN_PATH
14742       ;;
14743     siemens)
14744       need_lib_prefix=no
14745       ;;
14746     motorola)
14747       need_lib_prefix=no
14748       need_version=no
14749       shlibpath_overrides_runpath=no
14750       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14751       ;;
14752   esac
14753   ;;
14754
14755 sysv4*MP*)
14756   if test -d /usr/nec ;then
14757     version_type=linux
14758     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14759     soname_spec='$libname${shared_ext}.$major'
14760     shlibpath_var=LD_LIBRARY_PATH
14761   fi
14762   ;;
14763
14764 uts4*)
14765   version_type=linux
14766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767   soname_spec='${libname}${release}${shared_ext}$major'
14768   shlibpath_var=LD_LIBRARY_PATH
14769   ;;
14770
14771 *)
14772   dynamic_linker=no
14773   ;;
14774 esac
14775 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14776 echo "${ECHO_T}$dynamic_linker" >&6
14777 test "$dynamic_linker" = no && can_build_shared=no
14778
14779 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14780 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14781 hardcode_action_F77=
14782 if test -n "$hardcode_libdir_flag_spec_F77" || \
14783    test -n "$runpath_var_F77" || \
14784    test "X$hardcode_automatic_F77" = "Xyes" ; then
14785
14786   # We can hardcode non-existant directories.
14787   if test "$hardcode_direct_F77" != no &&
14788      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14789      # have to relink, otherwise we might link with an installed library
14790      # when we should be linking with a yet-to-be-installed one
14791      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14792      test "$hardcode_minus_L_F77" != no; then
14793     # Linking always hardcodes the temporary library directory.
14794     hardcode_action_F77=relink
14795   else
14796     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14797     hardcode_action_F77=immediate
14798   fi
14799 else
14800   # We cannot hardcode anything, or else we can only hardcode existing
14801   # directories.
14802   hardcode_action_F77=unsupported
14803 fi
14804 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14805 echo "${ECHO_T}$hardcode_action_F77" >&6
14806
14807 if test "$hardcode_action_F77" = relink; then
14808   # Fast installation is not supported
14809   enable_fast_install=no
14810 elif test "$shlibpath_overrides_runpath" = yes ||
14811      test "$enable_shared" = no; then
14812   # Fast installation is not necessary
14813   enable_fast_install=needless
14814 fi
14815
14816 striplib=
14817 old_striplib=
14818 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14819 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14820 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14821   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14822   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14823   echo "$as_me:$LINENO: result: yes" >&5
14824 echo "${ECHO_T}yes" >&6
14825 else
14826 # FIXME - insert some real tests, host_os isn't really good enough
14827   case $host_os in
14828    darwin*)
14829        if test -n "$STRIP" ; then
14830          striplib="$STRIP -x"
14831          echo "$as_me:$LINENO: result: yes" >&5
14832 echo "${ECHO_T}yes" >&6
14833        else
14834   echo "$as_me:$LINENO: result: no" >&5
14835 echo "${ECHO_T}no" >&6
14836 fi
14837        ;;
14838    *)
14839   echo "$as_me:$LINENO: result: no" >&5
14840 echo "${ECHO_T}no" >&6
14841     ;;
14842   esac
14843 fi
14844
14845
14846
14847 # The else clause should only fire when bootstrapping the
14848 # libtool distribution, otherwise you forgot to ship ltmain.sh
14849 # with your package, and you will get complaints that there are
14850 # no rules to generate ltmain.sh.
14851 if test -f "$ltmain"; then
14852   # See if we are running on zsh, and set the options which allow our commands through
14853   # without removal of \ escapes.
14854   if test -n "${ZSH_VERSION+set}" ; then
14855     setopt NO_GLOB_SUBST
14856   fi
14857   # Now quote all the things that may contain metacharacters while being
14858   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14859   # variables and quote the copies for generation of the libtool script.
14860   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14861     SED SHELL STRIP \
14862     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14863     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14864     deplibs_check_method reload_flag reload_cmds need_locks \
14865     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14866     lt_cv_sys_global_symbol_to_c_name_address \
14867     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14868     old_postinstall_cmds old_postuninstall_cmds \
14869     compiler_F77 \
14870     CC_F77 \
14871     LD_F77 \
14872     lt_prog_compiler_wl_F77 \
14873     lt_prog_compiler_pic_F77 \
14874     lt_prog_compiler_static_F77 \
14875     lt_prog_compiler_no_builtin_flag_F77 \
14876     export_dynamic_flag_spec_F77 \
14877     thread_safe_flag_spec_F77 \
14878     whole_archive_flag_spec_F77 \
14879     enable_shared_with_static_runtimes_F77 \
14880     old_archive_cmds_F77 \
14881     old_archive_from_new_cmds_F77 \
14882     predep_objects_F77 \
14883     postdep_objects_F77 \
14884     predeps_F77 \
14885     postdeps_F77 \
14886     compiler_lib_search_path_F77 \
14887     archive_cmds_F77 \
14888     archive_expsym_cmds_F77 \
14889     postinstall_cmds_F77 \
14890     postuninstall_cmds_F77 \
14891     old_archive_from_expsyms_cmds_F77 \
14892     allow_undefined_flag_F77 \
14893     no_undefined_flag_F77 \
14894     export_symbols_cmds_F77 \
14895     hardcode_libdir_flag_spec_F77 \
14896     hardcode_libdir_flag_spec_ld_F77 \
14897     hardcode_libdir_separator_F77 \
14898     hardcode_automatic_F77 \
14899     module_cmds_F77 \
14900     module_expsym_cmds_F77 \
14901     lt_cv_prog_compiler_c_o_F77 \
14902     exclude_expsyms_F77 \
14903     include_expsyms_F77; do
14904
14905     case $var in
14906     old_archive_cmds_F77 | \
14907     old_archive_from_new_cmds_F77 | \
14908     archive_cmds_F77 | \
14909     archive_expsym_cmds_F77 | \
14910     module_cmds_F77 | \
14911     module_expsym_cmds_F77 | \
14912     old_archive_from_expsyms_cmds_F77 | \
14913     export_symbols_cmds_F77 | \
14914     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14915     postinstall_cmds | postuninstall_cmds | \
14916     old_postinstall_cmds | old_postuninstall_cmds | \
14917     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14918       # Double-quote double-evaled strings.
14919       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14920       ;;
14921     *)
14922       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14923       ;;
14924     esac
14925   done
14926
14927   case $lt_echo in
14928   *'\$0 --fallback-echo"')
14929     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14930     ;;
14931   esac
14932
14933 cfgfile="$ofile"
14934
14935   cat <<__EOF__ >> "$cfgfile"
14936 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14937
14938 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14939
14940 # Shell to use when invoking shell scripts.
14941 SHELL=$lt_SHELL
14942
14943 # Whether or not to build shared libraries.
14944 build_libtool_libs=$enable_shared
14945
14946 # Whether or not to build static libraries.
14947 build_old_libs=$enable_static
14948
14949 # Whether or not to add -lc for building shared libraries.
14950 build_libtool_need_lc=$archive_cmds_need_lc_F77
14951
14952 # Whether or not to disallow shared libs when runtime libs are static
14953 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14954
14955 # Whether or not to optimize for fast installation.
14956 fast_install=$enable_fast_install
14957
14958 # The host system.
14959 host_alias=$host_alias
14960 host=$host
14961
14962 # An echo program that does not interpret backslashes.
14963 echo=$lt_echo
14964
14965 # The archiver.
14966 AR=$lt_AR
14967 AR_FLAGS=$lt_AR_FLAGS
14968
14969 # A C compiler.
14970 LTCC=$lt_LTCC
14971
14972 # A language-specific compiler.
14973 CC=$lt_compiler_F77
14974
14975 # Is the compiler the GNU C compiler?
14976 with_gcc=$GCC_F77
14977
14978 # An ERE matcher.
14979 EGREP=$lt_EGREP
14980
14981 # The linker used to build libraries.
14982 LD=$lt_LD_F77
14983
14984 # Whether we need hard or soft links.
14985 LN_S=$lt_LN_S
14986
14987 # A BSD-compatible nm program.
14988 NM=$lt_NM
14989
14990 # A symbol stripping program
14991 STRIP=$lt_STRIP
14992
14993 # Used to examine libraries when file_magic_cmd begins "file"
14994 MAGIC_CMD=$MAGIC_CMD
14995
14996 # Used on cygwin: DLL creation program.
14997 DLLTOOL="$DLLTOOL"
14998
14999 # Used on cygwin: object dumper.
15000 OBJDUMP="$OBJDUMP"
15001
15002 # Used on cygwin: assembler.
15003 AS="$AS"
15004
15005 # The name of the directory that contains temporary libtool files.
15006 objdir=$objdir
15007
15008 # How to create reloadable object files.
15009 reload_flag=$lt_reload_flag
15010 reload_cmds=$lt_reload_cmds
15011
15012 # How to pass a linker flag through the compiler.
15013 wl=$lt_lt_prog_compiler_wl_F77
15014
15015 # Object file suffix (normally "o").
15016 objext="$ac_objext"
15017
15018 # Old archive suffix (normally "a").
15019 libext="$libext"
15020
15021 # Shared library suffix (normally ".so").
15022 shrext_cmds='$shrext_cmds'
15023
15024 # Executable file suffix (normally "").
15025 exeext="$exeext"
15026
15027 # Additional compiler flags for building library objects.
15028 pic_flag=$lt_lt_prog_compiler_pic_F77
15029 pic_mode=$pic_mode
15030
15031 # What is the maximum length of a command?
15032 max_cmd_len=$lt_cv_sys_max_cmd_len
15033
15034 # Does compiler simultaneously support -c and -o options?
15035 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15036
15037 # Must we lock files when doing compilation ?
15038 need_locks=$lt_need_locks
15039
15040 # Do we need the lib prefix for modules?
15041 need_lib_prefix=$need_lib_prefix
15042
15043 # Do we need a version for libraries?
15044 need_version=$need_version
15045
15046 # Whether dlopen is supported.
15047 dlopen_support=$enable_dlopen
15048
15049 # Whether dlopen of programs is supported.
15050 dlopen_self=$enable_dlopen_self
15051
15052 # Whether dlopen of statically linked programs is supported.
15053 dlopen_self_static=$enable_dlopen_self_static
15054
15055 # Compiler flag to prevent dynamic linking.
15056 link_static_flag=$lt_lt_prog_compiler_static_F77
15057
15058 # Compiler flag to turn off builtin functions.
15059 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15060
15061 # Compiler flag to allow reflexive dlopens.
15062 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15063
15064 # Compiler flag to generate shared objects directly from archives.
15065 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15066
15067 # Compiler flag to generate thread-safe objects.
15068 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15069
15070 # Library versioning type.
15071 version_type=$version_type
15072
15073 # Format of library name prefix.
15074 libname_spec=$lt_libname_spec
15075
15076 # List of archive names.  First name is the real one, the rest are links.
15077 # The last name is the one that the linker finds with -lNAME.
15078 library_names_spec=$lt_library_names_spec
15079
15080 # The coded name of the library, if different from the real name.
15081 soname_spec=$lt_soname_spec
15082
15083 # Commands used to build and install an old-style archive.
15084 RANLIB=$lt_RANLIB
15085 old_archive_cmds=$lt_old_archive_cmds_F77
15086 old_postinstall_cmds=$lt_old_postinstall_cmds
15087 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15088
15089 # Create an old-style archive from a shared archive.
15090 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15091
15092 # Create a temporary old-style archive to link instead of a shared archive.
15093 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15094
15095 # Commands used to build and install a shared archive.
15096 archive_cmds=$lt_archive_cmds_F77
15097 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15098 postinstall_cmds=$lt_postinstall_cmds
15099 postuninstall_cmds=$lt_postuninstall_cmds
15100
15101 # Commands used to build a loadable module (assumed same as above if empty)
15102 module_cmds=$lt_module_cmds_F77
15103 module_expsym_cmds=$lt_module_expsym_cmds_F77
15104
15105 # Commands to strip libraries.
15106 old_striplib=$lt_old_striplib
15107 striplib=$lt_striplib
15108
15109 # Dependencies to place before the objects being linked to create a
15110 # shared library.
15111 predep_objects=$lt_predep_objects_F77
15112
15113 # Dependencies to place after the objects being linked to create a
15114 # shared library.
15115 postdep_objects=$lt_postdep_objects_F77
15116
15117 # Dependencies to place before the objects being linked to create a
15118 # shared library.
15119 predeps=$lt_predeps_F77
15120
15121 # Dependencies to place after the objects being linked to create a
15122 # shared library.
15123 postdeps=$lt_postdeps_F77
15124
15125 # The library search path used internally by the compiler when linking
15126 # a shared library.
15127 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15128
15129 # Method to check whether dependent libraries are shared objects.
15130 deplibs_check_method=$lt_deplibs_check_method
15131
15132 # Command to use when deplibs_check_method == file_magic.
15133 file_magic_cmd=$lt_file_magic_cmd
15134
15135 # Flag that allows shared libraries with undefined symbols to be built.
15136 allow_undefined_flag=$lt_allow_undefined_flag_F77
15137
15138 # Flag that forces no undefined symbols.
15139 no_undefined_flag=$lt_no_undefined_flag_F77
15140
15141 # Commands used to finish a libtool library installation in a directory.
15142 finish_cmds=$lt_finish_cmds
15143
15144 # Same as above, but a single script fragment to be evaled but not shown.
15145 finish_eval=$lt_finish_eval
15146
15147 # Take the output of nm and produce a listing of raw symbols and C names.
15148 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15149
15150 # Transform the output of nm in a proper C declaration
15151 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15152
15153 # Transform the output of nm in a C name address pair
15154 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15155
15156 # This is the shared library runtime path variable.
15157 runpath_var=$runpath_var
15158
15159 # This is the shared library path variable.
15160 shlibpath_var=$shlibpath_var
15161
15162 # Is shlibpath searched before the hard-coded library search path?
15163 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15164
15165 # How to hardcode a shared library path into an executable.
15166 hardcode_action=$hardcode_action_F77
15167
15168 # Whether we should hardcode library paths into libraries.
15169 hardcode_into_libs=$hardcode_into_libs
15170
15171 # Flag to hardcode \$libdir into a binary during linking.
15172 # This must work even if \$libdir does not exist.
15173 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15174
15175 # If ld is used when linking, flag to hardcode \$libdir into
15176 # a binary during linking. This must work even if \$libdir does
15177 # not exist.
15178 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15179
15180 # Whether we need a single -rpath flag with a separated argument.
15181 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15182
15183 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15184 # resulting binary.
15185 hardcode_direct=$hardcode_direct_F77
15186
15187 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15188 # resulting binary.
15189 hardcode_minus_L=$hardcode_minus_L_F77
15190
15191 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15192 # the resulting binary.
15193 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15194
15195 # Set to yes if building a shared library automatically hardcodes DIR into the library
15196 # and all subsequent libraries and executables linked against it.
15197 hardcode_automatic=$hardcode_automatic_F77
15198
15199 # Variables whose values should be saved in libtool wrapper scripts and
15200 # restored at relink time.
15201 variables_saved_for_relink="$variables_saved_for_relink"
15202
15203 # Whether libtool must link a program against all its dependency libraries.
15204 link_all_deplibs=$link_all_deplibs_F77
15205
15206 # Compile-time system search path for libraries
15207 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15208
15209 # Run-time system search path for libraries
15210 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15211
15212 # Fix the shell variable \$srcfile for the compiler.
15213 fix_srcfile_path="$fix_srcfile_path_F77"
15214
15215 # Set to yes if exported symbols are required.
15216 always_export_symbols=$always_export_symbols_F77
15217
15218 # The commands to list exported symbols.
15219 export_symbols_cmds=$lt_export_symbols_cmds_F77
15220
15221 # The commands to extract the exported symbol list from a shared archive.
15222 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15223
15224 # Symbols that should not be listed in the preloaded symbols.
15225 exclude_expsyms=$lt_exclude_expsyms_F77
15226
15227 # Symbols that must always be exported.
15228 include_expsyms=$lt_include_expsyms_F77
15229
15230 # ### END LIBTOOL TAG CONFIG: $tagname
15231
15232 __EOF__
15233
15234
15235 else
15236   # If there is no Makefile yet, we rely on a make rule to execute
15237   # `config.status --recheck' to rerun these tests and create the
15238   # libtool script then.
15239   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15240   if test -f "$ltmain_in"; then
15241     test -f Makefile && make "$ltmain"
15242   fi
15243 fi
15244
15245
15246 ac_ext=c
15247 ac_cpp='$CPP $CPPFLAGS'
15248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15251
15252 CC="$lt_save_CC"
15253
15254         else
15255           tagname=""
15256         fi
15257         ;;
15258
15259       GCJ)
15260         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15261           ac_ext=c
15262 ac_cpp='$CPP $CPPFLAGS'
15263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15266
15267
15268 # Source file extension for Java test sources.
15269 ac_ext=java
15270
15271 # Object file extension for compiled Java test sources.
15272 objext=o
15273 objext_GCJ=$objext
15274
15275 # Code to be used in simple compile tests
15276 lt_simple_compile_test_code="class foo {}\n"
15277
15278 # Code to be used in simple link tests
15279 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15280
15281 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15282
15283 # If no C compiler was specified, use CC.
15284 LTCC=${LTCC-"$CC"}
15285
15286 # Allow CC to be a program name with arguments.
15287 compiler=$CC
15288
15289
15290 # Allow CC to be a program name with arguments.
15291 lt_save_CC="$CC"
15292 CC=${GCJ-"gcj"}
15293 compiler=$CC
15294 compiler_GCJ=$CC
15295
15296 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15297 archive_cmds_need_lc_GCJ=no
15298
15299
15300 lt_prog_compiler_no_builtin_flag_GCJ=
15301
15302 if test "$GCC" = yes; then
15303   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15304
15305
15306 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15307 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15308 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15309   echo $ECHO_N "(cached) $ECHO_C" >&6
15310 else
15311   lt_cv_prog_compiler_rtti_exceptions=no
15312   ac_outfile=conftest.$ac_objext
15313    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15314    lt_compiler_flag="-fno-rtti -fno-exceptions"
15315    # Insert the option either (1) after the last *FLAGS variable, or
15316    # (2) before a word containing "conftest.", or (3) at the end.
15317    # Note that $ac_compile itself does not contain backslashes and begins
15318    # with a dollar sign (not a hyphen), so the echo should work correctly.
15319    # The option is referenced via a variable to avoid confusing sed.
15320    lt_compile=`echo "$ac_compile" | $SED \
15321    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15322    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15323    -e 's:$: $lt_compiler_flag:'`
15324    (eval echo "\"\$as_me:15324: $lt_compile\"" >&5)
15325    (eval "$lt_compile" 2>conftest.err)
15326    ac_status=$?
15327    cat conftest.err >&5
15328    echo "$as_me:15328: \$? = $ac_status" >&5
15329    if (exit $ac_status) && test -s "$ac_outfile"; then
15330      # The compiler can only warn and ignore the option if not recognized
15331      # So say no if there are warnings
15332      if test ! -s conftest.err; then
15333        lt_cv_prog_compiler_rtti_exceptions=yes
15334      fi
15335    fi
15336    $rm conftest*
15337
15338 fi
15339 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15340 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15341
15342 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15343     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15344 else
15345     :
15346 fi
15347
15348 fi
15349
15350 lt_prog_compiler_wl_GCJ=
15351 lt_prog_compiler_pic_GCJ=
15352 lt_prog_compiler_static_GCJ=
15353
15354 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15355 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15356
15357   if test "$GCC" = yes; then
15358     lt_prog_compiler_wl_GCJ='-Wl,'
15359     lt_prog_compiler_static_GCJ='-static'
15360
15361     case $host_os in
15362       aix*)
15363       # All AIX code is PIC.
15364       if test "$host_cpu" = ia64; then
15365         # AIX 5 now supports IA64 processor
15366         lt_prog_compiler_static_GCJ='-Bstatic'
15367       fi
15368       ;;
15369
15370     amigaos*)
15371       # FIXME: we need at least 68020 code to build shared libraries, but
15372       # adding the `-m68020' flag to GCC prevents building anything better,
15373       # like `-m68040'.
15374       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15375       ;;
15376
15377     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15378       # PIC is the default for these OSes.
15379       ;;
15380
15381     mingw* | pw32* | os2*)
15382       # This hack is so that the source file can tell whether it is being
15383       # built for inclusion in a dll (and should export symbols for example).
15384       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15385       ;;
15386
15387     darwin* | rhapsody*)
15388       # PIC is the default on this platform
15389       # Common symbols not allowed in MH_DYLIB files
15390       lt_prog_compiler_pic_GCJ='-fno-common'
15391       ;;
15392
15393     msdosdjgpp*)
15394       # Just because we use GCC doesn't mean we suddenly get shared libraries
15395       # on systems that don't support them.
15396       lt_prog_compiler_can_build_shared_GCJ=no
15397       enable_shared=no
15398       ;;
15399
15400     sysv4*MP*)
15401       if test -d /usr/nec; then
15402         lt_prog_compiler_pic_GCJ=-Kconform_pic
15403       fi
15404       ;;
15405
15406     hpux*)
15407       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15408       # not for PA HP-UX.
15409       case "$host_cpu" in
15410       hppa*64*|ia64*)
15411         # +Z the default
15412         ;;
15413       *)
15414         lt_prog_compiler_pic_GCJ='-fPIC'
15415         ;;
15416       esac
15417       ;;
15418
15419     *)
15420       lt_prog_compiler_pic_GCJ='-fPIC'
15421       ;;
15422     esac
15423   else
15424     # PORTME Check for flag to pass linker flags through the system compiler.
15425     case $host_os in
15426     aix*)
15427       lt_prog_compiler_wl_GCJ='-Wl,'
15428       if test "$host_cpu" = ia64; then
15429         # AIX 5 now supports IA64 processor
15430         lt_prog_compiler_static_GCJ='-Bstatic'
15431       else
15432         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15433       fi
15434       ;;
15435       darwin*)
15436         # PIC is the default on this platform
15437         # Common symbols not allowed in MH_DYLIB files
15438        case "$cc_basename" in
15439          xlc*)
15440          lt_prog_compiler_pic_GCJ='-qnocommon'
15441          lt_prog_compiler_wl_GCJ='-Wl,'
15442          ;;
15443        esac
15444        ;;
15445
15446     mingw* | pw32* | os2*)
15447       # This hack is so that the source file can tell whether it is being
15448       # built for inclusion in a dll (and should export symbols for example).
15449       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15450       ;;
15451
15452     hpux9* | hpux10* | hpux11*)
15453       lt_prog_compiler_wl_GCJ='-Wl,'
15454       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15455       # not for PA HP-UX.
15456       case "$host_cpu" in
15457       hppa*64*|ia64*)
15458         # +Z the default
15459         ;;
15460       *)
15461         lt_prog_compiler_pic_GCJ='+Z'
15462         ;;
15463       esac
15464       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15465       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15466       ;;
15467
15468     irix5* | irix6* | nonstopux*)
15469       lt_prog_compiler_wl_GCJ='-Wl,'
15470       # PIC (with -KPIC) is the default.
15471       lt_prog_compiler_static_GCJ='-non_shared'
15472       ;;
15473
15474     newsos6)
15475       lt_prog_compiler_pic_GCJ='-KPIC'
15476       lt_prog_compiler_static_GCJ='-Bstatic'
15477       ;;
15478
15479     linux*)
15480       case $CC in
15481       icc* | ecc*)
15482         lt_prog_compiler_wl_GCJ='-Wl,'
15483         lt_prog_compiler_pic_GCJ='-KPIC'
15484         lt_prog_compiler_static_GCJ='-static'
15485         ;;
15486       ccc*)
15487         lt_prog_compiler_wl_GCJ='-Wl,'
15488         # All Alpha code is PIC.
15489         lt_prog_compiler_static_GCJ='-non_shared'
15490         ;;
15491       esac
15492       ;;
15493
15494     osf3* | osf4* | osf5*)
15495       lt_prog_compiler_wl_GCJ='-Wl,'
15496       # All OSF/1 code is PIC.
15497       lt_prog_compiler_static_GCJ='-non_shared'
15498       ;;
15499
15500     sco3.2v5*)
15501       lt_prog_compiler_pic_GCJ='-Kpic'
15502       lt_prog_compiler_static_GCJ='-dn'
15503       ;;
15504
15505     solaris*)
15506       lt_prog_compiler_wl_GCJ='-Wl,'
15507       lt_prog_compiler_pic_GCJ='-KPIC'
15508       lt_prog_compiler_static_GCJ='-Bstatic'
15509       ;;
15510
15511     sunos4*)
15512       lt_prog_compiler_wl_GCJ='-Qoption ld '
15513       lt_prog_compiler_pic_GCJ='-PIC'
15514       lt_prog_compiler_static_GCJ='-Bstatic'
15515       ;;
15516
15517     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15518       lt_prog_compiler_wl_GCJ='-Wl,'
15519       lt_prog_compiler_pic_GCJ='-KPIC'
15520       lt_prog_compiler_static_GCJ='-Bstatic'
15521       ;;
15522
15523     sysv4*MP*)
15524       if test -d /usr/nec ;then
15525         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15526         lt_prog_compiler_static_GCJ='-Bstatic'
15527       fi
15528       ;;
15529
15530     uts4*)
15531       lt_prog_compiler_pic_GCJ='-pic'
15532       lt_prog_compiler_static_GCJ='-Bstatic'
15533       ;;
15534
15535     *)
15536       lt_prog_compiler_can_build_shared_GCJ=no
15537       ;;
15538     esac
15539   fi
15540
15541 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15542 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15543
15544 #
15545 # Check to make sure the PIC flag actually works.
15546 #
15547 if test -n "$lt_prog_compiler_pic_GCJ"; then
15548
15549 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15550 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15551 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15552   echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554   lt_prog_compiler_pic_works_GCJ=no
15555   ac_outfile=conftest.$ac_objext
15556    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15557    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15558    # Insert the option either (1) after the last *FLAGS variable, or
15559    # (2) before a word containing "conftest.", or (3) at the end.
15560    # Note that $ac_compile itself does not contain backslashes and begins
15561    # with a dollar sign (not a hyphen), so the echo should work correctly.
15562    # The option is referenced via a variable to avoid confusing sed.
15563    lt_compile=`echo "$ac_compile" | $SED \
15564    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15565    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15566    -e 's:$: $lt_compiler_flag:'`
15567    (eval echo "\"\$as_me:15567: $lt_compile\"" >&5)
15568    (eval "$lt_compile" 2>conftest.err)
15569    ac_status=$?
15570    cat conftest.err >&5
15571    echo "$as_me:15571: \$? = $ac_status" >&5
15572    if (exit $ac_status) && test -s "$ac_outfile"; then
15573      # The compiler can only warn and ignore the option if not recognized
15574      # So say no if there are warnings
15575      if test ! -s conftest.err; then
15576        lt_prog_compiler_pic_works_GCJ=yes
15577      fi
15578    fi
15579    $rm conftest*
15580
15581 fi
15582 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15583 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15584
15585 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15586     case $lt_prog_compiler_pic_GCJ in
15587      "" | " "*) ;;
15588      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15589      esac
15590 else
15591     lt_prog_compiler_pic_GCJ=
15592      lt_prog_compiler_can_build_shared_GCJ=no
15593 fi
15594
15595 fi
15596 case "$host_os" in
15597   # For platforms which do not support PIC, -DPIC is meaningless:
15598   *djgpp*)
15599     lt_prog_compiler_pic_GCJ=
15600     ;;
15601   *)
15602     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15603     ;;
15604 esac
15605
15606 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15607 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15608 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15609   echo $ECHO_N "(cached) $ECHO_C" >&6
15610 else
15611   lt_cv_prog_compiler_c_o_GCJ=no
15612    $rm -r conftest 2>/dev/null
15613    mkdir conftest
15614    cd conftest
15615    mkdir out
15616    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15617
15618    lt_compiler_flag="-o out/conftest2.$ac_objext"
15619    # Insert the option either (1) after the last *FLAGS variable, or
15620    # (2) before a word containing "conftest.", or (3) at the end.
15621    # Note that $ac_compile itself does not contain backslashes and begins
15622    # with a dollar sign (not a hyphen), so the echo should work correctly.
15623    lt_compile=`echo "$ac_compile" | $SED \
15624    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15625    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15626    -e 's:$: $lt_compiler_flag:'`
15627    (eval echo "\"\$as_me:15627: $lt_compile\"" >&5)
15628    (eval "$lt_compile" 2>out/conftest.err)
15629    ac_status=$?
15630    cat out/conftest.err >&5
15631    echo "$as_me:15631: \$? = $ac_status" >&5
15632    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15633    then
15634      # The compiler can only warn and ignore the option if not recognized
15635      # So say no if there are warnings
15636      if test ! -s out/conftest.err; then
15637        lt_cv_prog_compiler_c_o_GCJ=yes
15638      fi
15639    fi
15640    chmod u+w .
15641    $rm conftest*
15642    # SGI C++ compiler will create directory out/ii_files/ for
15643    # template instantiation
15644    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15645    $rm out/* && rmdir out
15646    cd ..
15647    rmdir conftest
15648    $rm conftest*
15649
15650 fi
15651 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15652 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15653
15654
15655 hard_links="nottested"
15656 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15657   # do not overwrite the value of need_locks provided by the user
15658   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15659 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15660   hard_links=yes
15661   $rm conftest*
15662   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15663   touch conftest.a
15664   ln conftest.a conftest.b 2>&5 || hard_links=no
15665   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15666   echo "$as_me:$LINENO: result: $hard_links" >&5
15667 echo "${ECHO_T}$hard_links" >&6
15668   if test "$hard_links" = no; then
15669     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15670 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15671     need_locks=warn
15672   fi
15673 else
15674   need_locks=no
15675 fi
15676
15677 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15678 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15679
15680   runpath_var=
15681   allow_undefined_flag_GCJ=
15682   enable_shared_with_static_runtimes_GCJ=no
15683   archive_cmds_GCJ=
15684   archive_expsym_cmds_GCJ=
15685   old_archive_From_new_cmds_GCJ=
15686   old_archive_from_expsyms_cmds_GCJ=
15687   export_dynamic_flag_spec_GCJ=
15688   whole_archive_flag_spec_GCJ=
15689   thread_safe_flag_spec_GCJ=
15690   hardcode_libdir_flag_spec_GCJ=
15691   hardcode_libdir_flag_spec_ld_GCJ=
15692   hardcode_libdir_separator_GCJ=
15693   hardcode_direct_GCJ=no
15694   hardcode_minus_L_GCJ=no
15695   hardcode_shlibpath_var_GCJ=unsupported
15696   link_all_deplibs_GCJ=unknown
15697   hardcode_automatic_GCJ=no
15698   module_cmds_GCJ=
15699   module_expsym_cmds_GCJ=
15700   always_export_symbols_GCJ=no
15701   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15702   # include_expsyms should be a list of space-separated symbols to be *always*
15703   # included in the symbol list
15704   include_expsyms_GCJ=
15705   # exclude_expsyms can be an extended regexp of symbols to exclude
15706   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15707   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15708   # as well as any symbol that contains `d'.
15709   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15710   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15711   # platforms (ab)use it in PIC code, but their linkers get confused if
15712   # the symbol is explicitly referenced.  Since portable code cannot
15713   # rely on this symbol name, it's probably fine to never include it in
15714   # preloaded symbol tables.
15715   extract_expsyms_cmds=
15716
15717   case $host_os in
15718   cygwin* | mingw* | pw32*)
15719     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15720     # When not using gcc, we currently assume that we are using
15721     # Microsoft Visual C++.
15722     if test "$GCC" != yes; then
15723       with_gnu_ld=no
15724     fi
15725     ;;
15726   openbsd*)
15727     with_gnu_ld=no
15728     ;;
15729   esac
15730
15731   ld_shlibs_GCJ=yes
15732   if test "$with_gnu_ld" = yes; then
15733     # If archive_cmds runs LD, not CC, wlarc should be empty
15734     wlarc='${wl}'
15735
15736     # See if GNU ld supports shared libraries.
15737     case $host_os in
15738     aix3* | aix4* | aix5*)
15739       # On AIX/PPC, the GNU linker is very broken
15740       if test "$host_cpu" != ia64; then
15741         ld_shlibs_GCJ=no
15742         cat <<EOF 1>&2
15743
15744 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15745 *** to be unable to reliably create shared libraries on AIX.
15746 *** Therefore, libtool is disabling shared libraries support.  If you
15747 *** really care for shared libraries, you may want to modify your PATH
15748 *** so that a non-GNU linker is found, and then restart.
15749
15750 EOF
15751       fi
15752       ;;
15753
15754     amigaos*)
15755       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)'
15756       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15757       hardcode_minus_L_GCJ=yes
15758
15759       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15760       # that the semantics of dynamic libraries on AmigaOS, at least up
15761       # to version 4, is to share data among multiple programs linked
15762       # with the same dynamic library.  Since this doesn't match the
15763       # behavior of shared libraries on other platforms, we can't use
15764       # them.
15765       ld_shlibs_GCJ=no
15766       ;;
15767
15768     beos*)
15769       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15770         allow_undefined_flag_GCJ=unsupported
15771         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15772         # support --undefined.  This deserves some investigation.  FIXME
15773         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15774       else
15775         ld_shlibs_GCJ=no
15776       fi
15777       ;;
15778
15779     cygwin* | mingw* | pw32*)
15780       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15781       # as there is no search path for DLLs.
15782       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15783       allow_undefined_flag_GCJ=unsupported
15784       always_export_symbols_GCJ=no
15785       enable_shared_with_static_runtimes_GCJ=yes
15786       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15787
15788       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15789         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15790         # If the export-symbols file already is a .def file (1st line
15791         # is EXPORTS), use it as is; otherwise, prepend...
15792         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15793           cp $export_symbols $output_objdir/$soname.def;
15794         else
15795           echo EXPORTS > $output_objdir/$soname.def;
15796           cat $export_symbols >> $output_objdir/$soname.def;
15797         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15798       else
15799         ld_shlibs=no
15800       fi
15801       ;;
15802
15803     netbsd*)
15804       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15805         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15806         wlarc=
15807       else
15808         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15810       fi
15811       ;;
15812
15813     solaris* | sysv5*)
15814       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15815         ld_shlibs_GCJ=no
15816         cat <<EOF 1>&2
15817
15818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15819 *** create shared libraries on Solaris systems.  Therefore, libtool
15820 *** is disabling shared libraries support.  We urge you to upgrade GNU
15821 *** binutils to release 2.9.1 or newer.  Another option is to modify
15822 *** your PATH or compiler configuration so that the native linker is
15823 *** used, and then restart.
15824
15825 EOF
15826       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15827         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15828         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15829       else
15830         ld_shlibs_GCJ=no
15831       fi
15832       ;;
15833
15834     sunos4*)
15835       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15836       wlarc=
15837       hardcode_direct_GCJ=yes
15838       hardcode_shlibpath_var_GCJ=no
15839       ;;
15840
15841   linux*)
15842     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15843         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15844         archive_cmds_GCJ="$tmp_archive_cmds"
15845       supports_anon_versioning=no
15846       case `$LD -v 2>/dev/null` in
15847         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15848         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15849         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15850         *\ 2.11.*) ;; # other 2.11 versions
15851         *) supports_anon_versioning=yes ;;
15852       esac
15853       if test $supports_anon_versioning = yes; then
15854         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
15855         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15856       else
15857         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15858       fi
15859     else
15860       ld_shlibs_GCJ=no
15861     fi
15862     ;;
15863
15864     *)
15865       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15866         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15867         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15868       else
15869         ld_shlibs_GCJ=no
15870       fi
15871       ;;
15872     esac
15873
15874     if test "$ld_shlibs_GCJ" = yes; then
15875       runpath_var=LD_RUN_PATH
15876       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15877       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15878       # ancient GNU ld didn't support --whole-archive et. al.
15879       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15880         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15881       else
15882         whole_archive_flag_spec_GCJ=
15883       fi
15884     fi
15885   else
15886     # PORTME fill in a description of your system's linker (not GNU ld)
15887     case $host_os in
15888     aix3*)
15889       allow_undefined_flag_GCJ=unsupported
15890       always_export_symbols_GCJ=yes
15891       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'
15892       # Note: this linker hardcodes the directories in LIBPATH if there
15893       # are no directories specified by -L.
15894       hardcode_minus_L_GCJ=yes
15895       if test "$GCC" = yes && test -z "$link_static_flag"; then
15896         # Neither direct hardcoding nor static linking is supported with a
15897         # broken collect2.
15898         hardcode_direct_GCJ=unsupported
15899       fi
15900       ;;
15901
15902     aix4* | aix5*)
15903       if test "$host_cpu" = ia64; then
15904         # On IA64, the linker does run time linking by default, so we don't
15905         # have to do anything special.
15906         aix_use_runtimelinking=no
15907         exp_sym_flag='-Bexport'
15908         no_entry_flag=""
15909       else
15910         # If we're using GNU nm, then we don't want the "-C" option.
15911         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15912         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15913           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'
15914         else
15915           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'
15916         fi
15917         aix_use_runtimelinking=no
15918
15919         # Test if we are trying to use run time linking or normal
15920         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15921         # need to do runtime linking.
15922         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15923           for ld_flag in $LDFLAGS; do
15924           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15925             aix_use_runtimelinking=yes
15926             break
15927           fi
15928           done
15929         esac
15930
15931         exp_sym_flag='-bexport'
15932         no_entry_flag='-bnoentry'
15933       fi
15934
15935       # When large executables or shared objects are built, AIX ld can
15936       # have problems creating the table of contents.  If linking a library
15937       # or program results in "error TOC overflow" add -mminimal-toc to
15938       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15939       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15940
15941       archive_cmds_GCJ=''
15942       hardcode_direct_GCJ=yes
15943       hardcode_libdir_separator_GCJ=':'
15944       link_all_deplibs_GCJ=yes
15945
15946       if test "$GCC" = yes; then
15947         case $host_os in aix4.012|aix4.012.*)
15948         # We only want to do this on AIX 4.2 and lower, the check
15949         # below for broken collect2 doesn't work under 4.3+
15950           collect2name=`${CC} -print-prog-name=collect2`
15951           if test -f "$collect2name" && \
15952            strings "$collect2name" | grep resolve_lib_name >/dev/null
15953           then
15954           # We have reworked collect2
15955           hardcode_direct_GCJ=yes
15956           else
15957           # We have old collect2
15958           hardcode_direct_GCJ=unsupported
15959           # It fails to find uninstalled libraries when the uninstalled
15960           # path is not listed in the libpath.  Setting hardcode_minus_L
15961           # to unsupported forces relinking
15962           hardcode_minus_L_GCJ=yes
15963           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15964           hardcode_libdir_separator_GCJ=
15965           fi
15966         esac
15967         shared_flag='-shared'
15968       else
15969         # not using gcc
15970         if test "$host_cpu" = ia64; then
15971         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15972         # chokes on -Wl,-G. The following line is correct:
15973           shared_flag='-G'
15974         else
15975         if test "$aix_use_runtimelinking" = yes; then
15976             shared_flag='${wl}-G'
15977           else
15978             shared_flag='${wl}-bM:SRE'
15979         fi
15980         fi
15981       fi
15982
15983       # It seems that -bexpall does not export symbols beginning with
15984       # underscore (_), so it is better to generate a list of symbols to export.
15985       always_export_symbols_GCJ=yes
15986       if test "$aix_use_runtimelinking" = yes; then
15987         # Warning - without using the other runtime loading flags (-brtl),
15988         # -berok will link without error, but may produce a broken library.
15989         allow_undefined_flag_GCJ='-berok'
15990        # Determine the default libpath from the value encoded in an empty executable.
15991        cat >conftest.$ac_ext <<_ACEOF
15992 /* confdefs.h.  */
15993 _ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h.  */
15997
15998 int
15999 main ()
16000 {
16001
16002   ;
16003   return 0;
16004 }
16005 _ACEOF
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16008   (eval $ac_link) 2>conftest.er1
16009   ac_status=$?
16010   grep -v '^ *+' conftest.er1 >conftest.err
16011   rm -f conftest.er1
16012   cat conftest.err >&5
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); } &&
16015          { ac_try='test -z "$ac_c_werror_flag"
16016                          || test ! -s conftest.err'
16017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018   (eval $ac_try) 2>&5
16019   ac_status=$?
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); }; } &&
16022          { ac_try='test -s conftest$ac_exeext'
16023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024   (eval $ac_try) 2>&5
16025   ac_status=$?
16026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027   (exit $ac_status); }; }; then
16028
16029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16030 }'`
16031 # Check for a 64-bit object if we didn't find anything.
16032 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; }
16033 }'`; fi
16034 else
16035   echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038 fi
16039 rm -f conftest.err conftest.$ac_objext \
16040       conftest$ac_exeext conftest.$ac_ext
16041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16042
16043        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16044         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"
16045        else
16046         if test "$host_cpu" = ia64; then
16047           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16048           allow_undefined_flag_GCJ="-z nodefs"
16049           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"
16050         else
16051          # Determine the default libpath from the value encoded in an empty executable.
16052          cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h.  */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h.  */
16058
16059 int
16060 main ()
16061 {
16062
16063   ;
16064   return 0;
16065 }
16066 _ACEOF
16067 rm -f conftest.$ac_objext conftest$ac_exeext
16068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16069   (eval $ac_link) 2>conftest.er1
16070   ac_status=$?
16071   grep -v '^ *+' conftest.er1 >conftest.err
16072   rm -f conftest.er1
16073   cat conftest.err >&5
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); } &&
16076          { ac_try='test -z "$ac_c_werror_flag"
16077                          || test ! -s conftest.err'
16078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079   (eval $ac_try) 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; } &&
16083          { ac_try='test -s conftest$ac_exeext'
16084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085   (eval $ac_try) 2>&5
16086   ac_status=$?
16087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); }; }; then
16089
16090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16091 }'`
16092 # Check for a 64-bit object if we didn't find anything.
16093 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; }
16094 }'`; fi
16095 else
16096   echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16098
16099 fi
16100 rm -f conftest.err conftest.$ac_objext \
16101       conftest$ac_exeext conftest.$ac_ext
16102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16103
16104          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16105           # Warning - without using the other run time loading flags,
16106           # -berok will link without error, but may produce a broken library.
16107           no_undefined_flag_GCJ=' ${wl}-bernotok'
16108           allow_undefined_flag_GCJ=' ${wl}-berok'
16109           # -bexpall does not export symbols beginning with underscore (_)
16110           always_export_symbols_GCJ=yes
16111           # Exported symbols can be pulled into shared objects from archives
16112           whole_archive_flag_spec_GCJ=' '
16113           archive_cmds_need_lc_GCJ=yes
16114           # This is similar to how AIX traditionally builds it's shared libraries.
16115           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'
16116         fi
16117       fi
16118       ;;
16119
16120     amigaos*)
16121       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)'
16122       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16123       hardcode_minus_L_GCJ=yes
16124       # see comment about different semantics on the GNU ld section
16125       ld_shlibs_GCJ=no
16126       ;;
16127
16128     bsdi[45]*)
16129       export_dynamic_flag_spec_GCJ=-rdynamic
16130       ;;
16131
16132     cygwin* | mingw* | pw32*)
16133       # When not using gcc, we currently assume that we are using
16134       # Microsoft Visual C++.
16135       # hardcode_libdir_flag_spec is actually meaningless, as there is
16136       # no search path for DLLs.
16137       hardcode_libdir_flag_spec_GCJ=' '
16138       allow_undefined_flag_GCJ=unsupported
16139       # Tell ltmain to make .lib files, not .a files.
16140       libext=lib
16141       # Tell ltmain to make .dll files, not .so files.
16142       shrext_cmds=".dll"
16143       # FIXME: Setting linknames here is a bad hack.
16144       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
16145       # The linker will automatically build a .lib file if we build a DLL.
16146       old_archive_From_new_cmds_GCJ='true'
16147       # FIXME: Should let the user specify the lib program.
16148       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16149       fix_srcfile_path='`cygpath -w "$srcfile"`'
16150       enable_shared_with_static_runtimes_GCJ=yes
16151       ;;
16152
16153     darwin* | rhapsody*)
16154       case "$host_os" in
16155         rhapsody* | darwin1.[012])
16156          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16157          ;;
16158        *) # Darwin 1.3 on
16159          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16160            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16161          else
16162            case ${MACOSX_DEPLOYMENT_TARGET} in
16163              10.[012])
16164                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16165                ;;
16166              10.*)
16167                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16168                ;;
16169            esac
16170          fi
16171          ;;
16172       esac
16173       archive_cmds_need_lc_GCJ=no
16174       hardcode_direct_GCJ=no
16175       hardcode_automatic_GCJ=yes
16176       hardcode_shlibpath_var_GCJ=unsupported
16177       whole_archive_flag_spec_GCJ=''
16178       link_all_deplibs_GCJ=yes
16179     if test "$GCC" = yes ; then
16180         output_verbose_link_cmd='echo'
16181         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16182       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16183       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16184       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}'
16185       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}'
16186     else
16187       case "$cc_basename" in
16188         xlc*)
16189          output_verbose_link_cmd='echo'
16190          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16191          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16192           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16193          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}'
16194           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}'
16195           ;;
16196        *)
16197          ld_shlibs_GCJ=no
16198           ;;
16199       esac
16200     fi
16201       ;;
16202
16203     dgux*)
16204       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16206       hardcode_shlibpath_var_GCJ=no
16207       ;;
16208
16209     freebsd1*)
16210       ld_shlibs_GCJ=no
16211       ;;
16212
16213     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16214     # support.  Future versions do this automatically, but an explicit c++rt0.o
16215     # does not break anything, and helps significantly (at the cost of a little
16216     # extra space).
16217     freebsd2.2*)
16218       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16219       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16220       hardcode_direct_GCJ=yes
16221       hardcode_shlibpath_var_GCJ=no
16222       ;;
16223
16224     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16225     freebsd2*)
16226       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16227       hardcode_direct_GCJ=yes
16228       hardcode_minus_L_GCJ=yes
16229       hardcode_shlibpath_var_GCJ=no
16230       ;;
16231
16232     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16233     freebsd* | kfreebsd*-gnu)
16234       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16235       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16236       hardcode_direct_GCJ=yes
16237       hardcode_shlibpath_var_GCJ=no
16238       ;;
16239
16240     hpux9*)
16241       if test "$GCC" = yes; then
16242         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'
16243       else
16244         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'
16245       fi
16246       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16247       hardcode_libdir_separator_GCJ=:
16248       hardcode_direct_GCJ=yes
16249
16250       # hardcode_minus_L: Not really in the search PATH,
16251       # but as the default location of the library.
16252       hardcode_minus_L_GCJ=yes
16253       export_dynamic_flag_spec_GCJ='${wl}-E'
16254       ;;
16255
16256     hpux10* | hpux11*)
16257       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16258         case "$host_cpu" in
16259         hppa*64*|ia64*)
16260           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16261           ;;
16262         *)
16263           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16264           ;;
16265         esac
16266       else
16267         case "$host_cpu" in
16268         hppa*64*|ia64*)
16269           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16270           ;;
16271         *)
16272           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16273           ;;
16274         esac
16275       fi
16276       if test "$with_gnu_ld" = no; then
16277         case "$host_cpu" in
16278         hppa*64*)
16279           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16280           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16281           hardcode_libdir_separator_GCJ=:
16282           hardcode_direct_GCJ=no
16283           hardcode_shlibpath_var_GCJ=no
16284           ;;
16285         ia64*)
16286           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16287           hardcode_direct_GCJ=no
16288           hardcode_shlibpath_var_GCJ=no
16289
16290           # hardcode_minus_L: Not really in the search PATH,
16291           # but as the default location of the library.
16292           hardcode_minus_L_GCJ=yes
16293           ;;
16294         *)
16295           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16296           hardcode_libdir_separator_GCJ=:
16297           hardcode_direct_GCJ=yes
16298           export_dynamic_flag_spec_GCJ='${wl}-E'
16299
16300           # hardcode_minus_L: Not really in the search PATH,
16301           # but as the default location of the library.
16302           hardcode_minus_L_GCJ=yes
16303           ;;
16304         esac
16305       fi
16306       ;;
16307
16308     irix5* | irix6* | nonstopux*)
16309       if test "$GCC" = yes; then
16310         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'
16311       else
16312         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'
16313         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16314       fi
16315       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16316       hardcode_libdir_separator_GCJ=:
16317       link_all_deplibs_GCJ=yes
16318       ;;
16319
16320     netbsd*)
16321       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16322         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16323       else
16324         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16325       fi
16326       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16327       hardcode_direct_GCJ=yes
16328       hardcode_shlibpath_var_GCJ=no
16329       ;;
16330
16331     newsos6)
16332       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16333       hardcode_direct_GCJ=yes
16334       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16335       hardcode_libdir_separator_GCJ=:
16336       hardcode_shlibpath_var_GCJ=no
16337       ;;
16338
16339     openbsd*)
16340       hardcode_direct_GCJ=yes
16341       hardcode_shlibpath_var_GCJ=no
16342       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16343         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16344         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16345         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16346         export_dynamic_flag_spec_GCJ='${wl}-E'
16347       else
16348        case $host_os in
16349          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16350            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16351            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16352            ;;
16353          *)
16354            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16355            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16356            ;;
16357        esac
16358       fi
16359       ;;
16360
16361     os2*)
16362       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16363       hardcode_minus_L_GCJ=yes
16364       allow_undefined_flag_GCJ=unsupported
16365       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'
16366       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16367       ;;
16368
16369     osf3*)
16370       if test "$GCC" = yes; then
16371         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16372         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'
16373       else
16374         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16375         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'
16376       fi
16377       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16378       hardcode_libdir_separator_GCJ=:
16379       ;;
16380
16381     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16382       if test "$GCC" = yes; then
16383         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16384         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'
16385         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16386       else
16387         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16388         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'
16389         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; $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'
16390         # Both c and cxx compiler support -rpath directly
16391         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16392       fi
16393       hardcode_libdir_separator_GCJ=:
16394       ;;
16395
16396     sco3.2v5*)
16397       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16398       hardcode_shlibpath_var_GCJ=no
16399       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16400       runpath_var=LD_RUN_PATH
16401       hardcode_runpath_var=yes
16402       ;;
16403
16404     solaris*)
16405       no_undefined_flag_GCJ=' -z text'
16406       if test "$GCC" = yes; then
16407         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16408         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
16409       else
16410         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16411         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16412       fi
16413       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16414       hardcode_shlibpath_var_GCJ=no
16415       case $host_os in
16416       solaris2.[0-5] | solaris2.[0-5].*) ;;
16417       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16418         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16419       esac
16420       link_all_deplibs_GCJ=yes
16421       ;;
16422
16423     sunos4*)
16424       if test "x$host_vendor" = xsequent; then
16425         # Use $CC to link under sequent, because it throws in some extra .o
16426         # files that make .init and .fini sections work.
16427         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16428       else
16429         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16430       fi
16431       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16432       hardcode_direct_GCJ=yes
16433       hardcode_minus_L_GCJ=yes
16434       hardcode_shlibpath_var_GCJ=no
16435       ;;
16436
16437     sysv4)
16438       case $host_vendor in
16439         sni)
16440           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16441           hardcode_direct_GCJ=yes # is this really true???
16442         ;;
16443         siemens)
16444           ## LD is ld it makes a PLAMLIB
16445           ## CC just makes a GrossModule.
16446           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16447           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16448           hardcode_direct_GCJ=no
16449         ;;
16450         motorola)
16451           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16452           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16453         ;;
16454       esac
16455       runpath_var='LD_RUN_PATH'
16456       hardcode_shlibpath_var_GCJ=no
16457       ;;
16458
16459     sysv4.3*)
16460       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16461       hardcode_shlibpath_var_GCJ=no
16462       export_dynamic_flag_spec_GCJ='-Bexport'
16463       ;;
16464
16465     sysv4*MP*)
16466       if test -d /usr/nec; then
16467         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468         hardcode_shlibpath_var_GCJ=no
16469         runpath_var=LD_RUN_PATH
16470         hardcode_runpath_var=yes
16471         ld_shlibs_GCJ=yes
16472       fi
16473       ;;
16474
16475     sysv4.2uw2*)
16476       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16477       hardcode_direct_GCJ=yes
16478       hardcode_minus_L_GCJ=no
16479       hardcode_shlibpath_var_GCJ=no
16480       hardcode_runpath_var=yes
16481       runpath_var=LD_RUN_PATH
16482       ;;
16483
16484    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16485       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16486       if test "$GCC" = yes; then
16487         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16488       else
16489         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16490       fi
16491       runpath_var='LD_RUN_PATH'
16492       hardcode_shlibpath_var_GCJ=no
16493       ;;
16494
16495     sysv5*)
16496       no_undefined_flag_GCJ=' -z text'
16497       # $CC -shared without GNU ld will not create a library from C++
16498       # object files and a static libstdc++, better avoid it by now
16499       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16500       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16501       hardcode_libdir_flag_spec_GCJ=
16502       hardcode_shlibpath_var_GCJ=no
16503       runpath_var='LD_RUN_PATH'
16504       ;;
16505
16506     uts4*)
16507       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16509       hardcode_shlibpath_var_GCJ=no
16510       ;;
16511
16512     *)
16513       ld_shlibs_GCJ=no
16514       ;;
16515     esac
16516   fi
16517
16518 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16519 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16520 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16521
16522 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16523 if test "$GCC" = yes; then
16524   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16525 fi
16526
16527 #
16528 # Do we need to explicitly link libc?
16529 #
16530 case "x$archive_cmds_need_lc_GCJ" in
16531 x|xyes)
16532   # Assume -lc should be added
16533   archive_cmds_need_lc_GCJ=yes
16534
16535   if test "$enable_shared" = yes && test "$GCC" = yes; then
16536     case $archive_cmds_GCJ in
16537     *'~'*)
16538       # FIXME: we may have to deal with multi-command sequences.
16539       ;;
16540     '$CC '*)
16541       # Test whether the compiler implicitly links with -lc since on some
16542       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16543       # to ld, don't add -lc before -lgcc.
16544       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16546       $rm conftest*
16547       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16548
16549       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16550   (eval $ac_compile) 2>&5
16551   ac_status=$?
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); } 2>conftest.err; then
16554         soname=conftest
16555         lib=conftest
16556         libobjs=conftest.$ac_objext
16557         deplibs=
16558         wl=$lt_prog_compiler_wl_GCJ
16559         compiler_flags=-v
16560         linker_flags=-v
16561         verstring=
16562         output_objdir=.
16563         libname=conftest
16564         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16565         allow_undefined_flag_GCJ=
16566         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16567   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }
16571         then
16572           archive_cmds_need_lc_GCJ=no
16573         else
16574           archive_cmds_need_lc_GCJ=yes
16575         fi
16576         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16577       else
16578         cat conftest.err 1>&5
16579       fi
16580       $rm conftest*
16581       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16582 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16583       ;;
16584     esac
16585   fi
16586   ;;
16587 esac
16588
16589 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16590 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16591 library_names_spec=
16592 libname_spec='lib$name'
16593 soname_spec=
16594 shrext_cmds=".so"
16595 postinstall_cmds=
16596 postuninstall_cmds=
16597 finish_cmds=
16598 finish_eval=
16599 shlibpath_var=
16600 shlibpath_overrides_runpath=unknown
16601 version_type=none
16602 dynamic_linker="$host_os ld.so"
16603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16604 if test "$GCC" = yes; then
16605   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16606   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16607     # if the path contains ";" then we assume it to be the separator
16608     # otherwise default to the standard path separator (i.e. ":") - it is
16609     # assumed that no part of a normal pathname contains ";" but that should
16610     # okay in the real world where ";" in dirpaths is itself problematic.
16611     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16612   else
16613     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16614   fi
16615 else
16616   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16617 fi
16618 need_lib_prefix=unknown
16619 hardcode_into_libs=no
16620
16621 # when you set need_version to no, make sure it does not cause -set_version
16622 # flags to be left without arguments
16623 need_version=unknown
16624
16625 case $host_os in
16626 aix3*)
16627   version_type=linux
16628   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16629   shlibpath_var=LIBPATH
16630
16631   # AIX 3 has no versioning support, so we append a major version to the name.
16632   soname_spec='${libname}${release}${shared_ext}$major'
16633   ;;
16634
16635 aix4* | aix5*)
16636   version_type=linux
16637   need_lib_prefix=no
16638   need_version=no
16639   hardcode_into_libs=yes
16640   if test "$host_cpu" = ia64; then
16641     # AIX 5 supports IA64
16642     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16643     shlibpath_var=LD_LIBRARY_PATH
16644   else
16645     # With GCC up to 2.95.x, collect2 would create an import file
16646     # for dependence libraries.  The import file would start with
16647     # the line `#! .'.  This would cause the generated library to
16648     # depend on `.', always an invalid library.  This was fixed in
16649     # development snapshots of GCC prior to 3.0.
16650     case $host_os in
16651       aix4 | aix4.[01] | aix4.[01].*)
16652       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16653            echo ' yes '
16654            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16655         :
16656       else
16657         can_build_shared=no
16658       fi
16659       ;;
16660     esac
16661     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16662     # soname into executable. Probably we can add versioning support to
16663     # collect2, so additional links can be useful in future.
16664     if test "$aix_use_runtimelinking" = yes; then
16665       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16666       # instead of lib<name>.a to let people know that these are not
16667       # typical AIX shared libraries.
16668       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16669     else
16670       # We preserve .a as extension for shared libraries through AIX4.2
16671       # and later when we are not doing run time linking.
16672       library_names_spec='${libname}${release}.a $libname.a'
16673       soname_spec='${libname}${release}${shared_ext}$major'
16674     fi
16675     shlibpath_var=LIBPATH
16676   fi
16677   ;;
16678
16679 amigaos*)
16680   library_names_spec='$libname.ixlibrary $libname.a'
16681   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16682   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'
16683   ;;
16684
16685 beos*)
16686   library_names_spec='${libname}${shared_ext}'
16687   dynamic_linker="$host_os ld.so"
16688   shlibpath_var=LIBRARY_PATH
16689   ;;
16690
16691 bsdi[45]*)
16692   version_type=linux
16693   need_version=no
16694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695   soname_spec='${libname}${release}${shared_ext}$major'
16696   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16697   shlibpath_var=LD_LIBRARY_PATH
16698   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16699   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16700   # the default ld.so.conf also contains /usr/contrib/lib and
16701   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16702   # libtool to hard-code these into programs
16703   ;;
16704
16705 cygwin* | mingw* | pw32*)
16706   version_type=windows
16707   shrext_cmds=".dll"
16708   need_version=no
16709   need_lib_prefix=no
16710
16711   case $GCC,$host_os in
16712   yes,cygwin* | yes,mingw* | yes,pw32*)
16713     library_names_spec='$libname.dll.a'
16714     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16715     postinstall_cmds='base_file=`basename \${file}`;
16716       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16717       dldir=$destdir/`dirname \$dlpath`;
16718       test -d \$dldir || mkdir -p \$dldir;
16719       $install_prog $dir/$dlname \$dldir/$dlname'
16720     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16721       dlpath=$dir/\$dldll;
16722        $rm \$dlpath'
16723     shlibpath_overrides_runpath=yes
16724
16725     case $host_os in
16726     cygwin*)
16727       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16728       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16729       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16730       ;;
16731     mingw*)
16732       # MinGW DLLs use traditional 'lib' prefix
16733       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16734       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16735       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16736         # It is most probably a Windows format PATH printed by
16737         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16738         # path with ; separators, and with drive letters. We can handle the
16739         # drive letters (cygwin fileutils understands them), so leave them,
16740         # especially as we might pass files found there to a mingw objdump,
16741         # which wouldn't understand a cygwinified path. Ahh.
16742         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16743       else
16744         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16745       fi
16746       ;;
16747     pw32*)
16748       # pw32 DLLs use 'pw' prefix rather than 'lib'
16749       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16750       ;;
16751     esac
16752     ;;
16753
16754   *)
16755     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16756     ;;
16757   esac
16758   dynamic_linker='Win32 ld.exe'
16759   # FIXME: first we should search . and the directory the executable is in
16760   shlibpath_var=PATH
16761   ;;
16762
16763 darwin* | rhapsody*)
16764   dynamic_linker="$host_os dyld"
16765   version_type=darwin
16766   need_lib_prefix=no
16767   need_version=no
16768   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16769   soname_spec='${libname}${release}${major}$shared_ext'
16770   shlibpath_overrides_runpath=yes
16771   shlibpath_var=DYLD_LIBRARY_PATH
16772   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16773   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16774   if test "$GCC" = yes; then
16775     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"`
16776   else
16777     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16778   fi
16779   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16780   ;;
16781
16782 dgux*)
16783   version_type=linux
16784   need_lib_prefix=no
16785   need_version=no
16786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16787   soname_spec='${libname}${release}${shared_ext}$major'
16788   shlibpath_var=LD_LIBRARY_PATH
16789   ;;
16790
16791 freebsd1*)
16792   dynamic_linker=no
16793   ;;
16794
16795 kfreebsd*-gnu)
16796   version_type=linux
16797   need_lib_prefix=no
16798   need_version=no
16799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16800   soname_spec='${libname}${release}${shared_ext}$major'
16801   shlibpath_var=LD_LIBRARY_PATH
16802   shlibpath_overrides_runpath=no
16803   hardcode_into_libs=yes
16804   dynamic_linker='GNU ld.so'
16805   ;;
16806
16807 freebsd*)
16808   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16809   version_type=freebsd-$objformat
16810   case $version_type in
16811     freebsd-elf*)
16812       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16813       need_version=no
16814       need_lib_prefix=no
16815       ;;
16816     freebsd-*)
16817       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16818       need_version=yes
16819       ;;
16820   esac
16821   shlibpath_var=LD_LIBRARY_PATH
16822   case $host_os in
16823   freebsd2*)
16824     shlibpath_overrides_runpath=yes
16825     ;;
16826   freebsd3.01* | freebsdelf3.01*)
16827     shlibpath_overrides_runpath=yes
16828     hardcode_into_libs=yes
16829     ;;
16830   *) # from 3.2 on
16831     shlibpath_overrides_runpath=no
16832     hardcode_into_libs=yes
16833     ;;
16834   esac
16835   ;;
16836
16837 gnu*)
16838   version_type=linux
16839   need_lib_prefix=no
16840   need_version=no
16841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16842   soname_spec='${libname}${release}${shared_ext}$major'
16843   shlibpath_var=LD_LIBRARY_PATH
16844   hardcode_into_libs=yes
16845   ;;
16846
16847 hpux9* | hpux10* | hpux11*)
16848   # Give a soname corresponding to the major version so that dld.sl refuses to
16849   # link against other versions.
16850   version_type=sunos
16851   need_lib_prefix=no
16852   need_version=no
16853   case "$host_cpu" in
16854   ia64*)
16855     shrext_cmds='.so'
16856     hardcode_into_libs=yes
16857     dynamic_linker="$host_os dld.so"
16858     shlibpath_var=LD_LIBRARY_PATH
16859     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16860     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16861     soname_spec='${libname}${release}${shared_ext}$major'
16862     if test "X$HPUX_IA64_MODE" = X32; then
16863       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16864     else
16865       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16866     fi
16867     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16868     ;;
16869    hppa*64*)
16870      shrext_cmds='.sl'
16871      hardcode_into_libs=yes
16872      dynamic_linker="$host_os dld.sl"
16873      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16874      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16875      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16876      soname_spec='${libname}${release}${shared_ext}$major'
16877      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16878      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16879      ;;
16880    *)
16881     shrext_cmds='.sl'
16882     dynamic_linker="$host_os dld.sl"
16883     shlibpath_var=SHLIB_PATH
16884     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886     soname_spec='${libname}${release}${shared_ext}$major'
16887     ;;
16888   esac
16889   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16890   postinstall_cmds='chmod 555 $lib'
16891   ;;
16892
16893 irix5* | irix6* | nonstopux*)
16894   case $host_os in
16895     nonstopux*) version_type=nonstopux ;;
16896     *)
16897         if test "$lt_cv_prog_gnu_ld" = yes; then
16898                 version_type=linux
16899         else
16900                 version_type=irix
16901         fi ;;
16902   esac
16903   need_lib_prefix=no
16904   need_version=no
16905   soname_spec='${libname}${release}${shared_ext}$major'
16906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16907   case $host_os in
16908   irix5* | nonstopux*)
16909     libsuff= shlibsuff=
16910     ;;
16911   *)
16912     case $LD in # libtool.m4 will add one of these switches to LD
16913     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16914       libsuff= shlibsuff= libmagic=32-bit;;
16915     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16916       libsuff=32 shlibsuff=N32 libmagic=N32;;
16917     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16918       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16919     *) libsuff= shlibsuff= libmagic=never-match;;
16920     esac
16921     ;;
16922   esac
16923   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16924   shlibpath_overrides_runpath=no
16925   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16926   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16927   hardcode_into_libs=yes
16928   ;;
16929
16930 # No shared lib support for Linux oldld, aout, or coff.
16931 linux*oldld* | linux*aout* | linux*coff*)
16932   dynamic_linker=no
16933   ;;
16934
16935 # This must be Linux ELF.
16936 linux*)
16937   version_type=linux
16938   need_lib_prefix=no
16939   need_version=no
16940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941   soname_spec='${libname}${release}${shared_ext}$major'
16942   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16943   shlibpath_var=LD_LIBRARY_PATH
16944   shlibpath_overrides_runpath=no
16945   # This implies no fast_install, which is unacceptable.
16946   # Some rework will be needed to allow for fast_install
16947   # before this can be enabled.
16948   hardcode_into_libs=yes
16949
16950   # Append ld.so.conf contents to the search path
16951   if test -f /etc/ld.so.conf; then
16952     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16953     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16954   fi
16955
16956   # We used to test for /lib/ld.so.1 and disable shared libraries on
16957   # powerpc, because MkLinux only supported shared libraries with the
16958   # GNU dynamic linker.  Since this was broken with cross compilers,
16959   # most powerpc-linux boxes support dynamic linking these days and
16960   # people can always --disable-shared, the test was removed, and we
16961   # assume the GNU/Linux dynamic linker is in use.
16962   dynamic_linker='GNU/Linux ld.so'
16963   ;;
16964
16965 knetbsd*-gnu)
16966   version_type=linux
16967   need_lib_prefix=no
16968   need_version=no
16969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16970   soname_spec='${libname}${release}${shared_ext}$major'
16971   shlibpath_var=LD_LIBRARY_PATH
16972   shlibpath_overrides_runpath=no
16973   hardcode_into_libs=yes
16974   dynamic_linker='GNU ld.so'
16975   ;;
16976
16977 netbsd*)
16978   version_type=sunos
16979   need_lib_prefix=no
16980   need_version=no
16981   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16983     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16984     dynamic_linker='NetBSD (a.out) ld.so'
16985   else
16986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16987     soname_spec='${libname}${release}${shared_ext}$major'
16988     dynamic_linker='NetBSD ld.elf_so'
16989   fi
16990   shlibpath_var=LD_LIBRARY_PATH
16991   shlibpath_overrides_runpath=yes
16992   hardcode_into_libs=yes
16993   ;;
16994
16995 newsos6)
16996   version_type=linux
16997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998   shlibpath_var=LD_LIBRARY_PATH
16999   shlibpath_overrides_runpath=yes
17000   ;;
17001
17002 nto-qnx*)
17003   version_type=linux
17004   need_lib_prefix=no
17005   need_version=no
17006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007   soname_spec='${libname}${release}${shared_ext}$major'
17008   shlibpath_var=LD_LIBRARY_PATH
17009   shlibpath_overrides_runpath=yes
17010   ;;
17011
17012 openbsd*)
17013   version_type=sunos
17014   need_lib_prefix=no
17015   need_version=no
17016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17017   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17018   shlibpath_var=LD_LIBRARY_PATH
17019   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17020     case $host_os in
17021       openbsd2.[89] | openbsd2.[89].*)
17022         shlibpath_overrides_runpath=no
17023         ;;
17024       *)
17025         shlibpath_overrides_runpath=yes
17026         ;;
17027       esac
17028   else
17029     shlibpath_overrides_runpath=yes
17030   fi
17031   ;;
17032
17033 os2*)
17034   libname_spec='$name'
17035   shrext_cmds=".dll"
17036   need_lib_prefix=no
17037   library_names_spec='$libname${shared_ext} $libname.a'
17038   dynamic_linker='OS/2 ld.exe'
17039   shlibpath_var=LIBPATH
17040   ;;
17041
17042 osf3* | osf4* | osf5*)
17043   version_type=osf
17044   need_lib_prefix=no
17045   need_version=no
17046   soname_spec='${libname}${release}${shared_ext}$major'
17047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048   shlibpath_var=LD_LIBRARY_PATH
17049   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17050   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17051   ;;
17052
17053 sco3.2v5*)
17054   version_type=osf
17055   soname_spec='${libname}${release}${shared_ext}$major'
17056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17057   shlibpath_var=LD_LIBRARY_PATH
17058   ;;
17059
17060 solaris*)
17061   version_type=linux
17062   need_lib_prefix=no
17063   need_version=no
17064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065   soname_spec='${libname}${release}${shared_ext}$major'
17066   shlibpath_var=LD_LIBRARY_PATH
17067   shlibpath_overrides_runpath=yes
17068   hardcode_into_libs=yes
17069   # ldd complains unless libraries are executable
17070   postinstall_cmds='chmod +x $lib'
17071   ;;
17072
17073 sunos4*)
17074   version_type=sunos
17075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17076   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17077   shlibpath_var=LD_LIBRARY_PATH
17078   shlibpath_overrides_runpath=yes
17079   if test "$with_gnu_ld" = yes; then
17080     need_lib_prefix=no
17081   fi
17082   need_version=yes
17083   ;;
17084
17085 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17086   version_type=linux
17087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088   soname_spec='${libname}${release}${shared_ext}$major'
17089   shlibpath_var=LD_LIBRARY_PATH
17090   case $host_vendor in
17091     sni)
17092       shlibpath_overrides_runpath=no
17093       need_lib_prefix=no
17094       export_dynamic_flag_spec='${wl}-Blargedynsym'
17095       runpath_var=LD_RUN_PATH
17096       ;;
17097     siemens)
17098       need_lib_prefix=no
17099       ;;
17100     motorola)
17101       need_lib_prefix=no
17102       need_version=no
17103       shlibpath_overrides_runpath=no
17104       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17105       ;;
17106   esac
17107   ;;
17108
17109 sysv4*MP*)
17110   if test -d /usr/nec ;then
17111     version_type=linux
17112     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17113     soname_spec='$libname${shared_ext}.$major'
17114     shlibpath_var=LD_LIBRARY_PATH
17115   fi
17116   ;;
17117
17118 uts4*)
17119   version_type=linux
17120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121   soname_spec='${libname}${release}${shared_ext}$major'
17122   shlibpath_var=LD_LIBRARY_PATH
17123   ;;
17124
17125 *)
17126   dynamic_linker=no
17127   ;;
17128 esac
17129 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17130 echo "${ECHO_T}$dynamic_linker" >&6
17131 test "$dynamic_linker" = no && can_build_shared=no
17132
17133 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17134 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17135 hardcode_action_GCJ=
17136 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17137    test -n "$runpath_var_GCJ" || \
17138    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17139
17140   # We can hardcode non-existant directories.
17141   if test "$hardcode_direct_GCJ" != no &&
17142      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17143      # have to relink, otherwise we might link with an installed library
17144      # when we should be linking with a yet-to-be-installed one
17145      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17146      test "$hardcode_minus_L_GCJ" != no; then
17147     # Linking always hardcodes the temporary library directory.
17148     hardcode_action_GCJ=relink
17149   else
17150     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17151     hardcode_action_GCJ=immediate
17152   fi
17153 else
17154   # We cannot hardcode anything, or else we can only hardcode existing
17155   # directories.
17156   hardcode_action_GCJ=unsupported
17157 fi
17158 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17159 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17160
17161 if test "$hardcode_action_GCJ" = relink; then
17162   # Fast installation is not supported
17163   enable_fast_install=no
17164 elif test "$shlibpath_overrides_runpath" = yes ||
17165      test "$enable_shared" = no; then
17166   # Fast installation is not necessary
17167   enable_fast_install=needless
17168 fi
17169
17170 striplib=
17171 old_striplib=
17172 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17173 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17174 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17175   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17176   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17177   echo "$as_me:$LINENO: result: yes" >&5
17178 echo "${ECHO_T}yes" >&6
17179 else
17180 # FIXME - insert some real tests, host_os isn't really good enough
17181   case $host_os in
17182    darwin*)
17183        if test -n "$STRIP" ; then
17184          striplib="$STRIP -x"
17185          echo "$as_me:$LINENO: result: yes" >&5
17186 echo "${ECHO_T}yes" >&6
17187        else
17188   echo "$as_me:$LINENO: result: no" >&5
17189 echo "${ECHO_T}no" >&6
17190 fi
17191        ;;
17192    *)
17193   echo "$as_me:$LINENO: result: no" >&5
17194 echo "${ECHO_T}no" >&6
17195     ;;
17196   esac
17197 fi
17198
17199 if test "x$enable_dlopen" != xyes; then
17200   enable_dlopen=unknown
17201   enable_dlopen_self=unknown
17202   enable_dlopen_self_static=unknown
17203 else
17204   lt_cv_dlopen=no
17205   lt_cv_dlopen_libs=
17206
17207   case $host_os in
17208   beos*)
17209     lt_cv_dlopen="load_add_on"
17210     lt_cv_dlopen_libs=
17211     lt_cv_dlopen_self=yes
17212     ;;
17213
17214   mingw* | pw32*)
17215     lt_cv_dlopen="LoadLibrary"
17216     lt_cv_dlopen_libs=
17217    ;;
17218
17219   cygwin*)
17220     lt_cv_dlopen="dlopen"
17221     lt_cv_dlopen_libs=
17222    ;;
17223
17224   darwin*)
17225   # if libdl is installed we need to link against it
17226     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17227 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17228 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17229   echo $ECHO_N "(cached) $ECHO_C" >&6
17230 else
17231   ac_check_lib_save_LIBS=$LIBS
17232 LIBS="-ldl  $LIBS"
17233 cat >conftest.$ac_ext <<_ACEOF
17234 /* confdefs.h.  */
17235 _ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h.  */
17239
17240 /* Override any gcc2 internal prototype to avoid an error.  */
17241 #ifdef __cplusplus
17242 extern "C"
17243 #endif
17244 /* We use char because int might match the return type of a gcc2
17245    builtin and then its argument prototype would still apply.  */
17246 char dlopen ();
17247 int
17248 main ()
17249 {
17250 dlopen ();
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257   (eval $ac_link) 2>conftest.er1
17258   ac_status=$?
17259   grep -v '^ *+' conftest.er1 >conftest.err
17260   rm -f conftest.er1
17261   cat conftest.err >&5
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); } &&
17264          { ac_try='test -z "$ac_c_werror_flag"
17265                          || test ! -s conftest.err'
17266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267   (eval $ac_try) 2>&5
17268   ac_status=$?
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); }; } &&
17271          { ac_try='test -s conftest$ac_exeext'
17272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273   (eval $ac_try) 2>&5
17274   ac_status=$?
17275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276   (exit $ac_status); }; }; then
17277   ac_cv_lib_dl_dlopen=yes
17278 else
17279   echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282 ac_cv_lib_dl_dlopen=no
17283 fi
17284 rm -f conftest.err conftest.$ac_objext \
17285       conftest$ac_exeext conftest.$ac_ext
17286 LIBS=$ac_check_lib_save_LIBS
17287 fi
17288 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17289 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17290 if test $ac_cv_lib_dl_dlopen = yes; then
17291   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17292 else
17293
17294     lt_cv_dlopen="dyld"
17295     lt_cv_dlopen_libs=
17296     lt_cv_dlopen_self=yes
17297
17298 fi
17299
17300    ;;
17301
17302   *)
17303     echo "$as_me:$LINENO: checking for shl_load" >&5
17304 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17305 if test "${ac_cv_func_shl_load+set}" = set; then
17306   echo $ECHO_N "(cached) $ECHO_C" >&6
17307 else
17308   cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h.  */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h.  */
17314 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17316 #define shl_load innocuous_shl_load
17317
17318 /* System header to define __stub macros and hopefully few prototypes,
17319     which can conflict with char shl_load (); below.
17320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17321     <limits.h> exists even on freestanding compilers.  */
17322
17323 #ifdef __STDC__
17324 # include <limits.h>
17325 #else
17326 # include <assert.h>
17327 #endif
17328
17329 #undef shl_load
17330
17331 /* Override any gcc2 internal prototype to avoid an error.  */
17332 #ifdef __cplusplus
17333 extern "C"
17334 {
17335 #endif
17336 /* We use char because int might match the return type of a gcc2
17337    builtin and then its argument prototype would still apply.  */
17338 char shl_load ();
17339 /* The GNU C library defines this for functions which it implements
17340     to always fail with ENOSYS.  Some functions are actually named
17341     something starting with __ and the normal name is an alias.  */
17342 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17343 choke me
17344 #else
17345 char (*f) () = shl_load;
17346 #endif
17347 #ifdef __cplusplus
17348 }
17349 #endif
17350
17351 int
17352 main ()
17353 {
17354 return f != shl_load;
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17361   (eval $ac_link) 2>conftest.er1
17362   ac_status=$?
17363   grep -v '^ *+' conftest.er1 >conftest.err
17364   rm -f conftest.er1
17365   cat conftest.err >&5
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); } &&
17368          { ac_try='test -z "$ac_c_werror_flag"
17369                          || test ! -s conftest.err'
17370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371   (eval $ac_try) 2>&5
17372   ac_status=$?
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; } &&
17375          { ac_try='test -s conftest$ac_exeext'
17376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377   (eval $ac_try) 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); }; }; then
17381   ac_cv_func_shl_load=yes
17382 else
17383   echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386 ac_cv_func_shl_load=no
17387 fi
17388 rm -f conftest.err conftest.$ac_objext \
17389       conftest$ac_exeext conftest.$ac_ext
17390 fi
17391 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17392 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17393 if test $ac_cv_func_shl_load = yes; then
17394   lt_cv_dlopen="shl_load"
17395 else
17396   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17397 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17398 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17399   echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401   ac_check_lib_save_LIBS=$LIBS
17402 LIBS="-ldld  $LIBS"
17403 cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h.  */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h.  */
17409
17410 /* Override any gcc2 internal prototype to avoid an error.  */
17411 #ifdef __cplusplus
17412 extern "C"
17413 #endif
17414 /* We use char because int might match the return type of a gcc2
17415    builtin and then its argument prototype would still apply.  */
17416 char shl_load ();
17417 int
17418 main ()
17419 {
17420 shl_load ();
17421   ;
17422   return 0;
17423 }
17424 _ACEOF
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17427   (eval $ac_link) 2>conftest.er1
17428   ac_status=$?
17429   grep -v '^ *+' conftest.er1 >conftest.err
17430   rm -f conftest.er1
17431   cat conftest.err >&5
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); } &&
17434          { ac_try='test -z "$ac_c_werror_flag"
17435                          || test ! -s conftest.err'
17436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437   (eval $ac_try) 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); }; } &&
17441          { ac_try='test -s conftest$ac_exeext'
17442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443   (eval $ac_try) 2>&5
17444   ac_status=$?
17445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446   (exit $ac_status); }; }; then
17447   ac_cv_lib_dld_shl_load=yes
17448 else
17449   echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17451
17452 ac_cv_lib_dld_shl_load=no
17453 fi
17454 rm -f conftest.err conftest.$ac_objext \
17455       conftest$ac_exeext conftest.$ac_ext
17456 LIBS=$ac_check_lib_save_LIBS
17457 fi
17458 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17459 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17460 if test $ac_cv_lib_dld_shl_load = yes; then
17461   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17462 else
17463   echo "$as_me:$LINENO: checking for dlopen" >&5
17464 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17465 if test "${ac_cv_func_dlopen+set}" = set; then
17466   echo $ECHO_N "(cached) $ECHO_C" >&6
17467 else
17468   cat >conftest.$ac_ext <<_ACEOF
17469 /* confdefs.h.  */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h.  */
17474 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17476 #define dlopen innocuous_dlopen
17477
17478 /* System header to define __stub macros and hopefully few prototypes,
17479     which can conflict with char dlopen (); below.
17480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17481     <limits.h> exists even on freestanding compilers.  */
17482
17483 #ifdef __STDC__
17484 # include <limits.h>
17485 #else
17486 # include <assert.h>
17487 #endif
17488
17489 #undef dlopen
17490
17491 /* Override any gcc2 internal prototype to avoid an error.  */
17492 #ifdef __cplusplus
17493 extern "C"
17494 {
17495 #endif
17496 /* We use char because int might match the return type of a gcc2
17497    builtin and then its argument prototype would still apply.  */
17498 char dlopen ();
17499 /* The GNU C library defines this for functions which it implements
17500     to always fail with ENOSYS.  Some functions are actually named
17501     something starting with __ and the normal name is an alias.  */
17502 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17503 choke me
17504 #else
17505 char (*f) () = dlopen;
17506 #endif
17507 #ifdef __cplusplus
17508 }
17509 #endif
17510
17511 int
17512 main ()
17513 {
17514 return f != dlopen;
17515   ;
17516   return 0;
17517 }
17518 _ACEOF
17519 rm -f conftest.$ac_objext conftest$ac_exeext
17520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17521   (eval $ac_link) 2>conftest.er1
17522   ac_status=$?
17523   grep -v '^ *+' conftest.er1 >conftest.err
17524   rm -f conftest.er1
17525   cat conftest.err >&5
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); } &&
17528          { ac_try='test -z "$ac_c_werror_flag"
17529                          || test ! -s conftest.err'
17530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531   (eval $ac_try) 2>&5
17532   ac_status=$?
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); }; } &&
17535          { ac_try='test -s conftest$ac_exeext'
17536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537   (eval $ac_try) 2>&5
17538   ac_status=$?
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); }; }; then
17541   ac_cv_func_dlopen=yes
17542 else
17543   echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17545
17546 ac_cv_func_dlopen=no
17547 fi
17548 rm -f conftest.err conftest.$ac_objext \
17549       conftest$ac_exeext conftest.$ac_ext
17550 fi
17551 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17552 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17553 if test $ac_cv_func_dlopen = yes; then
17554   lt_cv_dlopen="dlopen"
17555 else
17556   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17557 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17559   echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561   ac_check_lib_save_LIBS=$LIBS
17562 LIBS="-ldl  $LIBS"
17563 cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h.  */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h.  */
17569
17570 /* Override any gcc2 internal prototype to avoid an error.  */
17571 #ifdef __cplusplus
17572 extern "C"
17573 #endif
17574 /* We use char because int might match the return type of a gcc2
17575    builtin and then its argument prototype would still apply.  */
17576 char dlopen ();
17577 int
17578 main ()
17579 {
17580 dlopen ();
17581   ;
17582   return 0;
17583 }
17584 _ACEOF
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17587   (eval $ac_link) 2>conftest.er1
17588   ac_status=$?
17589   grep -v '^ *+' conftest.er1 >conftest.err
17590   rm -f conftest.er1
17591   cat conftest.err >&5
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); } &&
17594          { ac_try='test -z "$ac_c_werror_flag"
17595                          || test ! -s conftest.err'
17596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597   (eval $ac_try) 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; } &&
17601          { ac_try='test -s conftest$ac_exeext'
17602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603   (eval $ac_try) 2>&5
17604   ac_status=$?
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); }; }; then
17607   ac_cv_lib_dl_dlopen=yes
17608 else
17609   echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17611
17612 ac_cv_lib_dl_dlopen=no
17613 fi
17614 rm -f conftest.err conftest.$ac_objext \
17615       conftest$ac_exeext conftest.$ac_ext
17616 LIBS=$ac_check_lib_save_LIBS
17617 fi
17618 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17619 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17620 if test $ac_cv_lib_dl_dlopen = yes; then
17621   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17622 else
17623   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17624 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17625 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17626   echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628   ac_check_lib_save_LIBS=$LIBS
17629 LIBS="-lsvld  $LIBS"
17630 cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h.  */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h.  */
17636
17637 /* Override any gcc2 internal prototype to avoid an error.  */
17638 #ifdef __cplusplus
17639 extern "C"
17640 #endif
17641 /* We use char because int might match the return type of a gcc2
17642    builtin and then its argument prototype would still apply.  */
17643 char dlopen ();
17644 int
17645 main ()
17646 {
17647 dlopen ();
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17654   (eval $ac_link) 2>conftest.er1
17655   ac_status=$?
17656   grep -v '^ *+' conftest.er1 >conftest.err
17657   rm -f conftest.er1
17658   cat conftest.err >&5
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); } &&
17661          { ac_try='test -z "$ac_c_werror_flag"
17662                          || test ! -s conftest.err'
17663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664   (eval $ac_try) 2>&5
17665   ac_status=$?
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); }; } &&
17668          { ac_try='test -s conftest$ac_exeext'
17669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670   (eval $ac_try) 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; }; then
17674   ac_cv_lib_svld_dlopen=yes
17675 else
17676   echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679 ac_cv_lib_svld_dlopen=no
17680 fi
17681 rm -f conftest.err conftest.$ac_objext \
17682       conftest$ac_exeext conftest.$ac_ext
17683 LIBS=$ac_check_lib_save_LIBS
17684 fi
17685 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17686 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17687 if test $ac_cv_lib_svld_dlopen = yes; then
17688   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17689 else
17690   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17691 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17692 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17693   echo $ECHO_N "(cached) $ECHO_C" >&6
17694 else
17695   ac_check_lib_save_LIBS=$LIBS
17696 LIBS="-ldld  $LIBS"
17697 cat >conftest.$ac_ext <<_ACEOF
17698 /* confdefs.h.  */
17699 _ACEOF
17700 cat confdefs.h >>conftest.$ac_ext
17701 cat >>conftest.$ac_ext <<_ACEOF
17702 /* end confdefs.h.  */
17703
17704 /* Override any gcc2 internal prototype to avoid an error.  */
17705 #ifdef __cplusplus
17706 extern "C"
17707 #endif
17708 /* We use char because int might match the return type of a gcc2
17709    builtin and then its argument prototype would still apply.  */
17710 char dld_link ();
17711 int
17712 main ()
17713 {
17714 dld_link ();
17715   ;
17716   return 0;
17717 }
17718 _ACEOF
17719 rm -f conftest.$ac_objext conftest$ac_exeext
17720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17721   (eval $ac_link) 2>conftest.er1
17722   ac_status=$?
17723   grep -v '^ *+' conftest.er1 >conftest.err
17724   rm -f conftest.er1
17725   cat conftest.err >&5
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); } &&
17728          { ac_try='test -z "$ac_c_werror_flag"
17729                          || test ! -s conftest.err'
17730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731   (eval $ac_try) 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; } &&
17735          { ac_try='test -s conftest$ac_exeext'
17736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737   (eval $ac_try) 2>&5
17738   ac_status=$?
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); }; }; then
17741   ac_cv_lib_dld_dld_link=yes
17742 else
17743   echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746 ac_cv_lib_dld_dld_link=no
17747 fi
17748 rm -f conftest.err conftest.$ac_objext \
17749       conftest$ac_exeext conftest.$ac_ext
17750 LIBS=$ac_check_lib_save_LIBS
17751 fi
17752 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17753 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17754 if test $ac_cv_lib_dld_dld_link = yes; then
17755   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17756 fi
17757
17758
17759 fi
17760
17761
17762 fi
17763
17764
17765 fi
17766
17767
17768 fi
17769
17770
17771 fi
17772
17773     ;;
17774   esac
17775
17776   if test "x$lt_cv_dlopen" != xno; then
17777     enable_dlopen=yes
17778   else
17779     enable_dlopen=no
17780   fi
17781
17782   case $lt_cv_dlopen in
17783   dlopen)
17784     save_CPPFLAGS="$CPPFLAGS"
17785     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17786
17787     save_LDFLAGS="$LDFLAGS"
17788     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17789
17790     save_LIBS="$LIBS"
17791     LIBS="$lt_cv_dlopen_libs $LIBS"
17792
17793     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17794 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17795 if test "${lt_cv_dlopen_self+set}" = set; then
17796   echo $ECHO_N "(cached) $ECHO_C" >&6
17797 else
17798           if test "$cross_compiling" = yes; then :
17799   lt_cv_dlopen_self=cross
17800 else
17801   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17802   lt_status=$lt_dlunknown
17803   cat > conftest.$ac_ext <<EOF
17804 #line 17804 "configure"
17805 #include "confdefs.h"
17806
17807 #if HAVE_DLFCN_H
17808 #include <dlfcn.h>
17809 #endif
17810
17811 #include <stdio.h>
17812
17813 #ifdef RTLD_GLOBAL
17814 #  define LT_DLGLOBAL           RTLD_GLOBAL
17815 #else
17816 #  ifdef DL_GLOBAL
17817 #    define LT_DLGLOBAL         DL_GLOBAL
17818 #  else
17819 #    define LT_DLGLOBAL         0
17820 #  endif
17821 #endif
17822
17823 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17824    find out it does not work in some platform. */
17825 #ifndef LT_DLLAZY_OR_NOW
17826 #  ifdef RTLD_LAZY
17827 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17828 #  else
17829 #    ifdef DL_LAZY
17830 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17831 #    else
17832 #      ifdef RTLD_NOW
17833 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17834 #      else
17835 #        ifdef DL_NOW
17836 #          define LT_DLLAZY_OR_NOW      DL_NOW
17837 #        else
17838 #          define LT_DLLAZY_OR_NOW      0
17839 #        endif
17840 #      endif
17841 #    endif
17842 #  endif
17843 #endif
17844
17845 #ifdef __cplusplus
17846 extern "C" void exit (int);
17847 #endif
17848
17849 void fnord() { int i=42;}
17850 int main ()
17851 {
17852   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17853   int status = $lt_dlunknown;
17854
17855   if (self)
17856     {
17857       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17858       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17859       /* dlclose (self); */
17860     }
17861
17862     exit (status);
17863 }
17864 EOF
17865   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17866   (eval $ac_link) 2>&5
17867   ac_status=$?
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17870     (./conftest; exit; ) 2>/dev/null
17871     lt_status=$?
17872     case x$lt_status in
17873       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17874       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17875       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17876     esac
17877   else :
17878     # compilation failed
17879     lt_cv_dlopen_self=no
17880   fi
17881 fi
17882 rm -fr conftest*
17883
17884
17885 fi
17886 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17887 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17888
17889     if test "x$lt_cv_dlopen_self" = xyes; then
17890       LDFLAGS="$LDFLAGS $link_static_flag"
17891       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17892 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17893 if test "${lt_cv_dlopen_self_static+set}" = set; then
17894   echo $ECHO_N "(cached) $ECHO_C" >&6
17895 else
17896           if test "$cross_compiling" = yes; then :
17897   lt_cv_dlopen_self_static=cross
17898 else
17899   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17900   lt_status=$lt_dlunknown
17901   cat > conftest.$ac_ext <<EOF
17902 #line 17902 "configure"
17903 #include "confdefs.h"
17904
17905 #if HAVE_DLFCN_H
17906 #include <dlfcn.h>
17907 #endif
17908
17909 #include <stdio.h>
17910
17911 #ifdef RTLD_GLOBAL
17912 #  define LT_DLGLOBAL           RTLD_GLOBAL
17913 #else
17914 #  ifdef DL_GLOBAL
17915 #    define LT_DLGLOBAL         DL_GLOBAL
17916 #  else
17917 #    define LT_DLGLOBAL         0
17918 #  endif
17919 #endif
17920
17921 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17922    find out it does not work in some platform. */
17923 #ifndef LT_DLLAZY_OR_NOW
17924 #  ifdef RTLD_LAZY
17925 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17926 #  else
17927 #    ifdef DL_LAZY
17928 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17929 #    else
17930 #      ifdef RTLD_NOW
17931 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17932 #      else
17933 #        ifdef DL_NOW
17934 #          define LT_DLLAZY_OR_NOW      DL_NOW
17935 #        else
17936 #          define LT_DLLAZY_OR_NOW      0
17937 #        endif
17938 #      endif
17939 #    endif
17940 #  endif
17941 #endif
17942
17943 #ifdef __cplusplus
17944 extern "C" void exit (int);
17945 #endif
17946
17947 void fnord() { int i=42;}
17948 int main ()
17949 {
17950   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17951   int status = $lt_dlunknown;
17952
17953   if (self)
17954     {
17955       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17956       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17957       /* dlclose (self); */
17958     }
17959
17960     exit (status);
17961 }
17962 EOF
17963   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964   (eval $ac_link) 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17968     (./conftest; exit; ) 2>/dev/null
17969     lt_status=$?
17970     case x$lt_status in
17971       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17972       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17973       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17974     esac
17975   else :
17976     # compilation failed
17977     lt_cv_dlopen_self_static=no
17978   fi
17979 fi
17980 rm -fr conftest*
17981
17982
17983 fi
17984 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17985 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17986     fi
17987
17988     CPPFLAGS="$save_CPPFLAGS"
17989     LDFLAGS="$save_LDFLAGS"
17990     LIBS="$save_LIBS"
17991     ;;
17992   esac
17993
17994   case $lt_cv_dlopen_self in
17995   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17996   *) enable_dlopen_self=unknown ;;
17997   esac
17998
17999   case $lt_cv_dlopen_self_static in
18000   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18001   *) enable_dlopen_self_static=unknown ;;
18002   esac
18003 fi
18004
18005
18006 # The else clause should only fire when bootstrapping the
18007 # libtool distribution, otherwise you forgot to ship ltmain.sh
18008 # with your package, and you will get complaints that there are
18009 # no rules to generate ltmain.sh.
18010 if test -f "$ltmain"; then
18011   # See if we are running on zsh, and set the options which allow our commands through
18012   # without removal of \ escapes.
18013   if test -n "${ZSH_VERSION+set}" ; then
18014     setopt NO_GLOB_SUBST
18015   fi
18016   # Now quote all the things that may contain metacharacters while being
18017   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18018   # variables and quote the copies for generation of the libtool script.
18019   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18020     SED SHELL STRIP \
18021     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18022     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18023     deplibs_check_method reload_flag reload_cmds need_locks \
18024     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18025     lt_cv_sys_global_symbol_to_c_name_address \
18026     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18027     old_postinstall_cmds old_postuninstall_cmds \
18028     compiler_GCJ \
18029     CC_GCJ \
18030     LD_GCJ \
18031     lt_prog_compiler_wl_GCJ \
18032     lt_prog_compiler_pic_GCJ \
18033     lt_prog_compiler_static_GCJ \
18034     lt_prog_compiler_no_builtin_flag_GCJ \
18035     export_dynamic_flag_spec_GCJ \
18036     thread_safe_flag_spec_GCJ \
18037     whole_archive_flag_spec_GCJ \
18038     enable_shared_with_static_runtimes_GCJ \
18039     old_archive_cmds_GCJ \
18040     old_archive_from_new_cmds_GCJ \
18041     predep_objects_GCJ \
18042     postdep_objects_GCJ \
18043     predeps_GCJ \
18044     postdeps_GCJ \
18045     compiler_lib_search_path_GCJ \
18046     archive_cmds_GCJ \
18047     archive_expsym_cmds_GCJ \
18048     postinstall_cmds_GCJ \
18049     postuninstall_cmds_GCJ \
18050     old_archive_from_expsyms_cmds_GCJ \
18051     allow_undefined_flag_GCJ \
18052     no_undefined_flag_GCJ \
18053     export_symbols_cmds_GCJ \
18054     hardcode_libdir_flag_spec_GCJ \
18055     hardcode_libdir_flag_spec_ld_GCJ \
18056     hardcode_libdir_separator_GCJ \
18057     hardcode_automatic_GCJ \
18058     module_cmds_GCJ \
18059     module_expsym_cmds_GCJ \
18060     lt_cv_prog_compiler_c_o_GCJ \
18061     exclude_expsyms_GCJ \
18062     include_expsyms_GCJ; do
18063
18064     case $var in
18065     old_archive_cmds_GCJ | \
18066     old_archive_from_new_cmds_GCJ | \
18067     archive_cmds_GCJ | \
18068     archive_expsym_cmds_GCJ | \
18069     module_cmds_GCJ | \
18070     module_expsym_cmds_GCJ | \
18071     old_archive_from_expsyms_cmds_GCJ | \
18072     export_symbols_cmds_GCJ | \
18073     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18074     postinstall_cmds | postuninstall_cmds | \
18075     old_postinstall_cmds | old_postuninstall_cmds | \
18076     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18077       # Double-quote double-evaled strings.
18078       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18079       ;;
18080     *)
18081       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18082       ;;
18083     esac
18084   done
18085
18086   case $lt_echo in
18087   *'\$0 --fallback-echo"')
18088     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18089     ;;
18090   esac
18091
18092 cfgfile="$ofile"
18093
18094   cat <<__EOF__ >> "$cfgfile"
18095 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18096
18097 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18098
18099 # Shell to use when invoking shell scripts.
18100 SHELL=$lt_SHELL
18101
18102 # Whether or not to build shared libraries.
18103 build_libtool_libs=$enable_shared
18104
18105 # Whether or not to build static libraries.
18106 build_old_libs=$enable_static
18107
18108 # Whether or not to add -lc for building shared libraries.
18109 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18110
18111 # Whether or not to disallow shared libs when runtime libs are static
18112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18113
18114 # Whether or not to optimize for fast installation.
18115 fast_install=$enable_fast_install
18116
18117 # The host system.
18118 host_alias=$host_alias
18119 host=$host
18120
18121 # An echo program that does not interpret backslashes.
18122 echo=$lt_echo
18123
18124 # The archiver.
18125 AR=$lt_AR
18126 AR_FLAGS=$lt_AR_FLAGS
18127
18128 # A C compiler.
18129 LTCC=$lt_LTCC
18130
18131 # A language-specific compiler.
18132 CC=$lt_compiler_GCJ
18133
18134 # Is the compiler the GNU C compiler?
18135 with_gcc=$GCC_GCJ
18136
18137 # An ERE matcher.
18138 EGREP=$lt_EGREP
18139
18140 # The linker used to build libraries.
18141 LD=$lt_LD_GCJ
18142
18143 # Whether we need hard or soft links.
18144 LN_S=$lt_LN_S
18145
18146 # A BSD-compatible nm program.
18147 NM=$lt_NM
18148
18149 # A symbol stripping program
18150 STRIP=$lt_STRIP
18151
18152 # Used to examine libraries when file_magic_cmd begins "file"
18153 MAGIC_CMD=$MAGIC_CMD
18154
18155 # Used on cygwin: DLL creation program.
18156 DLLTOOL="$DLLTOOL"
18157
18158 # Used on cygwin: object dumper.
18159 OBJDUMP="$OBJDUMP"
18160
18161 # Used on cygwin: assembler.
18162 AS="$AS"
18163
18164 # The name of the directory that contains temporary libtool files.
18165 objdir=$objdir
18166
18167 # How to create reloadable object files.
18168 reload_flag=$lt_reload_flag
18169 reload_cmds=$lt_reload_cmds
18170
18171 # How to pass a linker flag through the compiler.
18172 wl=$lt_lt_prog_compiler_wl_GCJ
18173
18174 # Object file suffix (normally "o").
18175 objext="$ac_objext"
18176
18177 # Old archive suffix (normally "a").
18178 libext="$libext"
18179
18180 # Shared library suffix (normally ".so").
18181 shrext_cmds='$shrext_cmds'
18182
18183 # Executable file suffix (normally "").
18184 exeext="$exeext"
18185
18186 # Additional compiler flags for building library objects.
18187 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18188 pic_mode=$pic_mode
18189
18190 # What is the maximum length of a command?
18191 max_cmd_len=$lt_cv_sys_max_cmd_len
18192
18193 # Does compiler simultaneously support -c and -o options?
18194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18195
18196 # Must we lock files when doing compilation ?
18197 need_locks=$lt_need_locks
18198
18199 # Do we need the lib prefix for modules?
18200 need_lib_prefix=$need_lib_prefix
18201
18202 # Do we need a version for libraries?
18203 need_version=$need_version
18204
18205 # Whether dlopen is supported.
18206 dlopen_support=$enable_dlopen
18207
18208 # Whether dlopen of programs is supported.
18209 dlopen_self=$enable_dlopen_self
18210
18211 # Whether dlopen of statically linked programs is supported.
18212 dlopen_self_static=$enable_dlopen_self_static
18213
18214 # Compiler flag to prevent dynamic linking.
18215 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18216
18217 # Compiler flag to turn off builtin functions.
18218 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18219
18220 # Compiler flag to allow reflexive dlopens.
18221 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18222
18223 # Compiler flag to generate shared objects directly from archives.
18224 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18225
18226 # Compiler flag to generate thread-safe objects.
18227 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18228
18229 # Library versioning type.
18230 version_type=$version_type
18231
18232 # Format of library name prefix.
18233 libname_spec=$lt_libname_spec
18234
18235 # List of archive names.  First name is the real one, the rest are links.
18236 # The last name is the one that the linker finds with -lNAME.
18237 library_names_spec=$lt_library_names_spec
18238
18239 # The coded name of the library, if different from the real name.
18240 soname_spec=$lt_soname_spec
18241
18242 # Commands used to build and install an old-style archive.
18243 RANLIB=$lt_RANLIB
18244 old_archive_cmds=$lt_old_archive_cmds_GCJ
18245 old_postinstall_cmds=$lt_old_postinstall_cmds
18246 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18247
18248 # Create an old-style archive from a shared archive.
18249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18250
18251 # Create a temporary old-style archive to link instead of a shared archive.
18252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18253
18254 # Commands used to build and install a shared archive.
18255 archive_cmds=$lt_archive_cmds_GCJ
18256 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18257 postinstall_cmds=$lt_postinstall_cmds
18258 postuninstall_cmds=$lt_postuninstall_cmds
18259
18260 # Commands used to build a loadable module (assumed same as above if empty)
18261 module_cmds=$lt_module_cmds_GCJ
18262 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18263
18264 # Commands to strip libraries.
18265 old_striplib=$lt_old_striplib
18266 striplib=$lt_striplib
18267
18268 # Dependencies to place before the objects being linked to create a
18269 # shared library.
18270 predep_objects=$lt_predep_objects_GCJ
18271
18272 # Dependencies to place after the objects being linked to create a
18273 # shared library.
18274 postdep_objects=$lt_postdep_objects_GCJ
18275
18276 # Dependencies to place before the objects being linked to create a
18277 # shared library.
18278 predeps=$lt_predeps_GCJ
18279
18280 # Dependencies to place after the objects being linked to create a
18281 # shared library.
18282 postdeps=$lt_postdeps_GCJ
18283
18284 # The library search path used internally by the compiler when linking
18285 # a shared library.
18286 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18287
18288 # Method to check whether dependent libraries are shared objects.
18289 deplibs_check_method=$lt_deplibs_check_method
18290
18291 # Command to use when deplibs_check_method == file_magic.
18292 file_magic_cmd=$lt_file_magic_cmd
18293
18294 # Flag that allows shared libraries with undefined symbols to be built.
18295 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18296
18297 # Flag that forces no undefined symbols.
18298 no_undefined_flag=$lt_no_undefined_flag_GCJ
18299
18300 # Commands used to finish a libtool library installation in a directory.
18301 finish_cmds=$lt_finish_cmds
18302
18303 # Same as above, but a single script fragment to be evaled but not shown.
18304 finish_eval=$lt_finish_eval
18305
18306 # Take the output of nm and produce a listing of raw symbols and C names.
18307 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18308
18309 # Transform the output of nm in a proper C declaration
18310 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18311
18312 # Transform the output of nm in a C name address pair
18313 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18314
18315 # This is the shared library runtime path variable.
18316 runpath_var=$runpath_var
18317
18318 # This is the shared library path variable.
18319 shlibpath_var=$shlibpath_var
18320
18321 # Is shlibpath searched before the hard-coded library search path?
18322 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18323
18324 # How to hardcode a shared library path into an executable.
18325 hardcode_action=$hardcode_action_GCJ
18326
18327 # Whether we should hardcode library paths into libraries.
18328 hardcode_into_libs=$hardcode_into_libs
18329
18330 # Flag to hardcode \$libdir into a binary during linking.
18331 # This must work even if \$libdir does not exist.
18332 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18333
18334 # If ld is used when linking, flag to hardcode \$libdir into
18335 # a binary during linking. This must work even if \$libdir does
18336 # not exist.
18337 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18338
18339 # Whether we need a single -rpath flag with a separated argument.
18340 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18341
18342 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18343 # resulting binary.
18344 hardcode_direct=$hardcode_direct_GCJ
18345
18346 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18347 # resulting binary.
18348 hardcode_minus_L=$hardcode_minus_L_GCJ
18349
18350 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18351 # the resulting binary.
18352 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18353
18354 # Set to yes if building a shared library automatically hardcodes DIR into the library
18355 # and all subsequent libraries and executables linked against it.
18356 hardcode_automatic=$hardcode_automatic_GCJ
18357
18358 # Variables whose values should be saved in libtool wrapper scripts and
18359 # restored at relink time.
18360 variables_saved_for_relink="$variables_saved_for_relink"
18361
18362 # Whether libtool must link a program against all its dependency libraries.
18363 link_all_deplibs=$link_all_deplibs_GCJ
18364
18365 # Compile-time system search path for libraries
18366 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18367
18368 # Run-time system search path for libraries
18369 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18370
18371 # Fix the shell variable \$srcfile for the compiler.
18372 fix_srcfile_path="$fix_srcfile_path_GCJ"
18373
18374 # Set to yes if exported symbols are required.
18375 always_export_symbols=$always_export_symbols_GCJ
18376
18377 # The commands to list exported symbols.
18378 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18379
18380 # The commands to extract the exported symbol list from a shared archive.
18381 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18382
18383 # Symbols that should not be listed in the preloaded symbols.
18384 exclude_expsyms=$lt_exclude_expsyms_GCJ
18385
18386 # Symbols that must always be exported.
18387 include_expsyms=$lt_include_expsyms_GCJ
18388
18389 # ### END LIBTOOL TAG CONFIG: $tagname
18390
18391 __EOF__
18392
18393
18394 else
18395   # If there is no Makefile yet, we rely on a make rule to execute
18396   # `config.status --recheck' to rerun these tests and create the
18397   # libtool script then.
18398   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18399   if test -f "$ltmain_in"; then
18400     test -f Makefile && make "$ltmain"
18401   fi
18402 fi
18403
18404
18405 ac_ext=c
18406 ac_cpp='$CPP $CPPFLAGS'
18407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18410
18411 CC="$lt_save_CC"
18412
18413         else
18414           tagname=""
18415         fi
18416         ;;
18417
18418       RC)
18419         ac_ext=c
18420 ac_cpp='$CPP $CPPFLAGS'
18421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18424
18425
18426 # Source file extension for RC test sources.
18427 ac_ext=rc
18428
18429 # Object file extension for compiled RC test sources.
18430 objext=o
18431 objext_RC=$objext
18432
18433 # Code to be used in simple compile tests
18434 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18435
18436 # Code to be used in simple link tests
18437 lt_simple_link_test_code="$lt_simple_compile_test_code"
18438
18439 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18440
18441 # If no C compiler was specified, use CC.
18442 LTCC=${LTCC-"$CC"}
18443
18444 # Allow CC to be a program name with arguments.
18445 compiler=$CC
18446
18447
18448 # Allow CC to be a program name with arguments.
18449 lt_save_CC="$CC"
18450 CC=${RC-"windres"}
18451 compiler=$CC
18452 compiler_RC=$CC
18453 lt_cv_prog_compiler_c_o_RC=yes
18454
18455 # The else clause should only fire when bootstrapping the
18456 # libtool distribution, otherwise you forgot to ship ltmain.sh
18457 # with your package, and you will get complaints that there are
18458 # no rules to generate ltmain.sh.
18459 if test -f "$ltmain"; then
18460   # See if we are running on zsh, and set the options which allow our commands through
18461   # without removal of \ escapes.
18462   if test -n "${ZSH_VERSION+set}" ; then
18463     setopt NO_GLOB_SUBST
18464   fi
18465   # Now quote all the things that may contain metacharacters while being
18466   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18467   # variables and quote the copies for generation of the libtool script.
18468   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18469     SED SHELL STRIP \
18470     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18471     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18472     deplibs_check_method reload_flag reload_cmds need_locks \
18473     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18474     lt_cv_sys_global_symbol_to_c_name_address \
18475     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18476     old_postinstall_cmds old_postuninstall_cmds \
18477     compiler_RC \
18478     CC_RC \
18479     LD_RC \
18480     lt_prog_compiler_wl_RC \
18481     lt_prog_compiler_pic_RC \
18482     lt_prog_compiler_static_RC \
18483     lt_prog_compiler_no_builtin_flag_RC \
18484     export_dynamic_flag_spec_RC \
18485     thread_safe_flag_spec_RC \
18486     whole_archive_flag_spec_RC \
18487     enable_shared_with_static_runtimes_RC \
18488     old_archive_cmds_RC \
18489     old_archive_from_new_cmds_RC \
18490     predep_objects_RC \
18491     postdep_objects_RC \
18492     predeps_RC \
18493     postdeps_RC \
18494     compiler_lib_search_path_RC \
18495     archive_cmds_RC \
18496     archive_expsym_cmds_RC \
18497     postinstall_cmds_RC \
18498     postuninstall_cmds_RC \
18499     old_archive_from_expsyms_cmds_RC \
18500     allow_undefined_flag_RC \
18501     no_undefined_flag_RC \
18502     export_symbols_cmds_RC \
18503     hardcode_libdir_flag_spec_RC \
18504     hardcode_libdir_flag_spec_ld_RC \
18505     hardcode_libdir_separator_RC \
18506     hardcode_automatic_RC \
18507     module_cmds_RC \
18508     module_expsym_cmds_RC \
18509     lt_cv_prog_compiler_c_o_RC \
18510     exclude_expsyms_RC \
18511     include_expsyms_RC; do
18512
18513     case $var in
18514     old_archive_cmds_RC | \
18515     old_archive_from_new_cmds_RC | \
18516     archive_cmds_RC | \
18517     archive_expsym_cmds_RC | \
18518     module_cmds_RC | \
18519     module_expsym_cmds_RC | \
18520     old_archive_from_expsyms_cmds_RC | \
18521     export_symbols_cmds_RC | \
18522     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18523     postinstall_cmds | postuninstall_cmds | \
18524     old_postinstall_cmds | old_postuninstall_cmds | \
18525     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18526       # Double-quote double-evaled strings.
18527       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18528       ;;
18529     *)
18530       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18531       ;;
18532     esac
18533   done
18534
18535   case $lt_echo in
18536   *'\$0 --fallback-echo"')
18537     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18538     ;;
18539   esac
18540
18541 cfgfile="$ofile"
18542
18543   cat <<__EOF__ >> "$cfgfile"
18544 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18545
18546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18547
18548 # Shell to use when invoking shell scripts.
18549 SHELL=$lt_SHELL
18550
18551 # Whether or not to build shared libraries.
18552 build_libtool_libs=$enable_shared
18553
18554 # Whether or not to build static libraries.
18555 build_old_libs=$enable_static
18556
18557 # Whether or not to add -lc for building shared libraries.
18558 build_libtool_need_lc=$archive_cmds_need_lc_RC
18559
18560 # Whether or not to disallow shared libs when runtime libs are static
18561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18562
18563 # Whether or not to optimize for fast installation.
18564 fast_install=$enable_fast_install
18565
18566 # The host system.
18567 host_alias=$host_alias
18568 host=$host
18569
18570 # An echo program that does not interpret backslashes.
18571 echo=$lt_echo
18572
18573 # The archiver.
18574 AR=$lt_AR
18575 AR_FLAGS=$lt_AR_FLAGS
18576
18577 # A C compiler.
18578 LTCC=$lt_LTCC
18579
18580 # A language-specific compiler.
18581 CC=$lt_compiler_RC
18582
18583 # Is the compiler the GNU C compiler?
18584 with_gcc=$GCC_RC
18585
18586 # An ERE matcher.
18587 EGREP=$lt_EGREP
18588
18589 # The linker used to build libraries.
18590 LD=$lt_LD_RC
18591
18592 # Whether we need hard or soft links.
18593 LN_S=$lt_LN_S
18594
18595 # A BSD-compatible nm program.
18596 NM=$lt_NM
18597
18598 # A symbol stripping program
18599 STRIP=$lt_STRIP
18600
18601 # Used to examine libraries when file_magic_cmd begins "file"
18602 MAGIC_CMD=$MAGIC_CMD
18603
18604 # Used on cygwin: DLL creation program.
18605 DLLTOOL="$DLLTOOL"
18606
18607 # Used on cygwin: object dumper.
18608 OBJDUMP="$OBJDUMP"
18609
18610 # Used on cygwin: assembler.
18611 AS="$AS"
18612
18613 # The name of the directory that contains temporary libtool files.
18614 objdir=$objdir
18615
18616 # How to create reloadable object files.
18617 reload_flag=$lt_reload_flag
18618 reload_cmds=$lt_reload_cmds
18619
18620 # How to pass a linker flag through the compiler.
18621 wl=$lt_lt_prog_compiler_wl_RC
18622
18623 # Object file suffix (normally "o").
18624 objext="$ac_objext"
18625
18626 # Old archive suffix (normally "a").
18627 libext="$libext"
18628
18629 # Shared library suffix (normally ".so").
18630 shrext_cmds='$shrext_cmds'
18631
18632 # Executable file suffix (normally "").
18633 exeext="$exeext"
18634
18635 # Additional compiler flags for building library objects.
18636 pic_flag=$lt_lt_prog_compiler_pic_RC
18637 pic_mode=$pic_mode
18638
18639 # What is the maximum length of a command?
18640 max_cmd_len=$lt_cv_sys_max_cmd_len
18641
18642 # Does compiler simultaneously support -c and -o options?
18643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18644
18645 # Must we lock files when doing compilation ?
18646 need_locks=$lt_need_locks
18647
18648 # Do we need the lib prefix for modules?
18649 need_lib_prefix=$need_lib_prefix
18650
18651 # Do we need a version for libraries?
18652 need_version=$need_version
18653
18654 # Whether dlopen is supported.
18655 dlopen_support=$enable_dlopen
18656
18657 # Whether dlopen of programs is supported.
18658 dlopen_self=$enable_dlopen_self
18659
18660 # Whether dlopen of statically linked programs is supported.
18661 dlopen_self_static=$enable_dlopen_self_static
18662
18663 # Compiler flag to prevent dynamic linking.
18664 link_static_flag=$lt_lt_prog_compiler_static_RC
18665
18666 # Compiler flag to turn off builtin functions.
18667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18668
18669 # Compiler flag to allow reflexive dlopens.
18670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18671
18672 # Compiler flag to generate shared objects directly from archives.
18673 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18674
18675 # Compiler flag to generate thread-safe objects.
18676 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18677
18678 # Library versioning type.
18679 version_type=$version_type
18680
18681 # Format of library name prefix.
18682 libname_spec=$lt_libname_spec
18683
18684 # List of archive names.  First name is the real one, the rest are links.
18685 # The last name is the one that the linker finds with -lNAME.
18686 library_names_spec=$lt_library_names_spec
18687
18688 # The coded name of the library, if different from the real name.
18689 soname_spec=$lt_soname_spec
18690
18691 # Commands used to build and install an old-style archive.
18692 RANLIB=$lt_RANLIB
18693 old_archive_cmds=$lt_old_archive_cmds_RC
18694 old_postinstall_cmds=$lt_old_postinstall_cmds
18695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18696
18697 # Create an old-style archive from a shared archive.
18698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18699
18700 # Create a temporary old-style archive to link instead of a shared archive.
18701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18702
18703 # Commands used to build and install a shared archive.
18704 archive_cmds=$lt_archive_cmds_RC
18705 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18706 postinstall_cmds=$lt_postinstall_cmds
18707 postuninstall_cmds=$lt_postuninstall_cmds
18708
18709 # Commands used to build a loadable module (assumed same as above if empty)
18710 module_cmds=$lt_module_cmds_RC
18711 module_expsym_cmds=$lt_module_expsym_cmds_RC
18712
18713 # Commands to strip libraries.
18714 old_striplib=$lt_old_striplib
18715 striplib=$lt_striplib
18716
18717 # Dependencies to place before the objects being linked to create a
18718 # shared library.
18719 predep_objects=$lt_predep_objects_RC
18720
18721 # Dependencies to place after the objects being linked to create a
18722 # shared library.
18723 postdep_objects=$lt_postdep_objects_RC
18724
18725 # Dependencies to place before the objects being linked to create a
18726 # shared library.
18727 predeps=$lt_predeps_RC
18728
18729 # Dependencies to place after the objects being linked to create a
18730 # shared library.
18731 postdeps=$lt_postdeps_RC
18732
18733 # The library search path used internally by the compiler when linking
18734 # a shared library.
18735 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18736
18737 # Method to check whether dependent libraries are shared objects.
18738 deplibs_check_method=$lt_deplibs_check_method
18739
18740 # Command to use when deplibs_check_method == file_magic.
18741 file_magic_cmd=$lt_file_magic_cmd
18742
18743 # Flag that allows shared libraries with undefined symbols to be built.
18744 allow_undefined_flag=$lt_allow_undefined_flag_RC
18745
18746 # Flag that forces no undefined symbols.
18747 no_undefined_flag=$lt_no_undefined_flag_RC
18748
18749 # Commands used to finish a libtool library installation in a directory.
18750 finish_cmds=$lt_finish_cmds
18751
18752 # Same as above, but a single script fragment to be evaled but not shown.
18753 finish_eval=$lt_finish_eval
18754
18755 # Take the output of nm and produce a listing of raw symbols and C names.
18756 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18757
18758 # Transform the output of nm in a proper C declaration
18759 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18760
18761 # Transform the output of nm in a C name address pair
18762 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18763
18764 # This is the shared library runtime path variable.
18765 runpath_var=$runpath_var
18766
18767 # This is the shared library path variable.
18768 shlibpath_var=$shlibpath_var
18769
18770 # Is shlibpath searched before the hard-coded library search path?
18771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18772
18773 # How to hardcode a shared library path into an executable.
18774 hardcode_action=$hardcode_action_RC
18775
18776 # Whether we should hardcode library paths into libraries.
18777 hardcode_into_libs=$hardcode_into_libs
18778
18779 # Flag to hardcode \$libdir into a binary during linking.
18780 # This must work even if \$libdir does not exist.
18781 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18782
18783 # If ld is used when linking, flag to hardcode \$libdir into
18784 # a binary during linking. This must work even if \$libdir does
18785 # not exist.
18786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18787
18788 # Whether we need a single -rpath flag with a separated argument.
18789 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18790
18791 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18792 # resulting binary.
18793 hardcode_direct=$hardcode_direct_RC
18794
18795 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18796 # resulting binary.
18797 hardcode_minus_L=$hardcode_minus_L_RC
18798
18799 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18800 # the resulting binary.
18801 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18802
18803 # Set to yes if building a shared library automatically hardcodes DIR into the library
18804 # and all subsequent libraries and executables linked against it.
18805 hardcode_automatic=$hardcode_automatic_RC
18806
18807 # Variables whose values should be saved in libtool wrapper scripts and
18808 # restored at relink time.
18809 variables_saved_for_relink="$variables_saved_for_relink"
18810
18811 # Whether libtool must link a program against all its dependency libraries.
18812 link_all_deplibs=$link_all_deplibs_RC
18813
18814 # Compile-time system search path for libraries
18815 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18816
18817 # Run-time system search path for libraries
18818 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18819
18820 # Fix the shell variable \$srcfile for the compiler.
18821 fix_srcfile_path="$fix_srcfile_path_RC"
18822
18823 # Set to yes if exported symbols are required.
18824 always_export_symbols=$always_export_symbols_RC
18825
18826 # The commands to list exported symbols.
18827 export_symbols_cmds=$lt_export_symbols_cmds_RC
18828
18829 # The commands to extract the exported symbol list from a shared archive.
18830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18831
18832 # Symbols that should not be listed in the preloaded symbols.
18833 exclude_expsyms=$lt_exclude_expsyms_RC
18834
18835 # Symbols that must always be exported.
18836 include_expsyms=$lt_include_expsyms_RC
18837
18838 # ### END LIBTOOL TAG CONFIG: $tagname
18839
18840 __EOF__
18841
18842
18843 else
18844   # If there is no Makefile yet, we rely on a make rule to execute
18845   # `config.status --recheck' to rerun these tests and create the
18846   # libtool script then.
18847   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18848   if test -f "$ltmain_in"; then
18849     test -f Makefile && make "$ltmain"
18850   fi
18851 fi
18852
18853
18854 ac_ext=c
18855 ac_cpp='$CPP $CPPFLAGS'
18856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18859
18860 CC="$lt_save_CC"
18861
18862         ;;
18863
18864       *)
18865         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18866 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18867    { (exit 1); exit 1; }; }
18868         ;;
18869       esac
18870
18871       # Append the new tag name to the list of available tags.
18872       if test -n "$tagname" ; then
18873       available_tags="$available_tags $tagname"
18874     fi
18875     fi
18876   done
18877   IFS="$lt_save_ifs"
18878
18879   # Now substitute the updated list of available tags.
18880   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18881     mv "${ofile}T" "$ofile"
18882     chmod +x "$ofile"
18883   else
18884     rm -f "${ofile}T"
18885     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18886 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18887    { (exit 1); exit 1; }; }
18888   fi
18889 fi
18890
18891
18892
18893 # This can be used to rebuild libtool when needed
18894 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18895
18896 # Always use our own libtool.
18897 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18898
18899 # Prevent multiple expansion
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921 # Extract the first word of "dot", so it can be a program name with args.
18922 set dummy dot; ac_word=$2
18923 echo "$as_me:$LINENO: checking for $ac_word" >&5
18924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18925 if test "${ac_cv_path_DOT+set}" = set; then
18926   echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928   case $DOT in
18929   [\\/]* | ?:[\\/]*)
18930   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18931   ;;
18932   *)
18933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18934 for as_dir in $PATH
18935 do
18936   IFS=$as_save_IFS
18937   test -z "$as_dir" && as_dir=.
18938   for ac_exec_ext in '' $ac_executable_extensions; do
18939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18940     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18942     break 2
18943   fi
18944 done
18945 done
18946
18947   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18948   ;;
18949 esac
18950 fi
18951 DOT=$ac_cv_path_DOT
18952
18953 if test -n "$DOT"; then
18954   echo "$as_me:$LINENO: result: $DOT" >&5
18955 echo "${ECHO_T}$DOT" >&6
18956 else
18957   echo "$as_me:$LINENO: result: no" >&5
18958 echo "${ECHO_T}no" >&6
18959 fi
18960
18961 # Extract the first word of "etags", so it can be a program name with args.
18962 set dummy etags; ac_word=$2
18963 echo "$as_me:$LINENO: checking for $ac_word" >&5
18964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18965 if test "${ac_cv_path_ETAGS+set}" = set; then
18966   echo $ECHO_N "(cached) $ECHO_C" >&6
18967 else
18968   case $ETAGS in
18969   [\\/]* | ?:[\\/]*)
18970   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18971   ;;
18972   *)
18973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18974 for as_dir in $PATH
18975 do
18976   IFS=$as_save_IFS
18977   test -z "$as_dir" && as_dir=.
18978   for ac_exec_ext in '' $ac_executable_extensions; do
18979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18980     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18982     break 2
18983   fi
18984 done
18985 done
18986
18987   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18988   ;;
18989 esac
18990 fi
18991 ETAGS=$ac_cv_path_ETAGS
18992
18993 if test -n "$ETAGS"; then
18994   echo "$as_me:$LINENO: result: $ETAGS" >&5
18995 echo "${ECHO_T}$ETAGS" >&6
18996 else
18997   echo "$as_me:$LINENO: result: no" >&5
18998 echo "${ECHO_T}no" >&6
18999 fi
19000
19001 etags_version=`$ETAGS --version 2>&1`
19002 case "$etags_version" in
19003         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19004         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19005         *) ETAGSFLAGS="" ;;
19006 esac
19007 ETAGSFLAGS=$ETAGSFLAGS
19008
19009 # Extract the first word of "python", so it can be a program name with args.
19010 set dummy python; ac_word=$2
19011 echo "$as_me:$LINENO: checking for $ac_word" >&5
19012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19013 if test "${ac_cv_path_PYTHON+set}" = set; then
19014   echo $ECHO_N "(cached) $ECHO_C" >&6
19015 else
19016   case $PYTHON in
19017   [\\/]* | ?:[\\/]*)
19018   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19019   ;;
19020   *)
19021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19022 for as_dir in $PATH
19023 do
19024   IFS=$as_save_IFS
19025   test -z "$as_dir" && as_dir=.
19026   for ac_exec_ext in '' $ac_executable_extensions; do
19027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19028     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19030     break 2
19031   fi
19032 done
19033 done
19034
19035   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19036   ;;
19037 esac
19038 fi
19039 PYTHON=$ac_cv_path_PYTHON
19040
19041 if test -n "$PYTHON"; then
19042   echo "$as_me:$LINENO: result: $PYTHON" >&5
19043 echo "${ECHO_T}$PYTHON" >&6
19044 else
19045   echo "$as_me:$LINENO: result: no" >&5
19046 echo "${ECHO_T}no" >&6
19047 fi
19048
19049 if test "$PYTHON" = "false"
19050 then
19051         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19052 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19053 fi
19054 # Extract the first word of "qmtest", so it can be a program name with args.
19055 set dummy qmtest; ac_word=$2
19056 echo "$as_me:$LINENO: checking for $ac_word" >&5
19057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19058 if test "${ac_cv_path_QMTEST+set}" = set; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   case $QMTEST in
19062   [\\/]* | ?:[\\/]*)
19063   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19064   ;;
19065   *)
19066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19067 for as_dir in $PATH
19068 do
19069   IFS=$as_save_IFS
19070   test -z "$as_dir" && as_dir=.
19071   for ac_exec_ext in '' $ac_executable_extensions; do
19072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19073     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19075     break 2
19076   fi
19077 done
19078 done
19079
19080   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19081   ;;
19082 esac
19083 fi
19084 QMTEST=$ac_cv_path_QMTEST
19085
19086 if test -n "$QMTEST"; then
19087   echo "$as_me:$LINENO: result: $QMTEST" >&5
19088 echo "${ECHO_T}$QMTEST" >&6
19089 else
19090   echo "$as_me:$LINENO: result: no" >&5
19091 echo "${ECHO_T}no" >&6
19092 fi
19093
19094 if test "$QMTEST" = "false"
19095 then
19096         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19097 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19098 fi
19099
19100 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19101 pymajor=`echo $pyversion | cut -d. -f1`
19102 pyminor=`echo $pyversion | cut -d. -f2`
19103
19104 if test "$pymajor" -ge "2"
19105 then
19106         if test "$pymajor" -eq "2"
19107         then
19108                 if test "$pyminor" -lt "2"
19109                 then
19110                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19111 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19112                 fi
19113         fi
19114 else
19115         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19116 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19117 fi
19118
19119
19120 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19121 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19122 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19123   echo $ECHO_N "(cached) $ECHO_C" >&6
19124 else
19125   ac_check_lib_save_LIBS=$LIBS
19126 LIBS="-lelf  $LIBS"
19127 cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133
19134 /* Override any gcc2 internal prototype to avoid an error.  */
19135 #ifdef __cplusplus
19136 extern "C"
19137 #endif
19138 /* We use char because int might match the return type of a gcc2
19139    builtin and then its argument prototype would still apply.  */
19140 char elf_begin ();
19141 int
19142 main ()
19143 {
19144 elf_begin ();
19145   ;
19146   return 0;
19147 }
19148 _ACEOF
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151   (eval $ac_link) 2>conftest.er1
19152   ac_status=$?
19153   grep -v '^ *+' conftest.er1 >conftest.err
19154   rm -f conftest.er1
19155   cat conftest.err >&5
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); } &&
19158          { ac_try='test -z "$ac_c_werror_flag"
19159                          || test ! -s conftest.err'
19160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161   (eval $ac_try) 2>&5
19162   ac_status=$?
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); }; } &&
19165          { ac_try='test -s conftest$ac_exeext'
19166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167   (eval $ac_try) 2>&5
19168   ac_status=$?
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); }; }; then
19171   ac_cv_lib_elf_elf_begin=yes
19172 else
19173   echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19175
19176 ac_cv_lib_elf_elf_begin=no
19177 fi
19178 rm -f conftest.err conftest.$ac_objext \
19179       conftest$ac_exeext conftest.$ac_ext
19180 LIBS=$ac_check_lib_save_LIBS
19181 fi
19182 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19183 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19184 if test $ac_cv_lib_elf_elf_begin = yes; then
19185   cat >>confdefs.h <<_ACEOF
19186 #define HAVE_LIBELF 1
19187 _ACEOF
19188
19189   LIBS="-lelf $LIBS"
19190
19191 fi
19192
19193
19194 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19195 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19196 if test "${ac_cv_search_dlopen+set}" = set; then
19197   echo $ECHO_N "(cached) $ECHO_C" >&6
19198 else
19199   ac_func_search_save_LIBS=$LIBS
19200 ac_cv_search_dlopen=no
19201 cat >conftest.$ac_ext <<_ACEOF
19202 /* confdefs.h.  */
19203 _ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h.  */
19207
19208 /* Override any gcc2 internal prototype to avoid an error.  */
19209 #ifdef __cplusplus
19210 extern "C"
19211 #endif
19212 /* We use char because int might match the return type of a gcc2
19213    builtin and then its argument prototype would still apply.  */
19214 char dlopen ();
19215 int
19216 main ()
19217 {
19218 dlopen ();
19219   ;
19220   return 0;
19221 }
19222 _ACEOF
19223 rm -f conftest.$ac_objext conftest$ac_exeext
19224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19225   (eval $ac_link) 2>conftest.er1
19226   ac_status=$?
19227   grep -v '^ *+' conftest.er1 >conftest.err
19228   rm -f conftest.er1
19229   cat conftest.err >&5
19230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231   (exit $ac_status); } &&
19232          { ac_try='test -z "$ac_c_werror_flag"
19233                          || test ! -s conftest.err'
19234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235   (eval $ac_try) 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; } &&
19239          { ac_try='test -s conftest$ac_exeext'
19240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241   (eval $ac_try) 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); }; }; then
19245   ac_cv_search_dlopen="none required"
19246 else
19247   echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19249
19250 fi
19251 rm -f conftest.err conftest.$ac_objext \
19252       conftest$ac_exeext conftest.$ac_ext
19253 if test "$ac_cv_search_dlopen" = no; then
19254   for ac_lib in dl; do
19255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19256     cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h.  */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h.  */
19262
19263 /* Override any gcc2 internal prototype to avoid an error.  */
19264 #ifdef __cplusplus
19265 extern "C"
19266 #endif
19267 /* We use char because int might match the return type of a gcc2
19268    builtin and then its argument prototype would still apply.  */
19269 char dlopen ();
19270 int
19271 main ()
19272 {
19273 dlopen ();
19274   ;
19275   return 0;
19276 }
19277 _ACEOF
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19280   (eval $ac_link) 2>conftest.er1
19281   ac_status=$?
19282   grep -v '^ *+' conftest.er1 >conftest.err
19283   rm -f conftest.er1
19284   cat conftest.err >&5
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); } &&
19287          { ac_try='test -z "$ac_c_werror_flag"
19288                          || test ! -s conftest.err'
19289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290   (eval $ac_try) 2>&5
19291   ac_status=$?
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); }; } &&
19294          { ac_try='test -s conftest$ac_exeext'
19295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296   (eval $ac_try) 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); }; }; then
19300   ac_cv_search_dlopen="-l$ac_lib"
19301 break
19302 else
19303   echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19305
19306 fi
19307 rm -f conftest.err conftest.$ac_objext \
19308       conftest$ac_exeext conftest.$ac_ext
19309   done
19310 fi
19311 LIBS=$ac_func_search_save_LIBS
19312 fi
19313 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19314 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19315 if test "$ac_cv_search_dlopen" != no; then
19316   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19317
19318 cat >>confdefs.h <<\_ACEOF
19319 #define HAVE_DLOPEN 1
19320 _ACEOF
19321
19322 else
19323   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19324 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19325 fi
19326
19327
19328 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19329 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19330 if test "${ac_cv_search_mallinfo+set}" = set; then
19331   echo $ECHO_N "(cached) $ECHO_C" >&6
19332 else
19333   ac_func_search_save_LIBS=$LIBS
19334 ac_cv_search_mallinfo=no
19335 cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h.  */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h.  */
19341
19342 /* Override any gcc2 internal prototype to avoid an error.  */
19343 #ifdef __cplusplus
19344 extern "C"
19345 #endif
19346 /* We use char because int might match the return type of a gcc2
19347    builtin and then its argument prototype would still apply.  */
19348 char mallinfo ();
19349 int
19350 main ()
19351 {
19352 mallinfo ();
19353   ;
19354   return 0;
19355 }
19356 _ACEOF
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19359   (eval $ac_link) 2>conftest.er1
19360   ac_status=$?
19361   grep -v '^ *+' conftest.er1 >conftest.err
19362   rm -f conftest.er1
19363   cat conftest.err >&5
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); } &&
19366          { ac_try='test -z "$ac_c_werror_flag"
19367                          || test ! -s conftest.err'
19368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369   (eval $ac_try) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); }; } &&
19373          { ac_try='test -s conftest$ac_exeext'
19374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375   (eval $ac_try) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; }; then
19379   ac_cv_search_mallinfo="none required"
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 fi
19385 rm -f conftest.err conftest.$ac_objext \
19386       conftest$ac_exeext conftest.$ac_ext
19387 if test "$ac_cv_search_mallinfo" = no; then
19388   for ac_lib in malloc; do
19389     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19390     cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h.  */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h.  */
19396
19397 /* Override any gcc2 internal prototype to avoid an error.  */
19398 #ifdef __cplusplus
19399 extern "C"
19400 #endif
19401 /* We use char because int might match the return type of a gcc2
19402    builtin and then its argument prototype would still apply.  */
19403 char mallinfo ();
19404 int
19405 main ()
19406 {
19407 mallinfo ();
19408   ;
19409   return 0;
19410 }
19411 _ACEOF
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19414   (eval $ac_link) 2>conftest.er1
19415   ac_status=$?
19416   grep -v '^ *+' conftest.er1 >conftest.err
19417   rm -f conftest.er1
19418   cat conftest.err >&5
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); } &&
19421          { ac_try='test -z "$ac_c_werror_flag"
19422                          || test ! -s conftest.err'
19423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424   (eval $ac_try) 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; } &&
19428          { ac_try='test -s conftest$ac_exeext'
19429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430   (eval $ac_try) 2>&5
19431   ac_status=$?
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); }; }; then
19434   ac_cv_search_mallinfo="-l$ac_lib"
19435 break
19436 else
19437   echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19439
19440 fi
19441 rm -f conftest.err conftest.$ac_objext \
19442       conftest$ac_exeext conftest.$ac_ext
19443   done
19444 fi
19445 LIBS=$ac_func_search_save_LIBS
19446 fi
19447 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19448 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19449 if test "$ac_cv_search_mallinfo" != no; then
19450   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19451
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE_MALLINFO 1
19454 _ACEOF
19455
19456 fi
19457
19458
19459 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19460 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19461 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19462   echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464   ac_func_search_save_LIBS=$LIBS
19465 ac_cv_search_pthread_mutex_lock=no
19466 cat >conftest.$ac_ext <<_ACEOF
19467 /* confdefs.h.  */
19468 _ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h.  */
19472
19473 /* Override any gcc2 internal prototype to avoid an error.  */
19474 #ifdef __cplusplus
19475 extern "C"
19476 #endif
19477 /* We use char because int might match the return type of a gcc2
19478    builtin and then its argument prototype would still apply.  */
19479 char pthread_mutex_lock ();
19480 int
19481 main ()
19482 {
19483 pthread_mutex_lock ();
19484   ;
19485   return 0;
19486 }
19487 _ACEOF
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19490   (eval $ac_link) 2>conftest.er1
19491   ac_status=$?
19492   grep -v '^ *+' conftest.er1 >conftest.err
19493   rm -f conftest.er1
19494   cat conftest.err >&5
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); } &&
19497          { ac_try='test -z "$ac_c_werror_flag"
19498                          || test ! -s conftest.err'
19499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500   (eval $ac_try) 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); }; } &&
19504          { ac_try='test -s conftest$ac_exeext'
19505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506   (eval $ac_try) 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; }; then
19510   ac_cv_search_pthread_mutex_lock="none required"
19511 else
19512   echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515 fi
19516 rm -f conftest.err conftest.$ac_objext \
19517       conftest$ac_exeext conftest.$ac_ext
19518 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19519   for ac_lib in pthread; do
19520     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19521     cat >conftest.$ac_ext <<_ACEOF
19522 /* confdefs.h.  */
19523 _ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h.  */
19527
19528 /* Override any gcc2 internal prototype to avoid an error.  */
19529 #ifdef __cplusplus
19530 extern "C"
19531 #endif
19532 /* We use char because int might match the return type of a gcc2
19533    builtin and then its argument prototype would still apply.  */
19534 char pthread_mutex_lock ();
19535 int
19536 main ()
19537 {
19538 pthread_mutex_lock ();
19539   ;
19540   return 0;
19541 }
19542 _ACEOF
19543 rm -f conftest.$ac_objext conftest$ac_exeext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19545   (eval $ac_link) 2>conftest.er1
19546   ac_status=$?
19547   grep -v '^ *+' conftest.er1 >conftest.err
19548   rm -f conftest.er1
19549   cat conftest.err >&5
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); } &&
19552          { ac_try='test -z "$ac_c_werror_flag"
19553                          || test ! -s conftest.err'
19554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555   (eval $ac_try) 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); }; } &&
19559          { ac_try='test -s conftest$ac_exeext'
19560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561   (eval $ac_try) 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); }; }; then
19565   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19566 break
19567 else
19568   echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19570
19571 fi
19572 rm -f conftest.err conftest.$ac_objext \
19573       conftest$ac_exeext conftest.$ac_ext
19574   done
19575 fi
19576 LIBS=$ac_func_search_save_LIBS
19577 fi
19578 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19579 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19580 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19581   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19582   HAVE_PTHREAD_MUTEX_LOCK=1
19583 else
19584   HAVE_PTHREAD_MUTEX_LOCK=0
19585 fi
19586
19587
19588
19589 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19590 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19591 if test "${ac_cv_header_stdc+set}" = set; then
19592   echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594   cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600 #include <stdlib.h>
19601 #include <stdarg.h>
19602 #include <string.h>
19603 #include <float.h>
19604
19605 int
19606 main ()
19607 {
19608
19609   ;
19610   return 0;
19611 }
19612 _ACEOF
19613 rm -f conftest.$ac_objext
19614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19615   (eval $ac_compile) 2>conftest.er1
19616   ac_status=$?
19617   grep -v '^ *+' conftest.er1 >conftest.err
19618   rm -f conftest.er1
19619   cat conftest.err >&5
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); } &&
19622          { ac_try='test -z "$ac_c_werror_flag"
19623                          || test ! -s conftest.err'
19624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625   (eval $ac_try) 2>&5
19626   ac_status=$?
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); }; } &&
19629          { ac_try='test -s conftest.$ac_objext'
19630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631   (eval $ac_try) 2>&5
19632   ac_status=$?
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); }; }; then
19635   ac_cv_header_stdc=yes
19636 else
19637   echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19639
19640 ac_cv_header_stdc=no
19641 fi
19642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19643
19644 if test $ac_cv_header_stdc = yes; then
19645   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19646   cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h.  */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h.  */
19652 #include <string.h>
19653
19654 _ACEOF
19655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19656   $EGREP "memchr" >/dev/null 2>&1; then
19657   :
19658 else
19659   ac_cv_header_stdc=no
19660 fi
19661 rm -f conftest*
19662
19663 fi
19664
19665 if test $ac_cv_header_stdc = yes; then
19666   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19667   cat >conftest.$ac_ext <<_ACEOF
19668 /* confdefs.h.  */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h.  */
19673 #include <stdlib.h>
19674
19675 _ACEOF
19676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19677   $EGREP "free" >/dev/null 2>&1; then
19678   :
19679 else
19680   ac_cv_header_stdc=no
19681 fi
19682 rm -f conftest*
19683
19684 fi
19685
19686 if test $ac_cv_header_stdc = yes; then
19687   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19688   if test "$cross_compiling" = yes; then
19689   :
19690 else
19691   cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h.  */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h.  */
19697 #include <ctype.h>
19698 #if ((' ' & 0x0FF) == 0x020)
19699 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19700 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19701 #else
19702 # define ISLOWER(c) \
19703                    (('a' <= (c) && (c) <= 'i') \
19704                      || ('j' <= (c) && (c) <= 'r') \
19705                      || ('s' <= (c) && (c) <= 'z'))
19706 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19707 #endif
19708
19709 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19710 int
19711 main ()
19712 {
19713   int i;
19714   for (i = 0; i < 256; i++)
19715     if (XOR (islower (i), ISLOWER (i))
19716         || toupper (i) != TOUPPER (i))
19717       exit(2);
19718   exit (0);
19719 }
19720 _ACEOF
19721 rm -f conftest$ac_exeext
19722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19723   (eval $ac_link) 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728   (eval $ac_try) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; }; then
19732   :
19733 else
19734   echo "$as_me: program exited with status $ac_status" >&5
19735 echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19737
19738 ( exit $ac_status )
19739 ac_cv_header_stdc=no
19740 fi
19741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19742 fi
19743 fi
19744 fi
19745 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19746 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19747 if test $ac_cv_header_stdc = yes; then
19748
19749 cat >>confdefs.h <<\_ACEOF
19750 #define STDC_HEADERS 1
19751 _ACEOF
19752
19753 fi
19754
19755 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19756 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19757 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760   cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h.  */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h.  */
19766 #include <sys/types.h>
19767 #include <sys/wait.h>
19768 #ifndef WEXITSTATUS
19769 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19770 #endif
19771 #ifndef WIFEXITED
19772 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19773 #endif
19774
19775 int
19776 main ()
19777 {
19778   int s;
19779   wait (&s);
19780   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19781   ;
19782   return 0;
19783 }
19784 _ACEOF
19785 rm -f conftest.$ac_objext
19786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19787   (eval $ac_compile) 2>conftest.er1
19788   ac_status=$?
19789   grep -v '^ *+' conftest.er1 >conftest.err
19790   rm -f conftest.er1
19791   cat conftest.err >&5
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } &&
19794          { ac_try='test -z "$ac_c_werror_flag"
19795                          || test ! -s conftest.err'
19796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797   (eval $ac_try) 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); }; } &&
19801          { ac_try='test -s conftest.$ac_objext'
19802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803   (eval $ac_try) 2>&5
19804   ac_status=$?
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); }; }; then
19807   ac_cv_header_sys_wait_h=yes
19808 else
19809   echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19811
19812 ac_cv_header_sys_wait_h=no
19813 fi
19814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19815 fi
19816 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19817 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19818 if test $ac_cv_header_sys_wait_h = yes; then
19819
19820 cat >>confdefs.h <<\_ACEOF
19821 #define HAVE_SYS_WAIT_H 1
19822 _ACEOF
19823
19824 fi
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838 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
19839 do
19840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842   echo "$as_me:$LINENO: checking for $ac_header" >&5
19843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19845   echo $ECHO_N "(cached) $ECHO_C" >&6
19846 fi
19847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19849 else
19850   # Is the header compilable?
19851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h.  */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h.  */
19859 $ac_includes_default
19860 #include <$ac_header>
19861 _ACEOF
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864   (eval $ac_compile) 2>conftest.er1
19865   ac_status=$?
19866   grep -v '^ *+' conftest.er1 >conftest.err
19867   rm -f conftest.er1
19868   cat conftest.err >&5
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } &&
19871          { ac_try='test -z "$ac_c_werror_flag"
19872                          || test ! -s conftest.err'
19873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874   (eval $ac_try) 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); }; } &&
19878          { ac_try='test -s conftest.$ac_objext'
19879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880   (eval $ac_try) 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; }; then
19884   ac_header_compiler=yes
19885 else
19886   echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_header_compiler=no
19890 fi
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19893 echo "${ECHO_T}$ac_header_compiler" >&6
19894
19895 # Is the header present?
19896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h.  */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h.  */
19904 #include <$ac_header>
19905 _ACEOF
19906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19908   ac_status=$?
19909   grep -v '^ *+' conftest.er1 >conftest.err
19910   rm -f conftest.er1
19911   cat conftest.err >&5
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); } >/dev/null; then
19914   if test -s conftest.err; then
19915     ac_cpp_err=$ac_c_preproc_warn_flag
19916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19917   else
19918     ac_cpp_err=
19919   fi
19920 else
19921   ac_cpp_err=yes
19922 fi
19923 if test -z "$ac_cpp_err"; then
19924   ac_header_preproc=yes
19925 else
19926   echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929   ac_header_preproc=no
19930 fi
19931 rm -f conftest.err conftest.$ac_ext
19932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19933 echo "${ECHO_T}$ac_header_preproc" >&6
19934
19935 # So?  What about this header?
19936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19937   yes:no: )
19938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19942     ac_header_preproc=yes
19943     ;;
19944   no:yes:* )
19945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19947     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19948 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19949     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19951     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19952 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19955     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19957     (
19958       cat <<\_ASBOX
19959 ## ----------------------------------- ##
19960 ## Report this to llvmbugs@cs.uiuc.edu ##
19961 ## ----------------------------------- ##
19962 _ASBOX
19963     ) |
19964       sed "s/^/$as_me: WARNING:     /" >&2
19965     ;;
19966 esac
19967 echo "$as_me:$LINENO: checking for $ac_header" >&5
19968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19970   echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972   eval "$as_ac_Header=\$ac_header_preproc"
19973 fi
19974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19976
19977 fi
19978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19979   cat >>confdefs.h <<_ACEOF
19980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19981 _ACEOF
19982
19983 fi
19984
19985 done
19986
19987
19988 if test "${ac_cv_header_sys_types_h+set}" = set; then
19989   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19990 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19991 if test "${ac_cv_header_sys_types_h+set}" = set; then
19992   echo $ECHO_N "(cached) $ECHO_C" >&6
19993 fi
19994 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19995 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19996 else
19997   # Is the header compilable?
19998 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19999 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20000 cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h.  */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h.  */
20006 $ac_includes_default
20007 #include <sys/types.h>
20008 _ACEOF
20009 rm -f conftest.$ac_objext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20011   (eval $ac_compile) 2>conftest.er1
20012   ac_status=$?
20013   grep -v '^ *+' conftest.er1 >conftest.err
20014   rm -f conftest.er1
20015   cat conftest.err >&5
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); } &&
20018          { ac_try='test -z "$ac_c_werror_flag"
20019                          || test ! -s conftest.err'
20020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021   (eval $ac_try) 2>&5
20022   ac_status=$?
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); }; } &&
20025          { ac_try='test -s conftest.$ac_objext'
20026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027   (eval $ac_try) 2>&5
20028   ac_status=$?
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); }; }; then
20031   ac_header_compiler=yes
20032 else
20033   echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036 ac_header_compiler=no
20037 fi
20038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20040 echo "${ECHO_T}$ac_header_compiler" >&6
20041
20042 # Is the header present?
20043 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20044 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h.  */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h.  */
20051 #include <sys/types.h>
20052 _ACEOF
20053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20055   ac_status=$?
20056   grep -v '^ *+' conftest.er1 >conftest.err
20057   rm -f conftest.er1
20058   cat conftest.err >&5
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } >/dev/null; then
20061   if test -s conftest.err; then
20062     ac_cpp_err=$ac_c_preproc_warn_flag
20063     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20064   else
20065     ac_cpp_err=
20066   fi
20067 else
20068   ac_cpp_err=yes
20069 fi
20070 if test -z "$ac_cpp_err"; then
20071   ac_header_preproc=yes
20072 else
20073   echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20075
20076   ac_header_preproc=no
20077 fi
20078 rm -f conftest.err conftest.$ac_ext
20079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20080 echo "${ECHO_T}$ac_header_preproc" >&6
20081
20082 # So?  What about this header?
20083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20084   yes:no: )
20085     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20086 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20087     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20088 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20089     ac_header_preproc=yes
20090     ;;
20091   no:yes:* )
20092     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20093 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20094     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20095 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20096     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20097 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20098     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20099 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20100     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20101 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20102     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20103 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20104     (
20105       cat <<\_ASBOX
20106 ## ----------------------------------- ##
20107 ## Report this to llvmbugs@cs.uiuc.edu ##
20108 ## ----------------------------------- ##
20109 _ASBOX
20110     ) |
20111       sed "s/^/$as_me: WARNING:     /" >&2
20112     ;;
20113 esac
20114 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20115 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20116 if test "${ac_cv_header_sys_types_h+set}" = set; then
20117   echo $ECHO_N "(cached) $ECHO_C" >&6
20118 else
20119   ac_cv_header_sys_types_h=$ac_header_preproc
20120 fi
20121 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20122 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20123
20124 fi
20125
20126
20127 if test "${ac_cv_header_inttypes_h+set}" = set; then
20128   echo "$as_me:$LINENO: checking for inttypes.h" >&5
20129 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20130 if test "${ac_cv_header_inttypes_h+set}" = set; then
20131   echo $ECHO_N "(cached) $ECHO_C" >&6
20132 fi
20133 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20134 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20135 else
20136   # Is the header compilable?
20137 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20138 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20139 cat >conftest.$ac_ext <<_ACEOF
20140 /* confdefs.h.  */
20141 _ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h.  */
20145 $ac_includes_default
20146 #include <inttypes.h>
20147 _ACEOF
20148 rm -f conftest.$ac_objext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20150   (eval $ac_compile) 2>conftest.er1
20151   ac_status=$?
20152   grep -v '^ *+' conftest.er1 >conftest.err
20153   rm -f conftest.er1
20154   cat conftest.err >&5
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } &&
20157          { ac_try='test -z "$ac_c_werror_flag"
20158                          || test ! -s conftest.err'
20159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160   (eval $ac_try) 2>&5
20161   ac_status=$?
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); }; } &&
20164          { ac_try='test -s conftest.$ac_objext'
20165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166   (eval $ac_try) 2>&5
20167   ac_status=$?
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); }; }; then
20170   ac_header_compiler=yes
20171 else
20172   echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175 ac_header_compiler=no
20176 fi
20177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20179 echo "${ECHO_T}$ac_header_compiler" >&6
20180
20181 # Is the header present?
20182 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20183 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h.  */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h.  */
20190 #include <inttypes.h>
20191 _ACEOF
20192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20194   ac_status=$?
20195   grep -v '^ *+' conftest.er1 >conftest.err
20196   rm -f conftest.er1
20197   cat conftest.err >&5
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); } >/dev/null; then
20200   if test -s conftest.err; then
20201     ac_cpp_err=$ac_c_preproc_warn_flag
20202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20203   else
20204     ac_cpp_err=
20205   fi
20206 else
20207   ac_cpp_err=yes
20208 fi
20209 if test -z "$ac_cpp_err"; then
20210   ac_header_preproc=yes
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215   ac_header_preproc=no
20216 fi
20217 rm -f conftest.err conftest.$ac_ext
20218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20219 echo "${ECHO_T}$ac_header_preproc" >&6
20220
20221 # So?  What about this header?
20222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20223   yes:no: )
20224     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20225 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20226     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20227 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20228     ac_header_preproc=yes
20229     ;;
20230   no:yes:* )
20231     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20232 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20233     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20234 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20235     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20236 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20237     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20238 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20239     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20240 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20241     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20242 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20243     (
20244       cat <<\_ASBOX
20245 ## ----------------------------------- ##
20246 ## Report this to llvmbugs@cs.uiuc.edu ##
20247 ## ----------------------------------- ##
20248 _ASBOX
20249     ) |
20250       sed "s/^/$as_me: WARNING:     /" >&2
20251     ;;
20252 esac
20253 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20254 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20255 if test "${ac_cv_header_inttypes_h+set}" = set; then
20256   echo $ECHO_N "(cached) $ECHO_C" >&6
20257 else
20258   ac_cv_header_inttypes_h=$ac_header_preproc
20259 fi
20260 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20261 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20262
20263 fi
20264
20265
20266 if test "${ac_cv_header_stdint_h+set}" = set; then
20267   echo "$as_me:$LINENO: checking for stdint.h" >&5
20268 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20269 if test "${ac_cv_header_stdint_h+set}" = set; then
20270   echo $ECHO_N "(cached) $ECHO_C" >&6
20271 fi
20272 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20273 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20274 else
20275   # Is the header compilable?
20276 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20277 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20278 cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h.  */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h.  */
20284 $ac_includes_default
20285 #include <stdint.h>
20286 _ACEOF
20287 rm -f conftest.$ac_objext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289   (eval $ac_compile) 2>conftest.er1
20290   ac_status=$?
20291   grep -v '^ *+' conftest.er1 >conftest.err
20292   rm -f conftest.er1
20293   cat conftest.err >&5
20294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); } &&
20296          { ac_try='test -z "$ac_c_werror_flag"
20297                          || test ! -s conftest.err'
20298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299   (eval $ac_try) 2>&5
20300   ac_status=$?
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); }; } &&
20303          { ac_try='test -s conftest.$ac_objext'
20304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305   (eval $ac_try) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); }; }; then
20309   ac_header_compiler=yes
20310 else
20311   echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 ac_header_compiler=no
20315 fi
20316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20318 echo "${ECHO_T}$ac_header_compiler" >&6
20319
20320 # Is the header present?
20321 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20322 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329 #include <stdint.h>
20330 _ACEOF
20331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20332   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20333   ac_status=$?
20334   grep -v '^ *+' conftest.er1 >conftest.err
20335   rm -f conftest.er1
20336   cat conftest.err >&5
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } >/dev/null; then
20339   if test -s conftest.err; then
20340     ac_cpp_err=$ac_c_preproc_warn_flag
20341     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20342   else
20343     ac_cpp_err=
20344   fi
20345 else
20346   ac_cpp_err=yes
20347 fi
20348 if test -z "$ac_cpp_err"; then
20349   ac_header_preproc=yes
20350 else
20351   echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354   ac_header_preproc=no
20355 fi
20356 rm -f conftest.err conftest.$ac_ext
20357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20358 echo "${ECHO_T}$ac_header_preproc" >&6
20359
20360 # So?  What about this header?
20361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20362   yes:no: )
20363     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20364 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20365     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20366 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20367     ac_header_preproc=yes
20368     ;;
20369   no:yes:* )
20370     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20371 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20372     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20373 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20374     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20375 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20376     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20377 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20378     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20379 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20380     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20381 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20382     (
20383       cat <<\_ASBOX
20384 ## ----------------------------------- ##
20385 ## Report this to llvmbugs@cs.uiuc.edu ##
20386 ## ----------------------------------- ##
20387 _ASBOX
20388     ) |
20389       sed "s/^/$as_me: WARNING:     /" >&2
20390     ;;
20391 esac
20392 echo "$as_me:$LINENO: checking for stdint.h" >&5
20393 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20394 if test "${ac_cv_header_stdint_h+set}" = set; then
20395   echo $ECHO_N "(cached) $ECHO_C" >&6
20396 else
20397   ac_cv_header_stdint_h=$ac_header_preproc
20398 fi
20399 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20400 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20401
20402 fi
20403
20404
20405
20406 echo "$as_me:$LINENO: checking for pid_t" >&5
20407 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20408 if test "${ac_cv_type_pid_t+set}" = set; then
20409   echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411   cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417 $ac_includes_default
20418 int
20419 main ()
20420 {
20421 if ((pid_t *) 0)
20422   return 0;
20423 if (sizeof (pid_t))
20424   return 0;
20425   ;
20426   return 0;
20427 }
20428 _ACEOF
20429 rm -f conftest.$ac_objext
20430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431   (eval $ac_compile) 2>conftest.er1
20432   ac_status=$?
20433   grep -v '^ *+' conftest.er1 >conftest.err
20434   rm -f conftest.er1
20435   cat conftest.err >&5
20436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437   (exit $ac_status); } &&
20438          { ac_try='test -z "$ac_c_werror_flag"
20439                          || test ! -s conftest.err'
20440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441   (eval $ac_try) 2>&5
20442   ac_status=$?
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); }; } &&
20445          { ac_try='test -s conftest.$ac_objext'
20446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447   (eval $ac_try) 2>&5
20448   ac_status=$?
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); }; }; then
20451   ac_cv_type_pid_t=yes
20452 else
20453   echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20455
20456 ac_cv_type_pid_t=no
20457 fi
20458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20459 fi
20460 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20461 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20462 if test $ac_cv_type_pid_t = yes; then
20463   :
20464 else
20465
20466 cat >>confdefs.h <<_ACEOF
20467 #define pid_t int
20468 _ACEOF
20469
20470 fi
20471
20472 echo "$as_me:$LINENO: checking for size_t" >&5
20473 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20474 if test "${ac_cv_type_size_t+set}" = set; then
20475   echo $ECHO_N "(cached) $ECHO_C" >&6
20476 else
20477   cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483 $ac_includes_default
20484 int
20485 main ()
20486 {
20487 if ((size_t *) 0)
20488   return 0;
20489 if (sizeof (size_t))
20490   return 0;
20491   ;
20492   return 0;
20493 }
20494 _ACEOF
20495 rm -f conftest.$ac_objext
20496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20497   (eval $ac_compile) 2>conftest.er1
20498   ac_status=$?
20499   grep -v '^ *+' conftest.er1 >conftest.err
20500   rm -f conftest.er1
20501   cat conftest.err >&5
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); } &&
20504          { ac_try='test -z "$ac_c_werror_flag"
20505                          || test ! -s conftest.err'
20506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507   (eval $ac_try) 2>&5
20508   ac_status=$?
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); }; } &&
20511          { ac_try='test -s conftest.$ac_objext'
20512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513   (eval $ac_try) 2>&5
20514   ac_status=$?
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); }; }; then
20517   ac_cv_type_size_t=yes
20518 else
20519   echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20521
20522 ac_cv_type_size_t=no
20523 fi
20524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20525 fi
20526 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20527 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20528 if test $ac_cv_type_size_t = yes; then
20529   :
20530 else
20531
20532 cat >>confdefs.h <<_ACEOF
20533 #define size_t unsigned
20534 _ACEOF
20535
20536 fi
20537
20538 echo "$as_me:$LINENO: checking for int64_t" >&5
20539 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20540 if test "${ac_cv_type_int64_t+set}" = set; then
20541   echo $ECHO_N "(cached) $ECHO_C" >&6
20542 else
20543   cat >conftest.$ac_ext <<_ACEOF
20544 /* confdefs.h.  */
20545 _ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h.  */
20549 $ac_includes_default
20550 int
20551 main ()
20552 {
20553 if ((int64_t *) 0)
20554   return 0;
20555 if (sizeof (int64_t))
20556   return 0;
20557   ;
20558   return 0;
20559 }
20560 _ACEOF
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563   (eval $ac_compile) 2>conftest.er1
20564   ac_status=$?
20565   grep -v '^ *+' conftest.er1 >conftest.err
20566   rm -f conftest.er1
20567   cat conftest.err >&5
20568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); } &&
20570          { ac_try='test -z "$ac_c_werror_flag"
20571                          || test ! -s conftest.err'
20572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573   (eval $ac_try) 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); }; } &&
20577          { ac_try='test -s conftest.$ac_objext'
20578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579   (eval $ac_try) 2>&5
20580   ac_status=$?
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); }; }; then
20583   ac_cv_type_int64_t=yes
20584 else
20585   echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 ac_cv_type_int64_t=no
20589 fi
20590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20591 fi
20592 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20593 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20594 if test $ac_cv_type_int64_t = yes; then
20595
20596 cat >>confdefs.h <<_ACEOF
20597 #define HAVE_INT64_T 1
20598 _ACEOF
20599
20600
20601 else
20602   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20603 echo "$as_me: error: Type int64_t required but not found" >&2;}
20604    { (exit 1); exit 1; }; }
20605 fi
20606
20607 echo "$as_me:$LINENO: checking for uint64_t" >&5
20608 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20609 if test "${ac_cv_type_uint64_t+set}" = set; then
20610   echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612   cat >conftest.$ac_ext <<_ACEOF
20613 /* confdefs.h.  */
20614 _ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h.  */
20618 $ac_includes_default
20619 int
20620 main ()
20621 {
20622 if ((uint64_t *) 0)
20623   return 0;
20624 if (sizeof (uint64_t))
20625   return 0;
20626   ;
20627   return 0;
20628 }
20629 _ACEOF
20630 rm -f conftest.$ac_objext
20631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20632   (eval $ac_compile) 2>conftest.er1
20633   ac_status=$?
20634   grep -v '^ *+' conftest.er1 >conftest.err
20635   rm -f conftest.er1
20636   cat conftest.err >&5
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); } &&
20639          { ac_try='test -z "$ac_c_werror_flag"
20640                          || test ! -s conftest.err'
20641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642   (eval $ac_try) 2>&5
20643   ac_status=$?
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); }; } &&
20646          { ac_try='test -s conftest.$ac_objext'
20647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648   (eval $ac_try) 2>&5
20649   ac_status=$?
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); }; }; then
20652   ac_cv_type_uint64_t=yes
20653 else
20654   echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657 ac_cv_type_uint64_t=no
20658 fi
20659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20660 fi
20661 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20662 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20663 if test $ac_cv_type_uint64_t = yes; then
20664
20665 cat >>confdefs.h <<_ACEOF
20666 #define HAVE_UINT64_T 1
20667 _ACEOF
20668
20669
20670 else
20671   echo "$as_me:$LINENO: checking for u_int64_t" >&5
20672 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20673 if test "${ac_cv_type_u_int64_t+set}" = set; then
20674   echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20676   cat >conftest.$ac_ext <<_ACEOF
20677 /* confdefs.h.  */
20678 _ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h.  */
20682 $ac_includes_default
20683 int
20684 main ()
20685 {
20686 if ((u_int64_t *) 0)
20687   return 0;
20688 if (sizeof (u_int64_t))
20689   return 0;
20690   ;
20691   return 0;
20692 }
20693 _ACEOF
20694 rm -f conftest.$ac_objext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20696   (eval $ac_compile) 2>conftest.er1
20697   ac_status=$?
20698   grep -v '^ *+' conftest.er1 >conftest.err
20699   rm -f conftest.er1
20700   cat conftest.err >&5
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); } &&
20703          { ac_try='test -z "$ac_c_werror_flag"
20704                          || test ! -s conftest.err'
20705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706   (eval $ac_try) 2>&5
20707   ac_status=$?
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); }; } &&
20710          { ac_try='test -s conftest.$ac_objext'
20711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712   (eval $ac_try) 2>&5
20713   ac_status=$?
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); }; }; then
20716   ac_cv_type_u_int64_t=yes
20717 else
20718   echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20720
20721 ac_cv_type_u_int64_t=no
20722 fi
20723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20724 fi
20725 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20726 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20727 if test $ac_cv_type_u_int64_t = yes; then
20728
20729 cat >>confdefs.h <<_ACEOF
20730 #define HAVE_U_INT64_T 1
20731 _ACEOF
20732
20733
20734 else
20735   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20736 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20737    { (exit 1); exit 1; }; }
20738 fi
20739
20740 fi
20741
20742 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20743 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20744 if test "${ac_cv_header_time+set}" = set; then
20745   echo $ECHO_N "(cached) $ECHO_C" >&6
20746 else
20747   cat >conftest.$ac_ext <<_ACEOF
20748 /* confdefs.h.  */
20749 _ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h.  */
20753 #include <sys/types.h>
20754 #include <sys/time.h>
20755 #include <time.h>
20756
20757 int
20758 main ()
20759 {
20760 if ((struct tm *) 0)
20761 return 0;
20762   ;
20763   return 0;
20764 }
20765 _ACEOF
20766 rm -f conftest.$ac_objext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20768   (eval $ac_compile) 2>conftest.er1
20769   ac_status=$?
20770   grep -v '^ *+' conftest.er1 >conftest.err
20771   rm -f conftest.er1
20772   cat conftest.err >&5
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); } &&
20775          { ac_try='test -z "$ac_c_werror_flag"
20776                          || test ! -s conftest.err'
20777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778   (eval $ac_try) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; } &&
20782          { ac_try='test -s conftest.$ac_objext'
20783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784   (eval $ac_try) 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; }; then
20788   ac_cv_header_time=yes
20789 else
20790   echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 ac_cv_header_time=no
20794 fi
20795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20796 fi
20797 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20798 echo "${ECHO_T}$ac_cv_header_time" >&6
20799 if test $ac_cv_header_time = yes; then
20800
20801 cat >>confdefs.h <<\_ACEOF
20802 #define TIME_WITH_SYS_TIME 1
20803 _ACEOF
20804
20805 fi
20806
20807 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20808 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20809 if test "${ac_cv_struct_tm+set}" = set; then
20810   echo $ECHO_N "(cached) $ECHO_C" >&6
20811 else
20812   cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h.  */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h.  */
20818 #include <sys/types.h>
20819 #include <time.h>
20820
20821 int
20822 main ()
20823 {
20824 struct tm *tp; tp->tm_sec;
20825   ;
20826   return 0;
20827 }
20828 _ACEOF
20829 rm -f conftest.$ac_objext
20830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20831   (eval $ac_compile) 2>conftest.er1
20832   ac_status=$?
20833   grep -v '^ *+' conftest.er1 >conftest.err
20834   rm -f conftest.er1
20835   cat conftest.err >&5
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); } &&
20838          { ac_try='test -z "$ac_c_werror_flag"
20839                          || test ! -s conftest.err'
20840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841   (eval $ac_try) 2>&5
20842   ac_status=$?
20843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844   (exit $ac_status); }; } &&
20845          { ac_try='test -s conftest.$ac_objext'
20846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847   (eval $ac_try) 2>&5
20848   ac_status=$?
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); }; }; then
20851   ac_cv_struct_tm=time.h
20852 else
20853   echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20855
20856 ac_cv_struct_tm=sys/time.h
20857 fi
20858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20859 fi
20860 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20861 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20862 if test $ac_cv_struct_tm = sys/time.h; then
20863
20864 cat >>confdefs.h <<\_ACEOF
20865 #define TM_IN_SYS_TIME 1
20866 _ACEOF
20867
20868 fi
20869
20870
20871
20872   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20873 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20874   ac_ext=c
20875 ac_cpp='$CPP $CPPFLAGS'
20876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20879
20880   if test "$cross_compiling" = yes; then
20881   ac_c_printf_a=no
20882 else
20883   cat >conftest.$ac_ext <<_ACEOF
20884
20885     /* confdefs.h.  */
20886 _ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h.  */
20890
20891 #include <stdio.h>
20892 #include <stdlib.h>
20893
20894 int
20895 main ()
20896 {
20897
20898 volatile double A, B;
20899 char Buffer[100];
20900 A = 1;
20901 A /= 10.0;
20902 sprintf(Buffer, "%a", A);
20903 B = atof(Buffer);
20904 if (A != B)
20905   return (1);
20906 if (A != 0x1.999999999999ap-4)
20907   return (1);
20908 return (0);
20909   ;
20910   return 0;
20911 }
20912 _ACEOF
20913 rm -f conftest$ac_exeext
20914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20915   (eval $ac_link) 2>&5
20916   ac_status=$?
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920   (eval $ac_try) 2>&5
20921   ac_status=$?
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); }; }; then
20924   ac_c_printf_a=yes
20925 else
20926   echo "$as_me: program exited with status $ac_status" >&5
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930 ( exit $ac_status )
20931 ac_c_printf_a=no
20932 fi
20933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20934 fi
20935  ac_ext=c
20936 ac_cpp='$CPP $CPPFLAGS'
20937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20940
20941  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20942 echo "${ECHO_T}$ac_c_printf_a" >&6
20943  if test "$ac_c_printf_a" = "yes"; then
20944
20945 cat >>confdefs.h <<\_ACEOF
20946 #define HAVE_PRINTF_A 1
20947 _ACEOF
20948
20949  fi
20950
20951
20952 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20953 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20954 if test "${ac_cv_c_bigendian+set}" = set; then
20955   echo $ECHO_N "(cached) $ECHO_C" >&6
20956 else
20957   # See if sys/param.h defines the BYTE_ORDER macro.
20958 cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h.  */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h.  */
20964 #include <sys/types.h>
20965 #include <sys/param.h>
20966
20967 int
20968 main ()
20969 {
20970 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20971  bogus endian macros
20972 #endif
20973
20974   ;
20975   return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest.$ac_objext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20980   (eval $ac_compile) 2>conftest.er1
20981   ac_status=$?
20982   grep -v '^ *+' conftest.er1 >conftest.err
20983   rm -f conftest.er1
20984   cat conftest.err >&5
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); } &&
20987          { ac_try='test -z "$ac_c_werror_flag"
20988                          || test ! -s conftest.err'
20989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990   (eval $ac_try) 2>&5
20991   ac_status=$?
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); }; } &&
20994          { ac_try='test -s conftest.$ac_objext'
20995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996   (eval $ac_try) 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); }; }; then
21000   # It does; now see whether it defined to BIG_ENDIAN or not.
21001 cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007 #include <sys/types.h>
21008 #include <sys/param.h>
21009
21010 int
21011 main ()
21012 {
21013 #if BYTE_ORDER != BIG_ENDIAN
21014  not big endian
21015 #endif
21016
21017   ;
21018   return 0;
21019 }
21020 _ACEOF
21021 rm -f conftest.$ac_objext
21022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21023   (eval $ac_compile) 2>conftest.er1
21024   ac_status=$?
21025   grep -v '^ *+' conftest.er1 >conftest.err
21026   rm -f conftest.er1
21027   cat conftest.err >&5
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); } &&
21030          { ac_try='test -z "$ac_c_werror_flag"
21031                          || test ! -s conftest.err'
21032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033   (eval $ac_try) 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; } &&
21037          { ac_try='test -s conftest.$ac_objext'
21038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039   (eval $ac_try) 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); }; }; then
21043   ac_cv_c_bigendian=yes
21044 else
21045   echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048 ac_cv_c_bigendian=no
21049 fi
21050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21051 else
21052   echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21054
21055 # It does not; compile a test program.
21056 if test "$cross_compiling" = yes; then
21057   # try to guess the endianness by grepping values into an object file
21058   ac_cv_c_bigendian=unknown
21059   cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h.  */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h.  */
21065 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21066 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21067 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21068 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21069 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21070 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21071 int
21072 main ()
21073 {
21074  _ascii (); _ebcdic ();
21075   ;
21076   return 0;
21077 }
21078 _ACEOF
21079 rm -f conftest.$ac_objext
21080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21081   (eval $ac_compile) 2>conftest.er1
21082   ac_status=$?
21083   grep -v '^ *+' conftest.er1 >conftest.err
21084   rm -f conftest.er1
21085   cat conftest.err >&5
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); } &&
21088          { ac_try='test -z "$ac_c_werror_flag"
21089                          || test ! -s conftest.err'
21090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091   (eval $ac_try) 2>&5
21092   ac_status=$?
21093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094   (exit $ac_status); }; } &&
21095          { ac_try='test -s conftest.$ac_objext'
21096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097   (eval $ac_try) 2>&5
21098   ac_status=$?
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); }; }; then
21101   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21102   ac_cv_c_bigendian=yes
21103 fi
21104 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21105   if test "$ac_cv_c_bigendian" = unknown; then
21106     ac_cv_c_bigendian=no
21107   else
21108     # finding both strings is unlikely to happen, but who knows?
21109     ac_cv_c_bigendian=unknown
21110   fi
21111 fi
21112 else
21113   echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21115
21116 fi
21117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21118 else
21119   cat >conftest.$ac_ext <<_ACEOF
21120 /* confdefs.h.  */
21121 _ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h.  */
21125 int
21126 main ()
21127 {
21128   /* Are we little or big endian?  From Harbison&Steele.  */
21129   union
21130   {
21131     long l;
21132     char c[sizeof (long)];
21133   } u;
21134   u.l = 1;
21135   exit (u.c[sizeof (long) - 1] == 1);
21136 }
21137 _ACEOF
21138 rm -f conftest$ac_exeext
21139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21140   (eval $ac_link) 2>&5
21141   ac_status=$?
21142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145   (eval $ac_try) 2>&5
21146   ac_status=$?
21147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148   (exit $ac_status); }; }; then
21149   ac_cv_c_bigendian=no
21150 else
21151   echo "$as_me: program exited with status $ac_status" >&5
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 ( exit $ac_status )
21156 ac_cv_c_bigendian=yes
21157 fi
21158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21159 fi
21160 fi
21161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21162 fi
21163 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21164 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21165 case $ac_cv_c_bigendian in
21166   yes)
21167     ENDIAN=big
21168  ;;
21169   no)
21170     ENDIAN=little
21171  ;;
21172   *)
21173     { { echo "$as_me:$LINENO: error: unknown endianness
21174 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21175 echo "$as_me: error: unknown endianness
21176 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21177    { (exit 1); exit 1; }; } ;;
21178 esac
21179
21180
21181 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21182 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21183 if test "${ac_cv_cxx_namespaces+set}" = set; then
21184   echo $ECHO_N "(cached) $ECHO_C" >&6
21185 else
21186   ac_ext=cc
21187 ac_cpp='$CXXCPP $CPPFLAGS'
21188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21191
21192  cat >conftest.$ac_ext <<_ACEOF
21193 /* confdefs.h.  */
21194 _ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h.  */
21198 namespace Outer { namespace Inner { int i = 0; }}
21199 int
21200 main ()
21201 {
21202 using namespace Outer::Inner; return i;
21203   ;
21204   return 0;
21205 }
21206 _ACEOF
21207 rm -f conftest.$ac_objext
21208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21209   (eval $ac_compile) 2>conftest.er1
21210   ac_status=$?
21211   grep -v '^ *+' conftest.er1 >conftest.err
21212   rm -f conftest.er1
21213   cat conftest.err >&5
21214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215   (exit $ac_status); } &&
21216          { ac_try='test -z "$ac_cxx_werror_flag"
21217                          || test ! -s conftest.err'
21218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219   (eval $ac_try) 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); }; } &&
21223          { ac_try='test -s conftest.$ac_objext'
21224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225   (eval $ac_try) 2>&5
21226   ac_status=$?
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); }; }; then
21229   ac_cv_cxx_namespaces=yes
21230 else
21231   echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21233
21234 ac_cv_cxx_namespaces=no
21235 fi
21236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21237  ac_ext=c
21238 ac_cpp='$CPP $CPPFLAGS'
21239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21242
21243
21244 fi
21245 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21246 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21247 if test "$ac_cv_cxx_namespaces" = yes; then
21248
21249 cat >>confdefs.h <<\_ACEOF
21250 #define HAVE_NAMESPACES
21251 _ACEOF
21252
21253 fi
21254
21255 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21256 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21257 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21258   echo $ECHO_N "(cached) $ECHO_C" >&6
21259 else
21260
21261   ac_ext=cc
21262 ac_cpp='$CXXCPP $CPPFLAGS'
21263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21266
21267   cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h.  */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h.  */
21273 #include <ext/hash_map>
21274 #ifdef HAVE_NAMESPACES
21275 using namespace std;
21276 #endif
21277 int
21278 main ()
21279 {
21280 hash_map<int, int> t;
21281   ;
21282   return 0;
21283 }
21284 _ACEOF
21285 rm -f conftest.$ac_objext
21286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21287   (eval $ac_compile) 2>conftest.er1
21288   ac_status=$?
21289   grep -v '^ *+' conftest.er1 >conftest.err
21290   rm -f conftest.er1
21291   cat conftest.err >&5
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); } &&
21294          { ac_try='test -z "$ac_cxx_werror_flag"
21295                          || test ! -s conftest.err'
21296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297   (eval $ac_try) 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); }; } &&
21301          { ac_try='test -s conftest.$ac_objext'
21302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303   (eval $ac_try) 2>&5
21304   ac_status=$?
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); }; }; then
21307   ac_cv_cxx_have_std_ext_hash_map=yes
21308 else
21309   echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312 ac_cv_cxx_have_std_ext_hash_map=no
21313 fi
21314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21315   ac_ext=c
21316 ac_cpp='$CPP $CPPFLAGS'
21317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21320
21321 fi
21322 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21323 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21324  HAVE_STD_EXT_HASH_MAP=0
21325  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21326  then
21327    HAVE_STD_EXT_HASH_MAP=1
21328  fi
21329
21330  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21331 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21332 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21333   echo $ECHO_N "(cached) $ECHO_C" >&6
21334 else
21335
21336   ac_ext=cc
21337 ac_cpp='$CXXCPP $CPPFLAGS'
21338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21341
21342   cat >conftest.$ac_ext <<_ACEOF
21343 /* confdefs.h.  */
21344 _ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h.  */
21348 #include <ext/hash_map>
21349 #ifdef HAVE_NAMESPACES
21350 using namespace __gnu_cxx;
21351 #endif
21352 int
21353 main ()
21354 {
21355 hash_map<int,int> t;
21356   ;
21357   return 0;
21358 }
21359 _ACEOF
21360 rm -f conftest.$ac_objext
21361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21362   (eval $ac_compile) 2>conftest.er1
21363   ac_status=$?
21364   grep -v '^ *+' conftest.er1 >conftest.err
21365   rm -f conftest.er1
21366   cat conftest.err >&5
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); } &&
21369          { ac_try='test -z "$ac_cxx_werror_flag"
21370                          || test ! -s conftest.err'
21371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372   (eval $ac_try) 2>&5
21373   ac_status=$?
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); }; } &&
21376          { ac_try='test -s conftest.$ac_objext'
21377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378   (eval $ac_try) 2>&5
21379   ac_status=$?
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); }; }; then
21382   ac_cv_cxx_have_gnu_ext_hash_map=yes
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 ac_cv_cxx_have_gnu_ext_hash_map=no
21388 fi
21389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21390   ac_ext=c
21391 ac_cpp='$CPP $CPPFLAGS'
21392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21395
21396 fi
21397 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21398 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21399  HAVE_GNU_EXT_HASH_MAP=0
21400  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21401  then
21402    HAVE_GNU_EXT_HASH_MAP=1
21403  fi
21404
21405  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21406 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21407 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21408   echo $ECHO_N "(cached) $ECHO_C" >&6
21409 else
21410
21411   ac_ext=cc
21412 ac_cpp='$CXXCPP $CPPFLAGS'
21413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21416
21417   cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423 #include <hash_map>
21424 int
21425 main ()
21426 {
21427 hash_map<int,int> t;
21428   ;
21429   return 0;
21430 }
21431 _ACEOF
21432 rm -f conftest.$ac_objext
21433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21434   (eval $ac_compile) 2>conftest.er1
21435   ac_status=$?
21436   grep -v '^ *+' conftest.er1 >conftest.err
21437   rm -f conftest.er1
21438   cat conftest.err >&5
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); } &&
21441          { ac_try='test -z "$ac_cxx_werror_flag"
21442                          || test ! -s conftest.err'
21443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444   (eval $ac_try) 2>&5
21445   ac_status=$?
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); }; } &&
21448          { ac_try='test -s conftest.$ac_objext'
21449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450   (eval $ac_try) 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; }; then
21454   ac_cv_cxx_have_global_hash_map=yes
21455 else
21456   echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21458
21459 ac_cv_cxx_have_global_hash_map=no
21460 fi
21461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21462   ac_ext=c
21463 ac_cpp='$CPP $CPPFLAGS'
21464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21467
21468 fi
21469 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21470 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21471  HAVE_GLOBAL_HASH_MAP=0
21472  if test "$ac_cv_cxx_have_global_hash_map" = yes
21473  then
21474    HAVE_GLOBAL_HASH_MAP=1
21475  fi
21476
21477 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21478 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21479 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21480   echo $ECHO_N "(cached) $ECHO_C" >&6
21481 else
21482
21483   ac_ext=cc
21484 ac_cpp='$CXXCPP $CPPFLAGS'
21485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21488
21489   cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h.  */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h.  */
21495 #include <ext/hash_set>
21496 #ifdef HAVE_NAMESPACES
21497 using namespace std;
21498 #endif
21499 int
21500 main ()
21501 {
21502 hash_set<int> t;
21503   ;
21504   return 0;
21505 }
21506 _ACEOF
21507 rm -f conftest.$ac_objext
21508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21509   (eval $ac_compile) 2>conftest.er1
21510   ac_status=$?
21511   grep -v '^ *+' conftest.er1 >conftest.err
21512   rm -f conftest.er1
21513   cat conftest.err >&5
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); } &&
21516          { ac_try='test -z "$ac_cxx_werror_flag"
21517                          || test ! -s conftest.err'
21518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519   (eval $ac_try) 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); }; } &&
21523          { ac_try='test -s conftest.$ac_objext'
21524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525   (eval $ac_try) 2>&5
21526   ac_status=$?
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); }; }; then
21529   ac_cv_cxx_have_std_ext_hash_set=yes
21530 else
21531   echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21533
21534 ac_cv_cxx_have_std_ext_hash_set=no
21535 fi
21536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21537   ac_ext=c
21538 ac_cpp='$CPP $CPPFLAGS'
21539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21542
21543 fi
21544 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21545 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21546  HAVE_STD_EXT_HASH_SET=0
21547  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21548  then
21549    HAVE_STD_EXT_HASH_SET=1
21550  fi
21551
21552  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21553 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21554 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21555   echo $ECHO_N "(cached) $ECHO_C" >&6
21556 else
21557
21558   ac_ext=cc
21559 ac_cpp='$CXXCPP $CPPFLAGS'
21560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21563
21564   cat >conftest.$ac_ext <<_ACEOF
21565 /* confdefs.h.  */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h.  */
21570 #include <ext/hash_set>
21571 #ifdef HAVE_NAMESPACES
21572 using namespace __gnu_cxx;
21573 #endif
21574 int
21575 main ()
21576 {
21577 hash_set<int> t;
21578   ;
21579   return 0;
21580 }
21581 _ACEOF
21582 rm -f conftest.$ac_objext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21584   (eval $ac_compile) 2>conftest.er1
21585   ac_status=$?
21586   grep -v '^ *+' conftest.er1 >conftest.err
21587   rm -f conftest.er1
21588   cat conftest.err >&5
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); } &&
21591          { ac_try='test -z "$ac_cxx_werror_flag"
21592                          || test ! -s conftest.err'
21593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594   (eval $ac_try) 2>&5
21595   ac_status=$?
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); }; } &&
21598          { ac_try='test -s conftest.$ac_objext'
21599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600   (eval $ac_try) 2>&5
21601   ac_status=$?
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); }; }; then
21604   ac_cv_cxx_have_gnu_ext_hash_set=yes
21605 else
21606   echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609 ac_cv_cxx_have_gnu_ext_hash_set=no
21610 fi
21611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21612   ac_ext=c
21613 ac_cpp='$CPP $CPPFLAGS'
21614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21617
21618 fi
21619 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21620 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21621  HAVE_GNU_EXT_HASH_SET=0
21622  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21623  then
21624    HAVE_GNU_EXT_HASH_SET=1
21625  fi
21626
21627  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21628 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21629 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21630   echo $ECHO_N "(cached) $ECHO_C" >&6
21631 else
21632
21633   ac_ext=cc
21634 ac_cpp='$CXXCPP $CPPFLAGS'
21635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21638
21639   cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h.  */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h.  */
21645 #include <hash_set>
21646 int
21647 main ()
21648 {
21649 hash_set<int> t; return 0;
21650   ;
21651   return 0;
21652 }
21653 _ACEOF
21654 rm -f conftest.$ac_objext
21655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21656   (eval $ac_compile) 2>conftest.er1
21657   ac_status=$?
21658   grep -v '^ *+' conftest.er1 >conftest.err
21659   rm -f conftest.er1
21660   cat conftest.err >&5
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); } &&
21663          { ac_try='test -z "$ac_cxx_werror_flag"
21664                          || test ! -s conftest.err'
21665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666   (eval $ac_try) 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); }; } &&
21670          { ac_try='test -s conftest.$ac_objext'
21671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672   (eval $ac_try) 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); }; }; then
21676   ac_cv_cxx_have_global_hash_set=yes
21677 else
21678   echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21680
21681 ac_cv_cxx_have_global_hash_set=no
21682 fi
21683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21684   ac_ext=c
21685 ac_cpp='$CPP $CPPFLAGS'
21686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21689
21690 fi
21691 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21692 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21693  HAVE_GLOBAL_HASH_SET=0
21694  if test "$ac_cv_cxx_have_global_hash_set" = yes
21695  then
21696    HAVE_GLOBAL_HASH_SET=1
21697  fi
21698
21699 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21700 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21701 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21702   echo $ECHO_N "(cached) $ECHO_C" >&6
21703 else
21704
21705   ac_ext=cc
21706 ac_cpp='$CXXCPP $CPPFLAGS'
21707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21710
21711   cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h.  */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h.  */
21717 #include <iterator>
21718 #ifdef HAVE_NAMESPACES
21719 using namespace std;
21720 #endif
21721 int
21722 main ()
21723 {
21724 iterator<int,int,int> t; return 0;
21725   ;
21726   return 0;
21727 }
21728 _ACEOF
21729 rm -f conftest.$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731   (eval $ac_compile) 2>conftest.er1
21732   ac_status=$?
21733   grep -v '^ *+' conftest.er1 >conftest.err
21734   rm -f conftest.er1
21735   cat conftest.err >&5
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); } &&
21738          { ac_try='test -z "$ac_cxx_werror_flag"
21739                          || test ! -s conftest.err'
21740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741   (eval $ac_try) 2>&5
21742   ac_status=$?
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); }; } &&
21745          { ac_try='test -s conftest.$ac_objext'
21746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747   (eval $ac_try) 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); }; }; then
21751   ac_cv_cxx_have_std_iterator=yes
21752 else
21753   echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ac_cv_cxx_have_std_iterator=no
21757 fi
21758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21759   ac_ext=c
21760 ac_cpp='$CPP $CPPFLAGS'
21761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21764
21765
21766 fi
21767 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21768 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21769 HAVE_STD_ITERATOR=0
21770 if test "$ac_cv_cxx_have_std_iterator" = yes
21771 then
21772    HAVE_STD_ITERATOR=1
21773 fi
21774
21775 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21776 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21777 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21778   echo $ECHO_N "(cached) $ECHO_C" >&6
21779 else
21780
21781   ac_ext=cc
21782 ac_cpp='$CXXCPP $CPPFLAGS'
21783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21786
21787   cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h.  */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h.  */
21793 #include <iterator>
21794 #ifdef HAVE_NAMESPACES
21795 using namespace std;
21796 #endif
21797 int
21798 main ()
21799 {
21800 bidirectional_iterator<int,int> t; return 0;
21801   ;
21802   return 0;
21803 }
21804 _ACEOF
21805 rm -f conftest.$ac_objext
21806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21807   (eval $ac_compile) 2>conftest.er1
21808   ac_status=$?
21809   grep -v '^ *+' conftest.er1 >conftest.err
21810   rm -f conftest.er1
21811   cat conftest.err >&5
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); } &&
21814          { ac_try='test -z "$ac_cxx_werror_flag"
21815                          || test ! -s conftest.err'
21816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817   (eval $ac_try) 2>&5
21818   ac_status=$?
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); }; } &&
21821          { ac_try='test -s conftest.$ac_objext'
21822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823   (eval $ac_try) 2>&5
21824   ac_status=$?
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); }; }; then
21827   ac_cv_cxx_have_bi_iterator=yes
21828 else
21829   echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21831
21832 ac_cv_cxx_have_bi_iterator=no
21833 fi
21834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21835   ac_ext=c
21836 ac_cpp='$CPP $CPPFLAGS'
21837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21840
21841
21842 fi
21843 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21844 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21845 HAVE_BI_ITERATOR=0
21846 if test "$ac_cv_cxx_have_bi_iterator" = yes
21847 then
21848    HAVE_BI_ITERATOR=1
21849 fi
21850
21851 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21852 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21853 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21854   echo $ECHO_N "(cached) $ECHO_C" >&6
21855 else
21856
21857   ac_ext=cc
21858 ac_cpp='$CXXCPP $CPPFLAGS'
21859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21862
21863   cat >conftest.$ac_ext <<_ACEOF
21864 /* confdefs.h.  */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h.  */
21869 #include <iterator>
21870 #ifdef HAVE_NAMESPACES
21871 using namespace std;
21872 #endif
21873 int
21874 main ()
21875 {
21876 forward_iterator<int,int> t; return 0;
21877   ;
21878   return 0;
21879 }
21880 _ACEOF
21881 rm -f conftest.$ac_objext
21882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21883   (eval $ac_compile) 2>conftest.er1
21884   ac_status=$?
21885   grep -v '^ *+' conftest.er1 >conftest.err
21886   rm -f conftest.er1
21887   cat conftest.err >&5
21888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889   (exit $ac_status); } &&
21890          { ac_try='test -z "$ac_cxx_werror_flag"
21891                          || test ! -s conftest.err'
21892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893   (eval $ac_try) 2>&5
21894   ac_status=$?
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); }; } &&
21897          { ac_try='test -s conftest.$ac_objext'
21898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899   (eval $ac_try) 2>&5
21900   ac_status=$?
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); }; }; then
21903   ac_cv_cxx_have_fwd_iterator=yes
21904 else
21905   echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21907
21908 ac_cv_cxx_have_fwd_iterator=no
21909 fi
21910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21911   ac_ext=c
21912 ac_cpp='$CPP $CPPFLAGS'
21913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21916
21917
21918 fi
21919 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21920 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21921 HAVE_FWD_ITERATOR=0
21922 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21923 then
21924    HAVE_FWD_ITERATOR=1
21925 fi
21926
21927
21928
21929 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21930 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21931 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21932   echo $ECHO_N "(cached) $ECHO_C" >&6
21933 else
21934   ac_ext=cc
21935 ac_cpp='$CXXCPP $CPPFLAGS'
21936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21939
21940   cat >conftest.$ac_ext <<_ACEOF
21941 /* confdefs.h.  */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h.  */
21946 #include <math.h>
21947                      int foo(float f) {return isnan(f);}
21948 _ACEOF
21949 rm -f conftest.$ac_objext
21950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21951   (eval $ac_compile) 2>conftest.er1
21952   ac_status=$?
21953   grep -v '^ *+' conftest.er1 >conftest.err
21954   rm -f conftest.er1
21955   cat conftest.err >&5
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); } &&
21958          { ac_try='test -z "$ac_cxx_werror_flag"
21959                          || test ! -s conftest.err'
21960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961   (eval $ac_try) 2>&5
21962   ac_status=$?
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); }; } &&
21965          { ac_try='test -s conftest.$ac_objext'
21966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967   (eval $ac_try) 2>&5
21968   ac_status=$?
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); }; }; then
21971   ac_cv_func_isnan_in_math_h=yes
21972 else
21973   echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21975
21976 ac_cv_func_isnan_in_math_h=no
21977 fi
21978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21979  ac_ext=c
21980 ac_cpp='$CPP $CPPFLAGS'
21981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21984
21985 fi
21986 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21987 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21988  if test "$ac_cv_func_isnan_in_math_h" = "yes"
21989  then
21990
21991 cat >>confdefs.h <<\_ACEOF
21992 #define HAVE_ISNAN_IN_MATH_H 1
21993 _ACEOF
21994
21995  fi
21996 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21997 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21998 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001   ac_ext=cc
22002 ac_cpp='$CXXCPP $CPPFLAGS'
22003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22006
22007   cat >conftest.$ac_ext <<_ACEOF
22008 /* confdefs.h.  */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h.  */
22013 #include <cmath>
22014                      int foo(float f) {return isnan(f);}
22015 _ACEOF
22016 rm -f conftest.$ac_objext
22017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22018   (eval $ac_compile) 2>conftest.er1
22019   ac_status=$?
22020   grep -v '^ *+' conftest.er1 >conftest.err
22021   rm -f conftest.er1
22022   cat conftest.err >&5
22023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024   (exit $ac_status); } &&
22025          { ac_try='test -z "$ac_cxx_werror_flag"
22026                          || test ! -s conftest.err'
22027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028   (eval $ac_try) 2>&5
22029   ac_status=$?
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); }; } &&
22032          { ac_try='test -s conftest.$ac_objext'
22033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034   (eval $ac_try) 2>&5
22035   ac_status=$?
22036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037   (exit $ac_status); }; }; then
22038   ac_cv_func_isnan_in_cmath=yes
22039 else
22040   echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22042
22043 ac_cv_func_isnan_in_cmath=no
22044 fi
22045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22046  ac_ext=c
22047 ac_cpp='$CPP $CPPFLAGS'
22048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22051
22052 fi
22053 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22054 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22055  if test "$ac_cv_func_isnan_in_cmath" = "yes"
22056  then
22057
22058 cat >>confdefs.h <<\_ACEOF
22059 #define HAVE_ISNAN_IN_CMATH 1
22060 _ACEOF
22061
22062  fi
22063 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22064 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22065 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22066   echo $ECHO_N "(cached) $ECHO_C" >&6
22067 else
22068   ac_ext=cc
22069 ac_cpp='$CXXCPP $CPPFLAGS'
22070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22073
22074   cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h.  */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h.  */
22080 #include <cmath>
22081                      using std::isnan; int foo(float f) {return isnan(f);}
22082 _ACEOF
22083 rm -f conftest.$ac_objext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22085   (eval $ac_compile) 2>conftest.er1
22086   ac_status=$?
22087   grep -v '^ *+' conftest.er1 >conftest.err
22088   rm -f conftest.er1
22089   cat conftest.err >&5
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); } &&
22092          { ac_try='test -z "$ac_cxx_werror_flag"
22093                          || test ! -s conftest.err'
22094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095   (eval $ac_try) 2>&5
22096   ac_status=$?
22097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098   (exit $ac_status); }; } &&
22099          { ac_try='test -s conftest.$ac_objext'
22100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101   (eval $ac_try) 2>&5
22102   ac_status=$?
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); }; }; then
22105   ac_cv_func_std_isnan_in_cmath=yes
22106 else
22107   echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22109
22110 ac_cv_func_std_isnan_in_cmath=no
22111 fi
22112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22113  ac_ext=c
22114 ac_cpp='$CPP $CPPFLAGS'
22115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22118
22119 fi
22120 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22121 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22122  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22123  then
22124
22125 cat >>confdefs.h <<\_ACEOF
22126 #define HAVE_STD_ISNAN_IN_CMATH 1
22127 _ACEOF
22128
22129  fi
22130
22131
22132 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22133 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22134 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137   ac_ext=cc
22138 ac_cpp='$CXXCPP $CPPFLAGS'
22139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22142
22143   cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h.  */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h.  */
22149 #include <math.h>
22150                      int foo(float f) {return isinf(f);}
22151 _ACEOF
22152 rm -f conftest.$ac_objext
22153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22154   (eval $ac_compile) 2>conftest.er1
22155   ac_status=$?
22156   grep -v '^ *+' conftest.er1 >conftest.err
22157   rm -f conftest.er1
22158   cat conftest.err >&5
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); } &&
22161          { ac_try='test -z "$ac_cxx_werror_flag"
22162                          || test ! -s conftest.err'
22163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164   (eval $ac_try) 2>&5
22165   ac_status=$?
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); }; } &&
22168          { ac_try='test -s conftest.$ac_objext'
22169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170   (eval $ac_try) 2>&5
22171   ac_status=$?
22172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173   (exit $ac_status); }; }; then
22174   ac_cv_func_isinf_in_math_h=yes
22175 else
22176   echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22178
22179 ac_cv_func_isinf_in_math_h=no
22180 fi
22181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22182  ac_ext=c
22183 ac_cpp='$CPP $CPPFLAGS'
22184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22187
22188 fi
22189 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22190 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22191  if test "$ac_cv_func_isinf_in_math_h" = "yes"
22192  then
22193
22194 cat >>confdefs.h <<\_ACEOF
22195 #define HAVE_ISINF_IN_MATH_H 1
22196 _ACEOF
22197
22198  fi
22199 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22200 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22201 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22202   echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204   ac_ext=cc
22205 ac_cpp='$CXXCPP $CPPFLAGS'
22206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22209
22210   cat >conftest.$ac_ext <<_ACEOF
22211 /* confdefs.h.  */
22212 _ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h.  */
22216 #include <cmath>
22217                      int foo(float f) {return isinf(f);}
22218 _ACEOF
22219 rm -f conftest.$ac_objext
22220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22221   (eval $ac_compile) 2>conftest.er1
22222   ac_status=$?
22223   grep -v '^ *+' conftest.er1 >conftest.err
22224   rm -f conftest.er1
22225   cat conftest.err >&5
22226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227   (exit $ac_status); } &&
22228          { ac_try='test -z "$ac_cxx_werror_flag"
22229                          || test ! -s conftest.err'
22230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231   (eval $ac_try) 2>&5
22232   ac_status=$?
22233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234   (exit $ac_status); }; } &&
22235          { ac_try='test -s conftest.$ac_objext'
22236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22237   (eval $ac_try) 2>&5
22238   ac_status=$?
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); }; }; then
22241   ac_cv_func_isinf_in_cmath=yes
22242 else
22243   echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22245
22246 ac_cv_func_isinf_in_cmath=no
22247 fi
22248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22249  ac_ext=c
22250 ac_cpp='$CPP $CPPFLAGS'
22251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22254
22255 fi
22256 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22257 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22258  if test "$ac_cv_func_isinf_in_cmath" = "yes"
22259  then
22260
22261 cat >>confdefs.h <<\_ACEOF
22262 #define HAVE_ISINF_IN_CMATH 1
22263 _ACEOF
22264
22265  fi
22266 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22267 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22268 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22269   echo $ECHO_N "(cached) $ECHO_C" >&6
22270 else
22271   ac_ext=cc
22272 ac_cpp='$CXXCPP $CPPFLAGS'
22273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22276
22277   cat >conftest.$ac_ext <<_ACEOF
22278 /* confdefs.h.  */
22279 _ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h.  */
22283 #include <cmath>
22284                      using std::isinf; int foo(float f) {return isinf(f);}
22285 _ACEOF
22286 rm -f conftest.$ac_objext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22288   (eval $ac_compile) 2>conftest.er1
22289   ac_status=$?
22290   grep -v '^ *+' conftest.er1 >conftest.err
22291   rm -f conftest.er1
22292   cat conftest.err >&5
22293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294   (exit $ac_status); } &&
22295          { ac_try='test -z "$ac_cxx_werror_flag"
22296                          || test ! -s conftest.err'
22297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298   (eval $ac_try) 2>&5
22299   ac_status=$?
22300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); }; } &&
22302          { ac_try='test -s conftest.$ac_objext'
22303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304   (eval $ac_try) 2>&5
22305   ac_status=$?
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); }; }; then
22308   ac_cv_func_std_isinf_in_cmath=yes
22309 else
22310   echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22312
22313 ac_cv_func_std_isinf_in_cmath=no
22314 fi
22315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22316  ac_ext=c
22317 ac_cpp='$CPP $CPPFLAGS'
22318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22321
22322 fi
22323 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22324 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22325  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22326  then
22327
22328 cat >>confdefs.h <<\_ACEOF
22329 #define HAVE_STD_ISINF_IN_CMATH 1
22330 _ACEOF
22331
22332  fi
22333 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22334 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22335 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22336   echo $ECHO_N "(cached) $ECHO_C" >&6
22337 else
22338   ac_ext=cc
22339 ac_cpp='$CXXCPP $CPPFLAGS'
22340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22343
22344   cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h.  */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h.  */
22350 #include <ieeefp.h>
22351                      int foo(float f) {return finite(f);}
22352 _ACEOF
22353 rm -f conftest.$ac_objext
22354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22355   (eval $ac_compile) 2>conftest.er1
22356   ac_status=$?
22357   grep -v '^ *+' conftest.er1 >conftest.err
22358   rm -f conftest.er1
22359   cat conftest.err >&5
22360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361   (exit $ac_status); } &&
22362          { ac_try='test -z "$ac_cxx_werror_flag"
22363                          || test ! -s conftest.err'
22364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365   (eval $ac_try) 2>&5
22366   ac_status=$?
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); }; } &&
22369          { ac_try='test -s conftest.$ac_objext'
22370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371   (eval $ac_try) 2>&5
22372   ac_status=$?
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); }; }; then
22375   ac_cv_func_finite_in_ieeefp_h=yes
22376 else
22377   echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22379
22380 ac_cv_func_finite_in_ieeefp_h=no
22381 fi
22382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22383  ac_ext=c
22384 ac_cpp='$CPP $CPPFLAGS'
22385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22388
22389 fi
22390 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22391 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22392  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22393  then
22394
22395 cat >>confdefs.h <<\_ACEOF
22396 #define HAVE_FINITE_IN_IEEEFP_H 1
22397 _ACEOF
22398
22399  fi
22400
22401
22402 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22403 # for constant arguments.  Useless!
22404 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22405 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22406 if test "${ac_cv_working_alloca_h+set}" = set; then
22407   echo $ECHO_N "(cached) $ECHO_C" >&6
22408 else
22409   cat >conftest.$ac_ext <<_ACEOF
22410 /* confdefs.h.  */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h.  */
22415 #include <alloca.h>
22416 int
22417 main ()
22418 {
22419 char *p = (char *) alloca (2 * sizeof (int));
22420   ;
22421   return 0;
22422 }
22423 _ACEOF
22424 rm -f conftest.$ac_objext conftest$ac_exeext
22425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22426   (eval $ac_link) 2>conftest.er1
22427   ac_status=$?
22428   grep -v '^ *+' conftest.er1 >conftest.err
22429   rm -f conftest.er1
22430   cat conftest.err >&5
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); } &&
22433          { ac_try='test -z "$ac_c_werror_flag"
22434                          || test ! -s conftest.err'
22435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436   (eval $ac_try) 2>&5
22437   ac_status=$?
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); }; } &&
22440          { ac_try='test -s conftest$ac_exeext'
22441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442   (eval $ac_try) 2>&5
22443   ac_status=$?
22444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445   (exit $ac_status); }; }; then
22446   ac_cv_working_alloca_h=yes
22447 else
22448   echo "$as_me: failed program was:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22450
22451 ac_cv_working_alloca_h=no
22452 fi
22453 rm -f conftest.err conftest.$ac_objext \
22454       conftest$ac_exeext conftest.$ac_ext
22455 fi
22456 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22457 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22458 if test $ac_cv_working_alloca_h = yes; then
22459
22460 cat >>confdefs.h <<\_ACEOF
22461 #define HAVE_ALLOCA_H 1
22462 _ACEOF
22463
22464 fi
22465
22466 echo "$as_me:$LINENO: checking for alloca" >&5
22467 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22468 if test "${ac_cv_func_alloca_works+set}" = set; then
22469   echo $ECHO_N "(cached) $ECHO_C" >&6
22470 else
22471   cat >conftest.$ac_ext <<_ACEOF
22472 /* confdefs.h.  */
22473 _ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h.  */
22477 #ifdef __GNUC__
22478 # define alloca __builtin_alloca
22479 #else
22480 # ifdef _MSC_VER
22481 #  include <malloc.h>
22482 #  define alloca _alloca
22483 # else
22484 #  if HAVE_ALLOCA_H
22485 #   include <alloca.h>
22486 #  else
22487 #   ifdef _AIX
22488  #pragma alloca
22489 #   else
22490 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22491 char *alloca ();
22492 #    endif
22493 #   endif
22494 #  endif
22495 # endif
22496 #endif
22497
22498 int
22499 main ()
22500 {
22501 char *p = (char *) alloca (1);
22502   ;
22503   return 0;
22504 }
22505 _ACEOF
22506 rm -f conftest.$ac_objext conftest$ac_exeext
22507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22508   (eval $ac_link) 2>conftest.er1
22509   ac_status=$?
22510   grep -v '^ *+' conftest.er1 >conftest.err
22511   rm -f conftest.er1
22512   cat conftest.err >&5
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); } &&
22515          { ac_try='test -z "$ac_c_werror_flag"
22516                          || test ! -s conftest.err'
22517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518   (eval $ac_try) 2>&5
22519   ac_status=$?
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); }; } &&
22522          { ac_try='test -s conftest$ac_exeext'
22523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524   (eval $ac_try) 2>&5
22525   ac_status=$?
22526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527   (exit $ac_status); }; }; then
22528   ac_cv_func_alloca_works=yes
22529 else
22530   echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22532
22533 ac_cv_func_alloca_works=no
22534 fi
22535 rm -f conftest.err conftest.$ac_objext \
22536       conftest$ac_exeext conftest.$ac_ext
22537 fi
22538 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22539 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22540
22541 if test $ac_cv_func_alloca_works = yes; then
22542
22543 cat >>confdefs.h <<\_ACEOF
22544 #define HAVE_ALLOCA 1
22545 _ACEOF
22546
22547 else
22548   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22549 # that cause trouble.  Some versions do not even contain alloca or
22550 # contain a buggy version.  If you still want to use their alloca,
22551 # use ar to extract alloca.o from them instead of compiling alloca.c.
22552
22553 ALLOCA=alloca.$ac_objext
22554
22555 cat >>confdefs.h <<\_ACEOF
22556 #define C_ALLOCA 1
22557 _ACEOF
22558
22559
22560 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22561 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22562 if test "${ac_cv_os_cray+set}" = set; then
22563   echo $ECHO_N "(cached) $ECHO_C" >&6
22564 else
22565   cat >conftest.$ac_ext <<_ACEOF
22566 /* confdefs.h.  */
22567 _ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h.  */
22571 #if defined(CRAY) && ! defined(CRAY2)
22572 webecray
22573 #else
22574 wenotbecray
22575 #endif
22576
22577 _ACEOF
22578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22579   $EGREP "webecray" >/dev/null 2>&1; then
22580   ac_cv_os_cray=yes
22581 else
22582   ac_cv_os_cray=no
22583 fi
22584 rm -f conftest*
22585
22586 fi
22587 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22588 echo "${ECHO_T}$ac_cv_os_cray" >&6
22589 if test $ac_cv_os_cray = yes; then
22590   for ac_func in _getb67 GETB67 getb67; do
22591     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22592 echo "$as_me:$LINENO: checking for $ac_func" >&5
22593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22594 if eval "test \"\${$as_ac_var+set}\" = set"; then
22595   echo $ECHO_N "(cached) $ECHO_C" >&6
22596 else
22597   cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h.  */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h.  */
22603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22605 #define $ac_func innocuous_$ac_func
22606
22607 /* System header to define __stub macros and hopefully few prototypes,
22608     which can conflict with char $ac_func (); below.
22609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22610     <limits.h> exists even on freestanding compilers.  */
22611
22612 #ifdef __STDC__
22613 # include <limits.h>
22614 #else
22615 # include <assert.h>
22616 #endif
22617
22618 #undef $ac_func
22619
22620 /* Override any gcc2 internal prototype to avoid an error.  */
22621 #ifdef __cplusplus
22622 extern "C"
22623 {
22624 #endif
22625 /* We use char because int might match the return type of a gcc2
22626    builtin and then its argument prototype would still apply.  */
22627 char $ac_func ();
22628 /* The GNU C library defines this for functions which it implements
22629     to always fail with ENOSYS.  Some functions are actually named
22630     something starting with __ and the normal name is an alias.  */
22631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22632 choke me
22633 #else
22634 char (*f) () = $ac_func;
22635 #endif
22636 #ifdef __cplusplus
22637 }
22638 #endif
22639
22640 int
22641 main ()
22642 {
22643 return f != $ac_func;
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 rm -f conftest.$ac_objext conftest$ac_exeext
22649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22650   (eval $ac_link) 2>conftest.er1
22651   ac_status=$?
22652   grep -v '^ *+' conftest.er1 >conftest.err
22653   rm -f conftest.er1
22654   cat conftest.err >&5
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); } &&
22657          { ac_try='test -z "$ac_c_werror_flag"
22658                          || test ! -s conftest.err'
22659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660   (eval $ac_try) 2>&5
22661   ac_status=$?
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); }; } &&
22664          { ac_try='test -s conftest$ac_exeext'
22665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666   (eval $ac_try) 2>&5
22667   ac_status=$?
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); }; }; then
22670   eval "$as_ac_var=yes"
22671 else
22672   echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674
22675 eval "$as_ac_var=no"
22676 fi
22677 rm -f conftest.err conftest.$ac_objext \
22678       conftest$ac_exeext conftest.$ac_ext
22679 fi
22680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22682 if test `eval echo '${'$as_ac_var'}'` = yes; then
22683
22684 cat >>confdefs.h <<_ACEOF
22685 #define CRAY_STACKSEG_END $ac_func
22686 _ACEOF
22687
22688     break
22689 fi
22690
22691   done
22692 fi
22693
22694 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22695 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22696 if test "${ac_cv_c_stack_direction+set}" = set; then
22697   echo $ECHO_N "(cached) $ECHO_C" >&6
22698 else
22699   if test "$cross_compiling" = yes; then
22700   ac_cv_c_stack_direction=0
22701 else
22702   cat >conftest.$ac_ext <<_ACEOF
22703 /* confdefs.h.  */
22704 _ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h.  */
22708 int
22709 find_stack_direction ()
22710 {
22711   static char *addr = 0;
22712   auto char dummy;
22713   if (addr == 0)
22714     {
22715       addr = &dummy;
22716       return find_stack_direction ();
22717     }
22718   else
22719     return (&dummy > addr) ? 1 : -1;
22720 }
22721
22722 int
22723 main ()
22724 {
22725   exit (find_stack_direction () < 0);
22726 }
22727 _ACEOF
22728 rm -f conftest$ac_exeext
22729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22730   (eval $ac_link) 2>&5
22731   ac_status=$?
22732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735   (eval $ac_try) 2>&5
22736   ac_status=$?
22737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738   (exit $ac_status); }; }; then
22739   ac_cv_c_stack_direction=1
22740 else
22741   echo "$as_me: program exited with status $ac_status" >&5
22742 echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22744
22745 ( exit $ac_status )
22746 ac_cv_c_stack_direction=-1
22747 fi
22748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22749 fi
22750 fi
22751 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22752 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22753
22754 cat >>confdefs.h <<_ACEOF
22755 #define STACK_DIRECTION $ac_cv_c_stack_direction
22756 _ACEOF
22757
22758
22759 fi
22760
22761
22762
22763 for ac_header in stdlib.h unistd.h
22764 do
22765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22767   echo "$as_me:$LINENO: checking for $ac_header" >&5
22768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22770   echo $ECHO_N "(cached) $ECHO_C" >&6
22771 fi
22772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22774 else
22775   # Is the header compilable?
22776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22778 cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h.  */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h.  */
22784 $ac_includes_default
22785 #include <$ac_header>
22786 _ACEOF
22787 rm -f conftest.$ac_objext
22788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22789   (eval $ac_compile) 2>conftest.er1
22790   ac_status=$?
22791   grep -v '^ *+' conftest.er1 >conftest.err
22792   rm -f conftest.er1
22793   cat conftest.err >&5
22794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795   (exit $ac_status); } &&
22796          { ac_try='test -z "$ac_c_werror_flag"
22797                          || test ! -s conftest.err'
22798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799   (eval $ac_try) 2>&5
22800   ac_status=$?
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); }; } &&
22803          { ac_try='test -s conftest.$ac_objext'
22804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805   (eval $ac_try) 2>&5
22806   ac_status=$?
22807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808   (exit $ac_status); }; }; then
22809   ac_header_compiler=yes
22810 else
22811   echo "$as_me: failed program was:" >&5
22812 sed 's/^/| /' conftest.$ac_ext >&5
22813
22814 ac_header_compiler=no
22815 fi
22816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22818 echo "${ECHO_T}$ac_header_compiler" >&6
22819
22820 # Is the header present?
22821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22823 cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h.  */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h.  */
22829 #include <$ac_header>
22830 _ACEOF
22831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22833   ac_status=$?
22834   grep -v '^ *+' conftest.er1 >conftest.err
22835   rm -f conftest.er1
22836   cat conftest.err >&5
22837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838   (exit $ac_status); } >/dev/null; then
22839   if test -s conftest.err; then
22840     ac_cpp_err=$ac_c_preproc_warn_flag
22841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22842   else
22843     ac_cpp_err=
22844   fi
22845 else
22846   ac_cpp_err=yes
22847 fi
22848 if test -z "$ac_cpp_err"; then
22849   ac_header_preproc=yes
22850 else
22851   echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22853
22854   ac_header_preproc=no
22855 fi
22856 rm -f conftest.err conftest.$ac_ext
22857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22858 echo "${ECHO_T}$ac_header_preproc" >&6
22859
22860 # So?  What about this header?
22861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22862   yes:no: )
22863     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22867     ac_header_preproc=yes
22868     ;;
22869   no:yes:* )
22870     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22872     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22873 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22874     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22876     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22877 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22880     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22882     (
22883       cat <<\_ASBOX
22884 ## ----------------------------------- ##
22885 ## Report this to llvmbugs@cs.uiuc.edu ##
22886 ## ----------------------------------- ##
22887 _ASBOX
22888     ) |
22889       sed "s/^/$as_me: WARNING:     /" >&2
22890     ;;
22891 esac
22892 echo "$as_me:$LINENO: checking for $ac_header" >&5
22893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22895   echo $ECHO_N "(cached) $ECHO_C" >&6
22896 else
22897   eval "$as_ac_Header=\$ac_header_preproc"
22898 fi
22899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22901
22902 fi
22903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22904   cat >>confdefs.h <<_ACEOF
22905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22906 _ACEOF
22907
22908 fi
22909
22910 done
22911
22912
22913 for ac_func in getpagesize
22914 do
22915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22916 echo "$as_me:$LINENO: checking for $ac_func" >&5
22917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22918 if eval "test \"\${$as_ac_var+set}\" = set"; then
22919   echo $ECHO_N "(cached) $ECHO_C" >&6
22920 else
22921   cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h.  */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h.  */
22927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22929 #define $ac_func innocuous_$ac_func
22930
22931 /* System header to define __stub macros and hopefully few prototypes,
22932     which can conflict with char $ac_func (); below.
22933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22934     <limits.h> exists even on freestanding compilers.  */
22935
22936 #ifdef __STDC__
22937 # include <limits.h>
22938 #else
22939 # include <assert.h>
22940 #endif
22941
22942 #undef $ac_func
22943
22944 /* Override any gcc2 internal prototype to avoid an error.  */
22945 #ifdef __cplusplus
22946 extern "C"
22947 {
22948 #endif
22949 /* We use char because int might match the return type of a gcc2
22950    builtin and then its argument prototype would still apply.  */
22951 char $ac_func ();
22952 /* The GNU C library defines this for functions which it implements
22953     to always fail with ENOSYS.  Some functions are actually named
22954     something starting with __ and the normal name is an alias.  */
22955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22956 choke me
22957 #else
22958 char (*f) () = $ac_func;
22959 #endif
22960 #ifdef __cplusplus
22961 }
22962 #endif
22963
22964 int
22965 main ()
22966 {
22967 return f != $ac_func;
22968   ;
22969   return 0;
22970 }
22971 _ACEOF
22972 rm -f conftest.$ac_objext conftest$ac_exeext
22973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22974   (eval $ac_link) 2>conftest.er1
22975   ac_status=$?
22976   grep -v '^ *+' conftest.er1 >conftest.err
22977   rm -f conftest.er1
22978   cat conftest.err >&5
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); } &&
22981          { ac_try='test -z "$ac_c_werror_flag"
22982                          || test ! -s conftest.err'
22983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984   (eval $ac_try) 2>&5
22985   ac_status=$?
22986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987   (exit $ac_status); }; } &&
22988          { ac_try='test -s conftest$ac_exeext'
22989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990   (eval $ac_try) 2>&5
22991   ac_status=$?
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); }; }; then
22994   eval "$as_ac_var=yes"
22995 else
22996   echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22998
22999 eval "$as_ac_var=no"
23000 fi
23001 rm -f conftest.err conftest.$ac_objext \
23002       conftest$ac_exeext conftest.$ac_ext
23003 fi
23004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23006 if test `eval echo '${'$as_ac_var'}'` = yes; then
23007   cat >>confdefs.h <<_ACEOF
23008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23009 _ACEOF
23010
23011 fi
23012 done
23013
23014 echo "$as_me:$LINENO: checking for working mmap" >&5
23015 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23016 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23017   echo $ECHO_N "(cached) $ECHO_C" >&6
23018 else
23019   if test "$cross_compiling" = yes; then
23020   ac_cv_func_mmap_fixed_mapped=no
23021 else
23022   cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h.  */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h.  */
23028 $ac_includes_default
23029 /* malloc might have been renamed as rpl_malloc. */
23030 #undef malloc
23031
23032 /* Thanks to Mike Haertel and Jim Avera for this test.
23033    Here is a matrix of mmap possibilities:
23034         mmap private not fixed
23035         mmap private fixed at somewhere currently unmapped
23036         mmap private fixed at somewhere already mapped
23037         mmap shared not fixed
23038         mmap shared fixed at somewhere currently unmapped
23039         mmap shared fixed at somewhere already mapped
23040    For private mappings, we should verify that changes cannot be read()
23041    back from the file, nor mmap's back from the file at a different
23042    address.  (There have been systems where private was not correctly
23043    implemented like the infamous i386 svr4.0, and systems where the
23044    VM page cache was not coherent with the file system buffer cache
23045    like early versions of FreeBSD and possibly contemporary NetBSD.)
23046    For shared mappings, we should conversely verify that changes get
23047    propagated back to all the places they're supposed to be.
23048
23049    Grep wants private fixed already mapped.
23050    The main things grep needs to know about mmap are:
23051    * does it exist and is it safe to write into the mmap'd area
23052    * how to use it (BSD variants)  */
23053
23054 #include <fcntl.h>
23055 #include <sys/mman.h>
23056
23057 #if !STDC_HEADERS && !HAVE_STDLIB_H
23058 char *malloc ();
23059 #endif
23060
23061 /* This mess was copied from the GNU getpagesize.h.  */
23062 #if !HAVE_GETPAGESIZE
23063 /* Assume that all systems that can run configure have sys/param.h.  */
23064 # if !HAVE_SYS_PARAM_H
23065 #  define HAVE_SYS_PARAM_H 1
23066 # endif
23067
23068 # ifdef _SC_PAGESIZE
23069 #  define getpagesize() sysconf(_SC_PAGESIZE)
23070 # else /* no _SC_PAGESIZE */
23071 #  if HAVE_SYS_PARAM_H
23072 #   include <sys/param.h>
23073 #   ifdef EXEC_PAGESIZE
23074 #    define getpagesize() EXEC_PAGESIZE
23075 #   else /* no EXEC_PAGESIZE */
23076 #    ifdef NBPG
23077 #     define getpagesize() NBPG * CLSIZE
23078 #     ifndef CLSIZE
23079 #      define CLSIZE 1
23080 #     endif /* no CLSIZE */
23081 #    else /* no NBPG */
23082 #     ifdef NBPC
23083 #      define getpagesize() NBPC
23084 #     else /* no NBPC */
23085 #      ifdef PAGESIZE
23086 #       define getpagesize() PAGESIZE
23087 #      endif /* PAGESIZE */
23088 #     endif /* no NBPC */
23089 #    endif /* no NBPG */
23090 #   endif /* no EXEC_PAGESIZE */
23091 #  else /* no HAVE_SYS_PARAM_H */
23092 #   define getpagesize() 8192   /* punt totally */
23093 #  endif /* no HAVE_SYS_PARAM_H */
23094 # endif /* no _SC_PAGESIZE */
23095
23096 #endif /* no HAVE_GETPAGESIZE */
23097
23098 int
23099 main ()
23100 {
23101   char *data, *data2, *data3;
23102   int i, pagesize;
23103   int fd;
23104
23105   pagesize = getpagesize ();
23106
23107   /* First, make a file with some known garbage in it. */
23108   data = (char *) malloc (pagesize);
23109   if (!data)
23110     exit (1);
23111   for (i = 0; i < pagesize; ++i)
23112     *(data + i) = rand ();
23113   umask (0);
23114   fd = creat ("conftest.mmap", 0600);
23115   if (fd < 0)
23116     exit (1);
23117   if (write (fd, data, pagesize) != pagesize)
23118     exit (1);
23119   close (fd);
23120
23121   /* Next, try to mmap the file at a fixed address which already has
23122      something else allocated at it.  If we can, also make sure that
23123      we see the same garbage.  */
23124   fd = open ("conftest.mmap", O_RDWR);
23125   if (fd < 0)
23126     exit (1);
23127   data2 = (char *) malloc (2 * pagesize);
23128   if (!data2)
23129     exit (1);
23130   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23131   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23132                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23133     exit (1);
23134   for (i = 0; i < pagesize; ++i)
23135     if (*(data + i) != *(data2 + i))
23136       exit (1);
23137
23138   /* Finally, make sure that changes to the mapped area do not
23139      percolate back to the file as seen by read().  (This is a bug on
23140      some variants of i386 svr4.0.)  */
23141   for (i = 0; i < pagesize; ++i)
23142     *(data2 + i) = *(data2 + i) + 1;
23143   data3 = (char *) malloc (pagesize);
23144   if (!data3)
23145     exit (1);
23146   if (read (fd, data3, pagesize) != pagesize)
23147     exit (1);
23148   for (i = 0; i < pagesize; ++i)
23149     if (*(data + i) != *(data3 + i))
23150       exit (1);
23151   close (fd);
23152   exit (0);
23153 }
23154 _ACEOF
23155 rm -f conftest$ac_exeext
23156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23157   (eval $ac_link) 2>&5
23158   ac_status=$?
23159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162   (eval $ac_try) 2>&5
23163   ac_status=$?
23164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165   (exit $ac_status); }; }; then
23166   ac_cv_func_mmap_fixed_mapped=yes
23167 else
23168   echo "$as_me: program exited with status $ac_status" >&5
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23171
23172 ( exit $ac_status )
23173 ac_cv_func_mmap_fixed_mapped=no
23174 fi
23175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23176 fi
23177 fi
23178 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23179 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23180 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23181
23182 cat >>confdefs.h <<\_ACEOF
23183 #define HAVE_MMAP 1
23184 _ACEOF
23185
23186 fi
23187 rm -f conftest.mmap
23188
23189 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23190 then
23191         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23192 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23193 fi
23194 echo "$as_me:$LINENO: checking for mmap of files" >&5
23195 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23196 if test "${ac_cv_func_mmap_file+set}" = set; then
23197   echo $ECHO_N "(cached) $ECHO_C" >&6
23198 else
23199    ac_ext=c
23200 ac_cpp='$CPP $CPPFLAGS'
23201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23204
23205   if test "$cross_compiling" = yes; then
23206   ac_cv_func_mmap_file=no
23207 else
23208   cat >conftest.$ac_ext <<_ACEOF
23209
23210     /* confdefs.h.  */
23211 _ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h.  */
23215
23216 #include <sys/types.h>
23217 #include <sys/mman.h>
23218 #include <fcntl.h>
23219
23220 int
23221 main ()
23222 {
23223
23224   int fd;
23225   fd = creat ("foo",0777);
23226   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23227   unlink ("foo");
23228   return (fd != (int) MAP_FAILED);
23229   ;
23230   return 0;
23231 }
23232 _ACEOF
23233 rm -f conftest$ac_exeext
23234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23235   (eval $ac_link) 2>&5
23236   ac_status=$?
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240   (eval $ac_try) 2>&5
23241   ac_status=$?
23242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243   (exit $ac_status); }; }; then
23244   ac_cv_func_mmap_file=yes
23245 else
23246   echo "$as_me: program exited with status $ac_status" >&5
23247 echo "$as_me: failed program was:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23249
23250 ( exit $ac_status )
23251 ac_cv_func_mmap_file=no
23252 fi
23253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23254 fi
23255   ac_ext=c
23256 ac_cpp='$CPP $CPPFLAGS'
23257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23260
23261
23262 fi
23263 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23264 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23265 if test "$ac_cv_func_mmap_file" = yes; then
23266
23267 cat >>confdefs.h <<\_ACEOF
23268 #define HAVE_MMAP_FILE
23269 _ACEOF
23270
23271    MMAP_FILE=yes
23272
23273 fi
23274
23275 if test "$ac_cv_func_mmap_file" = "no"
23276 then
23277         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23278 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23279 fi
23280 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23281 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23282 if test "${ac_cv_header_mmap_anon+set}" = set; then
23283   echo $ECHO_N "(cached) $ECHO_C" >&6
23284 else
23285    ac_ext=c
23286 ac_cpp='$CPP $CPPFLAGS'
23287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23290
23291   cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h.  */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h.  */
23297 #include <sys/mman.h>
23298 #include <unistd.h>
23299 #include <fcntl.h>
23300 int
23301 main ()
23302 {
23303 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23304   ;
23305   return 0;
23306 }
23307 _ACEOF
23308 rm -f conftest.$ac_objext
23309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23310   (eval $ac_compile) 2>conftest.er1
23311   ac_status=$?
23312   grep -v '^ *+' conftest.er1 >conftest.err
23313   rm -f conftest.er1
23314   cat conftest.err >&5
23315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316   (exit $ac_status); } &&
23317          { ac_try='test -z "$ac_c_werror_flag"
23318                          || test ! -s conftest.err'
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); }; } &&
23324          { ac_try='test -s conftest.$ac_objext'
23325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326   (eval $ac_try) 2>&5
23327   ac_status=$?
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); }; }; then
23330   ac_cv_header_mmap_anon=yes
23331 else
23332   echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23334
23335 ac_cv_header_mmap_anon=no
23336 fi
23337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23338   ac_ext=c
23339 ac_cpp='$CPP $CPPFLAGS'
23340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23343
23344
23345 fi
23346 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23347 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23348 if test "$ac_cv_header_mmap_anon" = yes; then
23349
23350 cat >>confdefs.h <<\_ACEOF
23351 #define HAVE_MMAP_ANONYMOUS
23352 _ACEOF
23353
23354 fi
23355
23356 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23357 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23358 if test "${ac_cv_type_signal+set}" = set; then
23359   echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361   cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h.  */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h.  */
23367 #include <sys/types.h>
23368 #include <signal.h>
23369 #ifdef signal
23370 # undef signal
23371 #endif
23372 #ifdef __cplusplus
23373 extern "C" void (*signal (int, void (*)(int)))(int);
23374 #else
23375 void (*signal ()) ();
23376 #endif
23377
23378 int
23379 main ()
23380 {
23381 int i;
23382   ;
23383   return 0;
23384 }
23385 _ACEOF
23386 rm -f conftest.$ac_objext
23387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23388   (eval $ac_compile) 2>conftest.er1
23389   ac_status=$?
23390   grep -v '^ *+' conftest.er1 >conftest.err
23391   rm -f conftest.er1
23392   cat conftest.err >&5
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); } &&
23395          { ac_try='test -z "$ac_c_werror_flag"
23396                          || test ! -s conftest.err'
23397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398   (eval $ac_try) 2>&5
23399   ac_status=$?
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); }; } &&
23402          { ac_try='test -s conftest.$ac_objext'
23403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23404   (eval $ac_try) 2>&5
23405   ac_status=$?
23406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407   (exit $ac_status); }; }; then
23408   ac_cv_type_signal=void
23409 else
23410   echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23412
23413 ac_cv_type_signal=int
23414 fi
23415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23416 fi
23417 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23418 echo "${ECHO_T}$ac_cv_type_signal" >&6
23419
23420 cat >>confdefs.h <<_ACEOF
23421 #define RETSIGTYPE $ac_cv_type_signal
23422 _ACEOF
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23435 do
23436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23437 echo "$as_me:$LINENO: checking for $ac_func" >&5
23438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23439 if eval "test \"\${$as_ac_var+set}\" = set"; then
23440   echo $ECHO_N "(cached) $ECHO_C" >&6
23441 else
23442   cat >conftest.$ac_ext <<_ACEOF
23443 /* confdefs.h.  */
23444 _ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h.  */
23448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23450 #define $ac_func innocuous_$ac_func
23451
23452 /* System header to define __stub macros and hopefully few prototypes,
23453     which can conflict with char $ac_func (); below.
23454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23455     <limits.h> exists even on freestanding compilers.  */
23456
23457 #ifdef __STDC__
23458 # include <limits.h>
23459 #else
23460 # include <assert.h>
23461 #endif
23462
23463 #undef $ac_func
23464
23465 /* Override any gcc2 internal prototype to avoid an error.  */
23466 #ifdef __cplusplus
23467 extern "C"
23468 {
23469 #endif
23470 /* We use char because int might match the return type of a gcc2
23471    builtin and then its argument prototype would still apply.  */
23472 char $ac_func ();
23473 /* The GNU C library defines this for functions which it implements
23474     to always fail with ENOSYS.  Some functions are actually named
23475     something starting with __ and the normal name is an alias.  */
23476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23477 choke me
23478 #else
23479 char (*f) () = $ac_func;
23480 #endif
23481 #ifdef __cplusplus
23482 }
23483 #endif
23484
23485 int
23486 main ()
23487 {
23488 return f != $ac_func;
23489   ;
23490   return 0;
23491 }
23492 _ACEOF
23493 rm -f conftest.$ac_objext conftest$ac_exeext
23494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23495   (eval $ac_link) 2>conftest.er1
23496   ac_status=$?
23497   grep -v '^ *+' conftest.er1 >conftest.err
23498   rm -f conftest.er1
23499   cat conftest.err >&5
23500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501   (exit $ac_status); } &&
23502          { ac_try='test -z "$ac_c_werror_flag"
23503                          || test ! -s conftest.err'
23504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505   (eval $ac_try) 2>&5
23506   ac_status=$?
23507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508   (exit $ac_status); }; } &&
23509          { ac_try='test -s conftest$ac_exeext'
23510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511   (eval $ac_try) 2>&5
23512   ac_status=$?
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); }; }; then
23515   eval "$as_ac_var=yes"
23516 else
23517   echo "$as_me: failed program was:" >&5
23518 sed 's/^/| /' conftest.$ac_ext >&5
23519
23520 eval "$as_ac_var=no"
23521 fi
23522 rm -f conftest.err conftest.$ac_objext \
23523       conftest$ac_exeext conftest.$ac_ext
23524 fi
23525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23527 if test `eval echo '${'$as_ac_var'}'` = yes; then
23528   cat >>confdefs.h <<_ACEOF
23529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23530 _ACEOF
23531
23532 fi
23533 done
23534
23535 echo "$as_me:$LINENO: checking for mprotect" >&5
23536 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23537 if test "${ac_cv_func_mprotect+set}" = set; then
23538   echo $ECHO_N "(cached) $ECHO_C" >&6
23539 else
23540   cat >conftest.$ac_ext <<_ACEOF
23541 /* confdefs.h.  */
23542 _ACEOF
23543 cat confdefs.h >>conftest.$ac_ext
23544 cat >>conftest.$ac_ext <<_ACEOF
23545 /* end confdefs.h.  */
23546 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23548 #define mprotect innocuous_mprotect
23549
23550 /* System header to define __stub macros and hopefully few prototypes,
23551     which can conflict with char mprotect (); below.
23552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23553     <limits.h> exists even on freestanding compilers.  */
23554
23555 #ifdef __STDC__
23556 # include <limits.h>
23557 #else
23558 # include <assert.h>
23559 #endif
23560
23561 #undef mprotect
23562
23563 /* Override any gcc2 internal prototype to avoid an error.  */
23564 #ifdef __cplusplus
23565 extern "C"
23566 {
23567 #endif
23568 /* We use char because int might match the return type of a gcc2
23569    builtin and then its argument prototype would still apply.  */
23570 char mprotect ();
23571 /* The GNU C library defines this for functions which it implements
23572     to always fail with ENOSYS.  Some functions are actually named
23573     something starting with __ and the normal name is an alias.  */
23574 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23575 choke me
23576 #else
23577 char (*f) () = mprotect;
23578 #endif
23579 #ifdef __cplusplus
23580 }
23581 #endif
23582
23583 int
23584 main ()
23585 {
23586 return f != mprotect;
23587   ;
23588   return 0;
23589 }
23590 _ACEOF
23591 rm -f conftest.$ac_objext conftest$ac_exeext
23592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23593   (eval $ac_link) 2>conftest.er1
23594   ac_status=$?
23595   grep -v '^ *+' conftest.er1 >conftest.err
23596   rm -f conftest.er1
23597   cat conftest.err >&5
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); } &&
23600          { ac_try='test -z "$ac_c_werror_flag"
23601                          || test ! -s conftest.err'
23602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603   (eval $ac_try) 2>&5
23604   ac_status=$?
23605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606   (exit $ac_status); }; } &&
23607          { ac_try='test -s conftest$ac_exeext'
23608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609   (eval $ac_try) 2>&5
23610   ac_status=$?
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); }; }; then
23613   ac_cv_func_mprotect=yes
23614 else
23615   echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.$ac_ext >&5
23617
23618 ac_cv_func_mprotect=no
23619 fi
23620 rm -f conftest.err conftest.$ac_objext \
23621       conftest$ac_exeext conftest.$ac_ext
23622 fi
23623 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23624 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23625 if test $ac_cv_func_mprotect = yes; then
23626   :
23627 else
23628   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23629 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23630    { (exit 1); exit 1; }; }
23631 fi
23632
23633
23634
23635   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23636 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23637   ac_ext=c
23638 ac_cpp='$CPP $CPPFLAGS'
23639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23642
23643   oldcflags="$CFLAGS"
23644   CFLAGS="$CFLAGS -Wl,-R."
23645   cat >conftest.$ac_ext <<_ACEOF
23646 /* confdefs.h.  */
23647 _ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h.  */
23651
23652 int
23653 main ()
23654 {
23655 int main() { return 0; }
23656   ;
23657   return 0;
23658 }
23659 _ACEOF
23660 rm -f conftest.$ac_objext conftest$ac_exeext
23661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23662   (eval $ac_link) 2>conftest.er1
23663   ac_status=$?
23664   grep -v '^ *+' conftest.er1 >conftest.err
23665   rm -f conftest.er1
23666   cat conftest.err >&5
23667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668   (exit $ac_status); } &&
23669          { ac_try='test -z "$ac_c_werror_flag"
23670                          || test ! -s conftest.err'
23671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672   (eval $ac_try) 2>&5
23673   ac_status=$?
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); }; } &&
23676          { ac_try='test -s conftest$ac_exeext'
23677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678   (eval $ac_try) 2>&5
23679   ac_status=$?
23680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681   (exit $ac_status); }; }; then
23682   ac_cv_link_use_r=yes
23683 else
23684   echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23686
23687 ac_cv_link_use_r=no
23688 fi
23689 rm -f conftest.err conftest.$ac_objext \
23690       conftest$ac_exeext conftest.$ac_ext
23691   CFLAGS="$oldcflags"
23692   ac_ext=c
23693 ac_cpp='$CPP $CPPFLAGS'
23694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23697
23698   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23699 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23700   if test "$ac_cv_link_use_r" = yes
23701   then
23702
23703 cat >>confdefs.h <<\_ACEOF
23704 #define HAVE_LINK_R 1
23705 _ACEOF
23706
23707   fi
23708
23709
23710 # Check whether --enable-optimized or --disable-optimized was given.
23711 if test "${enable_optimized+set}" = set; then
23712   enableval="$enable_optimized"
23713
23714 else
23715   enableval=no
23716 fi;
23717 if test ${enableval} = "no"
23718 then
23719         ENABLE_OPTIMIZED=
23720
23721 else
23722         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23723
23724 fi
23725
23726 # Check whether --enable-jit or --disable-jit was given.
23727 if test "${enable_jit+set}" = set; then
23728   enableval="$enable_jit"
23729
23730 else
23731   enableval=default
23732 fi;
23733 if test ${enableval} = "no"
23734 then
23735         JIT=
23736
23737 else
23738         case $target in
23739                 *i*86*)
23740                         JIT=TARGET_HAS_JIT=1
23741
23742                         ;;
23743                 *sparc*)
23744                         JIT=TARGET_HAS_JIT=1
23745
23746                         ;;
23747                 *)
23748                         JIT=
23749
23750                         ;;
23751         esac
23752 fi
23753
23754
23755 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23756 if test "${with_llvmgccdir+set}" = set; then
23757   withval="$with_llvmgccdir"
23758   LLVMGCCDIR=$withval
23759
23760 fi;
23761 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23762 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23763 LLVM_GCC_CHECK=no
23764 if test -d "$LLVMGCCDIR"
23765 then
23766         if test -x "$LLVMGCCDIR/bin/gcc"
23767         then
23768                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23769         fi
23770 fi
23771 llvmgccwarn=no
23772 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23773 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23774 if test "$LLVM_GCC_CHECK" = "no"
23775 then
23776     llvmgccwarn=yes
23777 fi
23778 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23779 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23780 LLVM_GCC_SANE=no
23781 if test -x "$LLVM_GCC_CHECK"
23782 then
23783         cp /dev/null conftest.c
23784     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23785         if test $? -eq 0
23786         then
23787                 LLVM_GCC_SANE=yes
23788         fi
23789         rm conftest.c
23790         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23791         LLVMCC1=$llvmcc1path
23792
23793         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23794         LLVMCC1PLUS=$llvmcc1pluspath
23795
23796 fi
23797 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23798 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23799 if test "$LLVM_GCC_SANE" = "no"
23800 then
23801         llvmgccwarn=yes
23802 fi
23803
23804 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23805 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23806 eval "SHLIBEXT=$shrext_cmds"
23807 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23808 echo "${ECHO_T}$SHLIBEXT" >&6
23809 SHLIBEXT=$SHLIBEXT
23810
23811
23812 cat >>confdefs.h <<_ACEOF
23813 #define SHLIBEXT "$SHLIBEXT"
23814 _ACEOF
23815
23816
23817 # Translate the various configuration directories and other basic
23818 # information into substitutions that will end up in config.h.in so
23819 # that these configured values can be hard-wired into a program.
23820 eval LLVM_PREFIX="${prefix}";
23821 eval LLVM_BINDIR="${prefix}/bin";
23822 eval LLVM_LIBDIR="${prefix}/lib";
23823 eval LLVM_DATADIR="${prefix}/data";
23824 eval LLVM_DOCSDIR="${prefix}/docs";
23825 eval LLVM_ETCDIR="${prefix}/etc";
23826 eval LLVM_INCLUDEDIR="${prefix}/include";
23827 eval LLVM_INFODIR="${prefix}/info";
23828 eval LLVM_MANDIR="${prefix}/man";
23829 LLVM_CONFIGTIME=`date`
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841 cat >>confdefs.h <<_ACEOF
23842 #define LLVM_PREFIX "$LLVM_PREFIX"
23843 _ACEOF
23844
23845
23846 cat >>confdefs.h <<_ACEOF
23847 #define LLVM_BINDIR "$LLVM_BINDIR"
23848 _ACEOF
23849
23850
23851 cat >>confdefs.h <<_ACEOF
23852 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23853 _ACEOF
23854
23855
23856 cat >>confdefs.h <<_ACEOF
23857 #define LLVM_DATADIR "$LLVM_DATADIR"
23858 _ACEOF
23859
23860
23861 cat >>confdefs.h <<_ACEOF
23862 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23863 _ACEOF
23864
23865
23866 cat >>confdefs.h <<_ACEOF
23867 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23868 _ACEOF
23869
23870
23871 cat >>confdefs.h <<_ACEOF
23872 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23873 _ACEOF
23874
23875
23876 cat >>confdefs.h <<_ACEOF
23877 #define LLVM_INFODIR "$LLVM_INFODIR"
23878 _ACEOF
23879
23880
23881 cat >>confdefs.h <<_ACEOF
23882 #define LLVM_MANDIR "$LLVM_MANDIR"
23883 _ACEOF
23884
23885
23886 cat >>confdefs.h <<_ACEOF
23887 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23888 _ACEOF
23889
23890
23891 cat >confcache <<\_ACEOF
23892 # This file is a shell script that caches the results of configure
23893 # tests run on this system so they can be shared between configure
23894 # scripts and configure runs, see configure's option --config-cache.
23895 # It is not useful on other systems.  If it contains results you don't
23896 # want to keep, you may remove or edit it.
23897 #
23898 # config.status only pays attention to the cache file if you give it
23899 # the --recheck option to rerun configure.
23900 #
23901 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23902 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23903 # following values.
23904
23905 _ACEOF
23906
23907 # The following way of writing the cache mishandles newlines in values,
23908 # but we know of no workaround that is simple, portable, and efficient.
23909 # So, don't put newlines in cache variables' values.
23910 # Ultrix sh set writes to stderr and can't be redirected directly,
23911 # and sets the high bit in the cache file unless we assign to the vars.
23912 {
23913   (set) 2>&1 |
23914     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23915     *ac_space=\ *)
23916       # `set' does not quote correctly, so add quotes (double-quote
23917       # substitution turns \\\\ into \\, and sed turns \\ into \).
23918       sed -n \
23919         "s/'/'\\\\''/g;
23920           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23921       ;;
23922     *)
23923       # `set' quotes correctly as required by POSIX, so do not add quotes.
23924       sed -n \
23925         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23926       ;;
23927     esac;
23928 } |
23929   sed '
23930      t clear
23931      : clear
23932      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23933      t end
23934      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23935      : end' >>confcache
23936 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23937   if test -w $cache_file; then
23938     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23939     cat confcache >$cache_file
23940   else
23941     echo "not updating unwritable cache $cache_file"
23942   fi
23943 fi
23944 rm -f confcache
23945
23946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23947 # Let make expand exec_prefix.
23948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23949
23950 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23951 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23952 # trailing colons and then remove the whole line if VPATH becomes empty
23953 # (actually we leave an empty line to preserve line numbers).
23954 if test "x$srcdir" = x.; then
23955   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23956 s/:*\$(srcdir):*/:/;
23957 s/:*\${srcdir}:*/:/;
23958 s/:*@srcdir@:*/:/;
23959 s/^\([^=]*=[     ]*\):*/\1/;
23960 s/:*$//;
23961 s/^[^=]*=[       ]*$//;
23962 }'
23963 fi
23964
23965 DEFS=-DHAVE_CONFIG_H
23966
23967 ac_libobjs=
23968 ac_ltlibobjs=
23969 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23970   # 1. Remove the extension, and $U if already installed.
23971   ac_i=`echo "$ac_i" |
23972          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23973   # 2. Add them.
23974   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23975   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23976 done
23977 LIBOBJS=$ac_libobjs
23978
23979 LTLIBOBJS=$ac_ltlibobjs
23980
23981
23982
23983 : ${CONFIG_STATUS=./config.status}
23984 ac_clean_files_save=$ac_clean_files
23985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23986 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23987 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23988 cat >$CONFIG_STATUS <<_ACEOF
23989 #! $SHELL
23990 # Generated by $as_me.
23991 # Run this file to recreate the current configuration.
23992 # Compiler output produced by configure, useful for debugging
23993 # configure, is in config.log if it exists.
23994
23995 debug=false
23996 ac_cs_recheck=false
23997 ac_cs_silent=false
23998 SHELL=\${CONFIG_SHELL-$SHELL}
23999 _ACEOF
24000
24001 cat >>$CONFIG_STATUS <<\_ACEOF
24002 ## --------------------- ##
24003 ## M4sh Initialization.  ##
24004 ## --------------------- ##
24005
24006 # Be Bourne compatible
24007 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24008   emulate sh
24009   NULLCMD=:
24010   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24011   # is contrary to our usage.  Disable this feature.
24012   alias -g '${1+"$@"}'='"$@"'
24013 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24014   set -o posix
24015 fi
24016 DUALCASE=1; export DUALCASE # for MKS sh
24017
24018 # Support unset when possible.
24019 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24020   as_unset=unset
24021 else
24022   as_unset=false
24023 fi
24024
24025
24026 # Work around bugs in pre-3.0 UWIN ksh.
24027 $as_unset ENV MAIL MAILPATH
24028 PS1='$ '
24029 PS2='> '
24030 PS4='+ '
24031
24032 # NLS nuisances.
24033 for as_var in \
24034   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24035   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24036   LC_TELEPHONE LC_TIME
24037 do
24038   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24039     eval $as_var=C; export $as_var
24040   else
24041     $as_unset $as_var
24042   fi
24043 done
24044
24045 # Required to use basename.
24046 if expr a : '\(a\)' >/dev/null 2>&1; then
24047   as_expr=expr
24048 else
24049   as_expr=false
24050 fi
24051
24052 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24053   as_basename=basename
24054 else
24055   as_basename=false
24056 fi
24057
24058
24059 # Name of the executable.
24060 as_me=`$as_basename "$0" ||
24061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24062          X"$0" : 'X\(//\)$' \| \
24063          X"$0" : 'X\(/\)$' \| \
24064          .     : '\(.\)' 2>/dev/null ||
24065 echo X/"$0" |
24066     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24067           /^X\/\(\/\/\)$/{ s//\1/; q; }
24068           /^X\/\(\/\).*/{ s//\1/; q; }
24069           s/.*/./; q'`
24070
24071
24072 # PATH needs CR, and LINENO needs CR and PATH.
24073 # Avoid depending upon Character Ranges.
24074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24077 as_cr_digits='0123456789'
24078 as_cr_alnum=$as_cr_Letters$as_cr_digits
24079
24080 # The user is always right.
24081 if test "${PATH_SEPARATOR+set}" != set; then
24082   echo "#! /bin/sh" >conf$$.sh
24083   echo  "exit 0"   >>conf$$.sh
24084   chmod +x conf$$.sh
24085   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24086     PATH_SEPARATOR=';'
24087   else
24088     PATH_SEPARATOR=:
24089   fi
24090   rm -f conf$$.sh
24091 fi
24092
24093
24094   as_lineno_1=$LINENO
24095   as_lineno_2=$LINENO
24096   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24097   test "x$as_lineno_1" != "x$as_lineno_2" &&
24098   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24099   # Find who we are.  Look in the path if we contain no path at all
24100   # relative or not.
24101   case $0 in
24102     *[\\/]* ) as_myself=$0 ;;
24103     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24104 for as_dir in $PATH
24105 do
24106   IFS=$as_save_IFS
24107   test -z "$as_dir" && as_dir=.
24108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24109 done
24110
24111        ;;
24112   esac
24113   # We did not find ourselves, most probably we were run as `sh COMMAND'
24114   # in which case we are not to be found in the path.
24115   if test "x$as_myself" = x; then
24116     as_myself=$0
24117   fi
24118   if test ! -f "$as_myself"; then
24119     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24120 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24121    { (exit 1); exit 1; }; }
24122   fi
24123   case $CONFIG_SHELL in
24124   '')
24125     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24126 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24127 do
24128   IFS=$as_save_IFS
24129   test -z "$as_dir" && as_dir=.
24130   for as_base in sh bash ksh sh5; do
24131          case $as_dir in
24132          /*)
24133            if ("$as_dir/$as_base" -c '
24134   as_lineno_1=$LINENO
24135   as_lineno_2=$LINENO
24136   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24137   test "x$as_lineno_1" != "x$as_lineno_2" &&
24138   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24139              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24140              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24141              CONFIG_SHELL=$as_dir/$as_base
24142              export CONFIG_SHELL
24143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24144            fi;;
24145          esac
24146        done
24147 done
24148 ;;
24149   esac
24150
24151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24152   # uniformly replaced by the line number.  The first 'sed' inserts a
24153   # line-number line before each line; the second 'sed' does the real
24154   # work.  The second script uses 'N' to pair each line-number line
24155   # with the numbered line, and appends trailing '-' during
24156   # substitution so that $LINENO is not a special case at line end.
24157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24159   sed '=' <$as_myself |
24160     sed '
24161       N
24162       s,$,-,
24163       : loop
24164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24165       t loop
24166       s,-$,,
24167       s,^['$as_cr_digits']*\n,,
24168     ' >$as_me.lineno &&
24169   chmod +x $as_me.lineno ||
24170     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24171 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24172    { (exit 1); exit 1; }; }
24173
24174   # Don't try to exec as it changes $[0], causing all sort of problems
24175   # (the dirname of $[0] is not the place where we might find the
24176   # original and so on.  Autoconf is especially sensible to this).
24177   . ./$as_me.lineno
24178   # Exit status is that of the last command.
24179   exit
24180 }
24181
24182
24183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24184   *c*,-n*) ECHO_N= ECHO_C='
24185 ' ECHO_T='      ' ;;
24186   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24187   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24188 esac
24189
24190 if expr a : '\(a\)' >/dev/null 2>&1; then
24191   as_expr=expr
24192 else
24193   as_expr=false
24194 fi
24195
24196 rm -f conf$$ conf$$.exe conf$$.file
24197 echo >conf$$.file
24198 if ln -s conf$$.file conf$$ 2>/dev/null; then
24199   # We could just check for DJGPP; but this test a) works b) is more generic
24200   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24201   if test -f conf$$.exe; then
24202     # Don't use ln at all; we don't have any links
24203     as_ln_s='cp -p'
24204   else
24205     as_ln_s='ln -s'
24206   fi
24207 elif ln conf$$.file conf$$ 2>/dev/null; then
24208   as_ln_s=ln
24209 else
24210   as_ln_s='cp -p'
24211 fi
24212 rm -f conf$$ conf$$.exe conf$$.file
24213
24214 if mkdir -p . 2>/dev/null; then
24215   as_mkdir_p=:
24216 else
24217   test -d ./-p && rmdir ./-p
24218   as_mkdir_p=false
24219 fi
24220
24221 as_executable_p="test -f"
24222
24223 # Sed expression to map a string onto a valid CPP name.
24224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24225
24226 # Sed expression to map a string onto a valid variable name.
24227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24228
24229
24230 # IFS
24231 # We need space, tab and new line, in precisely that order.
24232 as_nl='
24233 '
24234 IFS="   $as_nl"
24235
24236 # CDPATH.
24237 $as_unset CDPATH
24238
24239 exec 6>&1
24240
24241 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24242 # report actual input values of CONFIG_FILES etc. instead of their
24243 # values after options handling.  Logging --version etc. is OK.
24244 exec 5>>config.log
24245 {
24246   echo
24247   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24248 ## Running $as_me. ##
24249 _ASBOX
24250 } >&5
24251 cat >&5 <<_CSEOF
24252
24253 This file was extended by LLVM $as_me 1.4, which was
24254 generated by GNU Autoconf 2.59.  Invocation command line was
24255
24256   CONFIG_FILES    = $CONFIG_FILES
24257   CONFIG_HEADERS  = $CONFIG_HEADERS
24258   CONFIG_LINKS    = $CONFIG_LINKS
24259   CONFIG_COMMANDS = $CONFIG_COMMANDS
24260   $ $0 $@
24261
24262 _CSEOF
24263 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24264 echo >&5
24265 _ACEOF
24266
24267 # Files that config.status was made for.
24268 if test -n "$ac_config_files"; then
24269   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24270 fi
24271
24272 if test -n "$ac_config_headers"; then
24273   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24274 fi
24275
24276 if test -n "$ac_config_links"; then
24277   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24278 fi
24279
24280 if test -n "$ac_config_commands"; then
24281   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24282 fi
24283
24284 cat >>$CONFIG_STATUS <<\_ACEOF
24285
24286 ac_cs_usage="\
24287 \`$as_me' instantiates files from templates according to the
24288 current configuration.
24289
24290 Usage: $0 [OPTIONS] [FILE]...
24291
24292   -h, --help       print this help, then exit
24293   -V, --version    print version number, then exit
24294   -q, --quiet      do not print progress messages
24295   -d, --debug      don't remove temporary files
24296       --recheck    update $as_me by reconfiguring in the same conditions
24297   --file=FILE[:TEMPLATE]
24298                    instantiate the configuration file FILE
24299   --header=FILE[:TEMPLATE]
24300                    instantiate the configuration header FILE
24301
24302 Configuration files:
24303 $config_files
24304
24305 Configuration headers:
24306 $config_headers
24307
24308 Configuration links:
24309 $config_links
24310
24311 Configuration commands:
24312 $config_commands
24313
24314 Report bugs to <bug-autoconf@gnu.org>."
24315 _ACEOF
24316
24317 cat >>$CONFIG_STATUS <<_ACEOF
24318 ac_cs_version="\\
24319 LLVM config.status 1.4
24320 configured by $0, generated by GNU Autoconf 2.59,
24321   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24322
24323 Copyright (C) 2003 Free Software Foundation, Inc.
24324 This config.status script is free software; the Free Software Foundation
24325 gives unlimited permission to copy, distribute and modify it."
24326 srcdir=$srcdir
24327 INSTALL="$INSTALL"
24328 _ACEOF
24329
24330 cat >>$CONFIG_STATUS <<\_ACEOF
24331 # If no file are specified by the user, then we need to provide default
24332 # value.  By we need to know if files were specified by the user.
24333 ac_need_defaults=:
24334 while test $# != 0
24335 do
24336   case $1 in
24337   --*=*)
24338     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24339     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24340     ac_shift=:
24341     ;;
24342   -*)
24343     ac_option=$1
24344     ac_optarg=$2
24345     ac_shift=shift
24346     ;;
24347   *) # This is not an option, so the user has probably given explicit
24348      # arguments.
24349      ac_option=$1
24350      ac_need_defaults=false;;
24351   esac
24352
24353   case $ac_option in
24354   # Handling of the options.
24355 _ACEOF
24356 cat >>$CONFIG_STATUS <<\_ACEOF
24357   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24358     ac_cs_recheck=: ;;
24359   --version | --vers* | -V )
24360     echo "$ac_cs_version"; exit 0 ;;
24361   --he | --h)
24362     # Conflict between --help and --header
24363     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24364 Try \`$0 --help' for more information." >&5
24365 echo "$as_me: error: ambiguous option: $1
24366 Try \`$0 --help' for more information." >&2;}
24367    { (exit 1); exit 1; }; };;
24368   --help | --hel | -h )
24369     echo "$ac_cs_usage"; exit 0 ;;
24370   --debug | --d* | -d )
24371     debug=: ;;
24372   --file | --fil | --fi | --f )
24373     $ac_shift
24374     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24375     ac_need_defaults=false;;
24376   --header | --heade | --head | --hea )
24377     $ac_shift
24378     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24379     ac_need_defaults=false;;
24380   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24381   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24382     ac_cs_silent=: ;;
24383
24384   # This is an error.
24385   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24386 Try \`$0 --help' for more information." >&5
24387 echo "$as_me: error: unrecognized option: $1
24388 Try \`$0 --help' for more information." >&2;}
24389    { (exit 1); exit 1; }; } ;;
24390
24391   *) ac_config_targets="$ac_config_targets $1" ;;
24392
24393   esac
24394   shift
24395 done
24396
24397 ac_configure_extra_args=
24398
24399 if $ac_cs_silent; then
24400   exec 6>/dev/null
24401   ac_configure_extra_args="$ac_configure_extra_args --silent"
24402 fi
24403
24404 _ACEOF
24405 cat >>$CONFIG_STATUS <<_ACEOF
24406 if \$ac_cs_recheck; then
24407   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24408   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24409 fi
24410
24411 _ACEOF
24412
24413 cat >>$CONFIG_STATUS <<_ACEOF
24414 #
24415 # INIT-COMMANDS section.
24416 #
24417
24418 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24419 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24420 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24421 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24422 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24425 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24426 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24427 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24428 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24429 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24430
24431 _ACEOF
24432
24433
24434
24435 cat >>$CONFIG_STATUS <<\_ACEOF
24436 for ac_config_target in $ac_config_targets
24437 do
24438   case "$ac_config_target" in
24439   # Handling of arguments.
24440   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24441   "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24442   "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24443   "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24444   "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
24445   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24446   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24447   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24448   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24449   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24450   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24451   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24452   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24453   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24454   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24455   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24456   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24457   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24458   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
24459   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
24460   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24461 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24462    { (exit 1); exit 1; }; };;
24463   esac
24464 done
24465
24466 # If the user did not use the arguments to specify the items to instantiate,
24467 # then the envvar interface is used.  Set only those that are not.
24468 # We use the long form for the default assignment because of an extremely
24469 # bizarre bug on SunOS 4.1.3.
24470 if $ac_need_defaults; then
24471   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24472   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24473   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24474   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24475 fi
24476
24477 # Have a temporary directory for convenience.  Make it in the build tree
24478 # simply because there is no reason to put it here, and in addition,
24479 # creating and moving files from /tmp can sometimes cause problems.
24480 # Create a temporary directory, and hook for its removal unless debugging.
24481 $debug ||
24482 {
24483   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24484   trap '{ (exit 1); exit 1; }' 1 2 13 15
24485 }
24486
24487 # Create a (secure) tmp directory for tmp files.
24488
24489 {
24490   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24491   test -n "$tmp" && test -d "$tmp"
24492 }  ||
24493 {
24494   tmp=./confstat$$-$RANDOM
24495   (umask 077 && mkdir $tmp)
24496 } ||
24497 {
24498    echo "$me: cannot create a temporary directory in ." >&2
24499    { (exit 1); exit 1; }
24500 }
24501
24502 _ACEOF
24503
24504 cat >>$CONFIG_STATUS <<_ACEOF
24505
24506 #
24507 # CONFIG_FILES section.
24508 #
24509
24510 # No need to generate the scripts if there are no CONFIG_FILES.
24511 # This happens for instance when ./config.status config.h
24512 if test -n "\$CONFIG_FILES"; then
24513   # Protect against being on the right side of a sed subst in config.status.
24514   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24515    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24516 s,@SHELL@,$SHELL,;t t
24517 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24518 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24519 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24520 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24521 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24522 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24523 s,@exec_prefix@,$exec_prefix,;t t
24524 s,@prefix@,$prefix,;t t
24525 s,@program_transform_name@,$program_transform_name,;t t
24526 s,@bindir@,$bindir,;t t
24527 s,@sbindir@,$sbindir,;t t
24528 s,@libexecdir@,$libexecdir,;t t
24529 s,@datadir@,$datadir,;t t
24530 s,@sysconfdir@,$sysconfdir,;t t
24531 s,@sharedstatedir@,$sharedstatedir,;t t
24532 s,@localstatedir@,$localstatedir,;t t
24533 s,@libdir@,$libdir,;t t
24534 s,@includedir@,$includedir,;t t
24535 s,@oldincludedir@,$oldincludedir,;t t
24536 s,@infodir@,$infodir,;t t
24537 s,@mandir@,$mandir,;t t
24538 s,@build_alias@,$build_alias,;t t
24539 s,@host_alias@,$host_alias,;t t
24540 s,@target_alias@,$target_alias,;t t
24541 s,@DEFS@,$DEFS,;t t
24542 s,@ECHO_C@,$ECHO_C,;t t
24543 s,@ECHO_N@,$ECHO_N,;t t
24544 s,@ECHO_T@,$ECHO_T,;t t
24545 s,@LIBS@,$LIBS,;t t
24546 s,@subdirs@,$subdirs,;t t
24547 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24548 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24549 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24550 s,@build@,$build,;t t
24551 s,@build_cpu@,$build_cpu,;t t
24552 s,@build_vendor@,$build_vendor,;t t
24553 s,@build_os@,$build_os,;t t
24554 s,@host@,$host,;t t
24555 s,@host_cpu@,$host_cpu,;t t
24556 s,@host_vendor@,$host_vendor,;t t
24557 s,@host_os@,$host_os,;t t
24558 s,@target@,$target,;t t
24559 s,@target_cpu@,$target_cpu,;t t
24560 s,@target_vendor@,$target_vendor,;t t
24561 s,@target_os@,$target_os,;t t
24562 s,@OS@,$OS,;t t
24563 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24564 s,@ARCH@,$ARCH,;t t
24565 s,@CXX@,$CXX,;t t
24566 s,@CXXFLAGS@,$CXXFLAGS,;t t
24567 s,@LDFLAGS@,$LDFLAGS,;t t
24568 s,@CPPFLAGS@,$CPPFLAGS,;t t
24569 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24570 s,@EXEEXT@,$EXEEXT,;t t
24571 s,@OBJEXT@,$OBJEXT,;t t
24572 s,@CC@,$CC,;t t
24573 s,@CFLAGS@,$CFLAGS,;t t
24574 s,@ac_ct_CC@,$ac_ct_CC,;t t
24575 s,@CPP@,$CPP,;t t
24576 s,@ifGNUmake@,$ifGNUmake,;t t
24577 s,@LEX@,$LEX,;t t
24578 s,@LEXLIB@,$LEXLIB,;t t
24579 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24580 s,@FLEX@,$FLEX,;t t
24581 s,@YACC@,$YACC,;t t
24582 s,@BISON@,$BISON,;t t
24583 s,@EGREP@,$EGREP,;t t
24584 s,@LN_S@,$LN_S,;t t
24585 s,@ECHO@,$ECHO,;t t
24586 s,@AR@,$AR,;t t
24587 s,@ac_ct_AR@,$ac_ct_AR,;t t
24588 s,@RANLIB@,$RANLIB,;t t
24589 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24590 s,@STRIP@,$STRIP,;t t
24591 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24592 s,@CXXCPP@,$CXXCPP,;t t
24593 s,@F77@,$F77,;t t
24594 s,@FFLAGS@,$FFLAGS,;t t
24595 s,@ac_ct_F77@,$ac_ct_F77,;t t
24596 s,@LIBTOOL@,$LIBTOOL,;t t
24597 s,@DOT@,$DOT,;t t
24598 s,@ETAGS@,$ETAGS,;t t
24599 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24600 s,@PYTHON@,$PYTHON,;t t
24601 s,@QMTEST@,$QMTEST,;t t
24602 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24603 s,@ENDIAN@,$ENDIAN,;t t
24604 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24605 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24606 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24607 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24608 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24609 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24610 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24611 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24612 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24613 s,@ALLOCA@,$ALLOCA,;t t
24614 s,@MMAP_FILE@,$MMAP_FILE,;t t
24615 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24616 s,@JIT@,$JIT,;t t
24617 s,@LLVMCC1@,$LLVMCC1,;t t
24618 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24619 s,@SHLIBEXT@,$SHLIBEXT,;t t
24620 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24621 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24622 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24623 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24624 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24625 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24626 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24627 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24628 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24629 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24630 s,@LIBOBJS@,$LIBOBJS,;t t
24631 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24632 CEOF
24633
24634 _ACEOF
24635
24636   cat >>$CONFIG_STATUS <<\_ACEOF
24637   # Split the substitutions into bite-sized pieces for seds with
24638   # small command number limits, like on Digital OSF/1 and HP-UX.
24639   ac_max_sed_lines=48
24640   ac_sed_frag=1 # Number of current file.
24641   ac_beg=1 # First line for current file.
24642   ac_end=$ac_max_sed_lines # Line after last line for current file.
24643   ac_more_lines=:
24644   ac_sed_cmds=
24645   while $ac_more_lines; do
24646     if test $ac_beg -gt 1; then
24647       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24648     else
24649       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24650     fi
24651     if test ! -s $tmp/subs.frag; then
24652       ac_more_lines=false
24653     else
24654       # The purpose of the label and of the branching condition is to
24655       # speed up the sed processing (if there are no `@' at all, there
24656       # is no need to browse any of the substitutions).
24657       # These are the two extra sed commands mentioned above.
24658       (echo ':t
24659   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24660       if test -z "$ac_sed_cmds"; then
24661         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24662       else
24663         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24664       fi
24665       ac_sed_frag=`expr $ac_sed_frag + 1`
24666       ac_beg=$ac_end
24667       ac_end=`expr $ac_end + $ac_max_sed_lines`
24668     fi
24669   done
24670   if test -z "$ac_sed_cmds"; then
24671     ac_sed_cmds=cat
24672   fi
24673 fi # test -n "$CONFIG_FILES"
24674
24675 _ACEOF
24676 cat >>$CONFIG_STATUS <<\_ACEOF
24677 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24678   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24679   case $ac_file in
24680   - | *:- | *:-:* ) # input from stdin
24681         cat >$tmp/stdin
24682         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24683         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24684   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24685         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24686   * )   ac_file_in=$ac_file.in ;;
24687   esac
24688
24689   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24690   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24692          X"$ac_file" : 'X\(//\)[^/]' \| \
24693          X"$ac_file" : 'X\(//\)$' \| \
24694          X"$ac_file" : 'X\(/\)' \| \
24695          .     : '\(.\)' 2>/dev/null ||
24696 echo X"$ac_file" |
24697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24698           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24699           /^X\(\/\/\)$/{ s//\1/; q; }
24700           /^X\(\/\).*/{ s//\1/; q; }
24701           s/.*/./; q'`
24702   { if $as_mkdir_p; then
24703     mkdir -p "$ac_dir"
24704   else
24705     as_dir="$ac_dir"
24706     as_dirs=
24707     while test ! -d "$as_dir"; do
24708       as_dirs="$as_dir $as_dirs"
24709       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24711          X"$as_dir" : 'X\(//\)[^/]' \| \
24712          X"$as_dir" : 'X\(//\)$' \| \
24713          X"$as_dir" : 'X\(/\)' \| \
24714          .     : '\(.\)' 2>/dev/null ||
24715 echo X"$as_dir" |
24716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24718           /^X\(\/\/\)$/{ s//\1/; q; }
24719           /^X\(\/\).*/{ s//\1/; q; }
24720           s/.*/./; q'`
24721     done
24722     test ! -n "$as_dirs" || mkdir $as_dirs
24723   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24724 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24725    { (exit 1); exit 1; }; }; }
24726
24727   ac_builddir=.
24728
24729 if test "$ac_dir" != .; then
24730   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24731   # A "../" for each directory in $ac_dir_suffix.
24732   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24733 else
24734   ac_dir_suffix= ac_top_builddir=
24735 fi
24736
24737 case $srcdir in
24738   .)  # No --srcdir option.  We are building in place.
24739     ac_srcdir=.
24740     if test -z "$ac_top_builddir"; then
24741        ac_top_srcdir=.
24742     else
24743        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24744     fi ;;
24745   [\\/]* | ?:[\\/]* )  # Absolute path.
24746     ac_srcdir=$srcdir$ac_dir_suffix;
24747     ac_top_srcdir=$srcdir ;;
24748   *) # Relative path.
24749     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24750     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24751 esac
24752
24753 # Do not use `cd foo && pwd` to compute absolute paths, because
24754 # the directories may not exist.
24755 case `pwd` in
24756 .) ac_abs_builddir="$ac_dir";;
24757 *)
24758   case "$ac_dir" in
24759   .) ac_abs_builddir=`pwd`;;
24760   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24761   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24762   esac;;
24763 esac
24764 case $ac_abs_builddir in
24765 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24766 *)
24767   case ${ac_top_builddir}. in
24768   .) ac_abs_top_builddir=$ac_abs_builddir;;
24769   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24770   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24771   esac;;
24772 esac
24773 case $ac_abs_builddir in
24774 .) ac_abs_srcdir=$ac_srcdir;;
24775 *)
24776   case $ac_srcdir in
24777   .) ac_abs_srcdir=$ac_abs_builddir;;
24778   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24779   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24780   esac;;
24781 esac
24782 case $ac_abs_builddir in
24783 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24784 *)
24785   case $ac_top_srcdir in
24786   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24787   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24788   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24789   esac;;
24790 esac
24791
24792
24793   case $INSTALL in
24794   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24795   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24796   esac
24797
24798   if test x"$ac_file" != x-; then
24799     { echo "$as_me:$LINENO: creating $ac_file" >&5
24800 echo "$as_me: creating $ac_file" >&6;}
24801     rm -f "$ac_file"
24802   fi
24803   # Let's still pretend it is `configure' which instantiates (i.e., don't
24804   # use $as_me), people would be surprised to read:
24805   #    /* config.h.  Generated by config.status.  */
24806   if test x"$ac_file" = x-; then
24807     configure_input=
24808   else
24809     configure_input="$ac_file.  "
24810   fi
24811   configure_input=$configure_input"Generated from `echo $ac_file_in |
24812                                      sed 's,.*/,,'` by configure."
24813
24814   # First look for the input files in the build tree, otherwise in the
24815   # src tree.
24816   ac_file_inputs=`IFS=:
24817     for f in $ac_file_in; do
24818       case $f in
24819       -) echo $tmp/stdin ;;
24820       [\\/$]*)
24821          # Absolute (can't be DOS-style, as IFS=:)
24822          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24823 echo "$as_me: error: cannot find input file: $f" >&2;}
24824    { (exit 1); exit 1; }; }
24825          echo "$f";;
24826       *) # Relative
24827          if test -f "$f"; then
24828            # Build tree
24829            echo "$f"
24830          elif test -f "$srcdir/$f"; then
24831            # Source tree
24832            echo "$srcdir/$f"
24833          else
24834            # /dev/null tree
24835            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24836 echo "$as_me: error: cannot find input file: $f" >&2;}
24837    { (exit 1); exit 1; }; }
24838          fi;;
24839       esac
24840     done` || { (exit 1); exit 1; }
24841 _ACEOF
24842 cat >>$CONFIG_STATUS <<_ACEOF
24843   sed "$ac_vpsub
24844 $extrasub
24845 _ACEOF
24846 cat >>$CONFIG_STATUS <<\_ACEOF
24847 :t
24848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24849 s,@configure_input@,$configure_input,;t t
24850 s,@srcdir@,$ac_srcdir,;t t
24851 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24852 s,@top_srcdir@,$ac_top_srcdir,;t t
24853 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24854 s,@builddir@,$ac_builddir,;t t
24855 s,@abs_builddir@,$ac_abs_builddir,;t t
24856 s,@top_builddir@,$ac_top_builddir,;t t
24857 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24858 s,@INSTALL@,$ac_INSTALL,;t t
24859 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24860   rm -f $tmp/stdin
24861   if test x"$ac_file" != x-; then
24862     mv $tmp/out $ac_file
24863   else
24864     cat $tmp/out
24865     rm -f $tmp/out
24866   fi
24867
24868 done
24869 _ACEOF
24870 cat >>$CONFIG_STATUS <<\_ACEOF
24871
24872 #
24873 # CONFIG_HEADER section.
24874 #
24875
24876 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24877 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24878 #
24879 # ac_d sets the value in "#define NAME VALUE" lines.
24880 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24881 ac_dB='[         ].*$,\1#\2'
24882 ac_dC=' '
24883 ac_dD=',;t'
24884 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24885 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24886 ac_uB='$,\1#\2define\3'
24887 ac_uC=' '
24888 ac_uD=',;t'
24889
24890 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24891   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24892   case $ac_file in
24893   - | *:- | *:-:* ) # input from stdin
24894         cat >$tmp/stdin
24895         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24896         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24897   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24898         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24899   * )   ac_file_in=$ac_file.in ;;
24900   esac
24901
24902   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24903 echo "$as_me: creating $ac_file" >&6;}
24904
24905   # First look for the input files in the build tree, otherwise in the
24906   # src tree.
24907   ac_file_inputs=`IFS=:
24908     for f in $ac_file_in; do
24909       case $f in
24910       -) echo $tmp/stdin ;;
24911       [\\/$]*)
24912          # Absolute (can't be DOS-style, as IFS=:)
24913          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24914 echo "$as_me: error: cannot find input file: $f" >&2;}
24915    { (exit 1); exit 1; }; }
24916          # Do quote $f, to prevent DOS paths from being IFS'd.
24917          echo "$f";;
24918       *) # Relative
24919          if test -f "$f"; then
24920            # Build tree
24921            echo "$f"
24922          elif test -f "$srcdir/$f"; then
24923            # Source tree
24924            echo "$srcdir/$f"
24925          else
24926            # /dev/null tree
24927            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24928 echo "$as_me: error: cannot find input file: $f" >&2;}
24929    { (exit 1); exit 1; }; }
24930          fi;;
24931       esac
24932     done` || { (exit 1); exit 1; }
24933   # Remove the trailing spaces.
24934   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24935
24936 _ACEOF
24937
24938 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24939 # `conftest.undefs', that substitutes the proper values into
24940 # config.h.in to produce config.h.  The first handles `#define'
24941 # templates, and the second `#undef' templates.
24942 # And first: Protect against being on the right side of a sed subst in
24943 # config.status.  Protect against being in an unquoted here document
24944 # in config.status.
24945 rm -f conftest.defines conftest.undefs
24946 # Using a here document instead of a string reduces the quoting nightmare.
24947 # Putting comments in sed scripts is not portable.
24948 #
24949 # `end' is used to avoid that the second main sed command (meant for
24950 # 0-ary CPP macros) applies to n-ary macro definitions.
24951 # See the Autoconf documentation for `clear'.
24952 cat >confdef2sed.sed <<\_ACEOF
24953 s/[\\&,]/\\&/g
24954 s,[\\$`],\\&,g
24955 t clear
24956 : clear
24957 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24958 t end
24959 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24960 : end
24961 _ACEOF
24962 # If some macros were called several times there might be several times
24963 # the same #defines, which is useless.  Nevertheless, we may not want to
24964 # sort them, since we want the *last* AC-DEFINE to be honored.
24965 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24966 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24967 rm -f confdef2sed.sed
24968
24969 # This sed command replaces #undef with comments.  This is necessary, for
24970 # example, in the case of _POSIX_SOURCE, which is predefined and required
24971 # on some systems where configure will not decide to define it.
24972 cat >>conftest.undefs <<\_ACEOF
24973 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24974 _ACEOF
24975
24976 # Break up conftest.defines because some shells have a limit on the size
24977 # of here documents, and old seds have small limits too (100 cmds).
24978 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24979 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24980 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24981 echo '  :' >>$CONFIG_STATUS
24982 rm -f conftest.tail
24983 while grep . conftest.defines >/dev/null
24984 do
24985   # Write a limited-size here document to $tmp/defines.sed.
24986   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24987   # Speed up: don't consider the non `#define' lines.
24988   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24989   # Work around the forget-to-reset-the-flag bug.
24990   echo 't clr' >>$CONFIG_STATUS
24991   echo ': clr' >>$CONFIG_STATUS
24992   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24993   echo 'CEOF
24994   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24995   rm -f $tmp/in
24996   mv $tmp/out $tmp/in
24997 ' >>$CONFIG_STATUS
24998   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24999   rm -f conftest.defines
25000   mv conftest.tail conftest.defines
25001 done
25002 rm -f conftest.defines
25003 echo '  fi # grep' >>$CONFIG_STATUS
25004 echo >>$CONFIG_STATUS
25005
25006 # Break up conftest.undefs because some shells have a limit on the size
25007 # of here documents, and old seds have small limits too (100 cmds).
25008 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25009 rm -f conftest.tail
25010 while grep . conftest.undefs >/dev/null
25011 do
25012   # Write a limited-size here document to $tmp/undefs.sed.
25013   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25014   # Speed up: don't consider the non `#undef'
25015   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25016   # Work around the forget-to-reset-the-flag bug.
25017   echo 't clr' >>$CONFIG_STATUS
25018   echo ': clr' >>$CONFIG_STATUS
25019   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25020   echo 'CEOF
25021   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25022   rm -f $tmp/in
25023   mv $tmp/out $tmp/in
25024 ' >>$CONFIG_STATUS
25025   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25026   rm -f conftest.undefs
25027   mv conftest.tail conftest.undefs
25028 done
25029 rm -f conftest.undefs
25030
25031 cat >>$CONFIG_STATUS <<\_ACEOF
25032   # Let's still pretend it is `configure' which instantiates (i.e., don't
25033   # use $as_me), people would be surprised to read:
25034   #    /* config.h.  Generated by config.status.  */
25035   if test x"$ac_file" = x-; then
25036     echo "/* Generated by configure.  */" >$tmp/config.h
25037   else
25038     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25039   fi
25040   cat $tmp/in >>$tmp/config.h
25041   rm -f $tmp/in
25042   if test x"$ac_file" != x-; then
25043     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25044       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25045 echo "$as_me: $ac_file is unchanged" >&6;}
25046     else
25047       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25048 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25049          X"$ac_file" : 'X\(//\)[^/]' \| \
25050          X"$ac_file" : 'X\(//\)$' \| \
25051          X"$ac_file" : 'X\(/\)' \| \
25052          .     : '\(.\)' 2>/dev/null ||
25053 echo X"$ac_file" |
25054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25055           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25056           /^X\(\/\/\)$/{ s//\1/; q; }
25057           /^X\(\/\).*/{ s//\1/; q; }
25058           s/.*/./; q'`
25059       { if $as_mkdir_p; then
25060     mkdir -p "$ac_dir"
25061   else
25062     as_dir="$ac_dir"
25063     as_dirs=
25064     while test ! -d "$as_dir"; do
25065       as_dirs="$as_dir $as_dirs"
25066       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25068          X"$as_dir" : 'X\(//\)[^/]' \| \
25069          X"$as_dir" : 'X\(//\)$' \| \
25070          X"$as_dir" : 'X\(/\)' \| \
25071          .     : '\(.\)' 2>/dev/null ||
25072 echo X"$as_dir" |
25073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25074           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25075           /^X\(\/\/\)$/{ s//\1/; q; }
25076           /^X\(\/\).*/{ s//\1/; q; }
25077           s/.*/./; q'`
25078     done
25079     test ! -n "$as_dirs" || mkdir $as_dirs
25080   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25081 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25082    { (exit 1); exit 1; }; }; }
25083
25084       rm -f $ac_file
25085       mv $tmp/config.h $ac_file
25086     fi
25087   else
25088     cat $tmp/config.h
25089     rm -f $tmp/config.h
25090   fi
25091 done
25092 _ACEOF
25093 cat >>$CONFIG_STATUS <<\_ACEOF
25094
25095 #
25096 # CONFIG_LINKS section.
25097 #
25098
25099 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25100   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25101   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25102
25103   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25104 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25105
25106   if test ! -r $srcdir/$ac_source; then
25107     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25108 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25109    { (exit 1); exit 1; }; }
25110   fi
25111   rm -f $ac_dest
25112
25113   # Make relative symlinks.
25114   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25115 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25116          X"$ac_dest" : 'X\(//\)[^/]' \| \
25117          X"$ac_dest" : 'X\(//\)$' \| \
25118          X"$ac_dest" : 'X\(/\)' \| \
25119          .     : '\(.\)' 2>/dev/null ||
25120 echo X"$ac_dest" |
25121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25122           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25123           /^X\(\/\/\)$/{ s//\1/; q; }
25124           /^X\(\/\).*/{ s//\1/; q; }
25125           s/.*/./; q'`
25126   { if $as_mkdir_p; then
25127     mkdir -p "$ac_dest_dir"
25128   else
25129     as_dir="$ac_dest_dir"
25130     as_dirs=
25131     while test ! -d "$as_dir"; do
25132       as_dirs="$as_dir $as_dirs"
25133       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25134 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25135          X"$as_dir" : 'X\(//\)[^/]' \| \
25136          X"$as_dir" : 'X\(//\)$' \| \
25137          X"$as_dir" : 'X\(/\)' \| \
25138          .     : '\(.\)' 2>/dev/null ||
25139 echo X"$as_dir" |
25140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25141           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25142           /^X\(\/\/\)$/{ s//\1/; q; }
25143           /^X\(\/\).*/{ s//\1/; q; }
25144           s/.*/./; q'`
25145     done
25146     test ! -n "$as_dirs" || mkdir $as_dirs
25147   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25148 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25149    { (exit 1); exit 1; }; }; }
25150
25151   ac_builddir=.
25152
25153 if test "$ac_dest_dir" != .; then
25154   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25155   # A "../" for each directory in $ac_dir_suffix.
25156   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25157 else
25158   ac_dir_suffix= ac_top_builddir=
25159 fi
25160
25161 case $srcdir in
25162   .)  # No --srcdir option.  We are building in place.
25163     ac_srcdir=.
25164     if test -z "$ac_top_builddir"; then
25165        ac_top_srcdir=.
25166     else
25167        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25168     fi ;;
25169   [\\/]* | ?:[\\/]* )  # Absolute path.
25170     ac_srcdir=$srcdir$ac_dir_suffix;
25171     ac_top_srcdir=$srcdir ;;
25172   *) # Relative path.
25173     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25174     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25175 esac
25176
25177 # Do not use `cd foo && pwd` to compute absolute paths, because
25178 # the directories may not exist.
25179 case `pwd` in
25180 .) ac_abs_builddir="$ac_dest_dir";;
25181 *)
25182   case "$ac_dest_dir" in
25183   .) ac_abs_builddir=`pwd`;;
25184   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25185   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25186   esac;;
25187 esac
25188 case $ac_abs_builddir in
25189 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25190 *)
25191   case ${ac_top_builddir}. in
25192   .) ac_abs_top_builddir=$ac_abs_builddir;;
25193   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25194   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25195   esac;;
25196 esac
25197 case $ac_abs_builddir in
25198 .) ac_abs_srcdir=$ac_srcdir;;
25199 *)
25200   case $ac_srcdir in
25201   .) ac_abs_srcdir=$ac_abs_builddir;;
25202   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25203   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25204   esac;;
25205 esac
25206 case $ac_abs_builddir in
25207 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25208 *)
25209   case $ac_top_srcdir in
25210   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25211   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25212   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25213   esac;;
25214 esac
25215
25216
25217   case $srcdir in
25218   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25219       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25220   esac
25221
25222   # Try a symlink, then a hard link, then a copy.
25223   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25224     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25225     cp -p $srcdir/$ac_source $ac_dest ||
25226     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25227 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25228    { (exit 1); exit 1; }; }
25229 done
25230 _ACEOF
25231 cat >>$CONFIG_STATUS <<\_ACEOF
25232
25233 #
25234 # CONFIG_COMMANDS section.
25235 #
25236 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25237   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25238   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25239   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25240 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25241          X"$ac_dest" : 'X\(//\)[^/]' \| \
25242          X"$ac_dest" : 'X\(//\)$' \| \
25243          X"$ac_dest" : 'X\(/\)' \| \
25244          .     : '\(.\)' 2>/dev/null ||
25245 echo X"$ac_dest" |
25246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25247           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25248           /^X\(\/\/\)$/{ s//\1/; q; }
25249           /^X\(\/\).*/{ s//\1/; q; }
25250           s/.*/./; q'`
25251   { if $as_mkdir_p; then
25252     mkdir -p "$ac_dir"
25253   else
25254     as_dir="$ac_dir"
25255     as_dirs=
25256     while test ! -d "$as_dir"; do
25257       as_dirs="$as_dir $as_dirs"
25258       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25260          X"$as_dir" : 'X\(//\)[^/]' \| \
25261          X"$as_dir" : 'X\(//\)$' \| \
25262          X"$as_dir" : 'X\(/\)' \| \
25263          .     : '\(.\)' 2>/dev/null ||
25264 echo X"$as_dir" |
25265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25266           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25267           /^X\(\/\/\)$/{ s//\1/; q; }
25268           /^X\(\/\).*/{ s//\1/; q; }
25269           s/.*/./; q'`
25270     done
25271     test ! -n "$as_dirs" || mkdir $as_dirs
25272   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25273 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25274    { (exit 1); exit 1; }; }; }
25275
25276   ac_builddir=.
25277
25278 if test "$ac_dir" != .; then
25279   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25280   # A "../" for each directory in $ac_dir_suffix.
25281   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25282 else
25283   ac_dir_suffix= ac_top_builddir=
25284 fi
25285
25286 case $srcdir in
25287   .)  # No --srcdir option.  We are building in place.
25288     ac_srcdir=.
25289     if test -z "$ac_top_builddir"; then
25290        ac_top_srcdir=.
25291     else
25292        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25293     fi ;;
25294   [\\/]* | ?:[\\/]* )  # Absolute path.
25295     ac_srcdir=$srcdir$ac_dir_suffix;
25296     ac_top_srcdir=$srcdir ;;
25297   *) # Relative path.
25298     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25299     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25300 esac
25301
25302 # Do not use `cd foo && pwd` to compute absolute paths, because
25303 # the directories may not exist.
25304 case `pwd` in
25305 .) ac_abs_builddir="$ac_dir";;
25306 *)
25307   case "$ac_dir" in
25308   .) ac_abs_builddir=`pwd`;;
25309   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25310   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25311   esac;;
25312 esac
25313 case $ac_abs_builddir in
25314 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25315 *)
25316   case ${ac_top_builddir}. in
25317   .) ac_abs_top_builddir=$ac_abs_builddir;;
25318   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25319   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25320   esac;;
25321 esac
25322 case $ac_abs_builddir in
25323 .) ac_abs_srcdir=$ac_srcdir;;
25324 *)
25325   case $ac_srcdir in
25326   .) ac_abs_srcdir=$ac_abs_builddir;;
25327   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25328   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25329   esac;;
25330 esac
25331 case $ac_abs_builddir in
25332 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25333 *)
25334   case $ac_top_srcdir in
25335   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25336   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25337   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25338   esac;;
25339 esac
25340
25341
25342   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25343 echo "$as_me: executing $ac_dest commands" >&6;}
25344   case $ac_dest in
25345     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25346     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25347     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25348     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25349     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25350     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25351     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25352     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25353     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25354     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25355     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25356     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25357   esac
25358 done
25359 _ACEOF
25360
25361 cat >>$CONFIG_STATUS <<\_ACEOF
25362
25363 { (exit 0); exit 0; }
25364 _ACEOF
25365 chmod +x $CONFIG_STATUS
25366 ac_clean_files=$ac_clean_files_save
25367
25368
25369 # configure is writing to config.log, and then calls config.status.
25370 # config.status does its own redirection, appending to config.log.
25371 # Unfortunately, on DOS this fails, as config.log is still kept open
25372 # by configure, so config.status won't be able to write to it; its
25373 # output is simply discarded.  So we exec the FD to /dev/null,
25374 # effectively closing config.log, so it can be properly (re)opened and
25375 # appended to by config.status.  When coming back to configure, we
25376 # need to make the FD available again.
25377 if test "$no_create" != yes; then
25378   ac_cs_success=:
25379   ac_config_status_args=
25380   test "$silent" = yes &&
25381     ac_config_status_args="$ac_config_status_args --quiet"
25382   exec 5>/dev/null
25383   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25384   exec 5>>config.log
25385   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25386   # would make configure fail if this is the last instruction.
25387   $ac_cs_success || { (exit 1); exit 1; }
25388 fi
25389
25390 #
25391 # CONFIG_SUBDIRS section.
25392 #
25393 if test "$no_recursion" != yes; then
25394
25395   # Remove --cache-file and --srcdir arguments so they do not pile up.
25396   ac_sub_configure_args=
25397   ac_prev=
25398   for ac_arg in $ac_configure_args; do
25399     if test -n "$ac_prev"; then
25400       ac_prev=
25401       continue
25402     fi
25403     case $ac_arg in
25404     -cache-file | --cache-file | --cache-fil | --cache-fi \
25405     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25406       ac_prev=cache_file ;;
25407     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25408     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25409     | --c=*)
25410       ;;
25411     --config-cache | -C)
25412       ;;
25413     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25414       ac_prev=srcdir ;;
25415     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25416       ;;
25417     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25418       ac_prev=prefix ;;
25419     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25420       ;;
25421     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25422     esac
25423   done
25424
25425   # Always prepend --prefix to ensure using the same prefix
25426   # in subdir configurations.
25427   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25428
25429   ac_popdir=`pwd`
25430   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25431
25432     # Do not complain, so a configure script can configure whichever
25433     # parts of a large source tree are present.
25434     test -d $srcdir/$ac_dir || continue
25435
25436     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25437 echo "$as_me: configuring in $ac_dir" >&6;}
25438     { if $as_mkdir_p; then
25439     mkdir -p "$ac_dir"
25440   else
25441     as_dir="$ac_dir"
25442     as_dirs=
25443     while test ! -d "$as_dir"; do
25444       as_dirs="$as_dir $as_dirs"
25445       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25447          X"$as_dir" : 'X\(//\)[^/]' \| \
25448          X"$as_dir" : 'X\(//\)$' \| \
25449          X"$as_dir" : 'X\(/\)' \| \
25450          .     : '\(.\)' 2>/dev/null ||
25451 echo X"$as_dir" |
25452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25453           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25454           /^X\(\/\/\)$/{ s//\1/; q; }
25455           /^X\(\/\).*/{ s//\1/; q; }
25456           s/.*/./; q'`
25457     done
25458     test ! -n "$as_dirs" || mkdir $as_dirs
25459   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25460 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25461    { (exit 1); exit 1; }; }; }
25462
25463     ac_builddir=.
25464
25465 if test "$ac_dir" != .; then
25466   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25467   # A "../" for each directory in $ac_dir_suffix.
25468   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25469 else
25470   ac_dir_suffix= ac_top_builddir=
25471 fi
25472
25473 case $srcdir in
25474   .)  # No --srcdir option.  We are building in place.
25475     ac_srcdir=.
25476     if test -z "$ac_top_builddir"; then
25477        ac_top_srcdir=.
25478     else
25479        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25480     fi ;;
25481   [\\/]* | ?:[\\/]* )  # Absolute path.
25482     ac_srcdir=$srcdir$ac_dir_suffix;
25483     ac_top_srcdir=$srcdir ;;
25484   *) # Relative path.
25485     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25486     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25487 esac
25488
25489 # Do not use `cd foo && pwd` to compute absolute paths, because
25490 # the directories may not exist.
25491 case `pwd` in
25492 .) ac_abs_builddir="$ac_dir";;
25493 *)
25494   case "$ac_dir" in
25495   .) ac_abs_builddir=`pwd`;;
25496   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25497   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25498   esac;;
25499 esac
25500 case $ac_abs_builddir in
25501 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25502 *)
25503   case ${ac_top_builddir}. in
25504   .) ac_abs_top_builddir=$ac_abs_builddir;;
25505   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25506   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25507   esac;;
25508 esac
25509 case $ac_abs_builddir in
25510 .) ac_abs_srcdir=$ac_srcdir;;
25511 *)
25512   case $ac_srcdir in
25513   .) ac_abs_srcdir=$ac_abs_builddir;;
25514   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25515   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25516   esac;;
25517 esac
25518 case $ac_abs_builddir in
25519 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25520 *)
25521   case $ac_top_srcdir in
25522   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25523   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25524   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25525   esac;;
25526 esac
25527
25528
25529     cd $ac_dir
25530
25531     # Check for guested configure; otherwise get Cygnus style configure.
25532     if test -f $ac_srcdir/configure.gnu; then
25533       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25534     elif test -f $ac_srcdir/configure; then
25535       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25536     elif test -f $ac_srcdir/configure.in; then
25537       ac_sub_configure=$ac_configure
25538     else
25539       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25540 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25541       ac_sub_configure=
25542     fi
25543
25544     # The recursion is here.
25545     if test -n "$ac_sub_configure"; then
25546       # Make the cache file name correct relative to the subdirectory.
25547       case $cache_file in
25548       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25549       *) # Relative path.
25550         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25551       esac
25552
25553       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25554 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25555       # The eval makes quoting arguments work.
25556       eval $ac_sub_configure $ac_sub_configure_args \
25557            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25558         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25559 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25560    { (exit 1); exit 1; }; }
25561     fi
25562
25563     cd $ac_popdir
25564   done
25565 fi
25566
25567
25568 if test $llvmgccwarn = yes
25569 then
25570         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25571 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25572         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25573 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25574         { echo "$as_me:$LINENO: WARNING: ***** " >&5
25575 echo "$as_me: WARNING: ***** " >&2;}
25576         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25577 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25578         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25579 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25580         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25581 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25582 fi
25583