Isnan became unordered
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.3].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.3]'
426 PACKAGE_STRING='[LLVM] [1.3]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_unique_file=""Makefile.config.in""
468 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 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 INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H 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 SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
926 ac_env_CC_value=$CC
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures [LLVM] [1.3] to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013   --target=TARGET   configure for building compilers for TARGET [HOST]
1014 _ACEOF
1015 fi
1016
1017 if test -n "$ac_init_help"; then
1018   case $ac_init_help in
1019      short | recursive ) echo "Configuration of [LLVM] [1.3]:";;
1020    esac
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-shared[=PKGS]
1027                           build shared libraries [default=yes]
1028   --enable-static[=PKGS]
1029                           build static libraries [default=yes]
1030   --enable-fast-install[=PKGS]
1031                           optimize for fast installation [default=yes]
1032   --disable-libtool-lock  avoid locking (might break parallel builds)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec95=ARG     Use spec95 as a benchmark (srcs in DIR)
1035   --enable-spec2000=ARG   Use spec2000 as a benchmark (srcs in DIR)
1036   --enable-povray=ARG     Use povray as a benchmark (srcs in DIR)
1037   --enable-precompiled_bytecode
1038                           Use pre-compiled bytecode (default is NO)
1039   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-llvmgccdir       Location of LLVM GCC front-end
1051   --with-bcrepos          Location of Bytecode Repository
1052   --with-papi             Location of PAPI
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 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 [LLVM] configure [1.3]
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by [LLVM] $as_me [1.3], which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512 if test ${srcdir} != "."
1513 then
1514         if test -f ${srcdir}/include/Config/config.h
1515         then
1516                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518    { (exit 1); exit 1; }; }
1519         fi
1520 fi
1521
1522 for i in `ls ${srcdir}/projects`
1523 do
1524   if test ${i} != "CVS"
1525   then
1526     if test -f ${srcdir}/projects/${i}/configure
1527     then
1528
1529
1530 subdirs="$subdirs projects/${i}"
1531
1532     fi
1533   fi
1534 done
1535
1536           ac_config_headers="$ac_config_headers include/Config/config.h"
1537
1538           ac_config_commands="$ac_config_commands Makefile"
1539
1540
1541           ac_config_commands="$ac_config_commands Makefile.common"
1542
1543
1544           ac_config_commands="$ac_config_commands lib/Makefile"
1545
1546
1547           ac_config_commands="$ac_config_commands runtime/Makefile"
1548
1549
1550           ac_config_commands="$ac_config_commands test/Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands test/Makefile.tests"
1554
1555
1556           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557
1558
1559           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1560
1561
1562           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1566
1567
1568           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1572
1573
1574           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1575
1576
1577           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1590
1591
1592           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1596
1597
1598           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1602
1603
1604           ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1614
1615
1616           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1617
1618
1619           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1620
1621
1622           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1626
1627
1628           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1629
1630
1631           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1635
1636
1637           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1641
1642
1643           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1647
1648
1649           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1653
1654
1655           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1659
1660
1661           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1668
1669
1670           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1671
1672
1673           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands tools/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands utils/Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands projects/Makefile"
1683
1684
1685
1686 # Find a good install program.  We prefer a C program (faster),
1687 # so one script is as good as another.  But avoid the broken or
1688 # incompatible versions:
1689 # SysV /etc/install, /usr/sbin/install
1690 # SunOS /usr/etc/install
1691 # IRIX /sbin/install
1692 # AIX /bin/install
1693 # AmigaOS /C/install, which installs bootblocks on floppy discs
1694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1697 # ./install, which can be erroneously created by make from ./install.sh.
1698 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1699 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1700 if test -z "$INSTALL"; then
1701 if test "${ac_cv_path_install+set}" = set; then
1702   echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   # Account for people who put trailing slashes in PATH elements.
1710 case $as_dir/ in
1711   ./ | .// | /cC/* | \
1712   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1713   /usr/ucb/* ) ;;
1714   *)
1715     # OSF1 and SCO ODT 3.0 have their own names for install.
1716     # Don't use installbsd from OSF since it installs stuff as root
1717     # by default.
1718     for ac_prog in ginstall scoinst install; do
1719       for ac_exec_ext in '' $ac_executable_extensions; do
1720         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1721           if test $ac_prog = install &&
1722             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723             # AIX install.  It has an incompatible calling convention.
1724             :
1725           elif test $ac_prog = install &&
1726             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1727             # program-specific install script used by HP pwplus--don't use.
1728             :
1729           else
1730             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1731             break 3
1732           fi
1733         fi
1734       done
1735     done
1736     ;;
1737 esac
1738 done
1739
1740
1741 fi
1742   if test "${ac_cv_path_install+set}" = set; then
1743     INSTALL=$ac_cv_path_install
1744   else
1745     # As a last resort, use the slow shell script.  We don't cache a
1746     # path for INSTALL within a source directory, because that will
1747     # break other packages using the cache if that directory is
1748     # removed, or if the path is relative.
1749     INSTALL=$ac_install_sh
1750   fi
1751 fi
1752 echo "$as_me:$LINENO: result: $INSTALL" >&5
1753 echo "${ECHO_T}$INSTALL" >&6
1754
1755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1756 # It thinks the first close brace ends the variable substitution.
1757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1758
1759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1760
1761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1762
1763
1764 # Make sure we can run config.sub.
1765 $ac_config_sub sun4 >/dev/null 2>&1 ||
1766   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768    { (exit 1); exit 1; }; }
1769
1770 echo "$as_me:$LINENO: checking build system type" >&5
1771 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772 if test "${ac_cv_build+set}" = set; then
1773   echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775   ac_cv_build_alias=$build_alias
1776 test -z "$ac_cv_build_alias" &&
1777   ac_cv_build_alias=`$ac_config_guess`
1778 test -z "$ac_cv_build_alias" &&
1779   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781    { (exit 1); exit 1; }; }
1782 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785    { (exit 1); exit 1; }; }
1786
1787 fi
1788 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789 echo "${ECHO_T}$ac_cv_build" >&6
1790 build=$ac_cv_build
1791 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1794
1795
1796 echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1798 if test "${ac_cv_host+set}" = set; then
1799   echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801   ac_cv_host_alias=$host_alias
1802 test -z "$ac_cv_host_alias" &&
1803   ac_cv_host_alias=$ac_cv_build_alias
1804 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1805   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1806 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1807    { (exit 1); exit 1; }; }
1808
1809 fi
1810 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1811 echo "${ECHO_T}$ac_cv_host" >&6
1812 host=$ac_cv_host
1813 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1814 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1815 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1816
1817
1818 echo "$as_me:$LINENO: checking target system type" >&5
1819 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1820 if test "${ac_cv_target+set}" = set; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   ac_cv_target_alias=$target_alias
1824 test "x$ac_cv_target_alias" = "x" &&
1825   ac_cv_target_alias=$ac_cv_host_alias
1826 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1827   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1828 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1829    { (exit 1); exit 1; }; }
1830
1831 fi
1832 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1833 echo "${ECHO_T}$ac_cv_target" >&6
1834 target=$ac_cv_target
1835 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1836 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1837 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1838
1839
1840 # The aliases save the names the user supplied, while $host etc.
1841 # will get canonicalized.
1842 test -n "$target_alias" &&
1843   test "$program_prefix$program_suffix$program_transform_name" = \
1844     NONENONEs,x,x, &&
1845   program_prefix=${target_alias}-
1846
1847 case $build in
1848         *-*-linux*)
1849              OS=Linux
1850
1851                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1852                          then
1853                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1854
1855                          fi
1856                  ;;
1857         *-*-solaris*)
1858              OS=SunOS
1859
1860                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1861                          then
1862                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1863
1864                          fi
1865                  ;;
1866         *-*-cygwin*)
1867              OS=Cygwin
1868
1869                  ;;
1870         *-*-darwin*)
1871              OS=Darwin
1872
1873                  ;;
1874         *-*-aix*)
1875              OS=AIX
1876
1877                  ;;
1878         *)       OS=Unknown
1879
1880                  ;;
1881 esac
1882
1883 case $target in
1884         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1885
1886                             ;;
1887 esac
1888
1889 case $target in
1890         i*86-*)           ARCH=x86
1891
1892                           ;;
1893         sparc*-*)         ARCH=Sparc
1894
1895                           ;;
1896         powerpc*-*)       ARCH=PowerPC
1897
1898                           ;;
1899         *)                ARCH=Unknown
1900
1901                           ;;
1902 esac
1903
1904 ac_ext=cc
1905 ac_cpp='$CXXCPP $CPPFLAGS'
1906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1909 if test -n "$ac_tool_prefix"; then
1910   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1911   do
1912     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_CXX+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   if test -n "$CXX"; then
1920   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927   for ac_exec_ext in '' $ac_executable_extensions; do
1928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931     break 2
1932   fi
1933 done
1934 done
1935
1936 fi
1937 fi
1938 CXX=$ac_cv_prog_CXX
1939 if test -n "$CXX"; then
1940   echo "$as_me:$LINENO: result: $CXX" >&5
1941 echo "${ECHO_T}$CXX" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1946
1947     test -n "$CXX" && break
1948   done
1949 fi
1950 if test -z "$CXX"; then
1951   ac_ct_CXX=$CXX
1952   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1953 do
1954   # Extract the first word of "$ac_prog", so it can be a program name with args.
1955 set dummy $ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$ac_ct_CXX"; then
1962   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_ac_ct_CXX="$ac_prog"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1981 if test -n "$ac_ct_CXX"; then
1982   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1983 echo "${ECHO_T}$ac_ct_CXX" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989   test -n "$ac_ct_CXX" && break
1990 done
1991 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1992
1993   CXX=$ac_ct_CXX
1994 fi
1995
1996
1997 # Provide some information about the compiler.
1998 echo "$as_me:$LINENO:" \
1999      "checking for C++ compiler version" >&5
2000 ac_compiler=`set X $ac_compile; echo $2`
2001 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2002   (eval $ac_compiler --version </dev/null >&5) 2>&5
2003   ac_status=$?
2004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005   (exit $ac_status); }
2006 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2007   (eval $ac_compiler -v </dev/null >&5) 2>&5
2008   ac_status=$?
2009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010   (exit $ac_status); }
2011 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2012   (eval $ac_compiler -V </dev/null >&5) 2>&5
2013   ac_status=$?
2014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015   (exit $ac_status); }
2016
2017 cat >conftest.$ac_ext <<_ACEOF
2018 #line $LINENO "configure"
2019 /* confdefs.h.  */
2020 _ACEOF
2021 cat confdefs.h >>conftest.$ac_ext
2022 cat >>conftest.$ac_ext <<_ACEOF
2023 /* end confdefs.h.  */
2024
2025 int
2026 main ()
2027 {
2028
2029   ;
2030   return 0;
2031 }
2032 _ACEOF
2033 ac_clean_files_save=$ac_clean_files
2034 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2035 # Try to create an executable without -o first, disregard a.out.
2036 # It will help us diagnose broken compilers, and finding out an intuition
2037 # of exeext.
2038 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2039 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2040 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2041 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2042   (eval $ac_link_default) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; then
2046   # Find the output, starting from the most likely.  This scheme is
2047 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2048 # resort.
2049
2050 # Be careful to initialize this variable, since it used to be cached.
2051 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2052 ac_cv_exeext=
2053 # b.out is created by i960 compilers.
2054 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2055 do
2056   test -f "$ac_file" || continue
2057   case $ac_file in
2058     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2059         ;;
2060     conftest.$ac_ext )
2061         # This is the source file.
2062         ;;
2063     [ab].out )
2064         # We found the default executable, but exeext='' is most
2065         # certainly right.
2066         break;;
2067     *.* )
2068         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2069         # FIXME: I believe we export ac_cv_exeext for Libtool,
2070         # but it would be cool to find out if it's true.  Does anybody
2071         # maintain Libtool? --akim.
2072         export ac_cv_exeext
2073         break;;
2074     * )
2075         break;;
2076   esac
2077 done
2078 else
2079   echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2081
2082 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2083 See \`config.log' for more details." >&5
2084 echo "$as_me: error: C++ compiler cannot create executables
2085 See \`config.log' for more details." >&2;}
2086    { (exit 77); exit 77; }; }
2087 fi
2088
2089 ac_exeext=$ac_cv_exeext
2090 echo "$as_me:$LINENO: result: $ac_file" >&5
2091 echo "${ECHO_T}$ac_file" >&6
2092
2093 # Check the compiler produces executables we can run.  If not, either
2094 # the compiler is broken, or we cross compile.
2095 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2096 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2097 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2098 # If not cross compiling, check that we can run a simple program.
2099 if test "$cross_compiling" != yes; then
2100   if { ac_try='./$ac_file'
2101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102   (eval $ac_try) 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }; }; then
2106     cross_compiling=no
2107   else
2108     if test "$cross_compiling" = maybe; then
2109         cross_compiling=yes
2110     else
2111         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2112 If you meant to cross compile, use \`--host'.
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: cannot run C++ compiled programs.
2115 If you meant to cross compile, use \`--host'.
2116 See \`config.log' for more details." >&2;}
2117    { (exit 1); exit 1; }; }
2118     fi
2119   fi
2120 fi
2121 echo "$as_me:$LINENO: result: yes" >&5
2122 echo "${ECHO_T}yes" >&6
2123
2124 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2125 ac_clean_files=$ac_clean_files_save
2126 # Check the compiler produces executables we can run.  If not, either
2127 # the compiler is broken, or we cross compile.
2128 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2129 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2130 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2131 echo "${ECHO_T}$cross_compiling" >&6
2132
2133 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2134 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2136   (eval $ac_link) 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); }; then
2140   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2141 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2142 # work properly (i.e., refer to `conftest.exe'), while it won't with
2143 # `rm'.
2144 for ac_file in conftest.exe conftest conftest.*; do
2145   test -f "$ac_file" || continue
2146   case $ac_file in
2147     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2148     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149           export ac_cv_exeext
2150           break;;
2151     * ) break;;
2152   esac
2153 done
2154 else
2155   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2158 See \`config.log' for more details." >&2;}
2159    { (exit 1); exit 1; }; }
2160 fi
2161
2162 rm -f conftest$ac_cv_exeext
2163 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2164 echo "${ECHO_T}$ac_cv_exeext" >&6
2165
2166 rm -f conftest.$ac_ext
2167 EXEEXT=$ac_cv_exeext
2168 ac_exeext=$EXEEXT
2169 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2170 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2171 if test "${ac_cv_objext+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   cat >conftest.$ac_ext <<_ACEOF
2175 #line $LINENO "configure"
2176 /* confdefs.h.  */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h.  */
2181
2182 int
2183 main ()
2184 {
2185
2186   ;
2187   return 0;
2188 }
2189 _ACEOF
2190 rm -f conftest.o conftest.obj
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192   (eval $ac_compile) 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); }; then
2196   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2197   case $ac_file in
2198     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2199     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2200        break;;
2201   esac
2202 done
2203 else
2204   echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2206
2207 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2210 See \`config.log' for more details." >&2;}
2211    { (exit 1); exit 1; }; }
2212 fi
2213
2214 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2215 fi
2216 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2217 echo "${ECHO_T}$ac_cv_objext" >&6
2218 OBJEXT=$ac_cv_objext
2219 ac_objext=$OBJEXT
2220 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2221 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2222 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   cat >conftest.$ac_ext <<_ACEOF
2226 #line $LINENO "configure"
2227 /* confdefs.h.  */
2228 _ACEOF
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h.  */
2232
2233 int
2234 main ()
2235 {
2236 #ifndef __GNUC__
2237        choke me
2238 #endif
2239
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 rm -f conftest.$ac_objext
2245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246   (eval $ac_compile) 2>&5
2247   ac_status=$?
2248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249   (exit $ac_status); } &&
2250          { ac_try='test -s conftest.$ac_objext'
2251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252   (eval $ac_try) 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; }; then
2256   ac_compiler_gnu=yes
2257 else
2258   echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2260
2261 ac_compiler_gnu=no
2262 fi
2263 rm -f conftest.$ac_objext conftest.$ac_ext
2264 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2265
2266 fi
2267 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2268 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2269 GXX=`test $ac_compiler_gnu = yes && echo yes`
2270 ac_test_CXXFLAGS=${CXXFLAGS+set}
2271 ac_save_CXXFLAGS=$CXXFLAGS
2272 CXXFLAGS="-g"
2273 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2274 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2275 if test "${ac_cv_prog_cxx_g+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   cat >conftest.$ac_ext <<_ACEOF
2279 #line $LINENO "configure"
2280 /* confdefs.h.  */
2281 _ACEOF
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h.  */
2285
2286 int
2287 main ()
2288 {
2289
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296   (eval $ac_compile) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); } &&
2300          { ac_try='test -s conftest.$ac_objext'
2301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302   (eval $ac_try) 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); }; }; then
2306   ac_cv_prog_cxx_g=yes
2307 else
2308   echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2310
2311 ac_cv_prog_cxx_g=no
2312 fi
2313 rm -f conftest.$ac_objext conftest.$ac_ext
2314 fi
2315 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2316 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2317 if test "$ac_test_CXXFLAGS" = set; then
2318   CXXFLAGS=$ac_save_CXXFLAGS
2319 elif test $ac_cv_prog_cxx_g = yes; then
2320   if test "$GXX" = yes; then
2321     CXXFLAGS="-g -O2"
2322   else
2323     CXXFLAGS="-g"
2324   fi
2325 else
2326   if test "$GXX" = yes; then
2327     CXXFLAGS="-O2"
2328   else
2329     CXXFLAGS=
2330   fi
2331 fi
2332 for ac_declaration in \
2333    ''\
2334    '#include <stdlib.h>' \
2335    'extern "C" void std::exit (int) throw (); using std::exit;' \
2336    'extern "C" void std::exit (int); using std::exit;' \
2337    'extern "C" void exit (int) throw ();' \
2338    'extern "C" void exit (int);' \
2339    'void exit (int);'
2340 do
2341   cat >conftest.$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2343 /* confdefs.h.  */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h.  */
2348 #include <stdlib.h>
2349 $ac_declaration
2350 int
2351 main ()
2352 {
2353 exit (42);
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360   (eval $ac_compile) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); } &&
2364          { ac_try='test -s conftest.$ac_objext'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; }; then
2370   :
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 continue
2376 fi
2377 rm -f conftest.$ac_objext conftest.$ac_ext
2378   cat >conftest.$ac_ext <<_ACEOF
2379 #line $LINENO "configure"
2380 /* confdefs.h.  */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h.  */
2385 $ac_declaration
2386 int
2387 main ()
2388 {
2389 exit (42);
2390   ;
2391   return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396   (eval $ac_compile) 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   break
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411 fi
2412 rm -f conftest.$ac_objext conftest.$ac_ext
2413 done
2414 rm -f conftest*
2415 if test -n "$ac_declaration"; then
2416   echo '#ifdef __cplusplus' >>confdefs.h
2417   echo $ac_declaration      >>confdefs.h
2418   echo '#endif'             >>confdefs.h
2419 fi
2420
2421 ac_ext=c
2422 ac_cpp='$CPP $CPPFLAGS'
2423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426
2427 ac_ext=c
2428 ac_cpp='$CPP $CPPFLAGS'
2429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432 if test -n "$ac_tool_prefix"; then
2433   for ac_prog in gcc
2434   do
2435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2437 echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$CC"; then
2443   ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458
2459 fi
2460 fi
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463   echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6
2465 else
2466   echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6
2468 fi
2469
2470     test -n "$CC" && break
2471   done
2472 fi
2473 if test -z "$CC"; then
2474   ac_ct_CC=$CC
2475   for ac_prog in gcc
2476 do
2477   # Extract the first word of "$ac_prog", so it can be a program name with args.
2478 set dummy $ac_prog; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482   echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484   if test -n "$ac_ct_CC"; then
2485   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492   for ac_exec_ext in '' $ac_executable_extensions; do
2493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494     ac_cv_prog_ac_ct_CC="$ac_prog"
2495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496     break 2
2497   fi
2498 done
2499 done
2500
2501 fi
2502 fi
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6
2507 else
2508   echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2510 fi
2511
2512   test -n "$ac_ct_CC" && break
2513 done
2514
2515   CC=$ac_ct_CC
2516 fi
2517
2518
2519 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: no acceptable C compiler found in \$PATH
2522 See \`config.log' for more details." >&2;}
2523    { (exit 1); exit 1; }; }
2524
2525 # Provide some information about the compiler.
2526 echo "$as_me:$LINENO:" \
2527      "checking for C compiler version" >&5
2528 ac_compiler=`set X $ac_compile; echo $2`
2529 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2530   (eval $ac_compiler --version </dev/null >&5) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }
2534 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2535   (eval $ac_compiler -v </dev/null >&5) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }
2539 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2540   (eval $ac_compiler -V </dev/null >&5) 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }
2544
2545 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2546 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2547 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2548   echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550   cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 /* confdefs.h.  */
2553 _ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h.  */
2557
2558 int
2559 main ()
2560 {
2561 #ifndef __GNUC__
2562        choke me
2563 #endif
2564
2565   ;
2566   return 0;
2567 }
2568 _ACEOF
2569 rm -f conftest.$ac_objext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571   (eval $ac_compile) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); } &&
2575          { ac_try='test -s conftest.$ac_objext'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; }; then
2581   ac_compiler_gnu=yes
2582 else
2583   echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2585
2586 ac_compiler_gnu=no
2587 fi
2588 rm -f conftest.$ac_objext conftest.$ac_ext
2589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2590
2591 fi
2592 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2593 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2594 GCC=`test $ac_compiler_gnu = yes && echo yes`
2595 ac_test_CFLAGS=${CFLAGS+set}
2596 ac_save_CFLAGS=$CFLAGS
2597 CFLAGS="-g"
2598 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2599 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2600 if test "${ac_cv_prog_cc_g+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   cat >conftest.$ac_ext <<_ACEOF
2604 #line $LINENO "configure"
2605 /* confdefs.h.  */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h.  */
2610
2611 int
2612 main ()
2613 {
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621   (eval $ac_compile) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; }; then
2631   ac_cv_prog_cc_g=yes
2632 else
2633   echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636 ac_cv_prog_cc_g=no
2637 fi
2638 rm -f conftest.$ac_objext conftest.$ac_ext
2639 fi
2640 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2641 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2642 if test "$ac_test_CFLAGS" = set; then
2643   CFLAGS=$ac_save_CFLAGS
2644 elif test $ac_cv_prog_cc_g = yes; then
2645   if test "$GCC" = yes; then
2646     CFLAGS="-g -O2"
2647   else
2648     CFLAGS="-g"
2649   fi
2650 else
2651   if test "$GCC" = yes; then
2652     CFLAGS="-O2"
2653   else
2654     CFLAGS=
2655   fi
2656 fi
2657 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2658 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2659 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2660   echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662   ac_cv_prog_cc_stdc=no
2663 ac_save_CC=$CC
2664 cat >conftest.$ac_ext <<_ACEOF
2665 #line $LINENO "configure"
2666 /* confdefs.h.  */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h.  */
2671 #include <stdarg.h>
2672 #include <stdio.h>
2673 #include <sys/types.h>
2674 #include <sys/stat.h>
2675 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2676 struct buf { int x; };
2677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2678 static char *e (p, i)
2679      char **p;
2680      int i;
2681 {
2682   return p[i];
2683 }
2684 static char *f (char * (*g) (char **, int), char **p, ...)
2685 {
2686   char *s;
2687   va_list v;
2688   va_start (v,p);
2689   s = g (p, va_arg (v,int));
2690   va_end (v);
2691   return s;
2692 }
2693 int test (int i, double x);
2694 struct s1 {int (*f) (int a);};
2695 struct s2 {int (*f) (double a);};
2696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2697 int argc;
2698 char **argv;
2699 int
2700 main ()
2701 {
2702 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 # Don't try gcc -ansi; that turns off useful extensions and
2708 # breaks some systems' header files.
2709 # AIX                   -qlanglvl=ansi
2710 # Ultrix and OSF/1      -std1
2711 # HP-UX 10.20 and later -Ae
2712 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2713 # SVR4                  -Xc -D__EXTENSIONS__
2714 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2715 do
2716   CC="$ac_save_CC $ac_arg"
2717   rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719   (eval $ac_compile) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); } &&
2723          { ac_try='test -s conftest.$ac_objext'
2724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725   (eval $ac_try) 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }; }; then
2729   ac_cv_prog_cc_stdc=$ac_arg
2730 break
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 fi
2736 rm -f conftest.$ac_objext
2737 done
2738 rm -f conftest.$ac_ext conftest.$ac_objext
2739 CC=$ac_save_CC
2740
2741 fi
2742
2743 case "x$ac_cv_prog_cc_stdc" in
2744   x|xno)
2745     echo "$as_me:$LINENO: result: none needed" >&5
2746 echo "${ECHO_T}none needed" >&6 ;;
2747   *)
2748     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2749 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2750     CC="$CC $ac_cv_prog_cc_stdc" ;;
2751 esac
2752
2753 # Some people use a C++ compiler to compile C.  Since we use `exit',
2754 # in C++ we need to declare it.  In case someone uses the same compiler
2755 # for both compiling C and C++ we need to have the C++ compiler decide
2756 # the declaration of exit, since it's the most demanding environment.
2757 cat >conftest.$ac_ext <<_ACEOF
2758 #ifndef __cplusplus
2759   choke me
2760 #endif
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764   (eval $ac_compile) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } &&
2768          { ac_try='test -s conftest.$ac_objext'
2769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770   (eval $ac_try) 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }; }; then
2774   for ac_declaration in \
2775    ''\
2776    '#include <stdlib.h>' \
2777    'extern "C" void std::exit (int) throw (); using std::exit;' \
2778    'extern "C" void std::exit (int); using std::exit;' \
2779    'extern "C" void exit (int) throw ();' \
2780    'extern "C" void exit (int);' \
2781    'void exit (int);'
2782 do
2783   cat >conftest.$ac_ext <<_ACEOF
2784 #line $LINENO "configure"
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790 #include <stdlib.h>
2791 $ac_declaration
2792 int
2793 main ()
2794 {
2795 exit (42);
2796   ;
2797   return 0;
2798 }
2799 _ACEOF
2800 rm -f conftest.$ac_objext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802   (eval $ac_compile) 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } &&
2806          { ac_try='test -s conftest.$ac_objext'
2807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808   (eval $ac_try) 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; }; then
2812   :
2813 else
2814   echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817 continue
2818 fi
2819 rm -f conftest.$ac_objext conftest.$ac_ext
2820   cat >conftest.$ac_ext <<_ACEOF
2821 #line $LINENO "configure"
2822 /* confdefs.h.  */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h.  */
2827 $ac_declaration
2828 int
2829 main ()
2830 {
2831 exit (42);
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838   (eval $ac_compile) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); } &&
2842          { ac_try='test -s conftest.$ac_objext'
2843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844   (eval $ac_try) 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; }; then
2848   break
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 fi
2854 rm -f conftest.$ac_objext conftest.$ac_ext
2855 done
2856 rm -f conftest*
2857 if test -n "$ac_declaration"; then
2858   echo '#ifdef __cplusplus' >>confdefs.h
2859   echo $ac_declaration      >>confdefs.h
2860   echo '#endif'             >>confdefs.h
2861 fi
2862
2863 else
2864   echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867 fi
2868 rm -f conftest.$ac_objext conftest.$ac_ext
2869 ac_ext=c
2870 ac_cpp='$CPP $CPPFLAGS'
2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874
2875 ac_ext=c
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2884   CPP=
2885 fi
2886 if test -z "$CPP"; then
2887   if test "${ac_cv_prog_CPP+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890       # Double quotes because CPP needs to be expanded
2891     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2892     do
2893       ac_preproc_ok=false
2894 for ac_c_preproc_warn_flag in '' yes
2895 do
2896   # Use a header file that comes with gcc, so configuring glibc
2897   # with a fresh cross-compiler works.
2898   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2899   # <limits.h> exists even on freestanding compilers.
2900   # On the NeXT, cc -E runs the code through the compiler's parser,
2901   # not just through cpp. "Syntax error" is here to catch this case.
2902   cat >conftest.$ac_ext <<_ACEOF
2903 #line $LINENO "configure"
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 #ifdef __STDC__
2910 # include <limits.h>
2911 #else
2912 # include <assert.h>
2913 #endif
2914                      Syntax error
2915 _ACEOF
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918   ac_status=$?
2919   grep -v '^ *+' conftest.er1 >conftest.err
2920   rm -f conftest.er1
2921   cat conftest.err >&5
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); } >/dev/null; then
2924   if test -s conftest.err; then
2925     ac_cpp_err=$ac_c_preproc_warn_flag
2926   else
2927     ac_cpp_err=
2928   fi
2929 else
2930   ac_cpp_err=yes
2931 fi
2932 if test -z "$ac_cpp_err"; then
2933   :
2934 else
2935   echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2937
2938   # Broken: fails on valid input.
2939 continue
2940 fi
2941 rm -f conftest.err conftest.$ac_ext
2942
2943   # OK, works on sane cases.  Now check whether non-existent headers
2944   # can be detected and how.
2945   cat >conftest.$ac_ext <<_ACEOF
2946 #line $LINENO "configure"
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952 #include <ac_nonexistent.h>
2953 _ACEOF
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } >/dev/null; then
2962   if test -s conftest.err; then
2963     ac_cpp_err=$ac_c_preproc_warn_flag
2964   else
2965     ac_cpp_err=
2966   fi
2967 else
2968   ac_cpp_err=yes
2969 fi
2970 if test -z "$ac_cpp_err"; then
2971   # Broken: success on invalid input.
2972 continue
2973 else
2974   echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977   # Passes both tests.
2978 ac_preproc_ok=:
2979 break
2980 fi
2981 rm -f conftest.err conftest.$ac_ext
2982
2983 done
2984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2985 rm -f conftest.err conftest.$ac_ext
2986 if $ac_preproc_ok; then
2987   break
2988 fi
2989
2990     done
2991     ac_cv_prog_CPP=$CPP
2992
2993 fi
2994   CPP=$ac_cv_prog_CPP
2995 else
2996   ac_cv_prog_CPP=$CPP
2997 fi
2998 echo "$as_me:$LINENO: result: $CPP" >&5
2999 echo "${ECHO_T}$CPP" >&6
3000 ac_preproc_ok=false
3001 for ac_c_preproc_warn_flag in '' yes
3002 do
3003   # Use a header file that comes with gcc, so configuring glibc
3004   # with a fresh cross-compiler works.
3005   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006   # <limits.h> exists even on freestanding compilers.
3007   # On the NeXT, cc -E runs the code through the compiler's parser,
3008   # not just through cpp. "Syntax error" is here to catch this case.
3009   cat >conftest.$ac_ext <<_ACEOF
3010 #line $LINENO "configure"
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016 #ifdef __STDC__
3017 # include <limits.h>
3018 #else
3019 # include <assert.h>
3020 #endif
3021                      Syntax error
3022 _ACEOF
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } >/dev/null; then
3031   if test -s conftest.err; then
3032     ac_cpp_err=$ac_c_preproc_warn_flag
3033   else
3034     ac_cpp_err=
3035   fi
3036 else
3037   ac_cpp_err=yes
3038 fi
3039 if test -z "$ac_cpp_err"; then
3040   :
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045   # Broken: fails on valid input.
3046 continue
3047 fi
3048 rm -f conftest.err conftest.$ac_ext
3049
3050   # OK, works on sane cases.  Now check whether non-existent headers
3051   # can be detected and how.
3052   cat >conftest.$ac_ext <<_ACEOF
3053 #line $LINENO "configure"
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059 #include <ac_nonexistent.h>
3060 _ACEOF
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063   ac_status=$?
3064   grep -v '^ *+' conftest.er1 >conftest.err
3065   rm -f conftest.er1
3066   cat conftest.err >&5
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } >/dev/null; then
3069   if test -s conftest.err; then
3070     ac_cpp_err=$ac_c_preproc_warn_flag
3071   else
3072     ac_cpp_err=
3073   fi
3074 else
3075   ac_cpp_err=yes
3076 fi
3077 if test -z "$ac_cpp_err"; then
3078   # Broken: success on invalid input.
3079 continue
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084   # Passes both tests.
3085 ac_preproc_ok=:
3086 break
3087 fi
3088 rm -f conftest.err conftest.$ac_ext
3089
3090 done
3091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092 rm -f conftest.err conftest.$ac_ext
3093 if $ac_preproc_ok; then
3094   :
3095 else
3096   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3099 See \`config.log' for more details." >&2;}
3100    { (exit 1); exit 1; }; }
3101 fi
3102
3103 ac_ext=c
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108
3109
3110 if test "$GCC" != "yes"
3111 then
3112         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3113 echo "$as_me: error: gcc required but not found" >&2;}
3114    { (exit 1); exit 1; }; }
3115 fi
3116 if test "$GXX" != "yes"
3117 then
3118         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3119 echo "$as_me: error: g++ required but not found" >&2;}
3120    { (exit 1); exit 1; }; }
3121 fi
3122
3123 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3124 if test "$gccmajor" -lt "3"
3125 then
3126         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3127 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3128    { (exit 1); exit 1; }; }
3129 fi
3130
3131  echo "$as_me:$LINENO: checking for GNU make" >&5
3132 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3133 if test "${_cv_gnu_make_command+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136   _cv_gnu_make_command='' ;
3137                 for a in "$MAKE" make gmake gnumake ; do
3138                         if test -z "$a" ; then continue ; fi ;
3139                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3140                                 _cv_gnu_make_command=$a ;
3141                                 break;
3142                         fi
3143                 done ;
3144
3145 fi
3146 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3147 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3148         if test  "x$_cv_gnu_make_command" != "x"  ; then
3149                 ifGNUmake='' ;
3150         else
3151                 ifGNUmake='#' ;
3152                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3153 echo "${ECHO_T}\"Not found\"" >&6;
3154         fi
3155
3156
3157 if test -z "$_cv_gnu_make_command"
3158 then
3159         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3160 echo "$as_me: error: GNU Make required but not found" >&2;}
3161    { (exit 1); exit 1; }; }
3162 fi
3163
3164
3165 echo "$as_me:$LINENO: checking " >&5
3166 echo $ECHO_N "checking ... $ECHO_C" >&6
3167 if test "${ac_cv_has_flex+set}" = set; then
3168   echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170   for ac_prog in flex lex
3171 do
3172   # Extract the first word of "$ac_prog", so it can be a program name with args.
3173 set dummy $ac_prog; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_LEX+set}" = set; then
3177   echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179   if test -n "$LEX"; then
3180   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185   IFS=$as_save_IFS
3186   test -z "$as_dir" && as_dir=.
3187   for ac_exec_ext in '' $ac_executable_extensions; do
3188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189     ac_cv_prog_LEX="$ac_prog"
3190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191     break 2
3192   fi
3193 done
3194 done
3195
3196 fi
3197 fi
3198 LEX=$ac_cv_prog_LEX
3199 if test -n "$LEX"; then
3200   echo "$as_me:$LINENO: result: $LEX" >&5
3201 echo "${ECHO_T}$LEX" >&6
3202 else
3203   echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 fi
3206
3207   test -n "$LEX" && break
3208 done
3209 test -n "$LEX" || LEX=":"
3210
3211 if test -z "$LEXLIB"
3212 then
3213   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3214 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3215 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   ac_check_lib_save_LIBS=$LIBS
3219 LIBS="-lfl  $LIBS"
3220 cat >conftest.$ac_ext <<_ACEOF
3221 #line $LINENO "configure"
3222 /* confdefs.h.  */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h.  */
3227
3228 /* Override any gcc2 internal prototype to avoid an error.  */
3229 #ifdef __cplusplus
3230 extern "C"
3231 #endif
3232 /* We use char because int might match the return type of a gcc2
3233    builtin and then its argument prototype would still apply.  */
3234 char yywrap ();
3235 int
3236 main ()
3237 {
3238 yywrap ();
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 rm -f conftest.$ac_objext conftest$ac_exeext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3245   (eval $ac_link) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); } &&
3249          { ac_try='test -s conftest$ac_exeext'
3250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251   (eval $ac_try) 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   ac_cv_lib_fl_yywrap=yes
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 ac_cv_lib_fl_yywrap=no
3261 fi
3262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3263 LIBS=$ac_check_lib_save_LIBS
3264 fi
3265 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3266 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3267 if test $ac_cv_lib_fl_yywrap = yes; then
3268   LEXLIB="-lfl"
3269 else
3270   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3271 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3272 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   ac_check_lib_save_LIBS=$LIBS
3276 LIBS="-ll  $LIBS"
3277 cat >conftest.$ac_ext <<_ACEOF
3278 #line $LINENO "configure"
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284
3285 /* Override any gcc2 internal prototype to avoid an error.  */
3286 #ifdef __cplusplus
3287 extern "C"
3288 #endif
3289 /* We use char because int might match the return type of a gcc2
3290    builtin and then its argument prototype would still apply.  */
3291 char yywrap ();
3292 int
3293 main ()
3294 {
3295 yywrap ();
3296   ;
3297   return 0;
3298 }
3299 _ACEOF
3300 rm -f conftest.$ac_objext conftest$ac_exeext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3302   (eval $ac_link) 2>&5
3303   ac_status=$?
3304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305   (exit $ac_status); } &&
3306          { ac_try='test -s conftest$ac_exeext'
3307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308   (eval $ac_try) 2>&5
3309   ac_status=$?
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); }; }; then
3312   ac_cv_lib_l_yywrap=yes
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317 ac_cv_lib_l_yywrap=no
3318 fi
3319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3320 LIBS=$ac_check_lib_save_LIBS
3321 fi
3322 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3323 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3324 if test $ac_cv_lib_l_yywrap = yes; then
3325   LEXLIB="-ll"
3326 fi
3327
3328 fi
3329
3330 fi
3331
3332 if test "x$LEX" != "x:"; then
3333   echo "$as_me:$LINENO: checking lex output file root" >&5
3334 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3335 if test "${ac_cv_prog_lex_root+set}" = set; then
3336   echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338   # The minimal lex program is just a single line: %%.  But some broken lexes
3339 # (Solaris, I think it was) want two %% lines, so accommodate them.
3340 cat >conftest.l <<_ACEOF
3341 %%
3342 %%
3343 _ACEOF
3344 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3345   (eval $LEX conftest.l) 2>&5
3346   ac_status=$?
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }
3349 if test -f lex.yy.c; then
3350   ac_cv_prog_lex_root=lex.yy
3351 elif test -f lexyy.c; then
3352   ac_cv_prog_lex_root=lexyy
3353 else
3354   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3355 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3356    { (exit 1); exit 1; }; }
3357 fi
3358 fi
3359 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3360 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3361 rm -f conftest.l
3362 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3363
3364 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3365 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3366 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   # POSIX says lex can declare yytext either as a pointer or an array; the
3370 # default is implementation-dependent. Figure out which it is, since
3371 # not all implementations provide the %pointer and %array declarations.
3372 ac_cv_prog_lex_yytext_pointer=no
3373 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3374 ac_save_LIBS=$LIBS
3375 LIBS="$LIBS $LEXLIB"
3376 cat >conftest.$ac_ext <<_ACEOF
3377 `cat $LEX_OUTPUT_ROOT.c`
3378 _ACEOF
3379 rm -f conftest.$ac_objext conftest$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381   (eval $ac_link) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } &&
3385          { ac_try='test -s conftest$ac_exeext'
3386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387   (eval $ac_try) 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; }; then
3391   ac_cv_prog_lex_yytext_pointer=yes
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 fi
3397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3398 LIBS=$ac_save_LIBS
3399 rm -f "${LEX_OUTPUT_ROOT}.c"
3400
3401 fi
3402 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3403 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3404 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3405
3406 cat >>confdefs.h <<\_ACEOF
3407 #define YYTEXT_POINTER 1
3408 _ACEOF
3409
3410 fi
3411
3412 fi
3413
3414 fi
3415 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3416 echo "${ECHO_T}$ac_cv_has_flex" >&6
3417 if test "$LEX" != "flex"; then
3418   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3419 echo "$as_me: error: flex not found but required" >&2;}
3420    { (exit 1); exit 1; }; }
3421 fi
3422
3423 echo "$as_me:$LINENO: checking " >&5
3424 echo $ECHO_N "checking ... $ECHO_C" >&6
3425 if test "${ac_cv_has_bison+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   for ac_prog in 'bison -y' byacc
3429 do
3430   # Extract the first word of "$ac_prog", so it can be a program name with args.
3431 set dummy $ac_prog; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_prog_YACC+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   if test -n "$YACC"; then
3438   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3439 else
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445   for ac_exec_ext in '' $ac_executable_extensions; do
3446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447     ac_cv_prog_YACC="$ac_prog"
3448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449     break 2
3450   fi
3451 done
3452 done
3453
3454 fi
3455 fi
3456 YACC=$ac_cv_prog_YACC
3457 if test -n "$YACC"; then
3458   echo "$as_me:$LINENO: result: $YACC" >&5
3459 echo "${ECHO_T}$YACC" >&6
3460 else
3461   echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3463 fi
3464
3465   test -n "$YACC" && break
3466 done
3467 test -n "$YACC" || YACC="yacc"
3468
3469
3470 fi
3471 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3472 echo "${ECHO_T}$ac_cv_has_bison" >&6
3473 if test "$YACC" != "bison -y"; then
3474   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3475 echo "$as_me: error: bison not found but required" >&2;}
3476    { (exit 1); exit 1; }; }
3477 else
3478   BISON=bison
3479
3480 fi
3481
3482 # Check whether --enable-shared or --disable-shared was given.
3483 if test "${enable_shared+set}" = set; then
3484   enableval="$enable_shared"
3485   p=${PACKAGE-default}
3486     case $enableval in
3487     yes) enable_shared=yes ;;
3488     no) enable_shared=no ;;
3489     *)
3490       enable_shared=no
3491       # Look at the argument we got.  We use all the common list separators.
3492       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3493       for pkg in $enableval; do
3494         IFS="$lt_save_ifs"
3495         if test "X$pkg" = "X$p"; then
3496           enable_shared=yes
3497         fi
3498       done
3499       IFS="$lt_save_ifs"
3500       ;;
3501     esac
3502 else
3503   enable_shared=yes
3504 fi;
3505
3506 # Check whether --enable-static or --disable-static was given.
3507 if test "${enable_static+set}" = set; then
3508   enableval="$enable_static"
3509   p=${PACKAGE-default}
3510     case $enableval in
3511     yes) enable_static=yes ;;
3512     no) enable_static=no ;;
3513     *)
3514      enable_static=no
3515       # Look at the argument we got.  We use all the common list separators.
3516       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3517       for pkg in $enableval; do
3518         IFS="$lt_save_ifs"
3519         if test "X$pkg" = "X$p"; then
3520           enable_static=yes
3521         fi
3522       done
3523       IFS="$lt_save_ifs"
3524       ;;
3525     esac
3526 else
3527   enable_static=yes
3528 fi;
3529
3530 # Check whether --enable-fast-install or --disable-fast-install was given.
3531 if test "${enable_fast_install+set}" = set; then
3532   enableval="$enable_fast_install"
3533   p=${PACKAGE-default}
3534     case $enableval in
3535     yes) enable_fast_install=yes ;;
3536     no) enable_fast_install=no ;;
3537     *)
3538       enable_fast_install=no
3539       # Look at the argument we got.  We use all the common list separators.
3540       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3541       for pkg in $enableval; do
3542         IFS="$lt_save_ifs"
3543         if test "X$pkg" = "X$p"; then
3544           enable_fast_install=yes
3545         fi
3546       done
3547       IFS="$lt_save_ifs"
3548       ;;
3549     esac
3550 else
3551   enable_fast_install=yes
3552 fi;
3553
3554 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3555 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3556 if test "${lt_cv_path_SED+set}" = set; then
3557   echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559   # Loop through the user's path and test for sed and gsed.
3560 # Then use that list of sed's as ones to test for truncation.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566   for lt_ac_prog in sed gsed; do
3567     for ac_exec_ext in '' $ac_executable_extensions; do
3568       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3569         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3570       fi
3571     done
3572   done
3573 done
3574 lt_ac_max=0
3575 lt_ac_count=0
3576 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3577 # along with /bin/sed that truncates output.
3578 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3579   test ! -f $lt_ac_sed && break
3580   cat /dev/null > conftest.in
3581   lt_ac_count=0
3582   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3583   # Check for GNU sed and select it if it is found.
3584   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3585     lt_cv_path_SED=$lt_ac_sed
3586     break
3587   fi
3588   while true; do
3589     cat conftest.in conftest.in >conftest.tmp
3590     mv conftest.tmp conftest.in
3591     cp conftest.in conftest.nl
3592     echo >>conftest.nl
3593     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3594     cmp -s conftest.out conftest.nl || break
3595     # 10000 chars as input seems more than enough
3596     test $lt_ac_count -gt 10 && break
3597     lt_ac_count=`expr $lt_ac_count + 1`
3598     if test $lt_ac_count -gt $lt_ac_max; then
3599       lt_ac_max=$lt_ac_count
3600       lt_cv_path_SED=$lt_ac_sed
3601     fi
3602   done
3603 done
3604 SED=$lt_cv_path_SED
3605
3606 fi
3607
3608 echo "$as_me:$LINENO: result: $SED" >&5
3609 echo "${ECHO_T}$SED" >&6
3610
3611 echo "$as_me:$LINENO: checking for egrep" >&5
3612 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3613 if test "${ac_cv_prog_egrep+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3617     then ac_cv_prog_egrep='grep -E'
3618     else ac_cv_prog_egrep='egrep'
3619     fi
3620 fi
3621 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3622 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3623  EGREP=$ac_cv_prog_egrep
3624
3625
3626
3627 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3628 if test "${with_gnu_ld+set}" = set; then
3629   withval="$with_gnu_ld"
3630   test "$withval" = no || with_gnu_ld=yes
3631 else
3632   with_gnu_ld=no
3633 fi;
3634 ac_prog=ld
3635 if test "$GCC" = yes; then
3636   # Check if gcc -print-prog-name=ld gives a path.
3637   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3638 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3639   case $host in
3640   *-*-mingw*)
3641     # gcc leaves a trailing carriage return which upsets mingw
3642     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3643   *)
3644     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3645   esac
3646   case $ac_prog in
3647     # Accept absolute paths.
3648     [\\/]* | ?:[\\/]*)
3649       re_direlt='/[^/][^/]*/\.\./'
3650       # Canonicalize the path of ld
3651       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3652       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3653         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3654       done
3655       test -z "$LD" && LD="$ac_prog"
3656       ;;
3657   "")
3658     # If it fails, then pretend we aren't using GCC.
3659     ac_prog=ld
3660     ;;
3661   *)
3662     # If it is relative, then search for the first ld in PATH.
3663     with_gnu_ld=unknown
3664     ;;
3665   esac
3666 elif test "$with_gnu_ld" = yes; then
3667   echo "$as_me:$LINENO: checking for GNU ld" >&5
3668 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3669 else
3670   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3671 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3672 fi
3673 if test "${lt_cv_path_LD+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   if test -z "$LD"; then
3677   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3678   for ac_dir in $PATH; do
3679     IFS="$lt_save_ifs"
3680     test -z "$ac_dir" && ac_dir=.
3681     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3682       lt_cv_path_LD="$ac_dir/$ac_prog"
3683       # Check to see if the program is GNU ld.  I'd rather use --version,
3684       # but apparently some GNU ld's only accept -v.
3685       # Break only if it was the GNU/non-GNU ld that we prefer.
3686       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3687       *GNU* | *'with BFD'*)
3688         test "$with_gnu_ld" != no && break
3689         ;;
3690       *)
3691         test "$with_gnu_ld" != yes && break
3692         ;;
3693       esac
3694     fi
3695   done
3696   IFS="$lt_save_ifs"
3697 else
3698   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3699 fi
3700 fi
3701
3702 LD="$lt_cv_path_LD"
3703 if test -n "$LD"; then
3704   echo "$as_me:$LINENO: result: $LD" >&5
3705 echo "${ECHO_T}$LD" >&6
3706 else
3707   echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3709 fi
3710 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3711 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3712    { (exit 1); exit 1; }; }
3713 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3714 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3715 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3716   echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3719 case `"$LD" -v 2>&1 </dev/null` in
3720 *GNU* | *'with BFD'*)
3721   lt_cv_prog_gnu_ld=yes
3722   ;;
3723 *)
3724   lt_cv_prog_gnu_ld=no
3725   ;;
3726 esac
3727 fi
3728 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3729 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3730 with_gnu_ld=$lt_cv_prog_gnu_ld
3731
3732
3733 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3734 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3735 if test "${lt_cv_ld_reload_flag+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   lt_cv_ld_reload_flag='-r'
3739 fi
3740 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3741 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3742 reload_flag=$lt_cv_ld_reload_flag
3743 case $reload_flag in
3744 "" | " "*) ;;
3745 *) reload_flag=" $reload_flag" ;;
3746 esac
3747 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3748
3749 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3750 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3751 if test "${lt_cv_path_NM+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   if test -n "$NM"; then
3755   # Let the user override the test.
3756   lt_cv_path_NM="$NM"
3757 else
3758   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3759   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3760     IFS="$lt_save_ifs"
3761     test -z "$ac_dir" && ac_dir=.
3762     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3763     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3764       # Check to see if the nm accepts a BSD-compat flag.
3765       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3766       #   nm: unknown option "B" ignored
3767       # Tru64's nm complains that /dev/null is an invalid object file
3768       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3769       */dev/null* | *'Invalid file or object type'*)
3770         lt_cv_path_NM="$tmp_nm -B"
3771         break
3772         ;;
3773       *)
3774         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3775         */dev/null*)
3776           lt_cv_path_NM="$tmp_nm -p"
3777           break
3778           ;;
3779         *)
3780           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3781           continue # so that we can try to find one that supports BSD flags
3782           ;;
3783         esac
3784       esac
3785     fi
3786   done
3787   IFS="$lt_save_ifs"
3788   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3789 fi
3790 fi
3791 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3792 echo "${ECHO_T}$lt_cv_path_NM" >&6
3793 NM="$lt_cv_path_NM"
3794
3795 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3796 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3797 LN_S=$as_ln_s
3798 if test "$LN_S" = "ln -s"; then
3799   echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6
3801 else
3802   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3803 echo "${ECHO_T}no, using $LN_S" >&6
3804 fi
3805
3806 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3807 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3808 if test "${lt_cv_deplibs_check_method+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   lt_cv_file_magic_cmd='$MAGIC_CMD'
3812 lt_cv_file_magic_test_file=
3813 lt_cv_deplibs_check_method='unknown'
3814 # Need to set the preceding variable on all platforms that support
3815 # interlibrary dependencies.
3816 # 'none' -- dependencies not supported.
3817 # `unknown' -- same as none, but documents that we really don't know.
3818 # 'pass_all' -- all dependencies passed with no checks.
3819 # 'test_compile' -- check by making test program.
3820 # 'file_magic [[regex]]' -- check by looking for files in library path
3821 # which responds to the $file_magic_cmd with a given extended regex.
3822 # If you have `file' or equivalent on your system and you're not sure
3823 # whether `pass_all' will *always* work, you probably want this one.
3824
3825 case $host_os in
3826 aix4* | aix5*)
3827   lt_cv_deplibs_check_method=pass_all
3828   ;;
3829
3830 beos*)
3831   lt_cv_deplibs_check_method=pass_all
3832   ;;
3833
3834 bsdi4*)
3835   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3836   lt_cv_file_magic_cmd='/usr/bin/file -L'
3837   lt_cv_file_magic_test_file=/shlib/libc.so
3838   ;;
3839
3840 cygwin* | mingw* | pw32*)
3841   # win32_libid is a shell function defined in ltmain.sh
3842   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3843   lt_cv_file_magic_cmd='win32_libid'
3844   ;;
3845
3846 darwin* | rhapsody*)
3847   # this will be overwritten by pass_all, but leave it in just in case
3848   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3849   lt_cv_file_magic_cmd='/usr/bin/file -L'
3850   case "$host_os" in
3851   rhapsody* | darwin1.[012])
3852     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3853     ;;
3854   *) # Darwin 1.3 on
3855     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3856     ;;
3857   esac
3858   lt_cv_deplibs_check_method=pass_all
3859   ;;
3860
3861 freebsd*)
3862   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3863     case $host_cpu in
3864     i*86 )
3865       # Not sure whether the presence of OpenBSD here was a mistake.
3866       # Let's accept both of them until this is cleared up.
3867       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3868       lt_cv_file_magic_cmd=/usr/bin/file
3869       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3870       ;;
3871     esac
3872   else
3873     lt_cv_deplibs_check_method=pass_all
3874   fi
3875   ;;
3876
3877 gnu*)
3878   lt_cv_deplibs_check_method=pass_all
3879   ;;
3880
3881 hpux10.20* | hpux11*)
3882   lt_cv_file_magic_cmd=/usr/bin/file
3883   case "$host_cpu" in
3884   ia64*)
3885     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3886     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3887     ;;
3888   hppa*64*)
3889     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]'
3890     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3891     ;;
3892   *)
3893     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3894     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3895     ;;
3896   esac
3897   ;;
3898
3899 irix5* | irix6* | nonstopux*)
3900   case $host_os in
3901   irix5* | nonstopux*)
3902     # this will be overridden with pass_all, but let us keep it just in case
3903     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3904     ;;
3905   *)
3906     case $LD in
3907     *-32|*"-32 ") libmagic=32-bit;;
3908     *-n32|*"-n32 ") libmagic=N32;;
3909     *-64|*"-64 ") libmagic=64-bit;;
3910     *) libmagic=never-match;;
3911     esac
3912     # this will be overridden with pass_all, but let us keep it just in case
3913     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3914     ;;
3915   esac
3916   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3917   lt_cv_deplibs_check_method=pass_all
3918   ;;
3919
3920 # This must be Linux ELF.
3921 linux*)
3922   case $host_cpu in
3923   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3924     lt_cv_deplibs_check_method=pass_all ;;
3925   *)
3926     # glibc up to 2.1.1 does not perform some relocations on ARM
3927     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3928   esac
3929   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3930   ;;
3931
3932 netbsd*)
3933   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3934     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3935   else
3936     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3937   fi
3938   ;;
3939
3940 newos6*)
3941   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3942   lt_cv_file_magic_cmd=/usr/bin/file
3943   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3944   ;;
3945
3946 nto-qnx)
3947   lt_cv_deplibs_check_method=unknown
3948   ;;
3949
3950 openbsd*)
3951   lt_cv_file_magic_cmd=/usr/bin/file
3952   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3953   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3954     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3955   else
3956     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3957   fi
3958   ;;
3959
3960 osf3* | osf4* | osf5*)
3961   # this will be overridden with pass_all, but let us keep it just in case
3962   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3963   lt_cv_file_magic_test_file=/shlib/libc.so
3964   lt_cv_deplibs_check_method=pass_all
3965   ;;
3966
3967 sco3.2v5*)
3968   lt_cv_deplibs_check_method=pass_all
3969   ;;
3970
3971 solaris*)
3972   lt_cv_deplibs_check_method=pass_all
3973   lt_cv_file_magic_test_file=/lib/libc.so
3974   ;;
3975
3976 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3977   case $host_vendor in
3978   motorola)
3979     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]'
3980     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3981     ;;
3982   ncr)
3983     lt_cv_deplibs_check_method=pass_all
3984     ;;
3985   sequent)
3986     lt_cv_file_magic_cmd='/bin/file'
3987     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3988     ;;
3989   sni)
3990     lt_cv_file_magic_cmd='/bin/file'
3991     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3992     lt_cv_file_magic_test_file=/lib/libc.so
3993     ;;
3994   siemens)
3995     lt_cv_deplibs_check_method=pass_all
3996     ;;
3997   esac
3998   ;;
3999
4000 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4001   lt_cv_deplibs_check_method=pass_all
4002   ;;
4003 esac
4004
4005 fi
4006 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4007 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4008 file_magic_cmd=$lt_cv_file_magic_cmd
4009 deplibs_check_method=$lt_cv_deplibs_check_method
4010 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4011
4012
4013
4014
4015 # If no C compiler was specified, use CC.
4016 LTCC=${LTCC-"$CC"}
4017
4018 # Allow CC to be a program name with arguments.
4019 compiler=$CC
4020
4021 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4022 if test "${enable_libtool_lock+set}" = set; then
4023   enableval="$enable_libtool_lock"
4024
4025 fi;
4026 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4027
4028 # Some flags need to be propagated to the compiler or linker for good
4029 # libtool support.
4030 case $host in
4031 ia64-*-hpux*)
4032   # Find out which ABI we are using.
4033   echo 'int i;' > conftest.$ac_ext
4034   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035   (eval $ac_compile) 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); }; then
4039     case `/usr/bin/file conftest.$ac_objext` in
4040     *ELF-32*)
4041       HPUX_IA64_MODE="32"
4042       ;;
4043     *ELF-64*)
4044       HPUX_IA64_MODE="64"
4045       ;;
4046     esac
4047   fi
4048   rm -rf conftest*
4049   ;;
4050 *-*-irix6*)
4051   # Find out which ABI we are using.
4052   echo '#line 4052 "configure"' > conftest.$ac_ext
4053   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054   (eval $ac_compile) 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); }; then
4058    if test "$lt_cv_prog_gnu_ld" = yes; then
4059     case `/usr/bin/file conftest.$ac_objext` in
4060     *32-bit*)
4061       LD="${LD-ld} -melf32bsmip"
4062       ;;
4063     *N32*)
4064       LD="${LD-ld} -melf32bmipn32"
4065       ;;
4066     *64-bit*)
4067       LD="${LD-ld} -melf64bmip"
4068       ;;
4069     esac
4070    else
4071     case `/usr/bin/file conftest.$ac_objext` in
4072     *32-bit*)
4073       LD="${LD-ld} -32"
4074       ;;
4075     *N32*)
4076       LD="${LD-ld} -n32"
4077       ;;
4078     *64-bit*)
4079       LD="${LD-ld} -64"
4080       ;;
4081     esac
4082    fi
4083   fi
4084   rm -rf conftest*
4085   ;;
4086
4087 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4088   # Find out which ABI we are using.
4089   echo 'int i;' > conftest.$ac_ext
4090   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091   (eval $ac_compile) 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); }; then
4095     case "`/usr/bin/file conftest.o`" in
4096     *32-bit*)
4097       case $host in
4098         x86_64-*linux*)
4099           LD="${LD-ld} -m elf_i386"
4100           ;;
4101         ppc64-*linux*)
4102           LD="${LD-ld} -m elf32ppclinux"
4103           ;;
4104         s390x-*linux*)
4105           LD="${LD-ld} -m elf_s390"
4106           ;;
4107         sparc64-*linux*)
4108           LD="${LD-ld} -m elf32_sparc"
4109           ;;
4110       esac
4111       ;;
4112     *64-bit*)
4113       case $host in
4114         x86_64-*linux*)
4115           LD="${LD-ld} -m elf_x86_64"
4116           ;;
4117         ppc*-*linux*|powerpc*-*linux*)
4118           LD="${LD-ld} -m elf64ppc"
4119           ;;
4120         s390*-*linux*)
4121           LD="${LD-ld} -m elf64_s390"
4122           ;;
4123         sparc*-*linux*)
4124           LD="${LD-ld} -m elf64_sparc"
4125           ;;
4126       esac
4127       ;;
4128     esac
4129   fi
4130   rm -rf conftest*
4131   ;;
4132
4133 *-*-sco3.2v5*)
4134   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4135   SAVE_CFLAGS="$CFLAGS"
4136   CFLAGS="$CFLAGS -belf"
4137   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4138 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4139 if test "${lt_cv_cc_needs_belf+set}" = set; then
4140   echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142   ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148      cat >conftest.$ac_ext <<_ACEOF
4149 #line $LINENO "configure"
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155
4156 int
4157 main ()
4158 {
4159
4160   ;
4161   return 0;
4162 }
4163 _ACEOF
4164 rm -f conftest.$ac_objext conftest$ac_exeext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166   (eval $ac_link) 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); } &&
4170          { ac_try='test -s conftest$ac_exeext'
4171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; }; then
4176   lt_cv_cc_needs_belf=yes
4177 else
4178   echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 lt_cv_cc_needs_belf=no
4182 fi
4183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4184      ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190 fi
4191 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4192 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4193   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4194     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4195     CFLAGS="$SAVE_CFLAGS"
4196   fi
4197   ;;
4198
4199 esac
4200
4201 need_locks="$enable_libtool_lock"
4202
4203
4204
4205 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4206 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4207 if test "${ac_cv_header_stdc+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   cat >conftest.$ac_ext <<_ACEOF
4211 #line $LINENO "configure"
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 #include <stdlib.h>
4218 #include <stdarg.h>
4219 #include <string.h>
4220 #include <float.h>
4221
4222 int
4223 main ()
4224 {
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest.$ac_objext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232   (eval $ac_compile) 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } &&
4236          { ac_try='test -s conftest.$ac_objext'
4237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238   (eval $ac_try) 2>&5
4239   ac_status=$?
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); }; }; then
4242   ac_cv_header_stdc=yes
4243 else
4244   echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247 ac_cv_header_stdc=no
4248 fi
4249 rm -f conftest.$ac_objext conftest.$ac_ext
4250
4251 if test $ac_cv_header_stdc = yes; then
4252   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4253   cat >conftest.$ac_ext <<_ACEOF
4254 #line $LINENO "configure"
4255 /* confdefs.h.  */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h.  */
4260 #include <string.h>
4261
4262 _ACEOF
4263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264   $EGREP "memchr" >/dev/null 2>&1; then
4265   :
4266 else
4267   ac_cv_header_stdc=no
4268 fi
4269 rm -f conftest*
4270
4271 fi
4272
4273 if test $ac_cv_header_stdc = yes; then
4274   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4275   cat >conftest.$ac_ext <<_ACEOF
4276 #line $LINENO "configure"
4277 /* confdefs.h.  */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h.  */
4282 #include <stdlib.h>
4283
4284 _ACEOF
4285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4286   $EGREP "free" >/dev/null 2>&1; then
4287   :
4288 else
4289   ac_cv_header_stdc=no
4290 fi
4291 rm -f conftest*
4292
4293 fi
4294
4295 if test $ac_cv_header_stdc = yes; then
4296   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4297   if test "$cross_compiling" = yes; then
4298   :
4299 else
4300   cat >conftest.$ac_ext <<_ACEOF
4301 #line $LINENO "configure"
4302 /* confdefs.h.  */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h.  */
4307 #include <ctype.h>
4308 #if ((' ' & 0x0FF) == 0x020)
4309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4311 #else
4312 # define ISLOWER(c) \
4313                    (('a' <= (c) && (c) <= 'i') \
4314                      || ('j' <= (c) && (c) <= 'r') \
4315                      || ('s' <= (c) && (c) <= 'z'))
4316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4317 #endif
4318
4319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4320 int
4321 main ()
4322 {
4323   int i;
4324   for (i = 0; i < 256; i++)
4325     if (XOR (islower (i), ISLOWER (i))
4326         || toupper (i) != TOUPPER (i))
4327       exit(2);
4328   exit (0);
4329 }
4330 _ACEOF
4331 rm -f conftest$ac_exeext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4333   (eval $ac_link) 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338   (eval $ac_try) 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }; }; then
4342   :
4343 else
4344   echo "$as_me: program exited with status $ac_status" >&5
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 ( exit $ac_status )
4349 ac_cv_header_stdc=no
4350 fi
4351 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4352 fi
4353 fi
4354 fi
4355 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4356 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4357 if test $ac_cv_header_stdc = yes; then
4358
4359 cat >>confdefs.h <<\_ACEOF
4360 #define STDC_HEADERS 1
4361 _ACEOF
4362
4363 fi
4364
4365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4376                   inttypes.h stdint.h unistd.h
4377 do
4378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4379 echo "$as_me:$LINENO: checking for $ac_header" >&5
4380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   cat >conftest.$ac_ext <<_ACEOF
4385 #line $LINENO "configure"
4386 /* confdefs.h.  */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h.  */
4391 $ac_includes_default
4392
4393 #include <$ac_header>
4394 _ACEOF
4395 rm -f conftest.$ac_objext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397   (eval $ac_compile) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); } &&
4401          { ac_try='test -s conftest.$ac_objext'
4402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403   (eval $ac_try) 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   eval "$as_ac_Header=yes"
4408 else
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 eval "$as_ac_Header=no"
4413 fi
4414 rm -f conftest.$ac_objext conftest.$ac_ext
4415 fi
4416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4419   cat >>confdefs.h <<_ACEOF
4420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4421 _ACEOF
4422
4423 fi
4424
4425 done
4426
4427
4428
4429 for ac_header in dlfcn.h
4430 do
4431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433   echo "$as_me:$LINENO: checking for $ac_header" >&5
4434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 fi
4438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4440 else
4441   # Is the header compilable?
4442 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4444 cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 $ac_includes_default
4452 #include <$ac_header>
4453 _ACEOF
4454 rm -f conftest.$ac_objext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456   (eval $ac_compile) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } &&
4460          { ac_try='test -s conftest.$ac_objext'
4461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462   (eval $ac_try) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; }; then
4466   ac_header_compiler=yes
4467 else
4468   echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4470
4471 ac_header_compiler=no
4472 fi
4473 rm -f conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4475 echo "${ECHO_T}$ac_header_compiler" >&6
4476
4477 # Is the header present?
4478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4480 cat >conftest.$ac_ext <<_ACEOF
4481 #line $LINENO "configure"
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487 #include <$ac_header>
4488 _ACEOF
4489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4491   ac_status=$?
4492   grep -v '^ *+' conftest.er1 >conftest.err
4493   rm -f conftest.er1
4494   cat conftest.err >&5
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); } >/dev/null; then
4497   if test -s conftest.err; then
4498     ac_cpp_err=$ac_c_preproc_warn_flag
4499   else
4500     ac_cpp_err=
4501   fi
4502 else
4503   ac_cpp_err=yes
4504 fi
4505 if test -z "$ac_cpp_err"; then
4506   ac_header_preproc=yes
4507 else
4508   echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511   ac_header_preproc=no
4512 fi
4513 rm -f conftest.err conftest.$ac_ext
4514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4515 echo "${ECHO_T}$ac_header_preproc" >&6
4516
4517 # So?  What about this header?
4518 case $ac_header_compiler:$ac_header_preproc in
4519   yes:no )
4520     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4524     (
4525       cat <<\_ASBOX
4526 ## ------------------------------------ ##
4527 ## Report this to bug-autoconf@gnu.org. ##
4528 ## ------------------------------------ ##
4529 _ASBOX
4530     ) |
4531       sed "s/^/$as_me: WARNING:     /" >&2
4532     ;;
4533   no:yes )
4534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4536     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4540     (
4541       cat <<\_ASBOX
4542 ## ------------------------------------ ##
4543 ## Report this to bug-autoconf@gnu.org. ##
4544 ## ------------------------------------ ##
4545 _ASBOX
4546     ) |
4547       sed "s/^/$as_me: WARNING:     /" >&2
4548     ;;
4549 esac
4550 echo "$as_me:$LINENO: checking for $ac_header" >&5
4551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   eval "$as_ac_Header=$ac_header_preproc"
4556 fi
4557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4559
4560 fi
4561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4562   cat >>confdefs.h <<_ACEOF
4563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564 _ACEOF
4565
4566 fi
4567
4568 done
4569
4570 ac_ext=cc
4571 ac_cpp='$CXXCPP $CPPFLAGS'
4572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4575 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4576 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4577 if test -z "$CXXCPP"; then
4578   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581       # Double quotes because CXXCPP needs to be expanded
4582     for CXXCPP in "$CXX -E" "/lib/cpp"
4583     do
4584       ac_preproc_ok=false
4585 for ac_cxx_preproc_warn_flag in '' yes
4586 do
4587   # Use a header file that comes with gcc, so configuring glibc
4588   # with a fresh cross-compiler works.
4589   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4590   # <limits.h> exists even on freestanding compilers.
4591   # On the NeXT, cc -E runs the code through the compiler's parser,
4592   # not just through cpp. "Syntax error" is here to catch this case.
4593   cat >conftest.$ac_ext <<_ACEOF
4594 #line $LINENO "configure"
4595 /* confdefs.h.  */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h.  */
4600 #ifdef __STDC__
4601 # include <limits.h>
4602 #else
4603 # include <assert.h>
4604 #endif
4605                      Syntax error
4606 _ACEOF
4607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4609   ac_status=$?
4610   grep -v '^ *+' conftest.er1 >conftest.err
4611   rm -f conftest.er1
4612   cat conftest.err >&5
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } >/dev/null; then
4615   if test -s conftest.err; then
4616     ac_cpp_err=$ac_cxx_preproc_warn_flag
4617   else
4618     ac_cpp_err=
4619   fi
4620 else
4621   ac_cpp_err=yes
4622 fi
4623 if test -z "$ac_cpp_err"; then
4624   :
4625 else
4626   echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629   # Broken: fails on valid input.
4630 continue
4631 fi
4632 rm -f conftest.err conftest.$ac_ext
4633
4634   # OK, works on sane cases.  Now check whether non-existent headers
4635   # can be detected and how.
4636   cat >conftest.$ac_ext <<_ACEOF
4637 #line $LINENO "configure"
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_nonexistent.h>
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_cxx_preproc_warn_flag
4655   else
4656     ac_cpp_err=
4657   fi
4658 else
4659   ac_cpp_err=yes
4660 fi
4661 if test -z "$ac_cpp_err"; then
4662   # Broken: success on invalid input.
4663 continue
4664 else
4665   echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4667
4668   # Passes both tests.
4669 ac_preproc_ok=:
4670 break
4671 fi
4672 rm -f conftest.err conftest.$ac_ext
4673
4674 done
4675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4676 rm -f conftest.err conftest.$ac_ext
4677 if $ac_preproc_ok; then
4678   break
4679 fi
4680
4681     done
4682     ac_cv_prog_CXXCPP=$CXXCPP
4683
4684 fi
4685   CXXCPP=$ac_cv_prog_CXXCPP
4686 else
4687   ac_cv_prog_CXXCPP=$CXXCPP
4688 fi
4689 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4690 echo "${ECHO_T}$CXXCPP" >&6
4691 ac_preproc_ok=false
4692 for ac_cxx_preproc_warn_flag in '' yes
4693 do
4694   # Use a header file that comes with gcc, so configuring glibc
4695   # with a fresh cross-compiler works.
4696   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4697   # <limits.h> exists even on freestanding compilers.
4698   # On the NeXT, cc -E runs the code through the compiler's parser,
4699   # not just through cpp. "Syntax error" is here to catch this case.
4700   cat >conftest.$ac_ext <<_ACEOF
4701 #line $LINENO "configure"
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707 #ifdef __STDC__
4708 # include <limits.h>
4709 #else
4710 # include <assert.h>
4711 #endif
4712                      Syntax error
4713 _ACEOF
4714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4716   ac_status=$?
4717   grep -v '^ *+' conftest.er1 >conftest.err
4718   rm -f conftest.er1
4719   cat conftest.err >&5
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); } >/dev/null; then
4722   if test -s conftest.err; then
4723     ac_cpp_err=$ac_cxx_preproc_warn_flag
4724   else
4725     ac_cpp_err=
4726   fi
4727 else
4728   ac_cpp_err=yes
4729 fi
4730 if test -z "$ac_cpp_err"; then
4731   :
4732 else
4733   echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736   # Broken: fails on valid input.
4737 continue
4738 fi
4739 rm -f conftest.err conftest.$ac_ext
4740
4741   # OK, works on sane cases.  Now check whether non-existent headers
4742   # can be detected and how.
4743   cat >conftest.$ac_ext <<_ACEOF
4744 #line $LINENO "configure"
4745 /* confdefs.h.  */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h.  */
4750 #include <ac_nonexistent.h>
4751 _ACEOF
4752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4753   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } >/dev/null; then
4760   if test -s conftest.err; then
4761     ac_cpp_err=$ac_cxx_preproc_warn_flag
4762   else
4763     ac_cpp_err=
4764   fi
4765 else
4766   ac_cpp_err=yes
4767 fi
4768 if test -z "$ac_cpp_err"; then
4769   # Broken: success on invalid input.
4770 continue
4771 else
4772   echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775   # Passes both tests.
4776 ac_preproc_ok=:
4777 break
4778 fi
4779 rm -f conftest.err conftest.$ac_ext
4780
4781 done
4782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4783 rm -f conftest.err conftest.$ac_ext
4784 if $ac_preproc_ok; then
4785   :
4786 else
4787   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4788 See \`config.log' for more details." >&5
4789 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4790 See \`config.log' for more details." >&2;}
4791    { (exit 1); exit 1; }; }
4792 fi
4793
4794 ac_ext=cc
4795 ac_cpp='$CXXCPP $CPPFLAGS'
4796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4799
4800
4801 ac_ext=f
4802 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4803 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4805 if test -n "$ac_tool_prefix"; then
4806   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4807   do
4808     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4810 echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812 if test "${ac_cv_prog_F77+set}" = set; then
4813   echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815   if test -n "$F77"; then
4816   ac_cv_prog_F77="$F77" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821   IFS=$as_save_IFS
4822   test -z "$as_dir" && as_dir=.
4823   for ac_exec_ext in '' $ac_executable_extensions; do
4824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827     break 2
4828   fi
4829 done
4830 done
4831
4832 fi
4833 fi
4834 F77=$ac_cv_prog_F77
4835 if test -n "$F77"; then
4836   echo "$as_me:$LINENO: result: $F77" >&5
4837 echo "${ECHO_T}$F77" >&6
4838 else
4839   echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4841 fi
4842
4843     test -n "$F77" && break
4844   done
4845 fi
4846 if test -z "$F77"; then
4847   ac_ct_F77=$F77
4848   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4849 do
4850   # Extract the first word of "$ac_prog", so it can be a program name with args.
4851 set dummy $ac_prog; ac_word=$2
4852 echo "$as_me:$LINENO: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4854 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4855   echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857   if test -n "$ac_ct_F77"; then
4858   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863   IFS=$as_save_IFS
4864   test -z "$as_dir" && as_dir=.
4865   for ac_exec_ext in '' $ac_executable_extensions; do
4866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867     ac_cv_prog_ac_ct_F77="$ac_prog"
4868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869     break 2
4870   fi
4871 done
4872 done
4873
4874 fi
4875 fi
4876 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4877 if test -n "$ac_ct_F77"; then
4878   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4879 echo "${ECHO_T}$ac_ct_F77" >&6
4880 else
4881   echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6
4883 fi
4884
4885   test -n "$ac_ct_F77" && break
4886 done
4887
4888   F77=$ac_ct_F77
4889 fi
4890
4891
4892 # Provide some information about the compiler.
4893 echo "$as_me:4893:" \
4894      "checking for Fortran 77 compiler version" >&5
4895 ac_compiler=`set X $ac_compile; echo $2`
4896 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4897   (eval $ac_compiler --version </dev/null >&5) 2>&5
4898   ac_status=$?
4899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900   (exit $ac_status); }
4901 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4902   (eval $ac_compiler -v </dev/null >&5) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }
4906 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4907   (eval $ac_compiler -V </dev/null >&5) 2>&5
4908   ac_status=$?
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); }
4911
4912 # If we don't use `.F' as extension, the preprocessor is not run on the
4913 # input file.
4914 ac_save_ext=$ac_ext
4915 ac_ext=F
4916 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4917 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4918 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921   cat >conftest.$ac_ext <<_ACEOF
4922       program main
4923 #ifndef __GNUC__
4924        choke me
4925 #endif
4926
4927       end
4928 _ACEOF
4929 rm -f conftest.$ac_objext
4930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4931   (eval $ac_compile) 2>&5
4932   ac_status=$?
4933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934   (exit $ac_status); } &&
4935          { ac_try='test -s conftest.$ac_objext'
4936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937   (eval $ac_try) 2>&5
4938   ac_status=$?
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); }; }; then
4941   ac_compiler_gnu=yes
4942 else
4943   echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 ac_compiler_gnu=no
4947 fi
4948 rm -f conftest.$ac_objext conftest.$ac_ext
4949 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4950
4951 fi
4952 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4953 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4954 ac_ext=$ac_save_ext
4955 G77=`test $ac_compiler_gnu = yes && echo yes`
4956 ac_test_FFLAGS=${FFLAGS+set}
4957 ac_save_FFLAGS=$FFLAGS
4958 FFLAGS=
4959 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4960 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4961 if test "${ac_cv_prog_f77_g+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   FFLAGS=-g
4965 cat >conftest.$ac_ext <<_ACEOF
4966       program main
4967
4968       end
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972   (eval $ac_compile) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } &&
4976          { ac_try='test -s conftest.$ac_objext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   ac_cv_prog_f77_g=yes
4983 else
4984   echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987 ac_cv_prog_f77_g=no
4988 fi
4989 rm -f conftest.$ac_objext conftest.$ac_ext
4990
4991 fi
4992 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4993 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4994 if test "$ac_test_FFLAGS" = set; then
4995   FFLAGS=$ac_save_FFLAGS
4996 elif test $ac_cv_prog_f77_g = yes; then
4997   if test "$G77" = yes; then
4998     FFLAGS="-g -O2"
4999   else
5000     FFLAGS="-g"
5001   fi
5002 else
5003   if test "$G77" = yes; then
5004     FFLAGS="-O2"
5005   else
5006     FFLAGS=
5007   fi
5008 fi
5009 ac_ext=c
5010 ac_cpp='$CPP $CPPFLAGS'
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014
5015
5016
5017 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5018
5019 # find the maximum length of command line arguments
5020 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5021 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5022 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025     i=0
5026   testring="ABCD"
5027
5028   case $build_os in
5029   msdosdjgpp*)
5030     # On DJGPP, this test can blow up pretty badly due to problems in libc
5031     # (any single argument exceeding 2000 bytes causes a buffer overrun
5032     # during glob expansion).  Even if it were fixed, the result of this
5033     # check would be larger than it should be.
5034     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5035     ;;
5036
5037   gnu*)
5038     # Under GNU Hurd, this test is not required because there is
5039     # no limit to the length of command line arguments.
5040     # Libtool will interpret -1 as no limit whatsoever
5041     lt_cv_sys_max_cmd_len=-1;
5042     ;;
5043
5044   cygwin* | mingw*)
5045     # On Win9x/ME, this test blows up -- it succeeds, but takes
5046     # about 5 minutes as the teststring grows exponentially.
5047     # Worse, since 9x/ME are not pre-emptively multitasking,
5048     # you end up with a "frozen" computer, even though with patience
5049     # the test eventually succeeds (with a max line length of 256k).
5050     # Instead, let's just punt: use the minimum linelength reported by
5051     # all of the supported platforms: 8192 (on NT/2K/XP).
5052     lt_cv_sys_max_cmd_len=8192;
5053     ;;
5054
5055  *)
5056     # If test is not a shell built-in, we'll probably end up computing a
5057     # maximum length that is only half of the actual maximum length, but
5058     # we can't tell.
5059     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5060                = "XX$testring") >/dev/null 2>&1 &&
5061             new_result=`expr "X$testring" : ".*" 2>&1` &&
5062             lt_cv_sys_max_cmd_len=$new_result &&
5063             test $i != 17 # 1/2 MB should be enough
5064     do
5065       i=`expr $i + 1`
5066       testring=$testring$testring
5067     done
5068     testring=
5069     # Add a significant safety factor because C++ compilers can tack on massive
5070     # amounts of additional arguments before passing them to the linker.
5071     # It appears as though 1/2 is a usable value.
5072     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5073     ;;
5074   esac
5075
5076 fi
5077
5078 if test -n $lt_cv_sys_max_cmd_len ; then
5079   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5080 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5081 else
5082   echo "$as_me:$LINENO: result: none" >&5
5083 echo "${ECHO_T}none" >&6
5084 fi
5085
5086
5087
5088
5089 # Check for command to grab the raw symbol name followed by C symbol from nm.
5090 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5091 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5092 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095
5096 # These are sane defaults that work on at least a few old systems.
5097 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5098
5099 # Character class describing NM global symbol codes.
5100 symcode='[BCDEGRST]'
5101
5102 # Regexp to match symbols that can be accessed directly from C.
5103 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5104
5105 # Transform the above into a raw symbol and a C symbol.
5106 symxfrm='\1 \2\3 \3'
5107
5108 # Transform an extracted symbol line into a proper C declaration
5109 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5110
5111 # Transform an extracted symbol line into symbol name and symbol address
5112 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'"
5113
5114 # Define system-specific variables.
5115 case $host_os in
5116 aix*)
5117   symcode='[BCDT]'
5118   ;;
5119 cygwin* | mingw* | pw32*)
5120   symcode='[ABCDGISTW]'
5121   ;;
5122 hpux*) # Its linker distinguishes data from code symbols
5123   if test "$host_cpu" = ia64; then
5124     symcode='[ABCDEGRST]'
5125   fi
5126   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5127   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'"
5128   ;;
5129 irix* | nonstopux*)
5130   symcode='[BCDEGRST]'
5131   ;;
5132 osf*)
5133   symcode='[BCDEGQRST]'
5134   ;;
5135 solaris* | sysv5*)
5136   symcode='[BDT]'
5137   ;;
5138 sysv4)
5139   symcode='[DFNSTU]'
5140   ;;
5141 esac
5142
5143 # Handle CRLF in mingw tool chain
5144 opt_cr=
5145 case $build_os in
5146 mingw*)
5147   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5148   ;;
5149 esac
5150
5151 # If we're using GNU nm, then use its standard symbol codes.
5152 case `$NM -V 2>&1` in
5153 *GNU* | *'with BFD'*)
5154   symcode='[ABCDGISTW]' ;;
5155 esac
5156
5157 # Try without a prefix undercore, then with it.
5158 for ac_symprfx in "" "_"; do
5159
5160   # Write the raw and C identifiers.
5161   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5162
5163   # Check to see that the pipe works correctly.
5164   pipe_works=no
5165
5166   rm -f conftest*
5167   cat > conftest.$ac_ext <<EOF
5168 #ifdef __cplusplus
5169 extern "C" {
5170 #endif
5171 char nm_test_var;
5172 void nm_test_func(){}
5173 #ifdef __cplusplus
5174 }
5175 #endif
5176 int main(){nm_test_var='a';nm_test_func();return(0);}
5177 EOF
5178
5179   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5180   (eval $ac_compile) 2>&5
5181   ac_status=$?
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); }; then
5184     # Now try to grab the symbols.
5185     nlist=conftest.nm
5186     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5187   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5188   ac_status=$?
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); } && test -s "$nlist"; then
5191       # Try sorting and uniquifying the output.
5192       if sort "$nlist" | uniq > "$nlist"T; then
5193         mv -f "$nlist"T "$nlist"
5194       else
5195         rm -f "$nlist"T
5196       fi
5197
5198       # Make sure that we snagged all the symbols we need.
5199       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5200         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5201           cat <<EOF > conftest.$ac_ext
5202 #ifdef __cplusplus
5203 extern "C" {
5204 #endif
5205
5206 EOF
5207           # Now generate the symbol file.
5208           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5209
5210           cat <<EOF >> conftest.$ac_ext
5211 #if defined (__STDC__) && __STDC__
5212 # define lt_ptr_t void *
5213 #else
5214 # define lt_ptr_t char *
5215 # define const
5216 #endif
5217
5218 /* The mapping between symbol names and symbols. */
5219 const struct {
5220   const char *name;
5221   lt_ptr_t address;
5222 }
5223 lt_preloaded_symbols[] =
5224 {
5225 EOF
5226           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5227           cat <<\EOF >> conftest.$ac_ext
5228   {0, (lt_ptr_t) 0}
5229 };
5230
5231 #ifdef __cplusplus
5232 }
5233 #endif
5234 EOF
5235           # Now try linking the two files.
5236           mv conftest.$ac_objext conftstm.$ac_objext
5237           lt_save_LIBS="$LIBS"
5238           lt_save_CFLAGS="$CFLAGS"
5239           LIBS="conftstm.$ac_objext"
5240           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5241           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242   (eval $ac_link) 2>&5
5243   ac_status=$?
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5246             pipe_works=yes
5247           fi
5248           LIBS="$lt_save_LIBS"
5249           CFLAGS="$lt_save_CFLAGS"
5250         else
5251           echo "cannot find nm_test_func in $nlist" >&5
5252         fi
5253       else
5254         echo "cannot find nm_test_var in $nlist" >&5
5255       fi
5256     else
5257       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5258     fi
5259   else
5260     echo "$progname: failed program was:" >&5
5261     cat conftest.$ac_ext >&5
5262   fi
5263   rm -f conftest* conftst*
5264
5265   # Do not use the global_symbol_pipe unless it works.
5266   if test "$pipe_works" = yes; then
5267     break
5268   else
5269     lt_cv_sys_global_symbol_pipe=
5270   fi
5271 done
5272
5273 fi
5274
5275 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5276   lt_cv_sys_global_symbol_to_cdecl=
5277 fi
5278 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5279   echo "$as_me:$LINENO: result: failed" >&5
5280 echo "${ECHO_T}failed" >&6
5281 else
5282   echo "$as_me:$LINENO: result: ok" >&5
5283 echo "${ECHO_T}ok" >&6
5284 fi
5285
5286 echo "$as_me:$LINENO: checking for objdir" >&5
5287 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5288 if test "${lt_cv_objdir+set}" = set; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291   rm -f .libs 2>/dev/null
5292 mkdir .libs 2>/dev/null
5293 if test -d .libs; then
5294   lt_cv_objdir=.libs
5295 else
5296   # MS-DOS does not allow filenames that begin with a dot.
5297   lt_cv_objdir=_libs
5298 fi
5299 rmdir .libs 2>/dev/null
5300 fi
5301 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5302 echo "${ECHO_T}$lt_cv_objdir" >&6
5303 objdir=$lt_cv_objdir
5304
5305
5306
5307
5308
5309 case $host_os in
5310 aix3*)
5311   # AIX sometimes has problems with the GCC collect2 program.  For some
5312   # reason, if we set the COLLECT_NAMES environment variable, the problems
5313   # vanish in a puff of smoke.
5314   if test "X${COLLECT_NAMES+set}" != Xset; then
5315     COLLECT_NAMES=
5316     export COLLECT_NAMES
5317   fi
5318   ;;
5319 esac
5320
5321 # Sed substitution that helps us do robust quoting.  It backslashifies
5322 # metacharacters that are still active within double-quoted strings.
5323 Xsed='sed -e s/^X//'
5324 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5325
5326 # Same as above, but do not quote variable references.
5327 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5328
5329 # Sed substitution to delay expansion of an escaped shell variable in a
5330 # double_quote_subst'ed string.
5331 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5332
5333 # Sed substitution to avoid accidental globbing in evaled expressions
5334 no_glob_subst='s/\*/\\\*/g'
5335
5336 # Constants:
5337 rm="rm -f"
5338
5339 # Global variables:
5340 default_ofile=mklib
5341 can_build_shared=yes
5342
5343 # All known linkers require a `.a' archive for static linking (except M$VC,
5344 # which needs '.lib').
5345 libext=a
5346 ltmain="$ac_aux_dir/ltmain.sh"
5347 ofile="$default_ofile"
5348 with_gnu_ld="$lt_cv_prog_gnu_ld"
5349
5350 if test -n "$ac_tool_prefix"; then
5351   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5352 set dummy ${ac_tool_prefix}ar; ac_word=$2
5353 echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355 if test "${ac_cv_prog_AR+set}" = set; then
5356   echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358   if test -n "$AR"; then
5359   ac_cv_prog_AR="$AR" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5363 do
5364   IFS=$as_save_IFS
5365   test -z "$as_dir" && as_dir=.
5366   for ac_exec_ext in '' $ac_executable_extensions; do
5367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368     ac_cv_prog_AR="${ac_tool_prefix}ar"
5369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370     break 2
5371   fi
5372 done
5373 done
5374
5375 fi
5376 fi
5377 AR=$ac_cv_prog_AR
5378 if test -n "$AR"; then
5379   echo "$as_me:$LINENO: result: $AR" >&5
5380 echo "${ECHO_T}$AR" >&6
5381 else
5382   echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6
5384 fi
5385
5386 fi
5387 if test -z "$ac_cv_prog_AR"; then
5388   ac_ct_AR=$AR
5389   # Extract the first word of "ar", so it can be a program name with args.
5390 set dummy ar; ac_word=$2
5391 echo "$as_me:$LINENO: checking for $ac_word" >&5
5392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5393 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396   if test -n "$ac_ct_AR"; then
5397   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5401 do
5402   IFS=$as_save_IFS
5403   test -z "$as_dir" && as_dir=.
5404   for ac_exec_ext in '' $ac_executable_extensions; do
5405   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406     ac_cv_prog_ac_ct_AR="ar"
5407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408     break 2
5409   fi
5410 done
5411 done
5412
5413   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5414 fi
5415 fi
5416 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5417 if test -n "$ac_ct_AR"; then
5418   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5419 echo "${ECHO_T}$ac_ct_AR" >&6
5420 else
5421   echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5423 fi
5424
5425   AR=$ac_ct_AR
5426 else
5427   AR="$ac_cv_prog_AR"
5428 fi
5429
5430 if test -n "$ac_tool_prefix"; then
5431   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5433 echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435 if test "${ac_cv_prog_RANLIB+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   if test -n "$RANLIB"; then
5439   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446   for ac_exec_ext in '' $ac_executable_extensions; do
5447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450     break 2
5451   fi
5452 done
5453 done
5454
5455 fi
5456 fi
5457 RANLIB=$ac_cv_prog_RANLIB
5458 if test -n "$RANLIB"; then
5459   echo "$as_me:$LINENO: result: $RANLIB" >&5
5460 echo "${ECHO_T}$RANLIB" >&6
5461 else
5462   echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5464 fi
5465
5466 fi
5467 if test -z "$ac_cv_prog_RANLIB"; then
5468   ac_ct_RANLIB=$RANLIB
5469   # Extract the first word of "ranlib", so it can be a program name with args.
5470 set dummy ranlib; ac_word=$2
5471 echo "$as_me:$LINENO: checking for $ac_word" >&5
5472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5473 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   if test -n "$ac_ct_RANLIB"; then
5477   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482   IFS=$as_save_IFS
5483   test -z "$as_dir" && as_dir=.
5484   for ac_exec_ext in '' $ac_executable_extensions; do
5485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486     ac_cv_prog_ac_ct_RANLIB="ranlib"
5487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488     break 2
5489   fi
5490 done
5491 done
5492
5493   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5494 fi
5495 fi
5496 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5497 if test -n "$ac_ct_RANLIB"; then
5498   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5499 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5500 else
5501   echo "$as_me:$LINENO: result: no" >&5
5502 echo "${ECHO_T}no" >&6
5503 fi
5504
5505   RANLIB=$ac_ct_RANLIB
5506 else
5507   RANLIB="$ac_cv_prog_RANLIB"
5508 fi
5509
5510 if test -n "$ac_tool_prefix"; then
5511   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5512 set dummy ${ac_tool_prefix}strip; ac_word=$2
5513 echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5515 if test "${ac_cv_prog_STRIP+set}" = set; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   if test -n "$STRIP"; then
5519   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524   IFS=$as_save_IFS
5525   test -z "$as_dir" && as_dir=.
5526   for ac_exec_ext in '' $ac_executable_extensions; do
5527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530     break 2
5531   fi
5532 done
5533 done
5534
5535 fi
5536 fi
5537 STRIP=$ac_cv_prog_STRIP
5538 if test -n "$STRIP"; then
5539   echo "$as_me:$LINENO: result: $STRIP" >&5
5540 echo "${ECHO_T}$STRIP" >&6
5541 else
5542   echo "$as_me:$LINENO: result: no" >&5
5543 echo "${ECHO_T}no" >&6
5544 fi
5545
5546 fi
5547 if test -z "$ac_cv_prog_STRIP"; then
5548   ac_ct_STRIP=$STRIP
5549   # Extract the first word of "strip", so it can be a program name with args.
5550 set dummy strip; ac_word=$2
5551 echo "$as_me:$LINENO: checking for $ac_word" >&5
5552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5553 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5554   echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556   if test -n "$ac_ct_STRIP"; then
5557   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5558 else
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562   IFS=$as_save_IFS
5563   test -z "$as_dir" && as_dir=.
5564   for ac_exec_ext in '' $ac_executable_extensions; do
5565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566     ac_cv_prog_ac_ct_STRIP="strip"
5567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5568     break 2
5569   fi
5570 done
5571 done
5572
5573   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5574 fi
5575 fi
5576 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5577 if test -n "$ac_ct_STRIP"; then
5578   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5579 echo "${ECHO_T}$ac_ct_STRIP" >&6
5580 else
5581   echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6
5583 fi
5584
5585   STRIP=$ac_ct_STRIP
5586 else
5587   STRIP="$ac_cv_prog_STRIP"
5588 fi
5589
5590
5591 old_CC="$CC"
5592 old_CFLAGS="$CFLAGS"
5593
5594 # Set sane defaults for various variables
5595 test -z "$AR" && AR=ar
5596 test -z "$AR_FLAGS" && AR_FLAGS=cru
5597 test -z "$AS" && AS=as
5598 test -z "$CC" && CC=cc
5599 test -z "$LTCC" && LTCC=$CC
5600 test -z "$DLLTOOL" && DLLTOOL=dlltool
5601 test -z "$LD" && LD=ld
5602 test -z "$LN_S" && LN_S="ln -s"
5603 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5604 test -z "$NM" && NM=nm
5605 test -z "$SED" && SED=sed
5606 test -z "$OBJDUMP" && OBJDUMP=objdump
5607 test -z "$RANLIB" && RANLIB=:
5608 test -z "$STRIP" && STRIP=:
5609 test -z "$ac_objext" && ac_objext=o
5610
5611 # Determine commands to create old-style static archives.
5612 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5613 old_postinstall_cmds='chmod 644 $oldlib'
5614 old_postuninstall_cmds=
5615
5616 if test -n "$RANLIB"; then
5617   case $host_os in
5618   openbsd*)
5619     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5620     ;;
5621   *)
5622     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5623     ;;
5624   esac
5625   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5626 fi
5627
5628 # Only perform the check for file, if the check method requires it
5629 case $deplibs_check_method in
5630 file_magic*)
5631   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5632     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5633 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5634 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   case $MAGIC_CMD in
5638 [\\/*] |  ?:[\\/]*)
5639   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5640   ;;
5641 *)
5642   lt_save_MAGIC_CMD="$MAGIC_CMD"
5643   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5644   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5645   for ac_dir in $ac_dummy; do
5646     IFS="$lt_save_ifs"
5647     test -z "$ac_dir" && ac_dir=.
5648     if test -f $ac_dir/${ac_tool_prefix}file; then
5649       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5650       if test -n "$file_magic_test_file"; then
5651         case $deplibs_check_method in
5652         "file_magic "*)
5653           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5654           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5655           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5656             $EGREP "$file_magic_regex" > /dev/null; then
5657             :
5658           else
5659             cat <<EOF 1>&2
5660
5661 *** Warning: the command libtool uses to detect shared libraries,
5662 *** $file_magic_cmd, produces output that libtool cannot recognize.
5663 *** The result is that libtool may fail to recognize shared libraries
5664 *** as such.  This will affect the creation of libtool libraries that
5665 *** depend on shared libraries, but programs linked with such libtool
5666 *** libraries will work regardless of this problem.  Nevertheless, you
5667 *** may want to report the problem to your system manager and/or to
5668 *** bug-libtool@gnu.org
5669
5670 EOF
5671           fi ;;
5672         esac
5673       fi
5674       break
5675     fi
5676   done
5677   IFS="$lt_save_ifs"
5678   MAGIC_CMD="$lt_save_MAGIC_CMD"
5679   ;;
5680 esac
5681 fi
5682
5683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5684 if test -n "$MAGIC_CMD"; then
5685   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5686 echo "${ECHO_T}$MAGIC_CMD" >&6
5687 else
5688   echo "$as_me:$LINENO: result: no" >&5
5689 echo "${ECHO_T}no" >&6
5690 fi
5691
5692 if test -z "$lt_cv_path_MAGIC_CMD"; then
5693   if test -n "$ac_tool_prefix"; then
5694     echo "$as_me:$LINENO: checking for file" >&5
5695 echo $ECHO_N "checking for file... $ECHO_C" >&6
5696 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699   case $MAGIC_CMD in
5700 [\\/*] |  ?:[\\/]*)
5701   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5702   ;;
5703 *)
5704   lt_save_MAGIC_CMD="$MAGIC_CMD"
5705   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5706   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5707   for ac_dir in $ac_dummy; do
5708     IFS="$lt_save_ifs"
5709     test -z "$ac_dir" && ac_dir=.
5710     if test -f $ac_dir/file; then
5711       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5712       if test -n "$file_magic_test_file"; then
5713         case $deplibs_check_method in
5714         "file_magic "*)
5715           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5716           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5717           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5718             $EGREP "$file_magic_regex" > /dev/null; then
5719             :
5720           else
5721             cat <<EOF 1>&2
5722
5723 *** Warning: the command libtool uses to detect shared libraries,
5724 *** $file_magic_cmd, produces output that libtool cannot recognize.
5725 *** The result is that libtool may fail to recognize shared libraries
5726 *** as such.  This will affect the creation of libtool libraries that
5727 *** depend on shared libraries, but programs linked with such libtool
5728 *** libraries will work regardless of this problem.  Nevertheless, you
5729 *** may want to report the problem to your system manager and/or to
5730 *** bug-libtool@gnu.org
5731
5732 EOF
5733           fi ;;
5734         esac
5735       fi
5736       break
5737     fi
5738   done
5739   IFS="$lt_save_ifs"
5740   MAGIC_CMD="$lt_save_MAGIC_CMD"
5741   ;;
5742 esac
5743 fi
5744
5745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5746 if test -n "$MAGIC_CMD"; then
5747   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5748 echo "${ECHO_T}$MAGIC_CMD" >&6
5749 else
5750   echo "$as_me:$LINENO: result: no" >&5
5751 echo "${ECHO_T}no" >&6
5752 fi
5753
5754   else
5755     MAGIC_CMD=:
5756   fi
5757 fi
5758
5759   fi
5760   ;;
5761 esac
5762
5763 enable_dlopen=no
5764 enable_win32_dll=no
5765
5766 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5767 if test "${enable_libtool_lock+set}" = set; then
5768   enableval="$enable_libtool_lock"
5769
5770 fi;
5771 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5772
5773
5774 # Check whether --with-pic or --without-pic was given.
5775 if test "${with_pic+set}" = set; then
5776   withval="$with_pic"
5777   pic_mode="$withval"
5778 else
5779   pic_mode=default
5780 fi;
5781 test -z "$pic_mode" && pic_mode=default
5782
5783 # Use C for the default configuration in the libtool script
5784 tagname=
5785 lt_save_CC="$CC"
5786 ac_ext=c
5787 ac_cpp='$CPP $CPPFLAGS'
5788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5791
5792
5793 # Source file extension for C test sources.
5794 ac_ext=c
5795
5796 # Object file extension for compiled C test sources.
5797 objext=o
5798 objext=$objext
5799
5800 # Code to be used in simple compile tests
5801 lt_simple_compile_test_code="int some_variable = 0;\n"
5802
5803 # Code to be used in simple link tests
5804 lt_simple_link_test_code='int main(){return(0);}\n'
5805
5806
5807 # If no C compiler was specified, use CC.
5808 LTCC=${LTCC-"$CC"}
5809
5810 # Allow CC to be a program name with arguments.
5811 compiler=$CC
5812
5813
5814 #
5815 # Check for any special shared library compilation flags.
5816 #
5817 lt_prog_cc_shlib=
5818 if test "$GCC" = no; then
5819   case $host_os in
5820   sco3.2v5*)
5821     lt_prog_cc_shlib='-belf'
5822     ;;
5823   esac
5824 fi
5825 if test -n "$lt_prog_cc_shlib"; then
5826   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5827 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5828   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5829   else
5830     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5831 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5832     lt_cv_prog_cc_can_build_shared=no
5833   fi
5834 fi
5835
5836
5837 #
5838 # Check to make sure the static flag actually works.
5839 #
5840 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5841 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5842 if test "${lt_prog_compiler_static_works+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   lt_prog_compiler_static_works=no
5846    save_LDFLAGS="$LDFLAGS"
5847    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5848    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5849    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5850      # The compiler can only warn and ignore the option if not recognized
5851      # So say no if there are warnings
5852      if test -s conftest.err; then
5853        # Append any errors to the config.log.
5854        cat conftest.err 1>&5
5855      else
5856        lt_prog_compiler_static_works=yes
5857      fi
5858    fi
5859    $rm conftest*
5860    LDFLAGS="$save_LDFLAGS"
5861
5862 fi
5863 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5864 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5865
5866 if test x"$lt_prog_compiler_static_works" = xyes; then
5867     :
5868 else
5869     lt_prog_compiler_static=
5870 fi
5871
5872
5873
5874
5875 lt_prog_compiler_no_builtin_flag=
5876
5877 if test "$GCC" = yes; then
5878   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5879
5880   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5881 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5882 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   lt_cv_prog_compiler_rtti_exceptions=no
5886   ac_outfile=conftest.$ac_objext
5887    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5888    lt_compiler_flag="-fno-rtti -fno-exceptions"
5889    # Insert the option either (1) after the last *FLAGS variable, or
5890    # (2) before a word containing "conftest.", or (3) at the end.
5891    # Note that $ac_compile itself does not contain backslashes and begins
5892    # with a dollar sign (not a hyphen), so the echo should work correctly.
5893    # The option is referenced via a variable to avoid confusing sed.
5894    lt_compile=`echo "$ac_compile" | $SED \
5895    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5896    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5897    -e 's:$: $lt_compiler_flag:'`
5898    (eval echo "\"\$as_me:5898: $lt_compile\"" >&5)
5899    (eval "$lt_compile" 2>conftest.err)
5900    ac_status=$?
5901    cat conftest.err >&5
5902    echo "$as_me:5902: \$? = $ac_status" >&5
5903    if (exit $ac_status) && test -s "$ac_outfile"; then
5904      # The compiler can only warn and ignore the option if not recognized
5905      # So say no if there are warnings
5906      if test ! -s conftest.err; then
5907        lt_cv_prog_compiler_rtti_exceptions=yes
5908      fi
5909    fi
5910    $rm conftest*
5911
5912 fi
5913 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5914 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5915
5916 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5917     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5918 else
5919     :
5920 fi
5921
5922 fi
5923
5924 lt_prog_compiler_wl=
5925 lt_prog_compiler_pic=
5926 lt_prog_compiler_static=
5927
5928 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5929 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5930
5931   if test "$GCC" = yes; then
5932     lt_prog_compiler_wl='-Wl,'
5933     lt_prog_compiler_static='-static'
5934
5935     case $host_os in
5936       aix*)
5937       # All AIX code is PIC.
5938       if test "$host_cpu" = ia64; then
5939         # AIX 5 now supports IA64 processor
5940         lt_prog_compiler_static='-Bstatic'
5941       fi
5942       ;;
5943
5944     amigaos*)
5945       # FIXME: we need at least 68020 code to build shared libraries, but
5946       # adding the `-m68020' flag to GCC prevents building anything better,
5947       # like `-m68040'.
5948       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5949       ;;
5950
5951     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5952       # PIC is the default for these OSes.
5953       ;;
5954
5955     mingw* | pw32* | os2*)
5956       # This hack is so that the source file can tell whether it is being
5957       # built for inclusion in a dll (and should export symbols for example).
5958       lt_prog_compiler_pic='-DDLL_EXPORT'
5959       ;;
5960
5961     darwin* | rhapsody*)
5962       # PIC is the default on this platform
5963       # Common symbols not allowed in MH_DYLIB files
5964       lt_prog_compiler_pic='-fno-common'
5965       ;;
5966
5967     msdosdjgpp*)
5968       # Just because we use GCC doesn't mean we suddenly get shared libraries
5969       # on systems that don't support them.
5970       lt_prog_compiler_can_build_shared=no
5971       enable_shared=no
5972       ;;
5973
5974     sysv4*MP*)
5975       if test -d /usr/nec; then
5976         lt_prog_compiler_pic=-Kconform_pic
5977       fi
5978       ;;
5979
5980     hpux*)
5981       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5982       # not for PA HP-UX.
5983       case "$host_cpu" in
5984       hppa*64*|ia64*)
5985         # +Z the default
5986         ;;
5987       *)
5988         lt_prog_compiler_pic='-fPIC'
5989         ;;
5990       esac
5991       ;;
5992
5993     *)
5994       lt_prog_compiler_pic='-fPIC'
5995       ;;
5996     esac
5997   else
5998     # PORTME Check for flag to pass linker flags through the system compiler.
5999     case $host_os in
6000     aix*)
6001       lt_prog_compiler_wl='-Wl,'
6002       if test "$host_cpu" = ia64; then
6003         # AIX 5 now supports IA64 processor
6004         lt_prog_compiler_static='-Bstatic'
6005       else
6006         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6007       fi
6008       ;;
6009
6010     mingw* | pw32* | os2*)
6011       # This hack is so that the source file can tell whether it is being
6012       # built for inclusion in a dll (and should export symbols for example).
6013       lt_prog_compiler_pic='-DDLL_EXPORT'
6014       ;;
6015
6016     hpux9* | hpux10* | hpux11*)
6017       lt_prog_compiler_wl='-Wl,'
6018       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6019       # not for PA HP-UX.
6020       case "$host_cpu" in
6021       hppa*64*|ia64*)
6022         # +Z the default
6023         ;;
6024       *)
6025         lt_prog_compiler_pic='+Z'
6026         ;;
6027       esac
6028       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6029       lt_prog_compiler_static='${wl}-a ${wl}archive'
6030       ;;
6031
6032     irix5* | irix6* | nonstopux*)
6033       lt_prog_compiler_wl='-Wl,'
6034       # PIC (with -KPIC) is the default.
6035       lt_prog_compiler_static='-non_shared'
6036       ;;
6037
6038     newsos6)
6039       lt_prog_compiler_pic='-KPIC'
6040       lt_prog_compiler_static='-Bstatic'
6041       ;;
6042
6043     linux*)
6044       case $CC in
6045       icc|ecc)
6046         lt_prog_compiler_wl='-Wl,'
6047         lt_prog_compiler_pic='-KPIC'
6048         lt_prog_compiler_static='-static'
6049         ;;
6050       ccc)
6051         lt_prog_compiler_wl='-Wl,'
6052         # All Alpha code is PIC.
6053         lt_prog_compiler_static='-non_shared'
6054         ;;
6055       esac
6056       ;;
6057
6058     osf3* | osf4* | osf5*)
6059       lt_prog_compiler_wl='-Wl,'
6060       # All OSF/1 code is PIC.
6061       lt_prog_compiler_static='-non_shared'
6062       ;;
6063
6064     sco3.2v5*)
6065       lt_prog_compiler_pic='-Kpic'
6066       lt_prog_compiler_static='-dn'
6067       ;;
6068
6069     solaris*)
6070       lt_prog_compiler_wl='-Wl,'
6071       lt_prog_compiler_pic='-KPIC'
6072       lt_prog_compiler_static='-Bstatic'
6073       ;;
6074
6075     sunos4*)
6076       lt_prog_compiler_wl='-Qoption ld '
6077       lt_prog_compiler_pic='-PIC'
6078       lt_prog_compiler_static='-Bstatic'
6079       ;;
6080
6081     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6082       lt_prog_compiler_wl='-Wl,'
6083       lt_prog_compiler_pic='-KPIC'
6084       lt_prog_compiler_static='-Bstatic'
6085       ;;
6086
6087     sysv4*MP*)
6088       if test -d /usr/nec ;then
6089         lt_prog_compiler_pic='-Kconform_pic'
6090         lt_prog_compiler_static='-Bstatic'
6091       fi
6092       ;;
6093
6094     uts4*)
6095       lt_prog_compiler_pic='-pic'
6096       lt_prog_compiler_static='-Bstatic'
6097       ;;
6098
6099     *)
6100       lt_prog_compiler_can_build_shared=no
6101       ;;
6102     esac
6103   fi
6104
6105 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6106 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6107
6108 #
6109 # Check to make sure the PIC flag actually works.
6110 #
6111 if test -n "$lt_prog_compiler_pic"; then
6112   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6113 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6114 if test "${lt_prog_compiler_pic_works+set}" = set; then
6115   echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117   lt_prog_compiler_pic_works=no
6118   ac_outfile=conftest.$ac_objext
6119    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6120    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6121    # Insert the option either (1) after the last *FLAGS variable, or
6122    # (2) before a word containing "conftest.", or (3) at the end.
6123    # Note that $ac_compile itself does not contain backslashes and begins
6124    # with a dollar sign (not a hyphen), so the echo should work correctly.
6125    # The option is referenced via a variable to avoid confusing sed.
6126    lt_compile=`echo "$ac_compile" | $SED \
6127    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6128    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6129    -e 's:$: $lt_compiler_flag:'`
6130    (eval echo "\"\$as_me:6130: $lt_compile\"" >&5)
6131    (eval "$lt_compile" 2>conftest.err)
6132    ac_status=$?
6133    cat conftest.err >&5
6134    echo "$as_me:6134: \$? = $ac_status" >&5
6135    if (exit $ac_status) && test -s "$ac_outfile"; then
6136      # The compiler can only warn and ignore the option if not recognized
6137      # So say no if there are warnings
6138      if test ! -s conftest.err; then
6139        lt_prog_compiler_pic_works=yes
6140      fi
6141    fi
6142    $rm conftest*
6143
6144 fi
6145 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6146 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6147
6148 if test x"$lt_prog_compiler_pic_works" = xyes; then
6149     case $lt_prog_compiler_pic in
6150      "" | " "*) ;;
6151      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6152      esac
6153 else
6154     lt_prog_compiler_pic=
6155      lt_prog_compiler_can_build_shared=no
6156 fi
6157
6158 fi
6159 case "$host_os" in
6160   # For platforms which do not support PIC, -DPIC is meaningless:
6161   *djgpp*)
6162     lt_prog_compiler_pic=
6163     ;;
6164   *)
6165     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6166     ;;
6167 esac
6168
6169 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6170 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6171 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6172   echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174   lt_cv_prog_compiler_c_o=no
6175    $rm -r conftest 2>/dev/null
6176    mkdir conftest
6177    cd conftest
6178    mkdir out
6179    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6180
6181    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6182    # that will create temporary files in the current directory regardless of
6183    # the output directory.  Thus, making CWD read-only will cause this test
6184    # to fail, enabling locking or at least warning the user not to do parallel
6185    # builds.
6186    chmod -w .
6187
6188    lt_compiler_flag="-o out/conftest2.$ac_objext"
6189    # Insert the option either (1) after the last *FLAGS variable, or
6190    # (2) before a word containing "conftest.", or (3) at the end.
6191    # Note that $ac_compile itself does not contain backslashes and begins
6192    # with a dollar sign (not a hyphen), so the echo should work correctly.
6193    lt_compile=`echo "$ac_compile" | $SED \
6194    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6195    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6196    -e 's:$: $lt_compiler_flag:'`
6197    (eval echo "\"\$as_me:6197: $lt_compile\"" >&5)
6198    (eval "$lt_compile" 2>out/conftest.err)
6199    ac_status=$?
6200    cat out/conftest.err >&5
6201    echo "$as_me:6201: \$? = $ac_status" >&5
6202    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6203    then
6204      # The compiler can only warn and ignore the option if not recognized
6205      # So say no if there are warnings
6206      if test ! -s out/conftest.err; then
6207        lt_cv_prog_compiler_c_o=yes
6208      fi
6209    fi
6210    chmod u+w .
6211    $rm conftest* out/*
6212    rmdir out
6213    cd ..
6214    rmdir conftest
6215    $rm conftest*
6216
6217 fi
6218 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6219 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6220
6221
6222 hard_links="nottested"
6223 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6224   # do not overwrite the value of need_locks provided by the user
6225   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6226 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6227   hard_links=yes
6228   $rm conftest*
6229   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6230   touch conftest.a
6231   ln conftest.a conftest.b 2>&5 || hard_links=no
6232   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6233   echo "$as_me:$LINENO: result: $hard_links" >&5
6234 echo "${ECHO_T}$hard_links" >&6
6235   if test "$hard_links" = no; then
6236     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6237 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6238     need_locks=warn
6239   fi
6240 else
6241   need_locks=no
6242 fi
6243
6244 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6245 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6246
6247   runpath_var=
6248   allow_undefined_flag=
6249   enable_shared_with_static_runtimes=no
6250   archive_cmds=
6251   archive_expsym_cmds=
6252   old_archive_From_new_cmds=
6253   old_archive_from_expsyms_cmds=
6254   export_dynamic_flag_spec=
6255   whole_archive_flag_spec=
6256   thread_safe_flag_spec=
6257   hardcode_libdir_flag_spec=
6258   hardcode_libdir_flag_spec_ld=
6259   hardcode_libdir_separator=
6260   hardcode_direct=no
6261   hardcode_minus_L=no
6262   hardcode_shlibpath_var=unsupported
6263   link_all_deplibs=unknown
6264   hardcode_automatic=no
6265   module_cmds=
6266   module_expsym_cmds=
6267   always_export_symbols=no
6268   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6269   # include_expsyms should be a list of space-separated symbols to be *always*
6270   # included in the symbol list
6271   include_expsyms=
6272   # exclude_expsyms can be an extended regexp of symbols to exclude
6273   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6274   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6275   # as well as any symbol that contains `d'.
6276   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6277   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6278   # platforms (ab)use it in PIC code, but their linkers get confused if
6279   # the symbol is explicitly referenced.  Since portable code cannot
6280   # rely on this symbol name, it's probably fine to never include it in
6281   # preloaded symbol tables.
6282   extract_expsyms_cmds=
6283
6284   case $host_os in
6285   cygwin* | mingw* | pw32*)
6286     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6287     # When not using gcc, we currently assume that we are using
6288     # Microsoft Visual C++.
6289     if test "$GCC" != yes; then
6290       with_gnu_ld=no
6291     fi
6292     ;;
6293   openbsd*)
6294     with_gnu_ld=no
6295     ;;
6296   esac
6297
6298   ld_shlibs=yes
6299   if test "$with_gnu_ld" = yes; then
6300     # If archive_cmds runs LD, not CC, wlarc should be empty
6301     wlarc='${wl}'
6302
6303     # See if GNU ld supports shared libraries.
6304     case $host_os in
6305     aix3* | aix4* | aix5*)
6306       # On AIX/PPC, the GNU linker is very broken
6307       if test "$host_cpu" != ia64; then
6308         ld_shlibs=no
6309         cat <<EOF 1>&2
6310
6311 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6312 *** to be unable to reliably create shared libraries on AIX.
6313 *** Therefore, libtool is disabling shared libraries support.  If you
6314 *** really care for shared libraries, you may want to modify your PATH
6315 *** so that a non-GNU linker is found, and then restart.
6316
6317 EOF
6318       fi
6319       ;;
6320
6321     amigaos*)
6322       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)'
6323       hardcode_libdir_flag_spec='-L$libdir'
6324       hardcode_minus_L=yes
6325
6326       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6327       # that the semantics of dynamic libraries on AmigaOS, at least up
6328       # to version 4, is to share data among multiple programs linked
6329       # with the same dynamic library.  Since this doesn't match the
6330       # behavior of shared libraries on other platforms, we can't use
6331       # them.
6332       ld_shlibs=no
6333       ;;
6334
6335     beos*)
6336       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6337         allow_undefined_flag=unsupported
6338         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6339         # support --undefined.  This deserves some investigation.  FIXME
6340         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6341       else
6342         ld_shlibs=no
6343       fi
6344       ;;
6345
6346     cygwin* | mingw* | pw32*)
6347       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6348       # as there is no search path for DLLs.
6349       hardcode_libdir_flag_spec='-L$libdir'
6350       allow_undefined_flag=unsupported
6351       always_export_symbols=no
6352       enable_shared_with_static_runtimes=yes
6353       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6354
6355       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6356         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6357         # If the export-symbols file already is a .def file (1st line
6358         # is EXPORTS), use it as is; otherwise, prepend...
6359         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6360           cp $export_symbols $output_objdir/$soname.def;
6361         else
6362           echo EXPORTS > $output_objdir/$soname.def;
6363           cat $export_symbols >> $output_objdir/$soname.def;
6364         fi~
6365         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6366       else
6367         ld_shlibs=no
6368       fi
6369       ;;
6370
6371     netbsd*)
6372       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6373         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6374         wlarc=
6375       else
6376         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6377         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6378       fi
6379       ;;
6380
6381     solaris* | sysv5*)
6382       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6383         ld_shlibs=no
6384         cat <<EOF 1>&2
6385
6386 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6387 *** create shared libraries on Solaris systems.  Therefore, libtool
6388 *** is disabling shared libraries support.  We urge you to upgrade GNU
6389 *** binutils to release 2.9.1 or newer.  Another option is to modify
6390 *** your PATH or compiler configuration so that the native linker is
6391 *** used, and then restart.
6392
6393 EOF
6394       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6395         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6396         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6397       else
6398         ld_shlibs=no
6399       fi
6400       ;;
6401
6402     sunos4*)
6403       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6404       wlarc=
6405       hardcode_direct=yes
6406       hardcode_shlibpath_var=no
6407       ;;
6408
6409     *)
6410       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6411         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6412         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6413       else
6414         ld_shlibs=no
6415       fi
6416       ;;
6417     esac
6418
6419     if test "$ld_shlibs" = yes; then
6420       runpath_var=LD_RUN_PATH
6421       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6422       export_dynamic_flag_spec='${wl}--export-dynamic'
6423       # ancient GNU ld didn't support --whole-archive et. al.
6424       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6425         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6426       else
6427         whole_archive_flag_spec=
6428       fi
6429     fi
6430   else
6431     # PORTME fill in a description of your system's linker (not GNU ld)
6432     case $host_os in
6433     aix3*)
6434       allow_undefined_flag=unsupported
6435       always_export_symbols=yes
6436       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'
6437       # Note: this linker hardcodes the directories in LIBPATH if there
6438       # are no directories specified by -L.
6439       hardcode_minus_L=yes
6440       if test "$GCC" = yes && test -z "$link_static_flag"; then
6441         # Neither direct hardcoding nor static linking is supported with a
6442         # broken collect2.
6443         hardcode_direct=unsupported
6444       fi
6445       ;;
6446
6447     aix4* | aix5*)
6448       if test "$host_cpu" = ia64; then
6449         # On IA64, the linker does run time linking by default, so we don't
6450         # have to do anything special.
6451         aix_use_runtimelinking=no
6452         exp_sym_flag='-Bexport'
6453         no_entry_flag=""
6454       else
6455         # If we're using GNU nm, then we don't want the "-C" option.
6456         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6457         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6458           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'
6459         else
6460           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'
6461         fi
6462         aix_use_runtimelinking=no
6463
6464         # Test if we are trying to use run time linking or normal
6465         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6466         # need to do runtime linking.
6467         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6468           for ld_flag in $LDFLAGS; do
6469           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6470             aix_use_runtimelinking=yes
6471             break
6472           fi
6473           done
6474         esac
6475
6476         exp_sym_flag='-bexport'
6477         no_entry_flag='-bnoentry'
6478       fi
6479
6480       # When large executables or shared objects are built, AIX ld can
6481       # have problems creating the table of contents.  If linking a library
6482       # or program results in "error TOC overflow" add -mminimal-toc to
6483       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6484       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6485
6486       archive_cmds=''
6487       hardcode_direct=yes
6488       hardcode_libdir_separator=':'
6489       link_all_deplibs=yes
6490
6491       if test "$GCC" = yes; then
6492         case $host_os in aix4.012|aix4.012.*)
6493         # We only want to do this on AIX 4.2 and lower, the check
6494         # below for broken collect2 doesn't work under 4.3+
6495           collect2name=`${CC} -print-prog-name=collect2`
6496           if test -f "$collect2name" && \
6497            strings "$collect2name" | grep resolve_lib_name >/dev/null
6498           then
6499           # We have reworked collect2
6500           hardcode_direct=yes
6501           else
6502           # We have old collect2
6503           hardcode_direct=unsupported
6504           # It fails to find uninstalled libraries when the uninstalled
6505           # path is not listed in the libpath.  Setting hardcode_minus_L
6506           # to unsupported forces relinking
6507           hardcode_minus_L=yes
6508           hardcode_libdir_flag_spec='-L$libdir'
6509           hardcode_libdir_separator=
6510           fi
6511         esac
6512         shared_flag='-shared'
6513       else
6514         # not using gcc
6515         if test "$host_cpu" = ia64; then
6516         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6517         # chokes on -Wl,-G. The following line is correct:
6518           shared_flag='-G'
6519         else
6520         if test "$aix_use_runtimelinking" = yes; then
6521             shared_flag='${wl}-G'
6522           else
6523             shared_flag='${wl}-bM:SRE'
6524         fi
6525         fi
6526       fi
6527
6528       # It seems that -bexpall does not export symbols beginning with
6529       # underscore (_), so it is better to generate a list of symbols to export.
6530       always_export_symbols=yes
6531       if test "$aix_use_runtimelinking" = yes; then
6532         # Warning - without using the other runtime loading flags (-brtl),
6533         # -berok will link without error, but may produce a broken library.
6534         allow_undefined_flag='-berok'
6535        # Determine the default libpath from the value encoded in an empty executable.
6536        cat >conftest.$ac_ext <<_ACEOF
6537 #line $LINENO "configure"
6538 /* confdefs.h.  */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h.  */
6543
6544 int
6545 main ()
6546 {
6547
6548   ;
6549   return 0;
6550 }
6551 _ACEOF
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6554   (eval $ac_link) 2>&5
6555   ac_status=$?
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); } &&
6558          { ac_try='test -s conftest$ac_exeext'
6559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560   (eval $ac_try) 2>&5
6561   ac_status=$?
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); }; }; then
6564
6565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6566 }'`
6567 # Check for a 64-bit object if we didn't find anything.
6568 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; }
6569 }'`; fi
6570 else
6571   echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574 fi
6575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6577
6578        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6579         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"
6580        else
6581         if test "$host_cpu" = ia64; then
6582           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6583           allow_undefined_flag="-z nodefs"
6584           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"
6585         else
6586          # Determine the default libpath from the value encoded in an empty executable.
6587          cat >conftest.$ac_ext <<_ACEOF
6588 #line $LINENO "configure"
6589 /* confdefs.h.  */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h.  */
6594
6595 int
6596 main ()
6597 {
6598
6599   ;
6600   return 0;
6601 }
6602 _ACEOF
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6605   (eval $ac_link) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); } &&
6609          { ac_try='test -s conftest$ac_exeext'
6610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611   (eval $ac_try) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; }; then
6615
6616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6617 }'`
6618 # Check for a 64-bit object if we didn't find anything.
6619 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; }
6620 }'`; fi
6621 else
6622   echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6624
6625 fi
6626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6628
6629          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6630           # Warning - without using the other run time loading flags,
6631           # -berok will link without error, but may produce a broken library.
6632           no_undefined_flag=' ${wl}-bernotok'
6633           allow_undefined_flag=' ${wl}-berok'
6634           # -bexpall does not export symbols beginning with underscore (_)
6635           always_export_symbols=yes
6636           # Exported symbols can be pulled into shared objects from archives
6637           whole_archive_flag_spec=' '
6638           archive_cmds_need_lc=yes
6639           # This is similar to how AIX traditionally builds it's shared libraries.
6640           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'
6641         fi
6642       fi
6643       ;;
6644
6645     amigaos*)
6646       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)'
6647       hardcode_libdir_flag_spec='-L$libdir'
6648       hardcode_minus_L=yes
6649       # see comment about different semantics on the GNU ld section
6650       ld_shlibs=no
6651       ;;
6652
6653     bsdi4*)
6654       export_dynamic_flag_spec=-rdynamic
6655       ;;
6656
6657     cygwin* | mingw* | pw32*)
6658       # When not using gcc, we currently assume that we are using
6659       # Microsoft Visual C++.
6660       # hardcode_libdir_flag_spec is actually meaningless, as there is
6661       # no search path for DLLs.
6662       hardcode_libdir_flag_spec=' '
6663       allow_undefined_flag=unsupported
6664       # Tell ltmain to make .lib files, not .a files.
6665       libext=lib
6666       # Tell ltmain to make .dll files, not .so files.
6667       shrext=".dll"
6668       # FIXME: Setting linknames here is a bad hack.
6669       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6670       # The linker will automatically build a .lib file if we build a DLL.
6671       old_archive_From_new_cmds='true'
6672       # FIXME: Should let the user specify the lib program.
6673       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6674       fix_srcfile_path='`cygpath -w "$srcfile"`'
6675       enable_shared_with_static_runtimes=yes
6676       ;;
6677
6678     darwin* | rhapsody*)
6679     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6680       archive_cmds_need_lc=no
6681       case "$host_os" in
6682       rhapsody* | darwin1.[012])
6683         allow_undefined_flag='-undefined suppress'
6684         ;;
6685       *) # Darwin 1.3 on
6686         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6687         ;;
6688       esac
6689       # FIXME: Relying on posixy $() will cause problems for
6690       #        cross-compilation, but unfortunately the echo tests do not
6691       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6692       #        `"' quotes if we put them in here... so don't!
6693         lt_int_apple_cc_single_mod=no
6694         output_verbose_link_cmd='echo'
6695         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6696           lt_int_apple_cc_single_mod=yes
6697         fi
6698         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6699           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6700         else
6701         archive_cmds='$CC -r ${wl}-bind_at_load -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'
6702       fi
6703       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6704       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6705         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6706           archive_expsym_cmds='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}'
6707         else
6708           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6709         fi
6710           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6711       hardcode_direct=no
6712       hardcode_automatic=yes
6713       hardcode_shlibpath_var=unsupported
6714       whole_archive_flag_spec='-all_load $convenience'
6715       link_all_deplibs=yes
6716     fi
6717       ;;
6718
6719     dgux*)
6720       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6721       hardcode_libdir_flag_spec='-L$libdir'
6722       hardcode_shlibpath_var=no
6723       ;;
6724
6725     freebsd1*)
6726       ld_shlibs=no
6727       ;;
6728
6729     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6730     # support.  Future versions do this automatically, but an explicit c++rt0.o
6731     # does not break anything, and helps significantly (at the cost of a little
6732     # extra space).
6733     freebsd2.2*)
6734       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6735       hardcode_libdir_flag_spec='-R$libdir'
6736       hardcode_direct=yes
6737       hardcode_shlibpath_var=no
6738       ;;
6739
6740     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6741     freebsd2*)
6742       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6743       hardcode_direct=yes
6744       hardcode_minus_L=yes
6745       hardcode_shlibpath_var=no
6746       ;;
6747
6748     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6749     freebsd*)
6750       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6751       hardcode_libdir_flag_spec='-R$libdir'
6752       hardcode_direct=yes
6753       hardcode_shlibpath_var=no
6754       ;;
6755
6756     hpux9*)
6757       if test "$GCC" = yes; then
6758         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'
6759       else
6760         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'
6761       fi
6762       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6763       hardcode_libdir_separator=:
6764       hardcode_direct=yes
6765
6766       # hardcode_minus_L: Not really in the search PATH,
6767       # but as the default location of the library.
6768       hardcode_minus_L=yes
6769       export_dynamic_flag_spec='${wl}-E'
6770       ;;
6771
6772     hpux10* | hpux11*)
6773       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6774         case "$host_cpu" in
6775         hppa*64*|ia64*)
6776           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6777           ;;
6778         *)
6779           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6780           ;;
6781         esac
6782       else
6783         case "$host_cpu" in
6784         hppa*64*|ia64*)
6785           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6786           ;;
6787         *)
6788           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6789           ;;
6790         esac
6791       fi
6792       if test "$with_gnu_ld" = no; then
6793         case "$host_cpu" in
6794         hppa*64*)
6795           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6796           hardcode_libdir_flag_spec_ld='+b $libdir'
6797           hardcode_libdir_separator=:
6798           hardcode_direct=no
6799           hardcode_shlibpath_var=no
6800           ;;
6801         ia64*)
6802           hardcode_libdir_flag_spec='-L$libdir'
6803           hardcode_direct=no
6804           hardcode_shlibpath_var=no
6805
6806           # hardcode_minus_L: Not really in the search PATH,
6807           # but as the default location of the library.
6808           hardcode_minus_L=yes
6809           ;;
6810         *)
6811           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6812           hardcode_libdir_separator=:
6813           hardcode_direct=yes
6814           export_dynamic_flag_spec='${wl}-E'
6815
6816           # hardcode_minus_L: Not really in the search PATH,
6817           # but as the default location of the library.
6818           hardcode_minus_L=yes
6819           ;;
6820         esac
6821       fi
6822       ;;
6823
6824     irix5* | irix6* | nonstopux*)
6825       if test "$GCC" = yes; then
6826         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'
6827       else
6828         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'
6829         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6830       fi
6831       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6832       hardcode_libdir_separator=:
6833       link_all_deplibs=yes
6834       ;;
6835
6836     netbsd*)
6837       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6838         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6839       else
6840         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6841       fi
6842       hardcode_libdir_flag_spec='-R$libdir'
6843       hardcode_direct=yes
6844       hardcode_shlibpath_var=no
6845       ;;
6846
6847     newsos6)
6848       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6849       hardcode_direct=yes
6850       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6851       hardcode_libdir_separator=:
6852       hardcode_shlibpath_var=no
6853       ;;
6854
6855     openbsd*)
6856       hardcode_direct=yes
6857       hardcode_shlibpath_var=no
6858       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6859         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6860         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6861         export_dynamic_flag_spec='${wl}-E'
6862       else
6863        case $host_os in
6864          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6865            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6866            hardcode_libdir_flag_spec='-R$libdir'
6867            ;;
6868          *)
6869            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6870            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6871            ;;
6872        esac
6873       fi
6874       ;;
6875
6876     os2*)
6877       hardcode_libdir_flag_spec='-L$libdir'
6878       hardcode_minus_L=yes
6879       allow_undefined_flag=unsupported
6880       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'
6881       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6882       ;;
6883
6884     osf3*)
6885       if test "$GCC" = yes; then
6886         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6887         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'
6888       else
6889         allow_undefined_flag=' -expect_unresolved \*'
6890         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'
6891       fi
6892       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6893       hardcode_libdir_separator=:
6894       ;;
6895
6896     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6897       if test "$GCC" = yes; then
6898         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6899         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'
6900         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6901       else
6902         allow_undefined_flag=' -expect_unresolved \*'
6903         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'
6904         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6905         $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'
6906
6907         # Both c and cxx compiler support -rpath directly
6908         hardcode_libdir_flag_spec='-rpath $libdir'
6909       fi
6910       hardcode_libdir_separator=:
6911       ;;
6912
6913     sco3.2v5*)
6914       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6915       hardcode_shlibpath_var=no
6916       export_dynamic_flag_spec='${wl}-Bexport'
6917       runpath_var=LD_RUN_PATH
6918       hardcode_runpath_var=yes
6919       ;;
6920
6921     solaris*)
6922       no_undefined_flag=' -z text'
6923       if test "$GCC" = yes; then
6924         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6925         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6926           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6927       else
6928         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6929         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6930         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6931       fi
6932       hardcode_libdir_flag_spec='-R$libdir'
6933       hardcode_shlibpath_var=no
6934       case $host_os in
6935       solaris2.[0-5] | solaris2.[0-5].*) ;;
6936       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6937         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6938       esac
6939       link_all_deplibs=yes
6940       ;;
6941
6942     sunos4*)
6943       if test "x$host_vendor" = xsequent; then
6944         # Use $CC to link under sequent, because it throws in some extra .o
6945         # files that make .init and .fini sections work.
6946         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6947       else
6948         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6949       fi
6950       hardcode_libdir_flag_spec='-L$libdir'
6951       hardcode_direct=yes
6952       hardcode_minus_L=yes
6953       hardcode_shlibpath_var=no
6954       ;;
6955
6956     sysv4)
6957       case $host_vendor in
6958         sni)
6959           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6960           hardcode_direct=yes # is this really true???
6961         ;;
6962         siemens)
6963           ## LD is ld it makes a PLAMLIB
6964           ## CC just makes a GrossModule.
6965           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6966           reload_cmds='$CC -r -o $output$reload_objs'
6967           hardcode_direct=no
6968         ;;
6969         motorola)
6970           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6971           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6972         ;;
6973       esac
6974       runpath_var='LD_RUN_PATH'
6975       hardcode_shlibpath_var=no
6976       ;;
6977
6978     sysv4.3*)
6979       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6980       hardcode_shlibpath_var=no
6981       export_dynamic_flag_spec='-Bexport'
6982       ;;
6983
6984     sysv4*MP*)
6985       if test -d /usr/nec; then
6986         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6987         hardcode_shlibpath_var=no
6988         runpath_var=LD_RUN_PATH
6989         hardcode_runpath_var=yes
6990         ld_shlibs=yes
6991       fi
6992       ;;
6993
6994     sysv4.2uw2*)
6995       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6996       hardcode_direct=yes
6997       hardcode_minus_L=no
6998       hardcode_shlibpath_var=no
6999       hardcode_runpath_var=yes
7000       runpath_var=LD_RUN_PATH
7001       ;;
7002
7003    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7004       no_undefined_flag='${wl}-z ${wl}text'
7005       if test "$GCC" = yes; then
7006         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7007       else
7008         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7009       fi
7010       runpath_var='LD_RUN_PATH'
7011       hardcode_shlibpath_var=no
7012       ;;
7013
7014     sysv5*)
7015       no_undefined_flag=' -z text'
7016       # $CC -shared without GNU ld will not create a library from C++
7017       # object files and a static libstdc++, better avoid it by now
7018       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7019       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7020                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7021       hardcode_libdir_flag_spec=
7022       hardcode_shlibpath_var=no
7023       runpath_var='LD_RUN_PATH'
7024       ;;
7025
7026     uts4*)
7027       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7028       hardcode_libdir_flag_spec='-L$libdir'
7029       hardcode_shlibpath_var=no
7030       ;;
7031
7032     *)
7033       ld_shlibs=no
7034       ;;
7035     esac
7036   fi
7037
7038 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7039 echo "${ECHO_T}$ld_shlibs" >&6
7040 test "$ld_shlibs" = no && can_build_shared=no
7041
7042 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7043 if test "$GCC" = yes; then
7044   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7045 fi
7046
7047 #
7048 # Do we need to explicitly link libc?
7049 #
7050 case "x$archive_cmds_need_lc" in
7051 x|xyes)
7052   # Assume -lc should be added
7053   archive_cmds_need_lc=yes
7054
7055   if test "$enable_shared" = yes && test "$GCC" = yes; then
7056     case $archive_cmds in
7057     *'~'*)
7058       # FIXME: we may have to deal with multi-command sequences.
7059       ;;
7060     '$CC '*)
7061       # Test whether the compiler implicitly links with -lc since on some
7062       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7063       # to ld, don't add -lc before -lgcc.
7064       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7065 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7066       $rm conftest*
7067       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7068
7069       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070   (eval $ac_compile) 2>&5
7071   ac_status=$?
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); } 2>conftest.err; then
7074         soname=conftest
7075         lib=conftest
7076         libobjs=conftest.$ac_objext
7077         deplibs=
7078         wl=$lt_prog_compiler_wl
7079         compiler_flags=-v
7080         linker_flags=-v
7081         verstring=
7082         output_objdir=.
7083         libname=conftest
7084         lt_save_allow_undefined_flag=$allow_undefined_flag
7085         allow_undefined_flag=
7086         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7087   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7088   ac_status=$?
7089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); }
7091         then
7092           archive_cmds_need_lc=no
7093         else
7094           archive_cmds_need_lc=yes
7095         fi
7096         allow_undefined_flag=$lt_save_allow_undefined_flag
7097       else
7098         cat conftest.err 1>&5
7099       fi
7100       $rm conftest*
7101       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7102 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7103       ;;
7104     esac
7105   fi
7106   ;;
7107 esac
7108
7109 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7110 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7111 hardcode_action=
7112 if test -n "$hardcode_libdir_flag_spec" || \
7113    test -n "$runpath_var " || \
7114    test "X$hardcode_automatic"="Xyes" ; then
7115
7116   # We can hardcode non-existant directories.
7117   if test "$hardcode_direct" != no &&
7118      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7119      # have to relink, otherwise we might link with an installed library
7120      # when we should be linking with a yet-to-be-installed one
7121      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7122      test "$hardcode_minus_L" != no; then
7123     # Linking always hardcodes the temporary library directory.
7124     hardcode_action=relink
7125   else
7126     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7127     hardcode_action=immediate
7128   fi
7129 else
7130   # We cannot hardcode anything, or else we can only hardcode existing
7131   # directories.
7132   hardcode_action=unsupported
7133 fi
7134 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7135 echo "${ECHO_T}$hardcode_action" >&6
7136
7137 if test "$hardcode_action" = relink; then
7138   # Fast installation is not supported
7139   enable_fast_install=no
7140 elif test "$shlibpath_overrides_runpath" = yes ||
7141      test "$enable_shared" = no; then
7142   # Fast installation is not necessary
7143   enable_fast_install=needless
7144 fi
7145
7146 striplib=
7147 old_striplib=
7148 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7149 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7150 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7151   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7152   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7153   echo "$as_me:$LINENO: result: yes" >&5
7154 echo "${ECHO_T}yes" >&6
7155 else
7156 # FIXME - insert some real tests, host_os isn't really good enough
7157   case $host_os in
7158    darwin*)
7159        if test -n "$STRIP" ; then
7160          striplib="$STRIP -x"
7161          echo "$as_me:$LINENO: result: yes" >&5
7162 echo "${ECHO_T}yes" >&6
7163        else
7164   echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6
7166 fi
7167        ;;
7168    *)
7169   echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6
7171     ;;
7172   esac
7173 fi
7174
7175 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7176 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7177 library_names_spec=
7178 libname_spec='lib$name'
7179 soname_spec=
7180 shrext=".so"
7181 postinstall_cmds=
7182 postuninstall_cmds=
7183 finish_cmds=
7184 finish_eval=
7185 shlibpath_var=
7186 shlibpath_overrides_runpath=unknown
7187 version_type=none
7188 dynamic_linker="$host_os ld.so"
7189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7190 if test "$GCC" = yes; then
7191   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7192   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7193     # if the path contains ";" then we assume it to be the separator
7194     # otherwise default to the standard path separator (i.e. ":") - it is
7195     # assumed that no part of a normal pathname contains ";" but that should
7196     # okay in the real world where ";" in dirpaths is itself problematic.
7197     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7198   else
7199     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7200   fi
7201 else
7202   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7203 fi
7204 need_lib_prefix=unknown
7205 hardcode_into_libs=no
7206
7207 # when you set need_version to no, make sure it does not cause -set_version
7208 # flags to be left without arguments
7209 need_version=unknown
7210
7211 case $host_os in
7212 aix3*)
7213   version_type=linux
7214   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7215   shlibpath_var=LIBPATH
7216
7217   # AIX 3 has no versioning support, so we append a major version to the name.
7218   soname_spec='${libname}${release}${shared_ext}$major'
7219   ;;
7220
7221 aix4* | aix5*)
7222   version_type=linux
7223   need_lib_prefix=no
7224   need_version=no
7225   hardcode_into_libs=yes
7226   if test "$host_cpu" = ia64; then
7227     # AIX 5 supports IA64
7228     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7229     shlibpath_var=LD_LIBRARY_PATH
7230   else
7231     # With GCC up to 2.95.x, collect2 would create an import file
7232     # for dependence libraries.  The import file would start with
7233     # the line `#! .'.  This would cause the generated library to
7234     # depend on `.', always an invalid library.  This was fixed in
7235     # development snapshots of GCC prior to 3.0.
7236     case $host_os in
7237       aix4 | aix4.[01] | aix4.[01].*)
7238       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7239            echo ' yes '
7240            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7241         :
7242       else
7243         can_build_shared=no
7244       fi
7245       ;;
7246     esac
7247     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7248     # soname into executable. Probably we can add versioning support to
7249     # collect2, so additional links can be useful in future.
7250     if test "$aix_use_runtimelinking" = yes; then
7251       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7252       # instead of lib<name>.a to let people know that these are not
7253       # typical AIX shared libraries.
7254       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7255     else
7256       # We preserve .a as extension for shared libraries through AIX4.2
7257       # and later when we are not doing run time linking.
7258       library_names_spec='${libname}${release}.a $libname.a'
7259       soname_spec='${libname}${release}${shared_ext}$major'
7260     fi
7261     shlibpath_var=LIBPATH
7262   fi
7263   ;;
7264
7265 amigaos*)
7266   library_names_spec='$libname.ixlibrary $libname.a'
7267   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7268   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'
7269   ;;
7270
7271 beos*)
7272   library_names_spec='${libname}${shared_ext}'
7273   dynamic_linker="$host_os ld.so"
7274   shlibpath_var=LIBRARY_PATH
7275   ;;
7276
7277 bsdi4*)
7278   version_type=linux
7279   need_version=no
7280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7281   soname_spec='${libname}${release}${shared_ext}$major'
7282   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7283   shlibpath_var=LD_LIBRARY_PATH
7284   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7285   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7286   # the default ld.so.conf also contains /usr/contrib/lib and
7287   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7288   # libtool to hard-code these into programs
7289   ;;
7290
7291 cygwin* | mingw* | pw32*)
7292   version_type=windows
7293   shrext=".dll"
7294   need_version=no
7295   need_lib_prefix=no
7296
7297   case $GCC,$host_os in
7298   yes,cygwin* | yes,mingw* | yes,pw32*)
7299     library_names_spec='$libname.dll.a'
7300     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7301     postinstall_cmds='base_file=`basename \${file}`~
7302       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7303       dldir=$destdir/`dirname \$dlpath`~
7304       test -d \$dldir || mkdir -p \$dldir~
7305       $install_prog $dir/$dlname \$dldir/$dlname'
7306     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7307       dlpath=$dir/\$dldll~
7308        $rm \$dlpath'
7309     shlibpath_overrides_runpath=yes
7310
7311     case $host_os in
7312     cygwin*)
7313       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7314       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7315       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7316       ;;
7317     mingw*)
7318       # MinGW DLLs use traditional 'lib' prefix
7319       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7320       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7321       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7322         # It is most probably a Windows format PATH printed by
7323         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7324         # path with ; separators, and with drive letters. We can handle the
7325         # drive letters (cygwin fileutils understands them), so leave them,
7326         # especially as we might pass files found there to a mingw objdump,
7327         # which wouldn't understand a cygwinified path. Ahh.
7328         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7329       else
7330         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7331       fi
7332       ;;
7333     pw32*)
7334       # pw32 DLLs use 'pw' prefix rather than 'lib'
7335       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7336       ;;
7337     esac
7338     ;;
7339
7340   *)
7341     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7342     ;;
7343   esac
7344   dynamic_linker='Win32 ld.exe'
7345   # FIXME: first we should search . and the directory the executable is in
7346   shlibpath_var=PATH
7347   ;;
7348
7349 darwin* | rhapsody*)
7350   dynamic_linker="$host_os dyld"
7351   version_type=darwin
7352   need_lib_prefix=no
7353   need_version=no
7354   # FIXME: Relying on posixy $() will cause problems for
7355   #        cross-compilation, but unfortunately the echo tests do not
7356   #        yet detect zsh echo's removal of \ escapes.
7357   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7358   soname_spec='${libname}${release}${major}$shared_ext'
7359   shlibpath_overrides_runpath=yes
7360   shlibpath_var=DYLD_LIBRARY_PATH
7361   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7362   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7363   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7364   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"`
7365   fi
7366   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7367   ;;
7368
7369 dgux*)
7370   version_type=linux
7371   need_lib_prefix=no
7372   need_version=no
7373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7374   soname_spec='${libname}${release}${shared_ext}$major'
7375   shlibpath_var=LD_LIBRARY_PATH
7376   ;;
7377
7378 freebsd1*)
7379   dynamic_linker=no
7380   ;;
7381
7382 freebsd*)
7383   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7384   version_type=freebsd-$objformat
7385   case $version_type in
7386     freebsd-elf*)
7387       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7388       need_version=no
7389       need_lib_prefix=no
7390       ;;
7391     freebsd-*)
7392       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7393       need_version=yes
7394       ;;
7395   esac
7396   shlibpath_var=LD_LIBRARY_PATH
7397   case $host_os in
7398   freebsd2*)
7399     shlibpath_overrides_runpath=yes
7400     ;;
7401   freebsd3.01* | freebsdelf3.01*)
7402     shlibpath_overrides_runpath=yes
7403     hardcode_into_libs=yes
7404     ;;
7405   *) # from 3.2 on
7406     shlibpath_overrides_runpath=no
7407     hardcode_into_libs=yes
7408     ;;
7409   esac
7410   ;;
7411
7412 gnu*)
7413   version_type=linux
7414   need_lib_prefix=no
7415   need_version=no
7416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7417   soname_spec='${libname}${release}${shared_ext}$major'
7418   shlibpath_var=LD_LIBRARY_PATH
7419   hardcode_into_libs=yes
7420   ;;
7421
7422 hpux9* | hpux10* | hpux11*)
7423   # Give a soname corresponding to the major version so that dld.sl refuses to
7424   # link against other versions.
7425   version_type=sunos
7426   need_lib_prefix=no
7427   need_version=no
7428   case "$host_cpu" in
7429   ia64*)
7430     shrext='.so'
7431     hardcode_into_libs=yes
7432     dynamic_linker="$host_os dld.so"
7433     shlibpath_var=LD_LIBRARY_PATH
7434     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7436     soname_spec='${libname}${release}${shared_ext}$major'
7437     if test "X$HPUX_IA64_MODE" = X32; then
7438       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7439     else
7440       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7441     fi
7442     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7443     ;;
7444    hppa*64*)
7445      shrext='.sl'
7446      hardcode_into_libs=yes
7447      dynamic_linker="$host_os dld.sl"
7448      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7449      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7450      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7451      soname_spec='${libname}${release}${shared_ext}$major'
7452      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7453      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7454      ;;
7455    *)
7456     shrext='.sl'
7457     dynamic_linker="$host_os dld.sl"
7458     shlibpath_var=SHLIB_PATH
7459     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7461     soname_spec='${libname}${release}${shared_ext}$major'
7462     ;;
7463   esac
7464   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7465   postinstall_cmds='chmod 555 $lib'
7466   ;;
7467
7468 irix5* | irix6* | nonstopux*)
7469   case $host_os in
7470     nonstopux*) version_type=nonstopux ;;
7471     *)
7472         if test "$lt_cv_prog_gnu_ld" = yes; then
7473                 version_type=linux
7474         else
7475                 version_type=irix
7476         fi ;;
7477   esac
7478   need_lib_prefix=no
7479   need_version=no
7480   soname_spec='${libname}${release}${shared_ext}$major'
7481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7482   case $host_os in
7483   irix5* | nonstopux*)
7484     libsuff= shlibsuff=
7485     ;;
7486   *)
7487     case $LD in # libtool.m4 will add one of these switches to LD
7488     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7489       libsuff= shlibsuff= libmagic=32-bit;;
7490     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7491       libsuff=32 shlibsuff=N32 libmagic=N32;;
7492     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7493       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7494     *) libsuff= shlibsuff= libmagic=never-match;;
7495     esac
7496     ;;
7497   esac
7498   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7499   shlibpath_overrides_runpath=no
7500   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7501   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7502   hardcode_into_libs=yes
7503   ;;
7504
7505 # No shared lib support for Linux oldld, aout, or coff.
7506 linux*oldld* | linux*aout* | linux*coff*)
7507   dynamic_linker=no
7508   ;;
7509
7510 # This must be Linux ELF.
7511 linux*)
7512   version_type=linux
7513   need_lib_prefix=no
7514   need_version=no
7515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7516   soname_spec='${libname}${release}${shared_ext}$major'
7517   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7518   shlibpath_var=LD_LIBRARY_PATH
7519   shlibpath_overrides_runpath=no
7520   # This implies no fast_install, which is unacceptable.
7521   # Some rework will be needed to allow for fast_install
7522   # before this can be enabled.
7523   hardcode_into_libs=yes
7524
7525   # We used to test for /lib/ld.so.1 and disable shared libraries on
7526   # powerpc, because MkLinux only supported shared libraries with the
7527   # GNU dynamic linker.  Since this was broken with cross compilers,
7528   # most powerpc-linux boxes support dynamic linking these days and
7529   # people can always --disable-shared, the test was removed, and we
7530   # assume the GNU/Linux dynamic linker is in use.
7531   dynamic_linker='GNU/Linux ld.so'
7532   ;;
7533
7534 netbsd*)
7535   version_type=sunos
7536   need_lib_prefix=no
7537   need_version=no
7538   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7540     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7541     dynamic_linker='NetBSD (a.out) ld.so'
7542   else
7543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7544     soname_spec='${libname}${release}${shared_ext}$major'
7545     dynamic_linker='NetBSD ld.elf_so'
7546   fi
7547   shlibpath_var=LD_LIBRARY_PATH
7548   shlibpath_overrides_runpath=yes
7549   hardcode_into_libs=yes
7550   ;;
7551
7552 newsos6)
7553   version_type=linux
7554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7555   shlibpath_var=LD_LIBRARY_PATH
7556   shlibpath_overrides_runpath=yes
7557   ;;
7558
7559 nto-qnx)
7560   version_type=linux
7561   need_lib_prefix=no
7562   need_version=no
7563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7564   soname_spec='${libname}${release}${shared_ext}$major'
7565   shlibpath_var=LD_LIBRARY_PATH
7566   shlibpath_overrides_runpath=yes
7567   ;;
7568
7569 openbsd*)
7570   version_type=sunos
7571   need_lib_prefix=no
7572   need_version=no
7573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7574   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7575   shlibpath_var=LD_LIBRARY_PATH
7576   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7577     case $host_os in
7578       openbsd2.[89] | openbsd2.[89].*)
7579         shlibpath_overrides_runpath=no
7580         ;;
7581       *)
7582         shlibpath_overrides_runpath=yes
7583         ;;
7584       esac
7585   else
7586     shlibpath_overrides_runpath=yes
7587   fi
7588   ;;
7589
7590 os2*)
7591   libname_spec='$name'
7592   shrext=".dll"
7593   need_lib_prefix=no
7594   library_names_spec='$libname${shared_ext} $libname.a'
7595   dynamic_linker='OS/2 ld.exe'
7596   shlibpath_var=LIBPATH
7597   ;;
7598
7599 osf3* | osf4* | osf5*)
7600   version_type=osf
7601   need_lib_prefix=no
7602   need_version=no
7603   soname_spec='${libname}${release}${shared_ext}$major'
7604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7605   shlibpath_var=LD_LIBRARY_PATH
7606   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7607   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7608   ;;
7609
7610 sco3.2v5*)
7611   version_type=osf
7612   soname_spec='${libname}${release}${shared_ext}$major'
7613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7614   shlibpath_var=LD_LIBRARY_PATH
7615   ;;
7616
7617 solaris*)
7618   version_type=linux
7619   need_lib_prefix=no
7620   need_version=no
7621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7622   soname_spec='${libname}${release}${shared_ext}$major'
7623   shlibpath_var=LD_LIBRARY_PATH
7624   shlibpath_overrides_runpath=yes
7625   hardcode_into_libs=yes
7626   # ldd complains unless libraries are executable
7627   postinstall_cmds='chmod +x $lib'
7628   ;;
7629
7630 sunos4*)
7631   version_type=sunos
7632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7633   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7634   shlibpath_var=LD_LIBRARY_PATH
7635   shlibpath_overrides_runpath=yes
7636   if test "$with_gnu_ld" = yes; then
7637     need_lib_prefix=no
7638   fi
7639   need_version=yes
7640   ;;
7641
7642 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7643   version_type=linux
7644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7645   soname_spec='${libname}${release}${shared_ext}$major'
7646   shlibpath_var=LD_LIBRARY_PATH
7647   case $host_vendor in
7648     sni)
7649       shlibpath_overrides_runpath=no
7650       need_lib_prefix=no
7651       export_dynamic_flag_spec='${wl}-Blargedynsym'
7652       runpath_var=LD_RUN_PATH
7653       ;;
7654     siemens)
7655       need_lib_prefix=no
7656       ;;
7657     motorola)
7658       need_lib_prefix=no
7659       need_version=no
7660       shlibpath_overrides_runpath=no
7661       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7662       ;;
7663   esac
7664   ;;
7665
7666 sysv4*MP*)
7667   if test -d /usr/nec ;then
7668     version_type=linux
7669     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7670     soname_spec='$libname${shared_ext}.$major'
7671     shlibpath_var=LD_LIBRARY_PATH
7672   fi
7673   ;;
7674
7675 uts4*)
7676   version_type=linux
7677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678   soname_spec='${libname}${release}${shared_ext}$major'
7679   shlibpath_var=LD_LIBRARY_PATH
7680   ;;
7681
7682 *)
7683   dynamic_linker=no
7684   ;;
7685 esac
7686 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7687 echo "${ECHO_T}$dynamic_linker" >&6
7688 test "$dynamic_linker" = no && can_build_shared=no
7689
7690 if test "x$enable_dlopen" != xyes; then
7691   enable_dlopen=unknown
7692   enable_dlopen_self=unknown
7693   enable_dlopen_self_static=unknown
7694 else
7695   lt_cv_dlopen=no
7696   lt_cv_dlopen_libs=
7697
7698   case $host_os in
7699   beos*)
7700     lt_cv_dlopen="load_add_on"
7701     lt_cv_dlopen_libs=
7702     lt_cv_dlopen_self=yes
7703     ;;
7704
7705   mingw* | pw32*)
7706     lt_cv_dlopen="LoadLibrary"
7707     lt_cv_dlopen_libs=
7708    ;;
7709
7710   cygwin*)
7711     lt_cv_dlopen="dlopen"
7712     lt_cv_dlopen_libs=
7713    ;;
7714
7715   darwin*)
7716   # if libdl is installed we need to link against it
7717     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7720   echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722   ac_check_lib_save_LIBS=$LIBS
7723 LIBS="-ldl  $LIBS"
7724 cat >conftest.$ac_ext <<_ACEOF
7725 #line $LINENO "configure"
7726 /* confdefs.h.  */
7727 _ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h.  */
7731
7732 /* Override any gcc2 internal prototype to avoid an error.  */
7733 #ifdef __cplusplus
7734 extern "C"
7735 #endif
7736 /* We use char because int might match the return type of a gcc2
7737    builtin and then its argument prototype would still apply.  */
7738 char dlopen ();
7739 int
7740 main ()
7741 {
7742 dlopen ();
7743   ;
7744   return 0;
7745 }
7746 _ACEOF
7747 rm -f conftest.$ac_objext conftest$ac_exeext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7749   (eval $ac_link) 2>&5
7750   ac_status=$?
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); } &&
7753          { ac_try='test -s conftest$ac_exeext'
7754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755   (eval $ac_try) 2>&5
7756   ac_status=$?
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); }; }; then
7759   ac_cv_lib_dl_dlopen=yes
7760 else
7761   echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7763
7764 ac_cv_lib_dl_dlopen=no
7765 fi
7766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7767 LIBS=$ac_check_lib_save_LIBS
7768 fi
7769 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7770 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7771 if test $ac_cv_lib_dl_dlopen = yes; then
7772   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7773 else
7774
7775     lt_cv_dlopen="dyld"
7776     lt_cv_dlopen_libs=
7777     lt_cv_dlopen_self=yes
7778
7779 fi
7780
7781    ;;
7782
7783   *)
7784     echo "$as_me:$LINENO: checking for shl_load" >&5
7785 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7786 if test "${ac_cv_func_shl_load+set}" = set; then
7787   echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789   cat >conftest.$ac_ext <<_ACEOF
7790 #line $LINENO "configure"
7791 /* confdefs.h.  */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h.  */
7796 /* System header to define __stub macros and hopefully few prototypes,
7797     which can conflict with char shl_load (); below.
7798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7799     <limits.h> exists even on freestanding compilers.  */
7800 #ifdef __STDC__
7801 # include <limits.h>
7802 #else
7803 # include <assert.h>
7804 #endif
7805 /* Override any gcc2 internal prototype to avoid an error.  */
7806 #ifdef __cplusplus
7807 extern "C"
7808 {
7809 #endif
7810 /* We use char because int might match the return type of a gcc2
7811    builtin and then its argument prototype would still apply.  */
7812 char shl_load ();
7813 /* The GNU C library defines this for functions which it implements
7814     to always fail with ENOSYS.  Some functions are actually named
7815     something starting with __ and the normal name is an alias.  */
7816 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7817 choke me
7818 #else
7819 char (*f) () = shl_load;
7820 #endif
7821 #ifdef __cplusplus
7822 }
7823 #endif
7824
7825 int
7826 main ()
7827 {
7828 return f != shl_load;
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 rm -f conftest.$ac_objext conftest$ac_exeext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835   (eval $ac_link) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); } &&
7839          { ac_try='test -s conftest$ac_exeext'
7840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841   (eval $ac_try) 2>&5
7842   ac_status=$?
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); }; }; then
7845   ac_cv_func_shl_load=yes
7846 else
7847   echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7849
7850 ac_cv_func_shl_load=no
7851 fi
7852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7853 fi
7854 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7855 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7856 if test $ac_cv_func_shl_load = yes; then
7857   lt_cv_dlopen="shl_load"
7858 else
7859   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7860 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7861 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7862   echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864   ac_check_lib_save_LIBS=$LIBS
7865 LIBS="-ldld  $LIBS"
7866 cat >conftest.$ac_ext <<_ACEOF
7867 #line $LINENO "configure"
7868 /* confdefs.h.  */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h.  */
7873
7874 /* Override any gcc2 internal prototype to avoid an error.  */
7875 #ifdef __cplusplus
7876 extern "C"
7877 #endif
7878 /* We use char because int might match the return type of a gcc2
7879    builtin and then its argument prototype would still apply.  */
7880 char shl_load ();
7881 int
7882 main ()
7883 {
7884 shl_load ();
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891   (eval $ac_link) 2>&5
7892   ac_status=$?
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); } &&
7895          { ac_try='test -s conftest$ac_exeext'
7896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897   (eval $ac_try) 2>&5
7898   ac_status=$?
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); }; }; then
7901   ac_cv_lib_dld_shl_load=yes
7902 else
7903   echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7905
7906 ac_cv_lib_dld_shl_load=no
7907 fi
7908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7909 LIBS=$ac_check_lib_save_LIBS
7910 fi
7911 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7912 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7913 if test $ac_cv_lib_dld_shl_load = yes; then
7914   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7915 else
7916   echo "$as_me:$LINENO: checking for dlopen" >&5
7917 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7918 if test "${ac_cv_func_dlopen+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921   cat >conftest.$ac_ext <<_ACEOF
7922 #line $LINENO "configure"
7923 /* confdefs.h.  */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h.  */
7928 /* System header to define __stub macros and hopefully few prototypes,
7929     which can conflict with char dlopen (); below.
7930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7931     <limits.h> exists even on freestanding compilers.  */
7932 #ifdef __STDC__
7933 # include <limits.h>
7934 #else
7935 # include <assert.h>
7936 #endif
7937 /* Override any gcc2 internal prototype to avoid an error.  */
7938 #ifdef __cplusplus
7939 extern "C"
7940 {
7941 #endif
7942 /* We use char because int might match the return type of a gcc2
7943    builtin and then its argument prototype would still apply.  */
7944 char dlopen ();
7945 /* The GNU C library defines this for functions which it implements
7946     to always fail with ENOSYS.  Some functions are actually named
7947     something starting with __ and the normal name is an alias.  */
7948 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7949 choke me
7950 #else
7951 char (*f) () = dlopen;
7952 #endif
7953 #ifdef __cplusplus
7954 }
7955 #endif
7956
7957 int
7958 main ()
7959 {
7960 return f != dlopen;
7961   ;
7962   return 0;
7963 }
7964 _ACEOF
7965 rm -f conftest.$ac_objext conftest$ac_exeext
7966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967   (eval $ac_link) 2>&5
7968   ac_status=$?
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); } &&
7971          { ac_try='test -s conftest$ac_exeext'
7972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973   (eval $ac_try) 2>&5
7974   ac_status=$?
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); }; }; then
7977   ac_cv_func_dlopen=yes
7978 else
7979   echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982 ac_cv_func_dlopen=no
7983 fi
7984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7985 fi
7986 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7987 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7988 if test $ac_cv_func_dlopen = yes; then
7989   lt_cv_dlopen="dlopen"
7990 else
7991   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7992 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7993 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7994   echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996   ac_check_lib_save_LIBS=$LIBS
7997 LIBS="-ldl  $LIBS"
7998 cat >conftest.$ac_ext <<_ACEOF
7999 #line $LINENO "configure"
8000 /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005
8006 /* Override any gcc2 internal prototype to avoid an error.  */
8007 #ifdef __cplusplus
8008 extern "C"
8009 #endif
8010 /* We use char because int might match the return type of a gcc2
8011    builtin and then its argument prototype would still apply.  */
8012 char dlopen ();
8013 int
8014 main ()
8015 {
8016 dlopen ();
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 rm -f conftest.$ac_objext conftest$ac_exeext
8022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8023   (eval $ac_link) 2>&5
8024   ac_status=$?
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); } &&
8027          { ac_try='test -s conftest$ac_exeext'
8028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029   (eval $ac_try) 2>&5
8030   ac_status=$?
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); }; }; then
8033   ac_cv_lib_dl_dlopen=yes
8034 else
8035   echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8037
8038 ac_cv_lib_dl_dlopen=no
8039 fi
8040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8041 LIBS=$ac_check_lib_save_LIBS
8042 fi
8043 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8044 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8045 if test $ac_cv_lib_dl_dlopen = yes; then
8046   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8047 else
8048   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8049 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8050 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8051   echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053   ac_check_lib_save_LIBS=$LIBS
8054 LIBS="-lsvld  $LIBS"
8055 cat >conftest.$ac_ext <<_ACEOF
8056 #line $LINENO "configure"
8057 /* confdefs.h.  */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h.  */
8062
8063 /* Override any gcc2 internal prototype to avoid an error.  */
8064 #ifdef __cplusplus
8065 extern "C"
8066 #endif
8067 /* We use char because int might match the return type of a gcc2
8068    builtin and then its argument prototype would still apply.  */
8069 char dlopen ();
8070 int
8071 main ()
8072 {
8073 dlopen ();
8074   ;
8075   return 0;
8076 }
8077 _ACEOF
8078 rm -f conftest.$ac_objext conftest$ac_exeext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080   (eval $ac_link) 2>&5
8081   ac_status=$?
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } &&
8084          { ac_try='test -s conftest$ac_exeext'
8085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086   (eval $ac_try) 2>&5
8087   ac_status=$?
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); }; }; then
8090   ac_cv_lib_svld_dlopen=yes
8091 else
8092   echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095 ac_cv_lib_svld_dlopen=no
8096 fi
8097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8098 LIBS=$ac_check_lib_save_LIBS
8099 fi
8100 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8101 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8102 if test $ac_cv_lib_svld_dlopen = yes; then
8103   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8104 else
8105   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8106 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8107 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8108   echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110   ac_check_lib_save_LIBS=$LIBS
8111 LIBS="-ldld  $LIBS"
8112 cat >conftest.$ac_ext <<_ACEOF
8113 #line $LINENO "configure"
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119
8120 /* Override any gcc2 internal prototype to avoid an error.  */
8121 #ifdef __cplusplus
8122 extern "C"
8123 #endif
8124 /* We use char because int might match the return type of a gcc2
8125    builtin and then its argument prototype would still apply.  */
8126 char dld_link ();
8127 int
8128 main ()
8129 {
8130 dld_link ();
8131   ;
8132   return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8137   (eval $ac_link) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); } &&
8141          { ac_try='test -s conftest$ac_exeext'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; }; then
8147   ac_cv_lib_dld_dld_link=yes
8148 else
8149   echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 ac_cv_lib_dld_dld_link=no
8153 fi
8154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8155 LIBS=$ac_check_lib_save_LIBS
8156 fi
8157 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8158 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8159 if test $ac_cv_lib_dld_dld_link = yes; then
8160   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8161 fi
8162
8163
8164 fi
8165
8166
8167 fi
8168
8169
8170 fi
8171
8172
8173 fi
8174
8175
8176 fi
8177
8178     ;;
8179   esac
8180
8181   if test "x$lt_cv_dlopen" != xno; then
8182     enable_dlopen=yes
8183   else
8184     enable_dlopen=no
8185   fi
8186
8187   case $lt_cv_dlopen in
8188   dlopen)
8189     save_CPPFLAGS="$CPPFLAGS"
8190     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8191
8192     save_LDFLAGS="$LDFLAGS"
8193     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8194
8195     save_LIBS="$LIBS"
8196     LIBS="$lt_cv_dlopen_libs $LIBS"
8197
8198     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8199 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8200 if test "${lt_cv_dlopen_self+set}" = set; then
8201   echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203           if test "$cross_compiling" = yes; then :
8204   lt_cv_dlopen_self=cross
8205 else
8206   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8207   lt_status=$lt_dlunknown
8208   cat > conftest.$ac_ext <<EOF
8209 #line 8209 "configure"
8210 #include "confdefs.h"
8211
8212 #if HAVE_DLFCN_H
8213 #include <dlfcn.h>
8214 #endif
8215
8216 #include <stdio.h>
8217
8218 #ifdef RTLD_GLOBAL
8219 #  define LT_DLGLOBAL           RTLD_GLOBAL
8220 #else
8221 #  ifdef DL_GLOBAL
8222 #    define LT_DLGLOBAL         DL_GLOBAL
8223 #  else
8224 #    define LT_DLGLOBAL         0
8225 #  endif
8226 #endif
8227
8228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8229    find out it does not work in some platform. */
8230 #ifndef LT_DLLAZY_OR_NOW
8231 #  ifdef RTLD_LAZY
8232 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8233 #  else
8234 #    ifdef DL_LAZY
8235 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8236 #    else
8237 #      ifdef RTLD_NOW
8238 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8239 #      else
8240 #        ifdef DL_NOW
8241 #          define LT_DLLAZY_OR_NOW      DL_NOW
8242 #        else
8243 #          define LT_DLLAZY_OR_NOW      0
8244 #        endif
8245 #      endif
8246 #    endif
8247 #  endif
8248 #endif
8249
8250 #ifdef __cplusplus
8251 extern "C" void exit (int);
8252 #endif
8253
8254 void fnord() { int i=42;}
8255 int main ()
8256 {
8257   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8258   int status = $lt_dlunknown;
8259
8260   if (self)
8261     {
8262       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8263       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8264       /* dlclose (self); */
8265     }
8266
8267     exit (status);
8268 }
8269 EOF
8270   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8271   (eval $ac_link) 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8275     (./conftest; exit; ) 2>/dev/null
8276     lt_status=$?
8277     case x$lt_status in
8278       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8279       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8280       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8281     esac
8282   else :
8283     # compilation failed
8284     lt_cv_dlopen_self=no
8285   fi
8286 fi
8287 rm -fr conftest*
8288
8289
8290 fi
8291 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8292 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8293
8294     if test "x$lt_cv_dlopen_self" = xyes; then
8295       LDFLAGS="$LDFLAGS $link_static_flag"
8296       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8297 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8298 if test "${lt_cv_dlopen_self_static+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301           if test "$cross_compiling" = yes; then :
8302   lt_cv_dlopen_self_static=cross
8303 else
8304   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8305   lt_status=$lt_dlunknown
8306   cat > conftest.$ac_ext <<EOF
8307 #line 8307 "configure"
8308 #include "confdefs.h"
8309
8310 #if HAVE_DLFCN_H
8311 #include <dlfcn.h>
8312 #endif
8313
8314 #include <stdio.h>
8315
8316 #ifdef RTLD_GLOBAL
8317 #  define LT_DLGLOBAL           RTLD_GLOBAL
8318 #else
8319 #  ifdef DL_GLOBAL
8320 #    define LT_DLGLOBAL         DL_GLOBAL
8321 #  else
8322 #    define LT_DLGLOBAL         0
8323 #  endif
8324 #endif
8325
8326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8327    find out it does not work in some platform. */
8328 #ifndef LT_DLLAZY_OR_NOW
8329 #  ifdef RTLD_LAZY
8330 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8331 #  else
8332 #    ifdef DL_LAZY
8333 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8334 #    else
8335 #      ifdef RTLD_NOW
8336 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8337 #      else
8338 #        ifdef DL_NOW
8339 #          define LT_DLLAZY_OR_NOW      DL_NOW
8340 #        else
8341 #          define LT_DLLAZY_OR_NOW      0
8342 #        endif
8343 #      endif
8344 #    endif
8345 #  endif
8346 #endif
8347
8348 #ifdef __cplusplus
8349 extern "C" void exit (int);
8350 #endif
8351
8352 void fnord() { int i=42;}
8353 int main ()
8354 {
8355   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8356   int status = $lt_dlunknown;
8357
8358   if (self)
8359     {
8360       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8361       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8362       /* dlclose (self); */
8363     }
8364
8365     exit (status);
8366 }
8367 EOF
8368   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369   (eval $ac_link) 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8373     (./conftest; exit; ) 2>/dev/null
8374     lt_status=$?
8375     case x$lt_status in
8376       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8377       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8378       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8379     esac
8380   else :
8381     # compilation failed
8382     lt_cv_dlopen_self_static=no
8383   fi
8384 fi
8385 rm -fr conftest*
8386
8387
8388 fi
8389 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8390 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8391     fi
8392
8393     CPPFLAGS="$save_CPPFLAGS"
8394     LDFLAGS="$save_LDFLAGS"
8395     LIBS="$save_LIBS"
8396     ;;
8397   esac
8398
8399   case $lt_cv_dlopen_self in
8400   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8401   *) enable_dlopen_self=unknown ;;
8402   esac
8403
8404   case $lt_cv_dlopen_self_static in
8405   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8406   *) enable_dlopen_self_static=unknown ;;
8407   esac
8408 fi
8409
8410
8411 # Report which librarie types wil actually be built
8412 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8413 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8414 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8415 echo "${ECHO_T}$can_build_shared" >&6
8416
8417 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8418 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8419 test "$can_build_shared" = "no" && enable_shared=no
8420
8421 # On AIX, shared libraries and static libraries use the same namespace, and
8422 # are all built from PIC.
8423 case "$host_os" in
8424 aix3*)
8425   test "$enable_shared" = yes && enable_static=no
8426   if test -n "$RANLIB"; then
8427     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8428     postinstall_cmds='$RANLIB $lib'
8429   fi
8430   ;;
8431
8432 aix4*)
8433   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8434     test "$enable_shared" = yes && enable_static=no
8435   fi
8436   ;;
8437   darwin* | rhapsody*)
8438   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8439     archive_cmds_need_lc=no
8440     case "$host_os" in
8441     rhapsody* | darwin1.[012])
8442       allow_undefined_flag='-undefined suppress'
8443       ;;
8444     *) # Darwin 1.3 on
8445       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8446       ;;
8447     esac
8448     # FIXME: Relying on posixy $() will cause problems for
8449     #        cross-compilation, but unfortunately the echo tests do not
8450     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8451     #          `"' quotes if we put them in here... so don't!
8452                 output_verbose_link_cmd='echo'
8453     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8454     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8455     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8456                   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}'
8457                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8458     hardcode_direct=no
8459     hardcode_automatic=yes
8460     hardcode_shlibpath_var=unsupported
8461     whole_archive_flag_spec='-all_load $convenience'
8462     link_all_deplibs=yes
8463     fi
8464     ;;
8465 esac
8466 echo "$as_me:$LINENO: result: $enable_shared" >&5
8467 echo "${ECHO_T}$enable_shared" >&6
8468
8469 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8470 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8471 # Make sure either enable_shared or enable_static is yes.
8472 test "$enable_shared" = yes || enable_static=yes
8473 echo "$as_me:$LINENO: result: $enable_static" >&5
8474 echo "${ECHO_T}$enable_static" >&6
8475
8476 # The else clause should only fire when bootstrapping the
8477 # libtool distribution, otherwise you forgot to ship ltmain.sh
8478 # with your package, and you will get complaints that there are
8479 # no rules to generate ltmain.sh.
8480 if test -f "$ltmain"; then
8481   # See if we are running on zsh, and set the options which allow our commands through
8482   # without removal of \ escapes.
8483   if test -n "${ZSH_VERSION+set}" ; then
8484     setopt NO_GLOB_SUBST
8485   fi
8486   # Now quote all the things that may contain metacharacters while being
8487   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8488   # variables and quote the copies for generation of the libtool script.
8489   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8490     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8491     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8492     deplibs_check_method reload_flag reload_cmds need_locks \
8493     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8494     lt_cv_sys_global_symbol_to_c_name_address \
8495     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8496     old_postinstall_cmds old_postuninstall_cmds \
8497     compiler \
8498     CC \
8499     LD \
8500     lt_prog_compiler_wl \
8501     lt_prog_compiler_pic \
8502     lt_prog_compiler_static \
8503     lt_prog_compiler_no_builtin_flag \
8504     export_dynamic_flag_spec \
8505     thread_safe_flag_spec \
8506     whole_archive_flag_spec \
8507     enable_shared_with_static_runtimes \
8508     old_archive_cmds \
8509     old_archive_from_new_cmds \
8510     predep_objects \
8511     postdep_objects \
8512     predeps \
8513     postdeps \
8514     compiler_lib_search_path \
8515     archive_cmds \
8516     archive_expsym_cmds \
8517     postinstall_cmds \
8518     postuninstall_cmds \
8519     old_archive_from_expsyms_cmds \
8520     allow_undefined_flag \
8521     no_undefined_flag \
8522     export_symbols_cmds \
8523     hardcode_libdir_flag_spec \
8524     hardcode_libdir_flag_spec_ld \
8525     hardcode_libdir_separator \
8526     hardcode_automatic \
8527     module_cmds \
8528     module_expsym_cmds \
8529     lt_cv_prog_compiler_c_o \
8530     exclude_expsyms \
8531     include_expsyms; do
8532
8533     case $var in
8534     old_archive_cmds | \
8535     old_archive_from_new_cmds | \
8536     archive_cmds | \
8537     archive_expsym_cmds | \
8538     module_cmds | \
8539     module_expsym_cmds | \
8540     old_archive_from_expsyms_cmds | \
8541     export_symbols_cmds | \
8542     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8543     postinstall_cmds | postuninstall_cmds | \
8544     old_postinstall_cmds | old_postuninstall_cmds | \
8545     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8546       # Double-quote double-evaled strings.
8547       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8548       ;;
8549     *)
8550       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8551       ;;
8552     esac
8553   done
8554
8555   case $lt_echo in
8556   *'\$0 --fallback-echo"')
8557     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8558     ;;
8559   esac
8560
8561 cfgfile="${ofile}T"
8562   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8563   $rm -f "$cfgfile"
8564   { echo "$as_me:$LINENO: creating $ofile" >&5
8565 echo "$as_me: creating $ofile" >&6;}
8566
8567   cat <<__EOF__ >> "$cfgfile"
8568 #! $SHELL
8569
8570 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8571 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8572 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8573 #
8574 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8575 # Free Software Foundation, Inc.
8576 #
8577 # This file is part of GNU Libtool:
8578 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8579 #
8580 # This program is free software; you can redistribute it and/or modify
8581 # it under the terms of the GNU General Public License as published by
8582 # the Free Software Foundation; either version 2 of the License, or
8583 # (at your option) any later version.
8584 #
8585 # This program is distributed in the hope that it will be useful, but
8586 # WITHOUT ANY WARRANTY; without even the implied warranty of
8587 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8588 # General Public License for more details.
8589 #
8590 # You should have received a copy of the GNU General Public License
8591 # along with this program; if not, write to the Free Software
8592 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8593 #
8594 # As a special exception to the GNU General Public License, if you
8595 # distribute this file as part of a program that contains a
8596 # configuration script generated by Autoconf, you may include it under
8597 # the same distribution terms that you use for the rest of that program.
8598
8599 # A sed program that does not truncate output.
8600 SED=$lt_SED
8601
8602 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8603 Xsed="$SED -e s/^X//"
8604
8605 # The HP-UX ksh and POSIX shell print the target directory to stdout
8606 # if CDPATH is set.
8607 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8608
8609 # The names of the tagged configurations supported by this script.
8610 available_tags=
8611
8612 # ### BEGIN LIBTOOL CONFIG
8613
8614 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8615
8616 # Shell to use when invoking shell scripts.
8617 SHELL=$lt_SHELL
8618
8619 # Whether or not to build shared libraries.
8620 build_libtool_libs=$enable_shared
8621
8622 # Whether or not to build static libraries.
8623 build_old_libs=$enable_static
8624
8625 # Whether or not to add -lc for building shared libraries.
8626 build_libtool_need_lc=$archive_cmds_need_lc
8627
8628 # Whether or not to disallow shared libs when runtime libs are static
8629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8630
8631 # Whether or not to optimize for fast installation.
8632 fast_install=$enable_fast_install
8633
8634 # The host system.
8635 host_alias=$host_alias
8636 host=$host
8637
8638 # An echo program that does not interpret backslashes.
8639 echo=$lt_echo
8640
8641 # The archiver.
8642 AR=$lt_AR
8643 AR_FLAGS=$lt_AR_FLAGS
8644
8645 # A C compiler.
8646 LTCC=$lt_LTCC
8647
8648 # A language-specific compiler.
8649 CC=$lt_compiler
8650
8651 # Is the compiler the GNU C compiler?
8652 with_gcc=$GCC
8653
8654 # An ERE matcher.
8655 EGREP=$lt_EGREP
8656
8657 # The linker used to build libraries.
8658 LD=$lt_LD
8659
8660 # Whether we need hard or soft links.
8661 LN_S=$lt_LN_S
8662
8663 # A BSD-compatible nm program.
8664 NM=$lt_NM
8665
8666 # A symbol stripping program
8667 STRIP=$STRIP
8668
8669 # Used to examine libraries when file_magic_cmd begins "file"
8670 MAGIC_CMD=$MAGIC_CMD
8671
8672 # Used on cygwin: DLL creation program.
8673 DLLTOOL="$DLLTOOL"
8674
8675 # Used on cygwin: object dumper.
8676 OBJDUMP="$OBJDUMP"
8677
8678 # Used on cygwin: assembler.
8679 AS="$AS"
8680
8681 # The name of the directory that contains temporary libtool files.
8682 objdir=$objdir
8683
8684 # How to create reloadable object files.
8685 reload_flag=$lt_reload_flag
8686 reload_cmds=$lt_reload_cmds
8687
8688 # How to pass a linker flag through the compiler.
8689 wl=$lt_lt_prog_compiler_wl
8690
8691 # Object file suffix (normally "o").
8692 objext="$ac_objext"
8693
8694 # Old archive suffix (normally "a").
8695 libext="$libext"
8696
8697 # Shared library suffix (normally ".so").
8698 shrext='$shrext'
8699
8700 # Executable file suffix (normally "").
8701 exeext="$exeext"
8702
8703 # Additional compiler flags for building library objects.
8704 pic_flag=$lt_lt_prog_compiler_pic
8705 pic_mode=$pic_mode
8706
8707 # What is the maximum length of a command?
8708 max_cmd_len=$lt_cv_sys_max_cmd_len
8709
8710 # Does compiler simultaneously support -c and -o options?
8711 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8712
8713 # Must we lock files when doing compilation ?
8714 need_locks=$lt_need_locks
8715
8716 # Do we need the lib prefix for modules?
8717 need_lib_prefix=$need_lib_prefix
8718
8719 # Do we need a version for libraries?
8720 need_version=$need_version
8721
8722 # Whether dlopen is supported.
8723 dlopen_support=$enable_dlopen
8724
8725 # Whether dlopen of programs is supported.
8726 dlopen_self=$enable_dlopen_self
8727
8728 # Whether dlopen of statically linked programs is supported.
8729 dlopen_self_static=$enable_dlopen_self_static
8730
8731 # Compiler flag to prevent dynamic linking.
8732 link_static_flag=$lt_lt_prog_compiler_static
8733
8734 # Compiler flag to turn off builtin functions.
8735 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8736
8737 # Compiler flag to allow reflexive dlopens.
8738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8739
8740 # Compiler flag to generate shared objects directly from archives.
8741 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8742
8743 # Compiler flag to generate thread-safe objects.
8744 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8745
8746 # Library versioning type.
8747 version_type=$version_type
8748
8749 # Format of library name prefix.
8750 libname_spec=$lt_libname_spec
8751
8752 # List of archive names.  First name is the real one, the rest are links.
8753 # The last name is the one that the linker finds with -lNAME.
8754 library_names_spec=$lt_library_names_spec
8755
8756 # The coded name of the library, if different from the real name.
8757 soname_spec=$lt_soname_spec
8758
8759 # Commands used to build and install an old-style archive.
8760 RANLIB=$lt_RANLIB
8761 old_archive_cmds=$lt_old_archive_cmds
8762 old_postinstall_cmds=$lt_old_postinstall_cmds
8763 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8764
8765 # Create an old-style archive from a shared archive.
8766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8767
8768 # Create a temporary old-style archive to link instead of a shared archive.
8769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8770
8771 # Commands used to build and install a shared archive.
8772 archive_cmds=$lt_archive_cmds
8773 archive_expsym_cmds=$lt_archive_expsym_cmds
8774 postinstall_cmds=$lt_postinstall_cmds
8775 postuninstall_cmds=$lt_postuninstall_cmds
8776
8777 # Commands used to build a loadable module (assumed same as above if empty)
8778 module_cmds=$lt_module_cmds
8779 module_expsym_cmds=$lt_module_expsym_cmds
8780
8781 # Commands to strip libraries.
8782 old_striplib=$lt_old_striplib
8783 striplib=$lt_striplib
8784
8785 # Dependencies to place before the objects being linked to create a
8786 # shared library.
8787 predep_objects=$lt_predep_objects
8788
8789 # Dependencies to place after the objects being linked to create a
8790 # shared library.
8791 postdep_objects=$lt_postdep_objects
8792
8793 # Dependencies to place before the objects being linked to create a
8794 # shared library.
8795 predeps=$lt_predeps
8796
8797 # Dependencies to place after the objects being linked to create a
8798 # shared library.
8799 postdeps=$lt_postdeps
8800
8801 # The library search path used internally by the compiler when linking
8802 # a shared library.
8803 compiler_lib_search_path=$lt_compiler_lib_search_path
8804
8805 # Method to check whether dependent libraries are shared objects.
8806 deplibs_check_method=$lt_deplibs_check_method
8807
8808 # Command to use when deplibs_check_method == file_magic.
8809 file_magic_cmd=$lt_file_magic_cmd
8810
8811 # Flag that allows shared libraries with undefined symbols to be built.
8812 allow_undefined_flag=$lt_allow_undefined_flag
8813
8814 # Flag that forces no undefined symbols.
8815 no_undefined_flag=$lt_no_undefined_flag
8816
8817 # Commands used to finish a libtool library installation in a directory.
8818 finish_cmds=$lt_finish_cmds
8819
8820 # Same as above, but a single script fragment to be evaled but not shown.
8821 finish_eval=$lt_finish_eval
8822
8823 # Take the output of nm and produce a listing of raw symbols and C names.
8824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8825
8826 # Transform the output of nm in a proper C declaration
8827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8828
8829 # Transform the output of nm in a C name address pair
8830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8831
8832 # This is the shared library runtime path variable.
8833 runpath_var=$runpath_var
8834
8835 # This is the shared library path variable.
8836 shlibpath_var=$shlibpath_var
8837
8838 # Is shlibpath searched before the hard-coded library search path?
8839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8840
8841 # How to hardcode a shared library path into an executable.
8842 hardcode_action=$hardcode_action
8843
8844 # Whether we should hardcode library paths into libraries.
8845 hardcode_into_libs=$hardcode_into_libs
8846
8847 # Flag to hardcode \$libdir into a binary during linking.
8848 # This must work even if \$libdir does not exist.
8849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8850
8851 # If ld is used when linking, flag to hardcode \$libdir into
8852 # a binary during linking. This must work even if \$libdir does
8853 # not exist.
8854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8855
8856 # Whether we need a single -rpath flag with a separated argument.
8857 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8858
8859 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8860 # resulting binary.
8861 hardcode_direct=$hardcode_direct
8862
8863 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8864 # resulting binary.
8865 hardcode_minus_L=$hardcode_minus_L
8866
8867 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8868 # the resulting binary.
8869 hardcode_shlibpath_var=$hardcode_shlibpath_var
8870
8871 # Set to yes if building a shared library automatically hardcodes DIR into the library
8872 # and all subsequent libraries and executables linked against it.
8873 hardcode_automatic=$hardcode_automatic
8874
8875 # Variables whose values should be saved in libtool wrapper scripts and
8876 # restored at relink time.
8877 variables_saved_for_relink="$variables_saved_for_relink"
8878
8879 # Whether libtool must link a program against all its dependency libraries.
8880 link_all_deplibs=$link_all_deplibs
8881
8882 # Compile-time system search path for libraries
8883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8884
8885 # Run-time system search path for libraries
8886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8887
8888 # Fix the shell variable \$srcfile for the compiler.
8889 fix_srcfile_path="$fix_srcfile_path"
8890
8891 # Set to yes if exported symbols are required.
8892 always_export_symbols=$always_export_symbols
8893
8894 # The commands to list exported symbols.
8895 export_symbols_cmds=$lt_export_symbols_cmds
8896
8897 # The commands to extract the exported symbol list from a shared archive.
8898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8899
8900 # Symbols that should not be listed in the preloaded symbols.
8901 exclude_expsyms=$lt_exclude_expsyms
8902
8903 # Symbols that must always be exported.
8904 include_expsyms=$lt_include_expsyms
8905
8906 # ### END LIBTOOL CONFIG
8907
8908 __EOF__
8909
8910
8911   case $host_os in
8912   aix3*)
8913     cat <<\EOF >> "$cfgfile"
8914
8915 # AIX sometimes has problems with the GCC collect2 program.  For some
8916 # reason, if we set the COLLECT_NAMES environment variable, the problems
8917 # vanish in a puff of smoke.
8918 if test "X${COLLECT_NAMES+set}" != Xset; then
8919   COLLECT_NAMES=
8920   export COLLECT_NAMES
8921 fi
8922 EOF
8923     ;;
8924   esac
8925
8926   # We use sed instead of cat because bash on DJGPP gets confused if
8927   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8928   # text mode, it properly converts lines to CR/LF.  This bash problem
8929   # is reportedly fixed, but why not run on old versions too?
8930   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8931
8932   mv -f "$cfgfile" "$ofile" || \
8933     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8934   chmod +x "$ofile"
8935
8936 else
8937   # If there is no Makefile yet, we rely on a make rule to execute
8938   # `config.status --recheck' to rerun these tests and create the
8939   # libtool script then.
8940   test -f Makefile && make "$ltmain"
8941 fi
8942
8943
8944 ac_ext=c
8945 ac_cpp='$CPP $CPPFLAGS'
8946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8949
8950 CC="$lt_save_CC"
8951
8952
8953 # Check whether --with-tags or --without-tags was given.
8954 if test "${with_tags+set}" = set; then
8955   withval="$with_tags"
8956   tagnames="$withval"
8957 fi;
8958
8959 if test -f "$ltmain" && test -n "$tagnames"; then
8960   if test ! -f "${ofile}"; then
8961     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8962 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8963   fi
8964
8965   if test -z "$LTCC"; then
8966     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8967     if test -z "$LTCC"; then
8968       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8969 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8970     else
8971       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8972 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8973     fi
8974   fi
8975
8976   # Extract list of available tagged configurations in $ofile.
8977   # Note that this assumes the entire list is on one line.
8978   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8979
8980   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8981   for tagname in $tagnames; do
8982     IFS="$lt_save_ifs"
8983     # Check whether tagname contains only valid characters
8984     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8985     "") ;;
8986     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8987 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8988    { (exit 1); exit 1; }; }
8989         ;;
8990     esac
8991
8992     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8993     then
8994       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8995 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8996    { (exit 1); exit 1; }; }
8997     fi
8998
8999     # Update the list of available tags.
9000     if test -n "$tagname"; then
9001       echo appending configuration tag \"$tagname\" to $ofile
9002
9003       case $tagname in
9004       CXX)
9005         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9006           ac_ext=cc
9007 ac_cpp='$CXXCPP $CPPFLAGS'
9008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9011
9012
9013
9014
9015 archive_cmds_need_lc_CXX=no
9016 allow_undefined_flag_CXX=
9017 always_export_symbols_CXX=no
9018 archive_expsym_cmds_CXX=
9019 export_dynamic_flag_spec_CXX=
9020 hardcode_direct_CXX=no
9021 hardcode_libdir_flag_spec_CXX=
9022 hardcode_libdir_flag_spec_ld_CXX=
9023 hardcode_libdir_separator_CXX=
9024 hardcode_minus_L_CXX=no
9025 hardcode_automatic_CXX=no
9026 module_cmds_CXX=
9027 module_expsym_cmds_CXX=
9028 link_all_deplibs_CXX=unknown
9029 old_archive_cmds_CXX=$old_archive_cmds
9030 no_undefined_flag_CXX=
9031 whole_archive_flag_spec_CXX=
9032 enable_shared_with_static_runtimes_CXX=no
9033
9034 # Dependencies to place before and after the object being linked:
9035 predep_objects_CXX=
9036 postdep_objects_CXX=
9037 predeps_CXX=
9038 postdeps_CXX=
9039 compiler_lib_search_path_CXX=
9040
9041 # Source file extension for C++ test sources.
9042 ac_ext=cc
9043
9044 # Object file extension for compiled C++ test sources.
9045 objext=o
9046 objext_CXX=$objext
9047
9048 # Code to be used in simple compile tests
9049 lt_simple_compile_test_code="int some_variable = 0;\n"
9050
9051 # Code to be used in simple link tests
9052 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9053
9054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9055
9056 # If no C compiler was specified, use CC.
9057 LTCC=${LTCC-"$CC"}
9058
9059 # Allow CC to be a program name with arguments.
9060 compiler=$CC
9061
9062
9063 # Allow CC to be a program name with arguments.
9064 lt_save_CC=$CC
9065 lt_save_LD=$LD
9066 lt_save_GCC=$GCC
9067 GCC=$GXX
9068 lt_save_with_gnu_ld=$with_gnu_ld
9069 lt_save_path_LD=$lt_cv_path_LD
9070 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9071   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9072 else
9073   unset lt_cv_prog_gnu_ld
9074 fi
9075 if test -n "${lt_cv_path_LDCXX+set}"; then
9076   lt_cv_path_LD=$lt_cv_path_LDCXX
9077 else
9078   unset lt_cv_path_LD
9079 fi
9080 test -z "${LDCXX+set}" || LD=$LDCXX
9081 CC=${CXX-"c++"}
9082 compiler=$CC
9083 compiler_CXX=$CC
9084 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9085
9086 # We don't want -fno-exception wen compiling C++ code, so set the
9087 # no_builtin_flag separately
9088 if test "$GXX" = yes; then
9089   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9090 else
9091   lt_prog_compiler_no_builtin_flag_CXX=
9092 fi
9093
9094 if test "$GXX" = yes; then
9095   # Set up default GNU C++ configuration
9096
9097
9098 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9099 if test "${with_gnu_ld+set}" = set; then
9100   withval="$with_gnu_ld"
9101   test "$withval" = no || with_gnu_ld=yes
9102 else
9103   with_gnu_ld=no
9104 fi;
9105 ac_prog=ld
9106 if test "$GCC" = yes; then
9107   # Check if gcc -print-prog-name=ld gives a path.
9108   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9109 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9110   case $host in
9111   *-*-mingw*)
9112     # gcc leaves a trailing carriage return which upsets mingw
9113     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9114   *)
9115     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9116   esac
9117   case $ac_prog in
9118     # Accept absolute paths.
9119     [\\/]* | ?:[\\/]*)
9120       re_direlt='/[^/][^/]*/\.\./'
9121       # Canonicalize the path of ld
9122       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9123       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9124         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9125       done
9126       test -z "$LD" && LD="$ac_prog"
9127       ;;
9128   "")
9129     # If it fails, then pretend we aren't using GCC.
9130     ac_prog=ld
9131     ;;
9132   *)
9133     # If it is relative, then search for the first ld in PATH.
9134     with_gnu_ld=unknown
9135     ;;
9136   esac
9137 elif test "$with_gnu_ld" = yes; then
9138   echo "$as_me:$LINENO: checking for GNU ld" >&5
9139 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9140 else
9141   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9142 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9143 fi
9144 if test "${lt_cv_path_LD+set}" = set; then
9145   echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147   if test -z "$LD"; then
9148   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9149   for ac_dir in $PATH; do
9150     IFS="$lt_save_ifs"
9151     test -z "$ac_dir" && ac_dir=.
9152     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9153       lt_cv_path_LD="$ac_dir/$ac_prog"
9154       # Check to see if the program is GNU ld.  I'd rather use --version,
9155       # but apparently some GNU ld's only accept -v.
9156       # Break only if it was the GNU/non-GNU ld that we prefer.
9157       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9158       *GNU* | *'with BFD'*)
9159         test "$with_gnu_ld" != no && break
9160         ;;
9161       *)
9162         test "$with_gnu_ld" != yes && break
9163         ;;
9164       esac
9165     fi
9166   done
9167   IFS="$lt_save_ifs"
9168 else
9169   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9170 fi
9171 fi
9172
9173 LD="$lt_cv_path_LD"
9174 if test -n "$LD"; then
9175   echo "$as_me:$LINENO: result: $LD" >&5
9176 echo "${ECHO_T}$LD" >&6
9177 else
9178   echo "$as_me:$LINENO: result: no" >&5
9179 echo "${ECHO_T}no" >&6
9180 fi
9181 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9182 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9183    { (exit 1); exit 1; }; }
9184 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9185 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9186 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9187   echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9190 case `"$LD" -v 2>&1 </dev/null` in
9191 *GNU* | *'with BFD'*)
9192   lt_cv_prog_gnu_ld=yes
9193   ;;
9194 *)
9195   lt_cv_prog_gnu_ld=no
9196   ;;
9197 esac
9198 fi
9199 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9200 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9201 with_gnu_ld=$lt_cv_prog_gnu_ld
9202
9203
9204
9205   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9206   # archiving commands below assume that GNU ld is being used.
9207   if test "$with_gnu_ld" = yes; then
9208     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209     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'
9210
9211     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9212     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9213
9214     # If archive_cmds runs LD, not CC, wlarc should be empty
9215     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9216     #     investigate it a little bit more. (MM)
9217     wlarc='${wl}'
9218
9219     # ancient GNU ld didn't support --whole-archive et. al.
9220     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9221         grep 'no-whole-archive' > /dev/null; then
9222       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9223     else
9224       whole_archive_flag_spec_CXX=
9225     fi
9226   else
9227     with_gnu_ld=no
9228     wlarc=
9229
9230     # A generic and very simple default shared library creation
9231     # command for GNU C++ for the case where it uses the native
9232     # linker, instead of GNU ld.  If possible, this setting should
9233     # overridden to take advantage of the native linker features on
9234     # the platform it is being used on.
9235     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9236   fi
9237
9238   # Commands to make compiler produce verbose output that lists
9239   # what "hidden" libraries, object files and flags are used when
9240   # linking a shared library.
9241   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9242
9243 else
9244   GXX=no
9245   with_gnu_ld=no
9246   wlarc=
9247 fi
9248
9249 # PORTME: fill in a description of your system's C++ link characteristics
9250 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9251 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9252 ld_shlibs_CXX=yes
9253 case $host_os in
9254   aix3*)
9255     # FIXME: insert proper C++ library support
9256     ld_shlibs_CXX=no
9257     ;;
9258   aix4* | aix5*)
9259     if test "$host_cpu" = ia64; then
9260       # On IA64, the linker does run time linking by default, so we don't
9261       # have to do anything special.
9262       aix_use_runtimelinking=no
9263       exp_sym_flag='-Bexport'
9264       no_entry_flag=""
9265     else
9266       aix_use_runtimelinking=no
9267
9268       # Test if we are trying to use run time linking or normal
9269       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9270       # need to do runtime linking.
9271       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9272         for ld_flag in $LDFLAGS; do
9273           case $ld_flag in
9274           *-brtl*)
9275             aix_use_runtimelinking=yes
9276             break
9277             ;;
9278           esac
9279         done
9280       esac
9281
9282       exp_sym_flag='-bexport'
9283       no_entry_flag='-bnoentry'
9284     fi
9285
9286     # When large executables or shared objects are built, AIX ld can
9287     # have problems creating the table of contents.  If linking a library
9288     # or program results in "error TOC overflow" add -mminimal-toc to
9289     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9290     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9291
9292     archive_cmds_CXX=''
9293     hardcode_direct_CXX=yes
9294     hardcode_libdir_separator_CXX=':'
9295     link_all_deplibs_CXX=yes
9296
9297     if test "$GXX" = yes; then
9298       case $host_os in aix4.012|aix4.012.*)
9299       # We only want to do this on AIX 4.2 and lower, the check
9300       # below for broken collect2 doesn't work under 4.3+
9301         collect2name=`${CC} -print-prog-name=collect2`
9302         if test -f "$collect2name" && \
9303            strings "$collect2name" | grep resolve_lib_name >/dev/null
9304         then
9305           # We have reworked collect2
9306           hardcode_direct_CXX=yes
9307         else
9308           # We have old collect2
9309           hardcode_direct_CXX=unsupported
9310           # It fails to find uninstalled libraries when the uninstalled
9311           # path is not listed in the libpath.  Setting hardcode_minus_L
9312           # to unsupported forces relinking
9313           hardcode_minus_L_CXX=yes
9314           hardcode_libdir_flag_spec_CXX='-L$libdir'
9315           hardcode_libdir_separator_CXX=
9316         fi
9317       esac
9318       shared_flag='-shared'
9319     else
9320       # not using gcc
9321       if test "$host_cpu" = ia64; then
9322         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9323         # chokes on -Wl,-G. The following line is correct:
9324         shared_flag='-G'
9325       else
9326         if test "$aix_use_runtimelinking" = yes; then
9327           shared_flag='${wl}-G'
9328         else
9329           shared_flag='${wl}-bM:SRE'
9330         fi
9331       fi
9332     fi
9333
9334     # It seems that -bexpall does not export symbols beginning with
9335     # underscore (_), so it is better to generate a list of symbols to export.
9336     always_export_symbols_CXX=yes
9337     if test "$aix_use_runtimelinking" = yes; then
9338       # Warning - without using the other runtime loading flags (-brtl),
9339       # -berok will link without error, but may produce a broken library.
9340       allow_undefined_flag_CXX='-berok'
9341       # Determine the default libpath from the value encoded in an empty executable.
9342       cat >conftest.$ac_ext <<_ACEOF
9343 #line $LINENO "configure"
9344 /* confdefs.h.  */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h.  */
9349
9350 int
9351 main ()
9352 {
9353
9354   ;
9355   return 0;
9356 }
9357 _ACEOF
9358 rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360   (eval $ac_link) 2>&5
9361   ac_status=$?
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); } &&
9364          { ac_try='test -s conftest$ac_exeext'
9365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366   (eval $ac_try) 2>&5
9367   ac_status=$?
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); }; }; then
9370
9371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9372 }'`
9373 # Check for a 64-bit object if we didn't find anything.
9374 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; }
9375 }'`; fi
9376 else
9377   echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9379
9380 fi
9381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9383
9384       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9385
9386       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"
9387      else
9388       if test "$host_cpu" = ia64; then
9389         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9390         allow_undefined_flag_CXX="-z nodefs"
9391         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"
9392       else
9393         # Determine the default libpath from the value encoded in an empty executable.
9394         cat >conftest.$ac_ext <<_ACEOF
9395 #line $LINENO "configure"
9396 /* confdefs.h.  */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h.  */
9401
9402 int
9403 main ()
9404 {
9405
9406   ;
9407   return 0;
9408 }
9409 _ACEOF
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412   (eval $ac_link) 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); } &&
9416          { ac_try='test -s conftest$ac_exeext'
9417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418   (eval $ac_try) 2>&5
9419   ac_status=$?
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); }; }; then
9422
9423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9424 }'`
9425 # Check for a 64-bit object if we didn't find anything.
9426 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; }
9427 }'`; fi
9428 else
9429   echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 fi
9433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9435
9436         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9437         # Warning - without using the other run time loading flags,
9438         # -berok will link without error, but may produce a broken library.
9439         no_undefined_flag_CXX=' ${wl}-bernotok'
9440         allow_undefined_flag_CXX=' ${wl}-berok'
9441         # -bexpall does not export symbols beginning with underscore (_)
9442         always_export_symbols_CXX=yes
9443         # Exported symbols can be pulled into shared objects from archives
9444         whole_archive_flag_spec_CXX=' '
9445         archive_cmds_need_lc_CXX=yes
9446         # This is similar to how AIX traditionally builds it's shared libraries.
9447         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'
9448       fi
9449     fi
9450     ;;
9451   chorus*)
9452     case $cc_basename in
9453       *)
9454         # FIXME: insert proper C++ library support
9455         ld_shlibs_CXX=no
9456         ;;
9457     esac
9458     ;;
9459
9460   cygwin* | mingw* | pw32*)
9461     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9462     # as there is no search path for DLLs.
9463     hardcode_libdir_flag_spec_CXX='-L$libdir'
9464     allow_undefined_flag_CXX=unsupported
9465     always_export_symbols_CXX=no
9466     enable_shared_with_static_runtimes_CXX=yes
9467
9468     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9469       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'
9470       # If the export-symbols file already is a .def file (1st line
9471       # is EXPORTS), use it as is; otherwise, prepend...
9472       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9473         cp $export_symbols $output_objdir/$soname.def;
9474       else
9475         echo EXPORTS > $output_objdir/$soname.def;
9476         cat $export_symbols >> $output_objdir/$soname.def;
9477       fi~
9478       $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'
9479     else
9480       ld_shlibs_CXX=no
9481     fi
9482   ;;
9483
9484   darwin* | rhapsody*)
9485    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9486     archive_cmds_need_lc_CXX=no
9487     case "$host_os" in
9488     rhapsody* | darwin1.[012])
9489       allow_undefined_flag_CXX='-undefined suppress'
9490       ;;
9491     *) # Darwin 1.3 on
9492       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9493       ;;
9494     esac
9495         lt_int_apple_cc_single_mod=no
9496         output_verbose_link_cmd='echo'
9497         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9498           lt_int_apple_cc_single_mod=yes
9499         fi
9500         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9501           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9502         else
9503         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9504       fi
9505       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9506
9507     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9508       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9509         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}'
9510       else
9511         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9512       fi
9513         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9514     hardcode_direct_CXX=no
9515     hardcode_automatic_CXX=yes
9516     hardcode_shlibpath_var_CXX=unsupported
9517     whole_archive_flag_spec_CXX='-all_load $convenience'
9518     link_all_deplibs_CXX=yes
9519    fi
9520     ;;
9521
9522   dgux*)
9523     case $cc_basename in
9524       ec++)
9525         # FIXME: insert proper C++ library support
9526         ld_shlibs_CXX=no
9527         ;;
9528       ghcx)
9529         # Green Hills C++ Compiler
9530         # FIXME: insert proper C++ library support
9531         ld_shlibs_CXX=no
9532         ;;
9533       *)
9534         # FIXME: insert proper C++ library support
9535         ld_shlibs_CXX=no
9536         ;;
9537     esac
9538     ;;
9539   freebsd12*)
9540     # C++ shared libraries reported to be fairly broken before switch to ELF
9541     ld_shlibs_CXX=no
9542     ;;
9543   freebsd-elf*)
9544     archive_cmds_need_lc_CXX=no
9545     ;;
9546   freebsd*)
9547     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9548     # conventions
9549     ld_shlibs_CXX=yes
9550     ;;
9551   gnu*)
9552     ;;
9553   hpux9*)
9554     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9555     hardcode_libdir_separator_CXX=:
9556     export_dynamic_flag_spec_CXX='${wl}-E'
9557     hardcode_direct_CXX=yes
9558     hardcode_minus_L_CXX=yes # Not in the search PATH,
9559                                 # but as the default
9560                                 # location of the library.
9561
9562     case $cc_basename in
9563     CC)
9564       # FIXME: insert proper C++ library support
9565       ld_shlibs_CXX=no
9566       ;;
9567     aCC)
9568       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'
9569       # Commands to make compiler produce verbose output that lists
9570       # what "hidden" libraries, object files and flags are used when
9571       # linking a shared library.
9572       #
9573       # There doesn't appear to be a way to prevent this compiler from
9574       # explicitly linking system object files so we need to strip them
9575       # from the output so that they don't get included in the library
9576       # dependencies.
9577       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9578       ;;
9579     *)
9580       if test "$GXX" = yes; then
9581         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'
9582       else
9583         # FIXME: insert proper C++ library support
9584         ld_shlibs_CXX=no
9585       fi
9586       ;;
9587     esac
9588     ;;
9589   hpux10*|hpux11*)
9590     if test $with_gnu_ld = no; then
9591       case "$host_cpu" in
9592       hppa*64*)
9593         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9594         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9595         hardcode_libdir_separator_CXX=:
9596         ;;
9597       ia64*)
9598         hardcode_libdir_flag_spec_CXX='-L$libdir'
9599         ;;
9600       *)
9601         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9602         hardcode_libdir_separator_CXX=:
9603         export_dynamic_flag_spec_CXX='${wl}-E'
9604         ;;
9605       esac
9606     fi
9607     case "$host_cpu" in
9608     hppa*64*)
9609       hardcode_direct_CXX=no
9610       hardcode_shlibpath_var_CXX=no
9611       ;;
9612     ia64*)
9613       hardcode_direct_CXX=no
9614       hardcode_shlibpath_var_CXX=no
9615       hardcode_minus_L_CXX=yes # Not in the search PATH,
9616                                               # but as the default
9617                                               # location of the library.
9618       ;;
9619     *)
9620       hardcode_direct_CXX=yes
9621       hardcode_minus_L_CXX=yes # Not in the search PATH,
9622                                               # but as the default
9623                                               # location of the library.
9624       ;;
9625     esac
9626
9627     case $cc_basename in
9628       CC)
9629         # FIXME: insert proper C++ library support
9630         ld_shlibs_CXX=no
9631         ;;
9632       aCC)
9633         case "$host_cpu" in
9634         hppa*64*|ia64*)
9635           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9636           ;;
9637         *)
9638           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9639           ;;
9640         esac
9641         # Commands to make compiler produce verbose output that lists
9642         # what "hidden" libraries, object files and flags are used when
9643         # linking a shared library.
9644         #
9645         # There doesn't appear to be a way to prevent this compiler from
9646         # explicitly linking system object files so we need to strip them
9647         # from the output so that they don't get included in the library
9648         # dependencies.
9649         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'
9650         ;;
9651       *)
9652         if test "$GXX" = yes; then
9653           if test $with_gnu_ld = no; then
9654             case "$host_cpu" in
9655             ia64*|hppa*64*)
9656               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9657               ;;
9658             *)
9659               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'
9660               ;;
9661             esac
9662           fi
9663         else
9664           # FIXME: insert proper C++ library support
9665           ld_shlibs_CXX=no
9666         fi
9667         ;;
9668     esac
9669     ;;
9670   irix5* | irix6*)
9671     case $cc_basename in
9672       CC)
9673         # SGI C++
9674         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'
9675
9676         # Archives containing C++ object files must be created using
9677         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9678         # necessary to make sure instantiated templates are included
9679         # in the archive.
9680         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9681         ;;
9682       *)
9683         if test "$GXX" = yes; then
9684           if test "$with_gnu_ld" = no; then
9685             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'
9686           else
9687             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'
9688           fi
9689         fi
9690         link_all_deplibs_CXX=yes
9691         ;;
9692     esac
9693     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9694     hardcode_libdir_separator_CXX=:
9695     ;;
9696   linux*)
9697     case $cc_basename in
9698       KCC)
9699         # Kuck and Associates, Inc. (KAI) C++ Compiler
9700
9701         # KCC will only create a shared library if the output file
9702         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9703         # to its proper name (with version) after linking.
9704         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'
9705         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'
9706         # Commands to make compiler produce verbose output that lists
9707         # what "hidden" libraries, object files and flags are used when
9708         # linking a shared library.
9709         #
9710         # There doesn't appear to be a way to prevent this compiler from
9711         # explicitly linking system object files so we need to strip them
9712         # from the output so that they don't get included in the library
9713         # dependencies.
9714         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'
9715
9716         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9717         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9718
9719         # Archives containing C++ object files must be created using
9720         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9721         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9722         ;;
9723       icpc)
9724         # Intel C++
9725         with_gnu_ld=yes
9726         archive_cmds_need_lc_CXX=no
9727         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728         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'
9729         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9730         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9731         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9732         ;;
9733       cxx)
9734         # Compaq C++
9735         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9736         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'
9737
9738         runpath_var=LD_RUN_PATH
9739         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9740         hardcode_libdir_separator_CXX=:
9741
9742         # Commands to make compiler produce verbose output that lists
9743         # what "hidden" libraries, object files and flags are used when
9744         # linking a shared library.
9745         #
9746         # There doesn't appear to be a way to prevent this compiler from
9747         # explicitly linking system object files so we need to strip them
9748         # from the output so that they don't get included in the library
9749         # dependencies.
9750         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'
9751         ;;
9752     esac
9753     ;;
9754   lynxos*)
9755     # FIXME: insert proper C++ library support
9756     ld_shlibs_CXX=no
9757     ;;
9758   m88k*)
9759     # FIXME: insert proper C++ library support
9760     ld_shlibs_CXX=no
9761     ;;
9762   mvs*)
9763     case $cc_basename in
9764       cxx)
9765         # FIXME: insert proper C++ library support
9766         ld_shlibs_CXX=no
9767         ;;
9768       *)
9769         # FIXME: insert proper C++ library support
9770         ld_shlibs_CXX=no
9771         ;;
9772     esac
9773     ;;
9774   netbsd*)
9775     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9776       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9777       wlarc=
9778       hardcode_libdir_flag_spec_CXX='-R$libdir'
9779       hardcode_direct_CXX=yes
9780       hardcode_shlibpath_var_CXX=no
9781     fi
9782     # Workaround some broken pre-1.5 toolchains
9783     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9784     ;;
9785   osf3*)
9786     case $cc_basename in
9787       KCC)
9788         # Kuck and Associates, Inc. (KAI) C++ Compiler
9789
9790         # KCC will only create a shared library if the output file
9791         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9792         # to its proper name (with version) after linking.
9793         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'
9794
9795         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9796         hardcode_libdir_separator_CXX=:
9797
9798         # Archives containing C++ object files must be created using
9799         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9800         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9801
9802         ;;
9803       RCC)
9804         # Rational C++ 2.4.1
9805         # FIXME: insert proper C++ library support
9806         ld_shlibs_CXX=no
9807         ;;
9808       cxx)
9809         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9810         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'
9811
9812         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9813         hardcode_libdir_separator_CXX=:
9814
9815         # Commands to make compiler produce verbose output that lists
9816         # what "hidden" libraries, object files and flags are used when
9817         # linking a shared library.
9818         #
9819         # There doesn't appear to be a way to prevent this compiler from
9820         # explicitly linking system object files so we need to strip them
9821         # from the output so that they don't get included in the library
9822         # dependencies.
9823         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'
9824         ;;
9825       *)
9826         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9827           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9828           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'
9829
9830           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9831           hardcode_libdir_separator_CXX=:
9832
9833           # Commands to make compiler produce verbose output that lists
9834           # what "hidden" libraries, object files and flags are used when
9835           # linking a shared library.
9836           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9837
9838         else
9839           # FIXME: insert proper C++ library support
9840           ld_shlibs_CXX=no
9841         fi
9842         ;;
9843     esac
9844     ;;
9845   osf4* | osf5*)
9846     case $cc_basename in
9847       KCC)
9848         # Kuck and Associates, Inc. (KAI) C++ Compiler
9849
9850         # KCC will only create a shared library if the output file
9851         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9852         # to its proper name (with version) after linking.
9853         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'
9854
9855         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9856         hardcode_libdir_separator_CXX=:
9857
9858         # Archives containing C++ object files must be created using
9859         # the KAI C++ compiler.
9860         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9861         ;;
9862       RCC)
9863         # Rational C++ 2.4.1
9864         # FIXME: insert proper C++ library support
9865         ld_shlibs_CXX=no
9866         ;;
9867       cxx)
9868         allow_undefined_flag_CXX=' -expect_unresolved \*'
9869         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'
9870         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9871           echo "-hidden">> $lib.exp~
9872           $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~
9873           $rm $lib.exp'
9874
9875         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9876         hardcode_libdir_separator_CXX=:
9877
9878         # Commands to make compiler produce verbose output that lists
9879         # what "hidden" libraries, object files and flags are used when
9880         # linking a shared library.
9881         #
9882         # There doesn't appear to be a way to prevent this compiler from
9883         # explicitly linking system object files so we need to strip them
9884         # from the output so that they don't get included in the library
9885         # dependencies.
9886         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'
9887         ;;
9888       *)
9889         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9890           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9891          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'
9892
9893           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9894           hardcode_libdir_separator_CXX=:
9895
9896           # Commands to make compiler produce verbose output that lists
9897           # what "hidden" libraries, object files and flags are used when
9898           # linking a shared library.
9899           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9900
9901         else
9902           # FIXME: insert proper C++ library support
9903           ld_shlibs_CXX=no
9904         fi
9905         ;;
9906     esac
9907     ;;
9908   psos*)
9909     # FIXME: insert proper C++ library support
9910     ld_shlibs_CXX=no
9911     ;;
9912   sco*)
9913     archive_cmds_need_lc_CXX=no
9914     case $cc_basename in
9915       CC)
9916         # FIXME: insert proper C++ library support
9917         ld_shlibs_CXX=no
9918         ;;
9919       *)
9920         # FIXME: insert proper C++ library support
9921         ld_shlibs_CXX=no
9922         ;;
9923     esac
9924     ;;
9925   sunos4*)
9926     case $cc_basename in
9927       CC)
9928         # Sun C++ 4.x
9929         # FIXME: insert proper C++ library support
9930         ld_shlibs_CXX=no
9931         ;;
9932       lcc)
9933         # Lucid
9934         # FIXME: insert proper C++ library support
9935         ld_shlibs_CXX=no
9936         ;;
9937       *)
9938         # FIXME: insert proper C++ library support
9939         ld_shlibs_CXX=no
9940         ;;
9941     esac
9942     ;;
9943   solaris*)
9944     case $cc_basename in
9945       CC)
9946         # Sun C++ 4.2, 5.x and Centerline C++
9947         no_undefined_flag_CXX=' -zdefs'
9948         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9949         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9950         $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'
9951
9952         hardcode_libdir_flag_spec_CXX='-R$libdir'
9953         hardcode_shlibpath_var_CXX=no
9954         case $host_os in
9955           solaris2.0-5 | solaris2.0-5.*) ;;
9956           *)
9957             # The C++ compiler is used as linker so we must use $wl
9958             # flag to pass the commands to the underlying system
9959             # linker.
9960             # Supported since Solaris 2.6 (maybe 2.5.1?)
9961             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9962             ;;
9963         esac
9964         link_all_deplibs_CXX=yes
9965
9966         # Commands to make compiler produce verbose output that lists
9967         # what "hidden" libraries, object files and flags are used when
9968         # linking a shared library.
9969         #
9970         # There doesn't appear to be a way to prevent this compiler from
9971         # explicitly linking system object files so we need to strip them
9972         # from the output so that they don't get included in the library
9973         # dependencies.
9974         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'
9975
9976         # Archives containing C++ object files must be created using
9977         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9978         # necessary to make sure instantiated templates are included
9979         # in the archive.
9980         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9981         ;;
9982       gcx)
9983         # Green Hills C++ Compiler
9984         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9985
9986         # The C++ compiler must be used to create the archive.
9987         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9988         ;;
9989       *)
9990         # GNU C++ compiler with Solaris linker
9991         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9992           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9993           if $CC --version | grep -v '^2\.7' > /dev/null; then
9994             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9995             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9996                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9997
9998             # Commands to make compiler produce verbose output that lists
9999             # what "hidden" libraries, object files and flags are used when
10000             # linking a shared library.
10001             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10002           else
10003             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10004             # platform.
10005             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10006             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10007                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10008
10009             # Commands to make compiler produce verbose output that lists
10010             # what "hidden" libraries, object files and flags are used when
10011             # linking a shared library.
10012             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10013           fi
10014
10015           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10016         fi
10017         ;;
10018     esac
10019     ;;
10020   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10021     archive_cmds_need_lc_CXX=no
10022     ;;
10023   tandem*)
10024     case $cc_basename in
10025       NCC)
10026         # NonStop-UX NCC 3.20
10027         # FIXME: insert proper C++ library support
10028         ld_shlibs_CXX=no
10029         ;;
10030       *)
10031         # FIXME: insert proper C++ library support
10032         ld_shlibs_CXX=no
10033         ;;
10034     esac
10035     ;;
10036   vxworks*)
10037     # FIXME: insert proper C++ library support
10038     ld_shlibs_CXX=no
10039     ;;
10040   *)
10041     # FIXME: insert proper C++ library support
10042     ld_shlibs_CXX=no
10043     ;;
10044 esac
10045 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10046 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10047 test "$ld_shlibs_CXX" = no && can_build_shared=no
10048
10049 GCC_CXX="$GXX"
10050 LD_CXX="$LD"
10051
10052
10053 cat > conftest.$ac_ext <<EOF
10054 class Foo
10055 {
10056 public:
10057   Foo (void) { a = 0; }
10058 private:
10059   int a;
10060 };
10061 EOF
10062
10063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064   (eval $ac_compile) 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; then
10068   # Parse the compiler output and extract the necessary
10069   # objects, libraries and library flags.
10070
10071   # Sentinel used to keep track of whether or not we are before
10072   # the conftest object file.
10073   pre_test_object_deps_done=no
10074
10075   # The `*' in the case matches for architectures that use `case' in
10076   # $output_verbose_cmd can trigger glob expansion during the loop
10077   # eval without this substitution.
10078   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10079
10080   for p in `eval $output_verbose_link_cmd`; do
10081     case $p in
10082
10083     -L* | -R* | -l*)
10084        # Some compilers place space between "-{L,R}" and the path.
10085        # Remove the space.
10086        if test $p = "-L" \
10087           || test $p = "-R"; then
10088          prev=$p
10089          continue
10090        else
10091          prev=
10092        fi
10093
10094        if test "$pre_test_object_deps_done" = no; then
10095          case $p in
10096          -L* | -R*)
10097            # Internal compiler library paths should come after those
10098            # provided the user.  The postdeps already come after the
10099            # user supplied libs so there is no need to process them.
10100            if test -z "$compiler_lib_search_path_CXX"; then
10101              compiler_lib_search_path_CXX="${prev}${p}"
10102            else
10103              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10104            fi
10105            ;;
10106          # The "-l" case would never come before the object being
10107          # linked, so don't bother handling this case.
10108          esac
10109        else
10110          if test -z "$postdeps_CXX"; then
10111            postdeps_CXX="${prev}${p}"
10112          else
10113            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10114          fi
10115        fi
10116        ;;
10117
10118     *.$objext)
10119        # This assumes that the test object file only shows up
10120        # once in the compiler output.
10121        if test "$p" = "conftest.$objext"; then
10122          pre_test_object_deps_done=yes
10123          continue
10124        fi
10125
10126        if test "$pre_test_object_deps_done" = no; then
10127          if test -z "$predep_objects_CXX"; then
10128            predep_objects_CXX="$p"
10129          else
10130            predep_objects_CXX="$predep_objects_CXX $p"
10131          fi
10132        else
10133          if test -z "$postdep_objects_CXX"; then
10134            postdep_objects_CXX="$p"
10135          else
10136            postdep_objects_CXX="$postdep_objects_CXX $p"
10137          fi
10138        fi
10139        ;;
10140
10141     *) ;; # Ignore the rest.
10142
10143     esac
10144   done
10145
10146   # Clean up.
10147   rm -f a.out a.exe
10148 else
10149   echo "libtool.m4: error: problem compiling CXX test program"
10150 fi
10151
10152 $rm -f confest.$objext
10153
10154 case " $postdeps_CXX " in
10155 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10156 esac
10157
10158 lt_prog_compiler_wl_CXX=
10159 lt_prog_compiler_pic_CXX=
10160 lt_prog_compiler_static_CXX=
10161
10162 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10163 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10164
10165   # C++ specific cases for pic, static, wl, etc.
10166   if test "$GXX" = yes; then
10167     lt_prog_compiler_wl_CXX='-Wl,'
10168     lt_prog_compiler_static_CXX='-static'
10169
10170     case $host_os in
10171     aix*)
10172       # All AIX code is PIC.
10173       if test "$host_cpu" = ia64; then
10174         # AIX 5 now supports IA64 processor
10175         lt_prog_compiler_static_CXX='-Bstatic'
10176       fi
10177       ;;
10178     amigaos*)
10179       # FIXME: we need at least 68020 code to build shared libraries, but
10180       # adding the `-m68020' flag to GCC prevents building anything better,
10181       # like `-m68040'.
10182       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10183       ;;
10184     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10185       # PIC is the default for these OSes.
10186       ;;
10187     mingw* | os2* | pw32*)
10188       # This hack is so that the source file can tell whether it is being
10189       # built for inclusion in a dll (and should export symbols for example).
10190       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10191       ;;
10192     darwin* | rhapsody*)
10193       # PIC is the default on this platform
10194       # Common symbols not allowed in MH_DYLIB files
10195       lt_prog_compiler_pic_CXX='-fno-common'
10196       ;;
10197     *djgpp*)
10198       # DJGPP does not support shared libraries at all
10199       lt_prog_compiler_pic_CXX=
10200       ;;
10201     sysv4*MP*)
10202       if test -d /usr/nec; then
10203         lt_prog_compiler_pic_CXX=-Kconform_pic
10204       fi
10205       ;;
10206     hpux*)
10207       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10208       # not for PA HP-UX.
10209       case "$host_cpu" in
10210       hppa*64*|ia64*)
10211         ;;
10212       *)
10213         lt_prog_compiler_pic_CXX='-fPIC'
10214         ;;
10215       esac
10216       ;;
10217     *)
10218       lt_prog_compiler_pic_CXX='-fPIC'
10219       ;;
10220     esac
10221   else
10222     case $host_os in
10223       aix4* | aix5*)
10224         # All AIX code is PIC.
10225         if test "$host_cpu" = ia64; then
10226           # AIX 5 now supports IA64 processor
10227           lt_prog_compiler_static_CXX='-Bstatic'
10228         else
10229           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10230         fi
10231         ;;
10232       chorus*)
10233         case $cc_basename in
10234         cxch68)
10235           # Green Hills C++ Compiler
10236           # _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"
10237           ;;
10238         esac
10239         ;;
10240       dgux*)
10241         case $cc_basename in
10242           ec++)
10243             lt_prog_compiler_pic_CXX='-KPIC'
10244             ;;
10245           ghcx)
10246             # Green Hills C++ Compiler
10247             lt_prog_compiler_pic_CXX='-pic'
10248             ;;
10249           *)
10250             ;;
10251         esac
10252         ;;
10253       freebsd*)
10254         # FreeBSD uses GNU C++
10255         ;;
10256       hpux9* | hpux10* | hpux11*)
10257         case $cc_basename in
10258           CC)
10259             lt_prog_compiler_wl_CXX='-Wl,'
10260             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10261             if test "$host_cpu" != ia64; then
10262               lt_prog_compiler_pic_CXX='+Z'
10263             fi
10264             ;;
10265           aCC)
10266             lt_prog_compiler_wl_CXX='-Wl,'
10267             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10268             case "$host_cpu" in
10269             hppa*64*|ia64*)
10270               # +Z the default
10271               ;;
10272             *)
10273               lt_prog_compiler_pic_CXX='+Z'
10274               ;;
10275             esac
10276             ;;
10277           *)
10278             ;;
10279         esac
10280         ;;
10281       irix5* | irix6* | nonstopux*)
10282         case $cc_basename in
10283           CC)
10284             lt_prog_compiler_wl_CXX='-Wl,'
10285             lt_prog_compiler_static_CXX='-non_shared'
10286             # CC pic flag -KPIC is the default.
10287             ;;
10288           *)
10289             ;;
10290         esac
10291         ;;
10292       linux*)
10293         case $cc_basename in
10294           KCC)
10295             # KAI C++ Compiler
10296             lt_prog_compiler_wl_CXX='--backend -Wl,'
10297             lt_prog_compiler_pic_CXX='-fPIC'
10298             ;;
10299           icpc)
10300             # Intel C++
10301             lt_prog_compiler_wl_CXX='-Wl,'
10302             lt_prog_compiler_pic_CXX='-KPIC'
10303             lt_prog_compiler_static_CXX='-static'
10304             ;;
10305           cxx)
10306             # Compaq C++
10307             # Make sure the PIC flag is empty.  It appears that all Alpha
10308             # Linux and Compaq Tru64 Unix objects are PIC.
10309             lt_prog_compiler_pic_CXX=
10310             lt_prog_compiler_static_CXX='-non_shared'
10311             ;;
10312           *)
10313             ;;
10314         esac
10315         ;;
10316       lynxos*)
10317         ;;
10318       m88k*)
10319         ;;
10320       mvs*)
10321         case $cc_basename in
10322           cxx)
10323             lt_prog_compiler_pic_CXX='-W c,exportall'
10324             ;;
10325           *)
10326             ;;
10327         esac
10328         ;;
10329       netbsd*)
10330         ;;
10331       osf3* | osf4* | osf5*)
10332         case $cc_basename in
10333           KCC)
10334             lt_prog_compiler_wl_CXX='--backend -Wl,'
10335             ;;
10336           RCC)
10337             # Rational C++ 2.4.1
10338             lt_prog_compiler_pic_CXX='-pic'
10339             ;;
10340           cxx)
10341             # Digital/Compaq C++
10342             lt_prog_compiler_wl_CXX='-Wl,'
10343             # Make sure the PIC flag is empty.  It appears that all Alpha
10344             # Linux and Compaq Tru64 Unix objects are PIC.
10345             lt_prog_compiler_pic_CXX=
10346             lt_prog_compiler_static_CXX='-non_shared'
10347             ;;
10348           *)
10349             ;;
10350         esac
10351         ;;
10352       psos*)
10353         ;;
10354       sco*)
10355         case $cc_basename in
10356           CC)
10357             lt_prog_compiler_pic_CXX='-fPIC'
10358             ;;
10359           *)
10360             ;;
10361         esac
10362         ;;
10363       solaris*)
10364         case $cc_basename in
10365           CC)
10366             # Sun C++ 4.2, 5.x and Centerline C++
10367             lt_prog_compiler_pic_CXX='-KPIC'
10368             lt_prog_compiler_static_CXX='-Bstatic'
10369             lt_prog_compiler_wl_CXX='-Qoption ld '
10370             ;;
10371           gcx)
10372             # Green Hills C++ Compiler
10373             lt_prog_compiler_pic_CXX='-PIC'
10374             ;;
10375           *)
10376             ;;
10377         esac
10378         ;;
10379       sunos4*)
10380         case $cc_basename in
10381           CC)
10382             # Sun C++ 4.x
10383             lt_prog_compiler_pic_CXX='-pic'
10384             lt_prog_compiler_static_CXX='-Bstatic'
10385             ;;
10386           lcc)
10387             # Lucid
10388             lt_prog_compiler_pic_CXX='-pic'
10389             ;;
10390           *)
10391             ;;
10392         esac
10393         ;;
10394       tandem*)
10395         case $cc_basename in
10396           NCC)
10397             # NonStop-UX NCC 3.20
10398             lt_prog_compiler_pic_CXX='-KPIC'
10399             ;;
10400           *)
10401             ;;
10402         esac
10403         ;;
10404       unixware*)
10405         ;;
10406       vxworks*)
10407         ;;
10408       *)
10409         lt_prog_compiler_can_build_shared_CXX=no
10410         ;;
10411     esac
10412   fi
10413
10414 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10415 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10416
10417 #
10418 # Check to make sure the PIC flag actually works.
10419 #
10420 if test -n "$lt_prog_compiler_pic_CXX"; then
10421   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10422 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10423 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10424   echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426   lt_prog_compiler_pic_works_CXX=no
10427   ac_outfile=conftest.$ac_objext
10428    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10429    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10430    # Insert the option either (1) after the last *FLAGS variable, or
10431    # (2) before a word containing "conftest.", or (3) at the end.
10432    # Note that $ac_compile itself does not contain backslashes and begins
10433    # with a dollar sign (not a hyphen), so the echo should work correctly.
10434    # The option is referenced via a variable to avoid confusing sed.
10435    lt_compile=`echo "$ac_compile" | $SED \
10436    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10437    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10438    -e 's:$: $lt_compiler_flag:'`
10439    (eval echo "\"\$as_me:10439: $lt_compile\"" >&5)
10440    (eval "$lt_compile" 2>conftest.err)
10441    ac_status=$?
10442    cat conftest.err >&5
10443    echo "$as_me:10443: \$? = $ac_status" >&5
10444    if (exit $ac_status) && test -s "$ac_outfile"; then
10445      # The compiler can only warn and ignore the option if not recognized
10446      # So say no if there are warnings
10447      if test ! -s conftest.err; then
10448        lt_prog_compiler_pic_works_CXX=yes
10449      fi
10450    fi
10451    $rm conftest*
10452
10453 fi
10454 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10455 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10456
10457 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10458     case $lt_prog_compiler_pic_CXX in
10459      "" | " "*) ;;
10460      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10461      esac
10462 else
10463     lt_prog_compiler_pic_CXX=
10464      lt_prog_compiler_can_build_shared_CXX=no
10465 fi
10466
10467 fi
10468 case "$host_os" in
10469   # For platforms which do not support PIC, -DPIC is meaningless:
10470   *djgpp*)
10471     lt_prog_compiler_pic_CXX=
10472     ;;
10473   *)
10474     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10475     ;;
10476 esac
10477
10478 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10479 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10480 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   lt_cv_prog_compiler_c_o_CXX=no
10484    $rm -r conftest 2>/dev/null
10485    mkdir conftest
10486    cd conftest
10487    mkdir out
10488    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10489
10490    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10491    # that will create temporary files in the current directory regardless of
10492    # the output directory.  Thus, making CWD read-only will cause this test
10493    # to fail, enabling locking or at least warning the user not to do parallel
10494    # builds.
10495    chmod -w .
10496
10497    lt_compiler_flag="-o out/conftest2.$ac_objext"
10498    # Insert the option either (1) after the last *FLAGS variable, or
10499    # (2) before a word containing "conftest.", or (3) at the end.
10500    # Note that $ac_compile itself does not contain backslashes and begins
10501    # with a dollar sign (not a hyphen), so the echo should work correctly.
10502    lt_compile=`echo "$ac_compile" | $SED \
10503    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10504    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10505    -e 's:$: $lt_compiler_flag:'`
10506    (eval echo "\"\$as_me:10506: $lt_compile\"" >&5)
10507    (eval "$lt_compile" 2>out/conftest.err)
10508    ac_status=$?
10509    cat out/conftest.err >&5
10510    echo "$as_me:10510: \$? = $ac_status" >&5
10511    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10512    then
10513      # The compiler can only warn and ignore the option if not recognized
10514      # So say no if there are warnings
10515      if test ! -s out/conftest.err; then
10516        lt_cv_prog_compiler_c_o_CXX=yes
10517      fi
10518    fi
10519    chmod u+w .
10520    $rm conftest* out/*
10521    rmdir out
10522    cd ..
10523    rmdir conftest
10524    $rm conftest*
10525
10526 fi
10527 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10528 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10529
10530
10531 hard_links="nottested"
10532 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10533   # do not overwrite the value of need_locks provided by the user
10534   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10535 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10536   hard_links=yes
10537   $rm conftest*
10538   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10539   touch conftest.a
10540   ln conftest.a conftest.b 2>&5 || hard_links=no
10541   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10542   echo "$as_me:$LINENO: result: $hard_links" >&5
10543 echo "${ECHO_T}$hard_links" >&6
10544   if test "$hard_links" = no; then
10545     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10546 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10547     need_locks=warn
10548   fi
10549 else
10550   need_locks=no
10551 fi
10552
10553 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10554 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10555
10556   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10557   case $host_os in
10558   aix4* | aix5*)
10559     # If we're using GNU nm, then we don't want the "-C" option.
10560     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10561     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10562       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'
10563     else
10564       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'
10565     fi
10566     ;;
10567   pw32*)
10568     export_symbols_cmds_CXX="$ltdll_cmds"
10569   ;;
10570   cygwin* | mingw*)
10571     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10572   ;;
10573   *)
10574     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10575   ;;
10576   esac
10577
10578 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10579 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10580 test "$ld_shlibs_CXX" = no && can_build_shared=no
10581
10582 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10583 if test "$GCC" = yes; then
10584   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10585 fi
10586
10587 #
10588 # Do we need to explicitly link libc?
10589 #
10590 case "x$archive_cmds_need_lc_CXX" in
10591 x|xyes)
10592   # Assume -lc should be added
10593   archive_cmds_need_lc_CXX=yes
10594
10595   if test "$enable_shared" = yes && test "$GCC" = yes; then
10596     case $archive_cmds_CXX in
10597     *'~'*)
10598       # FIXME: we may have to deal with multi-command sequences.
10599       ;;
10600     '$CC '*)
10601       # Test whether the compiler implicitly links with -lc since on some
10602       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10603       # to ld, don't add -lc before -lgcc.
10604       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10605 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10606       $rm conftest*
10607       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10608
10609       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10610   (eval $ac_compile) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); } 2>conftest.err; then
10614         soname=conftest
10615         lib=conftest
10616         libobjs=conftest.$ac_objext
10617         deplibs=
10618         wl=$lt_prog_compiler_wl_CXX
10619         compiler_flags=-v
10620         linker_flags=-v
10621         verstring=
10622         output_objdir=.
10623         libname=conftest
10624         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10625         allow_undefined_flag_CXX=
10626         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10627   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }
10631         then
10632           archive_cmds_need_lc_CXX=no
10633         else
10634           archive_cmds_need_lc_CXX=yes
10635         fi
10636         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10637       else
10638         cat conftest.err 1>&5
10639       fi
10640       $rm conftest*
10641       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10642 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10643       ;;
10644     esac
10645   fi
10646   ;;
10647 esac
10648
10649 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10650 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10651 hardcode_action_CXX=
10652 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10653    test -n "$runpath_var CXX" || \
10654    test "X$hardcode_automatic_CXX"="Xyes" ; then
10655
10656   # We can hardcode non-existant directories.
10657   if test "$hardcode_direct_CXX" != no &&
10658      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10659      # have to relink, otherwise we might link with an installed library
10660      # when we should be linking with a yet-to-be-installed one
10661      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10662      test "$hardcode_minus_L_CXX" != no; then
10663     # Linking always hardcodes the temporary library directory.
10664     hardcode_action_CXX=relink
10665   else
10666     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10667     hardcode_action_CXX=immediate
10668   fi
10669 else
10670   # We cannot hardcode anything, or else we can only hardcode existing
10671   # directories.
10672   hardcode_action_CXX=unsupported
10673 fi
10674 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10675 echo "${ECHO_T}$hardcode_action_CXX" >&6
10676
10677 if test "$hardcode_action_CXX" = relink; then
10678   # Fast installation is not supported
10679   enable_fast_install=no
10680 elif test "$shlibpath_overrides_runpath" = yes ||
10681      test "$enable_shared" = no; then
10682   # Fast installation is not necessary
10683   enable_fast_install=needless
10684 fi
10685
10686 striplib=
10687 old_striplib=
10688 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10689 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10690 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10691   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10692   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10693   echo "$as_me:$LINENO: result: yes" >&5
10694 echo "${ECHO_T}yes" >&6
10695 else
10696 # FIXME - insert some real tests, host_os isn't really good enough
10697   case $host_os in
10698    darwin*)
10699        if test -n "$STRIP" ; then
10700          striplib="$STRIP -x"
10701          echo "$as_me:$LINENO: result: yes" >&5
10702 echo "${ECHO_T}yes" >&6
10703        else
10704   echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6
10706 fi
10707        ;;
10708    *)
10709   echo "$as_me:$LINENO: result: no" >&5
10710 echo "${ECHO_T}no" >&6
10711     ;;
10712   esac
10713 fi
10714
10715 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10716 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10717 library_names_spec=
10718 libname_spec='lib$name'
10719 soname_spec=
10720 shrext=".so"
10721 postinstall_cmds=
10722 postuninstall_cmds=
10723 finish_cmds=
10724 finish_eval=
10725 shlibpath_var=
10726 shlibpath_overrides_runpath=unknown
10727 version_type=none
10728 dynamic_linker="$host_os ld.so"
10729 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10730 if test "$GCC" = yes; then
10731   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10732   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10733     # if the path contains ";" then we assume it to be the separator
10734     # otherwise default to the standard path separator (i.e. ":") - it is
10735     # assumed that no part of a normal pathname contains ";" but that should
10736     # okay in the real world where ";" in dirpaths is itself problematic.
10737     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10738   else
10739     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10740   fi
10741 else
10742   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10743 fi
10744 need_lib_prefix=unknown
10745 hardcode_into_libs=no
10746
10747 # when you set need_version to no, make sure it does not cause -set_version
10748 # flags to be left without arguments
10749 need_version=unknown
10750
10751 case $host_os in
10752 aix3*)
10753   version_type=linux
10754   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10755   shlibpath_var=LIBPATH
10756
10757   # AIX 3 has no versioning support, so we append a major version to the name.
10758   soname_spec='${libname}${release}${shared_ext}$major'
10759   ;;
10760
10761 aix4* | aix5*)
10762   version_type=linux
10763   need_lib_prefix=no
10764   need_version=no
10765   hardcode_into_libs=yes
10766   if test "$host_cpu" = ia64; then
10767     # AIX 5 supports IA64
10768     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10769     shlibpath_var=LD_LIBRARY_PATH
10770   else
10771     # With GCC up to 2.95.x, collect2 would create an import file
10772     # for dependence libraries.  The import file would start with
10773     # the line `#! .'.  This would cause the generated library to
10774     # depend on `.', always an invalid library.  This was fixed in
10775     # development snapshots of GCC prior to 3.0.
10776     case $host_os in
10777       aix4 | aix4.[01] | aix4.[01].*)
10778       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10779            echo ' yes '
10780            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10781         :
10782       else
10783         can_build_shared=no
10784       fi
10785       ;;
10786     esac
10787     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10788     # soname into executable. Probably we can add versioning support to
10789     # collect2, so additional links can be useful in future.
10790     if test "$aix_use_runtimelinking" = yes; then
10791       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10792       # instead of lib<name>.a to let people know that these are not
10793       # typical AIX shared libraries.
10794       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795     else
10796       # We preserve .a as extension for shared libraries through AIX4.2
10797       # and later when we are not doing run time linking.
10798       library_names_spec='${libname}${release}.a $libname.a'
10799       soname_spec='${libname}${release}${shared_ext}$major'
10800     fi
10801     shlibpath_var=LIBPATH
10802   fi
10803   ;;
10804
10805 amigaos*)
10806   library_names_spec='$libname.ixlibrary $libname.a'
10807   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10808   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'
10809   ;;
10810
10811 beos*)
10812   library_names_spec='${libname}${shared_ext}'
10813   dynamic_linker="$host_os ld.so"
10814   shlibpath_var=LIBRARY_PATH
10815   ;;
10816
10817 bsdi4*)
10818   version_type=linux
10819   need_version=no
10820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821   soname_spec='${libname}${release}${shared_ext}$major'
10822   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10823   shlibpath_var=LD_LIBRARY_PATH
10824   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10825   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10826   # the default ld.so.conf also contains /usr/contrib/lib and
10827   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10828   # libtool to hard-code these into programs
10829   ;;
10830
10831 cygwin* | mingw* | pw32*)
10832   version_type=windows
10833   shrext=".dll"
10834   need_version=no
10835   need_lib_prefix=no
10836
10837   case $GCC,$host_os in
10838   yes,cygwin* | yes,mingw* | yes,pw32*)
10839     library_names_spec='$libname.dll.a'
10840     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10841     postinstall_cmds='base_file=`basename \${file}`~
10842       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10843       dldir=$destdir/`dirname \$dlpath`~
10844       test -d \$dldir || mkdir -p \$dldir~
10845       $install_prog $dir/$dlname \$dldir/$dlname'
10846     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10847       dlpath=$dir/\$dldll~
10848        $rm \$dlpath'
10849     shlibpath_overrides_runpath=yes
10850
10851     case $host_os in
10852     cygwin*)
10853       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10854       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10855       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10856       ;;
10857     mingw*)
10858       # MinGW DLLs use traditional 'lib' prefix
10859       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10860       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10861       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10862         # It is most probably a Windows format PATH printed by
10863         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10864         # path with ; separators, and with drive letters. We can handle the
10865         # drive letters (cygwin fileutils understands them), so leave them,
10866         # especially as we might pass files found there to a mingw objdump,
10867         # which wouldn't understand a cygwinified path. Ahh.
10868         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10869       else
10870         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10871       fi
10872       ;;
10873     pw32*)
10874       # pw32 DLLs use 'pw' prefix rather than 'lib'
10875       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10876       ;;
10877     esac
10878     ;;
10879
10880   *)
10881     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10882     ;;
10883   esac
10884   dynamic_linker='Win32 ld.exe'
10885   # FIXME: first we should search . and the directory the executable is in
10886   shlibpath_var=PATH
10887   ;;
10888
10889 darwin* | rhapsody*)
10890   dynamic_linker="$host_os dyld"
10891   version_type=darwin
10892   need_lib_prefix=no
10893   need_version=no
10894   # FIXME: Relying on posixy $() will cause problems for
10895   #        cross-compilation, but unfortunately the echo tests do not
10896   #        yet detect zsh echo's removal of \ escapes.
10897   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10898   soname_spec='${libname}${release}${major}$shared_ext'
10899   shlibpath_overrides_runpath=yes
10900   shlibpath_var=DYLD_LIBRARY_PATH
10901   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10902   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10903   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10904   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"`
10905   fi
10906   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10907   ;;
10908
10909 dgux*)
10910   version_type=linux
10911   need_lib_prefix=no
10912   need_version=no
10913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10914   soname_spec='${libname}${release}${shared_ext}$major'
10915   shlibpath_var=LD_LIBRARY_PATH
10916   ;;
10917
10918 freebsd1*)
10919   dynamic_linker=no
10920   ;;
10921
10922 freebsd*)
10923   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10924   version_type=freebsd-$objformat
10925   case $version_type in
10926     freebsd-elf*)
10927       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10928       need_version=no
10929       need_lib_prefix=no
10930       ;;
10931     freebsd-*)
10932       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10933       need_version=yes
10934       ;;
10935   esac
10936   shlibpath_var=LD_LIBRARY_PATH
10937   case $host_os in
10938   freebsd2*)
10939     shlibpath_overrides_runpath=yes
10940     ;;
10941   freebsd3.01* | freebsdelf3.01*)
10942     shlibpath_overrides_runpath=yes
10943     hardcode_into_libs=yes
10944     ;;
10945   *) # from 3.2 on
10946     shlibpath_overrides_runpath=no
10947     hardcode_into_libs=yes
10948     ;;
10949   esac
10950   ;;
10951
10952 gnu*)
10953   version_type=linux
10954   need_lib_prefix=no
10955   need_version=no
10956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10957   soname_spec='${libname}${release}${shared_ext}$major'
10958   shlibpath_var=LD_LIBRARY_PATH
10959   hardcode_into_libs=yes
10960   ;;
10961
10962 hpux9* | hpux10* | hpux11*)
10963   # Give a soname corresponding to the major version so that dld.sl refuses to
10964   # link against other versions.
10965   version_type=sunos
10966   need_lib_prefix=no
10967   need_version=no
10968   case "$host_cpu" in
10969   ia64*)
10970     shrext='.so'
10971     hardcode_into_libs=yes
10972     dynamic_linker="$host_os dld.so"
10973     shlibpath_var=LD_LIBRARY_PATH
10974     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976     soname_spec='${libname}${release}${shared_ext}$major'
10977     if test "X$HPUX_IA64_MODE" = X32; then
10978       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10979     else
10980       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10981     fi
10982     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10983     ;;
10984    hppa*64*)
10985      shrext='.sl'
10986      hardcode_into_libs=yes
10987      dynamic_linker="$host_os dld.sl"
10988      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10989      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10990      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991      soname_spec='${libname}${release}${shared_ext}$major'
10992      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10993      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10994      ;;
10995    *)
10996     shrext='.sl'
10997     dynamic_linker="$host_os dld.sl"
10998     shlibpath_var=SHLIB_PATH
10999     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001     soname_spec='${libname}${release}${shared_ext}$major'
11002     ;;
11003   esac
11004   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11005   postinstall_cmds='chmod 555 $lib'
11006   ;;
11007
11008 irix5* | irix6* | nonstopux*)
11009   case $host_os in
11010     nonstopux*) version_type=nonstopux ;;
11011     *)
11012         if test "$lt_cv_prog_gnu_ld" = yes; then
11013                 version_type=linux
11014         else
11015                 version_type=irix
11016         fi ;;
11017   esac
11018   need_lib_prefix=no
11019   need_version=no
11020   soname_spec='${libname}${release}${shared_ext}$major'
11021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11022   case $host_os in
11023   irix5* | nonstopux*)
11024     libsuff= shlibsuff=
11025     ;;
11026   *)
11027     case $LD in # libtool.m4 will add one of these switches to LD
11028     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11029       libsuff= shlibsuff= libmagic=32-bit;;
11030     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11031       libsuff=32 shlibsuff=N32 libmagic=N32;;
11032     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11033       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11034     *) libsuff= shlibsuff= libmagic=never-match;;
11035     esac
11036     ;;
11037   esac
11038   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11039   shlibpath_overrides_runpath=no
11040   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11041   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11042   hardcode_into_libs=yes
11043   ;;
11044
11045 # No shared lib support for Linux oldld, aout, or coff.
11046 linux*oldld* | linux*aout* | linux*coff*)
11047   dynamic_linker=no
11048   ;;
11049
11050 # This must be Linux ELF.
11051 linux*)
11052   version_type=linux
11053   need_lib_prefix=no
11054   need_version=no
11055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056   soname_spec='${libname}${release}${shared_ext}$major'
11057   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11058   shlibpath_var=LD_LIBRARY_PATH
11059   shlibpath_overrides_runpath=no
11060   # This implies no fast_install, which is unacceptable.
11061   # Some rework will be needed to allow for fast_install
11062   # before this can be enabled.
11063   hardcode_into_libs=yes
11064
11065   # We used to test for /lib/ld.so.1 and disable shared libraries on
11066   # powerpc, because MkLinux only supported shared libraries with the
11067   # GNU dynamic linker.  Since this was broken with cross compilers,
11068   # most powerpc-linux boxes support dynamic linking these days and
11069   # people can always --disable-shared, the test was removed, and we
11070   # assume the GNU/Linux dynamic linker is in use.
11071   dynamic_linker='GNU/Linux ld.so'
11072   ;;
11073
11074 netbsd*)
11075   version_type=sunos
11076   need_lib_prefix=no
11077   need_version=no
11078   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11080     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11081     dynamic_linker='NetBSD (a.out) ld.so'
11082   else
11083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11084     soname_spec='${libname}${release}${shared_ext}$major'
11085     dynamic_linker='NetBSD ld.elf_so'
11086   fi
11087   shlibpath_var=LD_LIBRARY_PATH
11088   shlibpath_overrides_runpath=yes
11089   hardcode_into_libs=yes
11090   ;;
11091
11092 newsos6)
11093   version_type=linux
11094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095   shlibpath_var=LD_LIBRARY_PATH
11096   shlibpath_overrides_runpath=yes
11097   ;;
11098
11099 nto-qnx)
11100   version_type=linux
11101   need_lib_prefix=no
11102   need_version=no
11103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104   soname_spec='${libname}${release}${shared_ext}$major'
11105   shlibpath_var=LD_LIBRARY_PATH
11106   shlibpath_overrides_runpath=yes
11107   ;;
11108
11109 openbsd*)
11110   version_type=sunos
11111   need_lib_prefix=no
11112   need_version=no
11113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11114   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11115   shlibpath_var=LD_LIBRARY_PATH
11116   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11117     case $host_os in
11118       openbsd2.[89] | openbsd2.[89].*)
11119         shlibpath_overrides_runpath=no
11120         ;;
11121       *)
11122         shlibpath_overrides_runpath=yes
11123         ;;
11124       esac
11125   else
11126     shlibpath_overrides_runpath=yes
11127   fi
11128   ;;
11129
11130 os2*)
11131   libname_spec='$name'
11132   shrext=".dll"
11133   need_lib_prefix=no
11134   library_names_spec='$libname${shared_ext} $libname.a'
11135   dynamic_linker='OS/2 ld.exe'
11136   shlibpath_var=LIBPATH
11137   ;;
11138
11139 osf3* | osf4* | osf5*)
11140   version_type=osf
11141   need_lib_prefix=no
11142   need_version=no
11143   soname_spec='${libname}${release}${shared_ext}$major'
11144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145   shlibpath_var=LD_LIBRARY_PATH
11146   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11147   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11148   ;;
11149
11150 sco3.2v5*)
11151   version_type=osf
11152   soname_spec='${libname}${release}${shared_ext}$major'
11153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154   shlibpath_var=LD_LIBRARY_PATH
11155   ;;
11156
11157 solaris*)
11158   version_type=linux
11159   need_lib_prefix=no
11160   need_version=no
11161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162   soname_spec='${libname}${release}${shared_ext}$major'
11163   shlibpath_var=LD_LIBRARY_PATH
11164   shlibpath_overrides_runpath=yes
11165   hardcode_into_libs=yes
11166   # ldd complains unless libraries are executable
11167   postinstall_cmds='chmod +x $lib'
11168   ;;
11169
11170 sunos4*)
11171   version_type=sunos
11172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11173   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11174   shlibpath_var=LD_LIBRARY_PATH
11175   shlibpath_overrides_runpath=yes
11176   if test "$with_gnu_ld" = yes; then
11177     need_lib_prefix=no
11178   fi
11179   need_version=yes
11180   ;;
11181
11182 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11183   version_type=linux
11184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185   soname_spec='${libname}${release}${shared_ext}$major'
11186   shlibpath_var=LD_LIBRARY_PATH
11187   case $host_vendor in
11188     sni)
11189       shlibpath_overrides_runpath=no
11190       need_lib_prefix=no
11191       export_dynamic_flag_spec='${wl}-Blargedynsym'
11192       runpath_var=LD_RUN_PATH
11193       ;;
11194     siemens)
11195       need_lib_prefix=no
11196       ;;
11197     motorola)
11198       need_lib_prefix=no
11199       need_version=no
11200       shlibpath_overrides_runpath=no
11201       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11202       ;;
11203   esac
11204   ;;
11205
11206 sysv4*MP*)
11207   if test -d /usr/nec ;then
11208     version_type=linux
11209     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11210     soname_spec='$libname${shared_ext}.$major'
11211     shlibpath_var=LD_LIBRARY_PATH
11212   fi
11213   ;;
11214
11215 uts4*)
11216   version_type=linux
11217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218   soname_spec='${libname}${release}${shared_ext}$major'
11219   shlibpath_var=LD_LIBRARY_PATH
11220   ;;
11221
11222 *)
11223   dynamic_linker=no
11224   ;;
11225 esac
11226 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11227 echo "${ECHO_T}$dynamic_linker" >&6
11228 test "$dynamic_linker" = no && can_build_shared=no
11229
11230 if test "x$enable_dlopen" != xyes; then
11231   enable_dlopen=unknown
11232   enable_dlopen_self=unknown
11233   enable_dlopen_self_static=unknown
11234 else
11235   lt_cv_dlopen=no
11236   lt_cv_dlopen_libs=
11237
11238   case $host_os in
11239   beos*)
11240     lt_cv_dlopen="load_add_on"
11241     lt_cv_dlopen_libs=
11242     lt_cv_dlopen_self=yes
11243     ;;
11244
11245   mingw* | pw32*)
11246     lt_cv_dlopen="LoadLibrary"
11247     lt_cv_dlopen_libs=
11248    ;;
11249
11250   cygwin*)
11251     lt_cv_dlopen="dlopen"
11252     lt_cv_dlopen_libs=
11253    ;;
11254
11255   darwin*)
11256   # if libdl is installed we need to link against it
11257     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11258 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11259 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11260   echo $ECHO_N "(cached) $ECHO_C" >&6
11261 else
11262   ac_check_lib_save_LIBS=$LIBS
11263 LIBS="-ldl  $LIBS"
11264 cat >conftest.$ac_ext <<_ACEOF
11265 #line $LINENO "configure"
11266 /* confdefs.h.  */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h.  */
11271
11272 /* Override any gcc2 internal prototype to avoid an error.  */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 /* We use char because int might match the return type of a gcc2
11277    builtin and then its argument prototype would still apply.  */
11278 char dlopen ();
11279 int
11280 main ()
11281 {
11282 dlopen ();
11283   ;
11284   return 0;
11285 }
11286 _ACEOF
11287 rm -f conftest.$ac_objext conftest$ac_exeext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289   (eval $ac_link) 2>&5
11290   ac_status=$?
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } &&
11293          { ac_try='test -s conftest$ac_exeext'
11294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295   (eval $ac_try) 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); }; }; then
11299   ac_cv_lib_dl_dlopen=yes
11300 else
11301   echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11303
11304 ac_cv_lib_dl_dlopen=no
11305 fi
11306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11307 LIBS=$ac_check_lib_save_LIBS
11308 fi
11309 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11310 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11311 if test $ac_cv_lib_dl_dlopen = yes; then
11312   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11313 else
11314
11315     lt_cv_dlopen="dyld"
11316     lt_cv_dlopen_libs=
11317     lt_cv_dlopen_self=yes
11318
11319 fi
11320
11321    ;;
11322
11323   *)
11324     echo "$as_me:$LINENO: checking for shl_load" >&5
11325 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11326 if test "${ac_cv_func_shl_load+set}" = set; then
11327   echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329   cat >conftest.$ac_ext <<_ACEOF
11330 #line $LINENO "configure"
11331 /* confdefs.h.  */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h.  */
11336 /* System header to define __stub macros and hopefully few prototypes,
11337     which can conflict with char shl_load (); below.
11338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339     <limits.h> exists even on freestanding compilers.  */
11340 #ifdef __STDC__
11341 # include <limits.h>
11342 #else
11343 # include <assert.h>
11344 #endif
11345 /* Override any gcc2 internal prototype to avoid an error.  */
11346 #ifdef __cplusplus
11347 extern "C"
11348 {
11349 #endif
11350 /* We use char because int might match the return type of a gcc2
11351    builtin and then its argument prototype would still apply.  */
11352 char shl_load ();
11353 /* The GNU C library defines this for functions which it implements
11354     to always fail with ENOSYS.  Some functions are actually named
11355     something starting with __ and the normal name is an alias.  */
11356 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11357 choke me
11358 #else
11359 char (*f) () = shl_load;
11360 #endif
11361 #ifdef __cplusplus
11362 }
11363 #endif
11364
11365 int
11366 main ()
11367 {
11368 return f != shl_load;
11369   ;
11370   return 0;
11371 }
11372 _ACEOF
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375   (eval $ac_link) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); } &&
11379          { ac_try='test -s conftest$ac_exeext'
11380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381   (eval $ac_try) 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); }; }; then
11385   ac_cv_func_shl_load=yes
11386 else
11387   echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 ac_cv_func_shl_load=no
11391 fi
11392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11393 fi
11394 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11395 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11396 if test $ac_cv_func_shl_load = yes; then
11397   lt_cv_dlopen="shl_load"
11398 else
11399   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11400 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11401 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11402   echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404   ac_check_lib_save_LIBS=$LIBS
11405 LIBS="-ldld  $LIBS"
11406 cat >conftest.$ac_ext <<_ACEOF
11407 #line $LINENO "configure"
11408 /* confdefs.h.  */
11409 _ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h.  */
11413
11414 /* Override any gcc2 internal prototype to avoid an error.  */
11415 #ifdef __cplusplus
11416 extern "C"
11417 #endif
11418 /* We use char because int might match the return type of a gcc2
11419    builtin and then its argument prototype would still apply.  */
11420 char shl_load ();
11421 int
11422 main ()
11423 {
11424 shl_load ();
11425   ;
11426   return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431   (eval $ac_link) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } &&
11435          { ac_try='test -s conftest$ac_exeext'
11436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437   (eval $ac_try) 2>&5
11438   ac_status=$?
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); }; }; then
11441   ac_cv_lib_dld_shl_load=yes
11442 else
11443   echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11445
11446 ac_cv_lib_dld_shl_load=no
11447 fi
11448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11449 LIBS=$ac_check_lib_save_LIBS
11450 fi
11451 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11452 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11453 if test $ac_cv_lib_dld_shl_load = yes; then
11454   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11455 else
11456   echo "$as_me:$LINENO: checking for dlopen" >&5
11457 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11458 if test "${ac_cv_func_dlopen+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11463 /* confdefs.h.  */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h.  */
11468 /* System header to define __stub macros and hopefully few prototypes,
11469     which can conflict with char dlopen (); below.
11470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11471     <limits.h> exists even on freestanding compilers.  */
11472 #ifdef __STDC__
11473 # include <limits.h>
11474 #else
11475 # include <assert.h>
11476 #endif
11477 /* Override any gcc2 internal prototype to avoid an error.  */
11478 #ifdef __cplusplus
11479 extern "C"
11480 {
11481 #endif
11482 /* We use char because int might match the return type of a gcc2
11483    builtin and then its argument prototype would still apply.  */
11484 char dlopen ();
11485 /* The GNU C library defines this for functions which it implements
11486     to always fail with ENOSYS.  Some functions are actually named
11487     something starting with __ and the normal name is an alias.  */
11488 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11489 choke me
11490 #else
11491 char (*f) () = dlopen;
11492 #endif
11493 #ifdef __cplusplus
11494 }
11495 #endif
11496
11497 int
11498 main ()
11499 {
11500 return f != dlopen;
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507   (eval $ac_link) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } &&
11511          { ac_try='test -s conftest$ac_exeext'
11512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513   (eval $ac_try) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; }; then
11517   ac_cv_func_dlopen=yes
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 ac_cv_func_dlopen=no
11523 fi
11524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11525 fi
11526 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11527 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11528 if test $ac_cv_func_dlopen = yes; then
11529   lt_cv_dlopen="dlopen"
11530 else
11531   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11532 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11533 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   ac_check_lib_save_LIBS=$LIBS
11537 LIBS="-ldl  $LIBS"
11538 cat >conftest.$ac_ext <<_ACEOF
11539 #line $LINENO "configure"
11540 /* confdefs.h.  */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h.  */
11545
11546 /* Override any gcc2 internal prototype to avoid an error.  */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 /* We use char because int might match the return type of a gcc2
11551    builtin and then its argument prototype would still apply.  */
11552 char dlopen ();
11553 int
11554 main ()
11555 {
11556 dlopen ();
11557   ;
11558   return 0;
11559 }
11560 _ACEOF
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563   (eval $ac_link) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } &&
11567          { ac_try='test -s conftest$ac_exeext'
11568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569   (eval $ac_try) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; }; then
11573   ac_cv_lib_dl_dlopen=yes
11574 else
11575   echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 ac_cv_lib_dl_dlopen=no
11579 fi
11580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11581 LIBS=$ac_check_lib_save_LIBS
11582 fi
11583 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11584 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11585 if test $ac_cv_lib_dl_dlopen = yes; then
11586   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11587 else
11588   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11589 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11590 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593   ac_check_lib_save_LIBS=$LIBS
11594 LIBS="-lsvld  $LIBS"
11595 cat >conftest.$ac_ext <<_ACEOF
11596 #line $LINENO "configure"
11597 /* confdefs.h.  */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h.  */
11602
11603 /* Override any gcc2 internal prototype to avoid an error.  */
11604 #ifdef __cplusplus
11605 extern "C"
11606 #endif
11607 /* We use char because int might match the return type of a gcc2
11608    builtin and then its argument prototype would still apply.  */
11609 char dlopen ();
11610 int
11611 main ()
11612 {
11613 dlopen ();
11614   ;
11615   return 0;
11616 }
11617 _ACEOF
11618 rm -f conftest.$ac_objext conftest$ac_exeext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11620   (eval $ac_link) 2>&5
11621   ac_status=$?
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); } &&
11624          { ac_try='test -s conftest$ac_exeext'
11625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626   (eval $ac_try) 2>&5
11627   ac_status=$?
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); }; }; then
11630   ac_cv_lib_svld_dlopen=yes
11631 else
11632   echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11634
11635 ac_cv_lib_svld_dlopen=no
11636 fi
11637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11638 LIBS=$ac_check_lib_save_LIBS
11639 fi
11640 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11641 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11642 if test $ac_cv_lib_svld_dlopen = yes; then
11643   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11644 else
11645   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11646 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11647 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   ac_check_lib_save_LIBS=$LIBS
11651 LIBS="-ldld  $LIBS"
11652 cat >conftest.$ac_ext <<_ACEOF
11653 #line $LINENO "configure"
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659
11660 /* Override any gcc2 internal prototype to avoid an error.  */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 /* We use char because int might match the return type of a gcc2
11665    builtin and then its argument prototype would still apply.  */
11666 char dld_link ();
11667 int
11668 main ()
11669 {
11670 dld_link ();
11671   ;
11672   return 0;
11673 }
11674 _ACEOF
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11677   (eval $ac_link) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); } &&
11681          { ac_try='test -s conftest$ac_exeext'
11682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683   (eval $ac_try) 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; }; then
11687   ac_cv_lib_dld_dld_link=yes
11688 else
11689   echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 ac_cv_lib_dld_dld_link=no
11693 fi
11694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11696 fi
11697 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11698 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11699 if test $ac_cv_lib_dld_dld_link = yes; then
11700   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11701 fi
11702
11703
11704 fi
11705
11706
11707 fi
11708
11709
11710 fi
11711
11712
11713 fi
11714
11715
11716 fi
11717
11718     ;;
11719   esac
11720
11721   if test "x$lt_cv_dlopen" != xno; then
11722     enable_dlopen=yes
11723   else
11724     enable_dlopen=no
11725   fi
11726
11727   case $lt_cv_dlopen in
11728   dlopen)
11729     save_CPPFLAGS="$CPPFLAGS"
11730     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11731
11732     save_LDFLAGS="$LDFLAGS"
11733     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11734
11735     save_LIBS="$LIBS"
11736     LIBS="$lt_cv_dlopen_libs $LIBS"
11737
11738     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11739 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11740 if test "${lt_cv_dlopen_self+set}" = set; then
11741   echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743           if test "$cross_compiling" = yes; then :
11744   lt_cv_dlopen_self=cross
11745 else
11746   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11747   lt_status=$lt_dlunknown
11748   cat > conftest.$ac_ext <<EOF
11749 #line 11749 "configure"
11750 #include "confdefs.h"
11751
11752 #if HAVE_DLFCN_H
11753 #include <dlfcn.h>
11754 #endif
11755
11756 #include <stdio.h>
11757
11758 #ifdef RTLD_GLOBAL
11759 #  define LT_DLGLOBAL           RTLD_GLOBAL
11760 #else
11761 #  ifdef DL_GLOBAL
11762 #    define LT_DLGLOBAL         DL_GLOBAL
11763 #  else
11764 #    define LT_DLGLOBAL         0
11765 #  endif
11766 #endif
11767
11768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11769    find out it does not work in some platform. */
11770 #ifndef LT_DLLAZY_OR_NOW
11771 #  ifdef RTLD_LAZY
11772 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11773 #  else
11774 #    ifdef DL_LAZY
11775 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11776 #    else
11777 #      ifdef RTLD_NOW
11778 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11779 #      else
11780 #        ifdef DL_NOW
11781 #          define LT_DLLAZY_OR_NOW      DL_NOW
11782 #        else
11783 #          define LT_DLLAZY_OR_NOW      0
11784 #        endif
11785 #      endif
11786 #    endif
11787 #  endif
11788 #endif
11789
11790 #ifdef __cplusplus
11791 extern "C" void exit (int);
11792 #endif
11793
11794 void fnord() { int i=42;}
11795 int main ()
11796 {
11797   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11798   int status = $lt_dlunknown;
11799
11800   if (self)
11801     {
11802       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11803       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11804       /* dlclose (self); */
11805     }
11806
11807     exit (status);
11808 }
11809 EOF
11810   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811   (eval $ac_link) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11815     (./conftest; exit; ) 2>/dev/null
11816     lt_status=$?
11817     case x$lt_status in
11818       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11819       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11820       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11821     esac
11822   else :
11823     # compilation failed
11824     lt_cv_dlopen_self=no
11825   fi
11826 fi
11827 rm -fr conftest*
11828
11829
11830 fi
11831 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11832 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11833
11834     if test "x$lt_cv_dlopen_self" = xyes; then
11835       LDFLAGS="$LDFLAGS $link_static_flag"
11836       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11837 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11838 if test "${lt_cv_dlopen_self_static+set}" = set; then
11839   echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841           if test "$cross_compiling" = yes; then :
11842   lt_cv_dlopen_self_static=cross
11843 else
11844   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11845   lt_status=$lt_dlunknown
11846   cat > conftest.$ac_ext <<EOF
11847 #line 11847 "configure"
11848 #include "confdefs.h"
11849
11850 #if HAVE_DLFCN_H
11851 #include <dlfcn.h>
11852 #endif
11853
11854 #include <stdio.h>
11855
11856 #ifdef RTLD_GLOBAL
11857 #  define LT_DLGLOBAL           RTLD_GLOBAL
11858 #else
11859 #  ifdef DL_GLOBAL
11860 #    define LT_DLGLOBAL         DL_GLOBAL
11861 #  else
11862 #    define LT_DLGLOBAL         0
11863 #  endif
11864 #endif
11865
11866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11867    find out it does not work in some platform. */
11868 #ifndef LT_DLLAZY_OR_NOW
11869 #  ifdef RTLD_LAZY
11870 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11871 #  else
11872 #    ifdef DL_LAZY
11873 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11874 #    else
11875 #      ifdef RTLD_NOW
11876 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11877 #      else
11878 #        ifdef DL_NOW
11879 #          define LT_DLLAZY_OR_NOW      DL_NOW
11880 #        else
11881 #          define LT_DLLAZY_OR_NOW      0
11882 #        endif
11883 #      endif
11884 #    endif
11885 #  endif
11886 #endif
11887
11888 #ifdef __cplusplus
11889 extern "C" void exit (int);
11890 #endif
11891
11892 void fnord() { int i=42;}
11893 int main ()
11894 {
11895   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11896   int status = $lt_dlunknown;
11897
11898   if (self)
11899     {
11900       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11901       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11902       /* dlclose (self); */
11903     }
11904
11905     exit (status);
11906 }
11907 EOF
11908   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909   (eval $ac_link) 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11913     (./conftest; exit; ) 2>/dev/null
11914     lt_status=$?
11915     case x$lt_status in
11916       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11917       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11918       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11919     esac
11920   else :
11921     # compilation failed
11922     lt_cv_dlopen_self_static=no
11923   fi
11924 fi
11925 rm -fr conftest*
11926
11927
11928 fi
11929 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11930 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11931     fi
11932
11933     CPPFLAGS="$save_CPPFLAGS"
11934     LDFLAGS="$save_LDFLAGS"
11935     LIBS="$save_LIBS"
11936     ;;
11937   esac
11938
11939   case $lt_cv_dlopen_self in
11940   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11941   *) enable_dlopen_self=unknown ;;
11942   esac
11943
11944   case $lt_cv_dlopen_self_static in
11945   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11946   *) enable_dlopen_self_static=unknown ;;
11947   esac
11948 fi
11949
11950
11951 # The else clause should only fire when bootstrapping the
11952 # libtool distribution, otherwise you forgot to ship ltmain.sh
11953 # with your package, and you will get complaints that there are
11954 # no rules to generate ltmain.sh.
11955 if test -f "$ltmain"; then
11956   # See if we are running on zsh, and set the options which allow our commands through
11957   # without removal of \ escapes.
11958   if test -n "${ZSH_VERSION+set}" ; then
11959     setopt NO_GLOB_SUBST
11960   fi
11961   # Now quote all the things that may contain metacharacters while being
11962   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11963   # variables and quote the copies for generation of the libtool script.
11964   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11965     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11966     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11967     deplibs_check_method reload_flag reload_cmds need_locks \
11968     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11969     lt_cv_sys_global_symbol_to_c_name_address \
11970     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11971     old_postinstall_cmds old_postuninstall_cmds \
11972     compiler_CXX \
11973     CC_CXX \
11974     LD_CXX \
11975     lt_prog_compiler_wl_CXX \
11976     lt_prog_compiler_pic_CXX \
11977     lt_prog_compiler_static_CXX \
11978     lt_prog_compiler_no_builtin_flag_CXX \
11979     export_dynamic_flag_spec_CXX \
11980     thread_safe_flag_spec_CXX \
11981     whole_archive_flag_spec_CXX \
11982     enable_shared_with_static_runtimes_CXX \
11983     old_archive_cmds_CXX \
11984     old_archive_from_new_cmds_CXX \
11985     predep_objects_CXX \
11986     postdep_objects_CXX \
11987     predeps_CXX \
11988     postdeps_CXX \
11989     compiler_lib_search_path_CXX \
11990     archive_cmds_CXX \
11991     archive_expsym_cmds_CXX \
11992     postinstall_cmds_CXX \
11993     postuninstall_cmds_CXX \
11994     old_archive_from_expsyms_cmds_CXX \
11995     allow_undefined_flag_CXX \
11996     no_undefined_flag_CXX \
11997     export_symbols_cmds_CXX \
11998     hardcode_libdir_flag_spec_CXX \
11999     hardcode_libdir_flag_spec_ld_CXX \
12000     hardcode_libdir_separator_CXX \
12001     hardcode_automatic_CXX \
12002     module_cmds_CXX \
12003     module_expsym_cmds_CXX \
12004     lt_cv_prog_compiler_c_o_CXX \
12005     exclude_expsyms_CXX \
12006     include_expsyms_CXX; do
12007
12008     case $var in
12009     old_archive_cmds_CXX | \
12010     old_archive_from_new_cmds_CXX | \
12011     archive_cmds_CXX | \
12012     archive_expsym_cmds_CXX | \
12013     module_cmds_CXX | \
12014     module_expsym_cmds_CXX | \
12015     old_archive_from_expsyms_cmds_CXX | \
12016     export_symbols_cmds_CXX | \
12017     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12018     postinstall_cmds | postuninstall_cmds | \
12019     old_postinstall_cmds | old_postuninstall_cmds | \
12020     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12021       # Double-quote double-evaled strings.
12022       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12023       ;;
12024     *)
12025       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12026       ;;
12027     esac
12028   done
12029
12030   case $lt_echo in
12031   *'\$0 --fallback-echo"')
12032     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12033     ;;
12034   esac
12035
12036 cfgfile="$ofile"
12037
12038   cat <<__EOF__ >> "$cfgfile"
12039 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12040
12041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12042
12043 # Shell to use when invoking shell scripts.
12044 SHELL=$lt_SHELL
12045
12046 # Whether or not to build shared libraries.
12047 build_libtool_libs=$enable_shared
12048
12049 # Whether or not to build static libraries.
12050 build_old_libs=$enable_static
12051
12052 # Whether or not to add -lc for building shared libraries.
12053 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12054
12055 # Whether or not to disallow shared libs when runtime libs are static
12056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12057
12058 # Whether or not to optimize for fast installation.
12059 fast_install=$enable_fast_install
12060
12061 # The host system.
12062 host_alias=$host_alias
12063 host=$host
12064
12065 # An echo program that does not interpret backslashes.
12066 echo=$lt_echo
12067
12068 # The archiver.
12069 AR=$lt_AR
12070 AR_FLAGS=$lt_AR_FLAGS
12071
12072 # A C compiler.
12073 LTCC=$lt_LTCC
12074
12075 # A language-specific compiler.
12076 CC=$lt_compiler_CXX
12077
12078 # Is the compiler the GNU C compiler?
12079 with_gcc=$GCC_CXX
12080
12081 # An ERE matcher.
12082 EGREP=$lt_EGREP
12083
12084 # The linker used to build libraries.
12085 LD=$lt_LD_CXX
12086
12087 # Whether we need hard or soft links.
12088 LN_S=$lt_LN_S
12089
12090 # A BSD-compatible nm program.
12091 NM=$lt_NM
12092
12093 # A symbol stripping program
12094 STRIP=$STRIP
12095
12096 # Used to examine libraries when file_magic_cmd begins "file"
12097 MAGIC_CMD=$MAGIC_CMD
12098
12099 # Used on cygwin: DLL creation program.
12100 DLLTOOL="$DLLTOOL"
12101
12102 # Used on cygwin: object dumper.
12103 OBJDUMP="$OBJDUMP"
12104
12105 # Used on cygwin: assembler.
12106 AS="$AS"
12107
12108 # The name of the directory that contains temporary libtool files.
12109 objdir=$objdir
12110
12111 # How to create reloadable object files.
12112 reload_flag=$lt_reload_flag
12113 reload_cmds=$lt_reload_cmds
12114
12115 # How to pass a linker flag through the compiler.
12116 wl=$lt_lt_prog_compiler_wl_CXX
12117
12118 # Object file suffix (normally "o").
12119 objext="$ac_objext"
12120
12121 # Old archive suffix (normally "a").
12122 libext="$libext"
12123
12124 # Shared library suffix (normally ".so").
12125 shrext='$shrext'
12126
12127 # Executable file suffix (normally "").
12128 exeext="$exeext"
12129
12130 # Additional compiler flags for building library objects.
12131 pic_flag=$lt_lt_prog_compiler_pic_CXX
12132 pic_mode=$pic_mode
12133
12134 # What is the maximum length of a command?
12135 max_cmd_len=$lt_cv_sys_max_cmd_len
12136
12137 # Does compiler simultaneously support -c and -o options?
12138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12139
12140 # Must we lock files when doing compilation ?
12141 need_locks=$lt_need_locks
12142
12143 # Do we need the lib prefix for modules?
12144 need_lib_prefix=$need_lib_prefix
12145
12146 # Do we need a version for libraries?
12147 need_version=$need_version
12148
12149 # Whether dlopen is supported.
12150 dlopen_support=$enable_dlopen
12151
12152 # Whether dlopen of programs is supported.
12153 dlopen_self=$enable_dlopen_self
12154
12155 # Whether dlopen of statically linked programs is supported.
12156 dlopen_self_static=$enable_dlopen_self_static
12157
12158 # Compiler flag to prevent dynamic linking.
12159 link_static_flag=$lt_lt_prog_compiler_static_CXX
12160
12161 # Compiler flag to turn off builtin functions.
12162 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12163
12164 # Compiler flag to allow reflexive dlopens.
12165 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12166
12167 # Compiler flag to generate shared objects directly from archives.
12168 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12169
12170 # Compiler flag to generate thread-safe objects.
12171 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12172
12173 # Library versioning type.
12174 version_type=$version_type
12175
12176 # Format of library name prefix.
12177 libname_spec=$lt_libname_spec
12178
12179 # List of archive names.  First name is the real one, the rest are links.
12180 # The last name is the one that the linker finds with -lNAME.
12181 library_names_spec=$lt_library_names_spec
12182
12183 # The coded name of the library, if different from the real name.
12184 soname_spec=$lt_soname_spec
12185
12186 # Commands used to build and install an old-style archive.
12187 RANLIB=$lt_RANLIB
12188 old_archive_cmds=$lt_old_archive_cmds_CXX
12189 old_postinstall_cmds=$lt_old_postinstall_cmds
12190 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12191
12192 # Create an old-style archive from a shared archive.
12193 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12194
12195 # Create a temporary old-style archive to link instead of a shared archive.
12196 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12197
12198 # Commands used to build and install a shared archive.
12199 archive_cmds=$lt_archive_cmds_CXX
12200 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12201 postinstall_cmds=$lt_postinstall_cmds
12202 postuninstall_cmds=$lt_postuninstall_cmds
12203
12204 # Commands used to build a loadable module (assumed same as above if empty)
12205 module_cmds=$lt_module_cmds_CXX
12206 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12207
12208 # Commands to strip libraries.
12209 old_striplib=$lt_old_striplib
12210 striplib=$lt_striplib
12211
12212 # Dependencies to place before the objects being linked to create a
12213 # shared library.
12214 predep_objects=$lt_predep_objects_CXX
12215
12216 # Dependencies to place after the objects being linked to create a
12217 # shared library.
12218 postdep_objects=$lt_postdep_objects_CXX
12219
12220 # Dependencies to place before the objects being linked to create a
12221 # shared library.
12222 predeps=$lt_predeps_CXX
12223
12224 # Dependencies to place after the objects being linked to create a
12225 # shared library.
12226 postdeps=$lt_postdeps_CXX
12227
12228 # The library search path used internally by the compiler when linking
12229 # a shared library.
12230 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12231
12232 # Method to check whether dependent libraries are shared objects.
12233 deplibs_check_method=$lt_deplibs_check_method
12234
12235 # Command to use when deplibs_check_method == file_magic.
12236 file_magic_cmd=$lt_file_magic_cmd
12237
12238 # Flag that allows shared libraries with undefined symbols to be built.
12239 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12240
12241 # Flag that forces no undefined symbols.
12242 no_undefined_flag=$lt_no_undefined_flag_CXX
12243
12244 # Commands used to finish a libtool library installation in a directory.
12245 finish_cmds=$lt_finish_cmds
12246
12247 # Same as above, but a single script fragment to be evaled but not shown.
12248 finish_eval=$lt_finish_eval
12249
12250 # Take the output of nm and produce a listing of raw symbols and C names.
12251 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12252
12253 # Transform the output of nm in a proper C declaration
12254 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12255
12256 # Transform the output of nm in a C name address pair
12257 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12258
12259 # This is the shared library runtime path variable.
12260 runpath_var=$runpath_var
12261
12262 # This is the shared library path variable.
12263 shlibpath_var=$shlibpath_var
12264
12265 # Is shlibpath searched before the hard-coded library search path?
12266 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12267
12268 # How to hardcode a shared library path into an executable.
12269 hardcode_action=$hardcode_action_CXX
12270
12271 # Whether we should hardcode library paths into libraries.
12272 hardcode_into_libs=$hardcode_into_libs
12273
12274 # Flag to hardcode \$libdir into a binary during linking.
12275 # This must work even if \$libdir does not exist.
12276 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12277
12278 # If ld is used when linking, flag to hardcode \$libdir into
12279 # a binary during linking. This must work even if \$libdir does
12280 # not exist.
12281 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12282
12283 # Whether we need a single -rpath flag with a separated argument.
12284 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12285
12286 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12287 # resulting binary.
12288 hardcode_direct=$hardcode_direct_CXX
12289
12290 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12291 # resulting binary.
12292 hardcode_minus_L=$hardcode_minus_L_CXX
12293
12294 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12295 # the resulting binary.
12296 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12297
12298 # Set to yes if building a shared library automatically hardcodes DIR into the library
12299 # and all subsequent libraries and executables linked against it.
12300 hardcode_automatic=$hardcode_automatic_CXX
12301
12302 # Variables whose values should be saved in libtool wrapper scripts and
12303 # restored at relink time.
12304 variables_saved_for_relink="$variables_saved_for_relink"
12305
12306 # Whether libtool must link a program against all its dependency libraries.
12307 link_all_deplibs=$link_all_deplibs_CXX
12308
12309 # Compile-time system search path for libraries
12310 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12311
12312 # Run-time system search path for libraries
12313 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12314
12315 # Fix the shell variable \$srcfile for the compiler.
12316 fix_srcfile_path="$fix_srcfile_path_CXX"
12317
12318 # Set to yes if exported symbols are required.
12319 always_export_symbols=$always_export_symbols_CXX
12320
12321 # The commands to list exported symbols.
12322 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12323
12324 # The commands to extract the exported symbol list from a shared archive.
12325 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12326
12327 # Symbols that should not be listed in the preloaded symbols.
12328 exclude_expsyms=$lt_exclude_expsyms_CXX
12329
12330 # Symbols that must always be exported.
12331 include_expsyms=$lt_include_expsyms_CXX
12332
12333 # ### END LIBTOOL TAG CONFIG: $tagname
12334
12335 __EOF__
12336
12337
12338 else
12339   # If there is no Makefile yet, we rely on a make rule to execute
12340   # `config.status --recheck' to rerun these tests and create the
12341   # libtool script then.
12342   test -f Makefile && make "$ltmain"
12343 fi
12344
12345
12346 ac_ext=c
12347 ac_cpp='$CPP $CPPFLAGS'
12348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12351
12352 CC=$lt_save_CC
12353 LDCXX=$LD
12354 LD=$lt_save_LD
12355 GCC=$lt_save_GCC
12356 with_gnu_ldcxx=$with_gnu_ld
12357 with_gnu_ld=$lt_save_with_gnu_ld
12358 lt_cv_path_LDCXX=$lt_cv_path_LD
12359 lt_cv_path_LD=$lt_save_path_LD
12360 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12361 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12362
12363         else
12364           tagname=""
12365         fi
12366         ;;
12367
12368       F77)
12369         if test -n "$F77" && test "X$F77" != "Xno"; then
12370
12371 ac_ext=f
12372 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12373 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12374 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12375
12376
12377 archive_cmds_need_lc_F77=no
12378 allow_undefined_flag_F77=
12379 always_export_symbols_F77=no
12380 archive_expsym_cmds_F77=
12381 export_dynamic_flag_spec_F77=
12382 hardcode_direct_F77=no
12383 hardcode_libdir_flag_spec_F77=
12384 hardcode_libdir_flag_spec_ld_F77=
12385 hardcode_libdir_separator_F77=
12386 hardcode_minus_L_F77=no
12387 hardcode_automatic_F77=no
12388 module_cmds_F77=
12389 module_expsym_cmds_F77=
12390 link_all_deplibs_F77=unknown
12391 old_archive_cmds_F77=$old_archive_cmds
12392 no_undefined_flag_F77=
12393 whole_archive_flag_spec_F77=
12394 enable_shared_with_static_runtimes_F77=no
12395
12396 # Source file extension for f77 test sources.
12397 ac_ext=f
12398
12399 # Object file extension for compiled f77 test sources.
12400 objext=o
12401 objext_F77=$objext
12402
12403 # Code to be used in simple compile tests
12404 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12405
12406 # Code to be used in simple link tests
12407 lt_simple_link_test_code="      program t\n      end\n"
12408
12409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12410
12411 # If no C compiler was specified, use CC.
12412 LTCC=${LTCC-"$CC"}
12413
12414 # Allow CC to be a program name with arguments.
12415 compiler=$CC
12416
12417
12418 # Allow CC to be a program name with arguments.
12419 lt_save_CC="$CC"
12420 CC=${F77-"f77"}
12421 compiler=$CC
12422 compiler_F77=$CC
12423 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12424
12425 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12426 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12427 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12428 echo "${ECHO_T}$can_build_shared" >&6
12429
12430 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12431 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12432 test "$can_build_shared" = "no" && enable_shared=no
12433
12434 # On AIX, shared libraries and static libraries use the same namespace, and
12435 # are all built from PIC.
12436 case "$host_os" in
12437 aix3*)
12438   test "$enable_shared" = yes && enable_static=no
12439   if test -n "$RANLIB"; then
12440     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12441     postinstall_cmds='$RANLIB $lib'
12442   fi
12443   ;;
12444 aix4*)
12445   test "$enable_shared" = yes && enable_static=no
12446   ;;
12447 esac
12448 echo "$as_me:$LINENO: result: $enable_shared" >&5
12449 echo "${ECHO_T}$enable_shared" >&6
12450
12451 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12452 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12453 # Make sure either enable_shared or enable_static is yes.
12454 test "$enable_shared" = yes || enable_static=yes
12455 echo "$as_me:$LINENO: result: $enable_static" >&5
12456 echo "${ECHO_T}$enable_static" >&6
12457
12458 test "$ld_shlibs_F77" = no && can_build_shared=no
12459
12460 GCC_F77="$G77"
12461 LD_F77="$LD"
12462
12463 lt_prog_compiler_wl_F77=
12464 lt_prog_compiler_pic_F77=
12465 lt_prog_compiler_static_F77=
12466
12467 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12468 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12469
12470   if test "$GCC" = yes; then
12471     lt_prog_compiler_wl_F77='-Wl,'
12472     lt_prog_compiler_static_F77='-static'
12473
12474     case $host_os in
12475       aix*)
12476       # All AIX code is PIC.
12477       if test "$host_cpu" = ia64; then
12478         # AIX 5 now supports IA64 processor
12479         lt_prog_compiler_static_F77='-Bstatic'
12480       fi
12481       ;;
12482
12483     amigaos*)
12484       # FIXME: we need at least 68020 code to build shared libraries, but
12485       # adding the `-m68020' flag to GCC prevents building anything better,
12486       # like `-m68040'.
12487       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12488       ;;
12489
12490     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12491       # PIC is the default for these OSes.
12492       ;;
12493
12494     mingw* | pw32* | os2*)
12495       # This hack is so that the source file can tell whether it is being
12496       # built for inclusion in a dll (and should export symbols for example).
12497       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12498       ;;
12499
12500     darwin* | rhapsody*)
12501       # PIC is the default on this platform
12502       # Common symbols not allowed in MH_DYLIB files
12503       lt_prog_compiler_pic_F77='-fno-common'
12504       ;;
12505
12506     msdosdjgpp*)
12507       # Just because we use GCC doesn't mean we suddenly get shared libraries
12508       # on systems that don't support them.
12509       lt_prog_compiler_can_build_shared_F77=no
12510       enable_shared=no
12511       ;;
12512
12513     sysv4*MP*)
12514       if test -d /usr/nec; then
12515         lt_prog_compiler_pic_F77=-Kconform_pic
12516       fi
12517       ;;
12518
12519     hpux*)
12520       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12521       # not for PA HP-UX.
12522       case "$host_cpu" in
12523       hppa*64*|ia64*)
12524         # +Z the default
12525         ;;
12526       *)
12527         lt_prog_compiler_pic_F77='-fPIC'
12528         ;;
12529       esac
12530       ;;
12531
12532     *)
12533       lt_prog_compiler_pic_F77='-fPIC'
12534       ;;
12535     esac
12536   else
12537     # PORTME Check for flag to pass linker flags through the system compiler.
12538     case $host_os in
12539     aix*)
12540       lt_prog_compiler_wl_F77='-Wl,'
12541       if test "$host_cpu" = ia64; then
12542         # AIX 5 now supports IA64 processor
12543         lt_prog_compiler_static_F77='-Bstatic'
12544       else
12545         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12546       fi
12547       ;;
12548
12549     mingw* | pw32* | os2*)
12550       # This hack is so that the source file can tell whether it is being
12551       # built for inclusion in a dll (and should export symbols for example).
12552       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12553       ;;
12554
12555     hpux9* | hpux10* | hpux11*)
12556       lt_prog_compiler_wl_F77='-Wl,'
12557       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12558       # not for PA HP-UX.
12559       case "$host_cpu" in
12560       hppa*64*|ia64*)
12561         # +Z the default
12562         ;;
12563       *)
12564         lt_prog_compiler_pic_F77='+Z'
12565         ;;
12566       esac
12567       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12568       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12569       ;;
12570
12571     irix5* | irix6* | nonstopux*)
12572       lt_prog_compiler_wl_F77='-Wl,'
12573       # PIC (with -KPIC) is the default.
12574       lt_prog_compiler_static_F77='-non_shared'
12575       ;;
12576
12577     newsos6)
12578       lt_prog_compiler_pic_F77='-KPIC'
12579       lt_prog_compiler_static_F77='-Bstatic'
12580       ;;
12581
12582     linux*)
12583       case $CC in
12584       icc|ecc)
12585         lt_prog_compiler_wl_F77='-Wl,'
12586         lt_prog_compiler_pic_F77='-KPIC'
12587         lt_prog_compiler_static_F77='-static'
12588         ;;
12589       ccc)
12590         lt_prog_compiler_wl_F77='-Wl,'
12591         # All Alpha code is PIC.
12592         lt_prog_compiler_static_F77='-non_shared'
12593         ;;
12594       esac
12595       ;;
12596
12597     osf3* | osf4* | osf5*)
12598       lt_prog_compiler_wl_F77='-Wl,'
12599       # All OSF/1 code is PIC.
12600       lt_prog_compiler_static_F77='-non_shared'
12601       ;;
12602
12603     sco3.2v5*)
12604       lt_prog_compiler_pic_F77='-Kpic'
12605       lt_prog_compiler_static_F77='-dn'
12606       ;;
12607
12608     solaris*)
12609       lt_prog_compiler_wl_F77='-Wl,'
12610       lt_prog_compiler_pic_F77='-KPIC'
12611       lt_prog_compiler_static_F77='-Bstatic'
12612       ;;
12613
12614     sunos4*)
12615       lt_prog_compiler_wl_F77='-Qoption ld '
12616       lt_prog_compiler_pic_F77='-PIC'
12617       lt_prog_compiler_static_F77='-Bstatic'
12618       ;;
12619
12620     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12621       lt_prog_compiler_wl_F77='-Wl,'
12622       lt_prog_compiler_pic_F77='-KPIC'
12623       lt_prog_compiler_static_F77='-Bstatic'
12624       ;;
12625
12626     sysv4*MP*)
12627       if test -d /usr/nec ;then
12628         lt_prog_compiler_pic_F77='-Kconform_pic'
12629         lt_prog_compiler_static_F77='-Bstatic'
12630       fi
12631       ;;
12632
12633     uts4*)
12634       lt_prog_compiler_pic_F77='-pic'
12635       lt_prog_compiler_static_F77='-Bstatic'
12636       ;;
12637
12638     *)
12639       lt_prog_compiler_can_build_shared_F77=no
12640       ;;
12641     esac
12642   fi
12643
12644 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12645 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12646
12647 #
12648 # Check to make sure the PIC flag actually works.
12649 #
12650 if test -n "$lt_prog_compiler_pic_F77"; then
12651   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12653 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12654   echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656   lt_prog_compiler_pic_works_F77=no
12657   ac_outfile=conftest.$ac_objext
12658    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12659    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12660    # Insert the option either (1) after the last *FLAGS variable, or
12661    # (2) before a word containing "conftest.", or (3) at the end.
12662    # Note that $ac_compile itself does not contain backslashes and begins
12663    # with a dollar sign (not a hyphen), so the echo should work correctly.
12664    # The option is referenced via a variable to avoid confusing sed.
12665    lt_compile=`echo "$ac_compile" | $SED \
12666    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12668    -e 's:$: $lt_compiler_flag:'`
12669    (eval echo "\"\$as_me:12669: $lt_compile\"" >&5)
12670    (eval "$lt_compile" 2>conftest.err)
12671    ac_status=$?
12672    cat conftest.err >&5
12673    echo "$as_me:12673: \$? = $ac_status" >&5
12674    if (exit $ac_status) && test -s "$ac_outfile"; then
12675      # The compiler can only warn and ignore the option if not recognized
12676      # So say no if there are warnings
12677      if test ! -s conftest.err; then
12678        lt_prog_compiler_pic_works_F77=yes
12679      fi
12680    fi
12681    $rm conftest*
12682
12683 fi
12684 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12685 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12686
12687 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12688     case $lt_prog_compiler_pic_F77 in
12689      "" | " "*) ;;
12690      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12691      esac
12692 else
12693     lt_prog_compiler_pic_F77=
12694      lt_prog_compiler_can_build_shared_F77=no
12695 fi
12696
12697 fi
12698 case "$host_os" in
12699   # For platforms which do not support PIC, -DPIC is meaningless:
12700   *djgpp*)
12701     lt_prog_compiler_pic_F77=
12702     ;;
12703   *)
12704     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12705     ;;
12706 esac
12707
12708 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12709 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12710 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12711   echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713   lt_cv_prog_compiler_c_o_F77=no
12714    $rm -r conftest 2>/dev/null
12715    mkdir conftest
12716    cd conftest
12717    mkdir out
12718    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12719
12720    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12721    # that will create temporary files in the current directory regardless of
12722    # the output directory.  Thus, making CWD read-only will cause this test
12723    # to fail, enabling locking or at least warning the user not to do parallel
12724    # builds.
12725    chmod -w .
12726
12727    lt_compiler_flag="-o out/conftest2.$ac_objext"
12728    # Insert the option either (1) after the last *FLAGS variable, or
12729    # (2) before a word containing "conftest.", or (3) at the end.
12730    # Note that $ac_compile itself does not contain backslashes and begins
12731    # with a dollar sign (not a hyphen), so the echo should work correctly.
12732    lt_compile=`echo "$ac_compile" | $SED \
12733    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12735    -e 's:$: $lt_compiler_flag:'`
12736    (eval echo "\"\$as_me:12736: $lt_compile\"" >&5)
12737    (eval "$lt_compile" 2>out/conftest.err)
12738    ac_status=$?
12739    cat out/conftest.err >&5
12740    echo "$as_me:12740: \$? = $ac_status" >&5
12741    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12742    then
12743      # The compiler can only warn and ignore the option if not recognized
12744      # So say no if there are warnings
12745      if test ! -s out/conftest.err; then
12746        lt_cv_prog_compiler_c_o_F77=yes
12747      fi
12748    fi
12749    chmod u+w .
12750    $rm conftest* out/*
12751    rmdir out
12752    cd ..
12753    rmdir conftest
12754    $rm conftest*
12755
12756 fi
12757 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12759
12760
12761 hard_links="nottested"
12762 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12763   # do not overwrite the value of need_locks provided by the user
12764   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12766   hard_links=yes
12767   $rm conftest*
12768   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12769   touch conftest.a
12770   ln conftest.a conftest.b 2>&5 || hard_links=no
12771   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12772   echo "$as_me:$LINENO: result: $hard_links" >&5
12773 echo "${ECHO_T}$hard_links" >&6
12774   if test "$hard_links" = no; then
12775     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12777     need_locks=warn
12778   fi
12779 else
12780   need_locks=no
12781 fi
12782
12783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12785
12786   runpath_var=
12787   allow_undefined_flag_F77=
12788   enable_shared_with_static_runtimes_F77=no
12789   archive_cmds_F77=
12790   archive_expsym_cmds_F77=
12791   old_archive_From_new_cmds_F77=
12792   old_archive_from_expsyms_cmds_F77=
12793   export_dynamic_flag_spec_F77=
12794   whole_archive_flag_spec_F77=
12795   thread_safe_flag_spec_F77=
12796   hardcode_libdir_flag_spec_F77=
12797   hardcode_libdir_flag_spec_ld_F77=
12798   hardcode_libdir_separator_F77=
12799   hardcode_direct_F77=no
12800   hardcode_minus_L_F77=no
12801   hardcode_shlibpath_var_F77=unsupported
12802   link_all_deplibs_F77=unknown
12803   hardcode_automatic_F77=no
12804   module_cmds_F77=
12805   module_expsym_cmds_F77=
12806   always_export_symbols_F77=no
12807   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12808   # include_expsyms should be a list of space-separated symbols to be *always*
12809   # included in the symbol list
12810   include_expsyms_F77=
12811   # exclude_expsyms can be an extended regexp of symbols to exclude
12812   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12813   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12814   # as well as any symbol that contains `d'.
12815   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12816   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12817   # platforms (ab)use it in PIC code, but their linkers get confused if
12818   # the symbol is explicitly referenced.  Since portable code cannot
12819   # rely on this symbol name, it's probably fine to never include it in
12820   # preloaded symbol tables.
12821   extract_expsyms_cmds=
12822
12823   case $host_os in
12824   cygwin* | mingw* | pw32*)
12825     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12826     # When not using gcc, we currently assume that we are using
12827     # Microsoft Visual C++.
12828     if test "$GCC" != yes; then
12829       with_gnu_ld=no
12830     fi
12831     ;;
12832   openbsd*)
12833     with_gnu_ld=no
12834     ;;
12835   esac
12836
12837   ld_shlibs_F77=yes
12838   if test "$with_gnu_ld" = yes; then
12839     # If archive_cmds runs LD, not CC, wlarc should be empty
12840     wlarc='${wl}'
12841
12842     # See if GNU ld supports shared libraries.
12843     case $host_os in
12844     aix3* | aix4* | aix5*)
12845       # On AIX/PPC, the GNU linker is very broken
12846       if test "$host_cpu" != ia64; then
12847         ld_shlibs_F77=no
12848         cat <<EOF 1>&2
12849
12850 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12851 *** to be unable to reliably create shared libraries on AIX.
12852 *** Therefore, libtool is disabling shared libraries support.  If you
12853 *** really care for shared libraries, you may want to modify your PATH
12854 *** so that a non-GNU linker is found, and then restart.
12855
12856 EOF
12857       fi
12858       ;;
12859
12860     amigaos*)
12861       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)'
12862       hardcode_libdir_flag_spec_F77='-L$libdir'
12863       hardcode_minus_L_F77=yes
12864
12865       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12866       # that the semantics of dynamic libraries on AmigaOS, at least up
12867       # to version 4, is to share data among multiple programs linked
12868       # with the same dynamic library.  Since this doesn't match the
12869       # behavior of shared libraries on other platforms, we can't use
12870       # them.
12871       ld_shlibs_F77=no
12872       ;;
12873
12874     beos*)
12875       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12876         allow_undefined_flag_F77=unsupported
12877         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12878         # support --undefined.  This deserves some investigation.  FIXME
12879         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12880       else
12881         ld_shlibs_F77=no
12882       fi
12883       ;;
12884
12885     cygwin* | mingw* | pw32*)
12886       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12887       # as there is no search path for DLLs.
12888       hardcode_libdir_flag_spec_F77='-L$libdir'
12889       allow_undefined_flag_F77=unsupported
12890       always_export_symbols_F77=no
12891       enable_shared_with_static_runtimes_F77=yes
12892       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12893
12894       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12895         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12896         # If the export-symbols file already is a .def file (1st line
12897         # is EXPORTS), use it as is; otherwise, prepend...
12898         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12899           cp $export_symbols $output_objdir/$soname.def;
12900         else
12901           echo EXPORTS > $output_objdir/$soname.def;
12902           cat $export_symbols >> $output_objdir/$soname.def;
12903         fi~
12904         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12905       else
12906         ld_shlibs=no
12907       fi
12908       ;;
12909
12910     netbsd*)
12911       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12912         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12913         wlarc=
12914       else
12915         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12917       fi
12918       ;;
12919
12920     solaris* | sysv5*)
12921       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12922         ld_shlibs_F77=no
12923         cat <<EOF 1>&2
12924
12925 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12926 *** create shared libraries on Solaris systems.  Therefore, libtool
12927 *** is disabling shared libraries support.  We urge you to upgrade GNU
12928 *** binutils to release 2.9.1 or newer.  Another option is to modify
12929 *** your PATH or compiler configuration so that the native linker is
12930 *** used, and then restart.
12931
12932 EOF
12933       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12934         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12935         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12936       else
12937         ld_shlibs_F77=no
12938       fi
12939       ;;
12940
12941     sunos4*)
12942       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12943       wlarc=
12944       hardcode_direct_F77=yes
12945       hardcode_shlibpath_var_F77=no
12946       ;;
12947
12948     *)
12949       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12950         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12951         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12952       else
12953         ld_shlibs_F77=no
12954       fi
12955       ;;
12956     esac
12957
12958     if test "$ld_shlibs_F77" = yes; then
12959       runpath_var=LD_RUN_PATH
12960       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12961       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12962       # ancient GNU ld didn't support --whole-archive et. al.
12963       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12964         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12965       else
12966         whole_archive_flag_spec_F77=
12967       fi
12968     fi
12969   else
12970     # PORTME fill in a description of your system's linker (not GNU ld)
12971     case $host_os in
12972     aix3*)
12973       allow_undefined_flag_F77=unsupported
12974       always_export_symbols_F77=yes
12975       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'
12976       # Note: this linker hardcodes the directories in LIBPATH if there
12977       # are no directories specified by -L.
12978       hardcode_minus_L_F77=yes
12979       if test "$GCC" = yes && test -z "$link_static_flag"; then
12980         # Neither direct hardcoding nor static linking is supported with a
12981         # broken collect2.
12982         hardcode_direct_F77=unsupported
12983       fi
12984       ;;
12985
12986     aix4* | aix5*)
12987       if test "$host_cpu" = ia64; then
12988         # On IA64, the linker does run time linking by default, so we don't
12989         # have to do anything special.
12990         aix_use_runtimelinking=no
12991         exp_sym_flag='-Bexport'
12992         no_entry_flag=""
12993       else
12994         # If we're using GNU nm, then we don't want the "-C" option.
12995         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12996         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12997           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'
12998         else
12999           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'
13000         fi
13001         aix_use_runtimelinking=no
13002
13003         # Test if we are trying to use run time linking or normal
13004         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13005         # need to do runtime linking.
13006         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13007           for ld_flag in $LDFLAGS; do
13008           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13009             aix_use_runtimelinking=yes
13010             break
13011           fi
13012           done
13013         esac
13014
13015         exp_sym_flag='-bexport'
13016         no_entry_flag='-bnoentry'
13017       fi
13018
13019       # When large executables or shared objects are built, AIX ld can
13020       # have problems creating the table of contents.  If linking a library
13021       # or program results in "error TOC overflow" add -mminimal-toc to
13022       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13023       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13024
13025       archive_cmds_F77=''
13026       hardcode_direct_F77=yes
13027       hardcode_libdir_separator_F77=':'
13028       link_all_deplibs_F77=yes
13029
13030       if test "$GCC" = yes; then
13031         case $host_os in aix4.012|aix4.012.*)
13032         # We only want to do this on AIX 4.2 and lower, the check
13033         # below for broken collect2 doesn't work under 4.3+
13034           collect2name=`${CC} -print-prog-name=collect2`
13035           if test -f "$collect2name" && \
13036            strings "$collect2name" | grep resolve_lib_name >/dev/null
13037           then
13038           # We have reworked collect2
13039           hardcode_direct_F77=yes
13040           else
13041           # We have old collect2
13042           hardcode_direct_F77=unsupported
13043           # It fails to find uninstalled libraries when the uninstalled
13044           # path is not listed in the libpath.  Setting hardcode_minus_L
13045           # to unsupported forces relinking
13046           hardcode_minus_L_F77=yes
13047           hardcode_libdir_flag_spec_F77='-L$libdir'
13048           hardcode_libdir_separator_F77=
13049           fi
13050         esac
13051         shared_flag='-shared'
13052       else
13053         # not using gcc
13054         if test "$host_cpu" = ia64; then
13055         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13056         # chokes on -Wl,-G. The following line is correct:
13057           shared_flag='-G'
13058         else
13059         if test "$aix_use_runtimelinking" = yes; then
13060             shared_flag='${wl}-G'
13061           else
13062             shared_flag='${wl}-bM:SRE'
13063         fi
13064         fi
13065       fi
13066
13067       # It seems that -bexpall does not export symbols beginning with
13068       # underscore (_), so it is better to generate a list of symbols to export.
13069       always_export_symbols_F77=yes
13070       if test "$aix_use_runtimelinking" = yes; then
13071         # Warning - without using the other runtime loading flags (-brtl),
13072         # -berok will link without error, but may produce a broken library.
13073         allow_undefined_flag_F77='-berok'
13074        # Determine the default libpath from the value encoded in an empty executable.
13075        cat >conftest.$ac_ext <<_ACEOF
13076       program main
13077
13078       end
13079 _ACEOF
13080 rm -f conftest.$ac_objext conftest$ac_exeext
13081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13082   (eval $ac_link) 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); } &&
13086          { ac_try='test -s conftest$ac_exeext'
13087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088   (eval $ac_try) 2>&5
13089   ac_status=$?
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); }; }; then
13092
13093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13094 }'`
13095 # Check for a 64-bit object if we didn't find anything.
13096 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; }
13097 }'`; fi
13098 else
13099   echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13101
13102 fi
13103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13104 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13105
13106        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13107         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"
13108        else
13109         if test "$host_cpu" = ia64; then
13110           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13111           allow_undefined_flag_F77="-z nodefs"
13112           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"
13113         else
13114          # Determine the default libpath from the value encoded in an empty executable.
13115          cat >conftest.$ac_ext <<_ACEOF
13116       program main
13117
13118       end
13119 _ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122   (eval $ac_link) 2>&5
13123   ac_status=$?
13124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); } &&
13126          { ac_try='test -s conftest$ac_exeext'
13127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128   (eval $ac_try) 2>&5
13129   ac_status=$?
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); }; }; then
13132
13133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13134 }'`
13135 # Check for a 64-bit object if we didn't find anything.
13136 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; }
13137 }'`; fi
13138 else
13139   echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13141
13142 fi
13143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13145
13146          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13147           # Warning - without using the other run time loading flags,
13148           # -berok will link without error, but may produce a broken library.
13149           no_undefined_flag_F77=' ${wl}-bernotok'
13150           allow_undefined_flag_F77=' ${wl}-berok'
13151           # -bexpall does not export symbols beginning with underscore (_)
13152           always_export_symbols_F77=yes
13153           # Exported symbols can be pulled into shared objects from archives
13154           whole_archive_flag_spec_F77=' '
13155           archive_cmds_need_lc_F77=yes
13156           # This is similar to how AIX traditionally builds it's shared libraries.
13157           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'
13158         fi
13159       fi
13160       ;;
13161
13162     amigaos*)
13163       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)'
13164       hardcode_libdir_flag_spec_F77='-L$libdir'
13165       hardcode_minus_L_F77=yes
13166       # see comment about different semantics on the GNU ld section
13167       ld_shlibs_F77=no
13168       ;;
13169
13170     bsdi4*)
13171       export_dynamic_flag_spec_F77=-rdynamic
13172       ;;
13173
13174     cygwin* | mingw* | pw32*)
13175       # When not using gcc, we currently assume that we are using
13176       # Microsoft Visual C++.
13177       # hardcode_libdir_flag_spec is actually meaningless, as there is
13178       # no search path for DLLs.
13179       hardcode_libdir_flag_spec_F77=' '
13180       allow_undefined_flag_F77=unsupported
13181       # Tell ltmain to make .lib files, not .a files.
13182       libext=lib
13183       # Tell ltmain to make .dll files, not .so files.
13184       shrext=".dll"
13185       # FIXME: Setting linknames here is a bad hack.
13186       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13187       # The linker will automatically build a .lib file if we build a DLL.
13188       old_archive_From_new_cmds_F77='true'
13189       # FIXME: Should let the user specify the lib program.
13190       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13191       fix_srcfile_path='`cygpath -w "$srcfile"`'
13192       enable_shared_with_static_runtimes_F77=yes
13193       ;;
13194
13195     darwin* | rhapsody*)
13196     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13197       archive_cmds_need_lc_F77=no
13198       case "$host_os" in
13199       rhapsody* | darwin1.[012])
13200         allow_undefined_flag_F77='-undefined suppress'
13201         ;;
13202       *) # Darwin 1.3 on
13203         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13204         ;;
13205       esac
13206       # FIXME: Relying on posixy $() will cause problems for
13207       #        cross-compilation, but unfortunately the echo tests do not
13208       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13209       #        `"' quotes if we put them in here... so don't!
13210         lt_int_apple_cc_single_mod=no
13211         output_verbose_link_cmd='echo'
13212         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13213           lt_int_apple_cc_single_mod=yes
13214         fi
13215         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13216           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13217         else
13218         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13219       fi
13220       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13221       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13222         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13223           archive_expsym_cmds_F77='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}'
13224         else
13225           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13226         fi
13227           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13228       hardcode_direct_F77=no
13229       hardcode_automatic_F77=yes
13230       hardcode_shlibpath_var_F77=unsupported
13231       whole_archive_flag_spec_F77='-all_load $convenience'
13232       link_all_deplibs_F77=yes
13233     fi
13234       ;;
13235
13236     dgux*)
13237       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13238       hardcode_libdir_flag_spec_F77='-L$libdir'
13239       hardcode_shlibpath_var_F77=no
13240       ;;
13241
13242     freebsd1*)
13243       ld_shlibs_F77=no
13244       ;;
13245
13246     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13247     # support.  Future versions do this automatically, but an explicit c++rt0.o
13248     # does not break anything, and helps significantly (at the cost of a little
13249     # extra space).
13250     freebsd2.2*)
13251       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13252       hardcode_libdir_flag_spec_F77='-R$libdir'
13253       hardcode_direct_F77=yes
13254       hardcode_shlibpath_var_F77=no
13255       ;;
13256
13257     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13258     freebsd2*)
13259       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13260       hardcode_direct_F77=yes
13261       hardcode_minus_L_F77=yes
13262       hardcode_shlibpath_var_F77=no
13263       ;;
13264
13265     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13266     freebsd*)
13267       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13268       hardcode_libdir_flag_spec_F77='-R$libdir'
13269       hardcode_direct_F77=yes
13270       hardcode_shlibpath_var_F77=no
13271       ;;
13272
13273     hpux9*)
13274       if test "$GCC" = yes; then
13275         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'
13276       else
13277         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'
13278       fi
13279       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13280       hardcode_libdir_separator_F77=:
13281       hardcode_direct_F77=yes
13282
13283       # hardcode_minus_L: Not really in the search PATH,
13284       # but as the default location of the library.
13285       hardcode_minus_L_F77=yes
13286       export_dynamic_flag_spec_F77='${wl}-E'
13287       ;;
13288
13289     hpux10* | hpux11*)
13290       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13291         case "$host_cpu" in
13292         hppa*64*|ia64*)
13293           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13294           ;;
13295         *)
13296           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13297           ;;
13298         esac
13299       else
13300         case "$host_cpu" in
13301         hppa*64*|ia64*)
13302           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13303           ;;
13304         *)
13305           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13306           ;;
13307         esac
13308       fi
13309       if test "$with_gnu_ld" = no; then
13310         case "$host_cpu" in
13311         hppa*64*)
13312           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13313           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13314           hardcode_libdir_separator_F77=:
13315           hardcode_direct_F77=no
13316           hardcode_shlibpath_var_F77=no
13317           ;;
13318         ia64*)
13319           hardcode_libdir_flag_spec_F77='-L$libdir'
13320           hardcode_direct_F77=no
13321           hardcode_shlibpath_var_F77=no
13322
13323           # hardcode_minus_L: Not really in the search PATH,
13324           # but as the default location of the library.
13325           hardcode_minus_L_F77=yes
13326           ;;
13327         *)
13328           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13329           hardcode_libdir_separator_F77=:
13330           hardcode_direct_F77=yes
13331           export_dynamic_flag_spec_F77='${wl}-E'
13332
13333           # hardcode_minus_L: Not really in the search PATH,
13334           # but as the default location of the library.
13335           hardcode_minus_L_F77=yes
13336           ;;
13337         esac
13338       fi
13339       ;;
13340
13341     irix5* | irix6* | nonstopux*)
13342       if test "$GCC" = yes; then
13343         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'
13344       else
13345         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'
13346         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13347       fi
13348       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13349       hardcode_libdir_separator_F77=:
13350       link_all_deplibs_F77=yes
13351       ;;
13352
13353     netbsd*)
13354       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13355         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13356       else
13357         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13358       fi
13359       hardcode_libdir_flag_spec_F77='-R$libdir'
13360       hardcode_direct_F77=yes
13361       hardcode_shlibpath_var_F77=no
13362       ;;
13363
13364     newsos6)
13365       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13366       hardcode_direct_F77=yes
13367       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13368       hardcode_libdir_separator_F77=:
13369       hardcode_shlibpath_var_F77=no
13370       ;;
13371
13372     openbsd*)
13373       hardcode_direct_F77=yes
13374       hardcode_shlibpath_var_F77=no
13375       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13376         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13377         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13378         export_dynamic_flag_spec_F77='${wl}-E'
13379       else
13380        case $host_os in
13381          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13382            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13383            hardcode_libdir_flag_spec_F77='-R$libdir'
13384            ;;
13385          *)
13386            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13387            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13388            ;;
13389        esac
13390       fi
13391       ;;
13392
13393     os2*)
13394       hardcode_libdir_flag_spec_F77='-L$libdir'
13395       hardcode_minus_L_F77=yes
13396       allow_undefined_flag_F77=unsupported
13397       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'
13398       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13399       ;;
13400
13401     osf3*)
13402       if test "$GCC" = yes; then
13403         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13404         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'
13405       else
13406         allow_undefined_flag_F77=' -expect_unresolved \*'
13407         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'
13408       fi
13409       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13410       hardcode_libdir_separator_F77=:
13411       ;;
13412
13413     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13414       if test "$GCC" = yes; then
13415         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13416         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'
13417         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13418       else
13419         allow_undefined_flag_F77=' -expect_unresolved \*'
13420         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'
13421         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~
13422         $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'
13423
13424         # Both c and cxx compiler support -rpath directly
13425         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13426       fi
13427       hardcode_libdir_separator_F77=:
13428       ;;
13429
13430     sco3.2v5*)
13431       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13432       hardcode_shlibpath_var_F77=no
13433       export_dynamic_flag_spec_F77='${wl}-Bexport'
13434       runpath_var=LD_RUN_PATH
13435       hardcode_runpath_var=yes
13436       ;;
13437
13438     solaris*)
13439       no_undefined_flag_F77=' -z text'
13440       if test "$GCC" = yes; then
13441         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13442         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13443           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13444       else
13445         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13447         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13448       fi
13449       hardcode_libdir_flag_spec_F77='-R$libdir'
13450       hardcode_shlibpath_var_F77=no
13451       case $host_os in
13452       solaris2.[0-5] | solaris2.[0-5].*) ;;
13453       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13454         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13455       esac
13456       link_all_deplibs_F77=yes
13457       ;;
13458
13459     sunos4*)
13460       if test "x$host_vendor" = xsequent; then
13461         # Use $CC to link under sequent, because it throws in some extra .o
13462         # files that make .init and .fini sections work.
13463         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13464       else
13465         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13466       fi
13467       hardcode_libdir_flag_spec_F77='-L$libdir'
13468       hardcode_direct_F77=yes
13469       hardcode_minus_L_F77=yes
13470       hardcode_shlibpath_var_F77=no
13471       ;;
13472
13473     sysv4)
13474       case $host_vendor in
13475         sni)
13476           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13477           hardcode_direct_F77=yes # is this really true???
13478         ;;
13479         siemens)
13480           ## LD is ld it makes a PLAMLIB
13481           ## CC just makes a GrossModule.
13482           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13483           reload_cmds_F77='$CC -r -o $output$reload_objs'
13484           hardcode_direct_F77=no
13485         ;;
13486         motorola)
13487           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13489         ;;
13490       esac
13491       runpath_var='LD_RUN_PATH'
13492       hardcode_shlibpath_var_F77=no
13493       ;;
13494
13495     sysv4.3*)
13496       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497       hardcode_shlibpath_var_F77=no
13498       export_dynamic_flag_spec_F77='-Bexport'
13499       ;;
13500
13501     sysv4*MP*)
13502       if test -d /usr/nec; then
13503         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13504         hardcode_shlibpath_var_F77=no
13505         runpath_var=LD_RUN_PATH
13506         hardcode_runpath_var=yes
13507         ld_shlibs_F77=yes
13508       fi
13509       ;;
13510
13511     sysv4.2uw2*)
13512       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13513       hardcode_direct_F77=yes
13514       hardcode_minus_L_F77=no
13515       hardcode_shlibpath_var_F77=no
13516       hardcode_runpath_var=yes
13517       runpath_var=LD_RUN_PATH
13518       ;;
13519
13520    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13521       no_undefined_flag_F77='${wl}-z ${wl}text'
13522       if test "$GCC" = yes; then
13523         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13524       else
13525         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13526       fi
13527       runpath_var='LD_RUN_PATH'
13528       hardcode_shlibpath_var_F77=no
13529       ;;
13530
13531     sysv5*)
13532       no_undefined_flag_F77=' -z text'
13533       # $CC -shared without GNU ld will not create a library from C++
13534       # object files and a static libstdc++, better avoid it by now
13535       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13536       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13537                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13538       hardcode_libdir_flag_spec_F77=
13539       hardcode_shlibpath_var_F77=no
13540       runpath_var='LD_RUN_PATH'
13541       ;;
13542
13543     uts4*)
13544       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13545       hardcode_libdir_flag_spec_F77='-L$libdir'
13546       hardcode_shlibpath_var_F77=no
13547       ;;
13548
13549     *)
13550       ld_shlibs_F77=no
13551       ;;
13552     esac
13553   fi
13554
13555 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13556 echo "${ECHO_T}$ld_shlibs_F77" >&6
13557 test "$ld_shlibs_F77" = no && can_build_shared=no
13558
13559 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13560 if test "$GCC" = yes; then
13561   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13562 fi
13563
13564 #
13565 # Do we need to explicitly link libc?
13566 #
13567 case "x$archive_cmds_need_lc_F77" in
13568 x|xyes)
13569   # Assume -lc should be added
13570   archive_cmds_need_lc_F77=yes
13571
13572   if test "$enable_shared" = yes && test "$GCC" = yes; then
13573     case $archive_cmds_F77 in
13574     *'~'*)
13575       # FIXME: we may have to deal with multi-command sequences.
13576       ;;
13577     '$CC '*)
13578       # Test whether the compiler implicitly links with -lc since on some
13579       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13580       # to ld, don't add -lc before -lgcc.
13581       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13582 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13583       $rm conftest*
13584       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13585
13586       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13587   (eval $ac_compile) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); } 2>conftest.err; then
13591         soname=conftest
13592         lib=conftest
13593         libobjs=conftest.$ac_objext
13594         deplibs=
13595         wl=$lt_prog_compiler_wl_F77
13596         compiler_flags=-v
13597         linker_flags=-v
13598         verstring=
13599         output_objdir=.
13600         libname=conftest
13601         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13602         allow_undefined_flag_F77=
13603         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13604   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13605   ac_status=$?
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); }
13608         then
13609           archive_cmds_need_lc_F77=no
13610         else
13611           archive_cmds_need_lc_F77=yes
13612         fi
13613         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13614       else
13615         cat conftest.err 1>&5
13616       fi
13617       $rm conftest*
13618       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13619 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13620       ;;
13621     esac
13622   fi
13623   ;;
13624 esac
13625
13626 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13627 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13628 hardcode_action_F77=
13629 if test -n "$hardcode_libdir_flag_spec_F77" || \
13630    test -n "$runpath_var F77" || \
13631    test "X$hardcode_automatic_F77"="Xyes" ; then
13632
13633   # We can hardcode non-existant directories.
13634   if test "$hardcode_direct_F77" != no &&
13635      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13636      # have to relink, otherwise we might link with an installed library
13637      # when we should be linking with a yet-to-be-installed one
13638      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13639      test "$hardcode_minus_L_F77" != no; then
13640     # Linking always hardcodes the temporary library directory.
13641     hardcode_action_F77=relink
13642   else
13643     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13644     hardcode_action_F77=immediate
13645   fi
13646 else
13647   # We cannot hardcode anything, or else we can only hardcode existing
13648   # directories.
13649   hardcode_action_F77=unsupported
13650 fi
13651 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13652 echo "${ECHO_T}$hardcode_action_F77" >&6
13653
13654 if test "$hardcode_action_F77" = relink; then
13655   # Fast installation is not supported
13656   enable_fast_install=no
13657 elif test "$shlibpath_overrides_runpath" = yes ||
13658      test "$enable_shared" = no; then
13659   # Fast installation is not necessary
13660   enable_fast_install=needless
13661 fi
13662
13663 striplib=
13664 old_striplib=
13665 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13666 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13667 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13668   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13669   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13670   echo "$as_me:$LINENO: result: yes" >&5
13671 echo "${ECHO_T}yes" >&6
13672 else
13673 # FIXME - insert some real tests, host_os isn't really good enough
13674   case $host_os in
13675    darwin*)
13676        if test -n "$STRIP" ; then
13677          striplib="$STRIP -x"
13678          echo "$as_me:$LINENO: result: yes" >&5
13679 echo "${ECHO_T}yes" >&6
13680        else
13681   echo "$as_me:$LINENO: result: no" >&5
13682 echo "${ECHO_T}no" >&6
13683 fi
13684        ;;
13685    *)
13686   echo "$as_me:$LINENO: result: no" >&5
13687 echo "${ECHO_T}no" >&6
13688     ;;
13689   esac
13690 fi
13691
13692 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13693 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13694 library_names_spec=
13695 libname_spec='lib$name'
13696 soname_spec=
13697 shrext=".so"
13698 postinstall_cmds=
13699 postuninstall_cmds=
13700 finish_cmds=
13701 finish_eval=
13702 shlibpath_var=
13703 shlibpath_overrides_runpath=unknown
13704 version_type=none
13705 dynamic_linker="$host_os ld.so"
13706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13707 if test "$GCC" = yes; then
13708   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13709   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13710     # if the path contains ";" then we assume it to be the separator
13711     # otherwise default to the standard path separator (i.e. ":") - it is
13712     # assumed that no part of a normal pathname contains ";" but that should
13713     # okay in the real world where ";" in dirpaths is itself problematic.
13714     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13715   else
13716     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13717   fi
13718 else
13719   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13720 fi
13721 need_lib_prefix=unknown
13722 hardcode_into_libs=no
13723
13724 # when you set need_version to no, make sure it does not cause -set_version
13725 # flags to be left without arguments
13726 need_version=unknown
13727
13728 case $host_os in
13729 aix3*)
13730   version_type=linux
13731   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13732   shlibpath_var=LIBPATH
13733
13734   # AIX 3 has no versioning support, so we append a major version to the name.
13735   soname_spec='${libname}${release}${shared_ext}$major'
13736   ;;
13737
13738 aix4* | aix5*)
13739   version_type=linux
13740   need_lib_prefix=no
13741   need_version=no
13742   hardcode_into_libs=yes
13743   if test "$host_cpu" = ia64; then
13744     # AIX 5 supports IA64
13745     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13746     shlibpath_var=LD_LIBRARY_PATH
13747   else
13748     # With GCC up to 2.95.x, collect2 would create an import file
13749     # for dependence libraries.  The import file would start with
13750     # the line `#! .'.  This would cause the generated library to
13751     # depend on `.', always an invalid library.  This was fixed in
13752     # development snapshots of GCC prior to 3.0.
13753     case $host_os in
13754       aix4 | aix4.[01] | aix4.[01].*)
13755       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13756            echo ' yes '
13757            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13758         :
13759       else
13760         can_build_shared=no
13761       fi
13762       ;;
13763     esac
13764     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13765     # soname into executable. Probably we can add versioning support to
13766     # collect2, so additional links can be useful in future.
13767     if test "$aix_use_runtimelinking" = yes; then
13768       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13769       # instead of lib<name>.a to let people know that these are not
13770       # typical AIX shared libraries.
13771       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13772     else
13773       # We preserve .a as extension for shared libraries through AIX4.2
13774       # and later when we are not doing run time linking.
13775       library_names_spec='${libname}${release}.a $libname.a'
13776       soname_spec='${libname}${release}${shared_ext}$major'
13777     fi
13778     shlibpath_var=LIBPATH
13779   fi
13780   ;;
13781
13782 amigaos*)
13783   library_names_spec='$libname.ixlibrary $libname.a'
13784   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13785   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'
13786   ;;
13787
13788 beos*)
13789   library_names_spec='${libname}${shared_ext}'
13790   dynamic_linker="$host_os ld.so"
13791   shlibpath_var=LIBRARY_PATH
13792   ;;
13793
13794 bsdi4*)
13795   version_type=linux
13796   need_version=no
13797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798   soname_spec='${libname}${release}${shared_ext}$major'
13799   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13800   shlibpath_var=LD_LIBRARY_PATH
13801   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13802   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13803   # the default ld.so.conf also contains /usr/contrib/lib and
13804   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13805   # libtool to hard-code these into programs
13806   ;;
13807
13808 cygwin* | mingw* | pw32*)
13809   version_type=windows
13810   shrext=".dll"
13811   need_version=no
13812   need_lib_prefix=no
13813
13814   case $GCC,$host_os in
13815   yes,cygwin* | yes,mingw* | yes,pw32*)
13816     library_names_spec='$libname.dll.a'
13817     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13818     postinstall_cmds='base_file=`basename \${file}`~
13819       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13820       dldir=$destdir/`dirname \$dlpath`~
13821       test -d \$dldir || mkdir -p \$dldir~
13822       $install_prog $dir/$dlname \$dldir/$dlname'
13823     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13824       dlpath=$dir/\$dldll~
13825        $rm \$dlpath'
13826     shlibpath_overrides_runpath=yes
13827
13828     case $host_os in
13829     cygwin*)
13830       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13831       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13832       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13833       ;;
13834     mingw*)
13835       # MinGW DLLs use traditional 'lib' prefix
13836       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13837       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13838       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13839         # It is most probably a Windows format PATH printed by
13840         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13841         # path with ; separators, and with drive letters. We can handle the
13842         # drive letters (cygwin fileutils understands them), so leave them,
13843         # especially as we might pass files found there to a mingw objdump,
13844         # which wouldn't understand a cygwinified path. Ahh.
13845         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13846       else
13847         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13848       fi
13849       ;;
13850     pw32*)
13851       # pw32 DLLs use 'pw' prefix rather than 'lib'
13852       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13853       ;;
13854     esac
13855     ;;
13856
13857   *)
13858     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13859     ;;
13860   esac
13861   dynamic_linker='Win32 ld.exe'
13862   # FIXME: first we should search . and the directory the executable is in
13863   shlibpath_var=PATH
13864   ;;
13865
13866 darwin* | rhapsody*)
13867   dynamic_linker="$host_os dyld"
13868   version_type=darwin
13869   need_lib_prefix=no
13870   need_version=no
13871   # FIXME: Relying on posixy $() will cause problems for
13872   #        cross-compilation, but unfortunately the echo tests do not
13873   #        yet detect zsh echo's removal of \ escapes.
13874   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13875   soname_spec='${libname}${release}${major}$shared_ext'
13876   shlibpath_overrides_runpath=yes
13877   shlibpath_var=DYLD_LIBRARY_PATH
13878   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13879   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13880   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13881   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"`
13882   fi
13883   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13884   ;;
13885
13886 dgux*)
13887   version_type=linux
13888   need_lib_prefix=no
13889   need_version=no
13890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13891   soname_spec='${libname}${release}${shared_ext}$major'
13892   shlibpath_var=LD_LIBRARY_PATH
13893   ;;
13894
13895 freebsd1*)
13896   dynamic_linker=no
13897   ;;
13898
13899 freebsd*)
13900   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13901   version_type=freebsd-$objformat
13902   case $version_type in
13903     freebsd-elf*)
13904       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13905       need_version=no
13906       need_lib_prefix=no
13907       ;;
13908     freebsd-*)
13909       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13910       need_version=yes
13911       ;;
13912   esac
13913   shlibpath_var=LD_LIBRARY_PATH
13914   case $host_os in
13915   freebsd2*)
13916     shlibpath_overrides_runpath=yes
13917     ;;
13918   freebsd3.01* | freebsdelf3.01*)
13919     shlibpath_overrides_runpath=yes
13920     hardcode_into_libs=yes
13921     ;;
13922   *) # from 3.2 on
13923     shlibpath_overrides_runpath=no
13924     hardcode_into_libs=yes
13925     ;;
13926   esac
13927   ;;
13928
13929 gnu*)
13930   version_type=linux
13931   need_lib_prefix=no
13932   need_version=no
13933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13934   soname_spec='${libname}${release}${shared_ext}$major'
13935   shlibpath_var=LD_LIBRARY_PATH
13936   hardcode_into_libs=yes
13937   ;;
13938
13939 hpux9* | hpux10* | hpux11*)
13940   # Give a soname corresponding to the major version so that dld.sl refuses to
13941   # link against other versions.
13942   version_type=sunos
13943   need_lib_prefix=no
13944   need_version=no
13945   case "$host_cpu" in
13946   ia64*)
13947     shrext='.so'
13948     hardcode_into_libs=yes
13949     dynamic_linker="$host_os dld.so"
13950     shlibpath_var=LD_LIBRARY_PATH
13951     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13952     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953     soname_spec='${libname}${release}${shared_ext}$major'
13954     if test "X$HPUX_IA64_MODE" = X32; then
13955       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13956     else
13957       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13958     fi
13959     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13960     ;;
13961    hppa*64*)
13962      shrext='.sl'
13963      hardcode_into_libs=yes
13964      dynamic_linker="$host_os dld.sl"
13965      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13966      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13967      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13968      soname_spec='${libname}${release}${shared_ext}$major'
13969      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13970      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13971      ;;
13972    *)
13973     shrext='.sl'
13974     dynamic_linker="$host_os dld.sl"
13975     shlibpath_var=SHLIB_PATH
13976     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13977     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978     soname_spec='${libname}${release}${shared_ext}$major'
13979     ;;
13980   esac
13981   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13982   postinstall_cmds='chmod 555 $lib'
13983   ;;
13984
13985 irix5* | irix6* | nonstopux*)
13986   case $host_os in
13987     nonstopux*) version_type=nonstopux ;;
13988     *)
13989         if test "$lt_cv_prog_gnu_ld" = yes; then
13990                 version_type=linux
13991         else
13992                 version_type=irix
13993         fi ;;
13994   esac
13995   need_lib_prefix=no
13996   need_version=no
13997   soname_spec='${libname}${release}${shared_ext}$major'
13998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13999   case $host_os in
14000   irix5* | nonstopux*)
14001     libsuff= shlibsuff=
14002     ;;
14003   *)
14004     case $LD in # libtool.m4 will add one of these switches to LD
14005     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14006       libsuff= shlibsuff= libmagic=32-bit;;
14007     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14008       libsuff=32 shlibsuff=N32 libmagic=N32;;
14009     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14010       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14011     *) libsuff= shlibsuff= libmagic=never-match;;
14012     esac
14013     ;;
14014   esac
14015   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14016   shlibpath_overrides_runpath=no
14017   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14018   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14019   hardcode_into_libs=yes
14020   ;;
14021
14022 # No shared lib support for Linux oldld, aout, or coff.
14023 linux*oldld* | linux*aout* | linux*coff*)
14024   dynamic_linker=no
14025   ;;
14026
14027 # This must be Linux ELF.
14028 linux*)
14029   version_type=linux
14030   need_lib_prefix=no
14031   need_version=no
14032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14033   soname_spec='${libname}${release}${shared_ext}$major'
14034   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14035   shlibpath_var=LD_LIBRARY_PATH
14036   shlibpath_overrides_runpath=no
14037   # This implies no fast_install, which is unacceptable.
14038   # Some rework will be needed to allow for fast_install
14039   # before this can be enabled.
14040   hardcode_into_libs=yes
14041
14042   # We used to test for /lib/ld.so.1 and disable shared libraries on
14043   # powerpc, because MkLinux only supported shared libraries with the
14044   # GNU dynamic linker.  Since this was broken with cross compilers,
14045   # most powerpc-linux boxes support dynamic linking these days and
14046   # people can always --disable-shared, the test was removed, and we
14047   # assume the GNU/Linux dynamic linker is in use.
14048   dynamic_linker='GNU/Linux ld.so'
14049   ;;
14050
14051 netbsd*)
14052   version_type=sunos
14053   need_lib_prefix=no
14054   need_version=no
14055   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14057     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14058     dynamic_linker='NetBSD (a.out) ld.so'
14059   else
14060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14061     soname_spec='${libname}${release}${shared_ext}$major'
14062     dynamic_linker='NetBSD ld.elf_so'
14063   fi
14064   shlibpath_var=LD_LIBRARY_PATH
14065   shlibpath_overrides_runpath=yes
14066   hardcode_into_libs=yes
14067   ;;
14068
14069 newsos6)
14070   version_type=linux
14071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072   shlibpath_var=LD_LIBRARY_PATH
14073   shlibpath_overrides_runpath=yes
14074   ;;
14075
14076 nto-qnx)
14077   version_type=linux
14078   need_lib_prefix=no
14079   need_version=no
14080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081   soname_spec='${libname}${release}${shared_ext}$major'
14082   shlibpath_var=LD_LIBRARY_PATH
14083   shlibpath_overrides_runpath=yes
14084   ;;
14085
14086 openbsd*)
14087   version_type=sunos
14088   need_lib_prefix=no
14089   need_version=no
14090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14091   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14092   shlibpath_var=LD_LIBRARY_PATH
14093   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094     case $host_os in
14095       openbsd2.[89] | openbsd2.[89].*)
14096         shlibpath_overrides_runpath=no
14097         ;;
14098       *)
14099         shlibpath_overrides_runpath=yes
14100         ;;
14101       esac
14102   else
14103     shlibpath_overrides_runpath=yes
14104   fi
14105   ;;
14106
14107 os2*)
14108   libname_spec='$name'
14109   shrext=".dll"
14110   need_lib_prefix=no
14111   library_names_spec='$libname${shared_ext} $libname.a'
14112   dynamic_linker='OS/2 ld.exe'
14113   shlibpath_var=LIBPATH
14114   ;;
14115
14116 osf3* | osf4* | osf5*)
14117   version_type=osf
14118   need_lib_prefix=no
14119   need_version=no
14120   soname_spec='${libname}${release}${shared_ext}$major'
14121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122   shlibpath_var=LD_LIBRARY_PATH
14123   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14124   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14125   ;;
14126
14127 sco3.2v5*)
14128   version_type=osf
14129   soname_spec='${libname}${release}${shared_ext}$major'
14130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131   shlibpath_var=LD_LIBRARY_PATH
14132   ;;
14133
14134 solaris*)
14135   version_type=linux
14136   need_lib_prefix=no
14137   need_version=no
14138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139   soname_spec='${libname}${release}${shared_ext}$major'
14140   shlibpath_var=LD_LIBRARY_PATH
14141   shlibpath_overrides_runpath=yes
14142   hardcode_into_libs=yes
14143   # ldd complains unless libraries are executable
14144   postinstall_cmds='chmod +x $lib'
14145   ;;
14146
14147 sunos4*)
14148   version_type=sunos
14149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14150   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14151   shlibpath_var=LD_LIBRARY_PATH
14152   shlibpath_overrides_runpath=yes
14153   if test "$with_gnu_ld" = yes; then
14154     need_lib_prefix=no
14155   fi
14156   need_version=yes
14157   ;;
14158
14159 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14160   version_type=linux
14161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162   soname_spec='${libname}${release}${shared_ext}$major'
14163   shlibpath_var=LD_LIBRARY_PATH
14164   case $host_vendor in
14165     sni)
14166       shlibpath_overrides_runpath=no
14167       need_lib_prefix=no
14168       export_dynamic_flag_spec='${wl}-Blargedynsym'
14169       runpath_var=LD_RUN_PATH
14170       ;;
14171     siemens)
14172       need_lib_prefix=no
14173       ;;
14174     motorola)
14175       need_lib_prefix=no
14176       need_version=no
14177       shlibpath_overrides_runpath=no
14178       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14179       ;;
14180   esac
14181   ;;
14182
14183 sysv4*MP*)
14184   if test -d /usr/nec ;then
14185     version_type=linux
14186     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14187     soname_spec='$libname${shared_ext}.$major'
14188     shlibpath_var=LD_LIBRARY_PATH
14189   fi
14190   ;;
14191
14192 uts4*)
14193   version_type=linux
14194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14195   soname_spec='${libname}${release}${shared_ext}$major'
14196   shlibpath_var=LD_LIBRARY_PATH
14197   ;;
14198
14199 *)
14200   dynamic_linker=no
14201   ;;
14202 esac
14203 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14204 echo "${ECHO_T}$dynamic_linker" >&6
14205 test "$dynamic_linker" = no && can_build_shared=no
14206
14207
14208 # The else clause should only fire when bootstrapping the
14209 # libtool distribution, otherwise you forgot to ship ltmain.sh
14210 # with your package, and you will get complaints that there are
14211 # no rules to generate ltmain.sh.
14212 if test -f "$ltmain"; then
14213   # See if we are running on zsh, and set the options which allow our commands through
14214   # without removal of \ escapes.
14215   if test -n "${ZSH_VERSION+set}" ; then
14216     setopt NO_GLOB_SUBST
14217   fi
14218   # Now quote all the things that may contain metacharacters while being
14219   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14220   # variables and quote the copies for generation of the libtool script.
14221   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14222     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14223     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14224     deplibs_check_method reload_flag reload_cmds need_locks \
14225     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14226     lt_cv_sys_global_symbol_to_c_name_address \
14227     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14228     old_postinstall_cmds old_postuninstall_cmds \
14229     compiler_F77 \
14230     CC_F77 \
14231     LD_F77 \
14232     lt_prog_compiler_wl_F77 \
14233     lt_prog_compiler_pic_F77 \
14234     lt_prog_compiler_static_F77 \
14235     lt_prog_compiler_no_builtin_flag_F77 \
14236     export_dynamic_flag_spec_F77 \
14237     thread_safe_flag_spec_F77 \
14238     whole_archive_flag_spec_F77 \
14239     enable_shared_with_static_runtimes_F77 \
14240     old_archive_cmds_F77 \
14241     old_archive_from_new_cmds_F77 \
14242     predep_objects_F77 \
14243     postdep_objects_F77 \
14244     predeps_F77 \
14245     postdeps_F77 \
14246     compiler_lib_search_path_F77 \
14247     archive_cmds_F77 \
14248     archive_expsym_cmds_F77 \
14249     postinstall_cmds_F77 \
14250     postuninstall_cmds_F77 \
14251     old_archive_from_expsyms_cmds_F77 \
14252     allow_undefined_flag_F77 \
14253     no_undefined_flag_F77 \
14254     export_symbols_cmds_F77 \
14255     hardcode_libdir_flag_spec_F77 \
14256     hardcode_libdir_flag_spec_ld_F77 \
14257     hardcode_libdir_separator_F77 \
14258     hardcode_automatic_F77 \
14259     module_cmds_F77 \
14260     module_expsym_cmds_F77 \
14261     lt_cv_prog_compiler_c_o_F77 \
14262     exclude_expsyms_F77 \
14263     include_expsyms_F77; do
14264
14265     case $var in
14266     old_archive_cmds_F77 | \
14267     old_archive_from_new_cmds_F77 | \
14268     archive_cmds_F77 | \
14269     archive_expsym_cmds_F77 | \
14270     module_cmds_F77 | \
14271     module_expsym_cmds_F77 | \
14272     old_archive_from_expsyms_cmds_F77 | \
14273     export_symbols_cmds_F77 | \
14274     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14275     postinstall_cmds | postuninstall_cmds | \
14276     old_postinstall_cmds | old_postuninstall_cmds | \
14277     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14278       # Double-quote double-evaled strings.
14279       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14280       ;;
14281     *)
14282       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14283       ;;
14284     esac
14285   done
14286
14287   case $lt_echo in
14288   *'\$0 --fallback-echo"')
14289     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14290     ;;
14291   esac
14292
14293 cfgfile="$ofile"
14294
14295   cat <<__EOF__ >> "$cfgfile"
14296 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14297
14298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14299
14300 # Shell to use when invoking shell scripts.
14301 SHELL=$lt_SHELL
14302
14303 # Whether or not to build shared libraries.
14304 build_libtool_libs=$enable_shared
14305
14306 # Whether or not to build static libraries.
14307 build_old_libs=$enable_static
14308
14309 # Whether or not to add -lc for building shared libraries.
14310 build_libtool_need_lc=$archive_cmds_need_lc_F77
14311
14312 # Whether or not to disallow shared libs when runtime libs are static
14313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14314
14315 # Whether or not to optimize for fast installation.
14316 fast_install=$enable_fast_install
14317
14318 # The host system.
14319 host_alias=$host_alias
14320 host=$host
14321
14322 # An echo program that does not interpret backslashes.
14323 echo=$lt_echo
14324
14325 # The archiver.
14326 AR=$lt_AR
14327 AR_FLAGS=$lt_AR_FLAGS
14328
14329 # A C compiler.
14330 LTCC=$lt_LTCC
14331
14332 # A language-specific compiler.
14333 CC=$lt_compiler_F77
14334
14335 # Is the compiler the GNU C compiler?
14336 with_gcc=$GCC_F77
14337
14338 # An ERE matcher.
14339 EGREP=$lt_EGREP
14340
14341 # The linker used to build libraries.
14342 LD=$lt_LD_F77
14343
14344 # Whether we need hard or soft links.
14345 LN_S=$lt_LN_S
14346
14347 # A BSD-compatible nm program.
14348 NM=$lt_NM
14349
14350 # A symbol stripping program
14351 STRIP=$STRIP
14352
14353 # Used to examine libraries when file_magic_cmd begins "file"
14354 MAGIC_CMD=$MAGIC_CMD
14355
14356 # Used on cygwin: DLL creation program.
14357 DLLTOOL="$DLLTOOL"
14358
14359 # Used on cygwin: object dumper.
14360 OBJDUMP="$OBJDUMP"
14361
14362 # Used on cygwin: assembler.
14363 AS="$AS"
14364
14365 # The name of the directory that contains temporary libtool files.
14366 objdir=$objdir
14367
14368 # How to create reloadable object files.
14369 reload_flag=$lt_reload_flag
14370 reload_cmds=$lt_reload_cmds
14371
14372 # How to pass a linker flag through the compiler.
14373 wl=$lt_lt_prog_compiler_wl_F77
14374
14375 # Object file suffix (normally "o").
14376 objext="$ac_objext"
14377
14378 # Old archive suffix (normally "a").
14379 libext="$libext"
14380
14381 # Shared library suffix (normally ".so").
14382 shrext='$shrext'
14383
14384 # Executable file suffix (normally "").
14385 exeext="$exeext"
14386
14387 # Additional compiler flags for building library objects.
14388 pic_flag=$lt_lt_prog_compiler_pic_F77
14389 pic_mode=$pic_mode
14390
14391 # What is the maximum length of a command?
14392 max_cmd_len=$lt_cv_sys_max_cmd_len
14393
14394 # Does compiler simultaneously support -c and -o options?
14395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14396
14397 # Must we lock files when doing compilation ?
14398 need_locks=$lt_need_locks
14399
14400 # Do we need the lib prefix for modules?
14401 need_lib_prefix=$need_lib_prefix
14402
14403 # Do we need a version for libraries?
14404 need_version=$need_version
14405
14406 # Whether dlopen is supported.
14407 dlopen_support=$enable_dlopen
14408
14409 # Whether dlopen of programs is supported.
14410 dlopen_self=$enable_dlopen_self
14411
14412 # Whether dlopen of statically linked programs is supported.
14413 dlopen_self_static=$enable_dlopen_self_static
14414
14415 # Compiler flag to prevent dynamic linking.
14416 link_static_flag=$lt_lt_prog_compiler_static_F77
14417
14418 # Compiler flag to turn off builtin functions.
14419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14420
14421 # Compiler flag to allow reflexive dlopens.
14422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14423
14424 # Compiler flag to generate shared objects directly from archives.
14425 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14426
14427 # Compiler flag to generate thread-safe objects.
14428 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14429
14430 # Library versioning type.
14431 version_type=$version_type
14432
14433 # Format of library name prefix.
14434 libname_spec=$lt_libname_spec
14435
14436 # List of archive names.  First name is the real one, the rest are links.
14437 # The last name is the one that the linker finds with -lNAME.
14438 library_names_spec=$lt_library_names_spec
14439
14440 # The coded name of the library, if different from the real name.
14441 soname_spec=$lt_soname_spec
14442
14443 # Commands used to build and install an old-style archive.
14444 RANLIB=$lt_RANLIB
14445 old_archive_cmds=$lt_old_archive_cmds_F77
14446 old_postinstall_cmds=$lt_old_postinstall_cmds
14447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14448
14449 # Create an old-style archive from a shared archive.
14450 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14451
14452 # Create a temporary old-style archive to link instead of a shared archive.
14453 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14454
14455 # Commands used to build and install a shared archive.
14456 archive_cmds=$lt_archive_cmds_F77
14457 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14458 postinstall_cmds=$lt_postinstall_cmds
14459 postuninstall_cmds=$lt_postuninstall_cmds
14460
14461 # Commands used to build a loadable module (assumed same as above if empty)
14462 module_cmds=$lt_module_cmds_F77
14463 module_expsym_cmds=$lt_module_expsym_cmds_F77
14464
14465 # Commands to strip libraries.
14466 old_striplib=$lt_old_striplib
14467 striplib=$lt_striplib
14468
14469 # Dependencies to place before the objects being linked to create a
14470 # shared library.
14471 predep_objects=$lt_predep_objects_F77
14472
14473 # Dependencies to place after the objects being linked to create a
14474 # shared library.
14475 postdep_objects=$lt_postdep_objects_F77
14476
14477 # Dependencies to place before the objects being linked to create a
14478 # shared library.
14479 predeps=$lt_predeps_F77
14480
14481 # Dependencies to place after the objects being linked to create a
14482 # shared library.
14483 postdeps=$lt_postdeps_F77
14484
14485 # The library search path used internally by the compiler when linking
14486 # a shared library.
14487 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14488
14489 # Method to check whether dependent libraries are shared objects.
14490 deplibs_check_method=$lt_deplibs_check_method
14491
14492 # Command to use when deplibs_check_method == file_magic.
14493 file_magic_cmd=$lt_file_magic_cmd
14494
14495 # Flag that allows shared libraries with undefined symbols to be built.
14496 allow_undefined_flag=$lt_allow_undefined_flag_F77
14497
14498 # Flag that forces no undefined symbols.
14499 no_undefined_flag=$lt_no_undefined_flag_F77
14500
14501 # Commands used to finish a libtool library installation in a directory.
14502 finish_cmds=$lt_finish_cmds
14503
14504 # Same as above, but a single script fragment to be evaled but not shown.
14505 finish_eval=$lt_finish_eval
14506
14507 # Take the output of nm and produce a listing of raw symbols and C names.
14508 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14509
14510 # Transform the output of nm in a proper C declaration
14511 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14512
14513 # Transform the output of nm in a C name address pair
14514 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14515
14516 # This is the shared library runtime path variable.
14517 runpath_var=$runpath_var
14518
14519 # This is the shared library path variable.
14520 shlibpath_var=$shlibpath_var
14521
14522 # Is shlibpath searched before the hard-coded library search path?
14523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14524
14525 # How to hardcode a shared library path into an executable.
14526 hardcode_action=$hardcode_action_F77
14527
14528 # Whether we should hardcode library paths into libraries.
14529 hardcode_into_libs=$hardcode_into_libs
14530
14531 # Flag to hardcode \$libdir into a binary during linking.
14532 # This must work even if \$libdir does not exist.
14533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14534
14535 # If ld is used when linking, flag to hardcode \$libdir into
14536 # a binary during linking. This must work even if \$libdir does
14537 # not exist.
14538 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14539
14540 # Whether we need a single -rpath flag with a separated argument.
14541 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14542
14543 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14544 # resulting binary.
14545 hardcode_direct=$hardcode_direct_F77
14546
14547 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14548 # resulting binary.
14549 hardcode_minus_L=$hardcode_minus_L_F77
14550
14551 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14552 # the resulting binary.
14553 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14554
14555 # Set to yes if building a shared library automatically hardcodes DIR into the library
14556 # and all subsequent libraries and executables linked against it.
14557 hardcode_automatic=$hardcode_automatic_F77
14558
14559 # Variables whose values should be saved in libtool wrapper scripts and
14560 # restored at relink time.
14561 variables_saved_for_relink="$variables_saved_for_relink"
14562
14563 # Whether libtool must link a program against all its dependency libraries.
14564 link_all_deplibs=$link_all_deplibs_F77
14565
14566 # Compile-time system search path for libraries
14567 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14568
14569 # Run-time system search path for libraries
14570 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14571
14572 # Fix the shell variable \$srcfile for the compiler.
14573 fix_srcfile_path="$fix_srcfile_path_F77"
14574
14575 # Set to yes if exported symbols are required.
14576 always_export_symbols=$always_export_symbols_F77
14577
14578 # The commands to list exported symbols.
14579 export_symbols_cmds=$lt_export_symbols_cmds_F77
14580
14581 # The commands to extract the exported symbol list from a shared archive.
14582 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14583
14584 # Symbols that should not be listed in the preloaded symbols.
14585 exclude_expsyms=$lt_exclude_expsyms_F77
14586
14587 # Symbols that must always be exported.
14588 include_expsyms=$lt_include_expsyms_F77
14589
14590 # ### END LIBTOOL TAG CONFIG: $tagname
14591
14592 __EOF__
14593
14594
14595 else
14596   # If there is no Makefile yet, we rely on a make rule to execute
14597   # `config.status --recheck' to rerun these tests and create the
14598   # libtool script then.
14599   test -f Makefile && make "$ltmain"
14600 fi
14601
14602
14603 ac_ext=c
14604 ac_cpp='$CPP $CPPFLAGS'
14605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14608
14609 CC="$lt_save_CC"
14610
14611         else
14612           tagname=""
14613         fi
14614         ;;
14615
14616       GCJ)
14617         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14618
14619
14620
14621 # Source file extension for Java test sources.
14622 ac_ext=java
14623
14624 # Object file extension for compiled Java test sources.
14625 objext=o
14626 objext_GCJ=$objext
14627
14628 # Code to be used in simple compile tests
14629 lt_simple_compile_test_code="class foo {}\n"
14630
14631 # Code to be used in simple link tests
14632 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14633
14634 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14635
14636 # If no C compiler was specified, use CC.
14637 LTCC=${LTCC-"$CC"}
14638
14639 # Allow CC to be a program name with arguments.
14640 compiler=$CC
14641
14642
14643 # Allow CC to be a program name with arguments.
14644 lt_save_CC="$CC"
14645 CC=${GCJ-"gcj"}
14646 compiler=$CC
14647 compiler_GCJ=$CC
14648
14649 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14650 archive_cmds_need_lc_GCJ=no
14651
14652
14653 lt_prog_compiler_no_builtin_flag_GCJ=
14654
14655 if test "$GCC" = yes; then
14656   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14657
14658   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14659 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14660 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14661   echo $ECHO_N "(cached) $ECHO_C" >&6
14662 else
14663   lt_cv_prog_compiler_rtti_exceptions=no
14664   ac_outfile=conftest.$ac_objext
14665    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14666    lt_compiler_flag="-fno-rtti -fno-exceptions"
14667    # Insert the option either (1) after the last *FLAGS variable, or
14668    # (2) before a word containing "conftest.", or (3) at the end.
14669    # Note that $ac_compile itself does not contain backslashes and begins
14670    # with a dollar sign (not a hyphen), so the echo should work correctly.
14671    # The option is referenced via a variable to avoid confusing sed.
14672    lt_compile=`echo "$ac_compile" | $SED \
14673    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14674    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675    -e 's:$: $lt_compiler_flag:'`
14676    (eval echo "\"\$as_me:14676: $lt_compile\"" >&5)
14677    (eval "$lt_compile" 2>conftest.err)
14678    ac_status=$?
14679    cat conftest.err >&5
14680    echo "$as_me:14680: \$? = $ac_status" >&5
14681    if (exit $ac_status) && test -s "$ac_outfile"; then
14682      # The compiler can only warn and ignore the option if not recognized
14683      # So say no if there are warnings
14684      if test ! -s conftest.err; then
14685        lt_cv_prog_compiler_rtti_exceptions=yes
14686      fi
14687    fi
14688    $rm conftest*
14689
14690 fi
14691 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14692 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14693
14694 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14695     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14696 else
14697     :
14698 fi
14699
14700 fi
14701
14702 lt_prog_compiler_wl_GCJ=
14703 lt_prog_compiler_pic_GCJ=
14704 lt_prog_compiler_static_GCJ=
14705
14706 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14707 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14708
14709   if test "$GCC" = yes; then
14710     lt_prog_compiler_wl_GCJ='-Wl,'
14711     lt_prog_compiler_static_GCJ='-static'
14712
14713     case $host_os in
14714       aix*)
14715       # All AIX code is PIC.
14716       if test "$host_cpu" = ia64; then
14717         # AIX 5 now supports IA64 processor
14718         lt_prog_compiler_static_GCJ='-Bstatic'
14719       fi
14720       ;;
14721
14722     amigaos*)
14723       # FIXME: we need at least 68020 code to build shared libraries, but
14724       # adding the `-m68020' flag to GCC prevents building anything better,
14725       # like `-m68040'.
14726       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14727       ;;
14728
14729     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14730       # PIC is the default for these OSes.
14731       ;;
14732
14733     mingw* | pw32* | os2*)
14734       # This hack is so that the source file can tell whether it is being
14735       # built for inclusion in a dll (and should export symbols for example).
14736       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14737       ;;
14738
14739     darwin* | rhapsody*)
14740       # PIC is the default on this platform
14741       # Common symbols not allowed in MH_DYLIB files
14742       lt_prog_compiler_pic_GCJ='-fno-common'
14743       ;;
14744
14745     msdosdjgpp*)
14746       # Just because we use GCC doesn't mean we suddenly get shared libraries
14747       # on systems that don't support them.
14748       lt_prog_compiler_can_build_shared_GCJ=no
14749       enable_shared=no
14750       ;;
14751
14752     sysv4*MP*)
14753       if test -d /usr/nec; then
14754         lt_prog_compiler_pic_GCJ=-Kconform_pic
14755       fi
14756       ;;
14757
14758     hpux*)
14759       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14760       # not for PA HP-UX.
14761       case "$host_cpu" in
14762       hppa*64*|ia64*)
14763         # +Z the default
14764         ;;
14765       *)
14766         lt_prog_compiler_pic_GCJ='-fPIC'
14767         ;;
14768       esac
14769       ;;
14770
14771     *)
14772       lt_prog_compiler_pic_GCJ='-fPIC'
14773       ;;
14774     esac
14775   else
14776     # PORTME Check for flag to pass linker flags through the system compiler.
14777     case $host_os in
14778     aix*)
14779       lt_prog_compiler_wl_GCJ='-Wl,'
14780       if test "$host_cpu" = ia64; then
14781         # AIX 5 now supports IA64 processor
14782         lt_prog_compiler_static_GCJ='-Bstatic'
14783       else
14784         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14785       fi
14786       ;;
14787
14788     mingw* | pw32* | os2*)
14789       # This hack is so that the source file can tell whether it is being
14790       # built for inclusion in a dll (and should export symbols for example).
14791       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14792       ;;
14793
14794     hpux9* | hpux10* | hpux11*)
14795       lt_prog_compiler_wl_GCJ='-Wl,'
14796       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14797       # not for PA HP-UX.
14798       case "$host_cpu" in
14799       hppa*64*|ia64*)
14800         # +Z the default
14801         ;;
14802       *)
14803         lt_prog_compiler_pic_GCJ='+Z'
14804         ;;
14805       esac
14806       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14807       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14808       ;;
14809
14810     irix5* | irix6* | nonstopux*)
14811       lt_prog_compiler_wl_GCJ='-Wl,'
14812       # PIC (with -KPIC) is the default.
14813       lt_prog_compiler_static_GCJ='-non_shared'
14814       ;;
14815
14816     newsos6)
14817       lt_prog_compiler_pic_GCJ='-KPIC'
14818       lt_prog_compiler_static_GCJ='-Bstatic'
14819       ;;
14820
14821     linux*)
14822       case $CC in
14823       icc|ecc)
14824         lt_prog_compiler_wl_GCJ='-Wl,'
14825         lt_prog_compiler_pic_GCJ='-KPIC'
14826         lt_prog_compiler_static_GCJ='-static'
14827         ;;
14828       ccc)
14829         lt_prog_compiler_wl_GCJ='-Wl,'
14830         # All Alpha code is PIC.
14831         lt_prog_compiler_static_GCJ='-non_shared'
14832         ;;
14833       esac
14834       ;;
14835
14836     osf3* | osf4* | osf5*)
14837       lt_prog_compiler_wl_GCJ='-Wl,'
14838       # All OSF/1 code is PIC.
14839       lt_prog_compiler_static_GCJ='-non_shared'
14840       ;;
14841
14842     sco3.2v5*)
14843       lt_prog_compiler_pic_GCJ='-Kpic'
14844       lt_prog_compiler_static_GCJ='-dn'
14845       ;;
14846
14847     solaris*)
14848       lt_prog_compiler_wl_GCJ='-Wl,'
14849       lt_prog_compiler_pic_GCJ='-KPIC'
14850       lt_prog_compiler_static_GCJ='-Bstatic'
14851       ;;
14852
14853     sunos4*)
14854       lt_prog_compiler_wl_GCJ='-Qoption ld '
14855       lt_prog_compiler_pic_GCJ='-PIC'
14856       lt_prog_compiler_static_GCJ='-Bstatic'
14857       ;;
14858
14859     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14860       lt_prog_compiler_wl_GCJ='-Wl,'
14861       lt_prog_compiler_pic_GCJ='-KPIC'
14862       lt_prog_compiler_static_GCJ='-Bstatic'
14863       ;;
14864
14865     sysv4*MP*)
14866       if test -d /usr/nec ;then
14867         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14868         lt_prog_compiler_static_GCJ='-Bstatic'
14869       fi
14870       ;;
14871
14872     uts4*)
14873       lt_prog_compiler_pic_GCJ='-pic'
14874       lt_prog_compiler_static_GCJ='-Bstatic'
14875       ;;
14876
14877     *)
14878       lt_prog_compiler_can_build_shared_GCJ=no
14879       ;;
14880     esac
14881   fi
14882
14883 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14884 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14885
14886 #
14887 # Check to make sure the PIC flag actually works.
14888 #
14889 if test -n "$lt_prog_compiler_pic_GCJ"; then
14890   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14891 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14892 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14893   echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895   lt_prog_compiler_pic_works_GCJ=no
14896   ac_outfile=conftest.$ac_objext
14897    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14898    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14899    # Insert the option either (1) after the last *FLAGS variable, or
14900    # (2) before a word containing "conftest.", or (3) at the end.
14901    # Note that $ac_compile itself does not contain backslashes and begins
14902    # with a dollar sign (not a hyphen), so the echo should work correctly.
14903    # The option is referenced via a variable to avoid confusing sed.
14904    lt_compile=`echo "$ac_compile" | $SED \
14905    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14906    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14907    -e 's:$: $lt_compiler_flag:'`
14908    (eval echo "\"\$as_me:14908: $lt_compile\"" >&5)
14909    (eval "$lt_compile" 2>conftest.err)
14910    ac_status=$?
14911    cat conftest.err >&5
14912    echo "$as_me:14912: \$? = $ac_status" >&5
14913    if (exit $ac_status) && test -s "$ac_outfile"; then
14914      # The compiler can only warn and ignore the option if not recognized
14915      # So say no if there are warnings
14916      if test ! -s conftest.err; then
14917        lt_prog_compiler_pic_works_GCJ=yes
14918      fi
14919    fi
14920    $rm conftest*
14921
14922 fi
14923 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14924 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14925
14926 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14927     case $lt_prog_compiler_pic_GCJ in
14928      "" | " "*) ;;
14929      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14930      esac
14931 else
14932     lt_prog_compiler_pic_GCJ=
14933      lt_prog_compiler_can_build_shared_GCJ=no
14934 fi
14935
14936 fi
14937 case "$host_os" in
14938   # For platforms which do not support PIC, -DPIC is meaningless:
14939   *djgpp*)
14940     lt_prog_compiler_pic_GCJ=
14941     ;;
14942   *)
14943     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14944     ;;
14945 esac
14946
14947 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14948 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14949 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14950   echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952   lt_cv_prog_compiler_c_o_GCJ=no
14953    $rm -r conftest 2>/dev/null
14954    mkdir conftest
14955    cd conftest
14956    mkdir out
14957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14958
14959    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14960    # that will create temporary files in the current directory regardless of
14961    # the output directory.  Thus, making CWD read-only will cause this test
14962    # to fail, enabling locking or at least warning the user not to do parallel
14963    # builds.
14964    chmod -w .
14965
14966    lt_compiler_flag="-o out/conftest2.$ac_objext"
14967    # Insert the option either (1) after the last *FLAGS variable, or
14968    # (2) before a word containing "conftest.", or (3) at the end.
14969    # Note that $ac_compile itself does not contain backslashes and begins
14970    # with a dollar sign (not a hyphen), so the echo should work correctly.
14971    lt_compile=`echo "$ac_compile" | $SED \
14972    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14973    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14974    -e 's:$: $lt_compiler_flag:'`
14975    (eval echo "\"\$as_me:14975: $lt_compile\"" >&5)
14976    (eval "$lt_compile" 2>out/conftest.err)
14977    ac_status=$?
14978    cat out/conftest.err >&5
14979    echo "$as_me:14979: \$? = $ac_status" >&5
14980    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14981    then
14982      # The compiler can only warn and ignore the option if not recognized
14983      # So say no if there are warnings
14984      if test ! -s out/conftest.err; then
14985        lt_cv_prog_compiler_c_o_GCJ=yes
14986      fi
14987    fi
14988    chmod u+w .
14989    $rm conftest* out/*
14990    rmdir out
14991    cd ..
14992    rmdir conftest
14993    $rm conftest*
14994
14995 fi
14996 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14997 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14998
14999
15000 hard_links="nottested"
15001 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15002   # do not overwrite the value of need_locks provided by the user
15003   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15004 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15005   hard_links=yes
15006   $rm conftest*
15007   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15008   touch conftest.a
15009   ln conftest.a conftest.b 2>&5 || hard_links=no
15010   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15011   echo "$as_me:$LINENO: result: $hard_links" >&5
15012 echo "${ECHO_T}$hard_links" >&6
15013   if test "$hard_links" = no; then
15014     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15015 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15016     need_locks=warn
15017   fi
15018 else
15019   need_locks=no
15020 fi
15021
15022 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15023 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15024
15025   runpath_var=
15026   allow_undefined_flag_GCJ=
15027   enable_shared_with_static_runtimes_GCJ=no
15028   archive_cmds_GCJ=
15029   archive_expsym_cmds_GCJ=
15030   old_archive_From_new_cmds_GCJ=
15031   old_archive_from_expsyms_cmds_GCJ=
15032   export_dynamic_flag_spec_GCJ=
15033   whole_archive_flag_spec_GCJ=
15034   thread_safe_flag_spec_GCJ=
15035   hardcode_libdir_flag_spec_GCJ=
15036   hardcode_libdir_flag_spec_ld_GCJ=
15037   hardcode_libdir_separator_GCJ=
15038   hardcode_direct_GCJ=no
15039   hardcode_minus_L_GCJ=no
15040   hardcode_shlibpath_var_GCJ=unsupported
15041   link_all_deplibs_GCJ=unknown
15042   hardcode_automatic_GCJ=no
15043   module_cmds_GCJ=
15044   module_expsym_cmds_GCJ=
15045   always_export_symbols_GCJ=no
15046   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15047   # include_expsyms should be a list of space-separated symbols to be *always*
15048   # included in the symbol list
15049   include_expsyms_GCJ=
15050   # exclude_expsyms can be an extended regexp of symbols to exclude
15051   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15052   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15053   # as well as any symbol that contains `d'.
15054   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15055   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15056   # platforms (ab)use it in PIC code, but their linkers get confused if
15057   # the symbol is explicitly referenced.  Since portable code cannot
15058   # rely on this symbol name, it's probably fine to never include it in
15059   # preloaded symbol tables.
15060   extract_expsyms_cmds=
15061
15062   case $host_os in
15063   cygwin* | mingw* | pw32*)
15064     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15065     # When not using gcc, we currently assume that we are using
15066     # Microsoft Visual C++.
15067     if test "$GCC" != yes; then
15068       with_gnu_ld=no
15069     fi
15070     ;;
15071   openbsd*)
15072     with_gnu_ld=no
15073     ;;
15074   esac
15075
15076   ld_shlibs_GCJ=yes
15077   if test "$with_gnu_ld" = yes; then
15078     # If archive_cmds runs LD, not CC, wlarc should be empty
15079     wlarc='${wl}'
15080
15081     # See if GNU ld supports shared libraries.
15082     case $host_os in
15083     aix3* | aix4* | aix5*)
15084       # On AIX/PPC, the GNU linker is very broken
15085       if test "$host_cpu" != ia64; then
15086         ld_shlibs_GCJ=no
15087         cat <<EOF 1>&2
15088
15089 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15090 *** to be unable to reliably create shared libraries on AIX.
15091 *** Therefore, libtool is disabling shared libraries support.  If you
15092 *** really care for shared libraries, you may want to modify your PATH
15093 *** so that a non-GNU linker is found, and then restart.
15094
15095 EOF
15096       fi
15097       ;;
15098
15099     amigaos*)
15100       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)'
15101       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15102       hardcode_minus_L_GCJ=yes
15103
15104       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15105       # that the semantics of dynamic libraries on AmigaOS, at least up
15106       # to version 4, is to share data among multiple programs linked
15107       # with the same dynamic library.  Since this doesn't match the
15108       # behavior of shared libraries on other platforms, we can't use
15109       # them.
15110       ld_shlibs_GCJ=no
15111       ;;
15112
15113     beos*)
15114       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115         allow_undefined_flag_GCJ=unsupported
15116         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15117         # support --undefined.  This deserves some investigation.  FIXME
15118         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15119       else
15120         ld_shlibs_GCJ=no
15121       fi
15122       ;;
15123
15124     cygwin* | mingw* | pw32*)
15125       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15126       # as there is no search path for DLLs.
15127       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15128       allow_undefined_flag_GCJ=unsupported
15129       always_export_symbols_GCJ=no
15130       enable_shared_with_static_runtimes_GCJ=yes
15131       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15132
15133       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15134         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15135         # If the export-symbols file already is a .def file (1st line
15136         # is EXPORTS), use it as is; otherwise, prepend...
15137         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15138           cp $export_symbols $output_objdir/$soname.def;
15139         else
15140           echo EXPORTS > $output_objdir/$soname.def;
15141           cat $export_symbols >> $output_objdir/$soname.def;
15142         fi~
15143         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15144       else
15145         ld_shlibs=no
15146       fi
15147       ;;
15148
15149     netbsd*)
15150       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15151         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15152         wlarc=
15153       else
15154         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15155         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15156       fi
15157       ;;
15158
15159     solaris* | sysv5*)
15160       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15161         ld_shlibs_GCJ=no
15162         cat <<EOF 1>&2
15163
15164 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15165 *** create shared libraries on Solaris systems.  Therefore, libtool
15166 *** is disabling shared libraries support.  We urge you to upgrade GNU
15167 *** binutils to release 2.9.1 or newer.  Another option is to modify
15168 *** your PATH or compiler configuration so that the native linker is
15169 *** used, and then restart.
15170
15171 EOF
15172       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15173         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15174         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15175       else
15176         ld_shlibs_GCJ=no
15177       fi
15178       ;;
15179
15180     sunos4*)
15181       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15182       wlarc=
15183       hardcode_direct_GCJ=yes
15184       hardcode_shlibpath_var_GCJ=no
15185       ;;
15186
15187     *)
15188       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15189         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15191       else
15192         ld_shlibs_GCJ=no
15193       fi
15194       ;;
15195     esac
15196
15197     if test "$ld_shlibs_GCJ" = yes; then
15198       runpath_var=LD_RUN_PATH
15199       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15200       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15201       # ancient GNU ld didn't support --whole-archive et. al.
15202       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15203         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15204       else
15205         whole_archive_flag_spec_GCJ=
15206       fi
15207     fi
15208   else
15209     # PORTME fill in a description of your system's linker (not GNU ld)
15210     case $host_os in
15211     aix3*)
15212       allow_undefined_flag_GCJ=unsupported
15213       always_export_symbols_GCJ=yes
15214       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'
15215       # Note: this linker hardcodes the directories in LIBPATH if there
15216       # are no directories specified by -L.
15217       hardcode_minus_L_GCJ=yes
15218       if test "$GCC" = yes && test -z "$link_static_flag"; then
15219         # Neither direct hardcoding nor static linking is supported with a
15220         # broken collect2.
15221         hardcode_direct_GCJ=unsupported
15222       fi
15223       ;;
15224
15225     aix4* | aix5*)
15226       if test "$host_cpu" = ia64; then
15227         # On IA64, the linker does run time linking by default, so we don't
15228         # have to do anything special.
15229         aix_use_runtimelinking=no
15230         exp_sym_flag='-Bexport'
15231         no_entry_flag=""
15232       else
15233         # If we're using GNU nm, then we don't want the "-C" option.
15234         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15235         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15236           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'
15237         else
15238           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'
15239         fi
15240         aix_use_runtimelinking=no
15241
15242         # Test if we are trying to use run time linking or normal
15243         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15244         # need to do runtime linking.
15245         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15246           for ld_flag in $LDFLAGS; do
15247           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15248             aix_use_runtimelinking=yes
15249             break
15250           fi
15251           done
15252         esac
15253
15254         exp_sym_flag='-bexport'
15255         no_entry_flag='-bnoentry'
15256       fi
15257
15258       # When large executables or shared objects are built, AIX ld can
15259       # have problems creating the table of contents.  If linking a library
15260       # or program results in "error TOC overflow" add -mminimal-toc to
15261       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15262       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15263
15264       archive_cmds_GCJ=''
15265       hardcode_direct_GCJ=yes
15266       hardcode_libdir_separator_GCJ=':'
15267       link_all_deplibs_GCJ=yes
15268
15269       if test "$GCC" = yes; then
15270         case $host_os in aix4.012|aix4.012.*)
15271         # We only want to do this on AIX 4.2 and lower, the check
15272         # below for broken collect2 doesn't work under 4.3+
15273           collect2name=`${CC} -print-prog-name=collect2`
15274           if test -f "$collect2name" && \
15275            strings "$collect2name" | grep resolve_lib_name >/dev/null
15276           then
15277           # We have reworked collect2
15278           hardcode_direct_GCJ=yes
15279           else
15280           # We have old collect2
15281           hardcode_direct_GCJ=unsupported
15282           # It fails to find uninstalled libraries when the uninstalled
15283           # path is not listed in the libpath.  Setting hardcode_minus_L
15284           # to unsupported forces relinking
15285           hardcode_minus_L_GCJ=yes
15286           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15287           hardcode_libdir_separator_GCJ=
15288           fi
15289         esac
15290         shared_flag='-shared'
15291       else
15292         # not using gcc
15293         if test "$host_cpu" = ia64; then
15294         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15295         # chokes on -Wl,-G. The following line is correct:
15296           shared_flag='-G'
15297         else
15298         if test "$aix_use_runtimelinking" = yes; then
15299             shared_flag='${wl}-G'
15300           else
15301             shared_flag='${wl}-bM:SRE'
15302         fi
15303         fi
15304       fi
15305
15306       # It seems that -bexpall does not export symbols beginning with
15307       # underscore (_), so it is better to generate a list of symbols to export.
15308       always_export_symbols_GCJ=yes
15309       if test "$aix_use_runtimelinking" = yes; then
15310         # Warning - without using the other runtime loading flags (-brtl),
15311         # -berok will link without error, but may produce a broken library.
15312         allow_undefined_flag_GCJ='-berok'
15313        # Determine the default libpath from the value encoded in an empty executable.
15314        cat >conftest.$ac_ext <<_ACEOF
15315 #line $LINENO "configure"
15316 /* confdefs.h.  */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h.  */
15321
15322 int
15323 main ()
15324 {
15325
15326   ;
15327   return 0;
15328 }
15329 _ACEOF
15330 rm -f conftest.$ac_objext conftest$ac_exeext
15331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15332   (eval $ac_link) 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); } &&
15336          { ac_try='test -s conftest$ac_exeext'
15337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338   (eval $ac_try) 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; }; then
15342
15343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15344 }'`
15345 # Check for a 64-bit object if we didn't find anything.
15346 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; }
15347 }'`; fi
15348 else
15349   echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352 fi
15353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15355
15356        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15357         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"
15358        else
15359         if test "$host_cpu" = ia64; then
15360           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15361           allow_undefined_flag_GCJ="-z nodefs"
15362           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"
15363         else
15364          # Determine the default libpath from the value encoded in an empty executable.
15365          cat >conftest.$ac_ext <<_ACEOF
15366 #line $LINENO "configure"
15367 /* confdefs.h.  */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h.  */
15372
15373 int
15374 main ()
15375 {
15376
15377   ;
15378   return 0;
15379 }
15380 _ACEOF
15381 rm -f conftest.$ac_objext conftest$ac_exeext
15382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15383   (eval $ac_link) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); } &&
15387          { ac_try='test -s conftest$ac_exeext'
15388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389   (eval $ac_try) 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); }; }; then
15393
15394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15395 }'`
15396 # Check for a 64-bit object if we didn't find anything.
15397 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; }
15398 }'`; fi
15399 else
15400   echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 fi
15404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15406
15407          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15408           # Warning - without using the other run time loading flags,
15409           # -berok will link without error, but may produce a broken library.
15410           no_undefined_flag_GCJ=' ${wl}-bernotok'
15411           allow_undefined_flag_GCJ=' ${wl}-berok'
15412           # -bexpall does not export symbols beginning with underscore (_)
15413           always_export_symbols_GCJ=yes
15414           # Exported symbols can be pulled into shared objects from archives
15415           whole_archive_flag_spec_GCJ=' '
15416           archive_cmds_need_lc_GCJ=yes
15417           # This is similar to how AIX traditionally builds it's shared libraries.
15418           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'
15419         fi
15420       fi
15421       ;;
15422
15423     amigaos*)
15424       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)'
15425       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15426       hardcode_minus_L_GCJ=yes
15427       # see comment about different semantics on the GNU ld section
15428       ld_shlibs_GCJ=no
15429       ;;
15430
15431     bsdi4*)
15432       export_dynamic_flag_spec_GCJ=-rdynamic
15433       ;;
15434
15435     cygwin* | mingw* | pw32*)
15436       # When not using gcc, we currently assume that we are using
15437       # Microsoft Visual C++.
15438       # hardcode_libdir_flag_spec is actually meaningless, as there is
15439       # no search path for DLLs.
15440       hardcode_libdir_flag_spec_GCJ=' '
15441       allow_undefined_flag_GCJ=unsupported
15442       # Tell ltmain to make .lib files, not .a files.
15443       libext=lib
15444       # Tell ltmain to make .dll files, not .so files.
15445       shrext=".dll"
15446       # FIXME: Setting linknames here is a bad hack.
15447       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15448       # The linker will automatically build a .lib file if we build a DLL.
15449       old_archive_From_new_cmds_GCJ='true'
15450       # FIXME: Should let the user specify the lib program.
15451       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15452       fix_srcfile_path='`cygpath -w "$srcfile"`'
15453       enable_shared_with_static_runtimes_GCJ=yes
15454       ;;
15455
15456     darwin* | rhapsody*)
15457     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15458       archive_cmds_need_lc_GCJ=no
15459       case "$host_os" in
15460       rhapsody* | darwin1.[012])
15461         allow_undefined_flag_GCJ='-undefined suppress'
15462         ;;
15463       *) # Darwin 1.3 on
15464         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15465         ;;
15466       esac
15467       # FIXME: Relying on posixy $() will cause problems for
15468       #        cross-compilation, but unfortunately the echo tests do not
15469       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15470       #        `"' quotes if we put them in here... so don't!
15471         lt_int_apple_cc_single_mod=no
15472         output_verbose_link_cmd='echo'
15473         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15474           lt_int_apple_cc_single_mod=yes
15475         fi
15476         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15477           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15478         else
15479         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15480       fi
15481       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15482       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15483         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15484           archive_expsym_cmds_GCJ='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}'
15485         else
15486           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15487         fi
15488           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15489       hardcode_direct_GCJ=no
15490       hardcode_automatic_GCJ=yes
15491       hardcode_shlibpath_var_GCJ=unsupported
15492       whole_archive_flag_spec_GCJ='-all_load $convenience'
15493       link_all_deplibs_GCJ=yes
15494     fi
15495       ;;
15496
15497     dgux*)
15498       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15499       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15500       hardcode_shlibpath_var_GCJ=no
15501       ;;
15502
15503     freebsd1*)
15504       ld_shlibs_GCJ=no
15505       ;;
15506
15507     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15508     # support.  Future versions do this automatically, but an explicit c++rt0.o
15509     # does not break anything, and helps significantly (at the cost of a little
15510     # extra space).
15511     freebsd2.2*)
15512       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15513       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15514       hardcode_direct_GCJ=yes
15515       hardcode_shlibpath_var_GCJ=no
15516       ;;
15517
15518     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15519     freebsd2*)
15520       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15521       hardcode_direct_GCJ=yes
15522       hardcode_minus_L_GCJ=yes
15523       hardcode_shlibpath_var_GCJ=no
15524       ;;
15525
15526     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15527     freebsd*)
15528       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15529       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15530       hardcode_direct_GCJ=yes
15531       hardcode_shlibpath_var_GCJ=no
15532       ;;
15533
15534     hpux9*)
15535       if test "$GCC" = yes; then
15536         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'
15537       else
15538         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'
15539       fi
15540       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15541       hardcode_libdir_separator_GCJ=:
15542       hardcode_direct_GCJ=yes
15543
15544       # hardcode_minus_L: Not really in the search PATH,
15545       # but as the default location of the library.
15546       hardcode_minus_L_GCJ=yes
15547       export_dynamic_flag_spec_GCJ='${wl}-E'
15548       ;;
15549
15550     hpux10* | hpux11*)
15551       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15552         case "$host_cpu" in
15553         hppa*64*|ia64*)
15554           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15555           ;;
15556         *)
15557           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15558           ;;
15559         esac
15560       else
15561         case "$host_cpu" in
15562         hppa*64*|ia64*)
15563           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15564           ;;
15565         *)
15566           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15567           ;;
15568         esac
15569       fi
15570       if test "$with_gnu_ld" = no; then
15571         case "$host_cpu" in
15572         hppa*64*)
15573           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15574           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15575           hardcode_libdir_separator_GCJ=:
15576           hardcode_direct_GCJ=no
15577           hardcode_shlibpath_var_GCJ=no
15578           ;;
15579         ia64*)
15580           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15581           hardcode_direct_GCJ=no
15582           hardcode_shlibpath_var_GCJ=no
15583
15584           # hardcode_minus_L: Not really in the search PATH,
15585           # but as the default location of the library.
15586           hardcode_minus_L_GCJ=yes
15587           ;;
15588         *)
15589           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15590           hardcode_libdir_separator_GCJ=:
15591           hardcode_direct_GCJ=yes
15592           export_dynamic_flag_spec_GCJ='${wl}-E'
15593
15594           # hardcode_minus_L: Not really in the search PATH,
15595           # but as the default location of the library.
15596           hardcode_minus_L_GCJ=yes
15597           ;;
15598         esac
15599       fi
15600       ;;
15601
15602     irix5* | irix6* | nonstopux*)
15603       if test "$GCC" = yes; then
15604         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'
15605       else
15606         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'
15607         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15608       fi
15609       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15610       hardcode_libdir_separator_GCJ=:
15611       link_all_deplibs_GCJ=yes
15612       ;;
15613
15614     netbsd*)
15615       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15616         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15617       else
15618         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15619       fi
15620       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15621       hardcode_direct_GCJ=yes
15622       hardcode_shlibpath_var_GCJ=no
15623       ;;
15624
15625     newsos6)
15626       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15627       hardcode_direct_GCJ=yes
15628       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15629       hardcode_libdir_separator_GCJ=:
15630       hardcode_shlibpath_var_GCJ=no
15631       ;;
15632
15633     openbsd*)
15634       hardcode_direct_GCJ=yes
15635       hardcode_shlibpath_var_GCJ=no
15636       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15637         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15638         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15639         export_dynamic_flag_spec_GCJ='${wl}-E'
15640       else
15641        case $host_os in
15642          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15643            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15644            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15645            ;;
15646          *)
15647            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15648            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15649            ;;
15650        esac
15651       fi
15652       ;;
15653
15654     os2*)
15655       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15656       hardcode_minus_L_GCJ=yes
15657       allow_undefined_flag_GCJ=unsupported
15658       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'
15659       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15660       ;;
15661
15662     osf3*)
15663       if test "$GCC" = yes; then
15664         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15665         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'
15666       else
15667         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15668         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'
15669       fi
15670       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15671       hardcode_libdir_separator_GCJ=:
15672       ;;
15673
15674     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15675       if test "$GCC" = yes; then
15676         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15677         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'
15678         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15679       else
15680         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15681         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'
15682         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~
15683         $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'
15684
15685         # Both c and cxx compiler support -rpath directly
15686         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15687       fi
15688       hardcode_libdir_separator_GCJ=:
15689       ;;
15690
15691     sco3.2v5*)
15692       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15693       hardcode_shlibpath_var_GCJ=no
15694       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15695       runpath_var=LD_RUN_PATH
15696       hardcode_runpath_var=yes
15697       ;;
15698
15699     solaris*)
15700       no_undefined_flag_GCJ=' -z text'
15701       if test "$GCC" = yes; then
15702         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15703         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15704           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15705       else
15706         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15708         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15709       fi
15710       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15711       hardcode_shlibpath_var_GCJ=no
15712       case $host_os in
15713       solaris2.[0-5] | solaris2.[0-5].*) ;;
15714       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15715         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15716       esac
15717       link_all_deplibs_GCJ=yes
15718       ;;
15719
15720     sunos4*)
15721       if test "x$host_vendor" = xsequent; then
15722         # Use $CC to link under sequent, because it throws in some extra .o
15723         # files that make .init and .fini sections work.
15724         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15725       else
15726         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15727       fi
15728       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15729       hardcode_direct_GCJ=yes
15730       hardcode_minus_L_GCJ=yes
15731       hardcode_shlibpath_var_GCJ=no
15732       ;;
15733
15734     sysv4)
15735       case $host_vendor in
15736         sni)
15737           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15738           hardcode_direct_GCJ=yes # is this really true???
15739         ;;
15740         siemens)
15741           ## LD is ld it makes a PLAMLIB
15742           ## CC just makes a GrossModule.
15743           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15744           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15745           hardcode_direct_GCJ=no
15746         ;;
15747         motorola)
15748           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15750         ;;
15751       esac
15752       runpath_var='LD_RUN_PATH'
15753       hardcode_shlibpath_var_GCJ=no
15754       ;;
15755
15756     sysv4.3*)
15757       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758       hardcode_shlibpath_var_GCJ=no
15759       export_dynamic_flag_spec_GCJ='-Bexport'
15760       ;;
15761
15762     sysv4*MP*)
15763       if test -d /usr/nec; then
15764         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765         hardcode_shlibpath_var_GCJ=no
15766         runpath_var=LD_RUN_PATH
15767         hardcode_runpath_var=yes
15768         ld_shlibs_GCJ=yes
15769       fi
15770       ;;
15771
15772     sysv4.2uw2*)
15773       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15774       hardcode_direct_GCJ=yes
15775       hardcode_minus_L_GCJ=no
15776       hardcode_shlibpath_var_GCJ=no
15777       hardcode_runpath_var=yes
15778       runpath_var=LD_RUN_PATH
15779       ;;
15780
15781    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15782       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15783       if test "$GCC" = yes; then
15784         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785       else
15786         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15787       fi
15788       runpath_var='LD_RUN_PATH'
15789       hardcode_shlibpath_var_GCJ=no
15790       ;;
15791
15792     sysv5*)
15793       no_undefined_flag_GCJ=' -z text'
15794       # $CC -shared without GNU ld will not create a library from C++
15795       # object files and a static libstdc++, better avoid it by now
15796       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15797       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15798                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15799       hardcode_libdir_flag_spec_GCJ=
15800       hardcode_shlibpath_var_GCJ=no
15801       runpath_var='LD_RUN_PATH'
15802       ;;
15803
15804     uts4*)
15805       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15806       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15807       hardcode_shlibpath_var_GCJ=no
15808       ;;
15809
15810     *)
15811       ld_shlibs_GCJ=no
15812       ;;
15813     esac
15814   fi
15815
15816 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15817 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15818 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15819
15820 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15821 if test "$GCC" = yes; then
15822   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15823 fi
15824
15825 #
15826 # Do we need to explicitly link libc?
15827 #
15828 case "x$archive_cmds_need_lc_GCJ" in
15829 x|xyes)
15830   # Assume -lc should be added
15831   archive_cmds_need_lc_GCJ=yes
15832
15833   if test "$enable_shared" = yes && test "$GCC" = yes; then
15834     case $archive_cmds_GCJ in
15835     *'~'*)
15836       # FIXME: we may have to deal with multi-command sequences.
15837       ;;
15838     '$CC '*)
15839       # Test whether the compiler implicitly links with -lc since on some
15840       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15841       # to ld, don't add -lc before -lgcc.
15842       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15843 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15844       $rm conftest*
15845       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15846
15847       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848   (eval $ac_compile) 2>&5
15849   ac_status=$?
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); } 2>conftest.err; then
15852         soname=conftest
15853         lib=conftest
15854         libobjs=conftest.$ac_objext
15855         deplibs=
15856         wl=$lt_prog_compiler_wl_GCJ
15857         compiler_flags=-v
15858         linker_flags=-v
15859         verstring=
15860         output_objdir=.
15861         libname=conftest
15862         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15863         allow_undefined_flag_GCJ=
15864         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15865   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }
15869         then
15870           archive_cmds_need_lc_GCJ=no
15871         else
15872           archive_cmds_need_lc_GCJ=yes
15873         fi
15874         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15875       else
15876         cat conftest.err 1>&5
15877       fi
15878       $rm conftest*
15879       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15880 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15881       ;;
15882     esac
15883   fi
15884   ;;
15885 esac
15886
15887 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15888 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15889 hardcode_action_GCJ=
15890 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15891    test -n "$runpath_var GCJ" || \
15892    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15893
15894   # We can hardcode non-existant directories.
15895   if test "$hardcode_direct_GCJ" != no &&
15896      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15897      # have to relink, otherwise we might link with an installed library
15898      # when we should be linking with a yet-to-be-installed one
15899      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15900      test "$hardcode_minus_L_GCJ" != no; then
15901     # Linking always hardcodes the temporary library directory.
15902     hardcode_action_GCJ=relink
15903   else
15904     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15905     hardcode_action_GCJ=immediate
15906   fi
15907 else
15908   # We cannot hardcode anything, or else we can only hardcode existing
15909   # directories.
15910   hardcode_action_GCJ=unsupported
15911 fi
15912 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15913 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15914
15915 if test "$hardcode_action_GCJ" = relink; then
15916   # Fast installation is not supported
15917   enable_fast_install=no
15918 elif test "$shlibpath_overrides_runpath" = yes ||
15919      test "$enable_shared" = no; then
15920   # Fast installation is not necessary
15921   enable_fast_install=needless
15922 fi
15923
15924 striplib=
15925 old_striplib=
15926 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15927 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15928 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15929   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15930   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15931   echo "$as_me:$LINENO: result: yes" >&5
15932 echo "${ECHO_T}yes" >&6
15933 else
15934 # FIXME - insert some real tests, host_os isn't really good enough
15935   case $host_os in
15936    darwin*)
15937        if test -n "$STRIP" ; then
15938          striplib="$STRIP -x"
15939          echo "$as_me:$LINENO: result: yes" >&5
15940 echo "${ECHO_T}yes" >&6
15941        else
15942   echo "$as_me:$LINENO: result: no" >&5
15943 echo "${ECHO_T}no" >&6
15944 fi
15945        ;;
15946    *)
15947   echo "$as_me:$LINENO: result: no" >&5
15948 echo "${ECHO_T}no" >&6
15949     ;;
15950   esac
15951 fi
15952
15953 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15954 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15955 library_names_spec=
15956 libname_spec='lib$name'
15957 soname_spec=
15958 shrext=".so"
15959 postinstall_cmds=
15960 postuninstall_cmds=
15961 finish_cmds=
15962 finish_eval=
15963 shlibpath_var=
15964 shlibpath_overrides_runpath=unknown
15965 version_type=none
15966 dynamic_linker="$host_os ld.so"
15967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15968 if test "$GCC" = yes; then
15969   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15970   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15971     # if the path contains ";" then we assume it to be the separator
15972     # otherwise default to the standard path separator (i.e. ":") - it is
15973     # assumed that no part of a normal pathname contains ";" but that should
15974     # okay in the real world where ";" in dirpaths is itself problematic.
15975     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15976   else
15977     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15978   fi
15979 else
15980   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15981 fi
15982 need_lib_prefix=unknown
15983 hardcode_into_libs=no
15984
15985 # when you set need_version to no, make sure it does not cause -set_version
15986 # flags to be left without arguments
15987 need_version=unknown
15988
15989 case $host_os in
15990 aix3*)
15991   version_type=linux
15992   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15993   shlibpath_var=LIBPATH
15994
15995   # AIX 3 has no versioning support, so we append a major version to the name.
15996   soname_spec='${libname}${release}${shared_ext}$major'
15997   ;;
15998
15999 aix4* | aix5*)
16000   version_type=linux
16001   need_lib_prefix=no
16002   need_version=no
16003   hardcode_into_libs=yes
16004   if test "$host_cpu" = ia64; then
16005     # AIX 5 supports IA64
16006     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16007     shlibpath_var=LD_LIBRARY_PATH
16008   else
16009     # With GCC up to 2.95.x, collect2 would create an import file
16010     # for dependence libraries.  The import file would start with
16011     # the line `#! .'.  This would cause the generated library to
16012     # depend on `.', always an invalid library.  This was fixed in
16013     # development snapshots of GCC prior to 3.0.
16014     case $host_os in
16015       aix4 | aix4.[01] | aix4.[01].*)
16016       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16017            echo ' yes '
16018            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16019         :
16020       else
16021         can_build_shared=no
16022       fi
16023       ;;
16024     esac
16025     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16026     # soname into executable. Probably we can add versioning support to
16027     # collect2, so additional links can be useful in future.
16028     if test "$aix_use_runtimelinking" = yes; then
16029       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16030       # instead of lib<name>.a to let people know that these are not
16031       # typical AIX shared libraries.
16032       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16033     else
16034       # We preserve .a as extension for shared libraries through AIX4.2
16035       # and later when we are not doing run time linking.
16036       library_names_spec='${libname}${release}.a $libname.a'
16037       soname_spec='${libname}${release}${shared_ext}$major'
16038     fi
16039     shlibpath_var=LIBPATH
16040   fi
16041   ;;
16042
16043 amigaos*)
16044   library_names_spec='$libname.ixlibrary $libname.a'
16045   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16046   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'
16047   ;;
16048
16049 beos*)
16050   library_names_spec='${libname}${shared_ext}'
16051   dynamic_linker="$host_os ld.so"
16052   shlibpath_var=LIBRARY_PATH
16053   ;;
16054
16055 bsdi4*)
16056   version_type=linux
16057   need_version=no
16058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059   soname_spec='${libname}${release}${shared_ext}$major'
16060   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16061   shlibpath_var=LD_LIBRARY_PATH
16062   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16063   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16064   # the default ld.so.conf also contains /usr/contrib/lib and
16065   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16066   # libtool to hard-code these into programs
16067   ;;
16068
16069 cygwin* | mingw* | pw32*)
16070   version_type=windows
16071   shrext=".dll"
16072   need_version=no
16073   need_lib_prefix=no
16074
16075   case $GCC,$host_os in
16076   yes,cygwin* | yes,mingw* | yes,pw32*)
16077     library_names_spec='$libname.dll.a'
16078     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16079     postinstall_cmds='base_file=`basename \${file}`~
16080       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16081       dldir=$destdir/`dirname \$dlpath`~
16082       test -d \$dldir || mkdir -p \$dldir~
16083       $install_prog $dir/$dlname \$dldir/$dlname'
16084     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16085       dlpath=$dir/\$dldll~
16086        $rm \$dlpath'
16087     shlibpath_overrides_runpath=yes
16088
16089     case $host_os in
16090     cygwin*)
16091       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16092       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16093       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16094       ;;
16095     mingw*)
16096       # MinGW DLLs use traditional 'lib' prefix
16097       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16098       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16099       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16100         # It is most probably a Windows format PATH printed by
16101         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16102         # path with ; separators, and with drive letters. We can handle the
16103         # drive letters (cygwin fileutils understands them), so leave them,
16104         # especially as we might pass files found there to a mingw objdump,
16105         # which wouldn't understand a cygwinified path. Ahh.
16106         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16107       else
16108         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16109       fi
16110       ;;
16111     pw32*)
16112       # pw32 DLLs use 'pw' prefix rather than 'lib'
16113       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16114       ;;
16115     esac
16116     ;;
16117
16118   *)
16119     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16120     ;;
16121   esac
16122   dynamic_linker='Win32 ld.exe'
16123   # FIXME: first we should search . and the directory the executable is in
16124   shlibpath_var=PATH
16125   ;;
16126
16127 darwin* | rhapsody*)
16128   dynamic_linker="$host_os dyld"
16129   version_type=darwin
16130   need_lib_prefix=no
16131   need_version=no
16132   # FIXME: Relying on posixy $() will cause problems for
16133   #        cross-compilation, but unfortunately the echo tests do not
16134   #        yet detect zsh echo's removal of \ escapes.
16135   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16136   soname_spec='${libname}${release}${major}$shared_ext'
16137   shlibpath_overrides_runpath=yes
16138   shlibpath_var=DYLD_LIBRARY_PATH
16139   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16140   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16141   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16142   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"`
16143   fi
16144   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16145   ;;
16146
16147 dgux*)
16148   version_type=linux
16149   need_lib_prefix=no
16150   need_version=no
16151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16152   soname_spec='${libname}${release}${shared_ext}$major'
16153   shlibpath_var=LD_LIBRARY_PATH
16154   ;;
16155
16156 freebsd1*)
16157   dynamic_linker=no
16158   ;;
16159
16160 freebsd*)
16161   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16162   version_type=freebsd-$objformat
16163   case $version_type in
16164     freebsd-elf*)
16165       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16166       need_version=no
16167       need_lib_prefix=no
16168       ;;
16169     freebsd-*)
16170       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16171       need_version=yes
16172       ;;
16173   esac
16174   shlibpath_var=LD_LIBRARY_PATH
16175   case $host_os in
16176   freebsd2*)
16177     shlibpath_overrides_runpath=yes
16178     ;;
16179   freebsd3.01* | freebsdelf3.01*)
16180     shlibpath_overrides_runpath=yes
16181     hardcode_into_libs=yes
16182     ;;
16183   *) # from 3.2 on
16184     shlibpath_overrides_runpath=no
16185     hardcode_into_libs=yes
16186     ;;
16187   esac
16188   ;;
16189
16190 gnu*)
16191   version_type=linux
16192   need_lib_prefix=no
16193   need_version=no
16194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16195   soname_spec='${libname}${release}${shared_ext}$major'
16196   shlibpath_var=LD_LIBRARY_PATH
16197   hardcode_into_libs=yes
16198   ;;
16199
16200 hpux9* | hpux10* | hpux11*)
16201   # Give a soname corresponding to the major version so that dld.sl refuses to
16202   # link against other versions.
16203   version_type=sunos
16204   need_lib_prefix=no
16205   need_version=no
16206   case "$host_cpu" in
16207   ia64*)
16208     shrext='.so'
16209     hardcode_into_libs=yes
16210     dynamic_linker="$host_os dld.so"
16211     shlibpath_var=LD_LIBRARY_PATH
16212     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214     soname_spec='${libname}${release}${shared_ext}$major'
16215     if test "X$HPUX_IA64_MODE" = X32; then
16216       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16217     else
16218       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16219     fi
16220     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16221     ;;
16222    hppa*64*)
16223      shrext='.sl'
16224      hardcode_into_libs=yes
16225      dynamic_linker="$host_os dld.sl"
16226      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16227      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16228      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229      soname_spec='${libname}${release}${shared_ext}$major'
16230      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16231      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16232      ;;
16233    *)
16234     shrext='.sl'
16235     dynamic_linker="$host_os dld.sl"
16236     shlibpath_var=SHLIB_PATH
16237     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16238     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239     soname_spec='${libname}${release}${shared_ext}$major'
16240     ;;
16241   esac
16242   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16243   postinstall_cmds='chmod 555 $lib'
16244   ;;
16245
16246 irix5* | irix6* | nonstopux*)
16247   case $host_os in
16248     nonstopux*) version_type=nonstopux ;;
16249     *)
16250         if test "$lt_cv_prog_gnu_ld" = yes; then
16251                 version_type=linux
16252         else
16253                 version_type=irix
16254         fi ;;
16255   esac
16256   need_lib_prefix=no
16257   need_version=no
16258   soname_spec='${libname}${release}${shared_ext}$major'
16259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16260   case $host_os in
16261   irix5* | nonstopux*)
16262     libsuff= shlibsuff=
16263     ;;
16264   *)
16265     case $LD in # libtool.m4 will add one of these switches to LD
16266     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16267       libsuff= shlibsuff= libmagic=32-bit;;
16268     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16269       libsuff=32 shlibsuff=N32 libmagic=N32;;
16270     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16271       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16272     *) libsuff= shlibsuff= libmagic=never-match;;
16273     esac
16274     ;;
16275   esac
16276   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16277   shlibpath_overrides_runpath=no
16278   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16279   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16280   hardcode_into_libs=yes
16281   ;;
16282
16283 # No shared lib support for Linux oldld, aout, or coff.
16284 linux*oldld* | linux*aout* | linux*coff*)
16285   dynamic_linker=no
16286   ;;
16287
16288 # This must be Linux ELF.
16289 linux*)
16290   version_type=linux
16291   need_lib_prefix=no
16292   need_version=no
16293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294   soname_spec='${libname}${release}${shared_ext}$major'
16295   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16296   shlibpath_var=LD_LIBRARY_PATH
16297   shlibpath_overrides_runpath=no
16298   # This implies no fast_install, which is unacceptable.
16299   # Some rework will be needed to allow for fast_install
16300   # before this can be enabled.
16301   hardcode_into_libs=yes
16302
16303   # We used to test for /lib/ld.so.1 and disable shared libraries on
16304   # powerpc, because MkLinux only supported shared libraries with the
16305   # GNU dynamic linker.  Since this was broken with cross compilers,
16306   # most powerpc-linux boxes support dynamic linking these days and
16307   # people can always --disable-shared, the test was removed, and we
16308   # assume the GNU/Linux dynamic linker is in use.
16309   dynamic_linker='GNU/Linux ld.so'
16310   ;;
16311
16312 netbsd*)
16313   version_type=sunos
16314   need_lib_prefix=no
16315   need_version=no
16316   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16318     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16319     dynamic_linker='NetBSD (a.out) ld.so'
16320   else
16321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16322     soname_spec='${libname}${release}${shared_ext}$major'
16323     dynamic_linker='NetBSD ld.elf_so'
16324   fi
16325   shlibpath_var=LD_LIBRARY_PATH
16326   shlibpath_overrides_runpath=yes
16327   hardcode_into_libs=yes
16328   ;;
16329
16330 newsos6)
16331   version_type=linux
16332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333   shlibpath_var=LD_LIBRARY_PATH
16334   shlibpath_overrides_runpath=yes
16335   ;;
16336
16337 nto-qnx)
16338   version_type=linux
16339   need_lib_prefix=no
16340   need_version=no
16341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342   soname_spec='${libname}${release}${shared_ext}$major'
16343   shlibpath_var=LD_LIBRARY_PATH
16344   shlibpath_overrides_runpath=yes
16345   ;;
16346
16347 openbsd*)
16348   version_type=sunos
16349   need_lib_prefix=no
16350   need_version=no
16351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16352   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16353   shlibpath_var=LD_LIBRARY_PATH
16354   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16355     case $host_os in
16356       openbsd2.[89] | openbsd2.[89].*)
16357         shlibpath_overrides_runpath=no
16358         ;;
16359       *)
16360         shlibpath_overrides_runpath=yes
16361         ;;
16362       esac
16363   else
16364     shlibpath_overrides_runpath=yes
16365   fi
16366   ;;
16367
16368 os2*)
16369   libname_spec='$name'
16370   shrext=".dll"
16371   need_lib_prefix=no
16372   library_names_spec='$libname${shared_ext} $libname.a'
16373   dynamic_linker='OS/2 ld.exe'
16374   shlibpath_var=LIBPATH
16375   ;;
16376
16377 osf3* | osf4* | osf5*)
16378   version_type=osf
16379   need_lib_prefix=no
16380   need_version=no
16381   soname_spec='${libname}${release}${shared_ext}$major'
16382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383   shlibpath_var=LD_LIBRARY_PATH
16384   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16385   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16386   ;;
16387
16388 sco3.2v5*)
16389   version_type=osf
16390   soname_spec='${libname}${release}${shared_ext}$major'
16391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392   shlibpath_var=LD_LIBRARY_PATH
16393   ;;
16394
16395 solaris*)
16396   version_type=linux
16397   need_lib_prefix=no
16398   need_version=no
16399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400   soname_spec='${libname}${release}${shared_ext}$major'
16401   shlibpath_var=LD_LIBRARY_PATH
16402   shlibpath_overrides_runpath=yes
16403   hardcode_into_libs=yes
16404   # ldd complains unless libraries are executable
16405   postinstall_cmds='chmod +x $lib'
16406   ;;
16407
16408 sunos4*)
16409   version_type=sunos
16410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16412   shlibpath_var=LD_LIBRARY_PATH
16413   shlibpath_overrides_runpath=yes
16414   if test "$with_gnu_ld" = yes; then
16415     need_lib_prefix=no
16416   fi
16417   need_version=yes
16418   ;;
16419
16420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16421   version_type=linux
16422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423   soname_spec='${libname}${release}${shared_ext}$major'
16424   shlibpath_var=LD_LIBRARY_PATH
16425   case $host_vendor in
16426     sni)
16427       shlibpath_overrides_runpath=no
16428       need_lib_prefix=no
16429       export_dynamic_flag_spec='${wl}-Blargedynsym'
16430       runpath_var=LD_RUN_PATH
16431       ;;
16432     siemens)
16433       need_lib_prefix=no
16434       ;;
16435     motorola)
16436       need_lib_prefix=no
16437       need_version=no
16438       shlibpath_overrides_runpath=no
16439       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16440       ;;
16441   esac
16442   ;;
16443
16444 sysv4*MP*)
16445   if test -d /usr/nec ;then
16446     version_type=linux
16447     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16448     soname_spec='$libname${shared_ext}.$major'
16449     shlibpath_var=LD_LIBRARY_PATH
16450   fi
16451   ;;
16452
16453 uts4*)
16454   version_type=linux
16455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456   soname_spec='${libname}${release}${shared_ext}$major'
16457   shlibpath_var=LD_LIBRARY_PATH
16458   ;;
16459
16460 *)
16461   dynamic_linker=no
16462   ;;
16463 esac
16464 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16465 echo "${ECHO_T}$dynamic_linker" >&6
16466 test "$dynamic_linker" = no && can_build_shared=no
16467
16468 if test "x$enable_dlopen" != xyes; then
16469   enable_dlopen=unknown
16470   enable_dlopen_self=unknown
16471   enable_dlopen_self_static=unknown
16472 else
16473   lt_cv_dlopen=no
16474   lt_cv_dlopen_libs=
16475
16476   case $host_os in
16477   beos*)
16478     lt_cv_dlopen="load_add_on"
16479     lt_cv_dlopen_libs=
16480     lt_cv_dlopen_self=yes
16481     ;;
16482
16483   mingw* | pw32*)
16484     lt_cv_dlopen="LoadLibrary"
16485     lt_cv_dlopen_libs=
16486    ;;
16487
16488   cygwin*)
16489     lt_cv_dlopen="dlopen"
16490     lt_cv_dlopen_libs=
16491    ;;
16492
16493   darwin*)
16494   # if libdl is installed we need to link against it
16495     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16496 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16497 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16498   echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500   ac_check_lib_save_LIBS=$LIBS
16501 LIBS="-ldl  $LIBS"
16502 cat >conftest.$ac_ext <<_ACEOF
16503 #line $LINENO "configure"
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509
16510 /* Override any gcc2 internal prototype to avoid an error.  */
16511 #ifdef __cplusplus
16512 extern "C"
16513 #endif
16514 /* We use char because int might match the return type of a gcc2
16515    builtin and then its argument prototype would still apply.  */
16516 char dlopen ();
16517 int
16518 main ()
16519 {
16520 dlopen ();
16521   ;
16522   return 0;
16523 }
16524 _ACEOF
16525 rm -f conftest.$ac_objext conftest$ac_exeext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16527   (eval $ac_link) 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); } &&
16531          { ac_try='test -s conftest$ac_exeext'
16532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533   (eval $ac_try) 2>&5
16534   ac_status=$?
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); }; }; then
16537   ac_cv_lib_dl_dlopen=yes
16538 else
16539   echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542 ac_cv_lib_dl_dlopen=no
16543 fi
16544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16545 LIBS=$ac_check_lib_save_LIBS
16546 fi
16547 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16548 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16549 if test $ac_cv_lib_dl_dlopen = yes; then
16550   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16551 else
16552
16553     lt_cv_dlopen="dyld"
16554     lt_cv_dlopen_libs=
16555     lt_cv_dlopen_self=yes
16556
16557 fi
16558
16559    ;;
16560
16561   *)
16562     echo "$as_me:$LINENO: checking for shl_load" >&5
16563 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16564 if test "${ac_cv_func_shl_load+set}" = set; then
16565   echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16567   cat >conftest.$ac_ext <<_ACEOF
16568 #line $LINENO "configure"
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 /* System header to define __stub macros and hopefully few prototypes,
16575     which can conflict with char shl_load (); below.
16576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16577     <limits.h> exists even on freestanding compilers.  */
16578 #ifdef __STDC__
16579 # include <limits.h>
16580 #else
16581 # include <assert.h>
16582 #endif
16583 /* Override any gcc2 internal prototype to avoid an error.  */
16584 #ifdef __cplusplus
16585 extern "C"
16586 {
16587 #endif
16588 /* We use char because int might match the return type of a gcc2
16589    builtin and then its argument prototype would still apply.  */
16590 char shl_load ();
16591 /* The GNU C library defines this for functions which it implements
16592     to always fail with ENOSYS.  Some functions are actually named
16593     something starting with __ and the normal name is an alias.  */
16594 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16595 choke me
16596 #else
16597 char (*f) () = shl_load;
16598 #endif
16599 #ifdef __cplusplus
16600 }
16601 #endif
16602
16603 int
16604 main ()
16605 {
16606 return f != shl_load;
16607   ;
16608   return 0;
16609 }
16610 _ACEOF
16611 rm -f conftest.$ac_objext conftest$ac_exeext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613   (eval $ac_link) 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); } &&
16617          { ac_try='test -s conftest$ac_exeext'
16618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619   (eval $ac_try) 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); }; }; then
16623   ac_cv_func_shl_load=yes
16624 else
16625   echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16627
16628 ac_cv_func_shl_load=no
16629 fi
16630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16631 fi
16632 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16633 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16634 if test $ac_cv_func_shl_load = yes; then
16635   lt_cv_dlopen="shl_load"
16636 else
16637   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16638 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16639 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   ac_check_lib_save_LIBS=$LIBS
16643 LIBS="-ldld  $LIBS"
16644 cat >conftest.$ac_ext <<_ACEOF
16645 #line $LINENO "configure"
16646 /* confdefs.h.  */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h.  */
16651
16652 /* Override any gcc2 internal prototype to avoid an error.  */
16653 #ifdef __cplusplus
16654 extern "C"
16655 #endif
16656 /* We use char because int might match the return type of a gcc2
16657    builtin and then its argument prototype would still apply.  */
16658 char shl_load ();
16659 int
16660 main ()
16661 {
16662 shl_load ();
16663   ;
16664   return 0;
16665 }
16666 _ACEOF
16667 rm -f conftest.$ac_objext conftest$ac_exeext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16669   (eval $ac_link) 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); } &&
16673          { ac_try='test -s conftest$ac_exeext'
16674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675   (eval $ac_try) 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; }; then
16679   ac_cv_lib_dld_shl_load=yes
16680 else
16681   echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684 ac_cv_lib_dld_shl_load=no
16685 fi
16686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16687 LIBS=$ac_check_lib_save_LIBS
16688 fi
16689 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16690 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16691 if test $ac_cv_lib_dld_shl_load = yes; then
16692   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16693 else
16694   echo "$as_me:$LINENO: checking for dlopen" >&5
16695 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16696 if test "${ac_cv_func_dlopen+set}" = set; then
16697   echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699   cat >conftest.$ac_ext <<_ACEOF
16700 #line $LINENO "configure"
16701 /* confdefs.h.  */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h.  */
16706 /* System header to define __stub macros and hopefully few prototypes,
16707     which can conflict with char dlopen (); below.
16708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16709     <limits.h> exists even on freestanding compilers.  */
16710 #ifdef __STDC__
16711 # include <limits.h>
16712 #else
16713 # include <assert.h>
16714 #endif
16715 /* Override any gcc2 internal prototype to avoid an error.  */
16716 #ifdef __cplusplus
16717 extern "C"
16718 {
16719 #endif
16720 /* We use char because int might match the return type of a gcc2
16721    builtin and then its argument prototype would still apply.  */
16722 char dlopen ();
16723 /* The GNU C library defines this for functions which it implements
16724     to always fail with ENOSYS.  Some functions are actually named
16725     something starting with __ and the normal name is an alias.  */
16726 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16727 choke me
16728 #else
16729 char (*f) () = dlopen;
16730 #endif
16731 #ifdef __cplusplus
16732 }
16733 #endif
16734
16735 int
16736 main ()
16737 {
16738 return f != dlopen;
16739   ;
16740   return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest.$ac_objext conftest$ac_exeext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16745   (eval $ac_link) 2>&5
16746   ac_status=$?
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); } &&
16749          { ac_try='test -s conftest$ac_exeext'
16750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751   (eval $ac_try) 2>&5
16752   ac_status=$?
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); }; }; then
16755   ac_cv_func_dlopen=yes
16756 else
16757   echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 ac_cv_func_dlopen=no
16761 fi
16762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16763 fi
16764 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16765 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16766 if test $ac_cv_func_dlopen = yes; then
16767   lt_cv_dlopen="dlopen"
16768 else
16769   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16772   echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774   ac_check_lib_save_LIBS=$LIBS
16775 LIBS="-ldl  $LIBS"
16776 cat >conftest.$ac_ext <<_ACEOF
16777 #line $LINENO "configure"
16778 /* confdefs.h.  */
16779 _ACEOF
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h.  */
16783
16784 /* Override any gcc2 internal prototype to avoid an error.  */
16785 #ifdef __cplusplus
16786 extern "C"
16787 #endif
16788 /* We use char because int might match the return type of a gcc2
16789    builtin and then its argument prototype would still apply.  */
16790 char dlopen ();
16791 int
16792 main ()
16793 {
16794 dlopen ();
16795   ;
16796   return 0;
16797 }
16798 _ACEOF
16799 rm -f conftest.$ac_objext conftest$ac_exeext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801   (eval $ac_link) 2>&5
16802   ac_status=$?
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } &&
16805          { ac_try='test -s conftest$ac_exeext'
16806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807   (eval $ac_try) 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); }; }; then
16811   ac_cv_lib_dl_dlopen=yes
16812 else
16813   echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16815
16816 ac_cv_lib_dl_dlopen=no
16817 fi
16818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16819 LIBS=$ac_check_lib_save_LIBS
16820 fi
16821 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16822 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16823 if test $ac_cv_lib_dl_dlopen = yes; then
16824   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16825 else
16826   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16827 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16828 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16829   echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831   ac_check_lib_save_LIBS=$LIBS
16832 LIBS="-lsvld  $LIBS"
16833 cat >conftest.$ac_ext <<_ACEOF
16834 #line $LINENO "configure"
16835 /* confdefs.h.  */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h.  */
16840
16841 /* Override any gcc2 internal prototype to avoid an error.  */
16842 #ifdef __cplusplus
16843 extern "C"
16844 #endif
16845 /* We use char because int might match the return type of a gcc2
16846    builtin and then its argument prototype would still apply.  */
16847 char dlopen ();
16848 int
16849 main ()
16850 {
16851 dlopen ();
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 rm -f conftest.$ac_objext conftest$ac_exeext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16858   (eval $ac_link) 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); } &&
16862          { ac_try='test -s conftest$ac_exeext'
16863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864   (eval $ac_try) 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); }; }; then
16868   ac_cv_lib_svld_dlopen=yes
16869 else
16870   echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873 ac_cv_lib_svld_dlopen=no
16874 fi
16875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16876 LIBS=$ac_check_lib_save_LIBS
16877 fi
16878 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16879 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16880 if test $ac_cv_lib_svld_dlopen = yes; then
16881   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16882 else
16883   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16884 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16885 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16886   echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888   ac_check_lib_save_LIBS=$LIBS
16889 LIBS="-ldld  $LIBS"
16890 cat >conftest.$ac_ext <<_ACEOF
16891 #line $LINENO "configure"
16892 /* confdefs.h.  */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h.  */
16897
16898 /* Override any gcc2 internal prototype to avoid an error.  */
16899 #ifdef __cplusplus
16900 extern "C"
16901 #endif
16902 /* We use char because int might match the return type of a gcc2
16903    builtin and then its argument prototype would still apply.  */
16904 char dld_link ();
16905 int
16906 main ()
16907 {
16908 dld_link ();
16909   ;
16910   return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915   (eval $ac_link) 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); } &&
16919          { ac_try='test -s conftest$ac_exeext'
16920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921   (eval $ac_try) 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); }; }; then
16925   ac_cv_lib_dld_dld_link=yes
16926 else
16927   echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16929
16930 ac_cv_lib_dld_dld_link=no
16931 fi
16932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16933 LIBS=$ac_check_lib_save_LIBS
16934 fi
16935 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16936 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16937 if test $ac_cv_lib_dld_dld_link = yes; then
16938   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16939 fi
16940
16941
16942 fi
16943
16944
16945 fi
16946
16947
16948 fi
16949
16950
16951 fi
16952
16953
16954 fi
16955
16956     ;;
16957   esac
16958
16959   if test "x$lt_cv_dlopen" != xno; then
16960     enable_dlopen=yes
16961   else
16962     enable_dlopen=no
16963   fi
16964
16965   case $lt_cv_dlopen in
16966   dlopen)
16967     save_CPPFLAGS="$CPPFLAGS"
16968     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16969
16970     save_LDFLAGS="$LDFLAGS"
16971     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16972
16973     save_LIBS="$LIBS"
16974     LIBS="$lt_cv_dlopen_libs $LIBS"
16975
16976     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16977 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16978 if test "${lt_cv_dlopen_self+set}" = set; then
16979   echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981           if test "$cross_compiling" = yes; then :
16982   lt_cv_dlopen_self=cross
16983 else
16984   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16985   lt_status=$lt_dlunknown
16986   cat > conftest.$ac_ext <<EOF
16987 #line 16987 "configure"
16988 #include "confdefs.h"
16989
16990 #if HAVE_DLFCN_H
16991 #include <dlfcn.h>
16992 #endif
16993
16994 #include <stdio.h>
16995
16996 #ifdef RTLD_GLOBAL
16997 #  define LT_DLGLOBAL           RTLD_GLOBAL
16998 #else
16999 #  ifdef DL_GLOBAL
17000 #    define LT_DLGLOBAL         DL_GLOBAL
17001 #  else
17002 #    define LT_DLGLOBAL         0
17003 #  endif
17004 #endif
17005
17006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17007    find out it does not work in some platform. */
17008 #ifndef LT_DLLAZY_OR_NOW
17009 #  ifdef RTLD_LAZY
17010 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17011 #  else
17012 #    ifdef DL_LAZY
17013 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17014 #    else
17015 #      ifdef RTLD_NOW
17016 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17017 #      else
17018 #        ifdef DL_NOW
17019 #          define LT_DLLAZY_OR_NOW      DL_NOW
17020 #        else
17021 #          define LT_DLLAZY_OR_NOW      0
17022 #        endif
17023 #      endif
17024 #    endif
17025 #  endif
17026 #endif
17027
17028 #ifdef __cplusplus
17029 extern "C" void exit (int);
17030 #endif
17031
17032 void fnord() { int i=42;}
17033 int main ()
17034 {
17035   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17036   int status = $lt_dlunknown;
17037
17038   if (self)
17039     {
17040       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17041       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17042       /* dlclose (self); */
17043     }
17044
17045     exit (status);
17046 }
17047 EOF
17048   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17049   (eval $ac_link) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17053     (./conftest; exit; ) 2>/dev/null
17054     lt_status=$?
17055     case x$lt_status in
17056       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17057       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17058       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17059     esac
17060   else :
17061     # compilation failed
17062     lt_cv_dlopen_self=no
17063   fi
17064 fi
17065 rm -fr conftest*
17066
17067
17068 fi
17069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17070 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17071
17072     if test "x$lt_cv_dlopen_self" = xyes; then
17073       LDFLAGS="$LDFLAGS $link_static_flag"
17074       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17075 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17076 if test "${lt_cv_dlopen_self_static+set}" = set; then
17077   echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079           if test "$cross_compiling" = yes; then :
17080   lt_cv_dlopen_self_static=cross
17081 else
17082   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17083   lt_status=$lt_dlunknown
17084   cat > conftest.$ac_ext <<EOF
17085 #line 17085 "configure"
17086 #include "confdefs.h"
17087
17088 #if HAVE_DLFCN_H
17089 #include <dlfcn.h>
17090 #endif
17091
17092 #include <stdio.h>
17093
17094 #ifdef RTLD_GLOBAL
17095 #  define LT_DLGLOBAL           RTLD_GLOBAL
17096 #else
17097 #  ifdef DL_GLOBAL
17098 #    define LT_DLGLOBAL         DL_GLOBAL
17099 #  else
17100 #    define LT_DLGLOBAL         0
17101 #  endif
17102 #endif
17103
17104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17105    find out it does not work in some platform. */
17106 #ifndef LT_DLLAZY_OR_NOW
17107 #  ifdef RTLD_LAZY
17108 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17109 #  else
17110 #    ifdef DL_LAZY
17111 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17112 #    else
17113 #      ifdef RTLD_NOW
17114 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17115 #      else
17116 #        ifdef DL_NOW
17117 #          define LT_DLLAZY_OR_NOW      DL_NOW
17118 #        else
17119 #          define LT_DLLAZY_OR_NOW      0
17120 #        endif
17121 #      endif
17122 #    endif
17123 #  endif
17124 #endif
17125
17126 #ifdef __cplusplus
17127 extern "C" void exit (int);
17128 #endif
17129
17130 void fnord() { int i=42;}
17131 int main ()
17132 {
17133   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17134   int status = $lt_dlunknown;
17135
17136   if (self)
17137     {
17138       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17139       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17140       /* dlclose (self); */
17141     }
17142
17143     exit (status);
17144 }
17145 EOF
17146   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17147   (eval $ac_link) 2>&5
17148   ac_status=$?
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17151     (./conftest; exit; ) 2>/dev/null
17152     lt_status=$?
17153     case x$lt_status in
17154       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17155       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17156       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17157     esac
17158   else :
17159     # compilation failed
17160     lt_cv_dlopen_self_static=no
17161   fi
17162 fi
17163 rm -fr conftest*
17164
17165
17166 fi
17167 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17168 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17169     fi
17170
17171     CPPFLAGS="$save_CPPFLAGS"
17172     LDFLAGS="$save_LDFLAGS"
17173     LIBS="$save_LIBS"
17174     ;;
17175   esac
17176
17177   case $lt_cv_dlopen_self in
17178   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17179   *) enable_dlopen_self=unknown ;;
17180   esac
17181
17182   case $lt_cv_dlopen_self_static in
17183   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17184   *) enable_dlopen_self_static=unknown ;;
17185   esac
17186 fi
17187
17188
17189 # The else clause should only fire when bootstrapping the
17190 # libtool distribution, otherwise you forgot to ship ltmain.sh
17191 # with your package, and you will get complaints that there are
17192 # no rules to generate ltmain.sh.
17193 if test -f "$ltmain"; then
17194   # See if we are running on zsh, and set the options which allow our commands through
17195   # without removal of \ escapes.
17196   if test -n "${ZSH_VERSION+set}" ; then
17197     setopt NO_GLOB_SUBST
17198   fi
17199   # Now quote all the things that may contain metacharacters while being
17200   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17201   # variables and quote the copies for generation of the libtool script.
17202   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17203     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17204     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17205     deplibs_check_method reload_flag reload_cmds need_locks \
17206     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17207     lt_cv_sys_global_symbol_to_c_name_address \
17208     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17209     old_postinstall_cmds old_postuninstall_cmds \
17210     compiler_GCJ \
17211     CC_GCJ \
17212     LD_GCJ \
17213     lt_prog_compiler_wl_GCJ \
17214     lt_prog_compiler_pic_GCJ \
17215     lt_prog_compiler_static_GCJ \
17216     lt_prog_compiler_no_builtin_flag_GCJ \
17217     export_dynamic_flag_spec_GCJ \
17218     thread_safe_flag_spec_GCJ \
17219     whole_archive_flag_spec_GCJ \
17220     enable_shared_with_static_runtimes_GCJ \
17221     old_archive_cmds_GCJ \
17222     old_archive_from_new_cmds_GCJ \
17223     predep_objects_GCJ \
17224     postdep_objects_GCJ \
17225     predeps_GCJ \
17226     postdeps_GCJ \
17227     compiler_lib_search_path_GCJ \
17228     archive_cmds_GCJ \
17229     archive_expsym_cmds_GCJ \
17230     postinstall_cmds_GCJ \
17231     postuninstall_cmds_GCJ \
17232     old_archive_from_expsyms_cmds_GCJ \
17233     allow_undefined_flag_GCJ \
17234     no_undefined_flag_GCJ \
17235     export_symbols_cmds_GCJ \
17236     hardcode_libdir_flag_spec_GCJ \
17237     hardcode_libdir_flag_spec_ld_GCJ \
17238     hardcode_libdir_separator_GCJ \
17239     hardcode_automatic_GCJ \
17240     module_cmds_GCJ \
17241     module_expsym_cmds_GCJ \
17242     lt_cv_prog_compiler_c_o_GCJ \
17243     exclude_expsyms_GCJ \
17244     include_expsyms_GCJ; do
17245
17246     case $var in
17247     old_archive_cmds_GCJ | \
17248     old_archive_from_new_cmds_GCJ | \
17249     archive_cmds_GCJ | \
17250     archive_expsym_cmds_GCJ | \
17251     module_cmds_GCJ | \
17252     module_expsym_cmds_GCJ | \
17253     old_archive_from_expsyms_cmds_GCJ | \
17254     export_symbols_cmds_GCJ | \
17255     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17256     postinstall_cmds | postuninstall_cmds | \
17257     old_postinstall_cmds | old_postuninstall_cmds | \
17258     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17259       # Double-quote double-evaled strings.
17260       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17261       ;;
17262     *)
17263       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17264       ;;
17265     esac
17266   done
17267
17268   case $lt_echo in
17269   *'\$0 --fallback-echo"')
17270     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17271     ;;
17272   esac
17273
17274 cfgfile="$ofile"
17275
17276   cat <<__EOF__ >> "$cfgfile"
17277 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17278
17279 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17280
17281 # Shell to use when invoking shell scripts.
17282 SHELL=$lt_SHELL
17283
17284 # Whether or not to build shared libraries.
17285 build_libtool_libs=$enable_shared
17286
17287 # Whether or not to build static libraries.
17288 build_old_libs=$enable_static
17289
17290 # Whether or not to add -lc for building shared libraries.
17291 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17292
17293 # Whether or not to disallow shared libs when runtime libs are static
17294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17295
17296 # Whether or not to optimize for fast installation.
17297 fast_install=$enable_fast_install
17298
17299 # The host system.
17300 host_alias=$host_alias
17301 host=$host
17302
17303 # An echo program that does not interpret backslashes.
17304 echo=$lt_echo
17305
17306 # The archiver.
17307 AR=$lt_AR
17308 AR_FLAGS=$lt_AR_FLAGS
17309
17310 # A C compiler.
17311 LTCC=$lt_LTCC
17312
17313 # A language-specific compiler.
17314 CC=$lt_compiler_GCJ
17315
17316 # Is the compiler the GNU C compiler?
17317 with_gcc=$GCC_GCJ
17318
17319 # An ERE matcher.
17320 EGREP=$lt_EGREP
17321
17322 # The linker used to build libraries.
17323 LD=$lt_LD_GCJ
17324
17325 # Whether we need hard or soft links.
17326 LN_S=$lt_LN_S
17327
17328 # A BSD-compatible nm program.
17329 NM=$lt_NM
17330
17331 # A symbol stripping program
17332 STRIP=$STRIP
17333
17334 # Used to examine libraries when file_magic_cmd begins "file"
17335 MAGIC_CMD=$MAGIC_CMD
17336
17337 # Used on cygwin: DLL creation program.
17338 DLLTOOL="$DLLTOOL"
17339
17340 # Used on cygwin: object dumper.
17341 OBJDUMP="$OBJDUMP"
17342
17343 # Used on cygwin: assembler.
17344 AS="$AS"
17345
17346 # The name of the directory that contains temporary libtool files.
17347 objdir=$objdir
17348
17349 # How to create reloadable object files.
17350 reload_flag=$lt_reload_flag
17351 reload_cmds=$lt_reload_cmds
17352
17353 # How to pass a linker flag through the compiler.
17354 wl=$lt_lt_prog_compiler_wl_GCJ
17355
17356 # Object file suffix (normally "o").
17357 objext="$ac_objext"
17358
17359 # Old archive suffix (normally "a").
17360 libext="$libext"
17361
17362 # Shared library suffix (normally ".so").
17363 shrext='$shrext'
17364
17365 # Executable file suffix (normally "").
17366 exeext="$exeext"
17367
17368 # Additional compiler flags for building library objects.
17369 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17370 pic_mode=$pic_mode
17371
17372 # What is the maximum length of a command?
17373 max_cmd_len=$lt_cv_sys_max_cmd_len
17374
17375 # Does compiler simultaneously support -c and -o options?
17376 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17377
17378 # Must we lock files when doing compilation ?
17379 need_locks=$lt_need_locks
17380
17381 # Do we need the lib prefix for modules?
17382 need_lib_prefix=$need_lib_prefix
17383
17384 # Do we need a version for libraries?
17385 need_version=$need_version
17386
17387 # Whether dlopen is supported.
17388 dlopen_support=$enable_dlopen
17389
17390 # Whether dlopen of programs is supported.
17391 dlopen_self=$enable_dlopen_self
17392
17393 # Whether dlopen of statically linked programs is supported.
17394 dlopen_self_static=$enable_dlopen_self_static
17395
17396 # Compiler flag to prevent dynamic linking.
17397 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17398
17399 # Compiler flag to turn off builtin functions.
17400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17401
17402 # Compiler flag to allow reflexive dlopens.
17403 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17404
17405 # Compiler flag to generate shared objects directly from archives.
17406 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17407
17408 # Compiler flag to generate thread-safe objects.
17409 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17410
17411 # Library versioning type.
17412 version_type=$version_type
17413
17414 # Format of library name prefix.
17415 libname_spec=$lt_libname_spec
17416
17417 # List of archive names.  First name is the real one, the rest are links.
17418 # The last name is the one that the linker finds with -lNAME.
17419 library_names_spec=$lt_library_names_spec
17420
17421 # The coded name of the library, if different from the real name.
17422 soname_spec=$lt_soname_spec
17423
17424 # Commands used to build and install an old-style archive.
17425 RANLIB=$lt_RANLIB
17426 old_archive_cmds=$lt_old_archive_cmds_GCJ
17427 old_postinstall_cmds=$lt_old_postinstall_cmds
17428 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17429
17430 # Create an old-style archive from a shared archive.
17431 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17432
17433 # Create a temporary old-style archive to link instead of a shared archive.
17434 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17435
17436 # Commands used to build and install a shared archive.
17437 archive_cmds=$lt_archive_cmds_GCJ
17438 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17439 postinstall_cmds=$lt_postinstall_cmds
17440 postuninstall_cmds=$lt_postuninstall_cmds
17441
17442 # Commands used to build a loadable module (assumed same as above if empty)
17443 module_cmds=$lt_module_cmds_GCJ
17444 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17445
17446 # Commands to strip libraries.
17447 old_striplib=$lt_old_striplib
17448 striplib=$lt_striplib
17449
17450 # Dependencies to place before the objects being linked to create a
17451 # shared library.
17452 predep_objects=$lt_predep_objects_GCJ
17453
17454 # Dependencies to place after the objects being linked to create a
17455 # shared library.
17456 postdep_objects=$lt_postdep_objects_GCJ
17457
17458 # Dependencies to place before the objects being linked to create a
17459 # shared library.
17460 predeps=$lt_predeps_GCJ
17461
17462 # Dependencies to place after the objects being linked to create a
17463 # shared library.
17464 postdeps=$lt_postdeps_GCJ
17465
17466 # The library search path used internally by the compiler when linking
17467 # a shared library.
17468 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17469
17470 # Method to check whether dependent libraries are shared objects.
17471 deplibs_check_method=$lt_deplibs_check_method
17472
17473 # Command to use when deplibs_check_method == file_magic.
17474 file_magic_cmd=$lt_file_magic_cmd
17475
17476 # Flag that allows shared libraries with undefined symbols to be built.
17477 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17478
17479 # Flag that forces no undefined symbols.
17480 no_undefined_flag=$lt_no_undefined_flag_GCJ
17481
17482 # Commands used to finish a libtool library installation in a directory.
17483 finish_cmds=$lt_finish_cmds
17484
17485 # Same as above, but a single script fragment to be evaled but not shown.
17486 finish_eval=$lt_finish_eval
17487
17488 # Take the output of nm and produce a listing of raw symbols and C names.
17489 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17490
17491 # Transform the output of nm in a proper C declaration
17492 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17493
17494 # Transform the output of nm in a C name address pair
17495 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17496
17497 # This is the shared library runtime path variable.
17498 runpath_var=$runpath_var
17499
17500 # This is the shared library path variable.
17501 shlibpath_var=$shlibpath_var
17502
17503 # Is shlibpath searched before the hard-coded library search path?
17504 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17505
17506 # How to hardcode a shared library path into an executable.
17507 hardcode_action=$hardcode_action_GCJ
17508
17509 # Whether we should hardcode library paths into libraries.
17510 hardcode_into_libs=$hardcode_into_libs
17511
17512 # Flag to hardcode \$libdir into a binary during linking.
17513 # This must work even if \$libdir does not exist.
17514 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17515
17516 # If ld is used when linking, flag to hardcode \$libdir into
17517 # a binary during linking. This must work even if \$libdir does
17518 # not exist.
17519 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17520
17521 # Whether we need a single -rpath flag with a separated argument.
17522 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17523
17524 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17525 # resulting binary.
17526 hardcode_direct=$hardcode_direct_GCJ
17527
17528 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17529 # resulting binary.
17530 hardcode_minus_L=$hardcode_minus_L_GCJ
17531
17532 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17533 # the resulting binary.
17534 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17535
17536 # Set to yes if building a shared library automatically hardcodes DIR into the library
17537 # and all subsequent libraries and executables linked against it.
17538 hardcode_automatic=$hardcode_automatic_GCJ
17539
17540 # Variables whose values should be saved in libtool wrapper scripts and
17541 # restored at relink time.
17542 variables_saved_for_relink="$variables_saved_for_relink"
17543
17544 # Whether libtool must link a program against all its dependency libraries.
17545 link_all_deplibs=$link_all_deplibs_GCJ
17546
17547 # Compile-time system search path for libraries
17548 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17549
17550 # Run-time system search path for libraries
17551 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17552
17553 # Fix the shell variable \$srcfile for the compiler.
17554 fix_srcfile_path="$fix_srcfile_path_GCJ"
17555
17556 # Set to yes if exported symbols are required.
17557 always_export_symbols=$always_export_symbols_GCJ
17558
17559 # The commands to list exported symbols.
17560 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17561
17562 # The commands to extract the exported symbol list from a shared archive.
17563 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17564
17565 # Symbols that should not be listed in the preloaded symbols.
17566 exclude_expsyms=$lt_exclude_expsyms_GCJ
17567
17568 # Symbols that must always be exported.
17569 include_expsyms=$lt_include_expsyms_GCJ
17570
17571 # ### END LIBTOOL TAG CONFIG: $tagname
17572
17573 __EOF__
17574
17575
17576 else
17577   # If there is no Makefile yet, we rely on a make rule to execute
17578   # `config.status --recheck' to rerun these tests and create the
17579   # libtool script then.
17580   test -f Makefile && make "$ltmain"
17581 fi
17582
17583
17584 ac_ext=c
17585 ac_cpp='$CPP $CPPFLAGS'
17586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17589
17590 CC="$lt_save_CC"
17591
17592         else
17593           tagname=""
17594         fi
17595         ;;
17596
17597       RC)
17598
17599
17600
17601 # Source file extension for RC test sources.
17602 ac_ext=rc
17603
17604 # Object file extension for compiled RC test sources.
17605 objext=o
17606 objext_RC=$objext
17607
17608 # Code to be used in simple compile tests
17609 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17610
17611 # Code to be used in simple link tests
17612 lt_simple_link_test_code="$lt_simple_compile_test_code"
17613
17614 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17615
17616 # If no C compiler was specified, use CC.
17617 LTCC=${LTCC-"$CC"}
17618
17619 # Allow CC to be a program name with arguments.
17620 compiler=$CC
17621
17622
17623 # Allow CC to be a program name with arguments.
17624 lt_save_CC="$CC"
17625 CC=${RC-"windres"}
17626 compiler=$CC
17627 compiler_RC=$CC
17628 lt_cv_prog_compiler_c_o_RC=yes
17629
17630 # The else clause should only fire when bootstrapping the
17631 # libtool distribution, otherwise you forgot to ship ltmain.sh
17632 # with your package, and you will get complaints that there are
17633 # no rules to generate ltmain.sh.
17634 if test -f "$ltmain"; then
17635   # See if we are running on zsh, and set the options which allow our commands through
17636   # without removal of \ escapes.
17637   if test -n "${ZSH_VERSION+set}" ; then
17638     setopt NO_GLOB_SUBST
17639   fi
17640   # Now quote all the things that may contain metacharacters while being
17641   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17642   # variables and quote the copies for generation of the libtool script.
17643   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17644     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17645     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17646     deplibs_check_method reload_flag reload_cmds need_locks \
17647     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17648     lt_cv_sys_global_symbol_to_c_name_address \
17649     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17650     old_postinstall_cmds old_postuninstall_cmds \
17651     compiler_RC \
17652     CC_RC \
17653     LD_RC \
17654     lt_prog_compiler_wl_RC \
17655     lt_prog_compiler_pic_RC \
17656     lt_prog_compiler_static_RC \
17657     lt_prog_compiler_no_builtin_flag_RC \
17658     export_dynamic_flag_spec_RC \
17659     thread_safe_flag_spec_RC \
17660     whole_archive_flag_spec_RC \
17661     enable_shared_with_static_runtimes_RC \
17662     old_archive_cmds_RC \
17663     old_archive_from_new_cmds_RC \
17664     predep_objects_RC \
17665     postdep_objects_RC \
17666     predeps_RC \
17667     postdeps_RC \
17668     compiler_lib_search_path_RC \
17669     archive_cmds_RC \
17670     archive_expsym_cmds_RC \
17671     postinstall_cmds_RC \
17672     postuninstall_cmds_RC \
17673     old_archive_from_expsyms_cmds_RC \
17674     allow_undefined_flag_RC \
17675     no_undefined_flag_RC \
17676     export_symbols_cmds_RC \
17677     hardcode_libdir_flag_spec_RC \
17678     hardcode_libdir_flag_spec_ld_RC \
17679     hardcode_libdir_separator_RC \
17680     hardcode_automatic_RC \
17681     module_cmds_RC \
17682     module_expsym_cmds_RC \
17683     lt_cv_prog_compiler_c_o_RC \
17684     exclude_expsyms_RC \
17685     include_expsyms_RC; do
17686
17687     case $var in
17688     old_archive_cmds_RC | \
17689     old_archive_from_new_cmds_RC | \
17690     archive_cmds_RC | \
17691     archive_expsym_cmds_RC | \
17692     module_cmds_RC | \
17693     module_expsym_cmds_RC | \
17694     old_archive_from_expsyms_cmds_RC | \
17695     export_symbols_cmds_RC | \
17696     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17697     postinstall_cmds | postuninstall_cmds | \
17698     old_postinstall_cmds | old_postuninstall_cmds | \
17699     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17700       # Double-quote double-evaled strings.
17701       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17702       ;;
17703     *)
17704       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17705       ;;
17706     esac
17707   done
17708
17709   case $lt_echo in
17710   *'\$0 --fallback-echo"')
17711     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17712     ;;
17713   esac
17714
17715 cfgfile="$ofile"
17716
17717   cat <<__EOF__ >> "$cfgfile"
17718 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17719
17720 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17721
17722 # Shell to use when invoking shell scripts.
17723 SHELL=$lt_SHELL
17724
17725 # Whether or not to build shared libraries.
17726 build_libtool_libs=$enable_shared
17727
17728 # Whether or not to build static libraries.
17729 build_old_libs=$enable_static
17730
17731 # Whether or not to add -lc for building shared libraries.
17732 build_libtool_need_lc=$archive_cmds_need_lc_RC
17733
17734 # Whether or not to disallow shared libs when runtime libs are static
17735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17736
17737 # Whether or not to optimize for fast installation.
17738 fast_install=$enable_fast_install
17739
17740 # The host system.
17741 host_alias=$host_alias
17742 host=$host
17743
17744 # An echo program that does not interpret backslashes.
17745 echo=$lt_echo
17746
17747 # The archiver.
17748 AR=$lt_AR
17749 AR_FLAGS=$lt_AR_FLAGS
17750
17751 # A C compiler.
17752 LTCC=$lt_LTCC
17753
17754 # A language-specific compiler.
17755 CC=$lt_compiler_RC
17756
17757 # Is the compiler the GNU C compiler?
17758 with_gcc=$GCC_RC
17759
17760 # An ERE matcher.
17761 EGREP=$lt_EGREP
17762
17763 # The linker used to build libraries.
17764 LD=$lt_LD_RC
17765
17766 # Whether we need hard or soft links.
17767 LN_S=$lt_LN_S
17768
17769 # A BSD-compatible nm program.
17770 NM=$lt_NM
17771
17772 # A symbol stripping program
17773 STRIP=$STRIP
17774
17775 # Used to examine libraries when file_magic_cmd begins "file"
17776 MAGIC_CMD=$MAGIC_CMD
17777
17778 # Used on cygwin: DLL creation program.
17779 DLLTOOL="$DLLTOOL"
17780
17781 # Used on cygwin: object dumper.
17782 OBJDUMP="$OBJDUMP"
17783
17784 # Used on cygwin: assembler.
17785 AS="$AS"
17786
17787 # The name of the directory that contains temporary libtool files.
17788 objdir=$objdir
17789
17790 # How to create reloadable object files.
17791 reload_flag=$lt_reload_flag
17792 reload_cmds=$lt_reload_cmds
17793
17794 # How to pass a linker flag through the compiler.
17795 wl=$lt_lt_prog_compiler_wl_RC
17796
17797 # Object file suffix (normally "o").
17798 objext="$ac_objext"
17799
17800 # Old archive suffix (normally "a").
17801 libext="$libext"
17802
17803 # Shared library suffix (normally ".so").
17804 shrext='$shrext'
17805
17806 # Executable file suffix (normally "").
17807 exeext="$exeext"
17808
17809 # Additional compiler flags for building library objects.
17810 pic_flag=$lt_lt_prog_compiler_pic_RC
17811 pic_mode=$pic_mode
17812
17813 # What is the maximum length of a command?
17814 max_cmd_len=$lt_cv_sys_max_cmd_len
17815
17816 # Does compiler simultaneously support -c and -o options?
17817 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17818
17819 # Must we lock files when doing compilation ?
17820 need_locks=$lt_need_locks
17821
17822 # Do we need the lib prefix for modules?
17823 need_lib_prefix=$need_lib_prefix
17824
17825 # Do we need a version for libraries?
17826 need_version=$need_version
17827
17828 # Whether dlopen is supported.
17829 dlopen_support=$enable_dlopen
17830
17831 # Whether dlopen of programs is supported.
17832 dlopen_self=$enable_dlopen_self
17833
17834 # Whether dlopen of statically linked programs is supported.
17835 dlopen_self_static=$enable_dlopen_self_static
17836
17837 # Compiler flag to prevent dynamic linking.
17838 link_static_flag=$lt_lt_prog_compiler_static_RC
17839
17840 # Compiler flag to turn off builtin functions.
17841 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17842
17843 # Compiler flag to allow reflexive dlopens.
17844 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17845
17846 # Compiler flag to generate shared objects directly from archives.
17847 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17848
17849 # Compiler flag to generate thread-safe objects.
17850 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17851
17852 # Library versioning type.
17853 version_type=$version_type
17854
17855 # Format of library name prefix.
17856 libname_spec=$lt_libname_spec
17857
17858 # List of archive names.  First name is the real one, the rest are links.
17859 # The last name is the one that the linker finds with -lNAME.
17860 library_names_spec=$lt_library_names_spec
17861
17862 # The coded name of the library, if different from the real name.
17863 soname_spec=$lt_soname_spec
17864
17865 # Commands used to build and install an old-style archive.
17866 RANLIB=$lt_RANLIB
17867 old_archive_cmds=$lt_old_archive_cmds_RC
17868 old_postinstall_cmds=$lt_old_postinstall_cmds
17869 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17870
17871 # Create an old-style archive from a shared archive.
17872 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17873
17874 # Create a temporary old-style archive to link instead of a shared archive.
17875 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17876
17877 # Commands used to build and install a shared archive.
17878 archive_cmds=$lt_archive_cmds_RC
17879 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17880 postinstall_cmds=$lt_postinstall_cmds
17881 postuninstall_cmds=$lt_postuninstall_cmds
17882
17883 # Commands used to build a loadable module (assumed same as above if empty)
17884 module_cmds=$lt_module_cmds_RC
17885 module_expsym_cmds=$lt_module_expsym_cmds_RC
17886
17887 # Commands to strip libraries.
17888 old_striplib=$lt_old_striplib
17889 striplib=$lt_striplib
17890
17891 # Dependencies to place before the objects being linked to create a
17892 # shared library.
17893 predep_objects=$lt_predep_objects_RC
17894
17895 # Dependencies to place after the objects being linked to create a
17896 # shared library.
17897 postdep_objects=$lt_postdep_objects_RC
17898
17899 # Dependencies to place before the objects being linked to create a
17900 # shared library.
17901 predeps=$lt_predeps_RC
17902
17903 # Dependencies to place after the objects being linked to create a
17904 # shared library.
17905 postdeps=$lt_postdeps_RC
17906
17907 # The library search path used internally by the compiler when linking
17908 # a shared library.
17909 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17910
17911 # Method to check whether dependent libraries are shared objects.
17912 deplibs_check_method=$lt_deplibs_check_method
17913
17914 # Command to use when deplibs_check_method == file_magic.
17915 file_magic_cmd=$lt_file_magic_cmd
17916
17917 # Flag that allows shared libraries with undefined symbols to be built.
17918 allow_undefined_flag=$lt_allow_undefined_flag_RC
17919
17920 # Flag that forces no undefined symbols.
17921 no_undefined_flag=$lt_no_undefined_flag_RC
17922
17923 # Commands used to finish a libtool library installation in a directory.
17924 finish_cmds=$lt_finish_cmds
17925
17926 # Same as above, but a single script fragment to be evaled but not shown.
17927 finish_eval=$lt_finish_eval
17928
17929 # Take the output of nm and produce a listing of raw symbols and C names.
17930 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17931
17932 # Transform the output of nm in a proper C declaration
17933 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17934
17935 # Transform the output of nm in a C name address pair
17936 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17937
17938 # This is the shared library runtime path variable.
17939 runpath_var=$runpath_var
17940
17941 # This is the shared library path variable.
17942 shlibpath_var=$shlibpath_var
17943
17944 # Is shlibpath searched before the hard-coded library search path?
17945 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17946
17947 # How to hardcode a shared library path into an executable.
17948 hardcode_action=$hardcode_action_RC
17949
17950 # Whether we should hardcode library paths into libraries.
17951 hardcode_into_libs=$hardcode_into_libs
17952
17953 # Flag to hardcode \$libdir into a binary during linking.
17954 # This must work even if \$libdir does not exist.
17955 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17956
17957 # If ld is used when linking, flag to hardcode \$libdir into
17958 # a binary during linking. This must work even if \$libdir does
17959 # not exist.
17960 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17961
17962 # Whether we need a single -rpath flag with a separated argument.
17963 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17964
17965 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17966 # resulting binary.
17967 hardcode_direct=$hardcode_direct_RC
17968
17969 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17970 # resulting binary.
17971 hardcode_minus_L=$hardcode_minus_L_RC
17972
17973 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17974 # the resulting binary.
17975 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17976
17977 # Set to yes if building a shared library automatically hardcodes DIR into the library
17978 # and all subsequent libraries and executables linked against it.
17979 hardcode_automatic=$hardcode_automatic_RC
17980
17981 # Variables whose values should be saved in libtool wrapper scripts and
17982 # restored at relink time.
17983 variables_saved_for_relink="$variables_saved_for_relink"
17984
17985 # Whether libtool must link a program against all its dependency libraries.
17986 link_all_deplibs=$link_all_deplibs_RC
17987
17988 # Compile-time system search path for libraries
17989 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17990
17991 # Run-time system search path for libraries
17992 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17993
17994 # Fix the shell variable \$srcfile for the compiler.
17995 fix_srcfile_path="$fix_srcfile_path_RC"
17996
17997 # Set to yes if exported symbols are required.
17998 always_export_symbols=$always_export_symbols_RC
17999
18000 # The commands to list exported symbols.
18001 export_symbols_cmds=$lt_export_symbols_cmds_RC
18002
18003 # The commands to extract the exported symbol list from a shared archive.
18004 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18005
18006 # Symbols that should not be listed in the preloaded symbols.
18007 exclude_expsyms=$lt_exclude_expsyms_RC
18008
18009 # Symbols that must always be exported.
18010 include_expsyms=$lt_include_expsyms_RC
18011
18012 # ### END LIBTOOL TAG CONFIG: $tagname
18013
18014 __EOF__
18015
18016
18017 else
18018   # If there is no Makefile yet, we rely on a make rule to execute
18019   # `config.status --recheck' to rerun these tests and create the
18020   # libtool script then.
18021   test -f Makefile && make "$ltmain"
18022 fi
18023
18024
18025 ac_ext=c
18026 ac_cpp='$CPP $CPPFLAGS'
18027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18030
18031 CC="$lt_save_CC"
18032
18033         ;;
18034
18035       *)
18036         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18037 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18038    { (exit 1); exit 1; }; }
18039         ;;
18040       esac
18041
18042       # Append the new tag name to the list of available tags.
18043       if test -n "$tagname" ; then
18044       available_tags="$available_tags $tagname"
18045     fi
18046     fi
18047   done
18048   IFS="$lt_save_ifs"
18049
18050   # Now substitute the updated list of available tags.
18051   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18052     mv "${ofile}T" "$ofile"
18053     chmod +x "$ofile"
18054   else
18055     rm -f "${ofile}T"
18056     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18057 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18058    { (exit 1); exit 1; }; }
18059   fi
18060 fi
18061
18062
18063
18064 # This can be used to rebuild libtool when needed
18065 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18066
18067 # Always use our own libtool.
18068 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18069
18070 # Prevent multiple expansion
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092 # Extract the first word of "dot", so it can be a program name with args.
18093 set dummy dot; ac_word=$2
18094 echo "$as_me:$LINENO: checking for $ac_word" >&5
18095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18096 if test "${ac_cv_path_DOT+set}" = set; then
18097   echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099   case $DOT in
18100   [\\/]* | ?:[\\/]*)
18101   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18102   ;;
18103   *)
18104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18105 for as_dir in $PATH
18106 do
18107   IFS=$as_save_IFS
18108   test -z "$as_dir" && as_dir=.
18109   for ac_exec_ext in '' $ac_executable_extensions; do
18110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18111     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18113     break 2
18114   fi
18115 done
18116 done
18117
18118   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18119   ;;
18120 esac
18121 fi
18122 DOT=$ac_cv_path_DOT
18123
18124 if test -n "$DOT"; then
18125   echo "$as_me:$LINENO: result: $DOT" >&5
18126 echo "${ECHO_T}$DOT" >&6
18127 else
18128   echo "$as_me:$LINENO: result: no" >&5
18129 echo "${ECHO_T}no" >&6
18130 fi
18131
18132 # Extract the first word of "etags", so it can be a program name with args.
18133 set dummy etags; ac_word=$2
18134 echo "$as_me:$LINENO: checking for $ac_word" >&5
18135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18136 if test "${ac_cv_path_ETAGS+set}" = set; then
18137   echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139   case $ETAGS in
18140   [\\/]* | ?:[\\/]*)
18141   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18142   ;;
18143   *)
18144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18145 for as_dir in $PATH
18146 do
18147   IFS=$as_save_IFS
18148   test -z "$as_dir" && as_dir=.
18149   for ac_exec_ext in '' $ac_executable_extensions; do
18150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18151     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18153     break 2
18154   fi
18155 done
18156 done
18157
18158   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18159   ;;
18160 esac
18161 fi
18162 ETAGS=$ac_cv_path_ETAGS
18163
18164 if test -n "$ETAGS"; then
18165   echo "$as_me:$LINENO: result: $ETAGS" >&5
18166 echo "${ECHO_T}$ETAGS" >&6
18167 else
18168   echo "$as_me:$LINENO: result: no" >&5
18169 echo "${ECHO_T}no" >&6
18170 fi
18171
18172 etags_version=`$ETAGS --version 2>&1`
18173 case "$etags_version" in
18174         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18175         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18176         *) ETAGSFLAGS="" ;;
18177 esac
18178 ETAGSFLAGS=$ETAGSFLAGS
18179
18180 # Extract the first word of "python", so it can be a program name with args.
18181 set dummy python; ac_word=$2
18182 echo "$as_me:$LINENO: checking for $ac_word" >&5
18183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18184 if test "${ac_cv_path_PYTHON+set}" = set; then
18185   echo $ECHO_N "(cached) $ECHO_C" >&6
18186 else
18187   case $PYTHON in
18188   [\\/]* | ?:[\\/]*)
18189   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18190   ;;
18191   *)
18192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193 for as_dir in $PATH
18194 do
18195   IFS=$as_save_IFS
18196   test -z "$as_dir" && as_dir=.
18197   for ac_exec_ext in '' $ac_executable_extensions; do
18198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18199     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18201     break 2
18202   fi
18203 done
18204 done
18205
18206   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18207   ;;
18208 esac
18209 fi
18210 PYTHON=$ac_cv_path_PYTHON
18211
18212 if test -n "$PYTHON"; then
18213   echo "$as_me:$LINENO: result: $PYTHON" >&5
18214 echo "${ECHO_T}$PYTHON" >&6
18215 else
18216   echo "$as_me:$LINENO: result: no" >&5
18217 echo "${ECHO_T}no" >&6
18218 fi
18219
18220 if test "$PYTHON" = "false"
18221 then
18222         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18223 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18224 fi
18225 # Extract the first word of "qmtest", so it can be a program name with args.
18226 set dummy qmtest; ac_word=$2
18227 echo "$as_me:$LINENO: checking for $ac_word" >&5
18228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18229 if test "${ac_cv_path_QMTEST+set}" = set; then
18230   echo $ECHO_N "(cached) $ECHO_C" >&6
18231 else
18232   case $QMTEST in
18233   [\\/]* | ?:[\\/]*)
18234   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18235   ;;
18236   *)
18237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18238 for as_dir in $PATH
18239 do
18240   IFS=$as_save_IFS
18241   test -z "$as_dir" && as_dir=.
18242   for ac_exec_ext in '' $ac_executable_extensions; do
18243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18244     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18246     break 2
18247   fi
18248 done
18249 done
18250
18251   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18252   ;;
18253 esac
18254 fi
18255 QMTEST=$ac_cv_path_QMTEST
18256
18257 if test -n "$QMTEST"; then
18258   echo "$as_me:$LINENO: result: $QMTEST" >&5
18259 echo "${ECHO_T}$QMTEST" >&6
18260 else
18261   echo "$as_me:$LINENO: result: no" >&5
18262 echo "${ECHO_T}no" >&6
18263 fi
18264
18265 if test "$QMTEST" = "false"
18266 then
18267         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18268 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18269 fi
18270
18271 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18272 pymajor=`echo $pyversion | cut -d. -f1`
18273 pyminor=`echo $pyversion | cut -d. -f2`
18274
18275 if test "$pymajor" -ge "2"
18276 then
18277         if test "$pymajor" -eq "2"
18278         then
18279                 if test "$pyminor" -lt "2"
18280                 then
18281                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18282 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18283                 fi
18284         fi
18285 else
18286         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18287 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18288 fi
18289
18290
18291
18292
18293 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18294 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18295 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18296   echo $ECHO_N "(cached) $ECHO_C" >&6
18297 else
18298   ac_check_lib_save_LIBS=$LIBS
18299 LIBS="-lelf  $LIBS"
18300 cat >conftest.$ac_ext <<_ACEOF
18301 #line $LINENO "configure"
18302 /* confdefs.h.  */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h.  */
18307
18308 /* Override any gcc2 internal prototype to avoid an error.  */
18309 #ifdef __cplusplus
18310 extern "C"
18311 #endif
18312 /* We use char because int might match the return type of a gcc2
18313    builtin and then its argument prototype would still apply.  */
18314 char elf_begin ();
18315 int
18316 main ()
18317 {
18318 elf_begin ();
18319   ;
18320   return 0;
18321 }
18322 _ACEOF
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325   (eval $ac_link) 2>&5
18326   ac_status=$?
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); } &&
18329          { ac_try='test -s conftest$ac_exeext'
18330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331   (eval $ac_try) 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; }; then
18335   ac_cv_lib_elf_elf_begin=yes
18336 else
18337   echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340 ac_cv_lib_elf_elf_begin=no
18341 fi
18342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18343 LIBS=$ac_check_lib_save_LIBS
18344 fi
18345 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18346 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18347 if test $ac_cv_lib_elf_elf_begin = yes; then
18348   cat >>confdefs.h <<_ACEOF
18349 #define HAVE_LIBELF 1
18350 _ACEOF
18351
18352   LIBS="-lelf $LIBS"
18353
18354 fi
18355
18356
18357 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18358 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18359 if test "${ac_cv_search_dlopen+set}" = set; then
18360   echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362   ac_func_search_save_LIBS=$LIBS
18363 ac_cv_search_dlopen=no
18364 cat >conftest.$ac_ext <<_ACEOF
18365 #line $LINENO "configure"
18366 /* confdefs.h.  */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h.  */
18371
18372 /* Override any gcc2 internal prototype to avoid an error.  */
18373 #ifdef __cplusplus
18374 extern "C"
18375 #endif
18376 /* We use char because int might match the return type of a gcc2
18377    builtin and then its argument prototype would still apply.  */
18378 char dlopen ();
18379 int
18380 main ()
18381 {
18382 dlopen ();
18383   ;
18384   return 0;
18385 }
18386 _ACEOF
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389   (eval $ac_link) 2>&5
18390   ac_status=$?
18391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392   (exit $ac_status); } &&
18393          { ac_try='test -s conftest$ac_exeext'
18394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395   (eval $ac_try) 2>&5
18396   ac_status=$?
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); }; }; then
18399   ac_cv_search_dlopen="none required"
18400 else
18401   echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18403
18404 fi
18405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18406 if test "$ac_cv_search_dlopen" = no; then
18407   for ac_lib in dl; do
18408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18409     cat >conftest.$ac_ext <<_ACEOF
18410 #line $LINENO "configure"
18411 /* confdefs.h.  */
18412 _ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h.  */
18416
18417 /* Override any gcc2 internal prototype to avoid an error.  */
18418 #ifdef __cplusplus
18419 extern "C"
18420 #endif
18421 /* We use char because int might match the return type of a gcc2
18422    builtin and then its argument prototype would still apply.  */
18423 char dlopen ();
18424 int
18425 main ()
18426 {
18427 dlopen ();
18428   ;
18429   return 0;
18430 }
18431 _ACEOF
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18434   (eval $ac_link) 2>&5
18435   ac_status=$?
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); } &&
18438          { ac_try='test -s conftest$ac_exeext'
18439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440   (eval $ac_try) 2>&5
18441   ac_status=$?
18442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443   (exit $ac_status); }; }; then
18444   ac_cv_search_dlopen="-l$ac_lib"
18445 break
18446 else
18447   echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18449
18450 fi
18451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18452   done
18453 fi
18454 LIBS=$ac_func_search_save_LIBS
18455 fi
18456 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18457 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18458 if test "$ac_cv_search_dlopen" != no; then
18459   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18460
18461 cat >>confdefs.h <<\_ACEOF
18462 #define HAVE_DLOPEN 1
18463 _ACEOF
18464
18465 else
18466   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18467 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18468 fi
18469
18470
18471 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18472 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18473 if test "${ac_cv_search_mallinfo+set}" = set; then
18474   echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476   ac_func_search_save_LIBS=$LIBS
18477 ac_cv_search_mallinfo=no
18478 cat >conftest.$ac_ext <<_ACEOF
18479 #line $LINENO "configure"
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485
18486 /* Override any gcc2 internal prototype to avoid an error.  */
18487 #ifdef __cplusplus
18488 extern "C"
18489 #endif
18490 /* We use char because int might match the return type of a gcc2
18491    builtin and then its argument prototype would still apply.  */
18492 char mallinfo ();
18493 int
18494 main ()
18495 {
18496 mallinfo ();
18497   ;
18498   return 0;
18499 }
18500 _ACEOF
18501 rm -f conftest.$ac_objext conftest$ac_exeext
18502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18503   (eval $ac_link) 2>&5
18504   ac_status=$?
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); } &&
18507          { ac_try='test -s conftest$ac_exeext'
18508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509   (eval $ac_try) 2>&5
18510   ac_status=$?
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); }; }; then
18513   ac_cv_search_mallinfo="none required"
18514 else
18515   echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18517
18518 fi
18519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18520 if test "$ac_cv_search_mallinfo" = no; then
18521   for ac_lib in malloc; do
18522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18523     cat >conftest.$ac_ext <<_ACEOF
18524 #line $LINENO "configure"
18525 /* confdefs.h.  */
18526 _ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h.  */
18530
18531 /* Override any gcc2 internal prototype to avoid an error.  */
18532 #ifdef __cplusplus
18533 extern "C"
18534 #endif
18535 /* We use char because int might match the return type of a gcc2
18536    builtin and then its argument prototype would still apply.  */
18537 char mallinfo ();
18538 int
18539 main ()
18540 {
18541 mallinfo ();
18542   ;
18543   return 0;
18544 }
18545 _ACEOF
18546 rm -f conftest.$ac_objext conftest$ac_exeext
18547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548   (eval $ac_link) 2>&5
18549   ac_status=$?
18550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551   (exit $ac_status); } &&
18552          { ac_try='test -s conftest$ac_exeext'
18553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554   (eval $ac_try) 2>&5
18555   ac_status=$?
18556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557   (exit $ac_status); }; }; then
18558   ac_cv_search_mallinfo="-l$ac_lib"
18559 break
18560 else
18561   echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18563
18564 fi
18565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18566   done
18567 fi
18568 LIBS=$ac_func_search_save_LIBS
18569 fi
18570 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18571 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18572 if test "$ac_cv_search_mallinfo" != no; then
18573   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18574
18575 cat >>confdefs.h <<\_ACEOF
18576 #define HAVE_MALLINFO 1
18577 _ACEOF
18578
18579 fi
18580
18581
18582 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18583 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18584 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18585   echo $ECHO_N "(cached) $ECHO_C" >&6
18586 else
18587   ac_func_search_save_LIBS=$LIBS
18588 ac_cv_search_pthread_mutex_lock=no
18589 cat >conftest.$ac_ext <<_ACEOF
18590 #line $LINENO "configure"
18591 /* confdefs.h.  */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h.  */
18596
18597 /* Override any gcc2 internal prototype to avoid an error.  */
18598 #ifdef __cplusplus
18599 extern "C"
18600 #endif
18601 /* We use char because int might match the return type of a gcc2
18602    builtin and then its argument prototype would still apply.  */
18603 char pthread_mutex_lock ();
18604 int
18605 main ()
18606 {
18607 pthread_mutex_lock ();
18608   ;
18609   return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614   (eval $ac_link) 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); } &&
18618          { ac_try='test -s conftest$ac_exeext'
18619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620   (eval $ac_try) 2>&5
18621   ac_status=$?
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); }; }; then
18624   ac_cv_search_pthread_mutex_lock="none required"
18625 else
18626   echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18628
18629 fi
18630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18631 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18632   for ac_lib in pthread; do
18633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18634     cat >conftest.$ac_ext <<_ACEOF
18635 #line $LINENO "configure"
18636 /* confdefs.h.  */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h.  */
18641
18642 /* Override any gcc2 internal prototype to avoid an error.  */
18643 #ifdef __cplusplus
18644 extern "C"
18645 #endif
18646 /* We use char because int might match the return type of a gcc2
18647    builtin and then its argument prototype would still apply.  */
18648 char pthread_mutex_lock ();
18649 int
18650 main ()
18651 {
18652 pthread_mutex_lock ();
18653   ;
18654   return 0;
18655 }
18656 _ACEOF
18657 rm -f conftest.$ac_objext conftest$ac_exeext
18658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18659   (eval $ac_link) 2>&5
18660   ac_status=$?
18661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662   (exit $ac_status); } &&
18663          { ac_try='test -s conftest$ac_exeext'
18664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665   (eval $ac_try) 2>&5
18666   ac_status=$?
18667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); }; }; then
18669   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18670 break
18671 else
18672   echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18674
18675 fi
18676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18677   done
18678 fi
18679 LIBS=$ac_func_search_save_LIBS
18680 fi
18681 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18682 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18683 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18684   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18685   HAVE_PTHREAD_MUTEX_LOCK=1
18686 else
18687   HAVE_PTHREAD_MUTEX_LOCK=0
18688 fi
18689
18690
18691
18692 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18693 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18694 if test "${ac_cv_header_stdc+set}" = set; then
18695   echo $ECHO_N "(cached) $ECHO_C" >&6
18696 else
18697   cat >conftest.$ac_ext <<_ACEOF
18698 #line $LINENO "configure"
18699 /* confdefs.h.  */
18700 _ACEOF
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h.  */
18704 #include <stdlib.h>
18705 #include <stdarg.h>
18706 #include <string.h>
18707 #include <float.h>
18708
18709 int
18710 main ()
18711 {
18712
18713   ;
18714   return 0;
18715 }
18716 _ACEOF
18717 rm -f conftest.$ac_objext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719   (eval $ac_compile) 2>&5
18720   ac_status=$?
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); } &&
18723          { ac_try='test -s conftest.$ac_objext'
18724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725   (eval $ac_try) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; }; then
18729   ac_cv_header_stdc=yes
18730 else
18731   echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734 ac_cv_header_stdc=no
18735 fi
18736 rm -f conftest.$ac_objext conftest.$ac_ext
18737
18738 if test $ac_cv_header_stdc = yes; then
18739   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18740   cat >conftest.$ac_ext <<_ACEOF
18741 #line $LINENO "configure"
18742 /* confdefs.h.  */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h.  */
18747 #include <string.h>
18748
18749 _ACEOF
18750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18751   $EGREP "memchr" >/dev/null 2>&1; then
18752   :
18753 else
18754   ac_cv_header_stdc=no
18755 fi
18756 rm -f conftest*
18757
18758 fi
18759
18760 if test $ac_cv_header_stdc = yes; then
18761   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18762   cat >conftest.$ac_ext <<_ACEOF
18763 #line $LINENO "configure"
18764 /* confdefs.h.  */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h.  */
18769 #include <stdlib.h>
18770
18771 _ACEOF
18772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18773   $EGREP "free" >/dev/null 2>&1; then
18774   :
18775 else
18776   ac_cv_header_stdc=no
18777 fi
18778 rm -f conftest*
18779
18780 fi
18781
18782 if test $ac_cv_header_stdc = yes; then
18783   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18784   if test "$cross_compiling" = yes; then
18785   :
18786 else
18787   cat >conftest.$ac_ext <<_ACEOF
18788 #line $LINENO "configure"
18789 /* confdefs.h.  */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h.  */
18794 #include <ctype.h>
18795 #if ((' ' & 0x0FF) == 0x020)
18796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18798 #else
18799 # define ISLOWER(c) \
18800                    (('a' <= (c) && (c) <= 'i') \
18801                      || ('j' <= (c) && (c) <= 'r') \
18802                      || ('s' <= (c) && (c) <= 'z'))
18803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18804 #endif
18805
18806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18807 int
18808 main ()
18809 {
18810   int i;
18811   for (i = 0; i < 256; i++)
18812     if (XOR (islower (i), ISLOWER (i))
18813         || toupper (i) != TOUPPER (i))
18814       exit(2);
18815   exit (0);
18816 }
18817 _ACEOF
18818 rm -f conftest$ac_exeext
18819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18820   (eval $ac_link) 2>&5
18821   ac_status=$?
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825   (eval $ac_try) 2>&5
18826   ac_status=$?
18827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828   (exit $ac_status); }; }; then
18829   :
18830 else
18831   echo "$as_me: program exited with status $ac_status" >&5
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18834
18835 ( exit $ac_status )
18836 ac_cv_header_stdc=no
18837 fi
18838 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18839 fi
18840 fi
18841 fi
18842 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18843 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18844 if test $ac_cv_header_stdc = yes; then
18845
18846 cat >>confdefs.h <<\_ACEOF
18847 #define STDC_HEADERS 1
18848 _ACEOF
18849
18850 fi
18851
18852 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18853 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18854 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18855   echo $ECHO_N "(cached) $ECHO_C" >&6
18856 else
18857   cat >conftest.$ac_ext <<_ACEOF
18858 #line $LINENO "configure"
18859 /* confdefs.h.  */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h.  */
18864 #include <sys/types.h>
18865 #include <sys/wait.h>
18866 #ifndef WEXITSTATUS
18867 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18868 #endif
18869 #ifndef WIFEXITED
18870 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18871 #endif
18872
18873 int
18874 main ()
18875 {
18876   int s;
18877   wait (&s);
18878   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18879   ;
18880   return 0;
18881 }
18882 _ACEOF
18883 rm -f conftest.$ac_objext
18884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18885   (eval $ac_compile) 2>&5
18886   ac_status=$?
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); } &&
18889          { ac_try='test -s conftest.$ac_objext'
18890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891   (eval $ac_try) 2>&5
18892   ac_status=$?
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); }; }; then
18895   ac_cv_header_sys_wait_h=yes
18896 else
18897   echo "$as_me: failed program was:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18899
18900 ac_cv_header_sys_wait_h=no
18901 fi
18902 rm -f conftest.$ac_objext conftest.$ac_ext
18903 fi
18904 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18905 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18906 if test $ac_cv_header_sys_wait_h = yes; then
18907
18908 cat >>confdefs.h <<\_ACEOF
18909 #define HAVE_SYS_WAIT_H 1
18910 _ACEOF
18911
18912 fi
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926 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
18927 do
18928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18930   echo "$as_me:$LINENO: checking for $ac_header" >&5
18931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18933   echo $ECHO_N "(cached) $ECHO_C" >&6
18934 fi
18935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18937 else
18938   # Is the header compilable?
18939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18941 cat >conftest.$ac_ext <<_ACEOF
18942 #line $LINENO "configure"
18943 /* confdefs.h.  */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h.  */
18948 $ac_includes_default
18949 #include <$ac_header>
18950 _ACEOF
18951 rm -f conftest.$ac_objext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953   (eval $ac_compile) 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); } &&
18957          { ac_try='test -s conftest.$ac_objext'
18958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959   (eval $ac_try) 2>&5
18960   ac_status=$?
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); }; }; then
18963   ac_header_compiler=yes
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968 ac_header_compiler=no
18969 fi
18970 rm -f conftest.$ac_objext conftest.$ac_ext
18971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18972 echo "${ECHO_T}$ac_header_compiler" >&6
18973
18974 # Is the header present?
18975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18977 cat >conftest.$ac_ext <<_ACEOF
18978 #line $LINENO "configure"
18979 /* confdefs.h.  */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h.  */
18984 #include <$ac_header>
18985 _ACEOF
18986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18988   ac_status=$?
18989   grep -v '^ *+' conftest.er1 >conftest.err
18990   rm -f conftest.er1
18991   cat conftest.err >&5
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); } >/dev/null; then
18994   if test -s conftest.err; then
18995     ac_cpp_err=$ac_c_preproc_warn_flag
18996   else
18997     ac_cpp_err=
18998   fi
18999 else
19000   ac_cpp_err=yes
19001 fi
19002 if test -z "$ac_cpp_err"; then
19003   ac_header_preproc=yes
19004 else
19005   echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19007
19008   ac_header_preproc=no
19009 fi
19010 rm -f conftest.err conftest.$ac_ext
19011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19012 echo "${ECHO_T}$ac_header_preproc" >&6
19013
19014 # So?  What about this header?
19015 case $ac_header_compiler:$ac_header_preproc in
19016   yes:no )
19017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19021     (
19022       cat <<\_ASBOX
19023 ## ------------------------------------ ##
19024 ## Report this to bug-autoconf@gnu.org. ##
19025 ## ------------------------------------ ##
19026 _ASBOX
19027     ) |
19028       sed "s/^/$as_me: WARNING:     /" >&2
19029     ;;
19030   no:yes )
19031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19033     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19037     (
19038       cat <<\_ASBOX
19039 ## ------------------------------------ ##
19040 ## Report this to bug-autoconf@gnu.org. ##
19041 ## ------------------------------------ ##
19042 _ASBOX
19043     ) |
19044       sed "s/^/$as_me: WARNING:     /" >&2
19045     ;;
19046 esac
19047 echo "$as_me:$LINENO: checking for $ac_header" >&5
19048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19050   echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052   eval "$as_ac_Header=$ac_header_preproc"
19053 fi
19054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19056
19057 fi
19058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19059   cat >>confdefs.h <<_ACEOF
19060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19061 _ACEOF
19062
19063 fi
19064
19065 done
19066
19067
19068 if test "${ac_cv_header_sys_types_h+set}" = set; then
19069   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19070 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19071 if test "${ac_cv_header_sys_types_h+set}" = set; then
19072   echo $ECHO_N "(cached) $ECHO_C" >&6
19073 fi
19074 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19075 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19076 else
19077   # Is the header compilable?
19078 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19079 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19080 cat >conftest.$ac_ext <<_ACEOF
19081 #line $LINENO "configure"
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087 $ac_includes_default
19088 #include <sys/types.h>
19089 _ACEOF
19090 rm -f conftest.$ac_objext
19091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19092   (eval $ac_compile) 2>&5
19093   ac_status=$?
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } &&
19096          { ac_try='test -s conftest.$ac_objext'
19097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098   (eval $ac_try) 2>&5
19099   ac_status=$?
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); }; }; then
19102   ac_header_compiler=yes
19103 else
19104   echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107 ac_header_compiler=no
19108 fi
19109 rm -f conftest.$ac_objext conftest.$ac_ext
19110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19111 echo "${ECHO_T}$ac_header_compiler" >&6
19112
19113 # Is the header present?
19114 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19115 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19116 cat >conftest.$ac_ext <<_ACEOF
19117 #line $LINENO "configure"
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123 #include <sys/types.h>
19124 _ACEOF
19125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19127   ac_status=$?
19128   grep -v '^ *+' conftest.er1 >conftest.err
19129   rm -f conftest.er1
19130   cat conftest.err >&5
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); } >/dev/null; then
19133   if test -s conftest.err; then
19134     ac_cpp_err=$ac_c_preproc_warn_flag
19135   else
19136     ac_cpp_err=
19137   fi
19138 else
19139   ac_cpp_err=yes
19140 fi
19141 if test -z "$ac_cpp_err"; then
19142   ac_header_preproc=yes
19143 else
19144   echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19146
19147   ac_header_preproc=no
19148 fi
19149 rm -f conftest.err conftest.$ac_ext
19150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19151 echo "${ECHO_T}$ac_header_preproc" >&6
19152
19153 # So?  What about this header?
19154 case $ac_header_compiler:$ac_header_preproc in
19155   yes:no )
19156     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19157 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19158     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19159 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19160     (
19161       cat <<\_ASBOX
19162 ## ------------------------------------ ##
19163 ## Report this to bug-autoconf@gnu.org. ##
19164 ## ------------------------------------ ##
19165 _ASBOX
19166     ) |
19167       sed "s/^/$as_me: WARNING:     /" >&2
19168     ;;
19169   no:yes )
19170     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19171 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19172     { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19173 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19174     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19175 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19176     (
19177       cat <<\_ASBOX
19178 ## ------------------------------------ ##
19179 ## Report this to bug-autoconf@gnu.org. ##
19180 ## ------------------------------------ ##
19181 _ASBOX
19182     ) |
19183       sed "s/^/$as_me: WARNING:     /" >&2
19184     ;;
19185 esac
19186 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19187 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19188 if test "${ac_cv_header_sys_types_h+set}" = set; then
19189   echo $ECHO_N "(cached) $ECHO_C" >&6
19190 else
19191   ac_cv_header_sys_types_h=$ac_header_preproc
19192 fi
19193 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19194 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19195
19196 fi
19197 if test $ac_cv_header_sys_types_h = yes; then
19198   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19199 else
19200   INCLUDE_SYS_TYPES_H=''
19201 fi
19202
19203
19204
19205 if test "${ac_cv_header_inttypes_h+set}" = set; then
19206   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19207 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19208 if test "${ac_cv_header_inttypes_h+set}" = set; then
19209   echo $ECHO_N "(cached) $ECHO_C" >&6
19210 fi
19211 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19212 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19213 else
19214   # Is the header compilable?
19215 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19216 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19217 cat >conftest.$ac_ext <<_ACEOF
19218 #line $LINENO "configure"
19219 /* confdefs.h.  */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h.  */
19224 $ac_includes_default
19225 #include <inttypes.h>
19226 _ACEOF
19227 rm -f conftest.$ac_objext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19229   (eval $ac_compile) 2>&5
19230   ac_status=$?
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); } &&
19233          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19239   ac_header_compiler=yes
19240 else
19241   echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 ac_header_compiler=no
19245 fi
19246 rm -f conftest.$ac_objext conftest.$ac_ext
19247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19248 echo "${ECHO_T}$ac_header_compiler" >&6
19249
19250 # Is the header present?
19251 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19252 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19253 cat >conftest.$ac_ext <<_ACEOF
19254 #line $LINENO "configure"
19255 /* confdefs.h.  */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h.  */
19260 #include <inttypes.h>
19261 _ACEOF
19262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19264   ac_status=$?
19265   grep -v '^ *+' conftest.er1 >conftest.err
19266   rm -f conftest.er1
19267   cat conftest.err >&5
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); } >/dev/null; then
19270   if test -s conftest.err; then
19271     ac_cpp_err=$ac_c_preproc_warn_flag
19272   else
19273     ac_cpp_err=
19274   fi
19275 else
19276   ac_cpp_err=yes
19277 fi
19278 if test -z "$ac_cpp_err"; then
19279   ac_header_preproc=yes
19280 else
19281   echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284   ac_header_preproc=no
19285 fi
19286 rm -f conftest.err conftest.$ac_ext
19287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19288 echo "${ECHO_T}$ac_header_preproc" >&6
19289
19290 # So?  What about this header?
19291 case $ac_header_compiler:$ac_header_preproc in
19292   yes:no )
19293     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19294 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19295     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19296 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19297     (
19298       cat <<\_ASBOX
19299 ## ------------------------------------ ##
19300 ## Report this to bug-autoconf@gnu.org. ##
19301 ## ------------------------------------ ##
19302 _ASBOX
19303     ) |
19304       sed "s/^/$as_me: WARNING:     /" >&2
19305     ;;
19306   no:yes )
19307     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19308 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19309     { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19310 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19311     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19312 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19313     (
19314       cat <<\_ASBOX
19315 ## ------------------------------------ ##
19316 ## Report this to bug-autoconf@gnu.org. ##
19317 ## ------------------------------------ ##
19318 _ASBOX
19319     ) |
19320       sed "s/^/$as_me: WARNING:     /" >&2
19321     ;;
19322 esac
19323 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19324 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19325 if test "${ac_cv_header_inttypes_h+set}" = set; then
19326   echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328   ac_cv_header_inttypes_h=$ac_header_preproc
19329 fi
19330 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19331 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19332
19333 fi
19334 if test $ac_cv_header_inttypes_h = yes; then
19335   INCLUDE_INTTYPES_H='#include <inttypes.h>'
19336 else
19337   INCLUDE_INTTYPES_H=''
19338 fi
19339
19340
19341
19342
19343 echo "$as_me:$LINENO: checking for pid_t" >&5
19344 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19345 if test "${ac_cv_type_pid_t+set}" = set; then
19346   echo $ECHO_N "(cached) $ECHO_C" >&6
19347 else
19348   cat >conftest.$ac_ext <<_ACEOF
19349 #line $LINENO "configure"
19350 /* confdefs.h.  */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h.  */
19355 $ac_includes_default
19356 int
19357 main ()
19358 {
19359 if ((pid_t *) 0)
19360   return 0;
19361 if (sizeof (pid_t))
19362   return 0;
19363   ;
19364   return 0;
19365 }
19366 _ACEOF
19367 rm -f conftest.$ac_objext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369   (eval $ac_compile) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } &&
19373          { ac_try='test -s conftest.$ac_objext'
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_type_pid_t=yes
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_cv_type_pid_t=no
19385 fi
19386 rm -f conftest.$ac_objext conftest.$ac_ext
19387 fi
19388 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19389 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19390 if test $ac_cv_type_pid_t = yes; then
19391   :
19392 else
19393
19394 cat >>confdefs.h <<_ACEOF
19395 #define pid_t int
19396 _ACEOF
19397
19398 fi
19399
19400 echo "$as_me:$LINENO: checking for size_t" >&5
19401 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19402 if test "${ac_cv_type_size_t+set}" = set; then
19403   echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405   cat >conftest.$ac_ext <<_ACEOF
19406 #line $LINENO "configure"
19407 /* confdefs.h.  */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h.  */
19412 $ac_includes_default
19413 int
19414 main ()
19415 {
19416 if ((size_t *) 0)
19417   return 0;
19418 if (sizeof (size_t))
19419   return 0;
19420   ;
19421   return 0;
19422 }
19423 _ACEOF
19424 rm -f conftest.$ac_objext
19425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19426   (eval $ac_compile) 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); } &&
19430          { ac_try='test -s conftest.$ac_objext'
19431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432   (eval $ac_try) 2>&5
19433   ac_status=$?
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); }; }; then
19436   ac_cv_type_size_t=yes
19437 else
19438   echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19440
19441 ac_cv_type_size_t=no
19442 fi
19443 rm -f conftest.$ac_objext conftest.$ac_ext
19444 fi
19445 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19446 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19447 if test $ac_cv_type_size_t = yes; then
19448   :
19449 else
19450
19451 cat >>confdefs.h <<_ACEOF
19452 #define size_t unsigned
19453 _ACEOF
19454
19455 fi
19456
19457 echo "$as_me:$LINENO: checking for int64_t" >&5
19458 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19459 if test "${ac_cv_type_int64_t+set}" = set; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462   cat >conftest.$ac_ext <<_ACEOF
19463 #line $LINENO "configure"
19464 /* confdefs.h.  */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h.  */
19469 $ac_includes_default
19470 int
19471 main ()
19472 {
19473 if ((int64_t *) 0)
19474   return 0;
19475 if (sizeof (int64_t))
19476   return 0;
19477   ;
19478   return 0;
19479 }
19480 _ACEOF
19481 rm -f conftest.$ac_objext
19482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19483   (eval $ac_compile) 2>&5
19484   ac_status=$?
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); } &&
19487          { ac_try='test -s conftest.$ac_objext'
19488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489   (eval $ac_try) 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; }; then
19493   ac_cv_type_int64_t=yes
19494 else
19495   echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498 ac_cv_type_int64_t=no
19499 fi
19500 rm -f conftest.$ac_objext conftest.$ac_ext
19501 fi
19502 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19503 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19504 if test $ac_cv_type_int64_t = yes; then
19505
19506 cat >>confdefs.h <<_ACEOF
19507 #define HAVE_INT64_T 1
19508 _ACEOF
19509
19510
19511 else
19512   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19513 echo "$as_me: error: Type int64_t required but not found" >&2;}
19514    { (exit 1); exit 1; }; }
19515 fi
19516
19517 echo "$as_me:$LINENO: checking for uint64_t" >&5
19518 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19519 if test "${ac_cv_type_uint64_t+set}" = set; then
19520   echo $ECHO_N "(cached) $ECHO_C" >&6
19521 else
19522   cat >conftest.$ac_ext <<_ACEOF
19523 #line $LINENO "configure"
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529 $ac_includes_default
19530 int
19531 main ()
19532 {
19533 if ((uint64_t *) 0)
19534   return 0;
19535 if (sizeof (uint64_t))
19536   return 0;
19537   ;
19538   return 0;
19539 }
19540 _ACEOF
19541 rm -f conftest.$ac_objext
19542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19543   (eval $ac_compile) 2>&5
19544   ac_status=$?
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -s conftest.$ac_objext'
19548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549   (eval $ac_try) 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; }; then
19553   ac_cv_type_uint64_t=yes
19554 else
19555   echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19557
19558 ac_cv_type_uint64_t=no
19559 fi
19560 rm -f conftest.$ac_objext conftest.$ac_ext
19561 fi
19562 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19563 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19564 if test $ac_cv_type_uint64_t = yes; then
19565
19566 cat >>confdefs.h <<_ACEOF
19567 #define HAVE_UINT64_T 1
19568 _ACEOF
19569
19570
19571 else
19572   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19573 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19574    { (exit 1); exit 1; }; }
19575 fi
19576
19577 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19578 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19579 if test "${ac_cv_header_time+set}" = set; then
19580   echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582   cat >conftest.$ac_ext <<_ACEOF
19583 #line $LINENO "configure"
19584 /* confdefs.h.  */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h.  */
19589 #include <sys/types.h>
19590 #include <sys/time.h>
19591 #include <time.h>
19592
19593 int
19594 main ()
19595 {
19596 if ((struct tm *) 0)
19597 return 0;
19598   ;
19599   return 0;
19600 }
19601 _ACEOF
19602 rm -f conftest.$ac_objext
19603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19604   (eval $ac_compile) 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); } &&
19608          { ac_try='test -s conftest.$ac_objext'
19609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610   (eval $ac_try) 2>&5
19611   ac_status=$?
19612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613   (exit $ac_status); }; }; then
19614   ac_cv_header_time=yes
19615 else
19616   echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19618
19619 ac_cv_header_time=no
19620 fi
19621 rm -f conftest.$ac_objext conftest.$ac_ext
19622 fi
19623 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19624 echo "${ECHO_T}$ac_cv_header_time" >&6
19625 if test $ac_cv_header_time = yes; then
19626
19627 cat >>confdefs.h <<\_ACEOF
19628 #define TIME_WITH_SYS_TIME 1
19629 _ACEOF
19630
19631 fi
19632
19633 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19634 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19635 if test "${ac_cv_struct_tm+set}" = set; then
19636   echo $ECHO_N "(cached) $ECHO_C" >&6
19637 else
19638   cat >conftest.$ac_ext <<_ACEOF
19639 #line $LINENO "configure"
19640 /* confdefs.h.  */
19641 _ACEOF
19642 cat confdefs.h >>conftest.$ac_ext
19643 cat >>conftest.$ac_ext <<_ACEOF
19644 /* end confdefs.h.  */
19645 #include <sys/types.h>
19646 #include <time.h>
19647
19648 int
19649 main ()
19650 {
19651 struct tm *tp; tp->tm_sec;
19652   ;
19653   return 0;
19654 }
19655 _ACEOF
19656 rm -f conftest.$ac_objext
19657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19658   (eval $ac_compile) 2>&5
19659   ac_status=$?
19660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661   (exit $ac_status); } &&
19662          { ac_try='test -s conftest.$ac_objext'
19663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664   (eval $ac_try) 2>&5
19665   ac_status=$?
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); }; }; then
19668   ac_cv_struct_tm=time.h
19669 else
19670   echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19672
19673 ac_cv_struct_tm=sys/time.h
19674 fi
19675 rm -f conftest.$ac_objext conftest.$ac_ext
19676 fi
19677 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19678 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19679 if test $ac_cv_struct_tm = sys/time.h; then
19680
19681 cat >>confdefs.h <<\_ACEOF
19682 #define TM_IN_SYS_TIME 1
19683 _ACEOF
19684
19685 fi
19686
19687
19688
19689
19690
19691         ac_ext=c
19692 ac_cpp='$CPP $CPPFLAGS'
19693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19696
19697         if test "$cross_compiling" = yes; then
19698   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19699 See \`config.log' for more details." >&5
19700 echo "$as_me: error: cannot run test program while cross compiling
19701 See \`config.log' for more details." >&2;}
19702    { (exit 1); exit 1; }; }
19703 else
19704   cat >conftest.$ac_ext <<_ACEOF
19705 #line $LINENO "configure"
19706 /* confdefs.h.  */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h.  */
19711 #include <stdio.h>
19712                                  #include <stdlib.h>
19713 int
19714 main ()
19715 {
19716
19717                                  volatile double A, B;
19718                                  char Buffer[100];
19719                                  A = 1;
19720                                  A /= 10.0;
19721                                  sprintf(Buffer, "%a", A);
19722                                  B = atof(Buffer);
19723                                  if (A != B)
19724                                                          return (1);
19725                                  if (A != 0x1.999999999999ap-4)
19726                                                          return (1);
19727                                  return (0);
19728   ;
19729   return 0;
19730 }
19731 _ACEOF
19732 rm -f conftest$ac_exeext
19733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19734   (eval $ac_link) 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739   (eval $ac_try) 2>&5
19740   ac_status=$?
19741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742   (exit $ac_status); }; }; then
19743   ac_c_printf_a=yes
19744 else
19745   echo "$as_me: program exited with status $ac_status" >&5
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19748
19749 ( exit $ac_status )
19750 ac_c_printf_a=no
19751 fi
19752 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19753 fi
19754         ac_ext=c
19755 ac_cpp='$CPP $CPPFLAGS'
19756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19759
19760         if test "$ac_c_printf_a" = "yes"; then
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_PRINTF_A 1
19764 _ACEOF
19765
19766         fi
19767
19768
19769 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19770 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19771 if test "${ac_cv_c_bigendian+set}" = set; then
19772   echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774   # See if sys/param.h defines the BYTE_ORDER macro.
19775 cat >conftest.$ac_ext <<_ACEOF
19776 #line $LINENO "configure"
19777 /* confdefs.h.  */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h.  */
19782 #include <sys/types.h>
19783 #include <sys/param.h>
19784
19785 int
19786 main ()
19787 {
19788 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19789  bogus endian macros
19790 #endif
19791
19792   ;
19793   return 0;
19794 }
19795 _ACEOF
19796 rm -f conftest.$ac_objext
19797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19798   (eval $ac_compile) 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } &&
19802          { ac_try='test -s conftest.$ac_objext'
19803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804   (eval $ac_try) 2>&5
19805   ac_status=$?
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); }; }; then
19808   # It does; now see whether it defined to BIG_ENDIAN or not.
19809 cat >conftest.$ac_ext <<_ACEOF
19810 #line $LINENO "configure"
19811 /* confdefs.h.  */
19812 _ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h.  */
19816 #include <sys/types.h>
19817 #include <sys/param.h>
19818
19819 int
19820 main ()
19821 {
19822 #if BYTE_ORDER != BIG_ENDIAN
19823  not big endian
19824 #endif
19825
19826   ;
19827   return 0;
19828 }
19829 _ACEOF
19830 rm -f conftest.$ac_objext
19831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19832   (eval $ac_compile) 2>&5
19833   ac_status=$?
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); } &&
19836          { ac_try='test -s conftest.$ac_objext'
19837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838   (eval $ac_try) 2>&5
19839   ac_status=$?
19840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841   (exit $ac_status); }; }; then
19842   ac_cv_c_bigendian=yes
19843 else
19844   echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19846
19847 ac_cv_c_bigendian=no
19848 fi
19849 rm -f conftest.$ac_objext conftest.$ac_ext
19850 else
19851   echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854 # It does not; compile a test program.
19855 if test "$cross_compiling" = yes; then
19856   # try to guess the endianness by grepping values into an object file
19857   ac_cv_c_bigendian=unknown
19858   cat >conftest.$ac_ext <<_ACEOF
19859 #line $LINENO "configure"
19860 /* confdefs.h.  */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h.  */
19865 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19866 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19867 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19868 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19869 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19870 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19871 int
19872 main ()
19873 {
19874  _ascii (); _ebcdic ();
19875   ;
19876   return 0;
19877 }
19878 _ACEOF
19879 rm -f conftest.$ac_objext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881   (eval $ac_compile) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); } &&
19885          { ac_try='test -s conftest.$ac_objext'
19886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887   (eval $ac_try) 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }; }; then
19891   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19892   ac_cv_c_bigendian=yes
19893 fi
19894 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19895   if test "$ac_cv_c_bigendian" = unknown; then
19896     ac_cv_c_bigendian=no
19897   else
19898     # finding both strings is unlikely to happen, but who knows?
19899     ac_cv_c_bigendian=unknown
19900   fi
19901 fi
19902 else
19903   echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19905
19906 fi
19907 rm -f conftest.$ac_objext conftest.$ac_ext
19908 else
19909   cat >conftest.$ac_ext <<_ACEOF
19910 #line $LINENO "configure"
19911 /* confdefs.h.  */
19912 _ACEOF
19913 cat confdefs.h >>conftest.$ac_ext
19914 cat >>conftest.$ac_ext <<_ACEOF
19915 /* end confdefs.h.  */
19916 int
19917 main ()
19918 {
19919   /* Are we little or big endian?  From Harbison&Steele.  */
19920   union
19921   {
19922     long l;
19923     char c[sizeof (long)];
19924   } u;
19925   u.l = 1;
19926   exit (u.c[sizeof (long) - 1] == 1);
19927 }
19928 _ACEOF
19929 rm -f conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931   (eval $ac_link) 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936   (eval $ac_try) 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }; }; then
19940   ac_cv_c_bigendian=no
19941 else
19942   echo "$as_me: program exited with status $ac_status" >&5
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19945
19946 ( exit $ac_status )
19947 ac_cv_c_bigendian=yes
19948 fi
19949 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19950 fi
19951 fi
19952 rm -f conftest.$ac_objext conftest.$ac_ext
19953 fi
19954 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19955 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19956 case $ac_cv_c_bigendian in
19957   yes)
19958     ENDIAN=big
19959  ;;
19960   no)
19961     ENDIAN=little
19962  ;;
19963   *)
19964     { { echo "$as_me:$LINENO: error: unknown endianness
19965 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19966 echo "$as_me: error: unknown endianness
19967 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19968    { (exit 1); exit 1; }; } ;;
19969 esac
19970
19971
19972 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19973 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19974 if test "${ac_cv_cxx_namespaces+set}" = set; then
19975   echo $ECHO_N "(cached) $ECHO_C" >&6
19976 else
19977
19978
19979  ac_ext=cc
19980 ac_cpp='$CXXCPP $CPPFLAGS'
19981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19984
19985  cat >conftest.$ac_ext <<_ACEOF
19986 #line $LINENO "configure"
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992 namespace Outer { namespace Inner { int i = 0; }}
19993 int
19994 main ()
19995 {
19996 using namespace Outer::Inner; return i;
19997   ;
19998   return 0;
19999 }
20000 _ACEOF
20001 rm -f conftest.$ac_objext
20002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20003   (eval $ac_compile) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } &&
20007          { ac_try='test -s conftest.$ac_objext'
20008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009   (eval $ac_try) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; }; then
20013   ac_cv_cxx_namespaces=yes
20014 else
20015   echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018 ac_cv_cxx_namespaces=no
20019 fi
20020 rm -f conftest.$ac_objext conftest.$ac_ext
20021  ac_ext=c
20022 ac_cpp='$CPP $CPPFLAGS'
20023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20026
20027
20028 fi
20029 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20030 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20031 if test "$ac_cv_cxx_namespaces" = yes; then
20032
20033 cat >>confdefs.h <<\_ACEOF
20034 #define HAVE_NAMESPACES
20035 _ACEOF
20036
20037 fi
20038
20039 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20040 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20041 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20042   echo $ECHO_N "(cached) $ECHO_C" >&6
20043 else
20044
20045
20046
20047   ac_ext=cc
20048 ac_cpp='$CXXCPP $CPPFLAGS'
20049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20052
20053   cat >conftest.$ac_ext <<_ACEOF
20054 #line $LINENO "configure"
20055 /* confdefs.h.  */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h.  */
20060 #include <ext/hash_map>
20061 #ifdef HAVE_NAMESPACES
20062 using namespace std;
20063 #endif
20064 int
20065 main ()
20066 {
20067 hash_map<int, int> t;
20068   ;
20069   return 0;
20070 }
20071 _ACEOF
20072 rm -f conftest.$ac_objext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20074   (eval $ac_compile) 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); } &&
20078          { ac_try='test -s conftest.$ac_objext'
20079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080   (eval $ac_try) 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); }; }; then
20084   ac_cv_cxx_have_std_ext_hash_map=yes
20085 else
20086   echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089 ac_cv_cxx_have_std_ext_hash_map=no
20090 fi
20091 rm -f conftest.$ac_objext conftest.$ac_ext
20092   ac_ext=c
20093 ac_cpp='$CPP $CPPFLAGS'
20094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20097
20098 fi
20099 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20100 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20101  HAVE_STD_EXT_HASH_MAP=0
20102  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20103  then
20104    HAVE_STD_EXT_HASH_MAP=1
20105  fi
20106
20107  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20108 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20109 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20110   echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112
20113
20114
20115   ac_ext=cc
20116 ac_cpp='$CXXCPP $CPPFLAGS'
20117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20120
20121   cat >conftest.$ac_ext <<_ACEOF
20122 #line $LINENO "configure"
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128 #include <ext/hash_map>
20129 #ifdef HAVE_NAMESPACES
20130 using namespace __gnu_cxx;
20131 #endif
20132 int
20133 main ()
20134 {
20135 hash_map<int,int> t;
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142   (eval $ac_compile) 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); } &&
20146          { ac_try='test -s conftest.$ac_objext'
20147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148   (eval $ac_try) 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; }; then
20152   ac_cv_cxx_have_gnu_ext_hash_map=yes
20153 else
20154   echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20156
20157 ac_cv_cxx_have_gnu_ext_hash_map=no
20158 fi
20159 rm -f conftest.$ac_objext conftest.$ac_ext
20160   ac_ext=c
20161 ac_cpp='$CPP $CPPFLAGS'
20162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20165
20166 fi
20167 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20168 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20169  HAVE_GNU_EXT_HASH_MAP=0
20170  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20171  then
20172    HAVE_GNU_EXT_HASH_MAP=1
20173  fi
20174
20175  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20176 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20177 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20178   echo $ECHO_N "(cached) $ECHO_C" >&6
20179 else
20180
20181
20182
20183   ac_ext=cc
20184 ac_cpp='$CXXCPP $CPPFLAGS'
20185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20188
20189   cat >conftest.$ac_ext <<_ACEOF
20190 #line $LINENO "configure"
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196 #include <hash_map>
20197 int
20198 main ()
20199 {
20200 hash_map<int,int> t;
20201   ;
20202   return 0;
20203 }
20204 _ACEOF
20205 rm -f conftest.$ac_objext
20206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20207   (eval $ac_compile) 2>&5
20208   ac_status=$?
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); } &&
20211          { ac_try='test -s conftest.$ac_objext'
20212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213   (eval $ac_try) 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); }; }; then
20217   ac_cv_cxx_have_global_hash_map=yes
20218 else
20219   echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20221
20222 ac_cv_cxx_have_global_hash_map=no
20223 fi
20224 rm -f conftest.$ac_objext conftest.$ac_ext
20225   ac_ext=c
20226 ac_cpp='$CPP $CPPFLAGS'
20227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20230
20231 fi
20232 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20233 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20234  HAVE_GLOBAL_HASH_MAP=0
20235  if test "$ac_cv_cxx_have_global_hash_map" = yes
20236  then
20237    HAVE_GLOBAL_HASH_MAP=1
20238  fi
20239
20240 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20241 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20242 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20243   echo $ECHO_N "(cached) $ECHO_C" >&6
20244 else
20245
20246
20247
20248   ac_ext=cc
20249 ac_cpp='$CXXCPP $CPPFLAGS'
20250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20253
20254   cat >conftest.$ac_ext <<_ACEOF
20255 #line $LINENO "configure"
20256 /* confdefs.h.  */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h.  */
20261 #include <ext/hash_set>
20262 #ifdef HAVE_NAMESPACES
20263 using namespace std;
20264 #endif
20265 int
20266 main ()
20267 {
20268 hash_set<int> t;
20269   ;
20270   return 0;
20271 }
20272 _ACEOF
20273 rm -f conftest.$ac_objext
20274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20275   (eval $ac_compile) 2>&5
20276   ac_status=$?
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); } &&
20279          { ac_try='test -s conftest.$ac_objext'
20280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281   (eval $ac_try) 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); }; }; then
20285   ac_cv_cxx_have_std_ext_hash_set=yes
20286 else
20287   echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290 ac_cv_cxx_have_std_ext_hash_set=no
20291 fi
20292 rm -f conftest.$ac_objext conftest.$ac_ext
20293   ac_ext=c
20294 ac_cpp='$CPP $CPPFLAGS'
20295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20298
20299 fi
20300 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20301 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20302  HAVE_STD_EXT_HASH_SET=0
20303  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20304  then
20305    HAVE_STD_EXT_HASH_SET=1
20306  fi
20307
20308  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20309 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20310 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20311   echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313
20314
20315
20316   ac_ext=cc
20317 ac_cpp='$CXXCPP $CPPFLAGS'
20318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20321
20322   cat >conftest.$ac_ext <<_ACEOF
20323 #line $LINENO "configure"
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329 #include <ext/hash_set>
20330 #ifdef HAVE_NAMESPACES
20331 using namespace __gnu_cxx;
20332 #endif
20333 int
20334 main ()
20335 {
20336 hash_set<int> t;
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext
20342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20343   (eval $ac_compile) 2>&5
20344   ac_status=$?
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } &&
20347          { ac_try='test -s conftest.$ac_objext'
20348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349   (eval $ac_try) 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); }; }; then
20353   ac_cv_cxx_have_gnu_ext_hash_set=yes
20354 else
20355   echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20357
20358 ac_cv_cxx_have_gnu_ext_hash_set=no
20359 fi
20360 rm -f conftest.$ac_objext conftest.$ac_ext
20361   ac_ext=c
20362 ac_cpp='$CPP $CPPFLAGS'
20363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20366
20367 fi
20368 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20369 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20370  HAVE_GNU_EXT_HASH_SET=0
20371  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20372  then
20373    HAVE_GNU_EXT_HASH_SET=1
20374  fi
20375
20376  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20377 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20378 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20379   echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381
20382
20383
20384   ac_ext=cc
20385 ac_cpp='$CXXCPP $CPPFLAGS'
20386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20389
20390   cat >conftest.$ac_ext <<_ACEOF
20391 #line $LINENO "configure"
20392 /* confdefs.h.  */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h.  */
20397 #include <hash_set>
20398 int
20399 main ()
20400 {
20401 hash_set<int> t; return 0;
20402   ;
20403   return 0;
20404 }
20405 _ACEOF
20406 rm -f conftest.$ac_objext
20407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20408   (eval $ac_compile) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); } &&
20412          { ac_try='test -s conftest.$ac_objext'
20413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414   (eval $ac_try) 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); }; }; then
20418   ac_cv_cxx_have_global_hash_set=yes
20419 else
20420   echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20422
20423 ac_cv_cxx_have_global_hash_set=no
20424 fi
20425 rm -f conftest.$ac_objext conftest.$ac_ext
20426   ac_ext=c
20427 ac_cpp='$CPP $CPPFLAGS'
20428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20431
20432 fi
20433 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20434 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20435  HAVE_GLOBAL_HASH_SET=0
20436  if test "$ac_cv_cxx_have_global_hash_set" = yes
20437  then
20438    HAVE_GLOBAL_HASH_SET=1
20439  fi
20440
20441 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20442 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20443 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20444   echo $ECHO_N "(cached) $ECHO_C" >&6
20445 else
20446
20447
20448
20449   ac_ext=cc
20450 ac_cpp='$CXXCPP $CPPFLAGS'
20451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20454
20455   cat >conftest.$ac_ext <<_ACEOF
20456 #line $LINENO "configure"
20457 /* confdefs.h.  */
20458 _ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h.  */
20462 #include <iterator>
20463 #ifdef HAVE_NAMESPACES
20464 using namespace std;
20465 #endif
20466 int
20467 main ()
20468 {
20469 iterator<int,int,int> t; return 0;
20470   ;
20471   return 0;
20472 }
20473 _ACEOF
20474 rm -f conftest.$ac_objext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476   (eval $ac_compile) 2>&5
20477   ac_status=$?
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); } &&
20480          { ac_try='test -s conftest.$ac_objext'
20481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482   (eval $ac_try) 2>&5
20483   ac_status=$?
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); }; }; then
20486   ac_cv_cxx_have_std_iterator=yes
20487 else
20488   echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20490
20491 ac_cv_cxx_have_std_iterator=no
20492 fi
20493 rm -f conftest.$ac_objext conftest.$ac_ext
20494   ac_ext=c
20495 ac_cpp='$CPP $CPPFLAGS'
20496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20499
20500
20501 fi
20502 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20503 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20504 HAVE_STD_ITERATOR=0
20505 if test "$ac_cv_cxx_have_std_iterator" = yes
20506 then
20507    HAVE_STD_ITERATOR=1
20508 fi
20509
20510 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20511 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20512 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20513   echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515
20516
20517
20518   ac_ext=cc
20519 ac_cpp='$CXXCPP $CPPFLAGS'
20520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20523
20524   cat >conftest.$ac_ext <<_ACEOF
20525 #line $LINENO "configure"
20526 /* confdefs.h.  */
20527 _ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h.  */
20531 #include <iterator>
20532 #ifdef HAVE_NAMESPACES
20533 using namespace std;
20534 #endif
20535 int
20536 main ()
20537 {
20538 bidirectional_iterator<int,int> t; return 0;
20539   ;
20540   return 0;
20541 }
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545   (eval $ac_compile) 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } &&
20549          { ac_try='test -s conftest.$ac_objext'
20550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551   (eval $ac_try) 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); }; }; then
20555   ac_cv_cxx_have_bi_iterator=yes
20556 else
20557   echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560 ac_cv_cxx_have_bi_iterator=no
20561 fi
20562 rm -f conftest.$ac_objext conftest.$ac_ext
20563   ac_ext=c
20564 ac_cpp='$CPP $CPPFLAGS'
20565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20568
20569
20570 fi
20571 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20572 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20573 HAVE_BI_ITERATOR=0
20574 if test "$ac_cv_cxx_have_bi_iterator" = yes
20575 then
20576    HAVE_BI_ITERATOR=1
20577 fi
20578
20579 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20580 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20581 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20582   echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584
20585
20586
20587   ac_ext=cc
20588 ac_cpp='$CXXCPP $CPPFLAGS'
20589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20592
20593   cat >conftest.$ac_ext <<_ACEOF
20594 #line $LINENO "configure"
20595 /* confdefs.h.  */
20596 _ACEOF
20597 cat confdefs.h >>conftest.$ac_ext
20598 cat >>conftest.$ac_ext <<_ACEOF
20599 /* end confdefs.h.  */
20600 #include <iterator>
20601 #ifdef HAVE_NAMESPACES
20602 using namespace std;
20603 #endif
20604 int
20605 main ()
20606 {
20607 forward_iterator<int,int> t; return 0;
20608   ;
20609   return 0;
20610 }
20611 _ACEOF
20612 rm -f conftest.$ac_objext
20613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20614   (eval $ac_compile) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); } &&
20618          { ac_try='test -s conftest.$ac_objext'
20619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620   (eval $ac_try) 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; }; then
20624   ac_cv_cxx_have_fwd_iterator=yes
20625 else
20626   echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ac_cv_cxx_have_fwd_iterator=no
20630 fi
20631 rm -f conftest.$ac_objext conftest.$ac_ext
20632   ac_ext=c
20633 ac_cpp='$CPP $CPPFLAGS'
20634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20637
20638
20639 fi
20640 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20641 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20642 HAVE_FWD_ITERATOR=0
20643 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20644 then
20645    HAVE_FWD_ITERATOR=1
20646 fi
20647
20648
20649 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20650 # for constant arguments.  Useless!
20651 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20652 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20653 if test "${ac_cv_working_alloca_h+set}" = set; then
20654   echo $ECHO_N "(cached) $ECHO_C" >&6
20655 else
20656   cat >conftest.$ac_ext <<_ACEOF
20657 #line $LINENO "configure"
20658 /* confdefs.h.  */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h.  */
20663 #include <alloca.h>
20664 int
20665 main ()
20666 {
20667 char *p = (char *) alloca (2 * sizeof (int));
20668   ;
20669   return 0;
20670 }
20671 _ACEOF
20672 rm -f conftest.$ac_objext conftest$ac_exeext
20673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20674   (eval $ac_link) 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); } &&
20678          { ac_try='test -s conftest$ac_exeext'
20679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680   (eval $ac_try) 2>&5
20681   ac_status=$?
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); }; }; then
20684   ac_cv_working_alloca_h=yes
20685 else
20686   echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 ac_cv_working_alloca_h=no
20690 fi
20691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20692 fi
20693 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20694 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20695 if test $ac_cv_working_alloca_h = yes; then
20696
20697 cat >>confdefs.h <<\_ACEOF
20698 #define HAVE_ALLOCA_H 1
20699 _ACEOF
20700
20701 fi
20702
20703 echo "$as_me:$LINENO: checking for alloca" >&5
20704 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20705 if test "${ac_cv_func_alloca_works+set}" = set; then
20706   echo $ECHO_N "(cached) $ECHO_C" >&6
20707 else
20708   cat >conftest.$ac_ext <<_ACEOF
20709 #line $LINENO "configure"
20710 /* confdefs.h.  */
20711 _ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h.  */
20715 #ifdef __GNUC__
20716 # define alloca __builtin_alloca
20717 #else
20718 # ifdef _MSC_VER
20719 #  include <malloc.h>
20720 #  define alloca _alloca
20721 # else
20722 #  if HAVE_ALLOCA_H
20723 #   include <alloca.h>
20724 #  else
20725 #   ifdef _AIX
20726  #pragma alloca
20727 #   else
20728 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20729 char *alloca ();
20730 #    endif
20731 #   endif
20732 #  endif
20733 # endif
20734 #endif
20735
20736 int
20737 main ()
20738 {
20739 char *p = (char *) alloca (1);
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 rm -f conftest.$ac_objext conftest$ac_exeext
20745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20746   (eval $ac_link) 2>&5
20747   ac_status=$?
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); } &&
20750          { ac_try='test -s conftest$ac_exeext'
20751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752   (eval $ac_try) 2>&5
20753   ac_status=$?
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); }; }; then
20756   ac_cv_func_alloca_works=yes
20757 else
20758   echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20760
20761 ac_cv_func_alloca_works=no
20762 fi
20763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20764 fi
20765 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20766 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20767
20768 if test $ac_cv_func_alloca_works = yes; then
20769
20770 cat >>confdefs.h <<\_ACEOF
20771 #define HAVE_ALLOCA 1
20772 _ACEOF
20773
20774 else
20775   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20776 # that cause trouble.  Some versions do not even contain alloca or
20777 # contain a buggy version.  If you still want to use their alloca,
20778 # use ar to extract alloca.o from them instead of compiling alloca.c.
20779
20780 ALLOCA=alloca.$ac_objext
20781
20782 cat >>confdefs.h <<\_ACEOF
20783 #define C_ALLOCA 1
20784 _ACEOF
20785
20786
20787 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20788 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20789 if test "${ac_cv_os_cray+set}" = set; then
20790   echo $ECHO_N "(cached) $ECHO_C" >&6
20791 else
20792   cat >conftest.$ac_ext <<_ACEOF
20793 #line $LINENO "configure"
20794 /* confdefs.h.  */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h.  */
20799 #if defined(CRAY) && ! defined(CRAY2)
20800 webecray
20801 #else
20802 wenotbecray
20803 #endif
20804
20805 _ACEOF
20806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20807   $EGREP "webecray" >/dev/null 2>&1; then
20808   ac_cv_os_cray=yes
20809 else
20810   ac_cv_os_cray=no
20811 fi
20812 rm -f conftest*
20813
20814 fi
20815 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20816 echo "${ECHO_T}$ac_cv_os_cray" >&6
20817 if test $ac_cv_os_cray = yes; then
20818   for ac_func in _getb67 GETB67 getb67; do
20819     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20820 echo "$as_me:$LINENO: checking for $ac_func" >&5
20821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20822 if eval "test \"\${$as_ac_var+set}\" = set"; then
20823   echo $ECHO_N "(cached) $ECHO_C" >&6
20824 else
20825   cat >conftest.$ac_ext <<_ACEOF
20826 #line $LINENO "configure"
20827 /* confdefs.h.  */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h.  */
20832 /* System header to define __stub macros and hopefully few prototypes,
20833     which can conflict with char $ac_func (); below.
20834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20835     <limits.h> exists even on freestanding compilers.  */
20836 #ifdef __STDC__
20837 # include <limits.h>
20838 #else
20839 # include <assert.h>
20840 #endif
20841 /* Override any gcc2 internal prototype to avoid an error.  */
20842 #ifdef __cplusplus
20843 extern "C"
20844 {
20845 #endif
20846 /* We use char because int might match the return type of a gcc2
20847    builtin and then its argument prototype would still apply.  */
20848 char $ac_func ();
20849 /* The GNU C library defines this for functions which it implements
20850     to always fail with ENOSYS.  Some functions are actually named
20851     something starting with __ and the normal name is an alias.  */
20852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20853 choke me
20854 #else
20855 char (*f) () = $ac_func;
20856 #endif
20857 #ifdef __cplusplus
20858 }
20859 #endif
20860
20861 int
20862 main ()
20863 {
20864 return f != $ac_func;
20865   ;
20866   return 0;
20867 }
20868 _ACEOF
20869 rm -f conftest.$ac_objext conftest$ac_exeext
20870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20871   (eval $ac_link) 2>&5
20872   ac_status=$?
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } &&
20875          { ac_try='test -s conftest$ac_exeext'
20876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877   (eval $ac_try) 2>&5
20878   ac_status=$?
20879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880   (exit $ac_status); }; }; then
20881   eval "$as_ac_var=yes"
20882 else
20883   echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20885
20886 eval "$as_ac_var=no"
20887 fi
20888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20889 fi
20890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20892 if test `eval echo '${'$as_ac_var'}'` = yes; then
20893
20894 cat >>confdefs.h <<_ACEOF
20895 #define CRAY_STACKSEG_END $ac_func
20896 _ACEOF
20897
20898     break
20899 fi
20900
20901   done
20902 fi
20903
20904 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20905 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20906 if test "${ac_cv_c_stack_direction+set}" = set; then
20907   echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909   if test "$cross_compiling" = yes; then
20910   ac_cv_c_stack_direction=0
20911 else
20912   cat >conftest.$ac_ext <<_ACEOF
20913 #line $LINENO "configure"
20914 /* confdefs.h.  */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h.  */
20919 int
20920 find_stack_direction ()
20921 {
20922   static char *addr = 0;
20923   auto char dummy;
20924   if (addr == 0)
20925     {
20926       addr = &dummy;
20927       return find_stack_direction ();
20928     }
20929   else
20930     return (&dummy > addr) ? 1 : -1;
20931 }
20932
20933 int
20934 main ()
20935 {
20936   exit (find_stack_direction () < 0);
20937 }
20938 _ACEOF
20939 rm -f conftest$ac_exeext
20940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20941   (eval $ac_link) 2>&5
20942   ac_status=$?
20943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946   (eval $ac_try) 2>&5
20947   ac_status=$?
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); }; }; then
20950   ac_cv_c_stack_direction=1
20951 else
20952   echo "$as_me: program exited with status $ac_status" >&5
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20955
20956 ( exit $ac_status )
20957 ac_cv_c_stack_direction=-1
20958 fi
20959 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20960 fi
20961 fi
20962 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20963 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20964
20965 cat >>confdefs.h <<_ACEOF
20966 #define STACK_DIRECTION $ac_cv_c_stack_direction
20967 _ACEOF
20968
20969
20970 fi
20971
20972
20973
20974 for ac_header in stdlib.h unistd.h
20975 do
20976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20978   echo "$as_me:$LINENO: checking for $ac_header" >&5
20979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20981   echo $ECHO_N "(cached) $ECHO_C" >&6
20982 fi
20983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20985 else
20986   # Is the header compilable?
20987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20989 cat >conftest.$ac_ext <<_ACEOF
20990 #line $LINENO "configure"
20991 /* confdefs.h.  */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h.  */
20996 $ac_includes_default
20997 #include <$ac_header>
20998 _ACEOF
20999 rm -f conftest.$ac_objext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001   (eval $ac_compile) 2>&5
21002   ac_status=$?
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); } &&
21005          { ac_try='test -s conftest.$ac_objext'
21006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007   (eval $ac_try) 2>&5
21008   ac_status=$?
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); }; }; then
21011   ac_header_compiler=yes
21012 else
21013   echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21015
21016 ac_header_compiler=no
21017 fi
21018 rm -f conftest.$ac_objext conftest.$ac_ext
21019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21020 echo "${ECHO_T}$ac_header_compiler" >&6
21021
21022 # Is the header present?
21023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21025 cat >conftest.$ac_ext <<_ACEOF
21026 #line $LINENO "configure"
21027 /* confdefs.h.  */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h.  */
21032 #include <$ac_header>
21033 _ACEOF
21034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21036   ac_status=$?
21037   grep -v '^ *+' conftest.er1 >conftest.err
21038   rm -f conftest.er1
21039   cat conftest.err >&5
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); } >/dev/null; then
21042   if test -s conftest.err; then
21043     ac_cpp_err=$ac_c_preproc_warn_flag
21044   else
21045     ac_cpp_err=
21046   fi
21047 else
21048   ac_cpp_err=yes
21049 fi
21050 if test -z "$ac_cpp_err"; then
21051   ac_header_preproc=yes
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056   ac_header_preproc=no
21057 fi
21058 rm -f conftest.err conftest.$ac_ext
21059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21060 echo "${ECHO_T}$ac_header_preproc" >&6
21061
21062 # So?  What about this header?
21063 case $ac_header_compiler:$ac_header_preproc in
21064   yes:no )
21065     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21069     (
21070       cat <<\_ASBOX
21071 ## ------------------------------------ ##
21072 ## Report this to bug-autoconf@gnu.org. ##
21073 ## ------------------------------------ ##
21074 _ASBOX
21075     ) |
21076       sed "s/^/$as_me: WARNING:     /" >&2
21077     ;;
21078   no:yes )
21079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21081     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21085     (
21086       cat <<\_ASBOX
21087 ## ------------------------------------ ##
21088 ## Report this to bug-autoconf@gnu.org. ##
21089 ## ------------------------------------ ##
21090 _ASBOX
21091     ) |
21092       sed "s/^/$as_me: WARNING:     /" >&2
21093     ;;
21094 esac
21095 echo "$as_me:$LINENO: checking for $ac_header" >&5
21096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21098   echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100   eval "$as_ac_Header=$ac_header_preproc"
21101 fi
21102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21104
21105 fi
21106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21107   cat >>confdefs.h <<_ACEOF
21108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21109 _ACEOF
21110
21111 fi
21112
21113 done
21114
21115
21116 for ac_func in getpagesize
21117 do
21118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21119 echo "$as_me:$LINENO: checking for $ac_func" >&5
21120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21121 if eval "test \"\${$as_ac_var+set}\" = set"; then
21122   echo $ECHO_N "(cached) $ECHO_C" >&6
21123 else
21124   cat >conftest.$ac_ext <<_ACEOF
21125 #line $LINENO "configure"
21126 /* confdefs.h.  */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h.  */
21131 /* System header to define __stub macros and hopefully few prototypes,
21132     which can conflict with char $ac_func (); below.
21133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21134     <limits.h> exists even on freestanding compilers.  */
21135 #ifdef __STDC__
21136 # include <limits.h>
21137 #else
21138 # include <assert.h>
21139 #endif
21140 /* Override any gcc2 internal prototype to avoid an error.  */
21141 #ifdef __cplusplus
21142 extern "C"
21143 {
21144 #endif
21145 /* We use char because int might match the return type of a gcc2
21146    builtin and then its argument prototype would still apply.  */
21147 char $ac_func ();
21148 /* The GNU C library defines this for functions which it implements
21149     to always fail with ENOSYS.  Some functions are actually named
21150     something starting with __ and the normal name is an alias.  */
21151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21152 choke me
21153 #else
21154 char (*f) () = $ac_func;
21155 #endif
21156 #ifdef __cplusplus
21157 }
21158 #endif
21159
21160 int
21161 main ()
21162 {
21163 return f != $ac_func;
21164   ;
21165   return 0;
21166 }
21167 _ACEOF
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21170   (eval $ac_link) 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); } &&
21174          { ac_try='test -s conftest$ac_exeext'
21175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176   (eval $ac_try) 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); }; }; then
21180   eval "$as_ac_var=yes"
21181 else
21182   echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21184
21185 eval "$as_ac_var=no"
21186 fi
21187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21188 fi
21189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21191 if test `eval echo '${'$as_ac_var'}'` = yes; then
21192   cat >>confdefs.h <<_ACEOF
21193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21194 _ACEOF
21195
21196 fi
21197 done
21198
21199 echo "$as_me:$LINENO: checking for working mmap" >&5
21200 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21201 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21202   echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204   if test "$cross_compiling" = yes; then
21205   ac_cv_func_mmap_fixed_mapped=no
21206 else
21207   cat >conftest.$ac_ext <<_ACEOF
21208 #line $LINENO "configure"
21209 /* confdefs.h.  */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h.  */
21214 $ac_includes_default
21215 /* malloc might have been renamed as rpl_malloc. */
21216 #undef malloc
21217
21218 /* Thanks to Mike Haertel and Jim Avera for this test.
21219    Here is a matrix of mmap possibilities:
21220         mmap private not fixed
21221         mmap private fixed at somewhere currently unmapped
21222         mmap private fixed at somewhere already mapped
21223         mmap shared not fixed
21224         mmap shared fixed at somewhere currently unmapped
21225         mmap shared fixed at somewhere already mapped
21226    For private mappings, we should verify that changes cannot be read()
21227    back from the file, nor mmap's back from the file at a different
21228    address.  (There have been systems where private was not correctly
21229    implemented like the infamous i386 svr4.0, and systems where the
21230    VM page cache was not coherent with the file system buffer cache
21231    like early versions of FreeBSD and possibly contemporary NetBSD.)
21232    For shared mappings, we should conversely verify that changes get
21233    propagated back to all the places they're supposed to be.
21234
21235    Grep wants private fixed already mapped.
21236    The main things grep needs to know about mmap are:
21237    * does it exist and is it safe to write into the mmap'd area
21238    * how to use it (BSD variants)  */
21239
21240 #include <fcntl.h>
21241 #include <sys/mman.h>
21242
21243 #if !STDC_HEADERS && !HAVE_STDLIB_H
21244 char *malloc ();
21245 #endif
21246
21247 /* This mess was copied from the GNU getpagesize.h.  */
21248 #if !HAVE_GETPAGESIZE
21249 /* Assume that all systems that can run configure have sys/param.h.  */
21250 # if !HAVE_SYS_PARAM_H
21251 #  define HAVE_SYS_PARAM_H 1
21252 # endif
21253
21254 # ifdef _SC_PAGESIZE
21255 #  define getpagesize() sysconf(_SC_PAGESIZE)
21256 # else /* no _SC_PAGESIZE */
21257 #  if HAVE_SYS_PARAM_H
21258 #   include <sys/param.h>
21259 #   ifdef EXEC_PAGESIZE
21260 #    define getpagesize() EXEC_PAGESIZE
21261 #   else /* no EXEC_PAGESIZE */
21262 #    ifdef NBPG
21263 #     define getpagesize() NBPG * CLSIZE
21264 #     ifndef CLSIZE
21265 #      define CLSIZE 1
21266 #     endif /* no CLSIZE */
21267 #    else /* no NBPG */
21268 #     ifdef NBPC
21269 #      define getpagesize() NBPC
21270 #     else /* no NBPC */
21271 #      ifdef PAGESIZE
21272 #       define getpagesize() PAGESIZE
21273 #      endif /* PAGESIZE */
21274 #     endif /* no NBPC */
21275 #    endif /* no NBPG */
21276 #   endif /* no EXEC_PAGESIZE */
21277 #  else /* no HAVE_SYS_PARAM_H */
21278 #   define getpagesize() 8192   /* punt totally */
21279 #  endif /* no HAVE_SYS_PARAM_H */
21280 # endif /* no _SC_PAGESIZE */
21281
21282 #endif /* no HAVE_GETPAGESIZE */
21283
21284 int
21285 main ()
21286 {
21287   char *data, *data2, *data3;
21288   int i, pagesize;
21289   int fd;
21290
21291   pagesize = getpagesize ();
21292
21293   /* First, make a file with some known garbage in it. */
21294   data = (char *) malloc (pagesize);
21295   if (!data)
21296     exit (1);
21297   for (i = 0; i < pagesize; ++i)
21298     *(data + i) = rand ();
21299   umask (0);
21300   fd = creat ("conftest.mmap", 0600);
21301   if (fd < 0)
21302     exit (1);
21303   if (write (fd, data, pagesize) != pagesize)
21304     exit (1);
21305   close (fd);
21306
21307   /* Next, try to mmap the file at a fixed address which already has
21308      something else allocated at it.  If we can, also make sure that
21309      we see the same garbage.  */
21310   fd = open ("conftest.mmap", O_RDWR);
21311   if (fd < 0)
21312     exit (1);
21313   data2 = (char *) malloc (2 * pagesize);
21314   if (!data2)
21315     exit (1);
21316   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21317   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21318                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21319     exit (1);
21320   for (i = 0; i < pagesize; ++i)
21321     if (*(data + i) != *(data2 + i))
21322       exit (1);
21323
21324   /* Finally, make sure that changes to the mapped area do not
21325      percolate back to the file as seen by read().  (This is a bug on
21326      some variants of i386 svr4.0.)  */
21327   for (i = 0; i < pagesize; ++i)
21328     *(data2 + i) = *(data2 + i) + 1;
21329   data3 = (char *) malloc (pagesize);
21330   if (!data3)
21331     exit (1);
21332   if (read (fd, data3, pagesize) != pagesize)
21333     exit (1);
21334   for (i = 0; i < pagesize; ++i)
21335     if (*(data + i) != *(data3 + i))
21336       exit (1);
21337   close (fd);
21338   exit (0);
21339 }
21340 _ACEOF
21341 rm -f conftest$ac_exeext
21342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21343   (eval $ac_link) 2>&5
21344   ac_status=$?
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348   (eval $ac_try) 2>&5
21349   ac_status=$?
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); }; }; then
21352   ac_cv_func_mmap_fixed_mapped=yes
21353 else
21354   echo "$as_me: program exited with status $ac_status" >&5
21355 echo "$as_me: failed program was:" >&5
21356 sed 's/^/| /' conftest.$ac_ext >&5
21357
21358 ( exit $ac_status )
21359 ac_cv_func_mmap_fixed_mapped=no
21360 fi
21361 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21362 fi
21363 fi
21364 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21365 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21366 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21367
21368 cat >>confdefs.h <<\_ACEOF
21369 #define HAVE_MMAP 1
21370 _ACEOF
21371
21372 fi
21373 rm -f conftest.mmap
21374
21375 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21376 then
21377         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21378 echo "$as_me: WARNING: mmap() required but not found" >&2;}
21379 fi
21380 echo "$as_me:$LINENO: checking for mmap of files" >&5
21381 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21382 if test "${ac_cv_func_mmap_file+set}" = set; then
21383   echo $ECHO_N "(cached) $ECHO_C" >&6
21384 else
21385
21386
21387   ac_ext=c
21388 ac_cpp='$CPP $CPPFLAGS'
21389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21392
21393   if test "$cross_compiling" = yes; then
21394   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21395 See \`config.log' for more details." >&5
21396 echo "$as_me: error: cannot run test program while cross compiling
21397 See \`config.log' for more details." >&2;}
21398    { (exit 1); exit 1; }; }
21399 else
21400   cat >conftest.$ac_ext <<_ACEOF
21401 #line $LINENO "configure"
21402 /* confdefs.h.  */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h.  */
21407
21408 #ifdef HAVE_SYS_TYPES_H
21409 #include <sys/types.h>
21410 #endif
21411
21412 #ifdef HAVE_SYS_MMAN_H
21413 #include <sys/mman.h>
21414 #endif
21415
21416 #ifdef HAVE_FCNTL_H
21417 #include <fcntl.h>
21418 #endif
21419
21420   int fd;
21421   int main () {
21422   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21423 _ACEOF
21424 rm -f conftest$ac_exeext
21425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426   (eval $ac_link) 2>&5
21427   ac_status=$?
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431   (eval $ac_try) 2>&5
21432   ac_status=$?
21433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); }; }; then
21435   ac_cv_func_mmap_file=yes
21436 else
21437   echo "$as_me: program exited with status $ac_status" >&5
21438 echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21440
21441 ( exit $ac_status )
21442 ac_cv_func_mmap_file=no
21443 fi
21444 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21445 fi
21446   ac_ext=c
21447 ac_cpp='$CPP $CPPFLAGS'
21448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21451
21452
21453 fi
21454 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21455 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21456 if test "$ac_cv_func_mmap_file" = yes; then
21457
21458 cat >>confdefs.h <<\_ACEOF
21459 #define HAVE_MMAP_FILE
21460 _ACEOF
21461
21462    MMAP_FILE=yes
21463
21464 fi
21465
21466 if test "$ac_cv_func_mmap_file" = "no"
21467 then
21468         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21469 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21470 fi
21471 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21472 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21473 if test "${ac_cv_header_mmap_anon+set}" = set; then
21474   echo $ECHO_N "(cached) $ECHO_C" >&6
21475 else
21476
21477
21478   ac_ext=c
21479 ac_cpp='$CPP $CPPFLAGS'
21480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21483
21484   cat >conftest.$ac_ext <<_ACEOF
21485 #line $LINENO "configure"
21486 /* confdefs.h.  */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h.  */
21491 #include <sys/mman.h>
21492   #include <unistd.h>
21493   #include <fcntl.h>
21494 int
21495 main ()
21496 {
21497 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21498   ;
21499   return 0;
21500 }
21501 _ACEOF
21502 rm -f conftest.$ac_objext
21503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21504   (eval $ac_compile) 2>&5
21505   ac_status=$?
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } &&
21508          { ac_try='test -s conftest.$ac_objext'
21509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510   (eval $ac_try) 2>&5
21511   ac_status=$?
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); }; }; then
21514   ac_cv_header_mmap_anon=yes
21515 else
21516   echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519 ac_cv_header_mmap_anon=no
21520 fi
21521 rm -f conftest.$ac_objext conftest.$ac_ext
21522   ac_ext=c
21523 ac_cpp='$CPP $CPPFLAGS'
21524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21527
21528
21529 fi
21530 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21531 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21532 if test "$ac_cv_header_mmap_anon" = yes; then
21533
21534 cat >>confdefs.h <<\_ACEOF
21535 #define HAVE_MMAP_ANONYMOUS
21536 _ACEOF
21537
21538 fi
21539
21540 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21541 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21542 if test "${ac_cv_type_signal+set}" = set; then
21543   echo $ECHO_N "(cached) $ECHO_C" >&6
21544 else
21545   cat >conftest.$ac_ext <<_ACEOF
21546 #line $LINENO "configure"
21547 /* confdefs.h.  */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h.  */
21552 #include <sys/types.h>
21553 #include <signal.h>
21554 #ifdef signal
21555 # undef signal
21556 #endif
21557 #ifdef __cplusplus
21558 extern "C" void (*signal (int, void (*)(int)))(int);
21559 #else
21560 void (*signal ()) ();
21561 #endif
21562
21563 int
21564 main ()
21565 {
21566 int i;
21567   ;
21568   return 0;
21569 }
21570 _ACEOF
21571 rm -f conftest.$ac_objext
21572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21573   (eval $ac_compile) 2>&5
21574   ac_status=$?
21575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576   (exit $ac_status); } &&
21577          { ac_try='test -s conftest.$ac_objext'
21578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579   (eval $ac_try) 2>&5
21580   ac_status=$?
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); }; }; then
21583   ac_cv_type_signal=void
21584 else
21585   echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21587
21588 ac_cv_type_signal=int
21589 fi
21590 rm -f conftest.$ac_objext conftest.$ac_ext
21591 fi
21592 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21593 echo "${ECHO_T}$ac_cv_type_signal" >&6
21594
21595 cat >>confdefs.h <<_ACEOF
21596 #define RETSIGTYPE $ac_cv_type_signal
21597 _ACEOF
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
21610 do
21611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21612 echo "$as_me:$LINENO: checking for $ac_func" >&5
21613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21614 if eval "test \"\${$as_ac_var+set}\" = set"; then
21615   echo $ECHO_N "(cached) $ECHO_C" >&6
21616 else
21617   cat >conftest.$ac_ext <<_ACEOF
21618 #line $LINENO "configure"
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 /* System header to define __stub macros and hopefully few prototypes,
21625     which can conflict with char $ac_func (); below.
21626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21627     <limits.h> exists even on freestanding compilers.  */
21628 #ifdef __STDC__
21629 # include <limits.h>
21630 #else
21631 # include <assert.h>
21632 #endif
21633 /* Override any gcc2 internal prototype to avoid an error.  */
21634 #ifdef __cplusplus
21635 extern "C"
21636 {
21637 #endif
21638 /* We use char because int might match the return type of a gcc2
21639    builtin and then its argument prototype would still apply.  */
21640 char $ac_func ();
21641 /* The GNU C library defines this for functions which it implements
21642     to always fail with ENOSYS.  Some functions are actually named
21643     something starting with __ and the normal name is an alias.  */
21644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21645 choke me
21646 #else
21647 char (*f) () = $ac_func;
21648 #endif
21649 #ifdef __cplusplus
21650 }
21651 #endif
21652
21653 int
21654 main ()
21655 {
21656 return f != $ac_func;
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21663   (eval $ac_link) 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); } &&
21667          { ac_try='test -s conftest$ac_exeext'
21668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669   (eval $ac_try) 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); }; }; then
21673   eval "$as_ac_var=yes"
21674 else
21675   echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21677
21678 eval "$as_ac_var=no"
21679 fi
21680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21681 fi
21682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21684 if test `eval echo '${'$as_ac_var'}'` = yes; then
21685   cat >>confdefs.h <<_ACEOF
21686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21687 _ACEOF
21688
21689 fi
21690 done
21691
21692 echo "$as_me:$LINENO: checking for mprotect" >&5
21693 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21694 if test "${ac_cv_func_mprotect+set}" = set; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697   cat >conftest.$ac_ext <<_ACEOF
21698 #line $LINENO "configure"
21699 /* confdefs.h.  */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h.  */
21704 /* System header to define __stub macros and hopefully few prototypes,
21705     which can conflict with char mprotect (); below.
21706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21707     <limits.h> exists even on freestanding compilers.  */
21708 #ifdef __STDC__
21709 # include <limits.h>
21710 #else
21711 # include <assert.h>
21712 #endif
21713 /* Override any gcc2 internal prototype to avoid an error.  */
21714 #ifdef __cplusplus
21715 extern "C"
21716 {
21717 #endif
21718 /* We use char because int might match the return type of a gcc2
21719    builtin and then its argument prototype would still apply.  */
21720 char mprotect ();
21721 /* The GNU C library defines this for functions which it implements
21722     to always fail with ENOSYS.  Some functions are actually named
21723     something starting with __ and the normal name is an alias.  */
21724 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21725 choke me
21726 #else
21727 char (*f) () = mprotect;
21728 #endif
21729 #ifdef __cplusplus
21730 }
21731 #endif
21732
21733 int
21734 main ()
21735 {
21736 return f != mprotect;
21737   ;
21738   return 0;
21739 }
21740 _ACEOF
21741 rm -f conftest.$ac_objext conftest$ac_exeext
21742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21743   (eval $ac_link) 2>&5
21744   ac_status=$?
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); } &&
21747          { ac_try='test -s conftest$ac_exeext'
21748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749   (eval $ac_try) 2>&5
21750   ac_status=$?
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); }; }; then
21753   ac_cv_func_mprotect=yes
21754 else
21755   echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21757
21758 ac_cv_func_mprotect=no
21759 fi
21760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21761 fi
21762 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21763 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21764 if test $ac_cv_func_mprotect = yes; then
21765   :
21766 else
21767   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21768 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21769    { (exit 1); exit 1; }; }
21770 fi
21771
21772
21773
21774
21775
21776   ac_ext=c
21777 ac_cpp='$CPP $CPPFLAGS'
21778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21781
21782   oldcflags="$CFLAGS"
21783   CFLAGS="$CFLAGS -Wl,-R."
21784   cat >conftest.$ac_ext <<_ACEOF
21785 int main() { return 0; }
21786 _ACEOF
21787 rm -f conftest.$ac_objext conftest$ac_exeext
21788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21789   (eval $ac_link) 2>&5
21790   ac_status=$?
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); } &&
21793          { ac_try='test -s conftest$ac_exeext'
21794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795   (eval $ac_try) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); }; }; then
21799   ac_cv_link_use_r=yes
21800 else
21801   echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21803
21804 ac_cv_link_use_r=no
21805 fi
21806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21807   CFLAGS="$oldcflags"
21808   ac_ext=c
21809 ac_cpp='$CPP $CPPFLAGS'
21810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21813
21814   if test "$ac_cv_link_use_r" = yes
21815   then
21816
21817 cat >>confdefs.h <<\_ACEOF
21818 #define HAVE_LINK_R 1
21819 _ACEOF
21820
21821   fi
21822
21823
21824 # Check whether --enable-optimized or --disable-optimized was given.
21825 if test "${enable_optimized+set}" = set; then
21826   enableval="$enable_optimized"
21827
21828 else
21829   enableval=no
21830 fi;
21831 if test ${enableval} = "no"
21832 then
21833         ENABLE_OPTIMIZED=
21834
21835 else
21836         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21837
21838 fi
21839
21840
21841
21842
21843  # Check whether --enable-spec95 or --disable-spec95 was given.
21844 if test "${enable_spec95+set}" = set; then
21845   enableval="$enable_spec95"
21846   checkresult=$enableval
21847 else
21848   checkresult=auto
21849 fi;
21850 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
21851 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
21852 case "$checkresult" in
21853 auto|yes)
21854     defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
21855         if test -d "$defaultdir"
21856         then
21857                 SPEC95_ROOT=$defaultdir
21858
21859                 USE_SPEC95=USE_SPEC95=1
21860
21861         checkresult="yes, found in $defaultdir"
21862     else
21863         checkresult=no
21864     fi
21865     ;;
21866 no)
21867
21868
21869     checkresult=no
21870     ;;
21871 *)  if test -d "$checkresult"
21872     then
21873         SPEC95_ROOT="$checkresult"
21874
21875         USE_SPEC95=USE_SPEC95=1
21876
21877         checkresult="yes, in $checkresult"
21878     else
21879
21880
21881         checkresult="no, not found in $checkresult"
21882     fi
21883     ;;
21884 esac
21885 echo "$as_me:$LINENO: result: $checkresult" >&5
21886 echo "${ECHO_T}$checkresult" >&6
21887
21888
21889
21890  # Check whether --enable-spec2000 or --disable-spec2000 was given.
21891 if test "${enable_spec2000+set}" = set; then
21892   enableval="$enable_spec2000"
21893   checkresult=$enableval
21894 else
21895   checkresult=auto
21896 fi;
21897 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
21898 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
21899 case "$checkresult" in
21900 auto|yes)
21901     defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21902         if test -d "$defaultdir"
21903         then
21904                 SPEC2000_ROOT=$defaultdir
21905
21906                 USE_SPEC2000=USE_SPEC2000=1
21907
21908         checkresult="yes, found in $defaultdir"
21909     else
21910         checkresult=no
21911     fi
21912     ;;
21913 no)
21914
21915
21916     checkresult=no
21917     ;;
21918 *)  if test -d "$checkresult"
21919     then
21920         SPEC2000_ROOT="$checkresult"
21921
21922         USE_SPEC2000=USE_SPEC2000=1
21923
21924         checkresult="yes, in $checkresult"
21925     else
21926
21927
21928         checkresult="no, not found in $checkresult"
21929     fi
21930     ;;
21931 esac
21932 echo "$as_me:$LINENO: result: $checkresult" >&5
21933 echo "${ECHO_T}$checkresult" >&6
21934
21935
21936
21937  # Check whether --enable-povray or --disable-povray was given.
21938 if test "${enable_povray+set}" = set; then
21939   enableval="$enable_povray"
21940   checkresult=$enableval
21941 else
21942   checkresult=auto
21943 fi;
21944 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
21945 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
21946 case "$checkresult" in
21947 auto|yes)
21948     defaultdir=/home/vadve/shared/benchmarks/povray31
21949         if test -d "$defaultdir"
21950         then
21951                 POVRAY_ROOT=$defaultdir
21952
21953                 USE_POVRAY=USE_POVRAY=1
21954
21955         checkresult="yes, found in $defaultdir"
21956     else
21957         checkresult=no
21958     fi
21959     ;;
21960 no)
21961
21962
21963     checkresult=no
21964     ;;
21965 *)  if test -d "$checkresult"
21966     then
21967         POVRAY_ROOT="$checkresult"
21968
21969         USE_POVRAY=USE_POVRAY=1
21970
21971         checkresult="yes, in $checkresult"
21972     else
21973
21974
21975         checkresult="no, not found in $checkresult"
21976     fi
21977     ;;
21978 esac
21979 echo "$as_me:$LINENO: result: $checkresult" >&5
21980 echo "${ECHO_T}$checkresult" >&6
21981
21982
21983
21984 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21985 if test "${enable_precompiled_bytecode+set}" = set; then
21986   enableval="$enable_precompiled_bytecode"
21987
21988 else
21989   enableval=no
21990 fi;
21991 if test ${enableval} = "no"
21992 then
21993         UPB=
21994
21995 else
21996         UPB=USE_PRECOMPILED_BYTECODE=1
21997
21998 fi
21999
22000 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22001 if test "${enable_llc_diffs+set}" = set; then
22002   enableval="$enable_llc_diffs"
22003
22004 else
22005   enableval=yes
22006 fi;
22007 if test ${enableval} = "no"
22008 then
22009         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22010
22011 else
22012         DISABLE_LLC_DIFFS=
22013
22014 fi
22015
22016 # Check whether --enable-jit or --disable-jit was given.
22017 if test "${enable_jit+set}" = set; then
22018   enableval="$enable_jit"
22019
22020 else
22021   enableval=default
22022 fi;
22023 if test ${enableval} = "no"
22024 then
22025         JIT=
22026
22027 else
22028         case $target in
22029                 *i*86*)
22030                         JIT=TARGET_HAS_JIT=1
22031
22032                         ;;
22033                 *sparc*)
22034                         JIT=TARGET_HAS_JIT=1
22035
22036                         ;;
22037                 *)
22038                         JIT=
22039
22040                         ;;
22041         esac
22042 fi
22043
22044
22045 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22046 if test "${with_llvmgccdir+set}" = set; then
22047   withval="$with_llvmgccdir"
22048   LLVMGCCDIR=$withval
22049
22050 fi;
22051 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22052 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22053 LLVM_GCC_CHECK=no
22054 if test -d "$LLVMGCCDIR"
22055 then
22056         if test -x "$LLVMGCCDIR/bin/gcc"
22057         then
22058                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22059         fi
22060 fi
22061 llvmgccwarn=no
22062 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22063 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22064 if test "$LLVM_GCC_CHECK" = "no"
22065 then
22066     llvmgccwarn=yes
22067 fi
22068 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22069 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22070 LLVM_GCC_SANE=no
22071 if test -x "$LLVM_GCC_CHECK"
22072 then
22073         cp /dev/null conftest.c
22074     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22075         if test $? -eq 0
22076         then
22077                 LLVM_GCC_SANE=yes
22078         fi
22079         rm conftest.c
22080         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22081         LLVMCC1=$llvmcc1path
22082
22083         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22084         LLVMCC1PLUS=$llvmcc1pluspath
22085
22086 fi
22087 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22088 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22089 if test "$LLVM_GCC_SANE" = "no"
22090 then
22091         llvmgccwarn=yes
22092 fi
22093
22094
22095 # Check whether --with-bcrepos or --without-bcrepos was given.
22096 if test "${with_bcrepos+set}" = set; then
22097   withval="$with_bcrepos"
22098   BCR=$withval
22099
22100 else
22101   BCR=/home/vadve/lattner/LLVMPrograms
22102
22103 fi;
22104
22105
22106 # Check whether --with-papi or --without-papi was given.
22107 if test "${with_papi+set}" = set; then
22108   withval="$with_papi"
22109   PAPIDIR=$withval
22110
22111 else
22112   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22113
22114 fi;
22115
22116 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22117 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22118 eval "SHLIBEXT=$shrext"
22119 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22120 echo "${ECHO_T}$SHLIBEXT" >&6
22121 SHLIBEXT=$SHLIBEXT
22122
22123
22124 cat >>confdefs.h <<_ACEOF
22125 #define SHLIBEXT "$SHLIBEXT"
22126 _ACEOF
22127
22128
22129                                                             ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
22130 cat >confcache <<\_ACEOF
22131 # This file is a shell script that caches the results of configure
22132 # tests run on this system so they can be shared between configure
22133 # scripts and configure runs, see configure's option --config-cache.
22134 # It is not useful on other systems.  If it contains results you don't
22135 # want to keep, you may remove or edit it.
22136 #
22137 # config.status only pays attention to the cache file if you give it
22138 # the --recheck option to rerun configure.
22139 #
22140 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22141 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22142 # following values.
22143
22144 _ACEOF
22145
22146 # The following way of writing the cache mishandles newlines in values,
22147 # but we know of no workaround that is simple, portable, and efficient.
22148 # So, don't put newlines in cache variables' values.
22149 # Ultrix sh set writes to stderr and can't be redirected directly,
22150 # and sets the high bit in the cache file unless we assign to the vars.
22151 {
22152   (set) 2>&1 |
22153     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22154     *ac_space=\ *)
22155       # `set' does not quote correctly, so add quotes (double-quote
22156       # substitution turns \\\\ into \\, and sed turns \\ into \).
22157       sed -n \
22158         "s/'/'\\\\''/g;
22159           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22160       ;;
22161     *)
22162       # `set' quotes correctly as required by POSIX, so do not add quotes.
22163       sed -n \
22164         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22165       ;;
22166     esac;
22167 } |
22168   sed '
22169      t clear
22170      : clear
22171      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22172      t end
22173      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22174      : end' >>confcache
22175 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22176   if test -w $cache_file; then
22177     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22178     cat confcache >$cache_file
22179   else
22180     echo "not updating unwritable cache $cache_file"
22181   fi
22182 fi
22183 rm -f confcache
22184
22185 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22186 # Let make expand exec_prefix.
22187 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22188
22189 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22190 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22191 # trailing colons and then remove the whole line if VPATH becomes empty
22192 # (actually we leave an empty line to preserve line numbers).
22193 if test "x$srcdir" = x.; then
22194   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22195 s/:*\$(srcdir):*/:/;
22196 s/:*\${srcdir}:*/:/;
22197 s/:*@srcdir@:*/:/;
22198 s/^\([^=]*=[    ]*\):*/\1/;
22199 s/:*$//;
22200 s/^[^=]*=[      ]*$//;
22201 }'
22202 fi
22203
22204 DEFS=-DHAVE_CONFIG_H
22205
22206 ac_libobjs=
22207 ac_ltlibobjs=
22208 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22209   # 1. Remove the extension, and $U if already installed.
22210   ac_i=`echo "$ac_i" |
22211          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22212   # 2. Add them.
22213   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22214   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22215 done
22216 LIBOBJS=$ac_libobjs
22217
22218 LTLIBOBJS=$ac_ltlibobjs
22219
22220
22221
22222 : ${CONFIG_STATUS=./config.status}
22223 ac_clean_files_save=$ac_clean_files
22224 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22225 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22226 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22227 cat >$CONFIG_STATUS <<_ACEOF
22228 #! $SHELL
22229 # Generated by $as_me.
22230 # Run this file to recreate the current configuration.
22231 # Compiler output produced by configure, useful for debugging
22232 # configure, is in config.log if it exists.
22233
22234 debug=false
22235 ac_cs_recheck=false
22236 ac_cs_silent=false
22237 SHELL=\${CONFIG_SHELL-$SHELL}
22238 _ACEOF
22239
22240 cat >>$CONFIG_STATUS <<\_ACEOF
22241 ## --------------------- ##
22242 ## M4sh Initialization.  ##
22243 ## --------------------- ##
22244
22245 # Be Bourne compatible
22246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22247   emulate sh
22248   NULLCMD=:
22249   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22250   # is contrary to our usage.  Disable this feature.
22251   alias -g '${1+"$@"}'='"$@"'
22252 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22253   set -o posix
22254 fi
22255
22256 # Support unset when possible.
22257 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22258   as_unset=unset
22259 else
22260   as_unset=false
22261 fi
22262
22263
22264 # Work around bugs in pre-3.0 UWIN ksh.
22265 $as_unset ENV MAIL MAILPATH
22266 PS1='$ '
22267 PS2='> '
22268 PS4='+ '
22269
22270 # NLS nuisances.
22271 for as_var in \
22272   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22273   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22274   LC_TELEPHONE LC_TIME
22275 do
22276   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22277     eval $as_var=C; export $as_var
22278   else
22279     $as_unset $as_var
22280   fi
22281 done
22282
22283 # Required to use basename.
22284 if expr a : '\(a\)' >/dev/null 2>&1; then
22285   as_expr=expr
22286 else
22287   as_expr=false
22288 fi
22289
22290 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22291   as_basename=basename
22292 else
22293   as_basename=false
22294 fi
22295
22296
22297 # Name of the executable.
22298 as_me=`$as_basename "$0" ||
22299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22300          X"$0" : 'X\(//\)$' \| \
22301          X"$0" : 'X\(/\)$' \| \
22302          .     : '\(.\)' 2>/dev/null ||
22303 echo X/"$0" |
22304     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22305           /^X\/\(\/\/\)$/{ s//\1/; q; }
22306           /^X\/\(\/\).*/{ s//\1/; q; }
22307           s/.*/./; q'`
22308
22309
22310 # PATH needs CR, and LINENO needs CR and PATH.
22311 # Avoid depending upon Character Ranges.
22312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22315 as_cr_digits='0123456789'
22316 as_cr_alnum=$as_cr_Letters$as_cr_digits
22317
22318 # The user is always right.
22319 if test "${PATH_SEPARATOR+set}" != set; then
22320   echo "#! /bin/sh" >conf$$.sh
22321   echo  "exit 0"   >>conf$$.sh
22322   chmod +x conf$$.sh
22323   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22324     PATH_SEPARATOR=';'
22325   else
22326     PATH_SEPARATOR=:
22327   fi
22328   rm -f conf$$.sh
22329 fi
22330
22331
22332   as_lineno_1=$LINENO
22333   as_lineno_2=$LINENO
22334   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22335   test "x$as_lineno_1" != "x$as_lineno_2" &&
22336   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22337   # Find who we are.  Look in the path if we contain no path at all
22338   # relative or not.
22339   case $0 in
22340     *[\\/]* ) as_myself=$0 ;;
22341     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22342 for as_dir in $PATH
22343 do
22344   IFS=$as_save_IFS
22345   test -z "$as_dir" && as_dir=.
22346   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22347 done
22348
22349        ;;
22350   esac
22351   # We did not find ourselves, most probably we were run as `sh COMMAND'
22352   # in which case we are not to be found in the path.
22353   if test "x$as_myself" = x; then
22354     as_myself=$0
22355   fi
22356   if test ! -f "$as_myself"; then
22357     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22358 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22359    { (exit 1); exit 1; }; }
22360   fi
22361   case $CONFIG_SHELL in
22362   '')
22363     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22364 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22365 do
22366   IFS=$as_save_IFS
22367   test -z "$as_dir" && as_dir=.
22368   for as_base in sh bash ksh sh5; do
22369          case $as_dir in
22370          /*)
22371            if ("$as_dir/$as_base" -c '
22372   as_lineno_1=$LINENO
22373   as_lineno_2=$LINENO
22374   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22375   test "x$as_lineno_1" != "x$as_lineno_2" &&
22376   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22377              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22378              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22379              CONFIG_SHELL=$as_dir/$as_base
22380              export CONFIG_SHELL
22381              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22382            fi;;
22383          esac
22384        done
22385 done
22386 ;;
22387   esac
22388
22389   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22390   # uniformly replaced by the line number.  The first 'sed' inserts a
22391   # line-number line before each line; the second 'sed' does the real
22392   # work.  The second script uses 'N' to pair each line-number line
22393   # with the numbered line, and appends trailing '-' during
22394   # substitution so that $LINENO is not a special case at line end.
22395   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22396   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22397   sed '=' <$as_myself |
22398     sed '
22399       N
22400       s,$,-,
22401       : loop
22402       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22403       t loop
22404       s,-$,,
22405       s,^['$as_cr_digits']*\n,,
22406     ' >$as_me.lineno &&
22407   chmod +x $as_me.lineno ||
22408     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22409 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22410    { (exit 1); exit 1; }; }
22411
22412   # Don't try to exec as it changes $[0], causing all sort of problems
22413   # (the dirname of $[0] is not the place where we might find the
22414   # original and so on.  Autoconf is especially sensible to this).
22415   . ./$as_me.lineno
22416   # Exit status is that of the last command.
22417   exit
22418 }
22419
22420
22421 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22422   *c*,-n*) ECHO_N= ECHO_C='
22423 ' ECHO_T='      ' ;;
22424   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22425   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22426 esac
22427
22428 if expr a : '\(a\)' >/dev/null 2>&1; then
22429   as_expr=expr
22430 else
22431   as_expr=false
22432 fi
22433
22434 rm -f conf$$ conf$$.exe conf$$.file
22435 echo >conf$$.file
22436 if ln -s conf$$.file conf$$ 2>/dev/null; then
22437   # We could just check for DJGPP; but this test a) works b) is more generic
22438   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22439   if test -f conf$$.exe; then
22440     # Don't use ln at all; we don't have any links
22441     as_ln_s='cp -p'
22442   else
22443     as_ln_s='ln -s'
22444   fi
22445 elif ln conf$$.file conf$$ 2>/dev/null; then
22446   as_ln_s=ln
22447 else
22448   as_ln_s='cp -p'
22449 fi
22450 rm -f conf$$ conf$$.exe conf$$.file
22451
22452 if mkdir -p . 2>/dev/null; then
22453   as_mkdir_p=:
22454 else
22455   as_mkdir_p=false
22456 fi
22457
22458 as_executable_p="test -f"
22459
22460 # Sed expression to map a string onto a valid CPP name.
22461 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22462
22463 # Sed expression to map a string onto a valid variable name.
22464 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22465
22466
22467 # IFS
22468 # We need space, tab and new line, in precisely that order.
22469 as_nl='
22470 '
22471 IFS="   $as_nl"
22472
22473 # CDPATH.
22474 $as_unset CDPATH
22475
22476 exec 6>&1
22477
22478 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22479 # report actual input values of CONFIG_FILES etc. instead of their
22480 # values after options handling.  Logging --version etc. is OK.
22481 exec 5>>config.log
22482 {
22483   echo
22484   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22485 ## Running $as_me. ##
22486 _ASBOX
22487 } >&5
22488 cat >&5 <<_CSEOF
22489
22490 This file was extended by [LLVM] $as_me [1.3], which was
22491 generated by GNU Autoconf 2.57.  Invocation command line was
22492
22493   CONFIG_FILES    = $CONFIG_FILES
22494   CONFIG_HEADERS  = $CONFIG_HEADERS
22495   CONFIG_LINKS    = $CONFIG_LINKS
22496   CONFIG_COMMANDS = $CONFIG_COMMANDS
22497   $ $0 $@
22498
22499 _CSEOF
22500 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22501 echo >&5
22502 _ACEOF
22503
22504 # Files that config.status was made for.
22505 if test -n "$ac_config_files"; then
22506   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22507 fi
22508
22509 if test -n "$ac_config_headers"; then
22510   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22511 fi
22512
22513 if test -n "$ac_config_links"; then
22514   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22515 fi
22516
22517 if test -n "$ac_config_commands"; then
22518   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22519 fi
22520
22521 cat >>$CONFIG_STATUS <<\_ACEOF
22522
22523 ac_cs_usage="\
22524 \`$as_me' instantiates files from templates according to the
22525 current configuration.
22526
22527 Usage: $0 [OPTIONS] [FILE]...
22528
22529   -h, --help       print this help, then exit
22530   -V, --version    print version number, then exit
22531   -q, --quiet      do not print progress messages
22532   -d, --debug      don't remove temporary files
22533       --recheck    update $as_me by reconfiguring in the same conditions
22534   --file=FILE[:TEMPLATE]
22535                    instantiate the configuration file FILE
22536   --header=FILE[:TEMPLATE]
22537                    instantiate the configuration header FILE
22538
22539 Configuration files:
22540 $config_files
22541
22542 Configuration headers:
22543 $config_headers
22544
22545 Configuration commands:
22546 $config_commands
22547
22548 Report bugs to <bug-autoconf@gnu.org>."
22549 _ACEOF
22550
22551 cat >>$CONFIG_STATUS <<_ACEOF
22552 ac_cs_version="\\
22553 [LLVM] config.status [1.3]
22554 configured by $0, generated by GNU Autoconf 2.57,
22555   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22556
22557 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22558 Free Software Foundation, Inc.
22559 This config.status script is free software; the Free Software Foundation
22560 gives unlimited permission to copy, distribute and modify it."
22561 srcdir=$srcdir
22562 INSTALL="$INSTALL"
22563 _ACEOF
22564
22565 cat >>$CONFIG_STATUS <<\_ACEOF
22566 # If no file are specified by the user, then we need to provide default
22567 # value.  By we need to know if files were specified by the user.
22568 ac_need_defaults=:
22569 while test $# != 0
22570 do
22571   case $1 in
22572   --*=*)
22573     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22574     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22575     ac_shift=:
22576     ;;
22577   -*)
22578     ac_option=$1
22579     ac_optarg=$2
22580     ac_shift=shift
22581     ;;
22582   *) # This is not an option, so the user has probably given explicit
22583      # arguments.
22584      ac_option=$1
22585      ac_need_defaults=false;;
22586   esac
22587
22588   case $ac_option in
22589   # Handling of the options.
22590 _ACEOF
22591 cat >>$CONFIG_STATUS <<\_ACEOF
22592   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22593     ac_cs_recheck=: ;;
22594   --version | --vers* | -V )
22595     echo "$ac_cs_version"; exit 0 ;;
22596   --he | --h)
22597     # Conflict between --help and --header
22598     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22599 Try \`$0 --help' for more information." >&5
22600 echo "$as_me: error: ambiguous option: $1
22601 Try \`$0 --help' for more information." >&2;}
22602    { (exit 1); exit 1; }; };;
22603   --help | --hel | -h )
22604     echo "$ac_cs_usage"; exit 0 ;;
22605   --debug | --d* | -d )
22606     debug=: ;;
22607   --file | --fil | --fi | --f )
22608     $ac_shift
22609     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22610     ac_need_defaults=false;;
22611   --header | --heade | --head | --hea )
22612     $ac_shift
22613     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22614     ac_need_defaults=false;;
22615   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22616   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22617     ac_cs_silent=: ;;
22618
22619   # This is an error.
22620   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22621 Try \`$0 --help' for more information." >&5
22622 echo "$as_me: error: unrecognized option: $1
22623 Try \`$0 --help' for more information." >&2;}
22624    { (exit 1); exit 1; }; } ;;
22625
22626   *) ac_config_targets="$ac_config_targets $1" ;;
22627
22628   esac
22629   shift
22630 done
22631
22632 ac_configure_extra_args=
22633
22634 if $ac_cs_silent; then
22635   exec 6>/dev/null
22636   ac_configure_extra_args="$ac_configure_extra_args --silent"
22637 fi
22638
22639 _ACEOF
22640 cat >>$CONFIG_STATUS <<_ACEOF
22641 if \$ac_cs_recheck; then
22642   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22643   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22644 fi
22645
22646 _ACEOF
22647
22648 cat >>$CONFIG_STATUS <<_ACEOF
22649 #
22650 # INIT-COMMANDS section.
22651 #
22652
22653 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22654 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22655 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22656 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22657 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22658 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22659 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22660 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22661 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22662 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22663 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22664 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22665 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22666 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22667 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22668 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22669 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22670 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22671 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22672 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22673 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22674 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22675 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
22676 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22677 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22678 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22679 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
22680 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22681 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22682 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22683 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22684 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22685 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22686 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22687 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22688 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22689 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22690 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22691 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22692 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22693 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22694 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22695 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22696 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22697 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22698 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
22699 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22700 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22701 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22702
22703 _ACEOF
22704
22705
22706
22707 cat >>$CONFIG_STATUS <<\_ACEOF
22708 for ac_config_target in $ac_config_targets
22709 do
22710   case "$ac_config_target" in
22711   # Handling of arguments.
22712   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22713   "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
22714   "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
22715   "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22716   "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
22717   "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
22718   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22719   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22720   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22721   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22722   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22723   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22724   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22725   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22726   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22727   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22728   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22729   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22730   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22731   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22732   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22733   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22734   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22735   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22736   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22737   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22738   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22739   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22740   "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
22741   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22742   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22743   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22744   "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
22745   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22746   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22747   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22748   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22749   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22750   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22751   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22752   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22753   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22754   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22755   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22756   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22757   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22758   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22759   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22760   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22761   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22762   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22763   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
22764   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22765   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22766   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22767   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22768   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22770    { (exit 1); exit 1; }; };;
22771   esac
22772 done
22773
22774 # If the user did not use the arguments to specify the items to instantiate,
22775 # then the envvar interface is used.  Set only those that are not.
22776 # We use the long form for the default assignment because of an extremely
22777 # bizarre bug on SunOS 4.1.3.
22778 if $ac_need_defaults; then
22779   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22780   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22781   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22782 fi
22783
22784 # Have a temporary directory for convenience.  Make it in the build tree
22785 # simply because there is no reason to put it here, and in addition,
22786 # creating and moving files from /tmp can sometimes cause problems.
22787 # Create a temporary directory, and hook for its removal unless debugging.
22788 $debug ||
22789 {
22790   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22791   trap '{ (exit 1); exit 1; }' 1 2 13 15
22792 }
22793
22794 # Create a (secure) tmp directory for tmp files.
22795
22796 {
22797   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22798   test -n "$tmp" && test -d "$tmp"
22799 }  ||
22800 {
22801   tmp=./confstat$$-$RANDOM
22802   (umask 077 && mkdir $tmp)
22803 } ||
22804 {
22805    echo "$me: cannot create a temporary directory in ." >&2
22806    { (exit 1); exit 1; }
22807 }
22808
22809 _ACEOF
22810
22811 cat >>$CONFIG_STATUS <<_ACEOF
22812
22813 #
22814 # CONFIG_FILES section.
22815 #
22816
22817 # No need to generate the scripts if there are no CONFIG_FILES.
22818 # This happens for instance when ./config.status config.h
22819 if test -n "\$CONFIG_FILES"; then
22820   # Protect against being on the right side of a sed subst in config.status.
22821   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22822    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22823 s,@SHELL@,$SHELL,;t t
22824 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22825 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22826 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22827 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22828 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22829 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22830 s,@exec_prefix@,$exec_prefix,;t t
22831 s,@prefix@,$prefix,;t t
22832 s,@program_transform_name@,$program_transform_name,;t t
22833 s,@bindir@,$bindir,;t t
22834 s,@sbindir@,$sbindir,;t t
22835 s,@libexecdir@,$libexecdir,;t t
22836 s,@datadir@,$datadir,;t t
22837 s,@sysconfdir@,$sysconfdir,;t t
22838 s,@sharedstatedir@,$sharedstatedir,;t t
22839 s,@localstatedir@,$localstatedir,;t t
22840 s,@libdir@,$libdir,;t t
22841 s,@includedir@,$includedir,;t t
22842 s,@oldincludedir@,$oldincludedir,;t t
22843 s,@infodir@,$infodir,;t t
22844 s,@mandir@,$mandir,;t t
22845 s,@build_alias@,$build_alias,;t t
22846 s,@host_alias@,$host_alias,;t t
22847 s,@target_alias@,$target_alias,;t t
22848 s,@DEFS@,$DEFS,;t t
22849 s,@ECHO_C@,$ECHO_C,;t t
22850 s,@ECHO_N@,$ECHO_N,;t t
22851 s,@ECHO_T@,$ECHO_T,;t t
22852 s,@LIBS@,$LIBS,;t t
22853 s,@subdirs@,$subdirs,;t t
22854 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22855 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22856 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22857 s,@build@,$build,;t t
22858 s,@build_cpu@,$build_cpu,;t t
22859 s,@build_vendor@,$build_vendor,;t t
22860 s,@build_os@,$build_os,;t t
22861 s,@host@,$host,;t t
22862 s,@host_cpu@,$host_cpu,;t t
22863 s,@host_vendor@,$host_vendor,;t t
22864 s,@host_os@,$host_os,;t t
22865 s,@target@,$target,;t t
22866 s,@target_cpu@,$target_cpu,;t t
22867 s,@target_vendor@,$target_vendor,;t t
22868 s,@target_os@,$target_os,;t t
22869 s,@OS@,$OS,;t t
22870 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22871 s,@ARCH@,$ARCH,;t t
22872 s,@CXX@,$CXX,;t t
22873 s,@CXXFLAGS@,$CXXFLAGS,;t t
22874 s,@LDFLAGS@,$LDFLAGS,;t t
22875 s,@CPPFLAGS@,$CPPFLAGS,;t t
22876 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22877 s,@EXEEXT@,$EXEEXT,;t t
22878 s,@OBJEXT@,$OBJEXT,;t t
22879 s,@CC@,$CC,;t t
22880 s,@CFLAGS@,$CFLAGS,;t t
22881 s,@ac_ct_CC@,$ac_ct_CC,;t t
22882 s,@CPP@,$CPP,;t t
22883 s,@ifGNUmake@,$ifGNUmake,;t t
22884 s,@LEX@,$LEX,;t t
22885 s,@LEXLIB@,$LEXLIB,;t t
22886 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22887 s,@YACC@,$YACC,;t t
22888 s,@BISON@,$BISON,;t t
22889 s,@EGREP@,$EGREP,;t t
22890 s,@LN_S@,$LN_S,;t t
22891 s,@ECHO@,$ECHO,;t t
22892 s,@AR@,$AR,;t t
22893 s,@ac_ct_AR@,$ac_ct_AR,;t t
22894 s,@RANLIB@,$RANLIB,;t t
22895 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22896 s,@STRIP@,$STRIP,;t t
22897 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22898 s,@CXXCPP@,$CXXCPP,;t t
22899 s,@F77@,$F77,;t t
22900 s,@FFLAGS@,$FFLAGS,;t t
22901 s,@ac_ct_F77@,$ac_ct_F77,;t t
22902 s,@LIBTOOL@,$LIBTOOL,;t t
22903 s,@DOT@,$DOT,;t t
22904 s,@ETAGS@,$ETAGS,;t t
22905 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22906 s,@PYTHON@,$PYTHON,;t t
22907 s,@QMTEST@,$QMTEST,;t t
22908 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
22909 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
22910 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
22911 s,@ENDIAN@,$ENDIAN,;t t
22912 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22913 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22914 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22915 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22916 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22917 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
22918 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22919 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22920 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
22921 s,@ALLOCA@,$ALLOCA,;t t
22922 s,@MMAP_FILE@,$MMAP_FILE,;t t
22923 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22924 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22925 s,@USE_SPEC95@,$USE_SPEC95,;t t
22926 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
22927 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
22928 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22929 s,@USE_POVRAY@,$USE_POVRAY,;t t
22930 s,@UPB@,$UPB,;t t
22931 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22932 s,@JIT@,$JIT,;t t
22933 s,@LLVMCC1@,$LLVMCC1,;t t
22934 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22935 s,@BCR@,$BCR,;t t
22936 s,@PAPIDIR@,$PAPIDIR,;t t
22937 s,@SHLIBEXT@,$SHLIBEXT,;t t
22938 s,@LIBOBJS@,$LIBOBJS,;t t
22939 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22940 CEOF
22941
22942 _ACEOF
22943
22944   cat >>$CONFIG_STATUS <<\_ACEOF
22945   # Split the substitutions into bite-sized pieces for seds with
22946   # small command number limits, like on Digital OSF/1 and HP-UX.
22947   ac_max_sed_lines=48
22948   ac_sed_frag=1 # Number of current file.
22949   ac_beg=1 # First line for current file.
22950   ac_end=$ac_max_sed_lines # Line after last line for current file.
22951   ac_more_lines=:
22952   ac_sed_cmds=
22953   while $ac_more_lines; do
22954     if test $ac_beg -gt 1; then
22955       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22956     else
22957       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22958     fi
22959     if test ! -s $tmp/subs.frag; then
22960       ac_more_lines=false
22961     else
22962       # The purpose of the label and of the branching condition is to
22963       # speed up the sed processing (if there are no `@' at all, there
22964       # is no need to browse any of the substitutions).
22965       # These are the two extra sed commands mentioned above.
22966       (echo ':t
22967   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22968       if test -z "$ac_sed_cmds"; then
22969         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22970       else
22971         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22972       fi
22973       ac_sed_frag=`expr $ac_sed_frag + 1`
22974       ac_beg=$ac_end
22975       ac_end=`expr $ac_end + $ac_max_sed_lines`
22976     fi
22977   done
22978   if test -z "$ac_sed_cmds"; then
22979     ac_sed_cmds=cat
22980   fi
22981 fi # test -n "$CONFIG_FILES"
22982
22983 _ACEOF
22984 cat >>$CONFIG_STATUS <<\_ACEOF
22985 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22986   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22987   case $ac_file in
22988   - | *:- | *:-:* ) # input from stdin
22989         cat >$tmp/stdin
22990         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22991         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22992   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22993         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22994   * )   ac_file_in=$ac_file.in ;;
22995   esac
22996
22997   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22998   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22999 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23000          X"$ac_file" : 'X\(//\)[^/]' \| \
23001          X"$ac_file" : 'X\(//\)$' \| \
23002          X"$ac_file" : 'X\(/\)' \| \
23003          .     : '\(.\)' 2>/dev/null ||
23004 echo X"$ac_file" |
23005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23006           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23007           /^X\(\/\/\)$/{ s//\1/; q; }
23008           /^X\(\/\).*/{ s//\1/; q; }
23009           s/.*/./; q'`
23010   { if $as_mkdir_p; then
23011     mkdir -p "$ac_dir"
23012   else
23013     as_dir="$ac_dir"
23014     as_dirs=
23015     while test ! -d "$as_dir"; do
23016       as_dirs="$as_dir $as_dirs"
23017       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23019          X"$as_dir" : 'X\(//\)[^/]' \| \
23020          X"$as_dir" : 'X\(//\)$' \| \
23021          X"$as_dir" : 'X\(/\)' \| \
23022          .     : '\(.\)' 2>/dev/null ||
23023 echo X"$as_dir" |
23024     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23025           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23026           /^X\(\/\/\)$/{ s//\1/; q; }
23027           /^X\(\/\).*/{ s//\1/; q; }
23028           s/.*/./; q'`
23029     done
23030     test ! -n "$as_dirs" || mkdir $as_dirs
23031   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23032 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23033    { (exit 1); exit 1; }; }; }
23034
23035   ac_builddir=.
23036
23037 if test "$ac_dir" != .; then
23038   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23039   # A "../" for each directory in $ac_dir_suffix.
23040   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23041 else
23042   ac_dir_suffix= ac_top_builddir=
23043 fi
23044
23045 case $srcdir in
23046   .)  # No --srcdir option.  We are building in place.
23047     ac_srcdir=.
23048     if test -z "$ac_top_builddir"; then
23049        ac_top_srcdir=.
23050     else
23051        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23052     fi ;;
23053   [\\/]* | ?:[\\/]* )  # Absolute path.
23054     ac_srcdir=$srcdir$ac_dir_suffix;
23055     ac_top_srcdir=$srcdir ;;
23056   *) # Relative path.
23057     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23058     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23059 esac
23060 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23061 # absolute.
23062 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23063 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23064 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23065 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23066
23067
23068   case $INSTALL in
23069   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23070   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23071   esac
23072
23073   if test x"$ac_file" != x-; then
23074     { echo "$as_me:$LINENO: creating $ac_file" >&5
23075 echo "$as_me: creating $ac_file" >&6;}
23076     rm -f "$ac_file"
23077   fi
23078   # Let's still pretend it is `configure' which instantiates (i.e., don't
23079   # use $as_me), people would be surprised to read:
23080   #    /* config.h.  Generated by config.status.  */
23081   if test x"$ac_file" = x-; then
23082     configure_input=
23083   else
23084     configure_input="$ac_file.  "
23085   fi
23086   configure_input=$configure_input"Generated from `echo $ac_file_in |
23087                                      sed 's,.*/,,'` by configure."
23088
23089   # First look for the input files in the build tree, otherwise in the
23090   # src tree.
23091   ac_file_inputs=`IFS=:
23092     for f in $ac_file_in; do
23093       case $f in
23094       -) echo $tmp/stdin ;;
23095       [\\/$]*)
23096          # Absolute (can't be DOS-style, as IFS=:)
23097          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23098 echo "$as_me: error: cannot find input file: $f" >&2;}
23099    { (exit 1); exit 1; }; }
23100          echo $f;;
23101       *) # Relative
23102          if test -f "$f"; then
23103            # Build tree
23104            echo $f
23105          elif test -f "$srcdir/$f"; then
23106            # Source tree
23107            echo $srcdir/$f
23108          else
23109            # /dev/null tree
23110            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23111 echo "$as_me: error: cannot find input file: $f" >&2;}
23112    { (exit 1); exit 1; }; }
23113          fi;;
23114       esac
23115     done` || { (exit 1); exit 1; }
23116 _ACEOF
23117 cat >>$CONFIG_STATUS <<_ACEOF
23118   sed "$ac_vpsub
23119 $extrasub
23120 _ACEOF
23121 cat >>$CONFIG_STATUS <<\_ACEOF
23122 :t
23123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23124 s,@configure_input@,$configure_input,;t t
23125 s,@srcdir@,$ac_srcdir,;t t
23126 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23127 s,@top_srcdir@,$ac_top_srcdir,;t t
23128 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23129 s,@builddir@,$ac_builddir,;t t
23130 s,@abs_builddir@,$ac_abs_builddir,;t t
23131 s,@top_builddir@,$ac_top_builddir,;t t
23132 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23133 s,@INSTALL@,$ac_INSTALL,;t t
23134 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23135   rm -f $tmp/stdin
23136   if test x"$ac_file" != x-; then
23137     mv $tmp/out $ac_file
23138   else
23139     cat $tmp/out
23140     rm -f $tmp/out
23141   fi
23142
23143 done
23144 _ACEOF
23145 cat >>$CONFIG_STATUS <<\_ACEOF
23146
23147 #
23148 # CONFIG_HEADER section.
23149 #
23150
23151 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23152 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23153 #
23154 # ac_d sets the value in "#define NAME VALUE" lines.
23155 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23156 ac_dB='[        ].*$,\1#\2'
23157 ac_dC=' '
23158 ac_dD=',;t'
23159 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23160 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23161 ac_uB='$,\1#\2define\3'
23162 ac_uC=' '
23163 ac_uD=',;t'
23164
23165 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23166   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23167   case $ac_file in
23168   - | *:- | *:-:* ) # input from stdin
23169         cat >$tmp/stdin
23170         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23171         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23172   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23173         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23174   * )   ac_file_in=$ac_file.in ;;
23175   esac
23176
23177   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23178 echo "$as_me: creating $ac_file" >&6;}
23179
23180   # First look for the input files in the build tree, otherwise in the
23181   # src tree.
23182   ac_file_inputs=`IFS=:
23183     for f in $ac_file_in; do
23184       case $f in
23185       -) echo $tmp/stdin ;;
23186       [\\/$]*)
23187          # Absolute (can't be DOS-style, as IFS=:)
23188          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23189 echo "$as_me: error: cannot find input file: $f" >&2;}
23190    { (exit 1); exit 1; }; }
23191          echo $f;;
23192       *) # Relative
23193          if test -f "$f"; then
23194            # Build tree
23195            echo $f
23196          elif test -f "$srcdir/$f"; then
23197            # Source tree
23198            echo $srcdir/$f
23199          else
23200            # /dev/null tree
23201            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23202 echo "$as_me: error: cannot find input file: $f" >&2;}
23203    { (exit 1); exit 1; }; }
23204          fi;;
23205       esac
23206     done` || { (exit 1); exit 1; }
23207   # Remove the trailing spaces.
23208   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23209
23210 _ACEOF
23211
23212 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23213 # `conftest.undefs', that substitutes the proper values into
23214 # config.h.in to produce config.h.  The first handles `#define'
23215 # templates, and the second `#undef' templates.
23216 # And first: Protect against being on the right side of a sed subst in
23217 # config.status.  Protect against being in an unquoted here document
23218 # in config.status.
23219 rm -f conftest.defines conftest.undefs
23220 # Using a here document instead of a string reduces the quoting nightmare.
23221 # Putting comments in sed scripts is not portable.
23222 #
23223 # `end' is used to avoid that the second main sed command (meant for
23224 # 0-ary CPP macros) applies to n-ary macro definitions.
23225 # See the Autoconf documentation for `clear'.
23226 cat >confdef2sed.sed <<\_ACEOF
23227 s/[\\&,]/\\&/g
23228 s,[\\$`],\\&,g
23229 t clear
23230 : clear
23231 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23232 t end
23233 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23234 : end
23235 _ACEOF
23236 # If some macros were called several times there might be several times
23237 # the same #defines, which is useless.  Nevertheless, we may not want to
23238 # sort them, since we want the *last* AC-DEFINE to be honored.
23239 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23240 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23241 rm -f confdef2sed.sed
23242
23243 # This sed command replaces #undef with comments.  This is necessary, for
23244 # example, in the case of _POSIX_SOURCE, which is predefined and required
23245 # on some systems where configure will not decide to define it.
23246 cat >>conftest.undefs <<\_ACEOF
23247 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23248 _ACEOF
23249
23250 # Break up conftest.defines because some shells have a limit on the size
23251 # of here documents, and old seds have small limits too (100 cmds).
23252 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23253 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23254 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23255 echo '  :' >>$CONFIG_STATUS
23256 rm -f conftest.tail
23257 while grep . conftest.defines >/dev/null
23258 do
23259   # Write a limited-size here document to $tmp/defines.sed.
23260   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23261   # Speed up: don't consider the non `#define' lines.
23262   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23263   # Work around the forget-to-reset-the-flag bug.
23264   echo 't clr' >>$CONFIG_STATUS
23265   echo ': clr' >>$CONFIG_STATUS
23266   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23267   echo 'CEOF
23268   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23269   rm -f $tmp/in
23270   mv $tmp/out $tmp/in
23271 ' >>$CONFIG_STATUS
23272   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23273   rm -f conftest.defines
23274   mv conftest.tail conftest.defines
23275 done
23276 rm -f conftest.defines
23277 echo '  fi # grep' >>$CONFIG_STATUS
23278 echo >>$CONFIG_STATUS
23279
23280 # Break up conftest.undefs because some shells have a limit on the size
23281 # of here documents, and old seds have small limits too (100 cmds).
23282 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23283 rm -f conftest.tail
23284 while grep . conftest.undefs >/dev/null
23285 do
23286   # Write a limited-size here document to $tmp/undefs.sed.
23287   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23288   # Speed up: don't consider the non `#undef'
23289   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23290   # Work around the forget-to-reset-the-flag bug.
23291   echo 't clr' >>$CONFIG_STATUS
23292   echo ': clr' >>$CONFIG_STATUS
23293   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23294   echo 'CEOF
23295   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23296   rm -f $tmp/in
23297   mv $tmp/out $tmp/in
23298 ' >>$CONFIG_STATUS
23299   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23300   rm -f conftest.undefs
23301   mv conftest.tail conftest.undefs
23302 done
23303 rm -f conftest.undefs
23304
23305 cat >>$CONFIG_STATUS <<\_ACEOF
23306   # Let's still pretend it is `configure' which instantiates (i.e., don't
23307   # use $as_me), people would be surprised to read:
23308   #    /* config.h.  Generated by config.status.  */
23309   if test x"$ac_file" = x-; then
23310     echo "/* Generated by configure.  */" >$tmp/config.h
23311   else
23312     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23313   fi
23314   cat $tmp/in >>$tmp/config.h
23315   rm -f $tmp/in
23316   if test x"$ac_file" != x-; then
23317     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23318       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23319 echo "$as_me: $ac_file is unchanged" >&6;}
23320     else
23321       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23323          X"$ac_file" : 'X\(//\)[^/]' \| \
23324          X"$ac_file" : 'X\(//\)$' \| \
23325          X"$ac_file" : 'X\(/\)' \| \
23326          .     : '\(.\)' 2>/dev/null ||
23327 echo X"$ac_file" |
23328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23329           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23330           /^X\(\/\/\)$/{ s//\1/; q; }
23331           /^X\(\/\).*/{ s//\1/; q; }
23332           s/.*/./; q'`
23333       { if $as_mkdir_p; then
23334     mkdir -p "$ac_dir"
23335   else
23336     as_dir="$ac_dir"
23337     as_dirs=
23338     while test ! -d "$as_dir"; do
23339       as_dirs="$as_dir $as_dirs"
23340       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23342          X"$as_dir" : 'X\(//\)[^/]' \| \
23343          X"$as_dir" : 'X\(//\)$' \| \
23344          X"$as_dir" : 'X\(/\)' \| \
23345          .     : '\(.\)' 2>/dev/null ||
23346 echo X"$as_dir" |
23347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23348           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23349           /^X\(\/\/\)$/{ s//\1/; q; }
23350           /^X\(\/\).*/{ s//\1/; q; }
23351           s/.*/./; q'`
23352     done
23353     test ! -n "$as_dirs" || mkdir $as_dirs
23354   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23355 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23356    { (exit 1); exit 1; }; }; }
23357
23358       rm -f $ac_file
23359       mv $tmp/config.h $ac_file
23360     fi
23361   else
23362     cat $tmp/config.h
23363     rm -f $tmp/config.h
23364   fi
23365 done
23366 _ACEOF
23367 cat >>$CONFIG_STATUS <<\_ACEOF
23368
23369 #
23370 # CONFIG_COMMANDS section.
23371 #
23372 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23373   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23374   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23375   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23376 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23377          X"$ac_dest" : 'X\(//\)[^/]' \| \
23378          X"$ac_dest" : 'X\(//\)$' \| \
23379          X"$ac_dest" : 'X\(/\)' \| \
23380          .     : '\(.\)' 2>/dev/null ||
23381 echo X"$ac_dest" |
23382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23383           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23384           /^X\(\/\/\)$/{ s//\1/; q; }
23385           /^X\(\/\).*/{ s//\1/; q; }
23386           s/.*/./; q'`
23387   ac_builddir=.
23388
23389 if test "$ac_dir" != .; then
23390   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23391   # A "../" for each directory in $ac_dir_suffix.
23392   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23393 else
23394   ac_dir_suffix= ac_top_builddir=
23395 fi
23396
23397 case $srcdir in
23398   .)  # No --srcdir option.  We are building in place.
23399     ac_srcdir=.
23400     if test -z "$ac_top_builddir"; then
23401        ac_top_srcdir=.
23402     else
23403        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23404     fi ;;
23405   [\\/]* | ?:[\\/]* )  # Absolute path.
23406     ac_srcdir=$srcdir$ac_dir_suffix;
23407     ac_top_srcdir=$srcdir ;;
23408   *) # Relative path.
23409     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23410     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23411 esac
23412 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23413 # absolute.
23414 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23415 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23416 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23417 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23418
23419
23420   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23421 echo "$as_me: executing $ac_dest commands" >&6;}
23422   case $ac_dest in
23423     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23424     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23425     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23426     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23427     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23428     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23429     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23430     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23431     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23432     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23433     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23434     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23435     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23436     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23437     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23438     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23439     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23440     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23441     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23442     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23443     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23444     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23445     test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
23446     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23447     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23448     test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
23449     test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
23450     test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
23451     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23452     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23453     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
23454     test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
23455     test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
23456     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
23457     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
23458     test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
23459     test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
23460     test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
23461     test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
23462     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
23463     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
23464     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
23465     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
23466     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23467     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23468     test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
23469     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23470     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23471     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23472   esac
23473 done
23474 _ACEOF
23475
23476 cat >>$CONFIG_STATUS <<\_ACEOF
23477
23478 { (exit 0); exit 0; }
23479 _ACEOF
23480 chmod +x $CONFIG_STATUS
23481 ac_clean_files=$ac_clean_files_save
23482
23483
23484 # configure is writing to config.log, and then calls config.status.
23485 # config.status does its own redirection, appending to config.log.
23486 # Unfortunately, on DOS this fails, as config.log is still kept open
23487 # by configure, so config.status won't be able to write to it; its
23488 # output is simply discarded.  So we exec the FD to /dev/null,
23489 # effectively closing config.log, so it can be properly (re)opened and
23490 # appended to by config.status.  When coming back to configure, we
23491 # need to make the FD available again.
23492 if test "$no_create" != yes; then
23493   ac_cs_success=:
23494   ac_config_status_args=
23495   test "$silent" = yes &&
23496     ac_config_status_args="$ac_config_status_args --quiet"
23497   exec 5>/dev/null
23498   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23499   exec 5>>config.log
23500   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23501   # would make configure fail if this is the last instruction.
23502   $ac_cs_success || { (exit 1); exit 1; }
23503 fi
23504
23505 #
23506 # CONFIG_SUBDIRS section.
23507 #
23508 if test "$no_recursion" != yes; then
23509
23510   # Remove --cache-file and --srcdir arguments so they do not pile up.
23511   ac_sub_configure_args=
23512   ac_prev=
23513   for ac_arg in $ac_configure_args; do
23514     if test -n "$ac_prev"; then
23515       ac_prev=
23516       continue
23517     fi
23518     case $ac_arg in
23519     -cache-file | --cache-file | --cache-fil | --cache-fi \
23520     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23521       ac_prev=cache_file ;;
23522     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23523     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23524     | --c=*)
23525       ;;
23526     --config-cache | -C)
23527       ;;
23528     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23529       ac_prev=srcdir ;;
23530     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23531       ;;
23532     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23533       ac_prev=prefix ;;
23534     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23535       ;;
23536     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23537     esac
23538   done
23539
23540   # Always prepend --prefix to ensure using the same prefix
23541   # in subdir configurations.
23542   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23543
23544   ac_popdir=`pwd`
23545   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23546
23547     # Do not complain, so a configure script can configure whichever
23548     # parts of a large source tree are present.
23549     test -d $srcdir/$ac_dir || continue
23550
23551     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23552 echo "$as_me: configuring in $ac_dir" >&6;}
23553     { if $as_mkdir_p; then
23554     mkdir -p "$ac_dir"
23555   else
23556     as_dir="$ac_dir"
23557     as_dirs=
23558     while test ! -d "$as_dir"; do
23559       as_dirs="$as_dir $as_dirs"
23560       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23562          X"$as_dir" : 'X\(//\)[^/]' \| \
23563          X"$as_dir" : 'X\(//\)$' \| \
23564          X"$as_dir" : 'X\(/\)' \| \
23565          .     : '\(.\)' 2>/dev/null ||
23566 echo X"$as_dir" |
23567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23568           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23569           /^X\(\/\/\)$/{ s//\1/; q; }
23570           /^X\(\/\).*/{ s//\1/; q; }
23571           s/.*/./; q'`
23572     done
23573     test ! -n "$as_dirs" || mkdir $as_dirs
23574   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23575 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23576    { (exit 1); exit 1; }; }; }
23577
23578     ac_builddir=.
23579
23580 if test "$ac_dir" != .; then
23581   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23582   # A "../" for each directory in $ac_dir_suffix.
23583   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23584 else
23585   ac_dir_suffix= ac_top_builddir=
23586 fi
23587
23588 case $srcdir in
23589   .)  # No --srcdir option.  We are building in place.
23590     ac_srcdir=.
23591     if test -z "$ac_top_builddir"; then
23592        ac_top_srcdir=.
23593     else
23594        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23595     fi ;;
23596   [\\/]* | ?:[\\/]* )  # Absolute path.
23597     ac_srcdir=$srcdir$ac_dir_suffix;
23598     ac_top_srcdir=$srcdir ;;
23599   *) # Relative path.
23600     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23601     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23602 esac
23603 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23604 # absolute.
23605 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23606 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23607 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23608 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23609
23610
23611     cd $ac_dir
23612
23613     # Check for guested configure; otherwise get Cygnus style configure.
23614     if test -f $ac_srcdir/configure.gnu; then
23615       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23616     elif test -f $ac_srcdir/configure; then
23617       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23618     elif test -f $ac_srcdir/configure.in; then
23619       ac_sub_configure=$ac_configure
23620     else
23621       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23623       ac_sub_configure=
23624     fi
23625
23626     # The recursion is here.
23627     if test -n "$ac_sub_configure"; then
23628       # Make the cache file name correct relative to the subdirectory.
23629       case $cache_file in
23630       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23631       *) # Relative path.
23632         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23633       esac
23634
23635       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23636 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23637       # The eval makes quoting arguments work.
23638       eval $ac_sub_configure $ac_sub_configure_args \
23639            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23640         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23641 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23642    { (exit 1); exit 1; }; }
23643     fi
23644
23645     cd $ac_popdir
23646   done
23647 fi
23648
23649
23650 if test $llvmgccwarn = yes
23651 then
23652         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23653 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23654         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23655 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23656         { echo "$as_me:$LINENO: WARNING: ***** " >&5
23657 echo "$as_me: WARNING: ***** " >&2;}
23658         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23659 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23660         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23661 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23662         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23663 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23664 fi
23665