Regenerated using autoconf-2.57.
[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.1].
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.1]'
426 PACKAGE_STRING='[LLVM] [1.1]'
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 SPEC2000_ROOT USE_SPEC2000 SPEC95_ROOT USE_SPEC95 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.1] 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.1]:";;
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-spec2000       Compile SPEC 2000 benchmarks (default is NO)
1035   --enable-spec95         Compile SPEC 95 benchmarks (default is NO)
1036   --enable-povray=ARG     Use POV-Ray 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.1]
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.1], 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
1858         *-*-solaris*)
1859              OS=SunOS
1860
1861                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1862                          then
1863                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1864
1865                          fi
1866                  ;;
1867
1868         *-*-darwin*)
1869              OS=Darwin
1870
1871                  ;;
1872
1873         *)       OS=Unknown
1874
1875                  ;;
1876 esac
1877
1878 case $target in
1879         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1880
1881                             ;;
1882 esac
1883
1884 case $target in
1885         i*86-*)           ARCH=x86
1886
1887                           ;;
1888         sparc*-*)         ARCH=Sparc
1889
1890                           ;;
1891         powerpc*-*)       ARCH=PowerPC
1892
1893                           ;;
1894         *)                ARCH=Unknown
1895
1896                           ;;
1897 esac
1898
1899 ac_ext=cc
1900 ac_cpp='$CXXCPP $CPPFLAGS'
1901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1904 if test -n "$ac_tool_prefix"; then
1905   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1906   do
1907     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_CXX+set}" = set; then
1912   echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914   if test -n "$CXX"; then
1915   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1916 else
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922   for ac_exec_ext in '' $ac_executable_extensions; do
1923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926     break 2
1927   fi
1928 done
1929 done
1930
1931 fi
1932 fi
1933 CXX=$ac_cv_prog_CXX
1934 if test -n "$CXX"; then
1935   echo "$as_me:$LINENO: result: $CXX" >&5
1936 echo "${ECHO_T}$CXX" >&6
1937 else
1938   echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1940 fi
1941
1942     test -n "$CXX" && break
1943   done
1944 fi
1945 if test -z "$CXX"; then
1946   ac_ct_CXX=$CXX
1947   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1948 do
1949   # Extract the first word of "$ac_prog", so it can be a program name with args.
1950 set dummy $ac_prog; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1954   echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956   if test -n "$ac_ct_CXX"; then
1957   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1958 else
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1961 do
1962   IFS=$as_save_IFS
1963   test -z "$as_dir" && as_dir=.
1964   for ac_exec_ext in '' $ac_executable_extensions; do
1965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966     ac_cv_prog_ac_ct_CXX="$ac_prog"
1967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968     break 2
1969   fi
1970 done
1971 done
1972
1973 fi
1974 fi
1975 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1976 if test -n "$ac_ct_CXX"; then
1977   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1978 echo "${ECHO_T}$ac_ct_CXX" >&6
1979 else
1980   echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1982 fi
1983
1984   test -n "$ac_ct_CXX" && break
1985 done
1986 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1987
1988   CXX=$ac_ct_CXX
1989 fi
1990
1991
1992 # Provide some information about the compiler.
1993 echo "$as_me:$LINENO:" \
1994      "checking for C++ compiler version" >&5
1995 ac_compiler=`set X $ac_compile; echo $2`
1996 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1997   (eval $ac_compiler --version </dev/null >&5) 2>&5
1998   ac_status=$?
1999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000   (exit $ac_status); }
2001 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2002   (eval $ac_compiler -v </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
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2014 /* confdefs.h.  */
2015 _ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h.  */
2019
2020 int
2021 main ()
2022 {
2023
2024   ;
2025   return 0;
2026 }
2027 _ACEOF
2028 ac_clean_files_save=$ac_clean_files
2029 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2030 # Try to create an executable without -o first, disregard a.out.
2031 # It will help us diagnose broken compilers, and finding out an intuition
2032 # of exeext.
2033 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2034 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2035 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2036 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2037   (eval $ac_link_default) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); }; then
2041   # Find the output, starting from the most likely.  This scheme is
2042 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2043 # resort.
2044
2045 # Be careful to initialize this variable, since it used to be cached.
2046 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2047 ac_cv_exeext=
2048 # b.out is created by i960 compilers.
2049 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2050 do
2051   test -f "$ac_file" || continue
2052   case $ac_file in
2053     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2054         ;;
2055     conftest.$ac_ext )
2056         # This is the source file.
2057         ;;
2058     [ab].out )
2059         # We found the default executable, but exeext='' is most
2060         # certainly right.
2061         break;;
2062     *.* )
2063         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2064         # FIXME: I believe we export ac_cv_exeext for Libtool,
2065         # but it would be cool to find out if it's true.  Does anybody
2066         # maintain Libtool? --akim.
2067         export ac_cv_exeext
2068         break;;
2069     * )
2070         break;;
2071   esac
2072 done
2073 else
2074   echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2076
2077 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: C++ compiler cannot create executables
2080 See \`config.log' for more details." >&2;}
2081    { (exit 77); exit 77; }; }
2082 fi
2083
2084 ac_exeext=$ac_cv_exeext
2085 echo "$as_me:$LINENO: result: $ac_file" >&5
2086 echo "${ECHO_T}$ac_file" >&6
2087
2088 # Check the compiler produces executables we can run.  If not, either
2089 # the compiler is broken, or we cross compile.
2090 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2091 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2092 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2093 # If not cross compiling, check that we can run a simple program.
2094 if test "$cross_compiling" != yes; then
2095   if { ac_try='./$ac_file'
2096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097   (eval $ac_try) 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }; }; then
2101     cross_compiling=no
2102   else
2103     if test "$cross_compiling" = maybe; then
2104         cross_compiling=yes
2105     else
2106         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2107 If you meant to cross compile, use \`--host'.
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: cannot run C++ compiled programs.
2110 If you meant to cross compile, use \`--host'.
2111 See \`config.log' for more details." >&2;}
2112    { (exit 1); exit 1; }; }
2113     fi
2114   fi
2115 fi
2116 echo "$as_me:$LINENO: result: yes" >&5
2117 echo "${ECHO_T}yes" >&6
2118
2119 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2120 ac_clean_files=$ac_clean_files_save
2121 # Check the compiler produces executables we can run.  If not, either
2122 # the compiler is broken, or we cross compile.
2123 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2124 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2125 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2126 echo "${ECHO_T}$cross_compiling" >&6
2127
2128 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2129 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2131   (eval $ac_link) 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }; then
2135   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2136 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2137 # work properly (i.e., refer to `conftest.exe'), while it won't with
2138 # `rm'.
2139 for ac_file in conftest.exe conftest conftest.*; do
2140   test -f "$ac_file" || continue
2141   case $ac_file in
2142     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2143     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2144           export ac_cv_exeext
2145           break;;
2146     * ) break;;
2147   esac
2148 done
2149 else
2150   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2153 See \`config.log' for more details." >&2;}
2154    { (exit 1); exit 1; }; }
2155 fi
2156
2157 rm -f conftest$ac_cv_exeext
2158 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2159 echo "${ECHO_T}$ac_cv_exeext" >&6
2160
2161 rm -f conftest.$ac_ext
2162 EXEEXT=$ac_cv_exeext
2163 ac_exeext=$EXEEXT
2164 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2165 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2166 if test "${ac_cv_objext+set}" = set; then
2167   echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169   cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2171 /* confdefs.h.  */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h.  */
2176
2177 int
2178 main ()
2179 {
2180
2181   ;
2182   return 0;
2183 }
2184 _ACEOF
2185 rm -f conftest.o conftest.obj
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187   (eval $ac_compile) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }; then
2191   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2192   case $ac_file in
2193     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2194     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2195        break;;
2196   esac
2197 done
2198 else
2199   echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2201
2202 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2205 See \`config.log' for more details." >&2;}
2206    { (exit 1); exit 1; }; }
2207 fi
2208
2209 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2210 fi
2211 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2212 echo "${ECHO_T}$ac_cv_objext" >&6
2213 OBJEXT=$ac_cv_objext
2214 ac_objext=$OBJEXT
2215 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2216 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2217 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2218   echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220   cat >conftest.$ac_ext <<_ACEOF
2221 #line $LINENO "configure"
2222 /* confdefs.h.  */
2223 _ACEOF
2224 cat confdefs.h >>conftest.$ac_ext
2225 cat >>conftest.$ac_ext <<_ACEOF
2226 /* end confdefs.h.  */
2227
2228 int
2229 main ()
2230 {
2231 #ifndef __GNUC__
2232        choke me
2233 #endif
2234
2235   ;
2236   return 0;
2237 }
2238 _ACEOF
2239 rm -f conftest.$ac_objext
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241   (eval $ac_compile) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); } &&
2245          { ac_try='test -s conftest.$ac_objext'
2246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247   (eval $ac_try) 2>&5
2248   ac_status=$?
2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250   (exit $ac_status); }; }; then
2251   ac_compiler_gnu=yes
2252 else
2253   echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 ac_compiler_gnu=no
2257 fi
2258 rm -f conftest.$ac_objext conftest.$ac_ext
2259 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2260
2261 fi
2262 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2263 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2264 GXX=`test $ac_compiler_gnu = yes && echo yes`
2265 ac_test_CXXFLAGS=${CXXFLAGS+set}
2266 ac_save_CXXFLAGS=$CXXFLAGS
2267 CXXFLAGS="-g"
2268 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2269 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2270 if test "${ac_cv_prog_cxx_g+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 /* confdefs.h.  */
2276 _ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h.  */
2280
2281 int
2282 main ()
2283 {
2284
2285   ;
2286   return 0;
2287 }
2288 _ACEOF
2289 rm -f conftest.$ac_objext
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291   (eval $ac_compile) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); } &&
2295          { ac_try='test -s conftest.$ac_objext'
2296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297   (eval $ac_try) 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }; }; then
2301   ac_cv_prog_cxx_g=yes
2302 else
2303   echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2305
2306 ac_cv_prog_cxx_g=no
2307 fi
2308 rm -f conftest.$ac_objext conftest.$ac_ext
2309 fi
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2312 if test "$ac_test_CXXFLAGS" = set; then
2313   CXXFLAGS=$ac_save_CXXFLAGS
2314 elif test $ac_cv_prog_cxx_g = yes; then
2315   if test "$GXX" = yes; then
2316     CXXFLAGS="-g -O2"
2317   else
2318     CXXFLAGS="-g"
2319   fi
2320 else
2321   if test "$GXX" = yes; then
2322     CXXFLAGS="-O2"
2323   else
2324     CXXFLAGS=
2325   fi
2326 fi
2327 for ac_declaration in \
2328    ''\
2329    '#include <stdlib.h>' \
2330    'extern "C" void std::exit (int) throw (); using std::exit;' \
2331    'extern "C" void std::exit (int); using std::exit;' \
2332    'extern "C" void exit (int) throw ();' \
2333    'extern "C" void exit (int);' \
2334    'void exit (int);'
2335 do
2336   cat >conftest.$ac_ext <<_ACEOF
2337 #line $LINENO "configure"
2338 /* confdefs.h.  */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h.  */
2343 #include <stdlib.h>
2344 $ac_declaration
2345 int
2346 main ()
2347 {
2348 exit (42);
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355   (eval $ac_compile) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); } &&
2359          { ac_try='test -s conftest.$ac_objext'
2360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361   (eval $ac_try) 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); }; }; then
2365   :
2366 else
2367   echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 continue
2371 fi
2372 rm -f conftest.$ac_objext conftest.$ac_ext
2373   cat >conftest.$ac_ext <<_ACEOF
2374 #line $LINENO "configure"
2375 /* confdefs.h.  */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h.  */
2380 $ac_declaration
2381 int
2382 main ()
2383 {
2384 exit (42);
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391   (eval $ac_compile) 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -s conftest.$ac_objext'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; }; then
2401   break
2402 else
2403   echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 fi
2407 rm -f conftest.$ac_objext conftest.$ac_ext
2408 done
2409 rm -f conftest*
2410 if test -n "$ac_declaration"; then
2411   echo '#ifdef __cplusplus' >>confdefs.h
2412   echo $ac_declaration      >>confdefs.h
2413   echo '#endif'             >>confdefs.h
2414 fi
2415
2416 ac_ext=c
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421
2422 ac_ext=c
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 if test -n "$ac_tool_prefix"; then
2428   for ac_prog in gcc
2429   do
2430     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   if test -n "$CC"; then
2438   ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445   for ac_exec_ext in '' $ac_executable_extensions; do
2446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449     break 2
2450   fi
2451 done
2452 done
2453
2454 fi
2455 fi
2456 CC=$ac_cv_prog_CC
2457 if test -n "$CC"; then
2458   echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6
2460 else
2461   echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2463 fi
2464
2465     test -n "$CC" && break
2466   done
2467 fi
2468 if test -z "$CC"; then
2469   ac_ct_CC=$CC
2470   for ac_prog in gcc
2471 do
2472   # Extract the first word of "$ac_prog", so it can be a program name with args.
2473 set dummy $ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test -n "$ac_ct_CC"; then
2480   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489     ac_cv_prog_ac_ct_CC="$ac_prog"
2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495
2496 fi
2497 fi
2498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499 if test -n "$ac_ct_CC"; then
2500   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2501 echo "${ECHO_T}$ac_ct_CC" >&6
2502 else
2503   echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2505 fi
2506
2507   test -n "$ac_ct_CC" && break
2508 done
2509
2510   CC=$ac_ct_CC
2511 fi
2512
2513
2514 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2515 See \`config.log' for more details." >&5
2516 echo "$as_me: error: no acceptable C compiler found in \$PATH
2517 See \`config.log' for more details." >&2;}
2518    { (exit 1); exit 1; }; }
2519
2520 # Provide some information about the compiler.
2521 echo "$as_me:$LINENO:" \
2522      "checking for C compiler version" >&5
2523 ac_compiler=`set X $ac_compile; echo $2`
2524 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2525   (eval $ac_compiler --version </dev/null >&5) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }
2529 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2530   (eval $ac_compiler -v </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
2540 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2541 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2542 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   cat >conftest.$ac_ext <<_ACEOF
2546 #line $LINENO "configure"
2547 /* confdefs.h.  */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h.  */
2552
2553 int
2554 main ()
2555 {
2556 #ifndef __GNUC__
2557        choke me
2558 #endif
2559
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566   (eval $ac_compile) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); } &&
2570          { ac_try='test -s conftest.$ac_objext'
2571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572   (eval $ac_try) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; }; then
2576   ac_compiler_gnu=yes
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581 ac_compiler_gnu=no
2582 fi
2583 rm -f conftest.$ac_objext conftest.$ac_ext
2584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2585
2586 fi
2587 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2589 GCC=`test $ac_compiler_gnu = yes && echo yes`
2590 ac_test_CFLAGS=${CFLAGS+set}
2591 ac_save_CFLAGS=$CFLAGS
2592 CFLAGS="-g"
2593 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2594 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2595 if test "${ac_cv_prog_cc_g+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   cat >conftest.$ac_ext <<_ACEOF
2599 #line $LINENO "configure"
2600 /* confdefs.h.  */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h.  */
2605
2606 int
2607 main ()
2608 {
2609
2610   ;
2611   return 0;
2612 }
2613 _ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616   (eval $ac_compile) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   ac_cv_prog_cc_g=yes
2627 else
2628   echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631 ac_cv_prog_cc_g=no
2632 fi
2633 rm -f conftest.$ac_objext conftest.$ac_ext
2634 fi
2635 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2636 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2637 if test "$ac_test_CFLAGS" = set; then
2638   CFLAGS=$ac_save_CFLAGS
2639 elif test $ac_cv_prog_cc_g = yes; then
2640   if test "$GCC" = yes; then
2641     CFLAGS="-g -O2"
2642   else
2643     CFLAGS="-g"
2644   fi
2645 else
2646   if test "$GCC" = yes; then
2647     CFLAGS="-O2"
2648   else
2649     CFLAGS=
2650   fi
2651 fi
2652 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2653 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2654 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2655   echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657   ac_cv_prog_cc_stdc=no
2658 ac_save_CC=$CC
2659 cat >conftest.$ac_ext <<_ACEOF
2660 #line $LINENO "configure"
2661 /* confdefs.h.  */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h.  */
2666 #include <stdarg.h>
2667 #include <stdio.h>
2668 #include <sys/types.h>
2669 #include <sys/stat.h>
2670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2671 struct buf { int x; };
2672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2673 static char *e (p, i)
2674      char **p;
2675      int i;
2676 {
2677   return p[i];
2678 }
2679 static char *f (char * (*g) (char **, int), char **p, ...)
2680 {
2681   char *s;
2682   va_list v;
2683   va_start (v,p);
2684   s = g (p, va_arg (v,int));
2685   va_end (v);
2686   return s;
2687 }
2688 int test (int i, double x);
2689 struct s1 {int (*f) (int a);};
2690 struct s2 {int (*f) (double a);};
2691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2692 int argc;
2693 char **argv;
2694 int
2695 main ()
2696 {
2697 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 # Don't try gcc -ansi; that turns off useful extensions and
2703 # breaks some systems' header files.
2704 # AIX                   -qlanglvl=ansi
2705 # Ultrix and OSF/1      -std1
2706 # HP-UX 10.20 and later -Ae
2707 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2708 # SVR4                  -Xc -D__EXTENSIONS__
2709 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2710 do
2711   CC="$ac_save_CC $ac_arg"
2712   rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714   (eval $ac_compile) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -s conftest.$ac_objext'
2719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720   (eval $ac_try) 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }; }; then
2724   ac_cv_prog_cc_stdc=$ac_arg
2725 break
2726 else
2727   echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 fi
2731 rm -f conftest.$ac_objext
2732 done
2733 rm -f conftest.$ac_ext conftest.$ac_objext
2734 CC=$ac_save_CC
2735
2736 fi
2737
2738 case "x$ac_cv_prog_cc_stdc" in
2739   x|xno)
2740     echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6 ;;
2742   *)
2743     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2745     CC="$CC $ac_cv_prog_cc_stdc" ;;
2746 esac
2747
2748 # Some people use a C++ compiler to compile C.  Since we use `exit',
2749 # in C++ we need to declare it.  In case someone uses the same compiler
2750 # for both compiling C and C++ we need to have the C++ compiler decide
2751 # the declaration of exit, since it's the most demanding environment.
2752 cat >conftest.$ac_ext <<_ACEOF
2753 #ifndef __cplusplus
2754   choke me
2755 #endif
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759   (eval $ac_compile) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } &&
2763          { ac_try='test -s conftest.$ac_objext'
2764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765   (eval $ac_try) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }; }; then
2769   for ac_declaration in \
2770    ''\
2771    '#include <stdlib.h>' \
2772    'extern "C" void std::exit (int) throw (); using std::exit;' \
2773    'extern "C" void std::exit (int); using std::exit;' \
2774    'extern "C" void exit (int) throw ();' \
2775    'extern "C" void exit (int);' \
2776    'void exit (int);'
2777 do
2778   cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785 #include <stdlib.h>
2786 $ac_declaration
2787 int
2788 main ()
2789 {
2790 exit (42);
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797   (eval $ac_compile) 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); } &&
2801          { ac_try='test -s conftest.$ac_objext'
2802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803   (eval $ac_try) 2>&5
2804   ac_status=$?
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); }; }; then
2807   :
2808 else
2809   echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2811
2812 continue
2813 fi
2814 rm -f conftest.$ac_objext conftest.$ac_ext
2815   cat >conftest.$ac_ext <<_ACEOF
2816 #line $LINENO "configure"
2817 /* confdefs.h.  */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h.  */
2822 $ac_declaration
2823 int
2824 main ()
2825 {
2826 exit (42);
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833   (eval $ac_compile) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); } &&
2837          { ac_try='test -s conftest.$ac_objext'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; }; then
2843   break
2844 else
2845   echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848 fi
2849 rm -f conftest.$ac_objext conftest.$ac_ext
2850 done
2851 rm -f conftest*
2852 if test -n "$ac_declaration"; then
2853   echo '#ifdef __cplusplus' >>confdefs.h
2854   echo $ac_declaration      >>confdefs.h
2855   echo '#endif'             >>confdefs.h
2856 fi
2857
2858 else
2859   echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 fi
2863 rm -f conftest.$ac_objext conftest.$ac_ext
2864 ac_ext=c
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869
2870 ac_ext=c
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2879   CPP=
2880 fi
2881 if test -z "$CPP"; then
2882   if test "${ac_cv_prog_CPP+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885       # Double quotes because CPP needs to be expanded
2886     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2887     do
2888       ac_preproc_ok=false
2889 for ac_c_preproc_warn_flag in '' yes
2890 do
2891   # Use a header file that comes with gcc, so configuring glibc
2892   # with a fresh cross-compiler works.
2893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894   # <limits.h> exists even on freestanding compilers.
2895   # On the NeXT, cc -E runs the code through the compiler's parser,
2896   # not just through cpp. "Syntax error" is here to catch this case.
2897   cat >conftest.$ac_ext <<_ACEOF
2898 #line $LINENO "configure"
2899 /* confdefs.h.  */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h.  */
2904 #ifdef __STDC__
2905 # include <limits.h>
2906 #else
2907 # include <assert.h>
2908 #endif
2909                      Syntax error
2910 _ACEOF
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2913   ac_status=$?
2914   grep -v '^ *+' conftest.er1 >conftest.err
2915   rm -f conftest.er1
2916   cat conftest.err >&5
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); } >/dev/null; then
2919   if test -s conftest.err; then
2920     ac_cpp_err=$ac_c_preproc_warn_flag
2921   else
2922     ac_cpp_err=
2923   fi
2924 else
2925   ac_cpp_err=yes
2926 fi
2927 if test -z "$ac_cpp_err"; then
2928   :
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933   # Broken: fails on valid input.
2934 continue
2935 fi
2936 rm -f conftest.err conftest.$ac_ext
2937
2938   # OK, works on sane cases.  Now check whether non-existent headers
2939   # can be detected and how.
2940   cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947 #include <ac_nonexistent.h>
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } >/dev/null; then
2957   if test -s conftest.err; then
2958     ac_cpp_err=$ac_c_preproc_warn_flag
2959   else
2960     ac_cpp_err=
2961   fi
2962 else
2963   ac_cpp_err=yes
2964 fi
2965 if test -z "$ac_cpp_err"; then
2966   # Broken: success on invalid input.
2967 continue
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972   # Passes both tests.
2973 ac_preproc_ok=:
2974 break
2975 fi
2976 rm -f conftest.err conftest.$ac_ext
2977
2978 done
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.$ac_ext
2981 if $ac_preproc_ok; then
2982   break
2983 fi
2984
2985     done
2986     ac_cv_prog_CPP=$CPP
2987
2988 fi
2989   CPP=$ac_cv_prog_CPP
2990 else
2991   ac_cv_prog_CPP=$CPP
2992 fi
2993 echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6
2995 ac_preproc_ok=false
2996 for ac_c_preproc_warn_flag in '' yes
2997 do
2998   # Use a header file that comes with gcc, so configuring glibc
2999   # with a fresh cross-compiler works.
3000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001   # <limits.h> exists even on freestanding compilers.
3002   # On the NeXT, cc -E runs the code through the compiler's parser,
3003   # not just through cpp. "Syntax error" is here to catch this case.
3004   cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #ifdef __STDC__
3012 # include <limits.h>
3013 #else
3014 # include <assert.h>
3015 #endif
3016                      Syntax error
3017 _ACEOF
3018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020   ac_status=$?
3021   grep -v '^ *+' conftest.er1 >conftest.err
3022   rm -f conftest.er1
3023   cat conftest.err >&5
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); } >/dev/null; then
3026   if test -s conftest.err; then
3027     ac_cpp_err=$ac_c_preproc_warn_flag
3028   else
3029     ac_cpp_err=
3030   fi
3031 else
3032   ac_cpp_err=yes
3033 fi
3034 if test -z "$ac_cpp_err"; then
3035   :
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040   # Broken: fails on valid input.
3041 continue
3042 fi
3043 rm -f conftest.err conftest.$ac_ext
3044
3045   # OK, works on sane cases.  Now check whether non-existent headers
3046   # can be detected and how.
3047   cat >conftest.$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054 #include <ac_nonexistent.h>
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } >/dev/null; then
3064   if test -s conftest.err; then
3065     ac_cpp_err=$ac_c_preproc_warn_flag
3066   else
3067     ac_cpp_err=
3068   fi
3069 else
3070   ac_cpp_err=yes
3071 fi
3072 if test -z "$ac_cpp_err"; then
3073   # Broken: success on invalid input.
3074 continue
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Passes both tests.
3080 ac_preproc_ok=:
3081 break
3082 fi
3083 rm -f conftest.err conftest.$ac_ext
3084
3085 done
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then
3089   :
3090 else
3091   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&5
3093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&2;}
3095    { (exit 1); exit 1; }; }
3096 fi
3097
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
3104
3105 if test "$GCC" != "yes"
3106 then
3107         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3108 echo "$as_me: error: gcc required but not found" >&2;}
3109    { (exit 1); exit 1; }; }
3110 fi
3111 if test "$GXX" != "yes"
3112 then
3113         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3114 echo "$as_me: error: g++ required but not found" >&2;}
3115    { (exit 1); exit 1; }; }
3116 fi
3117
3118 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3119 if test "$gccmajor" -lt "3"
3120 then
3121         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3122 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3123    { (exit 1); exit 1; }; }
3124 fi
3125
3126  echo "$as_me:$LINENO: checking for GNU make" >&5
3127 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3128 if test "${_cv_gnu_make_command+set}" = set; then
3129   echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131   _cv_gnu_make_command='' ;
3132                 for a in "$MAKE" make gmake gnumake ; do
3133                         if test -z "$a" ; then continue ; fi ;
3134                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3135                                 _cv_gnu_make_command=$a ;
3136                                 break;
3137                         fi
3138                 done ;
3139
3140 fi
3141 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3142 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3143         if test  "x$_cv_gnu_make_command" != "x"  ; then
3144                 ifGNUmake='' ;
3145         else
3146                 ifGNUmake='#' ;
3147                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3148 echo "${ECHO_T}\"Not found\"" >&6;
3149         fi
3150
3151
3152 if test -z "$_cv_gnu_make_command"
3153 then
3154         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3155 echo "$as_me: error: GNU Make required but not found" >&2;}
3156    { (exit 1); exit 1; }; }
3157 fi
3158
3159
3160 echo "$as_me:$LINENO: checking " >&5
3161 echo $ECHO_N "checking ... $ECHO_C" >&6
3162 if test "${ac_cv_has_flex+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165   for ac_prog in flex lex
3166 do
3167   # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171 if test "${ac_cv_prog_LEX+set}" = set; then
3172   echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174   if test -n "$LEX"; then
3175   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180   IFS=$as_save_IFS
3181   test -z "$as_dir" && as_dir=.
3182   for ac_exec_ext in '' $ac_executable_extensions; do
3183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184     ac_cv_prog_LEX="$ac_prog"
3185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186     break 2
3187   fi
3188 done
3189 done
3190
3191 fi
3192 fi
3193 LEX=$ac_cv_prog_LEX
3194 if test -n "$LEX"; then
3195   echo "$as_me:$LINENO: result: $LEX" >&5
3196 echo "${ECHO_T}$LEX" >&6
3197 else
3198   echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3200 fi
3201
3202   test -n "$LEX" && break
3203 done
3204 test -n "$LEX" || LEX=":"
3205
3206 if test -z "$LEXLIB"
3207 then
3208   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3209 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3210 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213   ac_check_lib_save_LIBS=$LIBS
3214 LIBS="-lfl  $LIBS"
3215 cat >conftest.$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3217 /* confdefs.h.  */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h.  */
3222
3223 /* Override any gcc2 internal prototype to avoid an error.  */
3224 #ifdef __cplusplus
3225 extern "C"
3226 #endif
3227 /* We use char because int might match the return type of a gcc2
3228    builtin and then its argument prototype would still apply.  */
3229 char yywrap ();
3230 int
3231 main ()
3232 {
3233 yywrap ();
3234   ;
3235   return 0;
3236 }
3237 _ACEOF
3238 rm -f conftest.$ac_objext conftest$ac_exeext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240   (eval $ac_link) 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } &&
3244          { ac_try='test -s conftest$ac_exeext'
3245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246   (eval $ac_try) 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; }; then
3250   ac_cv_lib_fl_yywrap=yes
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 ac_cv_lib_fl_yywrap=no
3256 fi
3257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3258 LIBS=$ac_check_lib_save_LIBS
3259 fi
3260 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3261 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3262 if test $ac_cv_lib_fl_yywrap = yes; then
3263   LEXLIB="-lfl"
3264 else
3265   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3266 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3267 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3268   echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270   ac_check_lib_save_LIBS=$LIBS
3271 LIBS="-ll  $LIBS"
3272 cat >conftest.$ac_ext <<_ACEOF
3273 #line $LINENO "configure"
3274 /* confdefs.h.  */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h.  */
3279
3280 /* Override any gcc2 internal prototype to avoid an error.  */
3281 #ifdef __cplusplus
3282 extern "C"
3283 #endif
3284 /* We use char because int might match the return type of a gcc2
3285    builtin and then its argument prototype would still apply.  */
3286 char yywrap ();
3287 int
3288 main ()
3289 {
3290 yywrap ();
3291   ;
3292   return 0;
3293 }
3294 _ACEOF
3295 rm -f conftest.$ac_objext conftest$ac_exeext
3296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3297   (eval $ac_link) 2>&5
3298   ac_status=$?
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); } &&
3301          { ac_try='test -s conftest$ac_exeext'
3302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303   (eval $ac_try) 2>&5
3304   ac_status=$?
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); }; }; then
3307   ac_cv_lib_l_yywrap=yes
3308 else
3309   echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312 ac_cv_lib_l_yywrap=no
3313 fi
3314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3315 LIBS=$ac_check_lib_save_LIBS
3316 fi
3317 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3318 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3319 if test $ac_cv_lib_l_yywrap = yes; then
3320   LEXLIB="-ll"
3321 fi
3322
3323 fi
3324
3325 fi
3326
3327 if test "x$LEX" != "x:"; then
3328   echo "$as_me:$LINENO: checking lex output file root" >&5
3329 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3330 if test "${ac_cv_prog_lex_root+set}" = set; then
3331   echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333   # The minimal lex program is just a single line: %%.  But some broken lexes
3334 # (Solaris, I think it was) want two %% lines, so accommodate them.
3335 cat >conftest.l <<_ACEOF
3336 %%
3337 %%
3338 _ACEOF
3339 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3340   (eval $LEX conftest.l) 2>&5
3341   ac_status=$?
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); }
3344 if test -f lex.yy.c; then
3345   ac_cv_prog_lex_root=lex.yy
3346 elif test -f lexyy.c; then
3347   ac_cv_prog_lex_root=lexyy
3348 else
3349   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3350 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3351    { (exit 1); exit 1; }; }
3352 fi
3353 fi
3354 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3355 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3356 rm -f conftest.l
3357 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3358
3359 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3360 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3361 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   # POSIX says lex can declare yytext either as a pointer or an array; the
3365 # default is implementation-dependent. Figure out which it is, since
3366 # not all implementations provide the %pointer and %array declarations.
3367 ac_cv_prog_lex_yytext_pointer=no
3368 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3369 ac_save_LIBS=$LIBS
3370 LIBS="$LIBS $LEXLIB"
3371 cat >conftest.$ac_ext <<_ACEOF
3372 `cat $LEX_OUTPUT_ROOT.c`
3373 _ACEOF
3374 rm -f conftest.$ac_objext conftest$ac_exeext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3376   (eval $ac_link) 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); } &&
3380          { ac_try='test -s conftest$ac_exeext'
3381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382   (eval $ac_try) 2>&5
3383   ac_status=$?
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); }; }; then
3386   ac_cv_prog_lex_yytext_pointer=yes
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 fi
3392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3393 LIBS=$ac_save_LIBS
3394 rm -f "${LEX_OUTPUT_ROOT}.c"
3395
3396 fi
3397 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3398 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3399 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3400
3401 cat >>confdefs.h <<\_ACEOF
3402 #define YYTEXT_POINTER 1
3403 _ACEOF
3404
3405 fi
3406
3407 fi
3408
3409 fi
3410 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3411 echo "${ECHO_T}$ac_cv_has_flex" >&6
3412 if test "$LEX" != "flex"; then
3413   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3414 echo "$as_me: error: flex not found but required" >&2;}
3415    { (exit 1); exit 1; }; }
3416 fi
3417
3418 echo "$as_me:$LINENO: checking " >&5
3419 echo $ECHO_N "checking ... $ECHO_C" >&6
3420 if test "${ac_cv_has_bison+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   for ac_prog in 'bison -y' byacc
3424 do
3425   # Extract the first word of "$ac_prog", so it can be a program name with args.
3426 set dummy $ac_prog; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_prog_YACC+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   if test -n "$YACC"; then
3433   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438   IFS=$as_save_IFS
3439   test -z "$as_dir" && as_dir=.
3440   for ac_exec_ext in '' $ac_executable_extensions; do
3441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442     ac_cv_prog_YACC="$ac_prog"
3443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444     break 2
3445   fi
3446 done
3447 done
3448
3449 fi
3450 fi
3451 YACC=$ac_cv_prog_YACC
3452 if test -n "$YACC"; then
3453   echo "$as_me:$LINENO: result: $YACC" >&5
3454 echo "${ECHO_T}$YACC" >&6
3455 else
3456   echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3458 fi
3459
3460   test -n "$YACC" && break
3461 done
3462 test -n "$YACC" || YACC="yacc"
3463
3464
3465 fi
3466 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3467 echo "${ECHO_T}$ac_cv_has_bison" >&6
3468 if test "$YACC" != "bison -y"; then
3469   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3470 echo "$as_me: error: bison not found but required" >&2;}
3471    { (exit 1); exit 1; }; }
3472 else
3473   BISON=bison
3474
3475 fi
3476
3477 # Check whether --enable-shared or --disable-shared was given.
3478 if test "${enable_shared+set}" = set; then
3479   enableval="$enable_shared"
3480   p=${PACKAGE-default}
3481     case $enableval in
3482     yes) enable_shared=yes ;;
3483     no) enable_shared=no ;;
3484     *)
3485       enable_shared=no
3486       # Look at the argument we got.  We use all the common list separators.
3487       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3488       for pkg in $enableval; do
3489         IFS="$lt_save_ifs"
3490         if test "X$pkg" = "X$p"; then
3491           enable_shared=yes
3492         fi
3493       done
3494       IFS="$lt_save_ifs"
3495       ;;
3496     esac
3497 else
3498   enable_shared=yes
3499 fi;
3500
3501 # Check whether --enable-static or --disable-static was given.
3502 if test "${enable_static+set}" = set; then
3503   enableval="$enable_static"
3504   p=${PACKAGE-default}
3505     case $enableval in
3506     yes) enable_static=yes ;;
3507     no) enable_static=no ;;
3508     *)
3509      enable_static=no
3510       # Look at the argument we got.  We use all the common list separators.
3511       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3512       for pkg in $enableval; do
3513         IFS="$lt_save_ifs"
3514         if test "X$pkg" = "X$p"; then
3515           enable_static=yes
3516         fi
3517       done
3518       IFS="$lt_save_ifs"
3519       ;;
3520     esac
3521 else
3522   enable_static=yes
3523 fi;
3524
3525 # Check whether --enable-fast-install or --disable-fast-install was given.
3526 if test "${enable_fast_install+set}" = set; then
3527   enableval="$enable_fast_install"
3528   p=${PACKAGE-default}
3529     case $enableval in
3530     yes) enable_fast_install=yes ;;
3531     no) enable_fast_install=no ;;
3532     *)
3533       enable_fast_install=no
3534       # Look at the argument we got.  We use all the common list separators.
3535       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3536       for pkg in $enableval; do
3537         IFS="$lt_save_ifs"
3538         if test "X$pkg" = "X$p"; then
3539           enable_fast_install=yes
3540         fi
3541       done
3542       IFS="$lt_save_ifs"
3543       ;;
3544     esac
3545 else
3546   enable_fast_install=yes
3547 fi;
3548
3549 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3550 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3551 if test "${lt_cv_path_SED+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   # Loop through the user's path and test for sed and gsed.
3555 # Then use that list of sed's as ones to test for truncation.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559   IFS=$as_save_IFS
3560   test -z "$as_dir" && as_dir=.
3561   for lt_ac_prog in sed gsed; do
3562     for ac_exec_ext in '' $ac_executable_extensions; do
3563       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3564         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3565       fi
3566     done
3567   done
3568 done
3569 lt_ac_max=0
3570 lt_ac_count=0
3571 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3572 # along with /bin/sed that truncates output.
3573 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3574   test ! -f $lt_ac_sed && break
3575   cat /dev/null > conftest.in
3576   lt_ac_count=0
3577   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3578   # Check for GNU sed and select it if it is found.
3579   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3580     lt_cv_path_SED=$lt_ac_sed
3581     break
3582   fi
3583   while true; do
3584     cat conftest.in conftest.in >conftest.tmp
3585     mv conftest.tmp conftest.in
3586     cp conftest.in conftest.nl
3587     echo >>conftest.nl
3588     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3589     cmp -s conftest.out conftest.nl || break
3590     # 10000 chars as input seems more than enough
3591     test $lt_ac_count -gt 10 && break
3592     lt_ac_count=`expr $lt_ac_count + 1`
3593     if test $lt_ac_count -gt $lt_ac_max; then
3594       lt_ac_max=$lt_ac_count
3595       lt_cv_path_SED=$lt_ac_sed
3596     fi
3597   done
3598 done
3599 SED=$lt_cv_path_SED
3600
3601 fi
3602
3603 echo "$as_me:$LINENO: result: $SED" >&5
3604 echo "${ECHO_T}$SED" >&6
3605
3606 echo "$as_me:$LINENO: checking for egrep" >&5
3607 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3608 if test "${ac_cv_prog_egrep+set}" = set; then
3609   echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3612     then ac_cv_prog_egrep='grep -E'
3613     else ac_cv_prog_egrep='egrep'
3614     fi
3615 fi
3616 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3617 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3618  EGREP=$ac_cv_prog_egrep
3619
3620
3621
3622 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3623 if test "${with_gnu_ld+set}" = set; then
3624   withval="$with_gnu_ld"
3625   test "$withval" = no || with_gnu_ld=yes
3626 else
3627   with_gnu_ld=no
3628 fi;
3629 ac_prog=ld
3630 if test "$GCC" = yes; then
3631   # Check if gcc -print-prog-name=ld gives a path.
3632   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3633 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3634   case $host in
3635   *-*-mingw*)
3636     # gcc leaves a trailing carriage return which upsets mingw
3637     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3638   *)
3639     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3640   esac
3641   case $ac_prog in
3642     # Accept absolute paths.
3643     [\\/]* | ?:[\\/]*)
3644       re_direlt='/[^/][^/]*/\.\./'
3645       # Canonicalize the path of ld
3646       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3647       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3648         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3649       done
3650       test -z "$LD" && LD="$ac_prog"
3651       ;;
3652   "")
3653     # If it fails, then pretend we aren't using GCC.
3654     ac_prog=ld
3655     ;;
3656   *)
3657     # If it is relative, then search for the first ld in PATH.
3658     with_gnu_ld=unknown
3659     ;;
3660   esac
3661 elif test "$with_gnu_ld" = yes; then
3662   echo "$as_me:$LINENO: checking for GNU ld" >&5
3663 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3664 else
3665   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3666 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3667 fi
3668 if test "${lt_cv_path_LD+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   if test -z "$LD"; then
3672   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3673   for ac_dir in $PATH; do
3674     IFS="$lt_save_ifs"
3675     test -z "$ac_dir" && ac_dir=.
3676     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3677       lt_cv_path_LD="$ac_dir/$ac_prog"
3678       # Check to see if the program is GNU ld.  I'd rather use --version,
3679       # but apparently some GNU ld's only accept -v.
3680       # Break only if it was the GNU/non-GNU ld that we prefer.
3681       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3682       *GNU* | *'with BFD'*)
3683         test "$with_gnu_ld" != no && break
3684         ;;
3685       *)
3686         test "$with_gnu_ld" != yes && break
3687         ;;
3688       esac
3689     fi
3690   done
3691   IFS="$lt_save_ifs"
3692 else
3693   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3694 fi
3695 fi
3696
3697 LD="$lt_cv_path_LD"
3698 if test -n "$LD"; then
3699   echo "$as_me:$LINENO: result: $LD" >&5
3700 echo "${ECHO_T}$LD" >&6
3701 else
3702   echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3704 fi
3705 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3706 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3707    { (exit 1); exit 1; }; }
3708 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3709 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3710 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3714 case `"$LD" -v 2>&1 </dev/null` in
3715 *GNU* | *'with BFD'*)
3716   lt_cv_prog_gnu_ld=yes
3717   ;;
3718 *)
3719   lt_cv_prog_gnu_ld=no
3720   ;;
3721 esac
3722 fi
3723 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3724 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3725 with_gnu_ld=$lt_cv_prog_gnu_ld
3726
3727
3728 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3729 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3730 if test "${lt_cv_ld_reload_flag+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   lt_cv_ld_reload_flag='-r'
3734 fi
3735 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3736 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3737 reload_flag=$lt_cv_ld_reload_flag
3738 case $reload_flag in
3739 "" | " "*) ;;
3740 *) reload_flag=" $reload_flag" ;;
3741 esac
3742 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3743
3744 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3745 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3746 if test "${lt_cv_path_NM+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   if test -n "$NM"; then
3750   # Let the user override the test.
3751   lt_cv_path_NM="$NM"
3752 else
3753   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3754   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3755     IFS="$lt_save_ifs"
3756     test -z "$ac_dir" && ac_dir=.
3757     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3758     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3759       # Check to see if the nm accepts a BSD-compat flag.
3760       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3761       #   nm: unknown option "B" ignored
3762       # Tru64's nm complains that /dev/null is an invalid object file
3763       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3764       */dev/null* | *'Invalid file or object type'*)
3765         lt_cv_path_NM="$tmp_nm -B"
3766         break
3767         ;;
3768       *)
3769         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3770         */dev/null*)
3771           lt_cv_path_NM="$tmp_nm -p"
3772           break
3773           ;;
3774         *)
3775           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3776           continue # so that we can try to find one that supports BSD flags
3777           ;;
3778         esac
3779       esac
3780     fi
3781   done
3782   IFS="$lt_save_ifs"
3783   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3784 fi
3785 fi
3786 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3787 echo "${ECHO_T}$lt_cv_path_NM" >&6
3788 NM="$lt_cv_path_NM"
3789
3790 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3792 LN_S=$as_ln_s
3793 if test "$LN_S" = "ln -s"; then
3794   echo "$as_me:$LINENO: result: yes" >&5
3795 echo "${ECHO_T}yes" >&6
3796 else
3797   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3798 echo "${ECHO_T}no, using $LN_S" >&6
3799 fi
3800
3801 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3802 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3803 if test "${lt_cv_deplibs_check_method+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   lt_cv_file_magic_cmd='$MAGIC_CMD'
3807 lt_cv_file_magic_test_file=
3808 lt_cv_deplibs_check_method='unknown'
3809 # Need to set the preceding variable on all platforms that support
3810 # interlibrary dependencies.
3811 # 'none' -- dependencies not supported.
3812 # `unknown' -- same as none, but documents that we really don't know.
3813 # 'pass_all' -- all dependencies passed with no checks.
3814 # 'test_compile' -- check by making test program.
3815 # 'file_magic [[regex]]' -- check by looking for files in library path
3816 # which responds to the $file_magic_cmd with a given extended regex.
3817 # If you have `file' or equivalent on your system and you're not sure
3818 # whether `pass_all' will *always* work, you probably want this one.
3819
3820 case $host_os in
3821 aix4* | aix5*)
3822   lt_cv_deplibs_check_method=pass_all
3823   ;;
3824
3825 beos*)
3826   lt_cv_deplibs_check_method=pass_all
3827   ;;
3828
3829 bsdi4*)
3830   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3831   lt_cv_file_magic_cmd='/usr/bin/file -L'
3832   lt_cv_file_magic_test_file=/shlib/libc.so
3833   ;;
3834
3835 cygwin* | mingw* | pw32*)
3836   # win32_libid is a shell function defined in ltmain.sh
3837   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3838   lt_cv_file_magic_cmd='win32_libid'
3839   ;;
3840
3841 darwin* | rhapsody*)
3842   # this will be overwritten by pass_all, but leave it in just in case
3843   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3844   lt_cv_file_magic_cmd='/usr/bin/file -L'
3845   case "$host_os" in
3846   rhapsody* | darwin1.[012])
3847     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3848     ;;
3849   *) # Darwin 1.3 on
3850     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3851     ;;
3852   esac
3853   lt_cv_deplibs_check_method=pass_all
3854   ;;
3855
3856 freebsd*)
3857   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3858     case $host_cpu in
3859     i*86 )
3860       # Not sure whether the presence of OpenBSD here was a mistake.
3861       # Let's accept both of them until this is cleared up.
3862       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3863       lt_cv_file_magic_cmd=/usr/bin/file
3864       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3865       ;;
3866     esac
3867   else
3868     lt_cv_deplibs_check_method=pass_all
3869   fi
3870   ;;
3871
3872 gnu*)
3873   lt_cv_deplibs_check_method=pass_all
3874   ;;
3875
3876 hpux10.20* | hpux11*)
3877   lt_cv_file_magic_cmd=/usr/bin/file
3878   case "$host_cpu" in
3879   ia64*)
3880     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3881     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3882     ;;
3883   hppa*64*)
3884     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]'
3885     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3886     ;;
3887   *)
3888     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3889     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3890     ;;
3891   esac
3892   ;;
3893
3894 irix5* | irix6* | nonstopux*)
3895   case $host_os in
3896   irix5* | nonstopux*)
3897     # this will be overridden with pass_all, but let us keep it just in case
3898     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3899     ;;
3900   *)
3901     case $LD in
3902     *-32|*"-32 ") libmagic=32-bit;;
3903     *-n32|*"-n32 ") libmagic=N32;;
3904     *-64|*"-64 ") libmagic=64-bit;;
3905     *) libmagic=never-match;;
3906     esac
3907     # this will be overridden with pass_all, but let us keep it just in case
3908     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3909     ;;
3910   esac
3911   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3912   lt_cv_deplibs_check_method=pass_all
3913   ;;
3914
3915 # This must be Linux ELF.
3916 linux*)
3917   case $host_cpu in
3918   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3919     lt_cv_deplibs_check_method=pass_all ;;
3920   *)
3921     # glibc up to 2.1.1 does not perform some relocations on ARM
3922     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3923   esac
3924   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3925   ;;
3926
3927 netbsd*)
3928   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3929     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3930   else
3931     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3932   fi
3933   ;;
3934
3935 newos6*)
3936   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3937   lt_cv_file_magic_cmd=/usr/bin/file
3938   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3939   ;;
3940
3941 nto-qnx)
3942   lt_cv_deplibs_check_method=unknown
3943   ;;
3944
3945 openbsd*)
3946   lt_cv_file_magic_cmd=/usr/bin/file
3947   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3948   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3949     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3950   else
3951     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3952   fi
3953   ;;
3954
3955 osf3* | osf4* | osf5*)
3956   # this will be overridden with pass_all, but let us keep it just in case
3957   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3958   lt_cv_file_magic_test_file=/shlib/libc.so
3959   lt_cv_deplibs_check_method=pass_all
3960   ;;
3961
3962 sco3.2v5*)
3963   lt_cv_deplibs_check_method=pass_all
3964   ;;
3965
3966 solaris*)
3967   lt_cv_deplibs_check_method=pass_all
3968   lt_cv_file_magic_test_file=/lib/libc.so
3969   ;;
3970
3971 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3972   case $host_vendor in
3973   motorola)
3974     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]'
3975     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3976     ;;
3977   ncr)
3978     lt_cv_deplibs_check_method=pass_all
3979     ;;
3980   sequent)
3981     lt_cv_file_magic_cmd='/bin/file'
3982     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3983     ;;
3984   sni)
3985     lt_cv_file_magic_cmd='/bin/file'
3986     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3987     lt_cv_file_magic_test_file=/lib/libc.so
3988     ;;
3989   siemens)
3990     lt_cv_deplibs_check_method=pass_all
3991     ;;
3992   esac
3993   ;;
3994
3995 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3996   lt_cv_deplibs_check_method=pass_all
3997   ;;
3998 esac
3999
4000 fi
4001 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4002 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4003 file_magic_cmd=$lt_cv_file_magic_cmd
4004 deplibs_check_method=$lt_cv_deplibs_check_method
4005 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4006
4007
4008
4009
4010 # If no C compiler was specified, use CC.
4011 LTCC=${LTCC-"$CC"}
4012
4013 # Allow CC to be a program name with arguments.
4014 compiler=$CC
4015
4016 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4017 if test "${enable_libtool_lock+set}" = set; then
4018   enableval="$enable_libtool_lock"
4019
4020 fi;
4021 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4022
4023 # Some flags need to be propagated to the compiler or linker for good
4024 # libtool support.
4025 case $host in
4026 ia64-*-hpux*)
4027   # Find out which ABI we are using.
4028   echo 'int i;' > conftest.$ac_ext
4029   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030   (eval $ac_compile) 2>&5
4031   ac_status=$?
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); }; then
4034     case `/usr/bin/file conftest.$ac_objext` in
4035     *ELF-32*)
4036       HPUX_IA64_MODE="32"
4037       ;;
4038     *ELF-64*)
4039       HPUX_IA64_MODE="64"
4040       ;;
4041     esac
4042   fi
4043   rm -rf conftest*
4044   ;;
4045 *-*-irix6*)
4046   # Find out which ABI we are using.
4047   echo '#line 4047 "configure"' > conftest.$ac_ext
4048   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049   (eval $ac_compile) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; then
4053    if test "$lt_cv_prog_gnu_ld" = yes; then
4054     case `/usr/bin/file conftest.$ac_objext` in
4055     *32-bit*)
4056       LD="${LD-ld} -melf32bsmip"
4057       ;;
4058     *N32*)
4059       LD="${LD-ld} -melf32bmipn32"
4060       ;;
4061     *64-bit*)
4062       LD="${LD-ld} -melf64bmip"
4063       ;;
4064     esac
4065    else
4066     case `/usr/bin/file conftest.$ac_objext` in
4067     *32-bit*)
4068       LD="${LD-ld} -32"
4069       ;;
4070     *N32*)
4071       LD="${LD-ld} -n32"
4072       ;;
4073     *64-bit*)
4074       LD="${LD-ld} -64"
4075       ;;
4076     esac
4077    fi
4078   fi
4079   rm -rf conftest*
4080   ;;
4081
4082 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4083   # Find out which ABI we are using.
4084   echo 'int i;' > conftest.$ac_ext
4085   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086   (eval $ac_compile) 2>&5
4087   ac_status=$?
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); }; then
4090     case "`/usr/bin/file conftest.o`" in
4091     *32-bit*)
4092       case $host in
4093         x86_64-*linux*)
4094           LD="${LD-ld} -m elf_i386"
4095           ;;
4096         ppc64-*linux*)
4097           LD="${LD-ld} -m elf32ppclinux"
4098           ;;
4099         s390x-*linux*)
4100           LD="${LD-ld} -m elf_s390"
4101           ;;
4102         sparc64-*linux*)
4103           LD="${LD-ld} -m elf32_sparc"
4104           ;;
4105       esac
4106       ;;
4107     *64-bit*)
4108       case $host in
4109         x86_64-*linux*)
4110           LD="${LD-ld} -m elf_x86_64"
4111           ;;
4112         ppc*-*linux*|powerpc*-*linux*)
4113           LD="${LD-ld} -m elf64ppc"
4114           ;;
4115         s390*-*linux*)
4116           LD="${LD-ld} -m elf64_s390"
4117           ;;
4118         sparc*-*linux*)
4119           LD="${LD-ld} -m elf64_sparc"
4120           ;;
4121       esac
4122       ;;
4123     esac
4124   fi
4125   rm -rf conftest*
4126   ;;
4127
4128 *-*-sco3.2v5*)
4129   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4130   SAVE_CFLAGS="$CFLAGS"
4131   CFLAGS="$CFLAGS -belf"
4132   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4133 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4134 if test "${lt_cv_cc_needs_belf+set}" = set; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   ac_ext=c
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142
4143      cat >conftest.$ac_ext <<_ACEOF
4144 #line $LINENO "configure"
4145 /* confdefs.h.  */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h.  */
4150
4151 int
4152 main ()
4153 {
4154
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 rm -f conftest.$ac_objext conftest$ac_exeext
4160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161   (eval $ac_link) 2>&5
4162   ac_status=$?
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); } &&
4165          { ac_try='test -s conftest$ac_exeext'
4166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167   (eval $ac_try) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; }; then
4171   lt_cv_cc_needs_belf=yes
4172 else
4173   echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4175
4176 lt_cv_cc_needs_belf=no
4177 fi
4178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4179      ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184
4185 fi
4186 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4187 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4188   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4189     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4190     CFLAGS="$SAVE_CFLAGS"
4191   fi
4192   ;;
4193
4194 esac
4195
4196 need_locks="$enable_libtool_lock"
4197
4198
4199
4200 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4202 if test "${ac_cv_header_stdc+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   cat >conftest.$ac_ext <<_ACEOF
4206 #line $LINENO "configure"
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212 #include <stdlib.h>
4213 #include <stdarg.h>
4214 #include <string.h>
4215 #include <float.h>
4216
4217 int
4218 main ()
4219 {
4220
4221   ;
4222   return 0;
4223 }
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227   (eval $ac_compile) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); } &&
4231          { ac_try='test -s conftest.$ac_objext'
4232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233   (eval $ac_try) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; }; then
4237   ac_cv_header_stdc=yes
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ac_cv_header_stdc=no
4243 fi
4244 rm -f conftest.$ac_objext conftest.$ac_ext
4245
4246 if test $ac_cv_header_stdc = yes; then
4247   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4248   cat >conftest.$ac_ext <<_ACEOF
4249 #line $LINENO "configure"
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255 #include <string.h>
4256
4257 _ACEOF
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259   $EGREP "memchr" >/dev/null 2>&1; then
4260   :
4261 else
4262   ac_cv_header_stdc=no
4263 fi
4264 rm -f conftest*
4265
4266 fi
4267
4268 if test $ac_cv_header_stdc = yes; then
4269   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4270   cat >conftest.$ac_ext <<_ACEOF
4271 #line $LINENO "configure"
4272 /* confdefs.h.  */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h.  */
4277 #include <stdlib.h>
4278
4279 _ACEOF
4280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281   $EGREP "free" >/dev/null 2>&1; then
4282   :
4283 else
4284   ac_cv_header_stdc=no
4285 fi
4286 rm -f conftest*
4287
4288 fi
4289
4290 if test $ac_cv_header_stdc = yes; then
4291   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4292   if test "$cross_compiling" = yes; then
4293   :
4294 else
4295   cat >conftest.$ac_ext <<_ACEOF
4296 #line $LINENO "configure"
4297 /* confdefs.h.  */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h.  */
4302 #include <ctype.h>
4303 #if ((' ' & 0x0FF) == 0x020)
4304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4306 #else
4307 # define ISLOWER(c) \
4308                    (('a' <= (c) && (c) <= 'i') \
4309                      || ('j' <= (c) && (c) <= 'r') \
4310                      || ('s' <= (c) && (c) <= 'z'))
4311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4312 #endif
4313
4314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4315 int
4316 main ()
4317 {
4318   int i;
4319   for (i = 0; i < 256; i++)
4320     if (XOR (islower (i), ISLOWER (i))
4321         || toupper (i) != TOUPPER (i))
4322       exit(2);
4323   exit (0);
4324 }
4325 _ACEOF
4326 rm -f conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328   (eval $ac_link) 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333   (eval $ac_try) 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }; }; then
4337   :
4338 else
4339   echo "$as_me: program exited with status $ac_status" >&5
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4342
4343 ( exit $ac_status )
4344 ac_cv_header_stdc=no
4345 fi
4346 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4347 fi
4348 fi
4349 fi
4350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4352 if test $ac_cv_header_stdc = yes; then
4353
4354 cat >>confdefs.h <<\_ACEOF
4355 #define STDC_HEADERS 1
4356 _ACEOF
4357
4358 fi
4359
4360 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4371                   inttypes.h stdint.h unistd.h
4372 do
4373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4374 echo "$as_me:$LINENO: checking for $ac_header" >&5
4375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   cat >conftest.$ac_ext <<_ACEOF
4380 #line $LINENO "configure"
4381 /* confdefs.h.  */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h.  */
4386 $ac_includes_default
4387
4388 #include <$ac_header>
4389 _ACEOF
4390 rm -f conftest.$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392   (eval $ac_compile) 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); } &&
4396          { ac_try='test -s conftest.$ac_objext'
4397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398   (eval $ac_try) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; }; then
4402   eval "$as_ac_Header=yes"
4403 else
4404   echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4406
4407 eval "$as_ac_Header=no"
4408 fi
4409 rm -f conftest.$ac_objext conftest.$ac_ext
4410 fi
4411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4414   cat >>confdefs.h <<_ACEOF
4415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4416 _ACEOF
4417
4418 fi
4419
4420 done
4421
4422
4423
4424 for ac_header in dlfcn.h
4425 do
4426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428   echo "$as_me:$LINENO: checking for $ac_header" >&5
4429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4431   echo $ECHO_N "(cached) $ECHO_C" >&6
4432 fi
4433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4435 else
4436   # Is the header compilable?
4437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4439 cat >conftest.$ac_ext <<_ACEOF
4440 #line $LINENO "configure"
4441 /* confdefs.h.  */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h.  */
4446 $ac_includes_default
4447 #include <$ac_header>
4448 _ACEOF
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451   (eval $ac_compile) 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } &&
4455          { ac_try='test -s conftest.$ac_objext'
4456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457   (eval $ac_try) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; }; then
4461   ac_header_compiler=yes
4462 else
4463   echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4465
4466 ac_header_compiler=no
4467 fi
4468 rm -f conftest.$ac_objext conftest.$ac_ext
4469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4470 echo "${ECHO_T}$ac_header_compiler" >&6
4471
4472 # Is the header present?
4473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4475 cat >conftest.$ac_ext <<_ACEOF
4476 #line $LINENO "configure"
4477 /* confdefs.h.  */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h.  */
4482 #include <$ac_header>
4483 _ACEOF
4484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4486   ac_status=$?
4487   grep -v '^ *+' conftest.er1 >conftest.err
4488   rm -f conftest.er1
4489   cat conftest.err >&5
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); } >/dev/null; then
4492   if test -s conftest.err; then
4493     ac_cpp_err=$ac_c_preproc_warn_flag
4494   else
4495     ac_cpp_err=
4496   fi
4497 else
4498   ac_cpp_err=yes
4499 fi
4500 if test -z "$ac_cpp_err"; then
4501   ac_header_preproc=yes
4502 else
4503   echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506   ac_header_preproc=no
4507 fi
4508 rm -f conftest.err conftest.$ac_ext
4509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4510 echo "${ECHO_T}$ac_header_preproc" >&6
4511
4512 # So?  What about this header?
4513 case $ac_header_compiler:$ac_header_preproc in
4514   yes:no )
4515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4519     (
4520       cat <<\_ASBOX
4521 ## ------------------------------------ ##
4522 ## Report this to bug-autoconf@gnu.org. ##
4523 ## ------------------------------------ ##
4524 _ASBOX
4525     ) |
4526       sed "s/^/$as_me: WARNING:     /" >&2
4527     ;;
4528   no:yes )
4529     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4531     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4535     (
4536       cat <<\_ASBOX
4537 ## ------------------------------------ ##
4538 ## Report this to bug-autoconf@gnu.org. ##
4539 ## ------------------------------------ ##
4540 _ASBOX
4541     ) |
4542       sed "s/^/$as_me: WARNING:     /" >&2
4543     ;;
4544 esac
4545 echo "$as_me:$LINENO: checking for $ac_header" >&5
4546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4548   echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550   eval "$as_ac_Header=$ac_header_preproc"
4551 fi
4552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4554
4555 fi
4556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4557   cat >>confdefs.h <<_ACEOF
4558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4559 _ACEOF
4560
4561 fi
4562
4563 done
4564
4565 ac_ext=cc
4566 ac_cpp='$CXXCPP $CPPFLAGS'
4567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4570 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4571 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4572 if test -z "$CXXCPP"; then
4573   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576       # Double quotes because CXXCPP needs to be expanded
4577     for CXXCPP in "$CXX -E" "/lib/cpp"
4578     do
4579       ac_preproc_ok=false
4580 for ac_cxx_preproc_warn_flag in '' yes
4581 do
4582   # Use a header file that comes with gcc, so configuring glibc
4583   # with a fresh cross-compiler works.
4584   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4585   # <limits.h> exists even on freestanding compilers.
4586   # On the NeXT, cc -E runs the code through the compiler's parser,
4587   # not just through cpp. "Syntax error" is here to catch this case.
4588   cat >conftest.$ac_ext <<_ACEOF
4589 #line $LINENO "configure"
4590 /* confdefs.h.  */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h.  */
4595 #ifdef __STDC__
4596 # include <limits.h>
4597 #else
4598 # include <assert.h>
4599 #endif
4600                      Syntax error
4601 _ACEOF
4602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4604   ac_status=$?
4605   grep -v '^ *+' conftest.er1 >conftest.err
4606   rm -f conftest.er1
4607   cat conftest.err >&5
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); } >/dev/null; then
4610   if test -s conftest.err; then
4611     ac_cpp_err=$ac_cxx_preproc_warn_flag
4612   else
4613     ac_cpp_err=
4614   fi
4615 else
4616   ac_cpp_err=yes
4617 fi
4618 if test -z "$ac_cpp_err"; then
4619   :
4620 else
4621   echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624   # Broken: fails on valid input.
4625 continue
4626 fi
4627 rm -f conftest.err conftest.$ac_ext
4628
4629   # OK, works on sane cases.  Now check whether non-existent headers
4630   # can be detected and how.
4631   cat >conftest.$ac_ext <<_ACEOF
4632 #line $LINENO "configure"
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638 #include <ac_nonexistent.h>
4639 _ACEOF
4640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4642   ac_status=$?
4643   grep -v '^ *+' conftest.er1 >conftest.err
4644   rm -f conftest.er1
4645   cat conftest.err >&5
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } >/dev/null; then
4648   if test -s conftest.err; then
4649     ac_cpp_err=$ac_cxx_preproc_warn_flag
4650   else
4651     ac_cpp_err=
4652   fi
4653 else
4654   ac_cpp_err=yes
4655 fi
4656 if test -z "$ac_cpp_err"; then
4657   # Broken: success on invalid input.
4658 continue
4659 else
4660   echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663   # Passes both tests.
4664 ac_preproc_ok=:
4665 break
4666 fi
4667 rm -f conftest.err conftest.$ac_ext
4668
4669 done
4670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4671 rm -f conftest.err conftest.$ac_ext
4672 if $ac_preproc_ok; then
4673   break
4674 fi
4675
4676     done
4677     ac_cv_prog_CXXCPP=$CXXCPP
4678
4679 fi
4680   CXXCPP=$ac_cv_prog_CXXCPP
4681 else
4682   ac_cv_prog_CXXCPP=$CXXCPP
4683 fi
4684 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4685 echo "${ECHO_T}$CXXCPP" >&6
4686 ac_preproc_ok=false
4687 for ac_cxx_preproc_warn_flag in '' yes
4688 do
4689   # Use a header file that comes with gcc, so configuring glibc
4690   # with a fresh cross-compiler works.
4691   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692   # <limits.h> exists even on freestanding compilers.
4693   # On the NeXT, cc -E runs the code through the compiler's parser,
4694   # not just through cpp. "Syntax error" is here to catch this case.
4695   cat >conftest.$ac_ext <<_ACEOF
4696 #line $LINENO "configure"
4697 /* confdefs.h.  */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h.  */
4702 #ifdef __STDC__
4703 # include <limits.h>
4704 #else
4705 # include <assert.h>
4706 #endif
4707                      Syntax error
4708 _ACEOF
4709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4710   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4711   ac_status=$?
4712   grep -v '^ *+' conftest.er1 >conftest.err
4713   rm -f conftest.er1
4714   cat conftest.err >&5
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); } >/dev/null; then
4717   if test -s conftest.err; then
4718     ac_cpp_err=$ac_cxx_preproc_warn_flag
4719   else
4720     ac_cpp_err=
4721   fi
4722 else
4723   ac_cpp_err=yes
4724 fi
4725 if test -z "$ac_cpp_err"; then
4726   :
4727 else
4728   echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4730
4731   # Broken: fails on valid input.
4732 continue
4733 fi
4734 rm -f conftest.err conftest.$ac_ext
4735
4736   # OK, works on sane cases.  Now check whether non-existent headers
4737   # can be detected and how.
4738   cat >conftest.$ac_ext <<_ACEOF
4739 #line $LINENO "configure"
4740 /* confdefs.h.  */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h.  */
4745 #include <ac_nonexistent.h>
4746 _ACEOF
4747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4748   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4749   ac_status=$?
4750   grep -v '^ *+' conftest.er1 >conftest.err
4751   rm -f conftest.er1
4752   cat conftest.err >&5
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); } >/dev/null; then
4755   if test -s conftest.err; then
4756     ac_cpp_err=$ac_cxx_preproc_warn_flag
4757   else
4758     ac_cpp_err=
4759   fi
4760 else
4761   ac_cpp_err=yes
4762 fi
4763 if test -z "$ac_cpp_err"; then
4764   # Broken: success on invalid input.
4765 continue
4766 else
4767   echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4769
4770   # Passes both tests.
4771 ac_preproc_ok=:
4772 break
4773 fi
4774 rm -f conftest.err conftest.$ac_ext
4775
4776 done
4777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4778 rm -f conftest.err conftest.$ac_ext
4779 if $ac_preproc_ok; then
4780   :
4781 else
4782   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4783 See \`config.log' for more details." >&5
4784 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4785 See \`config.log' for more details." >&2;}
4786    { (exit 1); exit 1; }; }
4787 fi
4788
4789 ac_ext=cc
4790 ac_cpp='$CXXCPP $CPPFLAGS'
4791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4794
4795
4796 ac_ext=f
4797 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4798 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4800 if test -n "$ac_tool_prefix"; then
4801   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4802   do
4803     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805 echo "$as_me:$LINENO: checking for $ac_word" >&5
4806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4807 if test "${ac_cv_prog_F77+set}" = set; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   if test -n "$F77"; then
4811   ac_cv_prog_F77="$F77" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816   IFS=$as_save_IFS
4817   test -z "$as_dir" && as_dir=.
4818   for ac_exec_ext in '' $ac_executable_extensions; do
4819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822     break 2
4823   fi
4824 done
4825 done
4826
4827 fi
4828 fi
4829 F77=$ac_cv_prog_F77
4830 if test -n "$F77"; then
4831   echo "$as_me:$LINENO: result: $F77" >&5
4832 echo "${ECHO_T}$F77" >&6
4833 else
4834   echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6
4836 fi
4837
4838     test -n "$F77" && break
4839   done
4840 fi
4841 if test -z "$F77"; then
4842   ac_ct_F77=$F77
4843   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4844 do
4845   # Extract the first word of "$ac_prog", so it can be a program name with args.
4846 set dummy $ac_prog; ac_word=$2
4847 echo "$as_me:$LINENO: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   if test -n "$ac_ct_F77"; then
4853   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858   IFS=$as_save_IFS
4859   test -z "$as_dir" && as_dir=.
4860   for ac_exec_ext in '' $ac_executable_extensions; do
4861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862     ac_cv_prog_ac_ct_F77="$ac_prog"
4863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4864     break 2
4865   fi
4866 done
4867 done
4868
4869 fi
4870 fi
4871 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4872 if test -n "$ac_ct_F77"; then
4873   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4874 echo "${ECHO_T}$ac_ct_F77" >&6
4875 else
4876   echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6
4878 fi
4879
4880   test -n "$ac_ct_F77" && break
4881 done
4882
4883   F77=$ac_ct_F77
4884 fi
4885
4886
4887 # Provide some information about the compiler.
4888 echo "$as_me:4888:" \
4889      "checking for Fortran 77 compiler version" >&5
4890 ac_compiler=`set X $ac_compile; echo $2`
4891 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4892   (eval $ac_compiler --version </dev/null >&5) 2>&5
4893   ac_status=$?
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); }
4896 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4897   (eval $ac_compiler -v </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
4907 # If we don't use `.F' as extension, the preprocessor is not run on the
4908 # input file.
4909 ac_save_ext=$ac_ext
4910 ac_ext=F
4911 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4912 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4913 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   cat >conftest.$ac_ext <<_ACEOF
4917       program main
4918 #ifndef __GNUC__
4919        choke me
4920 #endif
4921
4922       end
4923 _ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4926   (eval $ac_compile) 2>&5
4927   ac_status=$?
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); } &&
4930          { ac_try='test -s conftest.$ac_objext'
4931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932   (eval $ac_try) 2>&5
4933   ac_status=$?
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); }; }; then
4936   ac_compiler_gnu=yes
4937 else
4938   echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4940
4941 ac_compiler_gnu=no
4942 fi
4943 rm -f conftest.$ac_objext conftest.$ac_ext
4944 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4945
4946 fi
4947 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4948 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4949 ac_ext=$ac_save_ext
4950 G77=`test $ac_compiler_gnu = yes && echo yes`
4951 ac_test_FFLAGS=${FFLAGS+set}
4952 ac_save_FFLAGS=$FFLAGS
4953 FFLAGS=
4954 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4955 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4956 if test "${ac_cv_prog_f77_g+set}" = set; then
4957   echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959   FFLAGS=-g
4960 cat >conftest.$ac_ext <<_ACEOF
4961       program main
4962
4963       end
4964 _ACEOF
4965 rm -f conftest.$ac_objext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967   (eval $ac_compile) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); } &&
4971          { ac_try='test -s conftest.$ac_objext'
4972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973   (eval $ac_try) 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); }; }; then
4977   ac_cv_prog_f77_g=yes
4978 else
4979   echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4981
4982 ac_cv_prog_f77_g=no
4983 fi
4984 rm -f conftest.$ac_objext conftest.$ac_ext
4985
4986 fi
4987 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4988 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4989 if test "$ac_test_FFLAGS" = set; then
4990   FFLAGS=$ac_save_FFLAGS
4991 elif test $ac_cv_prog_f77_g = yes; then
4992   if test "$G77" = yes; then
4993     FFLAGS="-g -O2"
4994   else
4995     FFLAGS="-g"
4996   fi
4997 else
4998   if test "$G77" = yes; then
4999     FFLAGS="-O2"
5000   else
5001     FFLAGS=
5002   fi
5003 fi
5004 ac_ext=c
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009
5010
5011
5012 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5013
5014 # find the maximum length of command line arguments
5015 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5016 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5017 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5018   echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020     i=0
5021   testring="ABCD"
5022
5023   case $build_os in
5024   msdosdjgpp*)
5025     # On DJGPP, this test can blow up pretty badly due to problems in libc
5026     # (any single argument exceeding 2000 bytes causes a buffer overrun
5027     # during glob expansion).  Even if it were fixed, the result of this
5028     # check would be larger than it should be.
5029     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5030     ;;
5031
5032   gnu*)
5033     # Under GNU Hurd, this test is not required because there is
5034     # no limit to the length of command line arguments.
5035     # Libtool will interpret -1 as no limit whatsoever
5036     lt_cv_sys_max_cmd_len=-1;
5037     ;;
5038
5039   cygwin* | mingw*)
5040     # On Win9x/ME, this test blows up -- it succeeds, but takes
5041     # about 5 minutes as the teststring grows exponentially.
5042     # Worse, since 9x/ME are not pre-emptively multitasking,
5043     # you end up with a "frozen" computer, even though with patience
5044     # the test eventually succeeds (with a max line length of 256k).
5045     # Instead, let's just punt: use the minimum linelength reported by
5046     # all of the supported platforms: 8192 (on NT/2K/XP).
5047     lt_cv_sys_max_cmd_len=8192;
5048     ;;
5049
5050  *)
5051     # If test is not a shell built-in, we'll probably end up computing a
5052     # maximum length that is only half of the actual maximum length, but
5053     # we can't tell.
5054     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5055                = "XX$testring") >/dev/null 2>&1 &&
5056             new_result=`expr "X$testring" : ".*" 2>&1` &&
5057             lt_cv_sys_max_cmd_len=$new_result &&
5058             test $i != 17 # 1/2 MB should be enough
5059     do
5060       i=`expr $i + 1`
5061       testring=$testring$testring
5062     done
5063     testring=
5064     # Add a significant safety factor because C++ compilers can tack on massive
5065     # amounts of additional arguments before passing them to the linker.
5066     # It appears as though 1/2 is a usable value.
5067     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5068     ;;
5069   esac
5070
5071 fi
5072
5073 if test -n $lt_cv_sys_max_cmd_len ; then
5074   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5075 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5076 else
5077   echo "$as_me:$LINENO: result: none" >&5
5078 echo "${ECHO_T}none" >&6
5079 fi
5080
5081
5082
5083
5084 # Check for command to grab the raw symbol name followed by C symbol from nm.
5085 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5086 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5087 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090
5091 # These are sane defaults that work on at least a few old systems.
5092 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5093
5094 # Character class describing NM global symbol codes.
5095 symcode='[BCDEGRST]'
5096
5097 # Regexp to match symbols that can be accessed directly from C.
5098 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5099
5100 # Transform the above into a raw symbol and a C symbol.
5101 symxfrm='\1 \2\3 \3'
5102
5103 # Transform an extracted symbol line into a proper C declaration
5104 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5105
5106 # Transform an extracted symbol line into symbol name and symbol address
5107 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'"
5108
5109 # Define system-specific variables.
5110 case $host_os in
5111 aix*)
5112   symcode='[BCDT]'
5113   ;;
5114 cygwin* | mingw* | pw32*)
5115   symcode='[ABCDGISTW]'
5116   ;;
5117 hpux*) # Its linker distinguishes data from code symbols
5118   if test "$host_cpu" = ia64; then
5119     symcode='[ABCDEGRST]'
5120   fi
5121   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5122   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'"
5123   ;;
5124 irix* | nonstopux*)
5125   symcode='[BCDEGRST]'
5126   ;;
5127 osf*)
5128   symcode='[BCDEGQRST]'
5129   ;;
5130 solaris* | sysv5*)
5131   symcode='[BDT]'
5132   ;;
5133 sysv4)
5134   symcode='[DFNSTU]'
5135   ;;
5136 esac
5137
5138 # Handle CRLF in mingw tool chain
5139 opt_cr=
5140 case $build_os in
5141 mingw*)
5142   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5143   ;;
5144 esac
5145
5146 # If we're using GNU nm, then use its standard symbol codes.
5147 case `$NM -V 2>&1` in
5148 *GNU* | *'with BFD'*)
5149   symcode='[ABCDGISTW]' ;;
5150 esac
5151
5152 # Try without a prefix undercore, then with it.
5153 for ac_symprfx in "" "_"; do
5154
5155   # Write the raw and C identifiers.
5156   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5157
5158   # Check to see that the pipe works correctly.
5159   pipe_works=no
5160
5161   rm -f conftest*
5162   cat > conftest.$ac_ext <<EOF
5163 #ifdef __cplusplus
5164 extern "C" {
5165 #endif
5166 char nm_test_var;
5167 void nm_test_func(){}
5168 #ifdef __cplusplus
5169 }
5170 #endif
5171 int main(){nm_test_var='a';nm_test_func();return(0);}
5172 EOF
5173
5174   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175   (eval $ac_compile) 2>&5
5176   ac_status=$?
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); }; then
5179     # Now try to grab the symbols.
5180     nlist=conftest.nm
5181     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5182   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5183   ac_status=$?
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); } && test -s "$nlist"; then
5186       # Try sorting and uniquifying the output.
5187       if sort "$nlist" | uniq > "$nlist"T; then
5188         mv -f "$nlist"T "$nlist"
5189       else
5190         rm -f "$nlist"T
5191       fi
5192
5193       # Make sure that we snagged all the symbols we need.
5194       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5195         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5196           cat <<EOF > conftest.$ac_ext
5197 #ifdef __cplusplus
5198 extern "C" {
5199 #endif
5200
5201 EOF
5202           # Now generate the symbol file.
5203           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5204
5205           cat <<EOF >> conftest.$ac_ext
5206 #if defined (__STDC__) && __STDC__
5207 # define lt_ptr_t void *
5208 #else
5209 # define lt_ptr_t char *
5210 # define const
5211 #endif
5212
5213 /* The mapping between symbol names and symbols. */
5214 const struct {
5215   const char *name;
5216   lt_ptr_t address;
5217 }
5218 lt_preloaded_symbols[] =
5219 {
5220 EOF
5221           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5222           cat <<\EOF >> conftest.$ac_ext
5223   {0, (lt_ptr_t) 0}
5224 };
5225
5226 #ifdef __cplusplus
5227 }
5228 #endif
5229 EOF
5230           # Now try linking the two files.
5231           mv conftest.$ac_objext conftstm.$ac_objext
5232           lt_save_LIBS="$LIBS"
5233           lt_save_CFLAGS="$CFLAGS"
5234           LIBS="conftstm.$ac_objext"
5235           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5236           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237   (eval $ac_link) 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5241             pipe_works=yes
5242           fi
5243           LIBS="$lt_save_LIBS"
5244           CFLAGS="$lt_save_CFLAGS"
5245         else
5246           echo "cannot find nm_test_func in $nlist" >&5
5247         fi
5248       else
5249         echo "cannot find nm_test_var in $nlist" >&5
5250       fi
5251     else
5252       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5253     fi
5254   else
5255     echo "$progname: failed program was:" >&5
5256     cat conftest.$ac_ext >&5
5257   fi
5258   rm -f conftest* conftst*
5259
5260   # Do not use the global_symbol_pipe unless it works.
5261   if test "$pipe_works" = yes; then
5262     break
5263   else
5264     lt_cv_sys_global_symbol_pipe=
5265   fi
5266 done
5267
5268 fi
5269
5270 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5271   lt_cv_sys_global_symbol_to_cdecl=
5272 fi
5273 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5274   echo "$as_me:$LINENO: result: failed" >&5
5275 echo "${ECHO_T}failed" >&6
5276 else
5277   echo "$as_me:$LINENO: result: ok" >&5
5278 echo "${ECHO_T}ok" >&6
5279 fi
5280
5281 echo "$as_me:$LINENO: checking for objdir" >&5
5282 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5283 if test "${lt_cv_objdir+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   rm -f .libs 2>/dev/null
5287 mkdir .libs 2>/dev/null
5288 if test -d .libs; then
5289   lt_cv_objdir=.libs
5290 else
5291   # MS-DOS does not allow filenames that begin with a dot.
5292   lt_cv_objdir=_libs
5293 fi
5294 rmdir .libs 2>/dev/null
5295 fi
5296 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5297 echo "${ECHO_T}$lt_cv_objdir" >&6
5298 objdir=$lt_cv_objdir
5299
5300
5301
5302
5303
5304 case $host_os in
5305 aix3*)
5306   # AIX sometimes has problems with the GCC collect2 program.  For some
5307   # reason, if we set the COLLECT_NAMES environment variable, the problems
5308   # vanish in a puff of smoke.
5309   if test "X${COLLECT_NAMES+set}" != Xset; then
5310     COLLECT_NAMES=
5311     export COLLECT_NAMES
5312   fi
5313   ;;
5314 esac
5315
5316 # Sed substitution that helps us do robust quoting.  It backslashifies
5317 # metacharacters that are still active within double-quoted strings.
5318 Xsed='sed -e s/^X//'
5319 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5320
5321 # Same as above, but do not quote variable references.
5322 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5323
5324 # Sed substitution to delay expansion of an escaped shell variable in a
5325 # double_quote_subst'ed string.
5326 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5327
5328 # Sed substitution to avoid accidental globbing in evaled expressions
5329 no_glob_subst='s/\*/\\\*/g'
5330
5331 # Constants:
5332 rm="rm -f"
5333
5334 # Global variables:
5335 default_ofile=mklib
5336 can_build_shared=yes
5337
5338 # All known linkers require a `.a' archive for static linking (except M$VC,
5339 # which needs '.lib').
5340 libext=a
5341 ltmain="$ac_aux_dir/ltmain.sh"
5342 ofile="$default_ofile"
5343 with_gnu_ld="$lt_cv_prog_gnu_ld"
5344
5345 if test -n "$ac_tool_prefix"; then
5346   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}ar; ac_word=$2
5348 echo "$as_me:$LINENO: checking for $ac_word" >&5
5349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5350 if test "${ac_cv_prog_AR+set}" = set; then
5351   echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353   if test -n "$AR"; then
5354   ac_cv_prog_AR="$AR" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359   IFS=$as_save_IFS
5360   test -z "$as_dir" && as_dir=.
5361   for ac_exec_ext in '' $ac_executable_extensions; do
5362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363     ac_cv_prog_AR="${ac_tool_prefix}ar"
5364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365     break 2
5366   fi
5367 done
5368 done
5369
5370 fi
5371 fi
5372 AR=$ac_cv_prog_AR
5373 if test -n "$AR"; then
5374   echo "$as_me:$LINENO: result: $AR" >&5
5375 echo "${ECHO_T}$AR" >&6
5376 else
5377   echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6
5379 fi
5380
5381 fi
5382 if test -z "$ac_cv_prog_AR"; then
5383   ac_ct_AR=$AR
5384   # Extract the first word of "ar", so it can be a program name with args.
5385 set dummy ar; ac_word=$2
5386 echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391   if test -n "$ac_ct_AR"; then
5392   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5396 do
5397   IFS=$as_save_IFS
5398   test -z "$as_dir" && as_dir=.
5399   for ac_exec_ext in '' $ac_executable_extensions; do
5400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401     ac_cv_prog_ac_ct_AR="ar"
5402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403     break 2
5404   fi
5405 done
5406 done
5407
5408   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5409 fi
5410 fi
5411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5412 if test -n "$ac_ct_AR"; then
5413   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5414 echo "${ECHO_T}$ac_ct_AR" >&6
5415 else
5416   echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5418 fi
5419
5420   AR=$ac_ct_AR
5421 else
5422   AR="$ac_cv_prog_AR"
5423 fi
5424
5425 if test -n "$ac_tool_prefix"; then
5426   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5427 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5428 echo "$as_me:$LINENO: checking for $ac_word" >&5
5429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430 if test "${ac_cv_prog_RANLIB+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   if test -n "$RANLIB"; then
5434   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441   for ac_exec_ext in '' $ac_executable_extensions; do
5442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448 done
5449
5450 fi
5451 fi
5452 RANLIB=$ac_cv_prog_RANLIB
5453 if test -n "$RANLIB"; then
5454   echo "$as_me:$LINENO: result: $RANLIB" >&5
5455 echo "${ECHO_T}$RANLIB" >&6
5456 else
5457   echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5459 fi
5460
5461 fi
5462 if test -z "$ac_cv_prog_RANLIB"; then
5463   ac_ct_RANLIB=$RANLIB
5464   # Extract the first word of "ranlib", so it can be a program name with args.
5465 set dummy ranlib; ac_word=$2
5466 echo "$as_me:$LINENO: checking for $ac_word" >&5
5467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5468 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   if test -n "$ac_ct_RANLIB"; then
5472   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477   IFS=$as_save_IFS
5478   test -z "$as_dir" && as_dir=.
5479   for ac_exec_ext in '' $ac_executable_extensions; do
5480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481     ac_cv_prog_ac_ct_RANLIB="ranlib"
5482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483     break 2
5484   fi
5485 done
5486 done
5487
5488   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5489 fi
5490 fi
5491 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5492 if test -n "$ac_ct_RANLIB"; then
5493   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5494 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5495 else
5496   echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6
5498 fi
5499
5500   RANLIB=$ac_ct_RANLIB
5501 else
5502   RANLIB="$ac_cv_prog_RANLIB"
5503 fi
5504
5505 if test -n "$ac_tool_prefix"; then
5506   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}strip; ac_word=$2
5508 echo "$as_me:$LINENO: checking for $ac_word" >&5
5509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5510 if test "${ac_cv_prog_STRIP+set}" = set; then
5511   echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513   if test -n "$STRIP"; then
5514   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521   for ac_exec_ext in '' $ac_executable_extensions; do
5522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525     break 2
5526   fi
5527 done
5528 done
5529
5530 fi
5531 fi
5532 STRIP=$ac_cv_prog_STRIP
5533 if test -n "$STRIP"; then
5534   echo "$as_me:$LINENO: result: $STRIP" >&5
5535 echo "${ECHO_T}$STRIP" >&6
5536 else
5537   echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6
5539 fi
5540
5541 fi
5542 if test -z "$ac_cv_prog_STRIP"; then
5543   ac_ct_STRIP=$STRIP
5544   # Extract the first word of "strip", so it can be a program name with args.
5545 set dummy strip; ac_word=$2
5546 echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   if test -n "$ac_ct_STRIP"; then
5552   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557   IFS=$as_save_IFS
5558   test -z "$as_dir" && as_dir=.
5559   for ac_exec_ext in '' $ac_executable_extensions; do
5560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561     ac_cv_prog_ac_ct_STRIP="strip"
5562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563     break 2
5564   fi
5565 done
5566 done
5567
5568   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5569 fi
5570 fi
5571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5572 if test -n "$ac_ct_STRIP"; then
5573   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5574 echo "${ECHO_T}$ac_ct_STRIP" >&6
5575 else
5576   echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5578 fi
5579
5580   STRIP=$ac_ct_STRIP
5581 else
5582   STRIP="$ac_cv_prog_STRIP"
5583 fi
5584
5585
5586 old_CC="$CC"
5587 old_CFLAGS="$CFLAGS"
5588
5589 # Set sane defaults for various variables
5590 test -z "$AR" && AR=ar
5591 test -z "$AR_FLAGS" && AR_FLAGS=cru
5592 test -z "$AS" && AS=as
5593 test -z "$CC" && CC=cc
5594 test -z "$LTCC" && LTCC=$CC
5595 test -z "$DLLTOOL" && DLLTOOL=dlltool
5596 test -z "$LD" && LD=ld
5597 test -z "$LN_S" && LN_S="ln -s"
5598 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5599 test -z "$NM" && NM=nm
5600 test -z "$SED" && SED=sed
5601 test -z "$OBJDUMP" && OBJDUMP=objdump
5602 test -z "$RANLIB" && RANLIB=:
5603 test -z "$STRIP" && STRIP=:
5604 test -z "$ac_objext" && ac_objext=o
5605
5606 # Determine commands to create old-style static archives.
5607 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5608 old_postinstall_cmds='chmod 644 $oldlib'
5609 old_postuninstall_cmds=
5610
5611 if test -n "$RANLIB"; then
5612   case $host_os in
5613   openbsd*)
5614     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5615     ;;
5616   *)
5617     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5618     ;;
5619   esac
5620   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5621 fi
5622
5623 # Only perform the check for file, if the check method requires it
5624 case $deplibs_check_method in
5625 file_magic*)
5626   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5627     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5628 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5629 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   case $MAGIC_CMD in
5633 [\\/*] |  ?:[\\/]*)
5634   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5635   ;;
5636 *)
5637   lt_save_MAGIC_CMD="$MAGIC_CMD"
5638   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5639   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5640   for ac_dir in $ac_dummy; do
5641     IFS="$lt_save_ifs"
5642     test -z "$ac_dir" && ac_dir=.
5643     if test -f $ac_dir/${ac_tool_prefix}file; then
5644       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5645       if test -n "$file_magic_test_file"; then
5646         case $deplibs_check_method in
5647         "file_magic "*)
5648           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5649           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5650           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5651             $EGREP "$file_magic_regex" > /dev/null; then
5652             :
5653           else
5654             cat <<EOF 1>&2
5655
5656 *** Warning: the command libtool uses to detect shared libraries,
5657 *** $file_magic_cmd, produces output that libtool cannot recognize.
5658 *** The result is that libtool may fail to recognize shared libraries
5659 *** as such.  This will affect the creation of libtool libraries that
5660 *** depend on shared libraries, but programs linked with such libtool
5661 *** libraries will work regardless of this problem.  Nevertheless, you
5662 *** may want to report the problem to your system manager and/or to
5663 *** bug-libtool@gnu.org
5664
5665 EOF
5666           fi ;;
5667         esac
5668       fi
5669       break
5670     fi
5671   done
5672   IFS="$lt_save_ifs"
5673   MAGIC_CMD="$lt_save_MAGIC_CMD"
5674   ;;
5675 esac
5676 fi
5677
5678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5679 if test -n "$MAGIC_CMD"; then
5680   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5681 echo "${ECHO_T}$MAGIC_CMD" >&6
5682 else
5683   echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6
5685 fi
5686
5687 if test -z "$lt_cv_path_MAGIC_CMD"; then
5688   if test -n "$ac_tool_prefix"; then
5689     echo "$as_me:$LINENO: checking for file" >&5
5690 echo $ECHO_N "checking for file... $ECHO_C" >&6
5691 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   case $MAGIC_CMD in
5695 [\\/*] |  ?:[\\/]*)
5696   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5697   ;;
5698 *)
5699   lt_save_MAGIC_CMD="$MAGIC_CMD"
5700   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5701   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5702   for ac_dir in $ac_dummy; do
5703     IFS="$lt_save_ifs"
5704     test -z "$ac_dir" && ac_dir=.
5705     if test -f $ac_dir/file; then
5706       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5707       if test -n "$file_magic_test_file"; then
5708         case $deplibs_check_method in
5709         "file_magic "*)
5710           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5711           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5712           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5713             $EGREP "$file_magic_regex" > /dev/null; then
5714             :
5715           else
5716             cat <<EOF 1>&2
5717
5718 *** Warning: the command libtool uses to detect shared libraries,
5719 *** $file_magic_cmd, produces output that libtool cannot recognize.
5720 *** The result is that libtool may fail to recognize shared libraries
5721 *** as such.  This will affect the creation of libtool libraries that
5722 *** depend on shared libraries, but programs linked with such libtool
5723 *** libraries will work regardless of this problem.  Nevertheless, you
5724 *** may want to report the problem to your system manager and/or to
5725 *** bug-libtool@gnu.org
5726
5727 EOF
5728           fi ;;
5729         esac
5730       fi
5731       break
5732     fi
5733   done
5734   IFS="$lt_save_ifs"
5735   MAGIC_CMD="$lt_save_MAGIC_CMD"
5736   ;;
5737 esac
5738 fi
5739
5740 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5741 if test -n "$MAGIC_CMD"; then
5742   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5743 echo "${ECHO_T}$MAGIC_CMD" >&6
5744 else
5745   echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5747 fi
5748
5749   else
5750     MAGIC_CMD=:
5751   fi
5752 fi
5753
5754   fi
5755   ;;
5756 esac
5757
5758 enable_dlopen=no
5759 enable_win32_dll=no
5760
5761 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5762 if test "${enable_libtool_lock+set}" = set; then
5763   enableval="$enable_libtool_lock"
5764
5765 fi;
5766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5767
5768
5769 # Check whether --with-pic or --without-pic was given.
5770 if test "${with_pic+set}" = set; then
5771   withval="$with_pic"
5772   pic_mode="$withval"
5773 else
5774   pic_mode=default
5775 fi;
5776 test -z "$pic_mode" && pic_mode=default
5777
5778 # Use C for the default configuration in the libtool script
5779 tagname=
5780 lt_save_CC="$CC"
5781 ac_ext=c
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
5787
5788 # Source file extension for C test sources.
5789 ac_ext=c
5790
5791 # Object file extension for compiled C test sources.
5792 objext=o
5793 objext=$objext
5794
5795 # Code to be used in simple compile tests
5796 lt_simple_compile_test_code="int some_variable = 0;\n"
5797
5798 # Code to be used in simple link tests
5799 lt_simple_link_test_code='int main(){return(0);}\n'
5800
5801
5802 # If no C compiler was specified, use CC.
5803 LTCC=${LTCC-"$CC"}
5804
5805 # Allow CC to be a program name with arguments.
5806 compiler=$CC
5807
5808
5809 #
5810 # Check for any special shared library compilation flags.
5811 #
5812 lt_prog_cc_shlib=
5813 if test "$GCC" = no; then
5814   case $host_os in
5815   sco3.2v5*)
5816     lt_prog_cc_shlib='-belf'
5817     ;;
5818   esac
5819 fi
5820 if test -n "$lt_prog_cc_shlib"; then
5821   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5822 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5823   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5824   else
5825     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5826 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5827     lt_cv_prog_cc_can_build_shared=no
5828   fi
5829 fi
5830
5831
5832 #
5833 # Check to make sure the static flag actually works.
5834 #
5835 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5836 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5837 if test "${lt_prog_compiler_static_works+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   lt_prog_compiler_static_works=no
5841    save_LDFLAGS="$LDFLAGS"
5842    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5843    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5844    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5845      # The compiler can only warn and ignore the option if not recognized
5846      # So say no if there are warnings
5847      if test -s conftest.err; then
5848        # Append any errors to the config.log.
5849        cat conftest.err 1>&5
5850      else
5851        lt_prog_compiler_static_works=yes
5852      fi
5853    fi
5854    $rm conftest*
5855    LDFLAGS="$save_LDFLAGS"
5856
5857 fi
5858 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5859 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5860
5861 if test x"$lt_prog_compiler_static_works" = xyes; then
5862     :
5863 else
5864     lt_prog_compiler_static=
5865 fi
5866
5867
5868
5869
5870 lt_prog_compiler_no_builtin_flag=
5871
5872 if test "$GCC" = yes; then
5873   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5874
5875   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5876 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5877 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   lt_cv_prog_compiler_rtti_exceptions=no
5881   ac_outfile=conftest.$ac_objext
5882    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5883    lt_compiler_flag="-fno-rtti -fno-exceptions"
5884    # Insert the option either (1) after the last *FLAGS variable, or
5885    # (2) before a word containing "conftest.", or (3) at the end.
5886    # Note that $ac_compile itself does not contain backslashes and begins
5887    # with a dollar sign (not a hyphen), so the echo should work correctly.
5888    # The option is referenced via a variable to avoid confusing sed.
5889    lt_compile=`echo "$ac_compile" | $SED \
5890    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5891    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5892    -e 's:$: $lt_compiler_flag:'`
5893    (eval echo "\"\$as_me:5893: $lt_compile\"" >&5)
5894    (eval "$lt_compile" 2>conftest.err)
5895    ac_status=$?
5896    cat conftest.err >&5
5897    echo "$as_me:5897: \$? = $ac_status" >&5
5898    if (exit $ac_status) && test -s "$ac_outfile"; then
5899      # The compiler can only warn and ignore the option if not recognized
5900      # So say no if there are warnings
5901      if test ! -s conftest.err; then
5902        lt_cv_prog_compiler_rtti_exceptions=yes
5903      fi
5904    fi
5905    $rm conftest*
5906
5907 fi
5908 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5909 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5910
5911 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5912     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5913 else
5914     :
5915 fi
5916
5917 fi
5918
5919 lt_prog_compiler_wl=
5920 lt_prog_compiler_pic=
5921 lt_prog_compiler_static=
5922
5923 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5924 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5925
5926   if test "$GCC" = yes; then
5927     lt_prog_compiler_wl='-Wl,'
5928     lt_prog_compiler_static='-static'
5929
5930     case $host_os in
5931       aix*)
5932       # All AIX code is PIC.
5933       if test "$host_cpu" = ia64; then
5934         # AIX 5 now supports IA64 processor
5935         lt_prog_compiler_static='-Bstatic'
5936       fi
5937       ;;
5938
5939     amigaos*)
5940       # FIXME: we need at least 68020 code to build shared libraries, but
5941       # adding the `-m68020' flag to GCC prevents building anything better,
5942       # like `-m68040'.
5943       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5944       ;;
5945
5946     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5947       # PIC is the default for these OSes.
5948       ;;
5949
5950     mingw* | pw32* | os2*)
5951       # This hack is so that the source file can tell whether it is being
5952       # built for inclusion in a dll (and should export symbols for example).
5953       lt_prog_compiler_pic='-DDLL_EXPORT'
5954       ;;
5955
5956     darwin* | rhapsody*)
5957       # PIC is the default on this platform
5958       # Common symbols not allowed in MH_DYLIB files
5959       lt_prog_compiler_pic='-fno-common'
5960       ;;
5961
5962     msdosdjgpp*)
5963       # Just because we use GCC doesn't mean we suddenly get shared libraries
5964       # on systems that don't support them.
5965       lt_prog_compiler_can_build_shared=no
5966       enable_shared=no
5967       ;;
5968
5969     sysv4*MP*)
5970       if test -d /usr/nec; then
5971         lt_prog_compiler_pic=-Kconform_pic
5972       fi
5973       ;;
5974
5975     hpux*)
5976       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5977       # not for PA HP-UX.
5978       case "$host_cpu" in
5979       hppa*64*|ia64*)
5980         # +Z the default
5981         ;;
5982       *)
5983         lt_prog_compiler_pic='-fPIC'
5984         ;;
5985       esac
5986       ;;
5987
5988     *)
5989       lt_prog_compiler_pic='-fPIC'
5990       ;;
5991     esac
5992   else
5993     # PORTME Check for flag to pass linker flags through the system compiler.
5994     case $host_os in
5995     aix*)
5996       lt_prog_compiler_wl='-Wl,'
5997       if test "$host_cpu" = ia64; then
5998         # AIX 5 now supports IA64 processor
5999         lt_prog_compiler_static='-Bstatic'
6000       else
6001         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6002       fi
6003       ;;
6004
6005     mingw* | pw32* | os2*)
6006       # This hack is so that the source file can tell whether it is being
6007       # built for inclusion in a dll (and should export symbols for example).
6008       lt_prog_compiler_pic='-DDLL_EXPORT'
6009       ;;
6010
6011     hpux9* | hpux10* | hpux11*)
6012       lt_prog_compiler_wl='-Wl,'
6013       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6014       # not for PA HP-UX.
6015       case "$host_cpu" in
6016       hppa*64*|ia64*)
6017         # +Z the default
6018         ;;
6019       *)
6020         lt_prog_compiler_pic='+Z'
6021         ;;
6022       esac
6023       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6024       lt_prog_compiler_static='${wl}-a ${wl}archive'
6025       ;;
6026
6027     irix5* | irix6* | nonstopux*)
6028       lt_prog_compiler_wl='-Wl,'
6029       # PIC (with -KPIC) is the default.
6030       lt_prog_compiler_static='-non_shared'
6031       ;;
6032
6033     newsos6)
6034       lt_prog_compiler_pic='-KPIC'
6035       lt_prog_compiler_static='-Bstatic'
6036       ;;
6037
6038     linux*)
6039       case $CC in
6040       icc|ecc)
6041         lt_prog_compiler_wl='-Wl,'
6042         lt_prog_compiler_pic='-KPIC'
6043         lt_prog_compiler_static='-static'
6044         ;;
6045       ccc)
6046         lt_prog_compiler_wl='-Wl,'
6047         # All Alpha code is PIC.
6048         lt_prog_compiler_static='-non_shared'
6049         ;;
6050       esac
6051       ;;
6052
6053     osf3* | osf4* | osf5*)
6054       lt_prog_compiler_wl='-Wl,'
6055       # All OSF/1 code is PIC.
6056       lt_prog_compiler_static='-non_shared'
6057       ;;
6058
6059     sco3.2v5*)
6060       lt_prog_compiler_pic='-Kpic'
6061       lt_prog_compiler_static='-dn'
6062       ;;
6063
6064     solaris*)
6065       lt_prog_compiler_wl='-Wl,'
6066       lt_prog_compiler_pic='-KPIC'
6067       lt_prog_compiler_static='-Bstatic'
6068       ;;
6069
6070     sunos4*)
6071       lt_prog_compiler_wl='-Qoption ld '
6072       lt_prog_compiler_pic='-PIC'
6073       lt_prog_compiler_static='-Bstatic'
6074       ;;
6075
6076     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6077       lt_prog_compiler_wl='-Wl,'
6078       lt_prog_compiler_pic='-KPIC'
6079       lt_prog_compiler_static='-Bstatic'
6080       ;;
6081
6082     sysv4*MP*)
6083       if test -d /usr/nec ;then
6084         lt_prog_compiler_pic='-Kconform_pic'
6085         lt_prog_compiler_static='-Bstatic'
6086       fi
6087       ;;
6088
6089     uts4*)
6090       lt_prog_compiler_pic='-pic'
6091       lt_prog_compiler_static='-Bstatic'
6092       ;;
6093
6094     *)
6095       lt_prog_compiler_can_build_shared=no
6096       ;;
6097     esac
6098   fi
6099
6100 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6101 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6102
6103 #
6104 # Check to make sure the PIC flag actually works.
6105 #
6106 if test -n "$lt_prog_compiler_pic"; then
6107   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6108 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6109 if test "${lt_prog_compiler_pic_works+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   lt_prog_compiler_pic_works=no
6113   ac_outfile=conftest.$ac_objext
6114    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6115    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6116    # Insert the option either (1) after the last *FLAGS variable, or
6117    # (2) before a word containing "conftest.", or (3) at the end.
6118    # Note that $ac_compile itself does not contain backslashes and begins
6119    # with a dollar sign (not a hyphen), so the echo should work correctly.
6120    # The option is referenced via a variable to avoid confusing sed.
6121    lt_compile=`echo "$ac_compile" | $SED \
6122    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6123    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6124    -e 's:$: $lt_compiler_flag:'`
6125    (eval echo "\"\$as_me:6125: $lt_compile\"" >&5)
6126    (eval "$lt_compile" 2>conftest.err)
6127    ac_status=$?
6128    cat conftest.err >&5
6129    echo "$as_me:6129: \$? = $ac_status" >&5
6130    if (exit $ac_status) && test -s "$ac_outfile"; then
6131      # The compiler can only warn and ignore the option if not recognized
6132      # So say no if there are warnings
6133      if test ! -s conftest.err; then
6134        lt_prog_compiler_pic_works=yes
6135      fi
6136    fi
6137    $rm conftest*
6138
6139 fi
6140 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6141 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6142
6143 if test x"$lt_prog_compiler_pic_works" = xyes; then
6144     case $lt_prog_compiler_pic in
6145      "" | " "*) ;;
6146      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6147      esac
6148 else
6149     lt_prog_compiler_pic=
6150      lt_prog_compiler_can_build_shared=no
6151 fi
6152
6153 fi
6154 case "$host_os" in
6155   # For platforms which do not support PIC, -DPIC is meaningless:
6156   *djgpp*)
6157     lt_prog_compiler_pic=
6158     ;;
6159   *)
6160     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6161     ;;
6162 esac
6163
6164 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6165 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6166 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   lt_cv_prog_compiler_c_o=no
6170    $rm -r conftest 2>/dev/null
6171    mkdir conftest
6172    cd conftest
6173    mkdir out
6174    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6175
6176    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6177    # that will create temporary files in the current directory regardless of
6178    # the output directory.  Thus, making CWD read-only will cause this test
6179    # to fail, enabling locking or at least warning the user not to do parallel
6180    # builds.
6181    chmod -w .
6182
6183    lt_compiler_flag="-o out/conftest2.$ac_objext"
6184    # Insert the option either (1) after the last *FLAGS variable, or
6185    # (2) before a word containing "conftest.", or (3) at the end.
6186    # Note that $ac_compile itself does not contain backslashes and begins
6187    # with a dollar sign (not a hyphen), so the echo should work correctly.
6188    lt_compile=`echo "$ac_compile" | $SED \
6189    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6190    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6191    -e 's:$: $lt_compiler_flag:'`
6192    (eval echo "\"\$as_me:6192: $lt_compile\"" >&5)
6193    (eval "$lt_compile" 2>out/conftest.err)
6194    ac_status=$?
6195    cat out/conftest.err >&5
6196    echo "$as_me:6196: \$? = $ac_status" >&5
6197    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6198    then
6199      # The compiler can only warn and ignore the option if not recognized
6200      # So say no if there are warnings
6201      if test ! -s out/conftest.err; then
6202        lt_cv_prog_compiler_c_o=yes
6203      fi
6204    fi
6205    chmod u+w .
6206    $rm conftest* out/*
6207    rmdir out
6208    cd ..
6209    rmdir conftest
6210    $rm conftest*
6211
6212 fi
6213 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6214 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6215
6216
6217 hard_links="nottested"
6218 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6219   # do not overwrite the value of need_locks provided by the user
6220   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6221 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6222   hard_links=yes
6223   $rm conftest*
6224   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6225   touch conftest.a
6226   ln conftest.a conftest.b 2>&5 || hard_links=no
6227   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6228   echo "$as_me:$LINENO: result: $hard_links" >&5
6229 echo "${ECHO_T}$hard_links" >&6
6230   if test "$hard_links" = no; then
6231     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6232 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6233     need_locks=warn
6234   fi
6235 else
6236   need_locks=no
6237 fi
6238
6239 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6240 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6241
6242   runpath_var=
6243   allow_undefined_flag=
6244   enable_shared_with_static_runtimes=no
6245   archive_cmds=
6246   archive_expsym_cmds=
6247   old_archive_From_new_cmds=
6248   old_archive_from_expsyms_cmds=
6249   export_dynamic_flag_spec=
6250   whole_archive_flag_spec=
6251   thread_safe_flag_spec=
6252   hardcode_libdir_flag_spec=
6253   hardcode_libdir_flag_spec_ld=
6254   hardcode_libdir_separator=
6255   hardcode_direct=no
6256   hardcode_minus_L=no
6257   hardcode_shlibpath_var=unsupported
6258   link_all_deplibs=unknown
6259   hardcode_automatic=no
6260   module_cmds=
6261   module_expsym_cmds=
6262   always_export_symbols=no
6263   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6264   # include_expsyms should be a list of space-separated symbols to be *always*
6265   # included in the symbol list
6266   include_expsyms=
6267   # exclude_expsyms can be an extended regexp of symbols to exclude
6268   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6269   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6270   # as well as any symbol that contains `d'.
6271   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6272   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6273   # platforms (ab)use it in PIC code, but their linkers get confused if
6274   # the symbol is explicitly referenced.  Since portable code cannot
6275   # rely on this symbol name, it's probably fine to never include it in
6276   # preloaded symbol tables.
6277   extract_expsyms_cmds=
6278
6279   case $host_os in
6280   cygwin* | mingw* | pw32*)
6281     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6282     # When not using gcc, we currently assume that we are using
6283     # Microsoft Visual C++.
6284     if test "$GCC" != yes; then
6285       with_gnu_ld=no
6286     fi
6287     ;;
6288   openbsd*)
6289     with_gnu_ld=no
6290     ;;
6291   esac
6292
6293   ld_shlibs=yes
6294   if test "$with_gnu_ld" = yes; then
6295     # If archive_cmds runs LD, not CC, wlarc should be empty
6296     wlarc='${wl}'
6297
6298     # See if GNU ld supports shared libraries.
6299     case $host_os in
6300     aix3* | aix4* | aix5*)
6301       # On AIX/PPC, the GNU linker is very broken
6302       if test "$host_cpu" != ia64; then
6303         ld_shlibs=no
6304         cat <<EOF 1>&2
6305
6306 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6307 *** to be unable to reliably create shared libraries on AIX.
6308 *** Therefore, libtool is disabling shared libraries support.  If you
6309 *** really care for shared libraries, you may want to modify your PATH
6310 *** so that a non-GNU linker is found, and then restart.
6311
6312 EOF
6313       fi
6314       ;;
6315
6316     amigaos*)
6317       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)'
6318       hardcode_libdir_flag_spec='-L$libdir'
6319       hardcode_minus_L=yes
6320
6321       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6322       # that the semantics of dynamic libraries on AmigaOS, at least up
6323       # to version 4, is to share data among multiple programs linked
6324       # with the same dynamic library.  Since this doesn't match the
6325       # behavior of shared libraries on other platforms, we can't use
6326       # them.
6327       ld_shlibs=no
6328       ;;
6329
6330     beos*)
6331       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6332         allow_undefined_flag=unsupported
6333         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6334         # support --undefined.  This deserves some investigation.  FIXME
6335         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6336       else
6337         ld_shlibs=no
6338       fi
6339       ;;
6340
6341     cygwin* | mingw* | pw32*)
6342       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6343       # as there is no search path for DLLs.
6344       hardcode_libdir_flag_spec='-L$libdir'
6345       allow_undefined_flag=unsupported
6346       always_export_symbols=no
6347       enable_shared_with_static_runtimes=yes
6348       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6349
6350       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6351         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6352         # If the export-symbols file already is a .def file (1st line
6353         # is EXPORTS), use it as is; otherwise, prepend...
6354         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6355           cp $export_symbols $output_objdir/$soname.def;
6356         else
6357           echo EXPORTS > $output_objdir/$soname.def;
6358           cat $export_symbols >> $output_objdir/$soname.def;
6359         fi~
6360         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6361       else
6362         ld_shlibs=no
6363       fi
6364       ;;
6365
6366     netbsd*)
6367       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6368         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6369         wlarc=
6370       else
6371         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6372         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6373       fi
6374       ;;
6375
6376     solaris* | sysv5*)
6377       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6378         ld_shlibs=no
6379         cat <<EOF 1>&2
6380
6381 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6382 *** create shared libraries on Solaris systems.  Therefore, libtool
6383 *** is disabling shared libraries support.  We urge you to upgrade GNU
6384 *** binutils to release 2.9.1 or newer.  Another option is to modify
6385 *** your PATH or compiler configuration so that the native linker is
6386 *** used, and then restart.
6387
6388 EOF
6389       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6390         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6391         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6392       else
6393         ld_shlibs=no
6394       fi
6395       ;;
6396
6397     sunos4*)
6398       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6399       wlarc=
6400       hardcode_direct=yes
6401       hardcode_shlibpath_var=no
6402       ;;
6403
6404     *)
6405       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6406         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6407         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6408       else
6409         ld_shlibs=no
6410       fi
6411       ;;
6412     esac
6413
6414     if test "$ld_shlibs" = yes; then
6415       runpath_var=LD_RUN_PATH
6416       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6417       export_dynamic_flag_spec='${wl}--export-dynamic'
6418       # ancient GNU ld didn't support --whole-archive et. al.
6419       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6420         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6421       else
6422         whole_archive_flag_spec=
6423       fi
6424     fi
6425   else
6426     # PORTME fill in a description of your system's linker (not GNU ld)
6427     case $host_os in
6428     aix3*)
6429       allow_undefined_flag=unsupported
6430       always_export_symbols=yes
6431       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'
6432       # Note: this linker hardcodes the directories in LIBPATH if there
6433       # are no directories specified by -L.
6434       hardcode_minus_L=yes
6435       if test "$GCC" = yes && test -z "$link_static_flag"; then
6436         # Neither direct hardcoding nor static linking is supported with a
6437         # broken collect2.
6438         hardcode_direct=unsupported
6439       fi
6440       ;;
6441
6442     aix4* | aix5*)
6443       if test "$host_cpu" = ia64; then
6444         # On IA64, the linker does run time linking by default, so we don't
6445         # have to do anything special.
6446         aix_use_runtimelinking=no
6447         exp_sym_flag='-Bexport'
6448         no_entry_flag=""
6449       else
6450         # If we're using GNU nm, then we don't want the "-C" option.
6451         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6452         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6453           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'
6454         else
6455           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'
6456         fi
6457         aix_use_runtimelinking=no
6458
6459         # Test if we are trying to use run time linking or normal
6460         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6461         # need to do runtime linking.
6462         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6463           for ld_flag in $LDFLAGS; do
6464           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6465             aix_use_runtimelinking=yes
6466             break
6467           fi
6468           done
6469         esac
6470
6471         exp_sym_flag='-bexport'
6472         no_entry_flag='-bnoentry'
6473       fi
6474
6475       # When large executables or shared objects are built, AIX ld can
6476       # have problems creating the table of contents.  If linking a library
6477       # or program results in "error TOC overflow" add -mminimal-toc to
6478       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6479       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6480
6481       archive_cmds=''
6482       hardcode_direct=yes
6483       hardcode_libdir_separator=':'
6484       link_all_deplibs=yes
6485
6486       if test "$GCC" = yes; then
6487         case $host_os in aix4.012|aix4.012.*)
6488         # We only want to do this on AIX 4.2 and lower, the check
6489         # below for broken collect2 doesn't work under 4.3+
6490           collect2name=`${CC} -print-prog-name=collect2`
6491           if test -f "$collect2name" && \
6492            strings "$collect2name" | grep resolve_lib_name >/dev/null
6493           then
6494           # We have reworked collect2
6495           hardcode_direct=yes
6496           else
6497           # We have old collect2
6498           hardcode_direct=unsupported
6499           # It fails to find uninstalled libraries when the uninstalled
6500           # path is not listed in the libpath.  Setting hardcode_minus_L
6501           # to unsupported forces relinking
6502           hardcode_minus_L=yes
6503           hardcode_libdir_flag_spec='-L$libdir'
6504           hardcode_libdir_separator=
6505           fi
6506         esac
6507         shared_flag='-shared'
6508       else
6509         # not using gcc
6510         if test "$host_cpu" = ia64; then
6511         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6512         # chokes on -Wl,-G. The following line is correct:
6513           shared_flag='-G'
6514         else
6515         if test "$aix_use_runtimelinking" = yes; then
6516             shared_flag='${wl}-G'
6517           else
6518             shared_flag='${wl}-bM:SRE'
6519         fi
6520         fi
6521       fi
6522
6523       # It seems that -bexpall does not export symbols beginning with
6524       # underscore (_), so it is better to generate a list of symbols to export.
6525       always_export_symbols=yes
6526       if test "$aix_use_runtimelinking" = yes; then
6527         # Warning - without using the other runtime loading flags (-brtl),
6528         # -berok will link without error, but may produce a broken library.
6529         allow_undefined_flag='-berok'
6530        # Determine the default libpath from the value encoded in an empty executable.
6531        cat >conftest.$ac_ext <<_ACEOF
6532 #line $LINENO "configure"
6533 /* confdefs.h.  */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h.  */
6538
6539 int
6540 main ()
6541 {
6542
6543   ;
6544   return 0;
6545 }
6546 _ACEOF
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549   (eval $ac_link) 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); } &&
6553          { ac_try='test -s conftest$ac_exeext'
6554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555   (eval $ac_try) 2>&5
6556   ac_status=$?
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); }; }; then
6559
6560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6561 }'`
6562 # Check for a 64-bit object if we didn't find anything.
6563 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; }
6564 }'`; fi
6565 else
6566   echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6568
6569 fi
6570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6571 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6572
6573        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6574         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"
6575        else
6576         if test "$host_cpu" = ia64; then
6577           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6578           allow_undefined_flag="-z nodefs"
6579           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"
6580         else
6581          # Determine the default libpath from the value encoded in an empty executable.
6582          cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589
6590 int
6591 main ()
6592 {
6593
6594   ;
6595   return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600   (eval $ac_link) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } &&
6604          { ac_try='test -s conftest$ac_exeext'
6605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606   (eval $ac_try) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); }; }; then
6610
6611 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6612 }'`
6613 # Check for a 64-bit object if we didn't find anything.
6614 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; }
6615 }'`; fi
6616 else
6617   echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 fi
6621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6622 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6623
6624          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6625           # Warning - without using the other run time loading flags,
6626           # -berok will link without error, but may produce a broken library.
6627           no_undefined_flag=' ${wl}-bernotok'
6628           allow_undefined_flag=' ${wl}-berok'
6629           # -bexpall does not export symbols beginning with underscore (_)
6630           always_export_symbols=yes
6631           # Exported symbols can be pulled into shared objects from archives
6632           whole_archive_flag_spec=' '
6633           archive_cmds_need_lc=yes
6634           # This is similar to how AIX traditionally builds it's shared libraries.
6635           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'
6636         fi
6637       fi
6638       ;;
6639
6640     amigaos*)
6641       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)'
6642       hardcode_libdir_flag_spec='-L$libdir'
6643       hardcode_minus_L=yes
6644       # see comment about different semantics on the GNU ld section
6645       ld_shlibs=no
6646       ;;
6647
6648     bsdi4*)
6649       export_dynamic_flag_spec=-rdynamic
6650       ;;
6651
6652     cygwin* | mingw* | pw32*)
6653       # When not using gcc, we currently assume that we are using
6654       # Microsoft Visual C++.
6655       # hardcode_libdir_flag_spec is actually meaningless, as there is
6656       # no search path for DLLs.
6657       hardcode_libdir_flag_spec=' '
6658       allow_undefined_flag=unsupported
6659       # Tell ltmain to make .lib files, not .a files.
6660       libext=lib
6661       # Tell ltmain to make .dll files, not .so files.
6662       shrext=".dll"
6663       # FIXME: Setting linknames here is a bad hack.
6664       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6665       # The linker will automatically build a .lib file if we build a DLL.
6666       old_archive_From_new_cmds='true'
6667       # FIXME: Should let the user specify the lib program.
6668       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6669       fix_srcfile_path='`cygpath -w "$srcfile"`'
6670       enable_shared_with_static_runtimes=yes
6671       ;;
6672
6673     darwin* | rhapsody*)
6674     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6675       archive_cmds_need_lc=no
6676       case "$host_os" in
6677       rhapsody* | darwin1.[012])
6678         allow_undefined_flag='-undefined suppress'
6679         ;;
6680       *) # Darwin 1.3 on
6681         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6682         ;;
6683       esac
6684       # FIXME: Relying on posixy $() will cause problems for
6685       #        cross-compilation, but unfortunately the echo tests do not
6686       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6687       #        `"' quotes if we put them in here... so don't!
6688         lt_int_apple_cc_single_mod=no
6689         output_verbose_link_cmd='echo'
6690         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6691           lt_int_apple_cc_single_mod=yes
6692         fi
6693         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6694           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6695         else
6696         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'
6697       fi
6698       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6699       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6700         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6701           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}'
6702         else
6703           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}'
6704         fi
6705           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}'
6706       hardcode_direct=no
6707       hardcode_automatic=yes
6708       hardcode_shlibpath_var=unsupported
6709       whole_archive_flag_spec='-all_load $convenience'
6710       link_all_deplibs=yes
6711     fi
6712       ;;
6713
6714     dgux*)
6715       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6716       hardcode_libdir_flag_spec='-L$libdir'
6717       hardcode_shlibpath_var=no
6718       ;;
6719
6720     freebsd1*)
6721       ld_shlibs=no
6722       ;;
6723
6724     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6725     # support.  Future versions do this automatically, but an explicit c++rt0.o
6726     # does not break anything, and helps significantly (at the cost of a little
6727     # extra space).
6728     freebsd2.2*)
6729       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6730       hardcode_libdir_flag_spec='-R$libdir'
6731       hardcode_direct=yes
6732       hardcode_shlibpath_var=no
6733       ;;
6734
6735     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6736     freebsd2*)
6737       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6738       hardcode_direct=yes
6739       hardcode_minus_L=yes
6740       hardcode_shlibpath_var=no
6741       ;;
6742
6743     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6744     freebsd*)
6745       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6746       hardcode_libdir_flag_spec='-R$libdir'
6747       hardcode_direct=yes
6748       hardcode_shlibpath_var=no
6749       ;;
6750
6751     hpux9*)
6752       if test "$GCC" = yes; then
6753         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'
6754       else
6755         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'
6756       fi
6757       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6758       hardcode_libdir_separator=:
6759       hardcode_direct=yes
6760
6761       # hardcode_minus_L: Not really in the search PATH,
6762       # but as the default location of the library.
6763       hardcode_minus_L=yes
6764       export_dynamic_flag_spec='${wl}-E'
6765       ;;
6766
6767     hpux10* | hpux11*)
6768       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6769         case "$host_cpu" in
6770         hppa*64*|ia64*)
6771           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6772           ;;
6773         *)
6774           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6775           ;;
6776         esac
6777       else
6778         case "$host_cpu" in
6779         hppa*64*|ia64*)
6780           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6781           ;;
6782         *)
6783           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6784           ;;
6785         esac
6786       fi
6787       if test "$with_gnu_ld" = no; then
6788         case "$host_cpu" in
6789         hppa*64*)
6790           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6791           hardcode_libdir_flag_spec_ld='+b $libdir'
6792           hardcode_libdir_separator=:
6793           hardcode_direct=no
6794           hardcode_shlibpath_var=no
6795           ;;
6796         ia64*)
6797           hardcode_libdir_flag_spec='-L$libdir'
6798           hardcode_direct=no
6799           hardcode_shlibpath_var=no
6800
6801           # hardcode_minus_L: Not really in the search PATH,
6802           # but as the default location of the library.
6803           hardcode_minus_L=yes
6804           ;;
6805         *)
6806           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6807           hardcode_libdir_separator=:
6808           hardcode_direct=yes
6809           export_dynamic_flag_spec='${wl}-E'
6810
6811           # hardcode_minus_L: Not really in the search PATH,
6812           # but as the default location of the library.
6813           hardcode_minus_L=yes
6814           ;;
6815         esac
6816       fi
6817       ;;
6818
6819     irix5* | irix6* | nonstopux*)
6820       if test "$GCC" = yes; then
6821         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'
6822       else
6823         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'
6824         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6825       fi
6826       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6827       hardcode_libdir_separator=:
6828       link_all_deplibs=yes
6829       ;;
6830
6831     netbsd*)
6832       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6833         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6834       else
6835         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6836       fi
6837       hardcode_libdir_flag_spec='-R$libdir'
6838       hardcode_direct=yes
6839       hardcode_shlibpath_var=no
6840       ;;
6841
6842     newsos6)
6843       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6844       hardcode_direct=yes
6845       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6846       hardcode_libdir_separator=:
6847       hardcode_shlibpath_var=no
6848       ;;
6849
6850     openbsd*)
6851       hardcode_direct=yes
6852       hardcode_shlibpath_var=no
6853       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6854         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6855         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6856         export_dynamic_flag_spec='${wl}-E'
6857       else
6858        case $host_os in
6859          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6860            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6861            hardcode_libdir_flag_spec='-R$libdir'
6862            ;;
6863          *)
6864            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6865            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6866            ;;
6867        esac
6868       fi
6869       ;;
6870
6871     os2*)
6872       hardcode_libdir_flag_spec='-L$libdir'
6873       hardcode_minus_L=yes
6874       allow_undefined_flag=unsupported
6875       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'
6876       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6877       ;;
6878
6879     osf3*)
6880       if test "$GCC" = yes; then
6881         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6882         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'
6883       else
6884         allow_undefined_flag=' -expect_unresolved \*'
6885         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'
6886       fi
6887       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6888       hardcode_libdir_separator=:
6889       ;;
6890
6891     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6892       if test "$GCC" = yes; then
6893         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6894         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'
6895         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6896       else
6897         allow_undefined_flag=' -expect_unresolved \*'
6898         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'
6899         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6900         $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'
6901
6902         # Both c and cxx compiler support -rpath directly
6903         hardcode_libdir_flag_spec='-rpath $libdir'
6904       fi
6905       hardcode_libdir_separator=:
6906       ;;
6907
6908     sco3.2v5*)
6909       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6910       hardcode_shlibpath_var=no
6911       export_dynamic_flag_spec='${wl}-Bexport'
6912       runpath_var=LD_RUN_PATH
6913       hardcode_runpath_var=yes
6914       ;;
6915
6916     solaris*)
6917       no_undefined_flag=' -z text'
6918       if test "$GCC" = yes; then
6919         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6920         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6921           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6922       else
6923         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6924         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6925         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6926       fi
6927       hardcode_libdir_flag_spec='-R$libdir'
6928       hardcode_shlibpath_var=no
6929       case $host_os in
6930       solaris2.[0-5] | solaris2.[0-5].*) ;;
6931       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6932         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6933       esac
6934       link_all_deplibs=yes
6935       ;;
6936
6937     sunos4*)
6938       if test "x$host_vendor" = xsequent; then
6939         # Use $CC to link under sequent, because it throws in some extra .o
6940         # files that make .init and .fini sections work.
6941         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6942       else
6943         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6944       fi
6945       hardcode_libdir_flag_spec='-L$libdir'
6946       hardcode_direct=yes
6947       hardcode_minus_L=yes
6948       hardcode_shlibpath_var=no
6949       ;;
6950
6951     sysv4)
6952       case $host_vendor in
6953         sni)
6954           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6955           hardcode_direct=yes # is this really true???
6956         ;;
6957         siemens)
6958           ## LD is ld it makes a PLAMLIB
6959           ## CC just makes a GrossModule.
6960           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6961           reload_cmds='$CC -r -o $output$reload_objs'
6962           hardcode_direct=no
6963         ;;
6964         motorola)
6965           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6966           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6967         ;;
6968       esac
6969       runpath_var='LD_RUN_PATH'
6970       hardcode_shlibpath_var=no
6971       ;;
6972
6973     sysv4.3*)
6974       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6975       hardcode_shlibpath_var=no
6976       export_dynamic_flag_spec='-Bexport'
6977       ;;
6978
6979     sysv4*MP*)
6980       if test -d /usr/nec; then
6981         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6982         hardcode_shlibpath_var=no
6983         runpath_var=LD_RUN_PATH
6984         hardcode_runpath_var=yes
6985         ld_shlibs=yes
6986       fi
6987       ;;
6988
6989     sysv4.2uw2*)
6990       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6991       hardcode_direct=yes
6992       hardcode_minus_L=no
6993       hardcode_shlibpath_var=no
6994       hardcode_runpath_var=yes
6995       runpath_var=LD_RUN_PATH
6996       ;;
6997
6998    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6999       no_undefined_flag='${wl}-z ${wl}text'
7000       if test "$GCC" = yes; then
7001         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7002       else
7003         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7004       fi
7005       runpath_var='LD_RUN_PATH'
7006       hardcode_shlibpath_var=no
7007       ;;
7008
7009     sysv5*)
7010       no_undefined_flag=' -z text'
7011       # $CC -shared without GNU ld will not create a library from C++
7012       # object files and a static libstdc++, better avoid it by now
7013       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7014       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7015                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7016       hardcode_libdir_flag_spec=
7017       hardcode_shlibpath_var=no
7018       runpath_var='LD_RUN_PATH'
7019       ;;
7020
7021     uts4*)
7022       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7023       hardcode_libdir_flag_spec='-L$libdir'
7024       hardcode_shlibpath_var=no
7025       ;;
7026
7027     *)
7028       ld_shlibs=no
7029       ;;
7030     esac
7031   fi
7032
7033 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7034 echo "${ECHO_T}$ld_shlibs" >&6
7035 test "$ld_shlibs" = no && can_build_shared=no
7036
7037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7038 if test "$GCC" = yes; then
7039   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7040 fi
7041
7042 #
7043 # Do we need to explicitly link libc?
7044 #
7045 case "x$archive_cmds_need_lc" in
7046 x|xyes)
7047   # Assume -lc should be added
7048   archive_cmds_need_lc=yes
7049
7050   if test "$enable_shared" = yes && test "$GCC" = yes; then
7051     case $archive_cmds in
7052     *'~'*)
7053       # FIXME: we may have to deal with multi-command sequences.
7054       ;;
7055     '$CC '*)
7056       # Test whether the compiler implicitly links with -lc since on some
7057       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7058       # to ld, don't add -lc before -lgcc.
7059       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7060 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7061       $rm conftest*
7062       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7063
7064       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065   (eval $ac_compile) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } 2>conftest.err; then
7069         soname=conftest
7070         lib=conftest
7071         libobjs=conftest.$ac_objext
7072         deplibs=
7073         wl=$lt_prog_compiler_wl
7074         compiler_flags=-v
7075         linker_flags=-v
7076         verstring=
7077         output_objdir=.
7078         libname=conftest
7079         lt_save_allow_undefined_flag=$allow_undefined_flag
7080         allow_undefined_flag=
7081         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7082   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7083   ac_status=$?
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); }
7086         then
7087           archive_cmds_need_lc=no
7088         else
7089           archive_cmds_need_lc=yes
7090         fi
7091         allow_undefined_flag=$lt_save_allow_undefined_flag
7092       else
7093         cat conftest.err 1>&5
7094       fi
7095       $rm conftest*
7096       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7097 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7098       ;;
7099     esac
7100   fi
7101   ;;
7102 esac
7103
7104 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7105 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7106 hardcode_action=
7107 if test -n "$hardcode_libdir_flag_spec" || \
7108    test -n "$runpath_var " || \
7109    test "X$hardcode_automatic"="Xyes" ; then
7110
7111   # We can hardcode non-existant directories.
7112   if test "$hardcode_direct" != no &&
7113      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7114      # have to relink, otherwise we might link with an installed library
7115      # when we should be linking with a yet-to-be-installed one
7116      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7117      test "$hardcode_minus_L" != no; then
7118     # Linking always hardcodes the temporary library directory.
7119     hardcode_action=relink
7120   else
7121     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7122     hardcode_action=immediate
7123   fi
7124 else
7125   # We cannot hardcode anything, or else we can only hardcode existing
7126   # directories.
7127   hardcode_action=unsupported
7128 fi
7129 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7130 echo "${ECHO_T}$hardcode_action" >&6
7131
7132 if test "$hardcode_action" = relink; then
7133   # Fast installation is not supported
7134   enable_fast_install=no
7135 elif test "$shlibpath_overrides_runpath" = yes ||
7136      test "$enable_shared" = no; then
7137   # Fast installation is not necessary
7138   enable_fast_install=needless
7139 fi
7140
7141 striplib=
7142 old_striplib=
7143 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7144 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7145 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7146   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7147   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7148   echo "$as_me:$LINENO: result: yes" >&5
7149 echo "${ECHO_T}yes" >&6
7150 else
7151 # FIXME - insert some real tests, host_os isn't really good enough
7152   case $host_os in
7153    darwin*)
7154        if test -n "$STRIP" ; then
7155          striplib="$STRIP -x"
7156          echo "$as_me:$LINENO: result: yes" >&5
7157 echo "${ECHO_T}yes" >&6
7158        else
7159   echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6
7161 fi
7162        ;;
7163    *)
7164   echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6
7166     ;;
7167   esac
7168 fi
7169
7170 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7171 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7172 library_names_spec=
7173 libname_spec='lib$name'
7174 soname_spec=
7175 shrext=".so"
7176 postinstall_cmds=
7177 postuninstall_cmds=
7178 finish_cmds=
7179 finish_eval=
7180 shlibpath_var=
7181 shlibpath_overrides_runpath=unknown
7182 version_type=none
7183 dynamic_linker="$host_os ld.so"
7184 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7185 if test "$GCC" = yes; then
7186   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7187   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7188     # if the path contains ";" then we assume it to be the separator
7189     # otherwise default to the standard path separator (i.e. ":") - it is
7190     # assumed that no part of a normal pathname contains ";" but that should
7191     # okay in the real world where ";" in dirpaths is itself problematic.
7192     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7193   else
7194     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7195   fi
7196 else
7197   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7198 fi
7199 need_lib_prefix=unknown
7200 hardcode_into_libs=no
7201
7202 # when you set need_version to no, make sure it does not cause -set_version
7203 # flags to be left without arguments
7204 need_version=unknown
7205
7206 case $host_os in
7207 aix3*)
7208   version_type=linux
7209   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7210   shlibpath_var=LIBPATH
7211
7212   # AIX 3 has no versioning support, so we append a major version to the name.
7213   soname_spec='${libname}${release}${shared_ext}$major'
7214   ;;
7215
7216 aix4* | aix5*)
7217   version_type=linux
7218   need_lib_prefix=no
7219   need_version=no
7220   hardcode_into_libs=yes
7221   if test "$host_cpu" = ia64; then
7222     # AIX 5 supports IA64
7223     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7224     shlibpath_var=LD_LIBRARY_PATH
7225   else
7226     # With GCC up to 2.95.x, collect2 would create an import file
7227     # for dependence libraries.  The import file would start with
7228     # the line `#! .'.  This would cause the generated library to
7229     # depend on `.', always an invalid library.  This was fixed in
7230     # development snapshots of GCC prior to 3.0.
7231     case $host_os in
7232       aix4 | aix4.[01] | aix4.[01].*)
7233       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7234            echo ' yes '
7235            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7236         :
7237       else
7238         can_build_shared=no
7239       fi
7240       ;;
7241     esac
7242     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7243     # soname into executable. Probably we can add versioning support to
7244     # collect2, so additional links can be useful in future.
7245     if test "$aix_use_runtimelinking" = yes; then
7246       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7247       # instead of lib<name>.a to let people know that these are not
7248       # typical AIX shared libraries.
7249       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7250     else
7251       # We preserve .a as extension for shared libraries through AIX4.2
7252       # and later when we are not doing run time linking.
7253       library_names_spec='${libname}${release}.a $libname.a'
7254       soname_spec='${libname}${release}${shared_ext}$major'
7255     fi
7256     shlibpath_var=LIBPATH
7257   fi
7258   ;;
7259
7260 amigaos*)
7261   library_names_spec='$libname.ixlibrary $libname.a'
7262   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7263   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'
7264   ;;
7265
7266 beos*)
7267   library_names_spec='${libname}${shared_ext}'
7268   dynamic_linker="$host_os ld.so"
7269   shlibpath_var=LIBRARY_PATH
7270   ;;
7271
7272 bsdi4*)
7273   version_type=linux
7274   need_version=no
7275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7276   soname_spec='${libname}${release}${shared_ext}$major'
7277   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7278   shlibpath_var=LD_LIBRARY_PATH
7279   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7280   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7281   # the default ld.so.conf also contains /usr/contrib/lib and
7282   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7283   # libtool to hard-code these into programs
7284   ;;
7285
7286 cygwin* | mingw* | pw32*)
7287   version_type=windows
7288   shrext=".dll"
7289   need_version=no
7290   need_lib_prefix=no
7291
7292   case $GCC,$host_os in
7293   yes,cygwin* | yes,mingw* | yes,pw32*)
7294     library_names_spec='$libname.dll.a'
7295     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7296     postinstall_cmds='base_file=`basename \${file}`~
7297       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7298       dldir=$destdir/`dirname \$dlpath`~
7299       test -d \$dldir || mkdir -p \$dldir~
7300       $install_prog $dir/$dlname \$dldir/$dlname'
7301     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7302       dlpath=$dir/\$dldll~
7303        $rm \$dlpath'
7304     shlibpath_overrides_runpath=yes
7305
7306     case $host_os in
7307     cygwin*)
7308       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7309       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7310       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7311       ;;
7312     mingw*)
7313       # MinGW DLLs use traditional 'lib' prefix
7314       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7315       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7316       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7317         # It is most probably a Windows format PATH printed by
7318         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7319         # path with ; separators, and with drive letters. We can handle the
7320         # drive letters (cygwin fileutils understands them), so leave them,
7321         # especially as we might pass files found there to a mingw objdump,
7322         # which wouldn't understand a cygwinified path. Ahh.
7323         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7324       else
7325         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7326       fi
7327       ;;
7328     pw32*)
7329       # pw32 DLLs use 'pw' prefix rather than 'lib'
7330       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7331       ;;
7332     esac
7333     ;;
7334
7335   *)
7336     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7337     ;;
7338   esac
7339   dynamic_linker='Win32 ld.exe'
7340   # FIXME: first we should search . and the directory the executable is in
7341   shlibpath_var=PATH
7342   ;;
7343
7344 darwin* | rhapsody*)
7345   dynamic_linker="$host_os dyld"
7346   version_type=darwin
7347   need_lib_prefix=no
7348   need_version=no
7349   # FIXME: Relying on posixy $() will cause problems for
7350   #        cross-compilation, but unfortunately the echo tests do not
7351   #        yet detect zsh echo's removal of \ escapes.
7352   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7353   soname_spec='${libname}${release}${major}$shared_ext'
7354   shlibpath_overrides_runpath=yes
7355   shlibpath_var=DYLD_LIBRARY_PATH
7356   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7357   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7358   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7359   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"`
7360   fi
7361   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7362   ;;
7363
7364 dgux*)
7365   version_type=linux
7366   need_lib_prefix=no
7367   need_version=no
7368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7369   soname_spec='${libname}${release}${shared_ext}$major'
7370   shlibpath_var=LD_LIBRARY_PATH
7371   ;;
7372
7373 freebsd1*)
7374   dynamic_linker=no
7375   ;;
7376
7377 freebsd*)
7378   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7379   version_type=freebsd-$objformat
7380   case $version_type in
7381     freebsd-elf*)
7382       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7383       need_version=no
7384       need_lib_prefix=no
7385       ;;
7386     freebsd-*)
7387       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7388       need_version=yes
7389       ;;
7390   esac
7391   shlibpath_var=LD_LIBRARY_PATH
7392   case $host_os in
7393   freebsd2*)
7394     shlibpath_overrides_runpath=yes
7395     ;;
7396   freebsd3.01* | freebsdelf3.01*)
7397     shlibpath_overrides_runpath=yes
7398     hardcode_into_libs=yes
7399     ;;
7400   *) # from 3.2 on
7401     shlibpath_overrides_runpath=no
7402     hardcode_into_libs=yes
7403     ;;
7404   esac
7405   ;;
7406
7407 gnu*)
7408   version_type=linux
7409   need_lib_prefix=no
7410   need_version=no
7411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7412   soname_spec='${libname}${release}${shared_ext}$major'
7413   shlibpath_var=LD_LIBRARY_PATH
7414   hardcode_into_libs=yes
7415   ;;
7416
7417 hpux9* | hpux10* | hpux11*)
7418   # Give a soname corresponding to the major version so that dld.sl refuses to
7419   # link against other versions.
7420   version_type=sunos
7421   need_lib_prefix=no
7422   need_version=no
7423   case "$host_cpu" in
7424   ia64*)
7425     shrext='.so'
7426     hardcode_into_libs=yes
7427     dynamic_linker="$host_os dld.so"
7428     shlibpath_var=LD_LIBRARY_PATH
7429     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7431     soname_spec='${libname}${release}${shared_ext}$major'
7432     if test "X$HPUX_IA64_MODE" = X32; then
7433       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7434     else
7435       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7436     fi
7437     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7438     ;;
7439    hppa*64*)
7440      shrext='.sl'
7441      hardcode_into_libs=yes
7442      dynamic_linker="$host_os dld.sl"
7443      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7444      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7445      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7446      soname_spec='${libname}${release}${shared_ext}$major'
7447      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7448      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7449      ;;
7450    *)
7451     shrext='.sl'
7452     dynamic_linker="$host_os dld.sl"
7453     shlibpath_var=SHLIB_PATH
7454     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7456     soname_spec='${libname}${release}${shared_ext}$major'
7457     ;;
7458   esac
7459   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7460   postinstall_cmds='chmod 555 $lib'
7461   ;;
7462
7463 irix5* | irix6* | nonstopux*)
7464   case $host_os in
7465     nonstopux*) version_type=nonstopux ;;
7466     *)
7467         if test "$lt_cv_prog_gnu_ld" = yes; then
7468                 version_type=linux
7469         else
7470                 version_type=irix
7471         fi ;;
7472   esac
7473   need_lib_prefix=no
7474   need_version=no
7475   soname_spec='${libname}${release}${shared_ext}$major'
7476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7477   case $host_os in
7478   irix5* | nonstopux*)
7479     libsuff= shlibsuff=
7480     ;;
7481   *)
7482     case $LD in # libtool.m4 will add one of these switches to LD
7483     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7484       libsuff= shlibsuff= libmagic=32-bit;;
7485     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7486       libsuff=32 shlibsuff=N32 libmagic=N32;;
7487     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7488       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7489     *) libsuff= shlibsuff= libmagic=never-match;;
7490     esac
7491     ;;
7492   esac
7493   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7494   shlibpath_overrides_runpath=no
7495   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7496   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7497   hardcode_into_libs=yes
7498   ;;
7499
7500 # No shared lib support for Linux oldld, aout, or coff.
7501 linux*oldld* | linux*aout* | linux*coff*)
7502   dynamic_linker=no
7503   ;;
7504
7505 # This must be Linux ELF.
7506 linux*)
7507   version_type=linux
7508   need_lib_prefix=no
7509   need_version=no
7510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7511   soname_spec='${libname}${release}${shared_ext}$major'
7512   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7513   shlibpath_var=LD_LIBRARY_PATH
7514   shlibpath_overrides_runpath=no
7515   # This implies no fast_install, which is unacceptable.
7516   # Some rework will be needed to allow for fast_install
7517   # before this can be enabled.
7518   hardcode_into_libs=yes
7519
7520   # We used to test for /lib/ld.so.1 and disable shared libraries on
7521   # powerpc, because MkLinux only supported shared libraries with the
7522   # GNU dynamic linker.  Since this was broken with cross compilers,
7523   # most powerpc-linux boxes support dynamic linking these days and
7524   # people can always --disable-shared, the test was removed, and we
7525   # assume the GNU/Linux dynamic linker is in use.
7526   dynamic_linker='GNU/Linux ld.so'
7527   ;;
7528
7529 netbsd*)
7530   version_type=sunos
7531   need_lib_prefix=no
7532   need_version=no
7533   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7535     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7536     dynamic_linker='NetBSD (a.out) ld.so'
7537   else
7538     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7539     soname_spec='${libname}${release}${shared_ext}$major'
7540     dynamic_linker='NetBSD ld.elf_so'
7541   fi
7542   shlibpath_var=LD_LIBRARY_PATH
7543   shlibpath_overrides_runpath=yes
7544   hardcode_into_libs=yes
7545   ;;
7546
7547 newsos6)
7548   version_type=linux
7549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7550   shlibpath_var=LD_LIBRARY_PATH
7551   shlibpath_overrides_runpath=yes
7552   ;;
7553
7554 nto-qnx)
7555   version_type=linux
7556   need_lib_prefix=no
7557   need_version=no
7558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7559   soname_spec='${libname}${release}${shared_ext}$major'
7560   shlibpath_var=LD_LIBRARY_PATH
7561   shlibpath_overrides_runpath=yes
7562   ;;
7563
7564 openbsd*)
7565   version_type=sunos
7566   need_lib_prefix=no
7567   need_version=no
7568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7569   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7570   shlibpath_var=LD_LIBRARY_PATH
7571   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7572     case $host_os in
7573       openbsd2.[89] | openbsd2.[89].*)
7574         shlibpath_overrides_runpath=no
7575         ;;
7576       *)
7577         shlibpath_overrides_runpath=yes
7578         ;;
7579       esac
7580   else
7581     shlibpath_overrides_runpath=yes
7582   fi
7583   ;;
7584
7585 os2*)
7586   libname_spec='$name'
7587   shrext=".dll"
7588   need_lib_prefix=no
7589   library_names_spec='$libname${shared_ext} $libname.a'
7590   dynamic_linker='OS/2 ld.exe'
7591   shlibpath_var=LIBPATH
7592   ;;
7593
7594 osf3* | osf4* | osf5*)
7595   version_type=osf
7596   need_lib_prefix=no
7597   need_version=no
7598   soname_spec='${libname}${release}${shared_ext}$major'
7599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7600   shlibpath_var=LD_LIBRARY_PATH
7601   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7602   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7603   ;;
7604
7605 sco3.2v5*)
7606   version_type=osf
7607   soname_spec='${libname}${release}${shared_ext}$major'
7608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609   shlibpath_var=LD_LIBRARY_PATH
7610   ;;
7611
7612 solaris*)
7613   version_type=linux
7614   need_lib_prefix=no
7615   need_version=no
7616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7617   soname_spec='${libname}${release}${shared_ext}$major'
7618   shlibpath_var=LD_LIBRARY_PATH
7619   shlibpath_overrides_runpath=yes
7620   hardcode_into_libs=yes
7621   # ldd complains unless libraries are executable
7622   postinstall_cmds='chmod +x $lib'
7623   ;;
7624
7625 sunos4*)
7626   version_type=sunos
7627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7628   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7629   shlibpath_var=LD_LIBRARY_PATH
7630   shlibpath_overrides_runpath=yes
7631   if test "$with_gnu_ld" = yes; then
7632     need_lib_prefix=no
7633   fi
7634   need_version=yes
7635   ;;
7636
7637 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7638   version_type=linux
7639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7640   soname_spec='${libname}${release}${shared_ext}$major'
7641   shlibpath_var=LD_LIBRARY_PATH
7642   case $host_vendor in
7643     sni)
7644       shlibpath_overrides_runpath=no
7645       need_lib_prefix=no
7646       export_dynamic_flag_spec='${wl}-Blargedynsym'
7647       runpath_var=LD_RUN_PATH
7648       ;;
7649     siemens)
7650       need_lib_prefix=no
7651       ;;
7652     motorola)
7653       need_lib_prefix=no
7654       need_version=no
7655       shlibpath_overrides_runpath=no
7656       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7657       ;;
7658   esac
7659   ;;
7660
7661 sysv4*MP*)
7662   if test -d /usr/nec ;then
7663     version_type=linux
7664     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7665     soname_spec='$libname${shared_ext}.$major'
7666     shlibpath_var=LD_LIBRARY_PATH
7667   fi
7668   ;;
7669
7670 uts4*)
7671   version_type=linux
7672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7673   soname_spec='${libname}${release}${shared_ext}$major'
7674   shlibpath_var=LD_LIBRARY_PATH
7675   ;;
7676
7677 *)
7678   dynamic_linker=no
7679   ;;
7680 esac
7681 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7682 echo "${ECHO_T}$dynamic_linker" >&6
7683 test "$dynamic_linker" = no && can_build_shared=no
7684
7685 if test "x$enable_dlopen" != xyes; then
7686   enable_dlopen=unknown
7687   enable_dlopen_self=unknown
7688   enable_dlopen_self_static=unknown
7689 else
7690   lt_cv_dlopen=no
7691   lt_cv_dlopen_libs=
7692
7693   case $host_os in
7694   beos*)
7695     lt_cv_dlopen="load_add_on"
7696     lt_cv_dlopen_libs=
7697     lt_cv_dlopen_self=yes
7698     ;;
7699
7700   mingw* | pw32*)
7701     lt_cv_dlopen="LoadLibrary"
7702     lt_cv_dlopen_libs=
7703    ;;
7704
7705   cygwin*)
7706     lt_cv_dlopen="dlopen"
7707     lt_cv_dlopen_libs=
7708    ;;
7709
7710   darwin*)
7711   # if libdl is installed we need to link against it
7712     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7713 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717   ac_check_lib_save_LIBS=$LIBS
7718 LIBS="-ldl  $LIBS"
7719 cat >conftest.$ac_ext <<_ACEOF
7720 #line $LINENO "configure"
7721 /* confdefs.h.  */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h.  */
7726
7727 /* Override any gcc2 internal prototype to avoid an error.  */
7728 #ifdef __cplusplus
7729 extern "C"
7730 #endif
7731 /* We use char because int might match the return type of a gcc2
7732    builtin and then its argument prototype would still apply.  */
7733 char dlopen ();
7734 int
7735 main ()
7736 {
7737 dlopen ();
7738   ;
7739   return 0;
7740 }
7741 _ACEOF
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744   (eval $ac_link) 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } &&
7748          { ac_try='test -s conftest$ac_exeext'
7749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750   (eval $ac_try) 2>&5
7751   ac_status=$?
7752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753   (exit $ac_status); }; }; then
7754   ac_cv_lib_dl_dlopen=yes
7755 else
7756   echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7758
7759 ac_cv_lib_dl_dlopen=no
7760 fi
7761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7762 LIBS=$ac_check_lib_save_LIBS
7763 fi
7764 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7765 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7766 if test $ac_cv_lib_dl_dlopen = yes; then
7767   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7768 else
7769
7770     lt_cv_dlopen="dyld"
7771     lt_cv_dlopen_libs=
7772     lt_cv_dlopen_self=yes
7773
7774 fi
7775
7776    ;;
7777
7778   *)
7779     echo "$as_me:$LINENO: checking for shl_load" >&5
7780 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7781 if test "${ac_cv_func_shl_load+set}" = set; then
7782   echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784   cat >conftest.$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791 /* System header to define __stub macros and hopefully few prototypes,
7792     which can conflict with char shl_load (); below.
7793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7794     <limits.h> exists even on freestanding compilers.  */
7795 #ifdef __STDC__
7796 # include <limits.h>
7797 #else
7798 # include <assert.h>
7799 #endif
7800 /* Override any gcc2 internal prototype to avoid an error.  */
7801 #ifdef __cplusplus
7802 extern "C"
7803 {
7804 #endif
7805 /* We use char because int might match the return type of a gcc2
7806    builtin and then its argument prototype would still apply.  */
7807 char shl_load ();
7808 /* The GNU C library defines this for functions which it implements
7809     to always fail with ENOSYS.  Some functions are actually named
7810     something starting with __ and the normal name is an alias.  */
7811 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7812 choke me
7813 #else
7814 char (*f) () = shl_load;
7815 #endif
7816 #ifdef __cplusplus
7817 }
7818 #endif
7819
7820 int
7821 main ()
7822 {
7823 return f != shl_load;
7824   ;
7825   return 0;
7826 }
7827 _ACEOF
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830   (eval $ac_link) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } &&
7834          { ac_try='test -s conftest$ac_exeext'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; }; then
7840   ac_cv_func_shl_load=yes
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 ac_cv_func_shl_load=no
7846 fi
7847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7848 fi
7849 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7850 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7851 if test $ac_cv_func_shl_load = yes; then
7852   lt_cv_dlopen="shl_load"
7853 else
7854   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7855 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7856 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   ac_check_lib_save_LIBS=$LIBS
7860 LIBS="-ldld  $LIBS"
7861 cat >conftest.$ac_ext <<_ACEOF
7862 #line $LINENO "configure"
7863 /* confdefs.h.  */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h.  */
7868
7869 /* Override any gcc2 internal prototype to avoid an error.  */
7870 #ifdef __cplusplus
7871 extern "C"
7872 #endif
7873 /* We use char because int might match the return type of a gcc2
7874    builtin and then its argument prototype would still apply.  */
7875 char shl_load ();
7876 int
7877 main ()
7878 {
7879 shl_load ();
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886   (eval $ac_link) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } &&
7890          { ac_try='test -s conftest$ac_exeext'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; }; then
7896   ac_cv_lib_dld_shl_load=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 ac_cv_lib_dld_shl_load=no
7902 fi
7903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7904 LIBS=$ac_check_lib_save_LIBS
7905 fi
7906 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7907 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7908 if test $ac_cv_lib_dld_shl_load = yes; then
7909   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7910 else
7911   echo "$as_me:$LINENO: checking for dlopen" >&5
7912 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7913 if test "${ac_cv_func_dlopen+set}" = set; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916   cat >conftest.$ac_ext <<_ACEOF
7917 #line $LINENO "configure"
7918 /* confdefs.h.  */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h.  */
7923 /* System header to define __stub macros and hopefully few prototypes,
7924     which can conflict with char dlopen (); below.
7925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7926     <limits.h> exists even on freestanding compilers.  */
7927 #ifdef __STDC__
7928 # include <limits.h>
7929 #else
7930 # include <assert.h>
7931 #endif
7932 /* Override any gcc2 internal prototype to avoid an error.  */
7933 #ifdef __cplusplus
7934 extern "C"
7935 {
7936 #endif
7937 /* We use char because int might match the return type of a gcc2
7938    builtin and then its argument prototype would still apply.  */
7939 char dlopen ();
7940 /* The GNU C library defines this for functions which it implements
7941     to always fail with ENOSYS.  Some functions are actually named
7942     something starting with __ and the normal name is an alias.  */
7943 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7944 choke me
7945 #else
7946 char (*f) () = dlopen;
7947 #endif
7948 #ifdef __cplusplus
7949 }
7950 #endif
7951
7952 int
7953 main ()
7954 {
7955 return f != dlopen;
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962   (eval $ac_link) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } &&
7966          { ac_try='test -s conftest$ac_exeext'
7967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968   (eval $ac_try) 2>&5
7969   ac_status=$?
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); }; }; then
7972   ac_cv_func_dlopen=yes
7973 else
7974   echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7976
7977 ac_cv_func_dlopen=no
7978 fi
7979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7980 fi
7981 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7982 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7983 if test $ac_cv_func_dlopen = yes; then
7984   lt_cv_dlopen="dlopen"
7985 else
7986   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7987 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7989   echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991   ac_check_lib_save_LIBS=$LIBS
7992 LIBS="-ldl  $LIBS"
7993 cat >conftest.$ac_ext <<_ACEOF
7994 #line $LINENO "configure"
7995 /* confdefs.h.  */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h.  */
8000
8001 /* Override any gcc2 internal prototype to avoid an error.  */
8002 #ifdef __cplusplus
8003 extern "C"
8004 #endif
8005 /* We use char because int might match the return type of a gcc2
8006    builtin and then its argument prototype would still apply.  */
8007 char dlopen ();
8008 int
8009 main ()
8010 {
8011 dlopen ();
8012   ;
8013   return 0;
8014 }
8015 _ACEOF
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8018   (eval $ac_link) 2>&5
8019   ac_status=$?
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); } &&
8022          { ac_try='test -s conftest$ac_exeext'
8023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024   (eval $ac_try) 2>&5
8025   ac_status=$?
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); }; }; then
8028   ac_cv_lib_dl_dlopen=yes
8029 else
8030   echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8032
8033 ac_cv_lib_dl_dlopen=no
8034 fi
8035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8036 LIBS=$ac_check_lib_save_LIBS
8037 fi
8038 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8039 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8040 if test $ac_cv_lib_dl_dlopen = yes; then
8041   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8042 else
8043   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8044 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8045 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8046   echo $ECHO_N "(cached) $ECHO_C" >&6
8047 else
8048   ac_check_lib_save_LIBS=$LIBS
8049 LIBS="-lsvld  $LIBS"
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057
8058 /* Override any gcc2 internal prototype to avoid an error.  */
8059 #ifdef __cplusplus
8060 extern "C"
8061 #endif
8062 /* We use char because int might match the return type of a gcc2
8063    builtin and then its argument prototype would still apply.  */
8064 char dlopen ();
8065 int
8066 main ()
8067 {
8068 dlopen ();
8069   ;
8070   return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest.$ac_objext conftest$ac_exeext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075   (eval $ac_link) 2>&5
8076   ac_status=$?
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } &&
8079          { ac_try='test -s conftest$ac_exeext'
8080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081   (eval $ac_try) 2>&5
8082   ac_status=$?
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); }; }; then
8085   ac_cv_lib_svld_dlopen=yes
8086 else
8087   echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8089
8090 ac_cv_lib_svld_dlopen=no
8091 fi
8092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8093 LIBS=$ac_check_lib_save_LIBS
8094 fi
8095 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8096 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8097 if test $ac_cv_lib_svld_dlopen = yes; then
8098   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8099 else
8100   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8101 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8102 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8103   echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105   ac_check_lib_save_LIBS=$LIBS
8106 LIBS="-ldld  $LIBS"
8107 cat >conftest.$ac_ext <<_ACEOF
8108 #line $LINENO "configure"
8109 /* confdefs.h.  */
8110 _ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h.  */
8114
8115 /* Override any gcc2 internal prototype to avoid an error.  */
8116 #ifdef __cplusplus
8117 extern "C"
8118 #endif
8119 /* We use char because int might match the return type of a gcc2
8120    builtin and then its argument prototype would still apply.  */
8121 char dld_link ();
8122 int
8123 main ()
8124 {
8125 dld_link ();
8126   ;
8127   return 0;
8128 }
8129 _ACEOF
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8132   (eval $ac_link) 2>&5
8133   ac_status=$?
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); } &&
8136          { ac_try='test -s conftest$ac_exeext'
8137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138   (eval $ac_try) 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); }; }; then
8142   ac_cv_lib_dld_dld_link=yes
8143 else
8144   echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147 ac_cv_lib_dld_dld_link=no
8148 fi
8149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8150 LIBS=$ac_check_lib_save_LIBS
8151 fi
8152 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8153 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8154 if test $ac_cv_lib_dld_dld_link = yes; then
8155   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8156 fi
8157
8158
8159 fi
8160
8161
8162 fi
8163
8164
8165 fi
8166
8167
8168 fi
8169
8170
8171 fi
8172
8173     ;;
8174   esac
8175
8176   if test "x$lt_cv_dlopen" != xno; then
8177     enable_dlopen=yes
8178   else
8179     enable_dlopen=no
8180   fi
8181
8182   case $lt_cv_dlopen in
8183   dlopen)
8184     save_CPPFLAGS="$CPPFLAGS"
8185     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8186
8187     save_LDFLAGS="$LDFLAGS"
8188     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8189
8190     save_LIBS="$LIBS"
8191     LIBS="$lt_cv_dlopen_libs $LIBS"
8192
8193     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8194 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8195 if test "${lt_cv_dlopen_self+set}" = set; then
8196   echo $ECHO_N "(cached) $ECHO_C" >&6
8197 else
8198           if test "$cross_compiling" = yes; then :
8199   lt_cv_dlopen_self=cross
8200 else
8201   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8202   lt_status=$lt_dlunknown
8203   cat > conftest.$ac_ext <<EOF
8204 #line 8204 "configure"
8205 #include "confdefs.h"
8206
8207 #if HAVE_DLFCN_H
8208 #include <dlfcn.h>
8209 #endif
8210
8211 #include <stdio.h>
8212
8213 #ifdef RTLD_GLOBAL
8214 #  define LT_DLGLOBAL           RTLD_GLOBAL
8215 #else
8216 #  ifdef DL_GLOBAL
8217 #    define LT_DLGLOBAL         DL_GLOBAL
8218 #  else
8219 #    define LT_DLGLOBAL         0
8220 #  endif
8221 #endif
8222
8223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8224    find out it does not work in some platform. */
8225 #ifndef LT_DLLAZY_OR_NOW
8226 #  ifdef RTLD_LAZY
8227 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8228 #  else
8229 #    ifdef DL_LAZY
8230 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8231 #    else
8232 #      ifdef RTLD_NOW
8233 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8234 #      else
8235 #        ifdef DL_NOW
8236 #          define LT_DLLAZY_OR_NOW      DL_NOW
8237 #        else
8238 #          define LT_DLLAZY_OR_NOW      0
8239 #        endif
8240 #      endif
8241 #    endif
8242 #  endif
8243 #endif
8244
8245 #ifdef __cplusplus
8246 extern "C" void exit (int);
8247 #endif
8248
8249 void fnord() { int i=42;}
8250 int main ()
8251 {
8252   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8253   int status = $lt_dlunknown;
8254
8255   if (self)
8256     {
8257       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8258       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8259       /* dlclose (self); */
8260     }
8261
8262     exit (status);
8263 }
8264 EOF
8265   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266   (eval $ac_link) 2>&5
8267   ac_status=$?
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8270     (./conftest; exit; ) 2>/dev/null
8271     lt_status=$?
8272     case x$lt_status in
8273       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8274       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8275       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8276     esac
8277   else :
8278     # compilation failed
8279     lt_cv_dlopen_self=no
8280   fi
8281 fi
8282 rm -fr conftest*
8283
8284
8285 fi
8286 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8288
8289     if test "x$lt_cv_dlopen_self" = xyes; then
8290       LDFLAGS="$LDFLAGS $link_static_flag"
8291       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8293 if test "${lt_cv_dlopen_self_static+set}" = set; then
8294   echo $ECHO_N "(cached) $ECHO_C" >&6
8295 else
8296           if test "$cross_compiling" = yes; then :
8297   lt_cv_dlopen_self_static=cross
8298 else
8299   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8300   lt_status=$lt_dlunknown
8301   cat > conftest.$ac_ext <<EOF
8302 #line 8302 "configure"
8303 #include "confdefs.h"
8304
8305 #if HAVE_DLFCN_H
8306 #include <dlfcn.h>
8307 #endif
8308
8309 #include <stdio.h>
8310
8311 #ifdef RTLD_GLOBAL
8312 #  define LT_DLGLOBAL           RTLD_GLOBAL
8313 #else
8314 #  ifdef DL_GLOBAL
8315 #    define LT_DLGLOBAL         DL_GLOBAL
8316 #  else
8317 #    define LT_DLGLOBAL         0
8318 #  endif
8319 #endif
8320
8321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8322    find out it does not work in some platform. */
8323 #ifndef LT_DLLAZY_OR_NOW
8324 #  ifdef RTLD_LAZY
8325 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8326 #  else
8327 #    ifdef DL_LAZY
8328 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8329 #    else
8330 #      ifdef RTLD_NOW
8331 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8332 #      else
8333 #        ifdef DL_NOW
8334 #          define LT_DLLAZY_OR_NOW      DL_NOW
8335 #        else
8336 #          define LT_DLLAZY_OR_NOW      0
8337 #        endif
8338 #      endif
8339 #    endif
8340 #  endif
8341 #endif
8342
8343 #ifdef __cplusplus
8344 extern "C" void exit (int);
8345 #endif
8346
8347 void fnord() { int i=42;}
8348 int main ()
8349 {
8350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8351   int status = $lt_dlunknown;
8352
8353   if (self)
8354     {
8355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8356       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8357       /* dlclose (self); */
8358     }
8359
8360     exit (status);
8361 }
8362 EOF
8363   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8364   (eval $ac_link) 2>&5
8365   ac_status=$?
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8368     (./conftest; exit; ) 2>/dev/null
8369     lt_status=$?
8370     case x$lt_status in
8371       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8372       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8373       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8374     esac
8375   else :
8376     # compilation failed
8377     lt_cv_dlopen_self_static=no
8378   fi
8379 fi
8380 rm -fr conftest*
8381
8382
8383 fi
8384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8386     fi
8387
8388     CPPFLAGS="$save_CPPFLAGS"
8389     LDFLAGS="$save_LDFLAGS"
8390     LIBS="$save_LIBS"
8391     ;;
8392   esac
8393
8394   case $lt_cv_dlopen_self in
8395   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8396   *) enable_dlopen_self=unknown ;;
8397   esac
8398
8399   case $lt_cv_dlopen_self_static in
8400   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8401   *) enable_dlopen_self_static=unknown ;;
8402   esac
8403 fi
8404
8405
8406 # Report which librarie types wil actually be built
8407 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8409 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8410 echo "${ECHO_T}$can_build_shared" >&6
8411
8412 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8414 test "$can_build_shared" = "no" && enable_shared=no
8415
8416 # On AIX, shared libraries and static libraries use the same namespace, and
8417 # are all built from PIC.
8418 case "$host_os" in
8419 aix3*)
8420   test "$enable_shared" = yes && enable_static=no
8421   if test -n "$RANLIB"; then
8422     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8423     postinstall_cmds='$RANLIB $lib'
8424   fi
8425   ;;
8426
8427 aix4*)
8428   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8429     test "$enable_shared" = yes && enable_static=no
8430   fi
8431   ;;
8432   darwin* | rhapsody*)
8433   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8434     archive_cmds_need_lc=no
8435     case "$host_os" in
8436     rhapsody* | darwin1.[012])
8437       allow_undefined_flag='-undefined suppress'
8438       ;;
8439     *) # Darwin 1.3 on
8440       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8441       ;;
8442     esac
8443     # FIXME: Relying on posixy $() will cause problems for
8444     #        cross-compilation, but unfortunately the echo tests do not
8445     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8446     #          `"' quotes if we put them in here... so don't!
8447                 output_verbose_link_cmd='echo'
8448     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8449     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8450     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8451                   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}'
8452                   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}'
8453     hardcode_direct=no
8454     hardcode_automatic=yes
8455     hardcode_shlibpath_var=unsupported
8456     whole_archive_flag_spec='-all_load $convenience'
8457     link_all_deplibs=yes
8458     fi
8459     ;;
8460 esac
8461 echo "$as_me:$LINENO: result: $enable_shared" >&5
8462 echo "${ECHO_T}$enable_shared" >&6
8463
8464 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8465 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8466 # Make sure either enable_shared or enable_static is yes.
8467 test "$enable_shared" = yes || enable_static=yes
8468 echo "$as_me:$LINENO: result: $enable_static" >&5
8469 echo "${ECHO_T}$enable_static" >&6
8470
8471 # The else clause should only fire when bootstrapping the
8472 # libtool distribution, otherwise you forgot to ship ltmain.sh
8473 # with your package, and you will get complaints that there are
8474 # no rules to generate ltmain.sh.
8475 if test -f "$ltmain"; then
8476   # See if we are running on zsh, and set the options which allow our commands through
8477   # without removal of \ escapes.
8478   if test -n "${ZSH_VERSION+set}" ; then
8479     setopt NO_GLOB_SUBST
8480   fi
8481   # Now quote all the things that may contain metacharacters while being
8482   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8483   # variables and quote the copies for generation of the libtool script.
8484   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8485     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8486     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8487     deplibs_check_method reload_flag reload_cmds need_locks \
8488     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8489     lt_cv_sys_global_symbol_to_c_name_address \
8490     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8491     old_postinstall_cmds old_postuninstall_cmds \
8492     compiler \
8493     CC \
8494     LD \
8495     lt_prog_compiler_wl \
8496     lt_prog_compiler_pic \
8497     lt_prog_compiler_static \
8498     lt_prog_compiler_no_builtin_flag \
8499     export_dynamic_flag_spec \
8500     thread_safe_flag_spec \
8501     whole_archive_flag_spec \
8502     enable_shared_with_static_runtimes \
8503     old_archive_cmds \
8504     old_archive_from_new_cmds \
8505     predep_objects \
8506     postdep_objects \
8507     predeps \
8508     postdeps \
8509     compiler_lib_search_path \
8510     archive_cmds \
8511     archive_expsym_cmds \
8512     postinstall_cmds \
8513     postuninstall_cmds \
8514     old_archive_from_expsyms_cmds \
8515     allow_undefined_flag \
8516     no_undefined_flag \
8517     export_symbols_cmds \
8518     hardcode_libdir_flag_spec \
8519     hardcode_libdir_flag_spec_ld \
8520     hardcode_libdir_separator \
8521     hardcode_automatic \
8522     module_cmds \
8523     module_expsym_cmds \
8524     lt_cv_prog_compiler_c_o \
8525     exclude_expsyms \
8526     include_expsyms; do
8527
8528     case $var in
8529     old_archive_cmds | \
8530     old_archive_from_new_cmds | \
8531     archive_cmds | \
8532     archive_expsym_cmds | \
8533     module_cmds | \
8534     module_expsym_cmds | \
8535     old_archive_from_expsyms_cmds | \
8536     export_symbols_cmds | \
8537     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8538     postinstall_cmds | postuninstall_cmds | \
8539     old_postinstall_cmds | old_postuninstall_cmds | \
8540     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8541       # Double-quote double-evaled strings.
8542       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8543       ;;
8544     *)
8545       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8546       ;;
8547     esac
8548   done
8549
8550   case $lt_echo in
8551   *'\$0 --fallback-echo"')
8552     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8553     ;;
8554   esac
8555
8556 cfgfile="${ofile}T"
8557   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8558   $rm -f "$cfgfile"
8559   { echo "$as_me:$LINENO: creating $ofile" >&5
8560 echo "$as_me: creating $ofile" >&6;}
8561
8562   cat <<__EOF__ >> "$cfgfile"
8563 #! $SHELL
8564
8565 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8566 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8567 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8568 #
8569 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8570 # Free Software Foundation, Inc.
8571 #
8572 # This file is part of GNU Libtool:
8573 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8574 #
8575 # This program is free software; you can redistribute it and/or modify
8576 # it under the terms of the GNU General Public License as published by
8577 # the Free Software Foundation; either version 2 of the License, or
8578 # (at your option) any later version.
8579 #
8580 # This program is distributed in the hope that it will be useful, but
8581 # WITHOUT ANY WARRANTY; without even the implied warranty of
8582 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8583 # General Public License for more details.
8584 #
8585 # You should have received a copy of the GNU General Public License
8586 # along with this program; if not, write to the Free Software
8587 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8588 #
8589 # As a special exception to the GNU General Public License, if you
8590 # distribute this file as part of a program that contains a
8591 # configuration script generated by Autoconf, you may include it under
8592 # the same distribution terms that you use for the rest of that program.
8593
8594 # A sed program that does not truncate output.
8595 SED=$lt_SED
8596
8597 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8598 Xsed="$SED -e s/^X//"
8599
8600 # The HP-UX ksh and POSIX shell print the target directory to stdout
8601 # if CDPATH is set.
8602 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8603
8604 # The names of the tagged configurations supported by this script.
8605 available_tags=
8606
8607 # ### BEGIN LIBTOOL CONFIG
8608
8609 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8610
8611 # Shell to use when invoking shell scripts.
8612 SHELL=$lt_SHELL
8613
8614 # Whether or not to build shared libraries.
8615 build_libtool_libs=$enable_shared
8616
8617 # Whether or not to build static libraries.
8618 build_old_libs=$enable_static
8619
8620 # Whether or not to add -lc for building shared libraries.
8621 build_libtool_need_lc=$archive_cmds_need_lc
8622
8623 # Whether or not to disallow shared libs when runtime libs are static
8624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8625
8626 # Whether or not to optimize for fast installation.
8627 fast_install=$enable_fast_install
8628
8629 # The host system.
8630 host_alias=$host_alias
8631 host=$host
8632
8633 # An echo program that does not interpret backslashes.
8634 echo=$lt_echo
8635
8636 # The archiver.
8637 AR=$lt_AR
8638 AR_FLAGS=$lt_AR_FLAGS
8639
8640 # A C compiler.
8641 LTCC=$lt_LTCC
8642
8643 # A language-specific compiler.
8644 CC=$lt_compiler
8645
8646 # Is the compiler the GNU C compiler?
8647 with_gcc=$GCC
8648
8649 # An ERE matcher.
8650 EGREP=$lt_EGREP
8651
8652 # The linker used to build libraries.
8653 LD=$lt_LD
8654
8655 # Whether we need hard or soft links.
8656 LN_S=$lt_LN_S
8657
8658 # A BSD-compatible nm program.
8659 NM=$lt_NM
8660
8661 # A symbol stripping program
8662 STRIP=$STRIP
8663
8664 # Used to examine libraries when file_magic_cmd begins "file"
8665 MAGIC_CMD=$MAGIC_CMD
8666
8667 # Used on cygwin: DLL creation program.
8668 DLLTOOL="$DLLTOOL"
8669
8670 # Used on cygwin: object dumper.
8671 OBJDUMP="$OBJDUMP"
8672
8673 # Used on cygwin: assembler.
8674 AS="$AS"
8675
8676 # The name of the directory that contains temporary libtool files.
8677 objdir=$objdir
8678
8679 # How to create reloadable object files.
8680 reload_flag=$lt_reload_flag
8681 reload_cmds=$lt_reload_cmds
8682
8683 # How to pass a linker flag through the compiler.
8684 wl=$lt_lt_prog_compiler_wl
8685
8686 # Object file suffix (normally "o").
8687 objext="$ac_objext"
8688
8689 # Old archive suffix (normally "a").
8690 libext="$libext"
8691
8692 # Shared library suffix (normally ".so").
8693 shrext='$shrext'
8694
8695 # Executable file suffix (normally "").
8696 exeext="$exeext"
8697
8698 # Additional compiler flags for building library objects.
8699 pic_flag=$lt_lt_prog_compiler_pic
8700 pic_mode=$pic_mode
8701
8702 # What is the maximum length of a command?
8703 max_cmd_len=$lt_cv_sys_max_cmd_len
8704
8705 # Does compiler simultaneously support -c and -o options?
8706 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8707
8708 # Must we lock files when doing compilation ?
8709 need_locks=$lt_need_locks
8710
8711 # Do we need the lib prefix for modules?
8712 need_lib_prefix=$need_lib_prefix
8713
8714 # Do we need a version for libraries?
8715 need_version=$need_version
8716
8717 # Whether dlopen is supported.
8718 dlopen_support=$enable_dlopen
8719
8720 # Whether dlopen of programs is supported.
8721 dlopen_self=$enable_dlopen_self
8722
8723 # Whether dlopen of statically linked programs is supported.
8724 dlopen_self_static=$enable_dlopen_self_static
8725
8726 # Compiler flag to prevent dynamic linking.
8727 link_static_flag=$lt_lt_prog_compiler_static
8728
8729 # Compiler flag to turn off builtin functions.
8730 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8731
8732 # Compiler flag to allow reflexive dlopens.
8733 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8734
8735 # Compiler flag to generate shared objects directly from archives.
8736 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8737
8738 # Compiler flag to generate thread-safe objects.
8739 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8740
8741 # Library versioning type.
8742 version_type=$version_type
8743
8744 # Format of library name prefix.
8745 libname_spec=$lt_libname_spec
8746
8747 # List of archive names.  First name is the real one, the rest are links.
8748 # The last name is the one that the linker finds with -lNAME.
8749 library_names_spec=$lt_library_names_spec
8750
8751 # The coded name of the library, if different from the real name.
8752 soname_spec=$lt_soname_spec
8753
8754 # Commands used to build and install an old-style archive.
8755 RANLIB=$lt_RANLIB
8756 old_archive_cmds=$lt_old_archive_cmds
8757 old_postinstall_cmds=$lt_old_postinstall_cmds
8758 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8759
8760 # Create an old-style archive from a shared archive.
8761 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8762
8763 # Create a temporary old-style archive to link instead of a shared archive.
8764 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8765
8766 # Commands used to build and install a shared archive.
8767 archive_cmds=$lt_archive_cmds
8768 archive_expsym_cmds=$lt_archive_expsym_cmds
8769 postinstall_cmds=$lt_postinstall_cmds
8770 postuninstall_cmds=$lt_postuninstall_cmds
8771
8772 # Commands used to build a loadable module (assumed same as above if empty)
8773 module_cmds=$lt_module_cmds
8774 module_expsym_cmds=$lt_module_expsym_cmds
8775
8776 # Commands to strip libraries.
8777 old_striplib=$lt_old_striplib
8778 striplib=$lt_striplib
8779
8780 # Dependencies to place before the objects being linked to create a
8781 # shared library.
8782 predep_objects=$lt_predep_objects
8783
8784 # Dependencies to place after the objects being linked to create a
8785 # shared library.
8786 postdep_objects=$lt_postdep_objects
8787
8788 # Dependencies to place before the objects being linked to create a
8789 # shared library.
8790 predeps=$lt_predeps
8791
8792 # Dependencies to place after the objects being linked to create a
8793 # shared library.
8794 postdeps=$lt_postdeps
8795
8796 # The library search path used internally by the compiler when linking
8797 # a shared library.
8798 compiler_lib_search_path=$lt_compiler_lib_search_path
8799
8800 # Method to check whether dependent libraries are shared objects.
8801 deplibs_check_method=$lt_deplibs_check_method
8802
8803 # Command to use when deplibs_check_method == file_magic.
8804 file_magic_cmd=$lt_file_magic_cmd
8805
8806 # Flag that allows shared libraries with undefined symbols to be built.
8807 allow_undefined_flag=$lt_allow_undefined_flag
8808
8809 # Flag that forces no undefined symbols.
8810 no_undefined_flag=$lt_no_undefined_flag
8811
8812 # Commands used to finish a libtool library installation in a directory.
8813 finish_cmds=$lt_finish_cmds
8814
8815 # Same as above, but a single script fragment to be evaled but not shown.
8816 finish_eval=$lt_finish_eval
8817
8818 # Take the output of nm and produce a listing of raw symbols and C names.
8819 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8820
8821 # Transform the output of nm in a proper C declaration
8822 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8823
8824 # Transform the output of nm in a C name address pair
8825 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8826
8827 # This is the shared library runtime path variable.
8828 runpath_var=$runpath_var
8829
8830 # This is the shared library path variable.
8831 shlibpath_var=$shlibpath_var
8832
8833 # Is shlibpath searched before the hard-coded library search path?
8834 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8835
8836 # How to hardcode a shared library path into an executable.
8837 hardcode_action=$hardcode_action
8838
8839 # Whether we should hardcode library paths into libraries.
8840 hardcode_into_libs=$hardcode_into_libs
8841
8842 # Flag to hardcode \$libdir into a binary during linking.
8843 # This must work even if \$libdir does not exist.
8844 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8845
8846 # If ld is used when linking, flag to hardcode \$libdir into
8847 # a binary during linking. This must work even if \$libdir does
8848 # not exist.
8849 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8850
8851 # Whether we need a single -rpath flag with a separated argument.
8852 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8853
8854 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8855 # resulting binary.
8856 hardcode_direct=$hardcode_direct
8857
8858 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8859 # resulting binary.
8860 hardcode_minus_L=$hardcode_minus_L
8861
8862 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8863 # the resulting binary.
8864 hardcode_shlibpath_var=$hardcode_shlibpath_var
8865
8866 # Set to yes if building a shared library automatically hardcodes DIR into the library
8867 # and all subsequent libraries and executables linked against it.
8868 hardcode_automatic=$hardcode_automatic
8869
8870 # Variables whose values should be saved in libtool wrapper scripts and
8871 # restored at relink time.
8872 variables_saved_for_relink="$variables_saved_for_relink"
8873
8874 # Whether libtool must link a program against all its dependency libraries.
8875 link_all_deplibs=$link_all_deplibs
8876
8877 # Compile-time system search path for libraries
8878 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8879
8880 # Run-time system search path for libraries
8881 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8882
8883 # Fix the shell variable \$srcfile for the compiler.
8884 fix_srcfile_path="$fix_srcfile_path"
8885
8886 # Set to yes if exported symbols are required.
8887 always_export_symbols=$always_export_symbols
8888
8889 # The commands to list exported symbols.
8890 export_symbols_cmds=$lt_export_symbols_cmds
8891
8892 # The commands to extract the exported symbol list from a shared archive.
8893 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8894
8895 # Symbols that should not be listed in the preloaded symbols.
8896 exclude_expsyms=$lt_exclude_expsyms
8897
8898 # Symbols that must always be exported.
8899 include_expsyms=$lt_include_expsyms
8900
8901 # ### END LIBTOOL CONFIG
8902
8903 __EOF__
8904
8905
8906   case $host_os in
8907   aix3*)
8908     cat <<\EOF >> "$cfgfile"
8909
8910 # AIX sometimes has problems with the GCC collect2 program.  For some
8911 # reason, if we set the COLLECT_NAMES environment variable, the problems
8912 # vanish in a puff of smoke.
8913 if test "X${COLLECT_NAMES+set}" != Xset; then
8914   COLLECT_NAMES=
8915   export COLLECT_NAMES
8916 fi
8917 EOF
8918     ;;
8919   esac
8920
8921   # We use sed instead of cat because bash on DJGPP gets confused if
8922   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8923   # text mode, it properly converts lines to CR/LF.  This bash problem
8924   # is reportedly fixed, but why not run on old versions too?
8925   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8926
8927   mv -f "$cfgfile" "$ofile" || \
8928     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8929   chmod +x "$ofile"
8930
8931 else
8932   # If there is no Makefile yet, we rely on a make rule to execute
8933   # `config.status --recheck' to rerun these tests and create the
8934   # libtool script then.
8935   test -f Makefile && make "$ltmain"
8936 fi
8937
8938
8939 ac_ext=c
8940 ac_cpp='$CPP $CPPFLAGS'
8941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8944
8945 CC="$lt_save_CC"
8946
8947
8948 # Check whether --with-tags or --without-tags was given.
8949 if test "${with_tags+set}" = set; then
8950   withval="$with_tags"
8951   tagnames="$withval"
8952 fi;
8953
8954 if test -f "$ltmain" && test -n "$tagnames"; then
8955   if test ! -f "${ofile}"; then
8956     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8957 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8958   fi
8959
8960   if test -z "$LTCC"; then
8961     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8962     if test -z "$LTCC"; then
8963       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8964 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8965     else
8966       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8967 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8968     fi
8969   fi
8970
8971   # Extract list of available tagged configurations in $ofile.
8972   # Note that this assumes the entire list is on one line.
8973   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8974
8975   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8976   for tagname in $tagnames; do
8977     IFS="$lt_save_ifs"
8978     # Check whether tagname contains only valid characters
8979     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8980     "") ;;
8981     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8982 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8983    { (exit 1); exit 1; }; }
8984         ;;
8985     esac
8986
8987     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8988     then
8989       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8990 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8991    { (exit 1); exit 1; }; }
8992     fi
8993
8994     # Update the list of available tags.
8995     if test -n "$tagname"; then
8996       echo appending configuration tag \"$tagname\" to $ofile
8997
8998       case $tagname in
8999       CXX)
9000         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9001           ac_ext=cc
9002 ac_cpp='$CXXCPP $CPPFLAGS'
9003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9006
9007
9008
9009
9010 archive_cmds_need_lc_CXX=no
9011 allow_undefined_flag_CXX=
9012 always_export_symbols_CXX=no
9013 archive_expsym_cmds_CXX=
9014 export_dynamic_flag_spec_CXX=
9015 hardcode_direct_CXX=no
9016 hardcode_libdir_flag_spec_CXX=
9017 hardcode_libdir_flag_spec_ld_CXX=
9018 hardcode_libdir_separator_CXX=
9019 hardcode_minus_L_CXX=no
9020 hardcode_automatic_CXX=no
9021 module_cmds_CXX=
9022 module_expsym_cmds_CXX=
9023 link_all_deplibs_CXX=unknown
9024 old_archive_cmds_CXX=$old_archive_cmds
9025 no_undefined_flag_CXX=
9026 whole_archive_flag_spec_CXX=
9027 enable_shared_with_static_runtimes_CXX=no
9028
9029 # Dependencies to place before and after the object being linked:
9030 predep_objects_CXX=
9031 postdep_objects_CXX=
9032 predeps_CXX=
9033 postdeps_CXX=
9034 compiler_lib_search_path_CXX=
9035
9036 # Source file extension for C++ test sources.
9037 ac_ext=cc
9038
9039 # Object file extension for compiled C++ test sources.
9040 objext=o
9041 objext_CXX=$objext
9042
9043 # Code to be used in simple compile tests
9044 lt_simple_compile_test_code="int some_variable = 0;\n"
9045
9046 # Code to be used in simple link tests
9047 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9048
9049 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9050
9051 # If no C compiler was specified, use CC.
9052 LTCC=${LTCC-"$CC"}
9053
9054 # Allow CC to be a program name with arguments.
9055 compiler=$CC
9056
9057
9058 # Allow CC to be a program name with arguments.
9059 lt_save_CC=$CC
9060 lt_save_LD=$LD
9061 lt_save_GCC=$GCC
9062 GCC=$GXX
9063 lt_save_with_gnu_ld=$with_gnu_ld
9064 lt_save_path_LD=$lt_cv_path_LD
9065 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9066   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9067 else
9068   unset lt_cv_prog_gnu_ld
9069 fi
9070 if test -n "${lt_cv_path_LDCXX+set}"; then
9071   lt_cv_path_LD=$lt_cv_path_LDCXX
9072 else
9073   unset lt_cv_path_LD
9074 fi
9075 test -z "${LDCXX+set}" || LD=$LDCXX
9076 CC=${CXX-"c++"}
9077 compiler=$CC
9078 compiler_CXX=$CC
9079 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9080
9081 # We don't want -fno-exception wen compiling C++ code, so set the
9082 # no_builtin_flag separately
9083 if test "$GXX" = yes; then
9084   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9085 else
9086   lt_prog_compiler_no_builtin_flag_CXX=
9087 fi
9088
9089 if test "$GXX" = yes; then
9090   # Set up default GNU C++ configuration
9091
9092
9093 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9094 if test "${with_gnu_ld+set}" = set; then
9095   withval="$with_gnu_ld"
9096   test "$withval" = no || with_gnu_ld=yes
9097 else
9098   with_gnu_ld=no
9099 fi;
9100 ac_prog=ld
9101 if test "$GCC" = yes; then
9102   # Check if gcc -print-prog-name=ld gives a path.
9103   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9104 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9105   case $host in
9106   *-*-mingw*)
9107     # gcc leaves a trailing carriage return which upsets mingw
9108     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9109   *)
9110     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9111   esac
9112   case $ac_prog in
9113     # Accept absolute paths.
9114     [\\/]* | ?:[\\/]*)
9115       re_direlt='/[^/][^/]*/\.\./'
9116       # Canonicalize the path of ld
9117       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9118       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9119         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9120       done
9121       test -z "$LD" && LD="$ac_prog"
9122       ;;
9123   "")
9124     # If it fails, then pretend we aren't using GCC.
9125     ac_prog=ld
9126     ;;
9127   *)
9128     # If it is relative, then search for the first ld in PATH.
9129     with_gnu_ld=unknown
9130     ;;
9131   esac
9132 elif test "$with_gnu_ld" = yes; then
9133   echo "$as_me:$LINENO: checking for GNU ld" >&5
9134 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9135 else
9136   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9137 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9138 fi
9139 if test "${lt_cv_path_LD+set}" = set; then
9140   echo $ECHO_N "(cached) $ECHO_C" >&6
9141 else
9142   if test -z "$LD"; then
9143   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9144   for ac_dir in $PATH; do
9145     IFS="$lt_save_ifs"
9146     test -z "$ac_dir" && ac_dir=.
9147     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9148       lt_cv_path_LD="$ac_dir/$ac_prog"
9149       # Check to see if the program is GNU ld.  I'd rather use --version,
9150       # but apparently some GNU ld's only accept -v.
9151       # Break only if it was the GNU/non-GNU ld that we prefer.
9152       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9153       *GNU* | *'with BFD'*)
9154         test "$with_gnu_ld" != no && break
9155         ;;
9156       *)
9157         test "$with_gnu_ld" != yes && break
9158         ;;
9159       esac
9160     fi
9161   done
9162   IFS="$lt_save_ifs"
9163 else
9164   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9165 fi
9166 fi
9167
9168 LD="$lt_cv_path_LD"
9169 if test -n "$LD"; then
9170   echo "$as_me:$LINENO: result: $LD" >&5
9171 echo "${ECHO_T}$LD" >&6
9172 else
9173   echo "$as_me:$LINENO: result: no" >&5
9174 echo "${ECHO_T}no" >&6
9175 fi
9176 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9177 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9178    { (exit 1); exit 1; }; }
9179 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9180 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9181 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9185 case `"$LD" -v 2>&1 </dev/null` in
9186 *GNU* | *'with BFD'*)
9187   lt_cv_prog_gnu_ld=yes
9188   ;;
9189 *)
9190   lt_cv_prog_gnu_ld=no
9191   ;;
9192 esac
9193 fi
9194 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9195 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9196 with_gnu_ld=$lt_cv_prog_gnu_ld
9197
9198
9199
9200   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9201   # archiving commands below assume that GNU ld is being used.
9202   if test "$with_gnu_ld" = yes; then
9203     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204     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'
9205
9206     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9207     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9208
9209     # If archive_cmds runs LD, not CC, wlarc should be empty
9210     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9211     #     investigate it a little bit more. (MM)
9212     wlarc='${wl}'
9213
9214     # ancient GNU ld didn't support --whole-archive et. al.
9215     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9216         grep 'no-whole-archive' > /dev/null; then
9217       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9218     else
9219       whole_archive_flag_spec_CXX=
9220     fi
9221   else
9222     with_gnu_ld=no
9223     wlarc=
9224
9225     # A generic and very simple default shared library creation
9226     # command for GNU C++ for the case where it uses the native
9227     # linker, instead of GNU ld.  If possible, this setting should
9228     # overridden to take advantage of the native linker features on
9229     # the platform it is being used on.
9230     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9231   fi
9232
9233   # Commands to make compiler produce verbose output that lists
9234   # what "hidden" libraries, object files and flags are used when
9235   # linking a shared library.
9236   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9237
9238 else
9239   GXX=no
9240   with_gnu_ld=no
9241   wlarc=
9242 fi
9243
9244 # PORTME: fill in a description of your system's C++ link characteristics
9245 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9246 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9247 ld_shlibs_CXX=yes
9248 case $host_os in
9249   aix3*)
9250     # FIXME: insert proper C++ library support
9251     ld_shlibs_CXX=no
9252     ;;
9253   aix4* | aix5*)
9254     if test "$host_cpu" = ia64; then
9255       # On IA64, the linker does run time linking by default, so we don't
9256       # have to do anything special.
9257       aix_use_runtimelinking=no
9258       exp_sym_flag='-Bexport'
9259       no_entry_flag=""
9260     else
9261       aix_use_runtimelinking=no
9262
9263       # Test if we are trying to use run time linking or normal
9264       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9265       # need to do runtime linking.
9266       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9267         for ld_flag in $LDFLAGS; do
9268           case $ld_flag in
9269           *-brtl*)
9270             aix_use_runtimelinking=yes
9271             break
9272             ;;
9273           esac
9274         done
9275       esac
9276
9277       exp_sym_flag='-bexport'
9278       no_entry_flag='-bnoentry'
9279     fi
9280
9281     # When large executables or shared objects are built, AIX ld can
9282     # have problems creating the table of contents.  If linking a library
9283     # or program results in "error TOC overflow" add -mminimal-toc to
9284     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9285     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9286
9287     archive_cmds_CXX=''
9288     hardcode_direct_CXX=yes
9289     hardcode_libdir_separator_CXX=':'
9290     link_all_deplibs_CXX=yes
9291
9292     if test "$GXX" = yes; then
9293       case $host_os in aix4.012|aix4.012.*)
9294       # We only want to do this on AIX 4.2 and lower, the check
9295       # below for broken collect2 doesn't work under 4.3+
9296         collect2name=`${CC} -print-prog-name=collect2`
9297         if test -f "$collect2name" && \
9298            strings "$collect2name" | grep resolve_lib_name >/dev/null
9299         then
9300           # We have reworked collect2
9301           hardcode_direct_CXX=yes
9302         else
9303           # We have old collect2
9304           hardcode_direct_CXX=unsupported
9305           # It fails to find uninstalled libraries when the uninstalled
9306           # path is not listed in the libpath.  Setting hardcode_minus_L
9307           # to unsupported forces relinking
9308           hardcode_minus_L_CXX=yes
9309           hardcode_libdir_flag_spec_CXX='-L$libdir'
9310           hardcode_libdir_separator_CXX=
9311         fi
9312       esac
9313       shared_flag='-shared'
9314     else
9315       # not using gcc
9316       if test "$host_cpu" = ia64; then
9317         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9318         # chokes on -Wl,-G. The following line is correct:
9319         shared_flag='-G'
9320       else
9321         if test "$aix_use_runtimelinking" = yes; then
9322           shared_flag='${wl}-G'
9323         else
9324           shared_flag='${wl}-bM:SRE'
9325         fi
9326       fi
9327     fi
9328
9329     # It seems that -bexpall does not export symbols beginning with
9330     # underscore (_), so it is better to generate a list of symbols to export.
9331     always_export_symbols_CXX=yes
9332     if test "$aix_use_runtimelinking" = yes; then
9333       # Warning - without using the other runtime loading flags (-brtl),
9334       # -berok will link without error, but may produce a broken library.
9335       allow_undefined_flag_CXX='-berok'
9336       # Determine the default libpath from the value encoded in an empty executable.
9337       cat >conftest.$ac_ext <<_ACEOF
9338 #line $LINENO "configure"
9339 /* confdefs.h.  */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h.  */
9344
9345 int
9346 main ()
9347 {
9348
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 rm -f conftest.$ac_objext conftest$ac_exeext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355   (eval $ac_link) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } &&
9359          { ac_try='test -s conftest$ac_exeext'
9360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361   (eval $ac_try) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; }; then
9365
9366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9367 }'`
9368 # Check for a 64-bit object if we didn't find anything.
9369 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; }
9370 }'`; fi
9371 else
9372   echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375 fi
9376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9378
9379       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9380
9381       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"
9382      else
9383       if test "$host_cpu" = ia64; then
9384         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9385         allow_undefined_flag_CXX="-z nodefs"
9386         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"
9387       else
9388         # Determine the default libpath from the value encoded in an empty executable.
9389         cat >conftest.$ac_ext <<_ACEOF
9390 #line $LINENO "configure"
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396
9397 int
9398 main ()
9399 {
9400
9401   ;
9402   return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407   (eval $ac_link) 2>&5
9408   ac_status=$?
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); } &&
9411          { ac_try='test -s conftest$ac_exeext'
9412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413   (eval $ac_try) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); }; }; then
9417
9418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9419 }'`
9420 # Check for a 64-bit object if we didn't find anything.
9421 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; }
9422 }'`; fi
9423 else
9424   echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9426
9427 fi
9428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9430
9431         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9432         # Warning - without using the other run time loading flags,
9433         # -berok will link without error, but may produce a broken library.
9434         no_undefined_flag_CXX=' ${wl}-bernotok'
9435         allow_undefined_flag_CXX=' ${wl}-berok'
9436         # -bexpall does not export symbols beginning with underscore (_)
9437         always_export_symbols_CXX=yes
9438         # Exported symbols can be pulled into shared objects from archives
9439         whole_archive_flag_spec_CXX=' '
9440         archive_cmds_need_lc_CXX=yes
9441         # This is similar to how AIX traditionally builds it's shared libraries.
9442         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'
9443       fi
9444     fi
9445     ;;
9446   chorus*)
9447     case $cc_basename in
9448       *)
9449         # FIXME: insert proper C++ library support
9450         ld_shlibs_CXX=no
9451         ;;
9452     esac
9453     ;;
9454
9455   cygwin* | mingw* | pw32*)
9456     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9457     # as there is no search path for DLLs.
9458     hardcode_libdir_flag_spec_CXX='-L$libdir'
9459     allow_undefined_flag_CXX=unsupported
9460     always_export_symbols_CXX=no
9461     enable_shared_with_static_runtimes_CXX=yes
9462
9463     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9464       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'
9465       # If the export-symbols file already is a .def file (1st line
9466       # is EXPORTS), use it as is; otherwise, prepend...
9467       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9468         cp $export_symbols $output_objdir/$soname.def;
9469       else
9470         echo EXPORTS > $output_objdir/$soname.def;
9471         cat $export_symbols >> $output_objdir/$soname.def;
9472       fi~
9473       $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'
9474     else
9475       ld_shlibs_CXX=no
9476     fi
9477   ;;
9478
9479   darwin* | rhapsody*)
9480    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9481     archive_cmds_need_lc_CXX=no
9482     case "$host_os" in
9483     rhapsody* | darwin1.[012])
9484       allow_undefined_flag_CXX='-undefined suppress'
9485       ;;
9486     *) # Darwin 1.3 on
9487       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9488       ;;
9489     esac
9490         lt_int_apple_cc_single_mod=no
9491         output_verbose_link_cmd='echo'
9492         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9493           lt_int_apple_cc_single_mod=yes
9494         fi
9495         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9496           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9497         else
9498         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'
9499       fi
9500       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9501
9502     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9503       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9504         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}'
9505       else
9506         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}'
9507       fi
9508         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}'
9509     hardcode_direct_CXX=no
9510     hardcode_automatic_CXX=yes
9511     hardcode_shlibpath_var_CXX=unsupported
9512     whole_archive_flag_spec_CXX='-all_load $convenience'
9513     link_all_deplibs_CXX=yes
9514    fi
9515     ;;
9516
9517   dgux*)
9518     case $cc_basename in
9519       ec++)
9520         # FIXME: insert proper C++ library support
9521         ld_shlibs_CXX=no
9522         ;;
9523       ghcx)
9524         # Green Hills C++ Compiler
9525         # FIXME: insert proper C++ library support
9526         ld_shlibs_CXX=no
9527         ;;
9528       *)
9529         # FIXME: insert proper C++ library support
9530         ld_shlibs_CXX=no
9531         ;;
9532     esac
9533     ;;
9534   freebsd12*)
9535     # C++ shared libraries reported to be fairly broken before switch to ELF
9536     ld_shlibs_CXX=no
9537     ;;
9538   freebsd-elf*)
9539     archive_cmds_need_lc_CXX=no
9540     ;;
9541   freebsd*)
9542     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9543     # conventions
9544     ld_shlibs_CXX=yes
9545     ;;
9546   gnu*)
9547     ;;
9548   hpux9*)
9549     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9550     hardcode_libdir_separator_CXX=:
9551     export_dynamic_flag_spec_CXX='${wl}-E'
9552     hardcode_direct_CXX=yes
9553     hardcode_minus_L_CXX=yes # Not in the search PATH,
9554                                 # but as the default
9555                                 # location of the library.
9556
9557     case $cc_basename in
9558     CC)
9559       # FIXME: insert proper C++ library support
9560       ld_shlibs_CXX=no
9561       ;;
9562     aCC)
9563       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'
9564       # Commands to make compiler produce verbose output that lists
9565       # what "hidden" libraries, object files and flags are used when
9566       # linking a shared library.
9567       #
9568       # There doesn't appear to be a way to prevent this compiler from
9569       # explicitly linking system object files so we need to strip them
9570       # from the output so that they don't get included in the library
9571       # dependencies.
9572       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'
9573       ;;
9574     *)
9575       if test "$GXX" = yes; then
9576         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'
9577       else
9578         # FIXME: insert proper C++ library support
9579         ld_shlibs_CXX=no
9580       fi
9581       ;;
9582     esac
9583     ;;
9584   hpux10*|hpux11*)
9585     if test $with_gnu_ld = no; then
9586       case "$host_cpu" in
9587       hppa*64*)
9588         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9589         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9590         hardcode_libdir_separator_CXX=:
9591         ;;
9592       ia64*)
9593         hardcode_libdir_flag_spec_CXX='-L$libdir'
9594         ;;
9595       *)
9596         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9597         hardcode_libdir_separator_CXX=:
9598         export_dynamic_flag_spec_CXX='${wl}-E'
9599         ;;
9600       esac
9601     fi
9602     case "$host_cpu" in
9603     hppa*64*)
9604       hardcode_direct_CXX=no
9605       hardcode_shlibpath_var_CXX=no
9606       ;;
9607     ia64*)
9608       hardcode_direct_CXX=no
9609       hardcode_shlibpath_var_CXX=no
9610       hardcode_minus_L_CXX=yes # Not in the search PATH,
9611                                               # but as the default
9612                                               # location of the library.
9613       ;;
9614     *)
9615       hardcode_direct_CXX=yes
9616       hardcode_minus_L_CXX=yes # Not in the search PATH,
9617                                               # but as the default
9618                                               # location of the library.
9619       ;;
9620     esac
9621
9622     case $cc_basename in
9623       CC)
9624         # FIXME: insert proper C++ library support
9625         ld_shlibs_CXX=no
9626         ;;
9627       aCC)
9628         case "$host_cpu" in
9629         hppa*64*|ia64*)
9630           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9631           ;;
9632         *)
9633           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9634           ;;
9635         esac
9636         # Commands to make compiler produce verbose output that lists
9637         # what "hidden" libraries, object files and flags are used when
9638         # linking a shared library.
9639         #
9640         # There doesn't appear to be a way to prevent this compiler from
9641         # explicitly linking system object files so we need to strip them
9642         # from the output so that they don't get included in the library
9643         # dependencies.
9644         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'
9645         ;;
9646       *)
9647         if test "$GXX" = yes; then
9648           if test $with_gnu_ld = no; then
9649             case "$host_cpu" in
9650             ia64*|hppa*64*)
9651               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9652               ;;
9653             *)
9654               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'
9655               ;;
9656             esac
9657           fi
9658         else
9659           # FIXME: insert proper C++ library support
9660           ld_shlibs_CXX=no
9661         fi
9662         ;;
9663     esac
9664     ;;
9665   irix5* | irix6*)
9666     case $cc_basename in
9667       CC)
9668         # SGI C++
9669         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'
9670
9671         # Archives containing C++ object files must be created using
9672         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9673         # necessary to make sure instantiated templates are included
9674         # in the archive.
9675         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9676         ;;
9677       *)
9678         if test "$GXX" = yes; then
9679           if test "$with_gnu_ld" = no; then
9680             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'
9681           else
9682             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'
9683           fi
9684         fi
9685         link_all_deplibs_CXX=yes
9686         ;;
9687     esac
9688     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9689     hardcode_libdir_separator_CXX=:
9690     ;;
9691   linux*)
9692     case $cc_basename in
9693       KCC)
9694         # Kuck and Associates, Inc. (KAI) C++ Compiler
9695
9696         # KCC will only create a shared library if the output file
9697         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9698         # to its proper name (with version) after linking.
9699         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'
9700         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'
9701         # Commands to make compiler produce verbose output that lists
9702         # what "hidden" libraries, object files and flags are used when
9703         # linking a shared library.
9704         #
9705         # There doesn't appear to be a way to prevent this compiler from
9706         # explicitly linking system object files so we need to strip them
9707         # from the output so that they don't get included in the library
9708         # dependencies.
9709         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'
9710
9711         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9712         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9713
9714         # Archives containing C++ object files must be created using
9715         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9716         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9717         ;;
9718       icpc)
9719         # Intel C++
9720         with_gnu_ld=yes
9721         archive_cmds_need_lc_CXX=no
9722         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723         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'
9724         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9725         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9726         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9727         ;;
9728       cxx)
9729         # Compaq C++
9730         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731         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'
9732
9733         runpath_var=LD_RUN_PATH
9734         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9735         hardcode_libdir_separator_CXX=:
9736
9737         # Commands to make compiler produce verbose output that lists
9738         # what "hidden" libraries, object files and flags are used when
9739         # linking a shared library.
9740         #
9741         # There doesn't appear to be a way to prevent this compiler from
9742         # explicitly linking system object files so we need to strip them
9743         # from the output so that they don't get included in the library
9744         # dependencies.
9745         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'
9746         ;;
9747     esac
9748     ;;
9749   lynxos*)
9750     # FIXME: insert proper C++ library support
9751     ld_shlibs_CXX=no
9752     ;;
9753   m88k*)
9754     # FIXME: insert proper C++ library support
9755     ld_shlibs_CXX=no
9756     ;;
9757   mvs*)
9758     case $cc_basename in
9759       cxx)
9760         # FIXME: insert proper C++ library support
9761         ld_shlibs_CXX=no
9762         ;;
9763       *)
9764         # FIXME: insert proper C++ library support
9765         ld_shlibs_CXX=no
9766         ;;
9767     esac
9768     ;;
9769   netbsd*)
9770     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9771       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9772       wlarc=
9773       hardcode_libdir_flag_spec_CXX='-R$libdir'
9774       hardcode_direct_CXX=yes
9775       hardcode_shlibpath_var_CXX=no
9776     fi
9777     # Workaround some broken pre-1.5 toolchains
9778     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9779     ;;
9780   osf3*)
9781     case $cc_basename in
9782       KCC)
9783         # Kuck and Associates, Inc. (KAI) C++ Compiler
9784
9785         # KCC will only create a shared library if the output file
9786         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9787         # to its proper name (with version) after linking.
9788         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'
9789
9790         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9791         hardcode_libdir_separator_CXX=:
9792
9793         # Archives containing C++ object files must be created using
9794         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9795         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9796
9797         ;;
9798       RCC)
9799         # Rational C++ 2.4.1
9800         # FIXME: insert proper C++ library support
9801         ld_shlibs_CXX=no
9802         ;;
9803       cxx)
9804         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9805         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'
9806
9807         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9808         hardcode_libdir_separator_CXX=:
9809
9810         # Commands to make compiler produce verbose output that lists
9811         # what "hidden" libraries, object files and flags are used when
9812         # linking a shared library.
9813         #
9814         # There doesn't appear to be a way to prevent this compiler from
9815         # explicitly linking system object files so we need to strip them
9816         # from the output so that they don't get included in the library
9817         # dependencies.
9818         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'
9819         ;;
9820       *)
9821         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9822           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9823           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'
9824
9825           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9826           hardcode_libdir_separator_CXX=:
9827
9828           # Commands to make compiler produce verbose output that lists
9829           # what "hidden" libraries, object files and flags are used when
9830           # linking a shared library.
9831           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9832
9833         else
9834           # FIXME: insert proper C++ library support
9835           ld_shlibs_CXX=no
9836         fi
9837         ;;
9838     esac
9839     ;;
9840   osf4* | osf5*)
9841     case $cc_basename in
9842       KCC)
9843         # Kuck and Associates, Inc. (KAI) C++ Compiler
9844
9845         # KCC will only create a shared library if the output file
9846         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9847         # to its proper name (with version) after linking.
9848         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'
9849
9850         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9851         hardcode_libdir_separator_CXX=:
9852
9853         # Archives containing C++ object files must be created using
9854         # the KAI C++ compiler.
9855         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9856         ;;
9857       RCC)
9858         # Rational C++ 2.4.1
9859         # FIXME: insert proper C++ library support
9860         ld_shlibs_CXX=no
9861         ;;
9862       cxx)
9863         allow_undefined_flag_CXX=' -expect_unresolved \*'
9864         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'
9865         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9866           echo "-hidden">> $lib.exp~
9867           $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~
9868           $rm $lib.exp'
9869
9870         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9871         hardcode_libdir_separator_CXX=:
9872
9873         # Commands to make compiler produce verbose output that lists
9874         # what "hidden" libraries, object files and flags are used when
9875         # linking a shared library.
9876         #
9877         # There doesn't appear to be a way to prevent this compiler from
9878         # explicitly linking system object files so we need to strip them
9879         # from the output so that they don't get included in the library
9880         # dependencies.
9881         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'
9882         ;;
9883       *)
9884         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9885           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9886          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'
9887
9888           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9889           hardcode_libdir_separator_CXX=:
9890
9891           # Commands to make compiler produce verbose output that lists
9892           # what "hidden" libraries, object files and flags are used when
9893           # linking a shared library.
9894           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9895
9896         else
9897           # FIXME: insert proper C++ library support
9898           ld_shlibs_CXX=no
9899         fi
9900         ;;
9901     esac
9902     ;;
9903   psos*)
9904     # FIXME: insert proper C++ library support
9905     ld_shlibs_CXX=no
9906     ;;
9907   sco*)
9908     archive_cmds_need_lc_CXX=no
9909     case $cc_basename in
9910       CC)
9911         # FIXME: insert proper C++ library support
9912         ld_shlibs_CXX=no
9913         ;;
9914       *)
9915         # FIXME: insert proper C++ library support
9916         ld_shlibs_CXX=no
9917         ;;
9918     esac
9919     ;;
9920   sunos4*)
9921     case $cc_basename in
9922       CC)
9923         # Sun C++ 4.x
9924         # FIXME: insert proper C++ library support
9925         ld_shlibs_CXX=no
9926         ;;
9927       lcc)
9928         # Lucid
9929         # FIXME: insert proper C++ library support
9930         ld_shlibs_CXX=no
9931         ;;
9932       *)
9933         # FIXME: insert proper C++ library support
9934         ld_shlibs_CXX=no
9935         ;;
9936     esac
9937     ;;
9938   solaris*)
9939     case $cc_basename in
9940       CC)
9941         # Sun C++ 4.2, 5.x and Centerline C++
9942         no_undefined_flag_CXX=' -zdefs'
9943         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9944         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9945         $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'
9946
9947         hardcode_libdir_flag_spec_CXX='-R$libdir'
9948         hardcode_shlibpath_var_CXX=no
9949         case $host_os in
9950           solaris2.0-5 | solaris2.0-5.*) ;;
9951           *)
9952             # The C++ compiler is used as linker so we must use $wl
9953             # flag to pass the commands to the underlying system
9954             # linker.
9955             # Supported since Solaris 2.6 (maybe 2.5.1?)
9956             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9957             ;;
9958         esac
9959         link_all_deplibs_CXX=yes
9960
9961         # Commands to make compiler produce verbose output that lists
9962         # what "hidden" libraries, object files and flags are used when
9963         # linking a shared library.
9964         #
9965         # There doesn't appear to be a way to prevent this compiler from
9966         # explicitly linking system object files so we need to strip them
9967         # from the output so that they don't get included in the library
9968         # dependencies.
9969         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'
9970
9971         # Archives containing C++ object files must be created using
9972         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9973         # necessary to make sure instantiated templates are included
9974         # in the archive.
9975         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9976         ;;
9977       gcx)
9978         # Green Hills C++ Compiler
9979         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9980
9981         # The C++ compiler must be used to create the archive.
9982         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9983         ;;
9984       *)
9985         # GNU C++ compiler with Solaris linker
9986         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9987           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9988           if $CC --version | grep -v '^2\.7' > /dev/null; then
9989             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9990             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9991                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9992
9993             # Commands to make compiler produce verbose output that lists
9994             # what "hidden" libraries, object files and flags are used when
9995             # linking a shared library.
9996             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9997           else
9998             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9999             # platform.
10000             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10001             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10002                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10003
10004             # Commands to make compiler produce verbose output that lists
10005             # what "hidden" libraries, object files and flags are used when
10006             # linking a shared library.
10007             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10008           fi
10009
10010           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10011         fi
10012         ;;
10013     esac
10014     ;;
10015   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10016     archive_cmds_need_lc_CXX=no
10017     ;;
10018   tandem*)
10019     case $cc_basename in
10020       NCC)
10021         # NonStop-UX NCC 3.20
10022         # FIXME: insert proper C++ library support
10023         ld_shlibs_CXX=no
10024         ;;
10025       *)
10026         # FIXME: insert proper C++ library support
10027         ld_shlibs_CXX=no
10028         ;;
10029     esac
10030     ;;
10031   vxworks*)
10032     # FIXME: insert proper C++ library support
10033     ld_shlibs_CXX=no
10034     ;;
10035   *)
10036     # FIXME: insert proper C++ library support
10037     ld_shlibs_CXX=no
10038     ;;
10039 esac
10040 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10041 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10042 test "$ld_shlibs_CXX" = no && can_build_shared=no
10043
10044 GCC_CXX="$GXX"
10045 LD_CXX="$LD"
10046
10047
10048 cat > conftest.$ac_ext <<EOF
10049 class Foo
10050 {
10051 public:
10052   Foo (void) { a = 0; }
10053 private:
10054   int a;
10055 };
10056 EOF
10057
10058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10059   (eval $ac_compile) 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; then
10063   # Parse the compiler output and extract the necessary
10064   # objects, libraries and library flags.
10065
10066   # Sentinel used to keep track of whether or not we are before
10067   # the conftest object file.
10068   pre_test_object_deps_done=no
10069
10070   # The `*' in the case matches for architectures that use `case' in
10071   # $output_verbose_cmd can trigger glob expansion during the loop
10072   # eval without this substitution.
10073   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10074
10075   for p in `eval $output_verbose_link_cmd`; do
10076     case $p in
10077
10078     -L* | -R* | -l*)
10079        # Some compilers place space between "-{L,R}" and the path.
10080        # Remove the space.
10081        if test $p = "-L" \
10082           || test $p = "-R"; then
10083          prev=$p
10084          continue
10085        else
10086          prev=
10087        fi
10088
10089        if test "$pre_test_object_deps_done" = no; then
10090          case $p in
10091          -L* | -R*)
10092            # Internal compiler library paths should come after those
10093            # provided the user.  The postdeps already come after the
10094            # user supplied libs so there is no need to process them.
10095            if test -z "$compiler_lib_search_path_CXX"; then
10096              compiler_lib_search_path_CXX="${prev}${p}"
10097            else
10098              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10099            fi
10100            ;;
10101          # The "-l" case would never come before the object being
10102          # linked, so don't bother handling this case.
10103          esac
10104        else
10105          if test -z "$postdeps_CXX"; then
10106            postdeps_CXX="${prev}${p}"
10107          else
10108            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10109          fi
10110        fi
10111        ;;
10112
10113     *.$objext)
10114        # This assumes that the test object file only shows up
10115        # once in the compiler output.
10116        if test "$p" = "conftest.$objext"; then
10117          pre_test_object_deps_done=yes
10118          continue
10119        fi
10120
10121        if test "$pre_test_object_deps_done" = no; then
10122          if test -z "$predep_objects_CXX"; then
10123            predep_objects_CXX="$p"
10124          else
10125            predep_objects_CXX="$predep_objects_CXX $p"
10126          fi
10127        else
10128          if test -z "$postdep_objects_CXX"; then
10129            postdep_objects_CXX="$p"
10130          else
10131            postdep_objects_CXX="$postdep_objects_CXX $p"
10132          fi
10133        fi
10134        ;;
10135
10136     *) ;; # Ignore the rest.
10137
10138     esac
10139   done
10140
10141   # Clean up.
10142   rm -f a.out a.exe
10143 else
10144   echo "libtool.m4: error: problem compiling CXX test program"
10145 fi
10146
10147 $rm -f confest.$objext
10148
10149 case " $postdeps_CXX " in
10150 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10151 esac
10152
10153 lt_prog_compiler_wl_CXX=
10154 lt_prog_compiler_pic_CXX=
10155 lt_prog_compiler_static_CXX=
10156
10157 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10158 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10159
10160   # C++ specific cases for pic, static, wl, etc.
10161   if test "$GXX" = yes; then
10162     lt_prog_compiler_wl_CXX='-Wl,'
10163     lt_prog_compiler_static_CXX='-static'
10164
10165     case $host_os in
10166     aix*)
10167       # All AIX code is PIC.
10168       if test "$host_cpu" = ia64; then
10169         # AIX 5 now supports IA64 processor
10170         lt_prog_compiler_static_CXX='-Bstatic'
10171       fi
10172       ;;
10173     amigaos*)
10174       # FIXME: we need at least 68020 code to build shared libraries, but
10175       # adding the `-m68020' flag to GCC prevents building anything better,
10176       # like `-m68040'.
10177       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10178       ;;
10179     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10180       # PIC is the default for these OSes.
10181       ;;
10182     mingw* | os2* | pw32*)
10183       # This hack is so that the source file can tell whether it is being
10184       # built for inclusion in a dll (and should export symbols for example).
10185       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10186       ;;
10187     darwin* | rhapsody*)
10188       # PIC is the default on this platform
10189       # Common symbols not allowed in MH_DYLIB files
10190       lt_prog_compiler_pic_CXX='-fno-common'
10191       ;;
10192     *djgpp*)
10193       # DJGPP does not support shared libraries at all
10194       lt_prog_compiler_pic_CXX=
10195       ;;
10196     sysv4*MP*)
10197       if test -d /usr/nec; then
10198         lt_prog_compiler_pic_CXX=-Kconform_pic
10199       fi
10200       ;;
10201     hpux*)
10202       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10203       # not for PA HP-UX.
10204       case "$host_cpu" in
10205       hppa*64*|ia64*)
10206         ;;
10207       *)
10208         lt_prog_compiler_pic_CXX='-fPIC'
10209         ;;
10210       esac
10211       ;;
10212     *)
10213       lt_prog_compiler_pic_CXX='-fPIC'
10214       ;;
10215     esac
10216   else
10217     case $host_os in
10218       aix4* | aix5*)
10219         # All AIX code is PIC.
10220         if test "$host_cpu" = ia64; then
10221           # AIX 5 now supports IA64 processor
10222           lt_prog_compiler_static_CXX='-Bstatic'
10223         else
10224           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10225         fi
10226         ;;
10227       chorus*)
10228         case $cc_basename in
10229         cxch68)
10230           # Green Hills C++ Compiler
10231           # _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"
10232           ;;
10233         esac
10234         ;;
10235       dgux*)
10236         case $cc_basename in
10237           ec++)
10238             lt_prog_compiler_pic_CXX='-KPIC'
10239             ;;
10240           ghcx)
10241             # Green Hills C++ Compiler
10242             lt_prog_compiler_pic_CXX='-pic'
10243             ;;
10244           *)
10245             ;;
10246         esac
10247         ;;
10248       freebsd*)
10249         # FreeBSD uses GNU C++
10250         ;;
10251       hpux9* | hpux10* | hpux11*)
10252         case $cc_basename in
10253           CC)
10254             lt_prog_compiler_wl_CXX='-Wl,'
10255             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10256             if test "$host_cpu" != ia64; then
10257               lt_prog_compiler_pic_CXX='+Z'
10258             fi
10259             ;;
10260           aCC)
10261             lt_prog_compiler_wl_CXX='-Wl,'
10262             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10263             case "$host_cpu" in
10264             hppa*64*|ia64*)
10265               # +Z the default
10266               ;;
10267             *)
10268               lt_prog_compiler_pic_CXX='+Z'
10269               ;;
10270             esac
10271             ;;
10272           *)
10273             ;;
10274         esac
10275         ;;
10276       irix5* | irix6* | nonstopux*)
10277         case $cc_basename in
10278           CC)
10279             lt_prog_compiler_wl_CXX='-Wl,'
10280             lt_prog_compiler_static_CXX='-non_shared'
10281             # CC pic flag -KPIC is the default.
10282             ;;
10283           *)
10284             ;;
10285         esac
10286         ;;
10287       linux*)
10288         case $cc_basename in
10289           KCC)
10290             # KAI C++ Compiler
10291             lt_prog_compiler_wl_CXX='--backend -Wl,'
10292             lt_prog_compiler_pic_CXX='-fPIC'
10293             ;;
10294           icpc)
10295             # Intel C++
10296             lt_prog_compiler_wl_CXX='-Wl,'
10297             lt_prog_compiler_pic_CXX='-KPIC'
10298             lt_prog_compiler_static_CXX='-static'
10299             ;;
10300           cxx)
10301             # Compaq C++
10302             # Make sure the PIC flag is empty.  It appears that all Alpha
10303             # Linux and Compaq Tru64 Unix objects are PIC.
10304             lt_prog_compiler_pic_CXX=
10305             lt_prog_compiler_static_CXX='-non_shared'
10306             ;;
10307           *)
10308             ;;
10309         esac
10310         ;;
10311       lynxos*)
10312         ;;
10313       m88k*)
10314         ;;
10315       mvs*)
10316         case $cc_basename in
10317           cxx)
10318             lt_prog_compiler_pic_CXX='-W c,exportall'
10319             ;;
10320           *)
10321             ;;
10322         esac
10323         ;;
10324       netbsd*)
10325         ;;
10326       osf3* | osf4* | osf5*)
10327         case $cc_basename in
10328           KCC)
10329             lt_prog_compiler_wl_CXX='--backend -Wl,'
10330             ;;
10331           RCC)
10332             # Rational C++ 2.4.1
10333             lt_prog_compiler_pic_CXX='-pic'
10334             ;;
10335           cxx)
10336             # Digital/Compaq C++
10337             lt_prog_compiler_wl_CXX='-Wl,'
10338             # Make sure the PIC flag is empty.  It appears that all Alpha
10339             # Linux and Compaq Tru64 Unix objects are PIC.
10340             lt_prog_compiler_pic_CXX=
10341             lt_prog_compiler_static_CXX='-non_shared'
10342             ;;
10343           *)
10344             ;;
10345         esac
10346         ;;
10347       psos*)
10348         ;;
10349       sco*)
10350         case $cc_basename in
10351           CC)
10352             lt_prog_compiler_pic_CXX='-fPIC'
10353             ;;
10354           *)
10355             ;;
10356         esac
10357         ;;
10358       solaris*)
10359         case $cc_basename in
10360           CC)
10361             # Sun C++ 4.2, 5.x and Centerline C++
10362             lt_prog_compiler_pic_CXX='-KPIC'
10363             lt_prog_compiler_static_CXX='-Bstatic'
10364             lt_prog_compiler_wl_CXX='-Qoption ld '
10365             ;;
10366           gcx)
10367             # Green Hills C++ Compiler
10368             lt_prog_compiler_pic_CXX='-PIC'
10369             ;;
10370           *)
10371             ;;
10372         esac
10373         ;;
10374       sunos4*)
10375         case $cc_basename in
10376           CC)
10377             # Sun C++ 4.x
10378             lt_prog_compiler_pic_CXX='-pic'
10379             lt_prog_compiler_static_CXX='-Bstatic'
10380             ;;
10381           lcc)
10382             # Lucid
10383             lt_prog_compiler_pic_CXX='-pic'
10384             ;;
10385           *)
10386             ;;
10387         esac
10388         ;;
10389       tandem*)
10390         case $cc_basename in
10391           NCC)
10392             # NonStop-UX NCC 3.20
10393             lt_prog_compiler_pic_CXX='-KPIC'
10394             ;;
10395           *)
10396             ;;
10397         esac
10398         ;;
10399       unixware*)
10400         ;;
10401       vxworks*)
10402         ;;
10403       *)
10404         lt_prog_compiler_can_build_shared_CXX=no
10405         ;;
10406     esac
10407   fi
10408
10409 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10410 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10411
10412 #
10413 # Check to make sure the PIC flag actually works.
10414 #
10415 if test -n "$lt_prog_compiler_pic_CXX"; then
10416   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10417 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10418 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10419   echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421   lt_prog_compiler_pic_works_CXX=no
10422   ac_outfile=conftest.$ac_objext
10423    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10424    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10425    # Insert the option either (1) after the last *FLAGS variable, or
10426    # (2) before a word containing "conftest.", or (3) at the end.
10427    # Note that $ac_compile itself does not contain backslashes and begins
10428    # with a dollar sign (not a hyphen), so the echo should work correctly.
10429    # The option is referenced via a variable to avoid confusing sed.
10430    lt_compile=`echo "$ac_compile" | $SED \
10431    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10432    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10433    -e 's:$: $lt_compiler_flag:'`
10434    (eval echo "\"\$as_me:10434: $lt_compile\"" >&5)
10435    (eval "$lt_compile" 2>conftest.err)
10436    ac_status=$?
10437    cat conftest.err >&5
10438    echo "$as_me:10438: \$? = $ac_status" >&5
10439    if (exit $ac_status) && test -s "$ac_outfile"; then
10440      # The compiler can only warn and ignore the option if not recognized
10441      # So say no if there are warnings
10442      if test ! -s conftest.err; then
10443        lt_prog_compiler_pic_works_CXX=yes
10444      fi
10445    fi
10446    $rm conftest*
10447
10448 fi
10449 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10450 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10451
10452 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10453     case $lt_prog_compiler_pic_CXX in
10454      "" | " "*) ;;
10455      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10456      esac
10457 else
10458     lt_prog_compiler_pic_CXX=
10459      lt_prog_compiler_can_build_shared_CXX=no
10460 fi
10461
10462 fi
10463 case "$host_os" in
10464   # For platforms which do not support PIC, -DPIC is meaningless:
10465   *djgpp*)
10466     lt_prog_compiler_pic_CXX=
10467     ;;
10468   *)
10469     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10470     ;;
10471 esac
10472
10473 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10474 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10475 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10476   echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478   lt_cv_prog_compiler_c_o_CXX=no
10479    $rm -r conftest 2>/dev/null
10480    mkdir conftest
10481    cd conftest
10482    mkdir out
10483    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10484
10485    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10486    # that will create temporary files in the current directory regardless of
10487    # the output directory.  Thus, making CWD read-only will cause this test
10488    # to fail, enabling locking or at least warning the user not to do parallel
10489    # builds.
10490    chmod -w .
10491
10492    lt_compiler_flag="-o out/conftest2.$ac_objext"
10493    # Insert the option either (1) after the last *FLAGS variable, or
10494    # (2) before a word containing "conftest.", or (3) at the end.
10495    # Note that $ac_compile itself does not contain backslashes and begins
10496    # with a dollar sign (not a hyphen), so the echo should work correctly.
10497    lt_compile=`echo "$ac_compile" | $SED \
10498    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10499    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10500    -e 's:$: $lt_compiler_flag:'`
10501    (eval echo "\"\$as_me:10501: $lt_compile\"" >&5)
10502    (eval "$lt_compile" 2>out/conftest.err)
10503    ac_status=$?
10504    cat out/conftest.err >&5
10505    echo "$as_me:10505: \$? = $ac_status" >&5
10506    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10507    then
10508      # The compiler can only warn and ignore the option if not recognized
10509      # So say no if there are warnings
10510      if test ! -s out/conftest.err; then
10511        lt_cv_prog_compiler_c_o_CXX=yes
10512      fi
10513    fi
10514    chmod u+w .
10515    $rm conftest* out/*
10516    rmdir out
10517    cd ..
10518    rmdir conftest
10519    $rm conftest*
10520
10521 fi
10522 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10523 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10524
10525
10526 hard_links="nottested"
10527 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10528   # do not overwrite the value of need_locks provided by the user
10529   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10530 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10531   hard_links=yes
10532   $rm conftest*
10533   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10534   touch conftest.a
10535   ln conftest.a conftest.b 2>&5 || hard_links=no
10536   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10537   echo "$as_me:$LINENO: result: $hard_links" >&5
10538 echo "${ECHO_T}$hard_links" >&6
10539   if test "$hard_links" = no; then
10540     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10541 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10542     need_locks=warn
10543   fi
10544 else
10545   need_locks=no
10546 fi
10547
10548 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10549 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10550
10551   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10552   case $host_os in
10553   aix4* | aix5*)
10554     # If we're using GNU nm, then we don't want the "-C" option.
10555     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10556     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10557       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'
10558     else
10559       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'
10560     fi
10561     ;;
10562   pw32*)
10563     export_symbols_cmds_CXX="$ltdll_cmds"
10564   ;;
10565   cygwin* | mingw*)
10566     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10567   ;;
10568   *)
10569     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10570   ;;
10571   esac
10572
10573 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10574 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10575 test "$ld_shlibs_CXX" = no && can_build_shared=no
10576
10577 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10578 if test "$GCC" = yes; then
10579   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10580 fi
10581
10582 #
10583 # Do we need to explicitly link libc?
10584 #
10585 case "x$archive_cmds_need_lc_CXX" in
10586 x|xyes)
10587   # Assume -lc should be added
10588   archive_cmds_need_lc_CXX=yes
10589
10590   if test "$enable_shared" = yes && test "$GCC" = yes; then
10591     case $archive_cmds_CXX in
10592     *'~'*)
10593       # FIXME: we may have to deal with multi-command sequences.
10594       ;;
10595     '$CC '*)
10596       # Test whether the compiler implicitly links with -lc since on some
10597       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10598       # to ld, don't add -lc before -lgcc.
10599       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10600 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10601       $rm conftest*
10602       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10603
10604       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10605   (eval $ac_compile) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); } 2>conftest.err; then
10609         soname=conftest
10610         lib=conftest
10611         libobjs=conftest.$ac_objext
10612         deplibs=
10613         wl=$lt_prog_compiler_wl_CXX
10614         compiler_flags=-v
10615         linker_flags=-v
10616         verstring=
10617         output_objdir=.
10618         libname=conftest
10619         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10620         allow_undefined_flag_CXX=
10621         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10622   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }
10626         then
10627           archive_cmds_need_lc_CXX=no
10628         else
10629           archive_cmds_need_lc_CXX=yes
10630         fi
10631         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10632       else
10633         cat conftest.err 1>&5
10634       fi
10635       $rm conftest*
10636       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10637 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10638       ;;
10639     esac
10640   fi
10641   ;;
10642 esac
10643
10644 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10645 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10646 hardcode_action_CXX=
10647 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10648    test -n "$runpath_var CXX" || \
10649    test "X$hardcode_automatic_CXX"="Xyes" ; then
10650
10651   # We can hardcode non-existant directories.
10652   if test "$hardcode_direct_CXX" != no &&
10653      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10654      # have to relink, otherwise we might link with an installed library
10655      # when we should be linking with a yet-to-be-installed one
10656      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10657      test "$hardcode_minus_L_CXX" != no; then
10658     # Linking always hardcodes the temporary library directory.
10659     hardcode_action_CXX=relink
10660   else
10661     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10662     hardcode_action_CXX=immediate
10663   fi
10664 else
10665   # We cannot hardcode anything, or else we can only hardcode existing
10666   # directories.
10667   hardcode_action_CXX=unsupported
10668 fi
10669 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10670 echo "${ECHO_T}$hardcode_action_CXX" >&6
10671
10672 if test "$hardcode_action_CXX" = relink; then
10673   # Fast installation is not supported
10674   enable_fast_install=no
10675 elif test "$shlibpath_overrides_runpath" = yes ||
10676      test "$enable_shared" = no; then
10677   # Fast installation is not necessary
10678   enable_fast_install=needless
10679 fi
10680
10681 striplib=
10682 old_striplib=
10683 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10684 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10685 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10686   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10687   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10688   echo "$as_me:$LINENO: result: yes" >&5
10689 echo "${ECHO_T}yes" >&6
10690 else
10691 # FIXME - insert some real tests, host_os isn't really good enough
10692   case $host_os in
10693    darwin*)
10694        if test -n "$STRIP" ; then
10695          striplib="$STRIP -x"
10696          echo "$as_me:$LINENO: result: yes" >&5
10697 echo "${ECHO_T}yes" >&6
10698        else
10699   echo "$as_me:$LINENO: result: no" >&5
10700 echo "${ECHO_T}no" >&6
10701 fi
10702        ;;
10703    *)
10704   echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6
10706     ;;
10707   esac
10708 fi
10709
10710 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10711 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10712 library_names_spec=
10713 libname_spec='lib$name'
10714 soname_spec=
10715 shrext=".so"
10716 postinstall_cmds=
10717 postuninstall_cmds=
10718 finish_cmds=
10719 finish_eval=
10720 shlibpath_var=
10721 shlibpath_overrides_runpath=unknown
10722 version_type=none
10723 dynamic_linker="$host_os ld.so"
10724 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10725 if test "$GCC" = yes; then
10726   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10727   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10728     # if the path contains ";" then we assume it to be the separator
10729     # otherwise default to the standard path separator (i.e. ":") - it is
10730     # assumed that no part of a normal pathname contains ";" but that should
10731     # okay in the real world where ";" in dirpaths is itself problematic.
10732     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10733   else
10734     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10735   fi
10736 else
10737   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10738 fi
10739 need_lib_prefix=unknown
10740 hardcode_into_libs=no
10741
10742 # when you set need_version to no, make sure it does not cause -set_version
10743 # flags to be left without arguments
10744 need_version=unknown
10745
10746 case $host_os in
10747 aix3*)
10748   version_type=linux
10749   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10750   shlibpath_var=LIBPATH
10751
10752   # AIX 3 has no versioning support, so we append a major version to the name.
10753   soname_spec='${libname}${release}${shared_ext}$major'
10754   ;;
10755
10756 aix4* | aix5*)
10757   version_type=linux
10758   need_lib_prefix=no
10759   need_version=no
10760   hardcode_into_libs=yes
10761   if test "$host_cpu" = ia64; then
10762     # AIX 5 supports IA64
10763     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10764     shlibpath_var=LD_LIBRARY_PATH
10765   else
10766     # With GCC up to 2.95.x, collect2 would create an import file
10767     # for dependence libraries.  The import file would start with
10768     # the line `#! .'.  This would cause the generated library to
10769     # depend on `.', always an invalid library.  This was fixed in
10770     # development snapshots of GCC prior to 3.0.
10771     case $host_os in
10772       aix4 | aix4.[01] | aix4.[01].*)
10773       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10774            echo ' yes '
10775            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10776         :
10777       else
10778         can_build_shared=no
10779       fi
10780       ;;
10781     esac
10782     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10783     # soname into executable. Probably we can add versioning support to
10784     # collect2, so additional links can be useful in future.
10785     if test "$aix_use_runtimelinking" = yes; then
10786       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10787       # instead of lib<name>.a to let people know that these are not
10788       # typical AIX shared libraries.
10789       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790     else
10791       # We preserve .a as extension for shared libraries through AIX4.2
10792       # and later when we are not doing run time linking.
10793       library_names_spec='${libname}${release}.a $libname.a'
10794       soname_spec='${libname}${release}${shared_ext}$major'
10795     fi
10796     shlibpath_var=LIBPATH
10797   fi
10798   ;;
10799
10800 amigaos*)
10801   library_names_spec='$libname.ixlibrary $libname.a'
10802   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10803   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'
10804   ;;
10805
10806 beos*)
10807   library_names_spec='${libname}${shared_ext}'
10808   dynamic_linker="$host_os ld.so"
10809   shlibpath_var=LIBRARY_PATH
10810   ;;
10811
10812 bsdi4*)
10813   version_type=linux
10814   need_version=no
10815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816   soname_spec='${libname}${release}${shared_ext}$major'
10817   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10818   shlibpath_var=LD_LIBRARY_PATH
10819   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10820   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10821   # the default ld.so.conf also contains /usr/contrib/lib and
10822   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10823   # libtool to hard-code these into programs
10824   ;;
10825
10826 cygwin* | mingw* | pw32*)
10827   version_type=windows
10828   shrext=".dll"
10829   need_version=no
10830   need_lib_prefix=no
10831
10832   case $GCC,$host_os in
10833   yes,cygwin* | yes,mingw* | yes,pw32*)
10834     library_names_spec='$libname.dll.a'
10835     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10836     postinstall_cmds='base_file=`basename \${file}`~
10837       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10838       dldir=$destdir/`dirname \$dlpath`~
10839       test -d \$dldir || mkdir -p \$dldir~
10840       $install_prog $dir/$dlname \$dldir/$dlname'
10841     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10842       dlpath=$dir/\$dldll~
10843        $rm \$dlpath'
10844     shlibpath_overrides_runpath=yes
10845
10846     case $host_os in
10847     cygwin*)
10848       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10849       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10850       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10851       ;;
10852     mingw*)
10853       # MinGW DLLs use traditional 'lib' prefix
10854       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10855       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10856       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10857         # It is most probably a Windows format PATH printed by
10858         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10859         # path with ; separators, and with drive letters. We can handle the
10860         # drive letters (cygwin fileutils understands them), so leave them,
10861         # especially as we might pass files found there to a mingw objdump,
10862         # which wouldn't understand a cygwinified path. Ahh.
10863         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10864       else
10865         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10866       fi
10867       ;;
10868     pw32*)
10869       # pw32 DLLs use 'pw' prefix rather than 'lib'
10870       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10871       ;;
10872     esac
10873     ;;
10874
10875   *)
10876     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10877     ;;
10878   esac
10879   dynamic_linker='Win32 ld.exe'
10880   # FIXME: first we should search . and the directory the executable is in
10881   shlibpath_var=PATH
10882   ;;
10883
10884 darwin* | rhapsody*)
10885   dynamic_linker="$host_os dyld"
10886   version_type=darwin
10887   need_lib_prefix=no
10888   need_version=no
10889   # FIXME: Relying on posixy $() will cause problems for
10890   #        cross-compilation, but unfortunately the echo tests do not
10891   #        yet detect zsh echo's removal of \ escapes.
10892   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10893   soname_spec='${libname}${release}${major}$shared_ext'
10894   shlibpath_overrides_runpath=yes
10895   shlibpath_var=DYLD_LIBRARY_PATH
10896   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10897   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10898   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10899   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"`
10900   fi
10901   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10902   ;;
10903
10904 dgux*)
10905   version_type=linux
10906   need_lib_prefix=no
10907   need_version=no
10908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10909   soname_spec='${libname}${release}${shared_ext}$major'
10910   shlibpath_var=LD_LIBRARY_PATH
10911   ;;
10912
10913 freebsd1*)
10914   dynamic_linker=no
10915   ;;
10916
10917 freebsd*)
10918   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10919   version_type=freebsd-$objformat
10920   case $version_type in
10921     freebsd-elf*)
10922       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10923       need_version=no
10924       need_lib_prefix=no
10925       ;;
10926     freebsd-*)
10927       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10928       need_version=yes
10929       ;;
10930   esac
10931   shlibpath_var=LD_LIBRARY_PATH
10932   case $host_os in
10933   freebsd2*)
10934     shlibpath_overrides_runpath=yes
10935     ;;
10936   freebsd3.01* | freebsdelf3.01*)
10937     shlibpath_overrides_runpath=yes
10938     hardcode_into_libs=yes
10939     ;;
10940   *) # from 3.2 on
10941     shlibpath_overrides_runpath=no
10942     hardcode_into_libs=yes
10943     ;;
10944   esac
10945   ;;
10946
10947 gnu*)
10948   version_type=linux
10949   need_lib_prefix=no
10950   need_version=no
10951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10952   soname_spec='${libname}${release}${shared_ext}$major'
10953   shlibpath_var=LD_LIBRARY_PATH
10954   hardcode_into_libs=yes
10955   ;;
10956
10957 hpux9* | hpux10* | hpux11*)
10958   # Give a soname corresponding to the major version so that dld.sl refuses to
10959   # link against other versions.
10960   version_type=sunos
10961   need_lib_prefix=no
10962   need_version=no
10963   case "$host_cpu" in
10964   ia64*)
10965     shrext='.so'
10966     hardcode_into_libs=yes
10967     dynamic_linker="$host_os dld.so"
10968     shlibpath_var=LD_LIBRARY_PATH
10969     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971     soname_spec='${libname}${release}${shared_ext}$major'
10972     if test "X$HPUX_IA64_MODE" = X32; then
10973       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10974     else
10975       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10976     fi
10977     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10978     ;;
10979    hppa*64*)
10980      shrext='.sl'
10981      hardcode_into_libs=yes
10982      dynamic_linker="$host_os dld.sl"
10983      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10984      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10985      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986      soname_spec='${libname}${release}${shared_ext}$major'
10987      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10988      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10989      ;;
10990    *)
10991     shrext='.sl'
10992     dynamic_linker="$host_os dld.sl"
10993     shlibpath_var=SHLIB_PATH
10994     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996     soname_spec='${libname}${release}${shared_ext}$major'
10997     ;;
10998   esac
10999   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11000   postinstall_cmds='chmod 555 $lib'
11001   ;;
11002
11003 irix5* | irix6* | nonstopux*)
11004   case $host_os in
11005     nonstopux*) version_type=nonstopux ;;
11006     *)
11007         if test "$lt_cv_prog_gnu_ld" = yes; then
11008                 version_type=linux
11009         else
11010                 version_type=irix
11011         fi ;;
11012   esac
11013   need_lib_prefix=no
11014   need_version=no
11015   soname_spec='${libname}${release}${shared_ext}$major'
11016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11017   case $host_os in
11018   irix5* | nonstopux*)
11019     libsuff= shlibsuff=
11020     ;;
11021   *)
11022     case $LD in # libtool.m4 will add one of these switches to LD
11023     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11024       libsuff= shlibsuff= libmagic=32-bit;;
11025     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11026       libsuff=32 shlibsuff=N32 libmagic=N32;;
11027     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11028       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11029     *) libsuff= shlibsuff= libmagic=never-match;;
11030     esac
11031     ;;
11032   esac
11033   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11034   shlibpath_overrides_runpath=no
11035   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11036   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11037   hardcode_into_libs=yes
11038   ;;
11039
11040 # No shared lib support for Linux oldld, aout, or coff.
11041 linux*oldld* | linux*aout* | linux*coff*)
11042   dynamic_linker=no
11043   ;;
11044
11045 # This must be Linux ELF.
11046 linux*)
11047   version_type=linux
11048   need_lib_prefix=no
11049   need_version=no
11050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051   soname_spec='${libname}${release}${shared_ext}$major'
11052   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11053   shlibpath_var=LD_LIBRARY_PATH
11054   shlibpath_overrides_runpath=no
11055   # This implies no fast_install, which is unacceptable.
11056   # Some rework will be needed to allow for fast_install
11057   # before this can be enabled.
11058   hardcode_into_libs=yes
11059
11060   # We used to test for /lib/ld.so.1 and disable shared libraries on
11061   # powerpc, because MkLinux only supported shared libraries with the
11062   # GNU dynamic linker.  Since this was broken with cross compilers,
11063   # most powerpc-linux boxes support dynamic linking these days and
11064   # people can always --disable-shared, the test was removed, and we
11065   # assume the GNU/Linux dynamic linker is in use.
11066   dynamic_linker='GNU/Linux ld.so'
11067   ;;
11068
11069 netbsd*)
11070   version_type=sunos
11071   need_lib_prefix=no
11072   need_version=no
11073   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11075     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11076     dynamic_linker='NetBSD (a.out) ld.so'
11077   else
11078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11079     soname_spec='${libname}${release}${shared_ext}$major'
11080     dynamic_linker='NetBSD ld.elf_so'
11081   fi
11082   shlibpath_var=LD_LIBRARY_PATH
11083   shlibpath_overrides_runpath=yes
11084   hardcode_into_libs=yes
11085   ;;
11086
11087 newsos6)
11088   version_type=linux
11089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090   shlibpath_var=LD_LIBRARY_PATH
11091   shlibpath_overrides_runpath=yes
11092   ;;
11093
11094 nto-qnx)
11095   version_type=linux
11096   need_lib_prefix=no
11097   need_version=no
11098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099   soname_spec='${libname}${release}${shared_ext}$major'
11100   shlibpath_var=LD_LIBRARY_PATH
11101   shlibpath_overrides_runpath=yes
11102   ;;
11103
11104 openbsd*)
11105   version_type=sunos
11106   need_lib_prefix=no
11107   need_version=no
11108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11109   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11110   shlibpath_var=LD_LIBRARY_PATH
11111   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11112     case $host_os in
11113       openbsd2.[89] | openbsd2.[89].*)
11114         shlibpath_overrides_runpath=no
11115         ;;
11116       *)
11117         shlibpath_overrides_runpath=yes
11118         ;;
11119       esac
11120   else
11121     shlibpath_overrides_runpath=yes
11122   fi
11123   ;;
11124
11125 os2*)
11126   libname_spec='$name'
11127   shrext=".dll"
11128   need_lib_prefix=no
11129   library_names_spec='$libname${shared_ext} $libname.a'
11130   dynamic_linker='OS/2 ld.exe'
11131   shlibpath_var=LIBPATH
11132   ;;
11133
11134 osf3* | osf4* | osf5*)
11135   version_type=osf
11136   need_lib_prefix=no
11137   need_version=no
11138   soname_spec='${libname}${release}${shared_ext}$major'
11139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140   shlibpath_var=LD_LIBRARY_PATH
11141   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11142   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11143   ;;
11144
11145 sco3.2v5*)
11146   version_type=osf
11147   soname_spec='${libname}${release}${shared_ext}$major'
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149   shlibpath_var=LD_LIBRARY_PATH
11150   ;;
11151
11152 solaris*)
11153   version_type=linux
11154   need_lib_prefix=no
11155   need_version=no
11156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157   soname_spec='${libname}${release}${shared_ext}$major'
11158   shlibpath_var=LD_LIBRARY_PATH
11159   shlibpath_overrides_runpath=yes
11160   hardcode_into_libs=yes
11161   # ldd complains unless libraries are executable
11162   postinstall_cmds='chmod +x $lib'
11163   ;;
11164
11165 sunos4*)
11166   version_type=sunos
11167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11168   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11169   shlibpath_var=LD_LIBRARY_PATH
11170   shlibpath_overrides_runpath=yes
11171   if test "$with_gnu_ld" = yes; then
11172     need_lib_prefix=no
11173   fi
11174   need_version=yes
11175   ;;
11176
11177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11178   version_type=linux
11179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180   soname_spec='${libname}${release}${shared_ext}$major'
11181   shlibpath_var=LD_LIBRARY_PATH
11182   case $host_vendor in
11183     sni)
11184       shlibpath_overrides_runpath=no
11185       need_lib_prefix=no
11186       export_dynamic_flag_spec='${wl}-Blargedynsym'
11187       runpath_var=LD_RUN_PATH
11188       ;;
11189     siemens)
11190       need_lib_prefix=no
11191       ;;
11192     motorola)
11193       need_lib_prefix=no
11194       need_version=no
11195       shlibpath_overrides_runpath=no
11196       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11197       ;;
11198   esac
11199   ;;
11200
11201 sysv4*MP*)
11202   if test -d /usr/nec ;then
11203     version_type=linux
11204     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11205     soname_spec='$libname${shared_ext}.$major'
11206     shlibpath_var=LD_LIBRARY_PATH
11207   fi
11208   ;;
11209
11210 uts4*)
11211   version_type=linux
11212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213   soname_spec='${libname}${release}${shared_ext}$major'
11214   shlibpath_var=LD_LIBRARY_PATH
11215   ;;
11216
11217 *)
11218   dynamic_linker=no
11219   ;;
11220 esac
11221 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11222 echo "${ECHO_T}$dynamic_linker" >&6
11223 test "$dynamic_linker" = no && can_build_shared=no
11224
11225 if test "x$enable_dlopen" != xyes; then
11226   enable_dlopen=unknown
11227   enable_dlopen_self=unknown
11228   enable_dlopen_self_static=unknown
11229 else
11230   lt_cv_dlopen=no
11231   lt_cv_dlopen_libs=
11232
11233   case $host_os in
11234   beos*)
11235     lt_cv_dlopen="load_add_on"
11236     lt_cv_dlopen_libs=
11237     lt_cv_dlopen_self=yes
11238     ;;
11239
11240   mingw* | pw32*)
11241     lt_cv_dlopen="LoadLibrary"
11242     lt_cv_dlopen_libs=
11243    ;;
11244
11245   cygwin*)
11246     lt_cv_dlopen="dlopen"
11247     lt_cv_dlopen_libs=
11248    ;;
11249
11250   darwin*)
11251   # if libdl is installed we need to link against it
11252     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11253 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11254 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257   ac_check_lib_save_LIBS=$LIBS
11258 LIBS="-ldl  $LIBS"
11259 cat >conftest.$ac_ext <<_ACEOF
11260 #line $LINENO "configure"
11261 /* confdefs.h.  */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h.  */
11266
11267 /* Override any gcc2 internal prototype to avoid an error.  */
11268 #ifdef __cplusplus
11269 extern "C"
11270 #endif
11271 /* We use char because int might match the return type of a gcc2
11272    builtin and then its argument prototype would still apply.  */
11273 char dlopen ();
11274 int
11275 main ()
11276 {
11277 dlopen ();
11278   ;
11279   return 0;
11280 }
11281 _ACEOF
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284   (eval $ac_link) 2>&5
11285   ac_status=$?
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); } &&
11288          { ac_try='test -s conftest$ac_exeext'
11289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290   (eval $ac_try) 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); }; }; then
11294   ac_cv_lib_dl_dlopen=yes
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 ac_cv_lib_dl_dlopen=no
11300 fi
11301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11302 LIBS=$ac_check_lib_save_LIBS
11303 fi
11304 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11305 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11306 if test $ac_cv_lib_dl_dlopen = yes; then
11307   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11308 else
11309
11310     lt_cv_dlopen="dyld"
11311     lt_cv_dlopen_libs=
11312     lt_cv_dlopen_self=yes
11313
11314 fi
11315
11316    ;;
11317
11318   *)
11319     echo "$as_me:$LINENO: checking for shl_load" >&5
11320 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11321 if test "${ac_cv_func_shl_load+set}" = set; then
11322   echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324   cat >conftest.$ac_ext <<_ACEOF
11325 #line $LINENO "configure"
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331 /* System header to define __stub macros and hopefully few prototypes,
11332     which can conflict with char shl_load (); below.
11333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11334     <limits.h> exists even on freestanding compilers.  */
11335 #ifdef __STDC__
11336 # include <limits.h>
11337 #else
11338 # include <assert.h>
11339 #endif
11340 /* Override any gcc2 internal prototype to avoid an error.  */
11341 #ifdef __cplusplus
11342 extern "C"
11343 {
11344 #endif
11345 /* We use char because int might match the return type of a gcc2
11346    builtin and then its argument prototype would still apply.  */
11347 char shl_load ();
11348 /* The GNU C library defines this for functions which it implements
11349     to always fail with ENOSYS.  Some functions are actually named
11350     something starting with __ and the normal name is an alias.  */
11351 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11352 choke me
11353 #else
11354 char (*f) () = shl_load;
11355 #endif
11356 #ifdef __cplusplus
11357 }
11358 #endif
11359
11360 int
11361 main ()
11362 {
11363 return f != shl_load;
11364   ;
11365   return 0;
11366 }
11367 _ACEOF
11368 rm -f conftest.$ac_objext conftest$ac_exeext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11370   (eval $ac_link) 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); } &&
11374          { ac_try='test -s conftest$ac_exeext'
11375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376   (eval $ac_try) 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); }; }; then
11380   ac_cv_func_shl_load=yes
11381 else
11382   echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11384
11385 ac_cv_func_shl_load=no
11386 fi
11387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11388 fi
11389 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11390 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11391 if test $ac_cv_func_shl_load = yes; then
11392   lt_cv_dlopen="shl_load"
11393 else
11394   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11395 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11396 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11397   echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399   ac_check_lib_save_LIBS=$LIBS
11400 LIBS="-ldld  $LIBS"
11401 cat >conftest.$ac_ext <<_ACEOF
11402 #line $LINENO "configure"
11403 /* confdefs.h.  */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h.  */
11408
11409 /* Override any gcc2 internal prototype to avoid an error.  */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 /* We use char because int might match the return type of a gcc2
11414    builtin and then its argument prototype would still apply.  */
11415 char shl_load ();
11416 int
11417 main ()
11418 {
11419 shl_load ();
11420   ;
11421   return 0;
11422 }
11423 _ACEOF
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426   (eval $ac_link) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); } &&
11430          { ac_try='test -s conftest$ac_exeext'
11431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432   (eval $ac_try) 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); }; }; then
11436   ac_cv_lib_dld_shl_load=yes
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 ac_cv_lib_dld_shl_load=no
11442 fi
11443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11444 LIBS=$ac_check_lib_save_LIBS
11445 fi
11446 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11447 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11448 if test $ac_cv_lib_dld_shl_load = yes; then
11449   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11450 else
11451   echo "$as_me:$LINENO: checking for dlopen" >&5
11452 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11453 if test "${ac_cv_func_dlopen+set}" = set; then
11454   echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456   cat >conftest.$ac_ext <<_ACEOF
11457 #line $LINENO "configure"
11458 /* confdefs.h.  */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h.  */
11463 /* System header to define __stub macros and hopefully few prototypes,
11464     which can conflict with char dlopen (); below.
11465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11466     <limits.h> exists even on freestanding compilers.  */
11467 #ifdef __STDC__
11468 # include <limits.h>
11469 #else
11470 # include <assert.h>
11471 #endif
11472 /* Override any gcc2 internal prototype to avoid an error.  */
11473 #ifdef __cplusplus
11474 extern "C"
11475 {
11476 #endif
11477 /* We use char because int might match the return type of a gcc2
11478    builtin and then its argument prototype would still apply.  */
11479 char dlopen ();
11480 /* The GNU C library defines this for functions which it implements
11481     to always fail with ENOSYS.  Some functions are actually named
11482     something starting with __ and the normal name is an alias.  */
11483 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11484 choke me
11485 #else
11486 char (*f) () = dlopen;
11487 #endif
11488 #ifdef __cplusplus
11489 }
11490 #endif
11491
11492 int
11493 main ()
11494 {
11495 return f != dlopen;
11496   ;
11497   return 0;
11498 }
11499 _ACEOF
11500 rm -f conftest.$ac_objext conftest$ac_exeext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11502   (eval $ac_link) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); } &&
11506          { ac_try='test -s conftest$ac_exeext'
11507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508   (eval $ac_try) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; }; then
11512   ac_cv_func_dlopen=yes
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 ac_cv_func_dlopen=no
11518 fi
11519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11520 fi
11521 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11522 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11523 if test $ac_cv_func_dlopen = yes; then
11524   lt_cv_dlopen="dlopen"
11525 else
11526   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11527 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11528 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11529   echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11531   ac_check_lib_save_LIBS=$LIBS
11532 LIBS="-ldl  $LIBS"
11533 cat >conftest.$ac_ext <<_ACEOF
11534 #line $LINENO "configure"
11535 /* confdefs.h.  */
11536 _ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h.  */
11540
11541 /* Override any gcc2 internal prototype to avoid an error.  */
11542 #ifdef __cplusplus
11543 extern "C"
11544 #endif
11545 /* We use char because int might match the return type of a gcc2
11546    builtin and then its argument prototype would still apply.  */
11547 char dlopen ();
11548 int
11549 main ()
11550 {
11551 dlopen ();
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 rm -f conftest.$ac_objext conftest$ac_exeext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11558   (eval $ac_link) 2>&5
11559   ac_status=$?
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } &&
11562          { ac_try='test -s conftest$ac_exeext'
11563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564   (eval $ac_try) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; }; then
11568   ac_cv_lib_dl_dlopen=yes
11569 else
11570   echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573 ac_cv_lib_dl_dlopen=no
11574 fi
11575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11577 fi
11578 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11579 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11580 if test $ac_cv_lib_dl_dlopen = yes; then
11581   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11582 else
11583   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11584 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11585 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11586   echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588   ac_check_lib_save_LIBS=$LIBS
11589 LIBS="-lsvld  $LIBS"
11590 cat >conftest.$ac_ext <<_ACEOF
11591 #line $LINENO "configure"
11592 /* confdefs.h.  */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h.  */
11597
11598 /* Override any gcc2 internal prototype to avoid an error.  */
11599 #ifdef __cplusplus
11600 extern "C"
11601 #endif
11602 /* We use char because int might match the return type of a gcc2
11603    builtin and then its argument prototype would still apply.  */
11604 char dlopen ();
11605 int
11606 main ()
11607 {
11608 dlopen ();
11609   ;
11610   return 0;
11611 }
11612 _ACEOF
11613 rm -f conftest.$ac_objext conftest$ac_exeext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11615   (eval $ac_link) 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); } &&
11619          { ac_try='test -s conftest$ac_exeext'
11620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621   (eval $ac_try) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); }; }; then
11625   ac_cv_lib_svld_dlopen=yes
11626 else
11627   echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 ac_cv_lib_svld_dlopen=no
11631 fi
11632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11633 LIBS=$ac_check_lib_save_LIBS
11634 fi
11635 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11636 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11637 if test $ac_cv_lib_svld_dlopen = yes; then
11638   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11639 else
11640   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11641 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11642 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11643   echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645   ac_check_lib_save_LIBS=$LIBS
11646 LIBS="-ldld  $LIBS"
11647 cat >conftest.$ac_ext <<_ACEOF
11648 #line $LINENO "configure"
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654
11655 /* Override any gcc2 internal prototype to avoid an error.  */
11656 #ifdef __cplusplus
11657 extern "C"
11658 #endif
11659 /* We use char because int might match the return type of a gcc2
11660    builtin and then its argument prototype would still apply.  */
11661 char dld_link ();
11662 int
11663 main ()
11664 {
11665 dld_link ();
11666   ;
11667   return 0;
11668 }
11669 _ACEOF
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672   (eval $ac_link) 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } &&
11676          { ac_try='test -s conftest$ac_exeext'
11677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678   (eval $ac_try) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); }; }; then
11682   ac_cv_lib_dld_dld_link=yes
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687 ac_cv_lib_dld_dld_link=no
11688 fi
11689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11690 LIBS=$ac_check_lib_save_LIBS
11691 fi
11692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11693 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11694 if test $ac_cv_lib_dld_dld_link = yes; then
11695   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11696 fi
11697
11698
11699 fi
11700
11701
11702 fi
11703
11704
11705 fi
11706
11707
11708 fi
11709
11710
11711 fi
11712
11713     ;;
11714   esac
11715
11716   if test "x$lt_cv_dlopen" != xno; then
11717     enable_dlopen=yes
11718   else
11719     enable_dlopen=no
11720   fi
11721
11722   case $lt_cv_dlopen in
11723   dlopen)
11724     save_CPPFLAGS="$CPPFLAGS"
11725     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11726
11727     save_LDFLAGS="$LDFLAGS"
11728     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11729
11730     save_LIBS="$LIBS"
11731     LIBS="$lt_cv_dlopen_libs $LIBS"
11732
11733     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11734 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11735 if test "${lt_cv_dlopen_self+set}" = set; then
11736   echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738           if test "$cross_compiling" = yes; then :
11739   lt_cv_dlopen_self=cross
11740 else
11741   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742   lt_status=$lt_dlunknown
11743   cat > conftest.$ac_ext <<EOF
11744 #line 11744 "configure"
11745 #include "confdefs.h"
11746
11747 #if HAVE_DLFCN_H
11748 #include <dlfcn.h>
11749 #endif
11750
11751 #include <stdio.h>
11752
11753 #ifdef RTLD_GLOBAL
11754 #  define LT_DLGLOBAL           RTLD_GLOBAL
11755 #else
11756 #  ifdef DL_GLOBAL
11757 #    define LT_DLGLOBAL         DL_GLOBAL
11758 #  else
11759 #    define LT_DLGLOBAL         0
11760 #  endif
11761 #endif
11762
11763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764    find out it does not work in some platform. */
11765 #ifndef LT_DLLAZY_OR_NOW
11766 #  ifdef RTLD_LAZY
11767 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11768 #  else
11769 #    ifdef DL_LAZY
11770 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11771 #    else
11772 #      ifdef RTLD_NOW
11773 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11774 #      else
11775 #        ifdef DL_NOW
11776 #          define LT_DLLAZY_OR_NOW      DL_NOW
11777 #        else
11778 #          define LT_DLLAZY_OR_NOW      0
11779 #        endif
11780 #      endif
11781 #    endif
11782 #  endif
11783 #endif
11784
11785 #ifdef __cplusplus
11786 extern "C" void exit (int);
11787 #endif
11788
11789 void fnord() { int i=42;}
11790 int main ()
11791 {
11792   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11793   int status = $lt_dlunknown;
11794
11795   if (self)
11796     {
11797       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11798       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11799       /* dlclose (self); */
11800     }
11801
11802     exit (status);
11803 }
11804 EOF
11805   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806   (eval $ac_link) 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11810     (./conftest; exit; ) 2>/dev/null
11811     lt_status=$?
11812     case x$lt_status in
11813       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11814       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11815       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11816     esac
11817   else :
11818     # compilation failed
11819     lt_cv_dlopen_self=no
11820   fi
11821 fi
11822 rm -fr conftest*
11823
11824
11825 fi
11826 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11827 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11828
11829     if test "x$lt_cv_dlopen_self" = xyes; then
11830       LDFLAGS="$LDFLAGS $link_static_flag"
11831       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11832 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11833 if test "${lt_cv_dlopen_self_static+set}" = set; then
11834   echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836           if test "$cross_compiling" = yes; then :
11837   lt_cv_dlopen_self_static=cross
11838 else
11839   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11840   lt_status=$lt_dlunknown
11841   cat > conftest.$ac_ext <<EOF
11842 #line 11842 "configure"
11843 #include "confdefs.h"
11844
11845 #if HAVE_DLFCN_H
11846 #include <dlfcn.h>
11847 #endif
11848
11849 #include <stdio.h>
11850
11851 #ifdef RTLD_GLOBAL
11852 #  define LT_DLGLOBAL           RTLD_GLOBAL
11853 #else
11854 #  ifdef DL_GLOBAL
11855 #    define LT_DLGLOBAL         DL_GLOBAL
11856 #  else
11857 #    define LT_DLGLOBAL         0
11858 #  endif
11859 #endif
11860
11861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11862    find out it does not work in some platform. */
11863 #ifndef LT_DLLAZY_OR_NOW
11864 #  ifdef RTLD_LAZY
11865 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11866 #  else
11867 #    ifdef DL_LAZY
11868 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11869 #    else
11870 #      ifdef RTLD_NOW
11871 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11872 #      else
11873 #        ifdef DL_NOW
11874 #          define LT_DLLAZY_OR_NOW      DL_NOW
11875 #        else
11876 #          define LT_DLLAZY_OR_NOW      0
11877 #        endif
11878 #      endif
11879 #    endif
11880 #  endif
11881 #endif
11882
11883 #ifdef __cplusplus
11884 extern "C" void exit (int);
11885 #endif
11886
11887 void fnord() { int i=42;}
11888 int main ()
11889 {
11890   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11891   int status = $lt_dlunknown;
11892
11893   if (self)
11894     {
11895       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11896       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11897       /* dlclose (self); */
11898     }
11899
11900     exit (status);
11901 }
11902 EOF
11903   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904   (eval $ac_link) 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11908     (./conftest; exit; ) 2>/dev/null
11909     lt_status=$?
11910     case x$lt_status in
11911       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11912       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11913       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11914     esac
11915   else :
11916     # compilation failed
11917     lt_cv_dlopen_self_static=no
11918   fi
11919 fi
11920 rm -fr conftest*
11921
11922
11923 fi
11924 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11925 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11926     fi
11927
11928     CPPFLAGS="$save_CPPFLAGS"
11929     LDFLAGS="$save_LDFLAGS"
11930     LIBS="$save_LIBS"
11931     ;;
11932   esac
11933
11934   case $lt_cv_dlopen_self in
11935   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11936   *) enable_dlopen_self=unknown ;;
11937   esac
11938
11939   case $lt_cv_dlopen_self_static in
11940   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11941   *) enable_dlopen_self_static=unknown ;;
11942   esac
11943 fi
11944
11945
11946 # The else clause should only fire when bootstrapping the
11947 # libtool distribution, otherwise you forgot to ship ltmain.sh
11948 # with your package, and you will get complaints that there are
11949 # no rules to generate ltmain.sh.
11950 if test -f "$ltmain"; then
11951   # See if we are running on zsh, and set the options which allow our commands through
11952   # without removal of \ escapes.
11953   if test -n "${ZSH_VERSION+set}" ; then
11954     setopt NO_GLOB_SUBST
11955   fi
11956   # Now quote all the things that may contain metacharacters while being
11957   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11958   # variables and quote the copies for generation of the libtool script.
11959   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11960     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11961     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11962     deplibs_check_method reload_flag reload_cmds need_locks \
11963     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11964     lt_cv_sys_global_symbol_to_c_name_address \
11965     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11966     old_postinstall_cmds old_postuninstall_cmds \
11967     compiler_CXX \
11968     CC_CXX \
11969     LD_CXX \
11970     lt_prog_compiler_wl_CXX \
11971     lt_prog_compiler_pic_CXX \
11972     lt_prog_compiler_static_CXX \
11973     lt_prog_compiler_no_builtin_flag_CXX \
11974     export_dynamic_flag_spec_CXX \
11975     thread_safe_flag_spec_CXX \
11976     whole_archive_flag_spec_CXX \
11977     enable_shared_with_static_runtimes_CXX \
11978     old_archive_cmds_CXX \
11979     old_archive_from_new_cmds_CXX \
11980     predep_objects_CXX \
11981     postdep_objects_CXX \
11982     predeps_CXX \
11983     postdeps_CXX \
11984     compiler_lib_search_path_CXX \
11985     archive_cmds_CXX \
11986     archive_expsym_cmds_CXX \
11987     postinstall_cmds_CXX \
11988     postuninstall_cmds_CXX \
11989     old_archive_from_expsyms_cmds_CXX \
11990     allow_undefined_flag_CXX \
11991     no_undefined_flag_CXX \
11992     export_symbols_cmds_CXX \
11993     hardcode_libdir_flag_spec_CXX \
11994     hardcode_libdir_flag_spec_ld_CXX \
11995     hardcode_libdir_separator_CXX \
11996     hardcode_automatic_CXX \
11997     module_cmds_CXX \
11998     module_expsym_cmds_CXX \
11999     lt_cv_prog_compiler_c_o_CXX \
12000     exclude_expsyms_CXX \
12001     include_expsyms_CXX; do
12002
12003     case $var in
12004     old_archive_cmds_CXX | \
12005     old_archive_from_new_cmds_CXX | \
12006     archive_cmds_CXX | \
12007     archive_expsym_cmds_CXX | \
12008     module_cmds_CXX | \
12009     module_expsym_cmds_CXX | \
12010     old_archive_from_expsyms_cmds_CXX | \
12011     export_symbols_cmds_CXX | \
12012     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12013     postinstall_cmds | postuninstall_cmds | \
12014     old_postinstall_cmds | old_postuninstall_cmds | \
12015     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12016       # Double-quote double-evaled strings.
12017       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12018       ;;
12019     *)
12020       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12021       ;;
12022     esac
12023   done
12024
12025   case $lt_echo in
12026   *'\$0 --fallback-echo"')
12027     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12028     ;;
12029   esac
12030
12031 cfgfile="$ofile"
12032
12033   cat <<__EOF__ >> "$cfgfile"
12034 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12035
12036 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12037
12038 # Shell to use when invoking shell scripts.
12039 SHELL=$lt_SHELL
12040
12041 # Whether or not to build shared libraries.
12042 build_libtool_libs=$enable_shared
12043
12044 # Whether or not to build static libraries.
12045 build_old_libs=$enable_static
12046
12047 # Whether or not to add -lc for building shared libraries.
12048 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12049
12050 # Whether or not to disallow shared libs when runtime libs are static
12051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12052
12053 # Whether or not to optimize for fast installation.
12054 fast_install=$enable_fast_install
12055
12056 # The host system.
12057 host_alias=$host_alias
12058 host=$host
12059
12060 # An echo program that does not interpret backslashes.
12061 echo=$lt_echo
12062
12063 # The archiver.
12064 AR=$lt_AR
12065 AR_FLAGS=$lt_AR_FLAGS
12066
12067 # A C compiler.
12068 LTCC=$lt_LTCC
12069
12070 # A language-specific compiler.
12071 CC=$lt_compiler_CXX
12072
12073 # Is the compiler the GNU C compiler?
12074 with_gcc=$GCC_CXX
12075
12076 # An ERE matcher.
12077 EGREP=$lt_EGREP
12078
12079 # The linker used to build libraries.
12080 LD=$lt_LD_CXX
12081
12082 # Whether we need hard or soft links.
12083 LN_S=$lt_LN_S
12084
12085 # A BSD-compatible nm program.
12086 NM=$lt_NM
12087
12088 # A symbol stripping program
12089 STRIP=$STRIP
12090
12091 # Used to examine libraries when file_magic_cmd begins "file"
12092 MAGIC_CMD=$MAGIC_CMD
12093
12094 # Used on cygwin: DLL creation program.
12095 DLLTOOL="$DLLTOOL"
12096
12097 # Used on cygwin: object dumper.
12098 OBJDUMP="$OBJDUMP"
12099
12100 # Used on cygwin: assembler.
12101 AS="$AS"
12102
12103 # The name of the directory that contains temporary libtool files.
12104 objdir=$objdir
12105
12106 # How to create reloadable object files.
12107 reload_flag=$lt_reload_flag
12108 reload_cmds=$lt_reload_cmds
12109
12110 # How to pass a linker flag through the compiler.
12111 wl=$lt_lt_prog_compiler_wl_CXX
12112
12113 # Object file suffix (normally "o").
12114 objext="$ac_objext"
12115
12116 # Old archive suffix (normally "a").
12117 libext="$libext"
12118
12119 # Shared library suffix (normally ".so").
12120 shrext='$shrext'
12121
12122 # Executable file suffix (normally "").
12123 exeext="$exeext"
12124
12125 # Additional compiler flags for building library objects.
12126 pic_flag=$lt_lt_prog_compiler_pic_CXX
12127 pic_mode=$pic_mode
12128
12129 # What is the maximum length of a command?
12130 max_cmd_len=$lt_cv_sys_max_cmd_len
12131
12132 # Does compiler simultaneously support -c and -o options?
12133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12134
12135 # Must we lock files when doing compilation ?
12136 need_locks=$lt_need_locks
12137
12138 # Do we need the lib prefix for modules?
12139 need_lib_prefix=$need_lib_prefix
12140
12141 # Do we need a version for libraries?
12142 need_version=$need_version
12143
12144 # Whether dlopen is supported.
12145 dlopen_support=$enable_dlopen
12146
12147 # Whether dlopen of programs is supported.
12148 dlopen_self=$enable_dlopen_self
12149
12150 # Whether dlopen of statically linked programs is supported.
12151 dlopen_self_static=$enable_dlopen_self_static
12152
12153 # Compiler flag to prevent dynamic linking.
12154 link_static_flag=$lt_lt_prog_compiler_static_CXX
12155
12156 # Compiler flag to turn off builtin functions.
12157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12158
12159 # Compiler flag to allow reflexive dlopens.
12160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12161
12162 # Compiler flag to generate shared objects directly from archives.
12163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12164
12165 # Compiler flag to generate thread-safe objects.
12166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12167
12168 # Library versioning type.
12169 version_type=$version_type
12170
12171 # Format of library name prefix.
12172 libname_spec=$lt_libname_spec
12173
12174 # List of archive names.  First name is the real one, the rest are links.
12175 # The last name is the one that the linker finds with -lNAME.
12176 library_names_spec=$lt_library_names_spec
12177
12178 # The coded name of the library, if different from the real name.
12179 soname_spec=$lt_soname_spec
12180
12181 # Commands used to build and install an old-style archive.
12182 RANLIB=$lt_RANLIB
12183 old_archive_cmds=$lt_old_archive_cmds_CXX
12184 old_postinstall_cmds=$lt_old_postinstall_cmds
12185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12186
12187 # Create an old-style archive from a shared archive.
12188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12189
12190 # Create a temporary old-style archive to link instead of a shared archive.
12191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12192
12193 # Commands used to build and install a shared archive.
12194 archive_cmds=$lt_archive_cmds_CXX
12195 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12196 postinstall_cmds=$lt_postinstall_cmds
12197 postuninstall_cmds=$lt_postuninstall_cmds
12198
12199 # Commands used to build a loadable module (assumed same as above if empty)
12200 module_cmds=$lt_module_cmds_CXX
12201 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12202
12203 # Commands to strip libraries.
12204 old_striplib=$lt_old_striplib
12205 striplib=$lt_striplib
12206
12207 # Dependencies to place before the objects being linked to create a
12208 # shared library.
12209 predep_objects=$lt_predep_objects_CXX
12210
12211 # Dependencies to place after the objects being linked to create a
12212 # shared library.
12213 postdep_objects=$lt_postdep_objects_CXX
12214
12215 # Dependencies to place before the objects being linked to create a
12216 # shared library.
12217 predeps=$lt_predeps_CXX
12218
12219 # Dependencies to place after the objects being linked to create a
12220 # shared library.
12221 postdeps=$lt_postdeps_CXX
12222
12223 # The library search path used internally by the compiler when linking
12224 # a shared library.
12225 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12226
12227 # Method to check whether dependent libraries are shared objects.
12228 deplibs_check_method=$lt_deplibs_check_method
12229
12230 # Command to use when deplibs_check_method == file_magic.
12231 file_magic_cmd=$lt_file_magic_cmd
12232
12233 # Flag that allows shared libraries with undefined symbols to be built.
12234 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12235
12236 # Flag that forces no undefined symbols.
12237 no_undefined_flag=$lt_no_undefined_flag_CXX
12238
12239 # Commands used to finish a libtool library installation in a directory.
12240 finish_cmds=$lt_finish_cmds
12241
12242 # Same as above, but a single script fragment to be evaled but not shown.
12243 finish_eval=$lt_finish_eval
12244
12245 # Take the output of nm and produce a listing of raw symbols and C names.
12246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12247
12248 # Transform the output of nm in a proper C declaration
12249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12250
12251 # Transform the output of nm in a C name address pair
12252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12253
12254 # This is the shared library runtime path variable.
12255 runpath_var=$runpath_var
12256
12257 # This is the shared library path variable.
12258 shlibpath_var=$shlibpath_var
12259
12260 # Is shlibpath searched before the hard-coded library search path?
12261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12262
12263 # How to hardcode a shared library path into an executable.
12264 hardcode_action=$hardcode_action_CXX
12265
12266 # Whether we should hardcode library paths into libraries.
12267 hardcode_into_libs=$hardcode_into_libs
12268
12269 # Flag to hardcode \$libdir into a binary during linking.
12270 # This must work even if \$libdir does not exist.
12271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12272
12273 # If ld is used when linking, flag to hardcode \$libdir into
12274 # a binary during linking. This must work even if \$libdir does
12275 # not exist.
12276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12277
12278 # Whether we need a single -rpath flag with a separated argument.
12279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12280
12281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12282 # resulting binary.
12283 hardcode_direct=$hardcode_direct_CXX
12284
12285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12286 # resulting binary.
12287 hardcode_minus_L=$hardcode_minus_L_CXX
12288
12289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12290 # the resulting binary.
12291 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12292
12293 # Set to yes if building a shared library automatically hardcodes DIR into the library
12294 # and all subsequent libraries and executables linked against it.
12295 hardcode_automatic=$hardcode_automatic_CXX
12296
12297 # Variables whose values should be saved in libtool wrapper scripts and
12298 # restored at relink time.
12299 variables_saved_for_relink="$variables_saved_for_relink"
12300
12301 # Whether libtool must link a program against all its dependency libraries.
12302 link_all_deplibs=$link_all_deplibs_CXX
12303
12304 # Compile-time system search path for libraries
12305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12306
12307 # Run-time system search path for libraries
12308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12309
12310 # Fix the shell variable \$srcfile for the compiler.
12311 fix_srcfile_path="$fix_srcfile_path_CXX"
12312
12313 # Set to yes if exported symbols are required.
12314 always_export_symbols=$always_export_symbols_CXX
12315
12316 # The commands to list exported symbols.
12317 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12318
12319 # The commands to extract the exported symbol list from a shared archive.
12320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12321
12322 # Symbols that should not be listed in the preloaded symbols.
12323 exclude_expsyms=$lt_exclude_expsyms_CXX
12324
12325 # Symbols that must always be exported.
12326 include_expsyms=$lt_include_expsyms_CXX
12327
12328 # ### END LIBTOOL TAG CONFIG: $tagname
12329
12330 __EOF__
12331
12332
12333 else
12334   # If there is no Makefile yet, we rely on a make rule to execute
12335   # `config.status --recheck' to rerun these tests and create the
12336   # libtool script then.
12337   test -f Makefile && make "$ltmain"
12338 fi
12339
12340
12341 ac_ext=c
12342 ac_cpp='$CPP $CPPFLAGS'
12343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12346
12347 CC=$lt_save_CC
12348 LDCXX=$LD
12349 LD=$lt_save_LD
12350 GCC=$lt_save_GCC
12351 with_gnu_ldcxx=$with_gnu_ld
12352 with_gnu_ld=$lt_save_with_gnu_ld
12353 lt_cv_path_LDCXX=$lt_cv_path_LD
12354 lt_cv_path_LD=$lt_save_path_LD
12355 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12356 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12357
12358         else
12359           tagname=""
12360         fi
12361         ;;
12362
12363       F77)
12364         if test -n "$F77" && test "X$F77" != "Xno"; then
12365
12366 ac_ext=f
12367 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12368 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12369 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12370
12371
12372 archive_cmds_need_lc_F77=no
12373 allow_undefined_flag_F77=
12374 always_export_symbols_F77=no
12375 archive_expsym_cmds_F77=
12376 export_dynamic_flag_spec_F77=
12377 hardcode_direct_F77=no
12378 hardcode_libdir_flag_spec_F77=
12379 hardcode_libdir_flag_spec_ld_F77=
12380 hardcode_libdir_separator_F77=
12381 hardcode_minus_L_F77=no
12382 hardcode_automatic_F77=no
12383 module_cmds_F77=
12384 module_expsym_cmds_F77=
12385 link_all_deplibs_F77=unknown
12386 old_archive_cmds_F77=$old_archive_cmds
12387 no_undefined_flag_F77=
12388 whole_archive_flag_spec_F77=
12389 enable_shared_with_static_runtimes_F77=no
12390
12391 # Source file extension for f77 test sources.
12392 ac_ext=f
12393
12394 # Object file extension for compiled f77 test sources.
12395 objext=o
12396 objext_F77=$objext
12397
12398 # Code to be used in simple compile tests
12399 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12400
12401 # Code to be used in simple link tests
12402 lt_simple_link_test_code="      program t\n      end\n"
12403
12404 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12405
12406 # If no C compiler was specified, use CC.
12407 LTCC=${LTCC-"$CC"}
12408
12409 # Allow CC to be a program name with arguments.
12410 compiler=$CC
12411
12412
12413 # Allow CC to be a program name with arguments.
12414 lt_save_CC="$CC"
12415 CC=${F77-"f77"}
12416 compiler=$CC
12417 compiler_F77=$CC
12418 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12419
12420 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12421 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12422 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12423 echo "${ECHO_T}$can_build_shared" >&6
12424
12425 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12426 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12427 test "$can_build_shared" = "no" && enable_shared=no
12428
12429 # On AIX, shared libraries and static libraries use the same namespace, and
12430 # are all built from PIC.
12431 case "$host_os" in
12432 aix3*)
12433   test "$enable_shared" = yes && enable_static=no
12434   if test -n "$RANLIB"; then
12435     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12436     postinstall_cmds='$RANLIB $lib'
12437   fi
12438   ;;
12439 aix4*)
12440   test "$enable_shared" = yes && enable_static=no
12441   ;;
12442 esac
12443 echo "$as_me:$LINENO: result: $enable_shared" >&5
12444 echo "${ECHO_T}$enable_shared" >&6
12445
12446 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12447 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12448 # Make sure either enable_shared or enable_static is yes.
12449 test "$enable_shared" = yes || enable_static=yes
12450 echo "$as_me:$LINENO: result: $enable_static" >&5
12451 echo "${ECHO_T}$enable_static" >&6
12452
12453 test "$ld_shlibs_F77" = no && can_build_shared=no
12454
12455 GCC_F77="$G77"
12456 LD_F77="$LD"
12457
12458 lt_prog_compiler_wl_F77=
12459 lt_prog_compiler_pic_F77=
12460 lt_prog_compiler_static_F77=
12461
12462 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12464
12465   if test "$GCC" = yes; then
12466     lt_prog_compiler_wl_F77='-Wl,'
12467     lt_prog_compiler_static_F77='-static'
12468
12469     case $host_os in
12470       aix*)
12471       # All AIX code is PIC.
12472       if test "$host_cpu" = ia64; then
12473         # AIX 5 now supports IA64 processor
12474         lt_prog_compiler_static_F77='-Bstatic'
12475       fi
12476       ;;
12477
12478     amigaos*)
12479       # FIXME: we need at least 68020 code to build shared libraries, but
12480       # adding the `-m68020' flag to GCC prevents building anything better,
12481       # like `-m68040'.
12482       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12483       ;;
12484
12485     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12486       # PIC is the default for these OSes.
12487       ;;
12488
12489     mingw* | pw32* | os2*)
12490       # This hack is so that the source file can tell whether it is being
12491       # built for inclusion in a dll (and should export symbols for example).
12492       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12493       ;;
12494
12495     darwin* | rhapsody*)
12496       # PIC is the default on this platform
12497       # Common symbols not allowed in MH_DYLIB files
12498       lt_prog_compiler_pic_F77='-fno-common'
12499       ;;
12500
12501     msdosdjgpp*)
12502       # Just because we use GCC doesn't mean we suddenly get shared libraries
12503       # on systems that don't support them.
12504       lt_prog_compiler_can_build_shared_F77=no
12505       enable_shared=no
12506       ;;
12507
12508     sysv4*MP*)
12509       if test -d /usr/nec; then
12510         lt_prog_compiler_pic_F77=-Kconform_pic
12511       fi
12512       ;;
12513
12514     hpux*)
12515       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12516       # not for PA HP-UX.
12517       case "$host_cpu" in
12518       hppa*64*|ia64*)
12519         # +Z the default
12520         ;;
12521       *)
12522         lt_prog_compiler_pic_F77='-fPIC'
12523         ;;
12524       esac
12525       ;;
12526
12527     *)
12528       lt_prog_compiler_pic_F77='-fPIC'
12529       ;;
12530     esac
12531   else
12532     # PORTME Check for flag to pass linker flags through the system compiler.
12533     case $host_os in
12534     aix*)
12535       lt_prog_compiler_wl_F77='-Wl,'
12536       if test "$host_cpu" = ia64; then
12537         # AIX 5 now supports IA64 processor
12538         lt_prog_compiler_static_F77='-Bstatic'
12539       else
12540         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12541       fi
12542       ;;
12543
12544     mingw* | pw32* | os2*)
12545       # This hack is so that the source file can tell whether it is being
12546       # built for inclusion in a dll (and should export symbols for example).
12547       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12548       ;;
12549
12550     hpux9* | hpux10* | hpux11*)
12551       lt_prog_compiler_wl_F77='-Wl,'
12552       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12553       # not for PA HP-UX.
12554       case "$host_cpu" in
12555       hppa*64*|ia64*)
12556         # +Z the default
12557         ;;
12558       *)
12559         lt_prog_compiler_pic_F77='+Z'
12560         ;;
12561       esac
12562       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12563       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12564       ;;
12565
12566     irix5* | irix6* | nonstopux*)
12567       lt_prog_compiler_wl_F77='-Wl,'
12568       # PIC (with -KPIC) is the default.
12569       lt_prog_compiler_static_F77='-non_shared'
12570       ;;
12571
12572     newsos6)
12573       lt_prog_compiler_pic_F77='-KPIC'
12574       lt_prog_compiler_static_F77='-Bstatic'
12575       ;;
12576
12577     linux*)
12578       case $CC in
12579       icc|ecc)
12580         lt_prog_compiler_wl_F77='-Wl,'
12581         lt_prog_compiler_pic_F77='-KPIC'
12582         lt_prog_compiler_static_F77='-static'
12583         ;;
12584       ccc)
12585         lt_prog_compiler_wl_F77='-Wl,'
12586         # All Alpha code is PIC.
12587         lt_prog_compiler_static_F77='-non_shared'
12588         ;;
12589       esac
12590       ;;
12591
12592     osf3* | osf4* | osf5*)
12593       lt_prog_compiler_wl_F77='-Wl,'
12594       # All OSF/1 code is PIC.
12595       lt_prog_compiler_static_F77='-non_shared'
12596       ;;
12597
12598     sco3.2v5*)
12599       lt_prog_compiler_pic_F77='-Kpic'
12600       lt_prog_compiler_static_F77='-dn'
12601       ;;
12602
12603     solaris*)
12604       lt_prog_compiler_wl_F77='-Wl,'
12605       lt_prog_compiler_pic_F77='-KPIC'
12606       lt_prog_compiler_static_F77='-Bstatic'
12607       ;;
12608
12609     sunos4*)
12610       lt_prog_compiler_wl_F77='-Qoption ld '
12611       lt_prog_compiler_pic_F77='-PIC'
12612       lt_prog_compiler_static_F77='-Bstatic'
12613       ;;
12614
12615     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12616       lt_prog_compiler_wl_F77='-Wl,'
12617       lt_prog_compiler_pic_F77='-KPIC'
12618       lt_prog_compiler_static_F77='-Bstatic'
12619       ;;
12620
12621     sysv4*MP*)
12622       if test -d /usr/nec ;then
12623         lt_prog_compiler_pic_F77='-Kconform_pic'
12624         lt_prog_compiler_static_F77='-Bstatic'
12625       fi
12626       ;;
12627
12628     uts4*)
12629       lt_prog_compiler_pic_F77='-pic'
12630       lt_prog_compiler_static_F77='-Bstatic'
12631       ;;
12632
12633     *)
12634       lt_prog_compiler_can_build_shared_F77=no
12635       ;;
12636     esac
12637   fi
12638
12639 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12640 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12641
12642 #
12643 # Check to make sure the PIC flag actually works.
12644 #
12645 if test -n "$lt_prog_compiler_pic_F77"; then
12646   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12647 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12648 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12649   echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651   lt_prog_compiler_pic_works_F77=no
12652   ac_outfile=conftest.$ac_objext
12653    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12654    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12655    # Insert the option either (1) after the last *FLAGS variable, or
12656    # (2) before a word containing "conftest.", or (3) at the end.
12657    # Note that $ac_compile itself does not contain backslashes and begins
12658    # with a dollar sign (not a hyphen), so the echo should work correctly.
12659    # The option is referenced via a variable to avoid confusing sed.
12660    lt_compile=`echo "$ac_compile" | $SED \
12661    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12662    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12663    -e 's:$: $lt_compiler_flag:'`
12664    (eval echo "\"\$as_me:12664: $lt_compile\"" >&5)
12665    (eval "$lt_compile" 2>conftest.err)
12666    ac_status=$?
12667    cat conftest.err >&5
12668    echo "$as_me:12668: \$? = $ac_status" >&5
12669    if (exit $ac_status) && test -s "$ac_outfile"; then
12670      # The compiler can only warn and ignore the option if not recognized
12671      # So say no if there are warnings
12672      if test ! -s conftest.err; then
12673        lt_prog_compiler_pic_works_F77=yes
12674      fi
12675    fi
12676    $rm conftest*
12677
12678 fi
12679 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12680 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12681
12682 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12683     case $lt_prog_compiler_pic_F77 in
12684      "" | " "*) ;;
12685      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12686      esac
12687 else
12688     lt_prog_compiler_pic_F77=
12689      lt_prog_compiler_can_build_shared_F77=no
12690 fi
12691
12692 fi
12693 case "$host_os" in
12694   # For platforms which do not support PIC, -DPIC is meaningless:
12695   *djgpp*)
12696     lt_prog_compiler_pic_F77=
12697     ;;
12698   *)
12699     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12700     ;;
12701 esac
12702
12703 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12704 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12705 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12706   echo $ECHO_N "(cached) $ECHO_C" >&6
12707 else
12708   lt_cv_prog_compiler_c_o_F77=no
12709    $rm -r conftest 2>/dev/null
12710    mkdir conftest
12711    cd conftest
12712    mkdir out
12713    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12714
12715    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12716    # that will create temporary files in the current directory regardless of
12717    # the output directory.  Thus, making CWD read-only will cause this test
12718    # to fail, enabling locking or at least warning the user not to do parallel
12719    # builds.
12720    chmod -w .
12721
12722    lt_compiler_flag="-o out/conftest2.$ac_objext"
12723    # Insert the option either (1) after the last *FLAGS variable, or
12724    # (2) before a word containing "conftest.", or (3) at the end.
12725    # Note that $ac_compile itself does not contain backslashes and begins
12726    # with a dollar sign (not a hyphen), so the echo should work correctly.
12727    lt_compile=`echo "$ac_compile" | $SED \
12728    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12730    -e 's:$: $lt_compiler_flag:'`
12731    (eval echo "\"\$as_me:12731: $lt_compile\"" >&5)
12732    (eval "$lt_compile" 2>out/conftest.err)
12733    ac_status=$?
12734    cat out/conftest.err >&5
12735    echo "$as_me:12735: \$? = $ac_status" >&5
12736    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12737    then
12738      # The compiler can only warn and ignore the option if not recognized
12739      # So say no if there are warnings
12740      if test ! -s out/conftest.err; then
12741        lt_cv_prog_compiler_c_o_F77=yes
12742      fi
12743    fi
12744    chmod u+w .
12745    $rm conftest* out/*
12746    rmdir out
12747    cd ..
12748    rmdir conftest
12749    $rm conftest*
12750
12751 fi
12752 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12753 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12754
12755
12756 hard_links="nottested"
12757 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12758   # do not overwrite the value of need_locks provided by the user
12759   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12760 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12761   hard_links=yes
12762   $rm conftest*
12763   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12764   touch conftest.a
12765   ln conftest.a conftest.b 2>&5 || hard_links=no
12766   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12767   echo "$as_me:$LINENO: result: $hard_links" >&5
12768 echo "${ECHO_T}$hard_links" >&6
12769   if test "$hard_links" = no; then
12770     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12771 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12772     need_locks=warn
12773   fi
12774 else
12775   need_locks=no
12776 fi
12777
12778 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12779 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12780
12781   runpath_var=
12782   allow_undefined_flag_F77=
12783   enable_shared_with_static_runtimes_F77=no
12784   archive_cmds_F77=
12785   archive_expsym_cmds_F77=
12786   old_archive_From_new_cmds_F77=
12787   old_archive_from_expsyms_cmds_F77=
12788   export_dynamic_flag_spec_F77=
12789   whole_archive_flag_spec_F77=
12790   thread_safe_flag_spec_F77=
12791   hardcode_libdir_flag_spec_F77=
12792   hardcode_libdir_flag_spec_ld_F77=
12793   hardcode_libdir_separator_F77=
12794   hardcode_direct_F77=no
12795   hardcode_minus_L_F77=no
12796   hardcode_shlibpath_var_F77=unsupported
12797   link_all_deplibs_F77=unknown
12798   hardcode_automatic_F77=no
12799   module_cmds_F77=
12800   module_expsym_cmds_F77=
12801   always_export_symbols_F77=no
12802   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12803   # include_expsyms should be a list of space-separated symbols to be *always*
12804   # included in the symbol list
12805   include_expsyms_F77=
12806   # exclude_expsyms can be an extended regexp of symbols to exclude
12807   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12808   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12809   # as well as any symbol that contains `d'.
12810   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12811   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12812   # platforms (ab)use it in PIC code, but their linkers get confused if
12813   # the symbol is explicitly referenced.  Since portable code cannot
12814   # rely on this symbol name, it's probably fine to never include it in
12815   # preloaded symbol tables.
12816   extract_expsyms_cmds=
12817
12818   case $host_os in
12819   cygwin* | mingw* | pw32*)
12820     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12821     # When not using gcc, we currently assume that we are using
12822     # Microsoft Visual C++.
12823     if test "$GCC" != yes; then
12824       with_gnu_ld=no
12825     fi
12826     ;;
12827   openbsd*)
12828     with_gnu_ld=no
12829     ;;
12830   esac
12831
12832   ld_shlibs_F77=yes
12833   if test "$with_gnu_ld" = yes; then
12834     # If archive_cmds runs LD, not CC, wlarc should be empty
12835     wlarc='${wl}'
12836
12837     # See if GNU ld supports shared libraries.
12838     case $host_os in
12839     aix3* | aix4* | aix5*)
12840       # On AIX/PPC, the GNU linker is very broken
12841       if test "$host_cpu" != ia64; then
12842         ld_shlibs_F77=no
12843         cat <<EOF 1>&2
12844
12845 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12846 *** to be unable to reliably create shared libraries on AIX.
12847 *** Therefore, libtool is disabling shared libraries support.  If you
12848 *** really care for shared libraries, you may want to modify your PATH
12849 *** so that a non-GNU linker is found, and then restart.
12850
12851 EOF
12852       fi
12853       ;;
12854
12855     amigaos*)
12856       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)'
12857       hardcode_libdir_flag_spec_F77='-L$libdir'
12858       hardcode_minus_L_F77=yes
12859
12860       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12861       # that the semantics of dynamic libraries on AmigaOS, at least up
12862       # to version 4, is to share data among multiple programs linked
12863       # with the same dynamic library.  Since this doesn't match the
12864       # behavior of shared libraries on other platforms, we can't use
12865       # them.
12866       ld_shlibs_F77=no
12867       ;;
12868
12869     beos*)
12870       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12871         allow_undefined_flag_F77=unsupported
12872         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12873         # support --undefined.  This deserves some investigation.  FIXME
12874         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875       else
12876         ld_shlibs_F77=no
12877       fi
12878       ;;
12879
12880     cygwin* | mingw* | pw32*)
12881       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12882       # as there is no search path for DLLs.
12883       hardcode_libdir_flag_spec_F77='-L$libdir'
12884       allow_undefined_flag_F77=unsupported
12885       always_export_symbols_F77=no
12886       enable_shared_with_static_runtimes_F77=yes
12887       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12888
12889       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12890         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12891         # If the export-symbols file already is a .def file (1st line
12892         # is EXPORTS), use it as is; otherwise, prepend...
12893         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12894           cp $export_symbols $output_objdir/$soname.def;
12895         else
12896           echo EXPORTS > $output_objdir/$soname.def;
12897           cat $export_symbols >> $output_objdir/$soname.def;
12898         fi~
12899         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12900       else
12901         ld_shlibs=no
12902       fi
12903       ;;
12904
12905     netbsd*)
12906       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12907         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12908         wlarc=
12909       else
12910         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12911         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12912       fi
12913       ;;
12914
12915     solaris* | sysv5*)
12916       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12917         ld_shlibs_F77=no
12918         cat <<EOF 1>&2
12919
12920 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12921 *** create shared libraries on Solaris systems.  Therefore, libtool
12922 *** is disabling shared libraries support.  We urge you to upgrade GNU
12923 *** binutils to release 2.9.1 or newer.  Another option is to modify
12924 *** your PATH or compiler configuration so that the native linker is
12925 *** used, and then restart.
12926
12927 EOF
12928       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12929         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12930         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12931       else
12932         ld_shlibs_F77=no
12933       fi
12934       ;;
12935
12936     sunos4*)
12937       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12938       wlarc=
12939       hardcode_direct_F77=yes
12940       hardcode_shlibpath_var_F77=no
12941       ;;
12942
12943     *)
12944       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12945         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12946         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12947       else
12948         ld_shlibs_F77=no
12949       fi
12950       ;;
12951     esac
12952
12953     if test "$ld_shlibs_F77" = yes; then
12954       runpath_var=LD_RUN_PATH
12955       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12956       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12957       # ancient GNU ld didn't support --whole-archive et. al.
12958       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12959         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12960       else
12961         whole_archive_flag_spec_F77=
12962       fi
12963     fi
12964   else
12965     # PORTME fill in a description of your system's linker (not GNU ld)
12966     case $host_os in
12967     aix3*)
12968       allow_undefined_flag_F77=unsupported
12969       always_export_symbols_F77=yes
12970       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'
12971       # Note: this linker hardcodes the directories in LIBPATH if there
12972       # are no directories specified by -L.
12973       hardcode_minus_L_F77=yes
12974       if test "$GCC" = yes && test -z "$link_static_flag"; then
12975         # Neither direct hardcoding nor static linking is supported with a
12976         # broken collect2.
12977         hardcode_direct_F77=unsupported
12978       fi
12979       ;;
12980
12981     aix4* | aix5*)
12982       if test "$host_cpu" = ia64; then
12983         # On IA64, the linker does run time linking by default, so we don't
12984         # have to do anything special.
12985         aix_use_runtimelinking=no
12986         exp_sym_flag='-Bexport'
12987         no_entry_flag=""
12988       else
12989         # If we're using GNU nm, then we don't want the "-C" option.
12990         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12991         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12992           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'
12993         else
12994           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'
12995         fi
12996         aix_use_runtimelinking=no
12997
12998         # Test if we are trying to use run time linking or normal
12999         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13000         # need to do runtime linking.
13001         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13002           for ld_flag in $LDFLAGS; do
13003           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13004             aix_use_runtimelinking=yes
13005             break
13006           fi
13007           done
13008         esac
13009
13010         exp_sym_flag='-bexport'
13011         no_entry_flag='-bnoentry'
13012       fi
13013
13014       # When large executables or shared objects are built, AIX ld can
13015       # have problems creating the table of contents.  If linking a library
13016       # or program results in "error TOC overflow" add -mminimal-toc to
13017       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13018       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13019
13020       archive_cmds_F77=''
13021       hardcode_direct_F77=yes
13022       hardcode_libdir_separator_F77=':'
13023       link_all_deplibs_F77=yes
13024
13025       if test "$GCC" = yes; then
13026         case $host_os in aix4.012|aix4.012.*)
13027         # We only want to do this on AIX 4.2 and lower, the check
13028         # below for broken collect2 doesn't work under 4.3+
13029           collect2name=`${CC} -print-prog-name=collect2`
13030           if test -f "$collect2name" && \
13031            strings "$collect2name" | grep resolve_lib_name >/dev/null
13032           then
13033           # We have reworked collect2
13034           hardcode_direct_F77=yes
13035           else
13036           # We have old collect2
13037           hardcode_direct_F77=unsupported
13038           # It fails to find uninstalled libraries when the uninstalled
13039           # path is not listed in the libpath.  Setting hardcode_minus_L
13040           # to unsupported forces relinking
13041           hardcode_minus_L_F77=yes
13042           hardcode_libdir_flag_spec_F77='-L$libdir'
13043           hardcode_libdir_separator_F77=
13044           fi
13045         esac
13046         shared_flag='-shared'
13047       else
13048         # not using gcc
13049         if test "$host_cpu" = ia64; then
13050         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13051         # chokes on -Wl,-G. The following line is correct:
13052           shared_flag='-G'
13053         else
13054         if test "$aix_use_runtimelinking" = yes; then
13055             shared_flag='${wl}-G'
13056           else
13057             shared_flag='${wl}-bM:SRE'
13058         fi
13059         fi
13060       fi
13061
13062       # It seems that -bexpall does not export symbols beginning with
13063       # underscore (_), so it is better to generate a list of symbols to export.
13064       always_export_symbols_F77=yes
13065       if test "$aix_use_runtimelinking" = yes; then
13066         # Warning - without using the other runtime loading flags (-brtl),
13067         # -berok will link without error, but may produce a broken library.
13068         allow_undefined_flag_F77='-berok'
13069        # Determine the default libpath from the value encoded in an empty executable.
13070        cat >conftest.$ac_ext <<_ACEOF
13071       program main
13072
13073       end
13074 _ACEOF
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13077   (eval $ac_link) 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } &&
13081          { ac_try='test -s conftest$ac_exeext'
13082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083   (eval $ac_try) 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); }; }; then
13087
13088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13089 }'`
13090 # Check for a 64-bit object if we didn't find anything.
13091 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; }
13092 }'`; fi
13093 else
13094   echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13096
13097 fi
13098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13100
13101        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13102         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"
13103        else
13104         if test "$host_cpu" = ia64; then
13105           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13106           allow_undefined_flag_F77="-z nodefs"
13107           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"
13108         else
13109          # Determine the default libpath from the value encoded in an empty executable.
13110          cat >conftest.$ac_ext <<_ACEOF
13111       program main
13112
13113       end
13114 _ACEOF
13115 rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117   (eval $ac_link) 2>&5
13118   ac_status=$?
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); } &&
13121          { ac_try='test -s conftest$ac_exeext'
13122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123   (eval $ac_try) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; }; then
13127
13128 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13129 }'`
13130 # Check for a 64-bit object if we didn't find anything.
13131 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; }
13132 }'`; fi
13133 else
13134   echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13136
13137 fi
13138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13140
13141          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13142           # Warning - without using the other run time loading flags,
13143           # -berok will link without error, but may produce a broken library.
13144           no_undefined_flag_F77=' ${wl}-bernotok'
13145           allow_undefined_flag_F77=' ${wl}-berok'
13146           # -bexpall does not export symbols beginning with underscore (_)
13147           always_export_symbols_F77=yes
13148           # Exported symbols can be pulled into shared objects from archives
13149           whole_archive_flag_spec_F77=' '
13150           archive_cmds_need_lc_F77=yes
13151           # This is similar to how AIX traditionally builds it's shared libraries.
13152           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'
13153         fi
13154       fi
13155       ;;
13156
13157     amigaos*)
13158       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)'
13159       hardcode_libdir_flag_spec_F77='-L$libdir'
13160       hardcode_minus_L_F77=yes
13161       # see comment about different semantics on the GNU ld section
13162       ld_shlibs_F77=no
13163       ;;
13164
13165     bsdi4*)
13166       export_dynamic_flag_spec_F77=-rdynamic
13167       ;;
13168
13169     cygwin* | mingw* | pw32*)
13170       # When not using gcc, we currently assume that we are using
13171       # Microsoft Visual C++.
13172       # hardcode_libdir_flag_spec is actually meaningless, as there is
13173       # no search path for DLLs.
13174       hardcode_libdir_flag_spec_F77=' '
13175       allow_undefined_flag_F77=unsupported
13176       # Tell ltmain to make .lib files, not .a files.
13177       libext=lib
13178       # Tell ltmain to make .dll files, not .so files.
13179       shrext=".dll"
13180       # FIXME: Setting linknames here is a bad hack.
13181       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13182       # The linker will automatically build a .lib file if we build a DLL.
13183       old_archive_From_new_cmds_F77='true'
13184       # FIXME: Should let the user specify the lib program.
13185       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13186       fix_srcfile_path='`cygpath -w "$srcfile"`'
13187       enable_shared_with_static_runtimes_F77=yes
13188       ;;
13189
13190     darwin* | rhapsody*)
13191     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13192       archive_cmds_need_lc_F77=no
13193       case "$host_os" in
13194       rhapsody* | darwin1.[012])
13195         allow_undefined_flag_F77='-undefined suppress'
13196         ;;
13197       *) # Darwin 1.3 on
13198         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13199         ;;
13200       esac
13201       # FIXME: Relying on posixy $() will cause problems for
13202       #        cross-compilation, but unfortunately the echo tests do not
13203       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13204       #        `"' quotes if we put them in here... so don't!
13205         lt_int_apple_cc_single_mod=no
13206         output_verbose_link_cmd='echo'
13207         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13208           lt_int_apple_cc_single_mod=yes
13209         fi
13210         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13211           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13212         else
13213         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'
13214       fi
13215       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13216       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13217         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13218           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}'
13219         else
13220           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}'
13221         fi
13222           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}'
13223       hardcode_direct_F77=no
13224       hardcode_automatic_F77=yes
13225       hardcode_shlibpath_var_F77=unsupported
13226       whole_archive_flag_spec_F77='-all_load $convenience'
13227       link_all_deplibs_F77=yes
13228     fi
13229       ;;
13230
13231     dgux*)
13232       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13233       hardcode_libdir_flag_spec_F77='-L$libdir'
13234       hardcode_shlibpath_var_F77=no
13235       ;;
13236
13237     freebsd1*)
13238       ld_shlibs_F77=no
13239       ;;
13240
13241     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13242     # support.  Future versions do this automatically, but an explicit c++rt0.o
13243     # does not break anything, and helps significantly (at the cost of a little
13244     # extra space).
13245     freebsd2.2*)
13246       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13247       hardcode_libdir_flag_spec_F77='-R$libdir'
13248       hardcode_direct_F77=yes
13249       hardcode_shlibpath_var_F77=no
13250       ;;
13251
13252     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13253     freebsd2*)
13254       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13255       hardcode_direct_F77=yes
13256       hardcode_minus_L_F77=yes
13257       hardcode_shlibpath_var_F77=no
13258       ;;
13259
13260     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13261     freebsd*)
13262       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13263       hardcode_libdir_flag_spec_F77='-R$libdir'
13264       hardcode_direct_F77=yes
13265       hardcode_shlibpath_var_F77=no
13266       ;;
13267
13268     hpux9*)
13269       if test "$GCC" = yes; then
13270         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'
13271       else
13272         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'
13273       fi
13274       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13275       hardcode_libdir_separator_F77=:
13276       hardcode_direct_F77=yes
13277
13278       # hardcode_minus_L: Not really in the search PATH,
13279       # but as the default location of the library.
13280       hardcode_minus_L_F77=yes
13281       export_dynamic_flag_spec_F77='${wl}-E'
13282       ;;
13283
13284     hpux10* | hpux11*)
13285       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13286         case "$host_cpu" in
13287         hppa*64*|ia64*)
13288           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13289           ;;
13290         *)
13291           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13292           ;;
13293         esac
13294       else
13295         case "$host_cpu" in
13296         hppa*64*|ia64*)
13297           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13298           ;;
13299         *)
13300           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13301           ;;
13302         esac
13303       fi
13304       if test "$with_gnu_ld" = no; then
13305         case "$host_cpu" in
13306         hppa*64*)
13307           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13308           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13309           hardcode_libdir_separator_F77=:
13310           hardcode_direct_F77=no
13311           hardcode_shlibpath_var_F77=no
13312           ;;
13313         ia64*)
13314           hardcode_libdir_flag_spec_F77='-L$libdir'
13315           hardcode_direct_F77=no
13316           hardcode_shlibpath_var_F77=no
13317
13318           # hardcode_minus_L: Not really in the search PATH,
13319           # but as the default location of the library.
13320           hardcode_minus_L_F77=yes
13321           ;;
13322         *)
13323           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13324           hardcode_libdir_separator_F77=:
13325           hardcode_direct_F77=yes
13326           export_dynamic_flag_spec_F77='${wl}-E'
13327
13328           # hardcode_minus_L: Not really in the search PATH,
13329           # but as the default location of the library.
13330           hardcode_minus_L_F77=yes
13331           ;;
13332         esac
13333       fi
13334       ;;
13335
13336     irix5* | irix6* | nonstopux*)
13337       if test "$GCC" = yes; then
13338         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'
13339       else
13340         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'
13341         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13342       fi
13343       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13344       hardcode_libdir_separator_F77=:
13345       link_all_deplibs_F77=yes
13346       ;;
13347
13348     netbsd*)
13349       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13350         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13351       else
13352         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13353       fi
13354       hardcode_libdir_flag_spec_F77='-R$libdir'
13355       hardcode_direct_F77=yes
13356       hardcode_shlibpath_var_F77=no
13357       ;;
13358
13359     newsos6)
13360       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13361       hardcode_direct_F77=yes
13362       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13363       hardcode_libdir_separator_F77=:
13364       hardcode_shlibpath_var_F77=no
13365       ;;
13366
13367     openbsd*)
13368       hardcode_direct_F77=yes
13369       hardcode_shlibpath_var_F77=no
13370       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13371         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13372         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13373         export_dynamic_flag_spec_F77='${wl}-E'
13374       else
13375        case $host_os in
13376          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13377            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13378            hardcode_libdir_flag_spec_F77='-R$libdir'
13379            ;;
13380          *)
13381            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13382            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13383            ;;
13384        esac
13385       fi
13386       ;;
13387
13388     os2*)
13389       hardcode_libdir_flag_spec_F77='-L$libdir'
13390       hardcode_minus_L_F77=yes
13391       allow_undefined_flag_F77=unsupported
13392       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'
13393       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13394       ;;
13395
13396     osf3*)
13397       if test "$GCC" = yes; then
13398         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13399         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'
13400       else
13401         allow_undefined_flag_F77=' -expect_unresolved \*'
13402         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'
13403       fi
13404       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13405       hardcode_libdir_separator_F77=:
13406       ;;
13407
13408     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13409       if test "$GCC" = yes; then
13410         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13411         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'
13412         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13413       else
13414         allow_undefined_flag_F77=' -expect_unresolved \*'
13415         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'
13416         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~
13417         $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'
13418
13419         # Both c and cxx compiler support -rpath directly
13420         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13421       fi
13422       hardcode_libdir_separator_F77=:
13423       ;;
13424
13425     sco3.2v5*)
13426       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13427       hardcode_shlibpath_var_F77=no
13428       export_dynamic_flag_spec_F77='${wl}-Bexport'
13429       runpath_var=LD_RUN_PATH
13430       hardcode_runpath_var=yes
13431       ;;
13432
13433     solaris*)
13434       no_undefined_flag_F77=' -z text'
13435       if test "$GCC" = yes; then
13436         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13437         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13438           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13439       else
13440         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13441         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13442         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13443       fi
13444       hardcode_libdir_flag_spec_F77='-R$libdir'
13445       hardcode_shlibpath_var_F77=no
13446       case $host_os in
13447       solaris2.[0-5] | solaris2.[0-5].*) ;;
13448       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13449         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13450       esac
13451       link_all_deplibs_F77=yes
13452       ;;
13453
13454     sunos4*)
13455       if test "x$host_vendor" = xsequent; then
13456         # Use $CC to link under sequent, because it throws in some extra .o
13457         # files that make .init and .fini sections work.
13458         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13459       else
13460         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13461       fi
13462       hardcode_libdir_flag_spec_F77='-L$libdir'
13463       hardcode_direct_F77=yes
13464       hardcode_minus_L_F77=yes
13465       hardcode_shlibpath_var_F77=no
13466       ;;
13467
13468     sysv4)
13469       case $host_vendor in
13470         sni)
13471           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472           hardcode_direct_F77=yes # is this really true???
13473         ;;
13474         siemens)
13475           ## LD is ld it makes a PLAMLIB
13476           ## CC just makes a GrossModule.
13477           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13478           reload_cmds_F77='$CC -r -o $output$reload_objs'
13479           hardcode_direct_F77=no
13480         ;;
13481         motorola)
13482           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13483           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13484         ;;
13485       esac
13486       runpath_var='LD_RUN_PATH'
13487       hardcode_shlibpath_var_F77=no
13488       ;;
13489
13490     sysv4.3*)
13491       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13492       hardcode_shlibpath_var_F77=no
13493       export_dynamic_flag_spec_F77='-Bexport'
13494       ;;
13495
13496     sysv4*MP*)
13497       if test -d /usr/nec; then
13498         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13499         hardcode_shlibpath_var_F77=no
13500         runpath_var=LD_RUN_PATH
13501         hardcode_runpath_var=yes
13502         ld_shlibs_F77=yes
13503       fi
13504       ;;
13505
13506     sysv4.2uw2*)
13507       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13508       hardcode_direct_F77=yes
13509       hardcode_minus_L_F77=no
13510       hardcode_shlibpath_var_F77=no
13511       hardcode_runpath_var=yes
13512       runpath_var=LD_RUN_PATH
13513       ;;
13514
13515    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13516       no_undefined_flag_F77='${wl}-z ${wl}text'
13517       if test "$GCC" = yes; then
13518         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13519       else
13520         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13521       fi
13522       runpath_var='LD_RUN_PATH'
13523       hardcode_shlibpath_var_F77=no
13524       ;;
13525
13526     sysv5*)
13527       no_undefined_flag_F77=' -z text'
13528       # $CC -shared without GNU ld will not create a library from C++
13529       # object files and a static libstdc++, better avoid it by now
13530       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13531       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13532                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13533       hardcode_libdir_flag_spec_F77=
13534       hardcode_shlibpath_var_F77=no
13535       runpath_var='LD_RUN_PATH'
13536       ;;
13537
13538     uts4*)
13539       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13540       hardcode_libdir_flag_spec_F77='-L$libdir'
13541       hardcode_shlibpath_var_F77=no
13542       ;;
13543
13544     *)
13545       ld_shlibs_F77=no
13546       ;;
13547     esac
13548   fi
13549
13550 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13551 echo "${ECHO_T}$ld_shlibs_F77" >&6
13552 test "$ld_shlibs_F77" = no && can_build_shared=no
13553
13554 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13555 if test "$GCC" = yes; then
13556   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13557 fi
13558
13559 #
13560 # Do we need to explicitly link libc?
13561 #
13562 case "x$archive_cmds_need_lc_F77" in
13563 x|xyes)
13564   # Assume -lc should be added
13565   archive_cmds_need_lc_F77=yes
13566
13567   if test "$enable_shared" = yes && test "$GCC" = yes; then
13568     case $archive_cmds_F77 in
13569     *'~'*)
13570       # FIXME: we may have to deal with multi-command sequences.
13571       ;;
13572     '$CC '*)
13573       # Test whether the compiler implicitly links with -lc since on some
13574       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13575       # to ld, don't add -lc before -lgcc.
13576       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13577 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13578       $rm conftest*
13579       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13580
13581       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582   (eval $ac_compile) 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); } 2>conftest.err; then
13586         soname=conftest
13587         lib=conftest
13588         libobjs=conftest.$ac_objext
13589         deplibs=
13590         wl=$lt_prog_compiler_wl_F77
13591         compiler_flags=-v
13592         linker_flags=-v
13593         verstring=
13594         output_objdir=.
13595         libname=conftest
13596         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13597         allow_undefined_flag_F77=
13598         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13599   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); }
13603         then
13604           archive_cmds_need_lc_F77=no
13605         else
13606           archive_cmds_need_lc_F77=yes
13607         fi
13608         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13609       else
13610         cat conftest.err 1>&5
13611       fi
13612       $rm conftest*
13613       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13614 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13615       ;;
13616     esac
13617   fi
13618   ;;
13619 esac
13620
13621 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13622 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13623 hardcode_action_F77=
13624 if test -n "$hardcode_libdir_flag_spec_F77" || \
13625    test -n "$runpath_var F77" || \
13626    test "X$hardcode_automatic_F77"="Xyes" ; then
13627
13628   # We can hardcode non-existant directories.
13629   if test "$hardcode_direct_F77" != no &&
13630      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13631      # have to relink, otherwise we might link with an installed library
13632      # when we should be linking with a yet-to-be-installed one
13633      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13634      test "$hardcode_minus_L_F77" != no; then
13635     # Linking always hardcodes the temporary library directory.
13636     hardcode_action_F77=relink
13637   else
13638     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13639     hardcode_action_F77=immediate
13640   fi
13641 else
13642   # We cannot hardcode anything, or else we can only hardcode existing
13643   # directories.
13644   hardcode_action_F77=unsupported
13645 fi
13646 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13647 echo "${ECHO_T}$hardcode_action_F77" >&6
13648
13649 if test "$hardcode_action_F77" = relink; then
13650   # Fast installation is not supported
13651   enable_fast_install=no
13652 elif test "$shlibpath_overrides_runpath" = yes ||
13653      test "$enable_shared" = no; then
13654   # Fast installation is not necessary
13655   enable_fast_install=needless
13656 fi
13657
13658 striplib=
13659 old_striplib=
13660 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13661 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13662 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13663   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13664   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13665   echo "$as_me:$LINENO: result: yes" >&5
13666 echo "${ECHO_T}yes" >&6
13667 else
13668 # FIXME - insert some real tests, host_os isn't really good enough
13669   case $host_os in
13670    darwin*)
13671        if test -n "$STRIP" ; then
13672          striplib="$STRIP -x"
13673          echo "$as_me:$LINENO: result: yes" >&5
13674 echo "${ECHO_T}yes" >&6
13675        else
13676   echo "$as_me:$LINENO: result: no" >&5
13677 echo "${ECHO_T}no" >&6
13678 fi
13679        ;;
13680    *)
13681   echo "$as_me:$LINENO: result: no" >&5
13682 echo "${ECHO_T}no" >&6
13683     ;;
13684   esac
13685 fi
13686
13687 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13688 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13689 library_names_spec=
13690 libname_spec='lib$name'
13691 soname_spec=
13692 shrext=".so"
13693 postinstall_cmds=
13694 postuninstall_cmds=
13695 finish_cmds=
13696 finish_eval=
13697 shlibpath_var=
13698 shlibpath_overrides_runpath=unknown
13699 version_type=none
13700 dynamic_linker="$host_os ld.so"
13701 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13702 if test "$GCC" = yes; then
13703   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13704   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13705     # if the path contains ";" then we assume it to be the separator
13706     # otherwise default to the standard path separator (i.e. ":") - it is
13707     # assumed that no part of a normal pathname contains ";" but that should
13708     # okay in the real world where ";" in dirpaths is itself problematic.
13709     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13710   else
13711     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13712   fi
13713 else
13714   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13715 fi
13716 need_lib_prefix=unknown
13717 hardcode_into_libs=no
13718
13719 # when you set need_version to no, make sure it does not cause -set_version
13720 # flags to be left without arguments
13721 need_version=unknown
13722
13723 case $host_os in
13724 aix3*)
13725   version_type=linux
13726   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13727   shlibpath_var=LIBPATH
13728
13729   # AIX 3 has no versioning support, so we append a major version to the name.
13730   soname_spec='${libname}${release}${shared_ext}$major'
13731   ;;
13732
13733 aix4* | aix5*)
13734   version_type=linux
13735   need_lib_prefix=no
13736   need_version=no
13737   hardcode_into_libs=yes
13738   if test "$host_cpu" = ia64; then
13739     # AIX 5 supports IA64
13740     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13741     shlibpath_var=LD_LIBRARY_PATH
13742   else
13743     # With GCC up to 2.95.x, collect2 would create an import file
13744     # for dependence libraries.  The import file would start with
13745     # the line `#! .'.  This would cause the generated library to
13746     # depend on `.', always an invalid library.  This was fixed in
13747     # development snapshots of GCC prior to 3.0.
13748     case $host_os in
13749       aix4 | aix4.[01] | aix4.[01].*)
13750       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13751            echo ' yes '
13752            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13753         :
13754       else
13755         can_build_shared=no
13756       fi
13757       ;;
13758     esac
13759     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13760     # soname into executable. Probably we can add versioning support to
13761     # collect2, so additional links can be useful in future.
13762     if test "$aix_use_runtimelinking" = yes; then
13763       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13764       # instead of lib<name>.a to let people know that these are not
13765       # typical AIX shared libraries.
13766       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13767     else
13768       # We preserve .a as extension for shared libraries through AIX4.2
13769       # and later when we are not doing run time linking.
13770       library_names_spec='${libname}${release}.a $libname.a'
13771       soname_spec='${libname}${release}${shared_ext}$major'
13772     fi
13773     shlibpath_var=LIBPATH
13774   fi
13775   ;;
13776
13777 amigaos*)
13778   library_names_spec='$libname.ixlibrary $libname.a'
13779   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13780   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'
13781   ;;
13782
13783 beos*)
13784   library_names_spec='${libname}${shared_ext}'
13785   dynamic_linker="$host_os ld.so"
13786   shlibpath_var=LIBRARY_PATH
13787   ;;
13788
13789 bsdi4*)
13790   version_type=linux
13791   need_version=no
13792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13793   soname_spec='${libname}${release}${shared_ext}$major'
13794   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13795   shlibpath_var=LD_LIBRARY_PATH
13796   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13797   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13798   # the default ld.so.conf also contains /usr/contrib/lib and
13799   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13800   # libtool to hard-code these into programs
13801   ;;
13802
13803 cygwin* | mingw* | pw32*)
13804   version_type=windows
13805   shrext=".dll"
13806   need_version=no
13807   need_lib_prefix=no
13808
13809   case $GCC,$host_os in
13810   yes,cygwin* | yes,mingw* | yes,pw32*)
13811     library_names_spec='$libname.dll.a'
13812     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13813     postinstall_cmds='base_file=`basename \${file}`~
13814       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13815       dldir=$destdir/`dirname \$dlpath`~
13816       test -d \$dldir || mkdir -p \$dldir~
13817       $install_prog $dir/$dlname \$dldir/$dlname'
13818     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13819       dlpath=$dir/\$dldll~
13820        $rm \$dlpath'
13821     shlibpath_overrides_runpath=yes
13822
13823     case $host_os in
13824     cygwin*)
13825       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13826       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13827       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13828       ;;
13829     mingw*)
13830       # MinGW DLLs use traditional 'lib' prefix
13831       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13832       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13833       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13834         # It is most probably a Windows format PATH printed by
13835         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13836         # path with ; separators, and with drive letters. We can handle the
13837         # drive letters (cygwin fileutils understands them), so leave them,
13838         # especially as we might pass files found there to a mingw objdump,
13839         # which wouldn't understand a cygwinified path. Ahh.
13840         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13841       else
13842         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13843       fi
13844       ;;
13845     pw32*)
13846       # pw32 DLLs use 'pw' prefix rather than 'lib'
13847       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13848       ;;
13849     esac
13850     ;;
13851
13852   *)
13853     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13854     ;;
13855   esac
13856   dynamic_linker='Win32 ld.exe'
13857   # FIXME: first we should search . and the directory the executable is in
13858   shlibpath_var=PATH
13859   ;;
13860
13861 darwin* | rhapsody*)
13862   dynamic_linker="$host_os dyld"
13863   version_type=darwin
13864   need_lib_prefix=no
13865   need_version=no
13866   # FIXME: Relying on posixy $() will cause problems for
13867   #        cross-compilation, but unfortunately the echo tests do not
13868   #        yet detect zsh echo's removal of \ escapes.
13869   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13870   soname_spec='${libname}${release}${major}$shared_ext'
13871   shlibpath_overrides_runpath=yes
13872   shlibpath_var=DYLD_LIBRARY_PATH
13873   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13874   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13875   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13876   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"`
13877   fi
13878   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13879   ;;
13880
13881 dgux*)
13882   version_type=linux
13883   need_lib_prefix=no
13884   need_version=no
13885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13886   soname_spec='${libname}${release}${shared_ext}$major'
13887   shlibpath_var=LD_LIBRARY_PATH
13888   ;;
13889
13890 freebsd1*)
13891   dynamic_linker=no
13892   ;;
13893
13894 freebsd*)
13895   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13896   version_type=freebsd-$objformat
13897   case $version_type in
13898     freebsd-elf*)
13899       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13900       need_version=no
13901       need_lib_prefix=no
13902       ;;
13903     freebsd-*)
13904       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13905       need_version=yes
13906       ;;
13907   esac
13908   shlibpath_var=LD_LIBRARY_PATH
13909   case $host_os in
13910   freebsd2*)
13911     shlibpath_overrides_runpath=yes
13912     ;;
13913   freebsd3.01* | freebsdelf3.01*)
13914     shlibpath_overrides_runpath=yes
13915     hardcode_into_libs=yes
13916     ;;
13917   *) # from 3.2 on
13918     shlibpath_overrides_runpath=no
13919     hardcode_into_libs=yes
13920     ;;
13921   esac
13922   ;;
13923
13924 gnu*)
13925   version_type=linux
13926   need_lib_prefix=no
13927   need_version=no
13928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13929   soname_spec='${libname}${release}${shared_ext}$major'
13930   shlibpath_var=LD_LIBRARY_PATH
13931   hardcode_into_libs=yes
13932   ;;
13933
13934 hpux9* | hpux10* | hpux11*)
13935   # Give a soname corresponding to the major version so that dld.sl refuses to
13936   # link against other versions.
13937   version_type=sunos
13938   need_lib_prefix=no
13939   need_version=no
13940   case "$host_cpu" in
13941   ia64*)
13942     shrext='.so'
13943     hardcode_into_libs=yes
13944     dynamic_linker="$host_os dld.so"
13945     shlibpath_var=LD_LIBRARY_PATH
13946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948     soname_spec='${libname}${release}${shared_ext}$major'
13949     if test "X$HPUX_IA64_MODE" = X32; then
13950       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13951     else
13952       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13953     fi
13954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13955     ;;
13956    hppa*64*)
13957      shrext='.sl'
13958      hardcode_into_libs=yes
13959      dynamic_linker="$host_os dld.sl"
13960      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13961      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13962      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13963      soname_spec='${libname}${release}${shared_ext}$major'
13964      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13965      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13966      ;;
13967    *)
13968     shrext='.sl'
13969     dynamic_linker="$host_os dld.sl"
13970     shlibpath_var=SHLIB_PATH
13971     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13973     soname_spec='${libname}${release}${shared_ext}$major'
13974     ;;
13975   esac
13976   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13977   postinstall_cmds='chmod 555 $lib'
13978   ;;
13979
13980 irix5* | irix6* | nonstopux*)
13981   case $host_os in
13982     nonstopux*) version_type=nonstopux ;;
13983     *)
13984         if test "$lt_cv_prog_gnu_ld" = yes; then
13985                 version_type=linux
13986         else
13987                 version_type=irix
13988         fi ;;
13989   esac
13990   need_lib_prefix=no
13991   need_version=no
13992   soname_spec='${libname}${release}${shared_ext}$major'
13993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13994   case $host_os in
13995   irix5* | nonstopux*)
13996     libsuff= shlibsuff=
13997     ;;
13998   *)
13999     case $LD in # libtool.m4 will add one of these switches to LD
14000     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14001       libsuff= shlibsuff= libmagic=32-bit;;
14002     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14003       libsuff=32 shlibsuff=N32 libmagic=N32;;
14004     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14005       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14006     *) libsuff= shlibsuff= libmagic=never-match;;
14007     esac
14008     ;;
14009   esac
14010   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14011   shlibpath_overrides_runpath=no
14012   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14013   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14014   hardcode_into_libs=yes
14015   ;;
14016
14017 # No shared lib support for Linux oldld, aout, or coff.
14018 linux*oldld* | linux*aout* | linux*coff*)
14019   dynamic_linker=no
14020   ;;
14021
14022 # This must be Linux ELF.
14023 linux*)
14024   version_type=linux
14025   need_lib_prefix=no
14026   need_version=no
14027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028   soname_spec='${libname}${release}${shared_ext}$major'
14029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14030   shlibpath_var=LD_LIBRARY_PATH
14031   shlibpath_overrides_runpath=no
14032   # This implies no fast_install, which is unacceptable.
14033   # Some rework will be needed to allow for fast_install
14034   # before this can be enabled.
14035   hardcode_into_libs=yes
14036
14037   # We used to test for /lib/ld.so.1 and disable shared libraries on
14038   # powerpc, because MkLinux only supported shared libraries with the
14039   # GNU dynamic linker.  Since this was broken with cross compilers,
14040   # most powerpc-linux boxes support dynamic linking these days and
14041   # people can always --disable-shared, the test was removed, and we
14042   # assume the GNU/Linux dynamic linker is in use.
14043   dynamic_linker='GNU/Linux ld.so'
14044   ;;
14045
14046 netbsd*)
14047   version_type=sunos
14048   need_lib_prefix=no
14049   need_version=no
14050   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14052     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14053     dynamic_linker='NetBSD (a.out) ld.so'
14054   else
14055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14056     soname_spec='${libname}${release}${shared_ext}$major'
14057     dynamic_linker='NetBSD ld.elf_so'
14058   fi
14059   shlibpath_var=LD_LIBRARY_PATH
14060   shlibpath_overrides_runpath=yes
14061   hardcode_into_libs=yes
14062   ;;
14063
14064 newsos6)
14065   version_type=linux
14066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14067   shlibpath_var=LD_LIBRARY_PATH
14068   shlibpath_overrides_runpath=yes
14069   ;;
14070
14071 nto-qnx)
14072   version_type=linux
14073   need_lib_prefix=no
14074   need_version=no
14075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076   soname_spec='${libname}${release}${shared_ext}$major'
14077   shlibpath_var=LD_LIBRARY_PATH
14078   shlibpath_overrides_runpath=yes
14079   ;;
14080
14081 openbsd*)
14082   version_type=sunos
14083   need_lib_prefix=no
14084   need_version=no
14085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14086   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14087   shlibpath_var=LD_LIBRARY_PATH
14088   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14089     case $host_os in
14090       openbsd2.[89] | openbsd2.[89].*)
14091         shlibpath_overrides_runpath=no
14092         ;;
14093       *)
14094         shlibpath_overrides_runpath=yes
14095         ;;
14096       esac
14097   else
14098     shlibpath_overrides_runpath=yes
14099   fi
14100   ;;
14101
14102 os2*)
14103   libname_spec='$name'
14104   shrext=".dll"
14105   need_lib_prefix=no
14106   library_names_spec='$libname${shared_ext} $libname.a'
14107   dynamic_linker='OS/2 ld.exe'
14108   shlibpath_var=LIBPATH
14109   ;;
14110
14111 osf3* | osf4* | osf5*)
14112   version_type=osf
14113   need_lib_prefix=no
14114   need_version=no
14115   soname_spec='${libname}${release}${shared_ext}$major'
14116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117   shlibpath_var=LD_LIBRARY_PATH
14118   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14119   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14120   ;;
14121
14122 sco3.2v5*)
14123   version_type=osf
14124   soname_spec='${libname}${release}${shared_ext}$major'
14125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126   shlibpath_var=LD_LIBRARY_PATH
14127   ;;
14128
14129 solaris*)
14130   version_type=linux
14131   need_lib_prefix=no
14132   need_version=no
14133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134   soname_spec='${libname}${release}${shared_ext}$major'
14135   shlibpath_var=LD_LIBRARY_PATH
14136   shlibpath_overrides_runpath=yes
14137   hardcode_into_libs=yes
14138   # ldd complains unless libraries are executable
14139   postinstall_cmds='chmod +x $lib'
14140   ;;
14141
14142 sunos4*)
14143   version_type=sunos
14144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14145   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14146   shlibpath_var=LD_LIBRARY_PATH
14147   shlibpath_overrides_runpath=yes
14148   if test "$with_gnu_ld" = yes; then
14149     need_lib_prefix=no
14150   fi
14151   need_version=yes
14152   ;;
14153
14154 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14155   version_type=linux
14156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14157   soname_spec='${libname}${release}${shared_ext}$major'
14158   shlibpath_var=LD_LIBRARY_PATH
14159   case $host_vendor in
14160     sni)
14161       shlibpath_overrides_runpath=no
14162       need_lib_prefix=no
14163       export_dynamic_flag_spec='${wl}-Blargedynsym'
14164       runpath_var=LD_RUN_PATH
14165       ;;
14166     siemens)
14167       need_lib_prefix=no
14168       ;;
14169     motorola)
14170       need_lib_prefix=no
14171       need_version=no
14172       shlibpath_overrides_runpath=no
14173       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14174       ;;
14175   esac
14176   ;;
14177
14178 sysv4*MP*)
14179   if test -d /usr/nec ;then
14180     version_type=linux
14181     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14182     soname_spec='$libname${shared_ext}.$major'
14183     shlibpath_var=LD_LIBRARY_PATH
14184   fi
14185   ;;
14186
14187 uts4*)
14188   version_type=linux
14189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190   soname_spec='${libname}${release}${shared_ext}$major'
14191   shlibpath_var=LD_LIBRARY_PATH
14192   ;;
14193
14194 *)
14195   dynamic_linker=no
14196   ;;
14197 esac
14198 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14199 echo "${ECHO_T}$dynamic_linker" >&6
14200 test "$dynamic_linker" = no && can_build_shared=no
14201
14202
14203 # The else clause should only fire when bootstrapping the
14204 # libtool distribution, otherwise you forgot to ship ltmain.sh
14205 # with your package, and you will get complaints that there are
14206 # no rules to generate ltmain.sh.
14207 if test -f "$ltmain"; then
14208   # See if we are running on zsh, and set the options which allow our commands through
14209   # without removal of \ escapes.
14210   if test -n "${ZSH_VERSION+set}" ; then
14211     setopt NO_GLOB_SUBST
14212   fi
14213   # Now quote all the things that may contain metacharacters while being
14214   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14215   # variables and quote the copies for generation of the libtool script.
14216   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14217     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14218     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14219     deplibs_check_method reload_flag reload_cmds need_locks \
14220     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14221     lt_cv_sys_global_symbol_to_c_name_address \
14222     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14223     old_postinstall_cmds old_postuninstall_cmds \
14224     compiler_F77 \
14225     CC_F77 \
14226     LD_F77 \
14227     lt_prog_compiler_wl_F77 \
14228     lt_prog_compiler_pic_F77 \
14229     lt_prog_compiler_static_F77 \
14230     lt_prog_compiler_no_builtin_flag_F77 \
14231     export_dynamic_flag_spec_F77 \
14232     thread_safe_flag_spec_F77 \
14233     whole_archive_flag_spec_F77 \
14234     enable_shared_with_static_runtimes_F77 \
14235     old_archive_cmds_F77 \
14236     old_archive_from_new_cmds_F77 \
14237     predep_objects_F77 \
14238     postdep_objects_F77 \
14239     predeps_F77 \
14240     postdeps_F77 \
14241     compiler_lib_search_path_F77 \
14242     archive_cmds_F77 \
14243     archive_expsym_cmds_F77 \
14244     postinstall_cmds_F77 \
14245     postuninstall_cmds_F77 \
14246     old_archive_from_expsyms_cmds_F77 \
14247     allow_undefined_flag_F77 \
14248     no_undefined_flag_F77 \
14249     export_symbols_cmds_F77 \
14250     hardcode_libdir_flag_spec_F77 \
14251     hardcode_libdir_flag_spec_ld_F77 \
14252     hardcode_libdir_separator_F77 \
14253     hardcode_automatic_F77 \
14254     module_cmds_F77 \
14255     module_expsym_cmds_F77 \
14256     lt_cv_prog_compiler_c_o_F77 \
14257     exclude_expsyms_F77 \
14258     include_expsyms_F77; do
14259
14260     case $var in
14261     old_archive_cmds_F77 | \
14262     old_archive_from_new_cmds_F77 | \
14263     archive_cmds_F77 | \
14264     archive_expsym_cmds_F77 | \
14265     module_cmds_F77 | \
14266     module_expsym_cmds_F77 | \
14267     old_archive_from_expsyms_cmds_F77 | \
14268     export_symbols_cmds_F77 | \
14269     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14270     postinstall_cmds | postuninstall_cmds | \
14271     old_postinstall_cmds | old_postuninstall_cmds | \
14272     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14273       # Double-quote double-evaled strings.
14274       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14275       ;;
14276     *)
14277       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14278       ;;
14279     esac
14280   done
14281
14282   case $lt_echo in
14283   *'\$0 --fallback-echo"')
14284     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14285     ;;
14286   esac
14287
14288 cfgfile="$ofile"
14289
14290   cat <<__EOF__ >> "$cfgfile"
14291 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14292
14293 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14294
14295 # Shell to use when invoking shell scripts.
14296 SHELL=$lt_SHELL
14297
14298 # Whether or not to build shared libraries.
14299 build_libtool_libs=$enable_shared
14300
14301 # Whether or not to build static libraries.
14302 build_old_libs=$enable_static
14303
14304 # Whether or not to add -lc for building shared libraries.
14305 build_libtool_need_lc=$archive_cmds_need_lc_F77
14306
14307 # Whether or not to disallow shared libs when runtime libs are static
14308 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14309
14310 # Whether or not to optimize for fast installation.
14311 fast_install=$enable_fast_install
14312
14313 # The host system.
14314 host_alias=$host_alias
14315 host=$host
14316
14317 # An echo program that does not interpret backslashes.
14318 echo=$lt_echo
14319
14320 # The archiver.
14321 AR=$lt_AR
14322 AR_FLAGS=$lt_AR_FLAGS
14323
14324 # A C compiler.
14325 LTCC=$lt_LTCC
14326
14327 # A language-specific compiler.
14328 CC=$lt_compiler_F77
14329
14330 # Is the compiler the GNU C compiler?
14331 with_gcc=$GCC_F77
14332
14333 # An ERE matcher.
14334 EGREP=$lt_EGREP
14335
14336 # The linker used to build libraries.
14337 LD=$lt_LD_F77
14338
14339 # Whether we need hard or soft links.
14340 LN_S=$lt_LN_S
14341
14342 # A BSD-compatible nm program.
14343 NM=$lt_NM
14344
14345 # A symbol stripping program
14346 STRIP=$STRIP
14347
14348 # Used to examine libraries when file_magic_cmd begins "file"
14349 MAGIC_CMD=$MAGIC_CMD
14350
14351 # Used on cygwin: DLL creation program.
14352 DLLTOOL="$DLLTOOL"
14353
14354 # Used on cygwin: object dumper.
14355 OBJDUMP="$OBJDUMP"
14356
14357 # Used on cygwin: assembler.
14358 AS="$AS"
14359
14360 # The name of the directory that contains temporary libtool files.
14361 objdir=$objdir
14362
14363 # How to create reloadable object files.
14364 reload_flag=$lt_reload_flag
14365 reload_cmds=$lt_reload_cmds
14366
14367 # How to pass a linker flag through the compiler.
14368 wl=$lt_lt_prog_compiler_wl_F77
14369
14370 # Object file suffix (normally "o").
14371 objext="$ac_objext"
14372
14373 # Old archive suffix (normally "a").
14374 libext="$libext"
14375
14376 # Shared library suffix (normally ".so").
14377 shrext='$shrext'
14378
14379 # Executable file suffix (normally "").
14380 exeext="$exeext"
14381
14382 # Additional compiler flags for building library objects.
14383 pic_flag=$lt_lt_prog_compiler_pic_F77
14384 pic_mode=$pic_mode
14385
14386 # What is the maximum length of a command?
14387 max_cmd_len=$lt_cv_sys_max_cmd_len
14388
14389 # Does compiler simultaneously support -c and -o options?
14390 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14391
14392 # Must we lock files when doing compilation ?
14393 need_locks=$lt_need_locks
14394
14395 # Do we need the lib prefix for modules?
14396 need_lib_prefix=$need_lib_prefix
14397
14398 # Do we need a version for libraries?
14399 need_version=$need_version
14400
14401 # Whether dlopen is supported.
14402 dlopen_support=$enable_dlopen
14403
14404 # Whether dlopen of programs is supported.
14405 dlopen_self=$enable_dlopen_self
14406
14407 # Whether dlopen of statically linked programs is supported.
14408 dlopen_self_static=$enable_dlopen_self_static
14409
14410 # Compiler flag to prevent dynamic linking.
14411 link_static_flag=$lt_lt_prog_compiler_static_F77
14412
14413 # Compiler flag to turn off builtin functions.
14414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14415
14416 # Compiler flag to allow reflexive dlopens.
14417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14418
14419 # Compiler flag to generate shared objects directly from archives.
14420 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14421
14422 # Compiler flag to generate thread-safe objects.
14423 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14424
14425 # Library versioning type.
14426 version_type=$version_type
14427
14428 # Format of library name prefix.
14429 libname_spec=$lt_libname_spec
14430
14431 # List of archive names.  First name is the real one, the rest are links.
14432 # The last name is the one that the linker finds with -lNAME.
14433 library_names_spec=$lt_library_names_spec
14434
14435 # The coded name of the library, if different from the real name.
14436 soname_spec=$lt_soname_spec
14437
14438 # Commands used to build and install an old-style archive.
14439 RANLIB=$lt_RANLIB
14440 old_archive_cmds=$lt_old_archive_cmds_F77
14441 old_postinstall_cmds=$lt_old_postinstall_cmds
14442 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14443
14444 # Create an old-style archive from a shared archive.
14445 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14446
14447 # Create a temporary old-style archive to link instead of a shared archive.
14448 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14449
14450 # Commands used to build and install a shared archive.
14451 archive_cmds=$lt_archive_cmds_F77
14452 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14453 postinstall_cmds=$lt_postinstall_cmds
14454 postuninstall_cmds=$lt_postuninstall_cmds
14455
14456 # Commands used to build a loadable module (assumed same as above if empty)
14457 module_cmds=$lt_module_cmds_F77
14458 module_expsym_cmds=$lt_module_expsym_cmds_F77
14459
14460 # Commands to strip libraries.
14461 old_striplib=$lt_old_striplib
14462 striplib=$lt_striplib
14463
14464 # Dependencies to place before the objects being linked to create a
14465 # shared library.
14466 predep_objects=$lt_predep_objects_F77
14467
14468 # Dependencies to place after the objects being linked to create a
14469 # shared library.
14470 postdep_objects=$lt_postdep_objects_F77
14471
14472 # Dependencies to place before the objects being linked to create a
14473 # shared library.
14474 predeps=$lt_predeps_F77
14475
14476 # Dependencies to place after the objects being linked to create a
14477 # shared library.
14478 postdeps=$lt_postdeps_F77
14479
14480 # The library search path used internally by the compiler when linking
14481 # a shared library.
14482 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14483
14484 # Method to check whether dependent libraries are shared objects.
14485 deplibs_check_method=$lt_deplibs_check_method
14486
14487 # Command to use when deplibs_check_method == file_magic.
14488 file_magic_cmd=$lt_file_magic_cmd
14489
14490 # Flag that allows shared libraries with undefined symbols to be built.
14491 allow_undefined_flag=$lt_allow_undefined_flag_F77
14492
14493 # Flag that forces no undefined symbols.
14494 no_undefined_flag=$lt_no_undefined_flag_F77
14495
14496 # Commands used to finish a libtool library installation in a directory.
14497 finish_cmds=$lt_finish_cmds
14498
14499 # Same as above, but a single script fragment to be evaled but not shown.
14500 finish_eval=$lt_finish_eval
14501
14502 # Take the output of nm and produce a listing of raw symbols and C names.
14503 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14504
14505 # Transform the output of nm in a proper C declaration
14506 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14507
14508 # Transform the output of nm in a C name address pair
14509 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14510
14511 # This is the shared library runtime path variable.
14512 runpath_var=$runpath_var
14513
14514 # This is the shared library path variable.
14515 shlibpath_var=$shlibpath_var
14516
14517 # Is shlibpath searched before the hard-coded library search path?
14518 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14519
14520 # How to hardcode a shared library path into an executable.
14521 hardcode_action=$hardcode_action_F77
14522
14523 # Whether we should hardcode library paths into libraries.
14524 hardcode_into_libs=$hardcode_into_libs
14525
14526 # Flag to hardcode \$libdir into a binary during linking.
14527 # This must work even if \$libdir does not exist.
14528 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14529
14530 # If ld is used when linking, flag to hardcode \$libdir into
14531 # a binary during linking. This must work even if \$libdir does
14532 # not exist.
14533 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14534
14535 # Whether we need a single -rpath flag with a separated argument.
14536 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14537
14538 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14539 # resulting binary.
14540 hardcode_direct=$hardcode_direct_F77
14541
14542 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14543 # resulting binary.
14544 hardcode_minus_L=$hardcode_minus_L_F77
14545
14546 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14547 # the resulting binary.
14548 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14549
14550 # Set to yes if building a shared library automatically hardcodes DIR into the library
14551 # and all subsequent libraries and executables linked against it.
14552 hardcode_automatic=$hardcode_automatic_F77
14553
14554 # Variables whose values should be saved in libtool wrapper scripts and
14555 # restored at relink time.
14556 variables_saved_for_relink="$variables_saved_for_relink"
14557
14558 # Whether libtool must link a program against all its dependency libraries.
14559 link_all_deplibs=$link_all_deplibs_F77
14560
14561 # Compile-time system search path for libraries
14562 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14563
14564 # Run-time system search path for libraries
14565 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14566
14567 # Fix the shell variable \$srcfile for the compiler.
14568 fix_srcfile_path="$fix_srcfile_path_F77"
14569
14570 # Set to yes if exported symbols are required.
14571 always_export_symbols=$always_export_symbols_F77
14572
14573 # The commands to list exported symbols.
14574 export_symbols_cmds=$lt_export_symbols_cmds_F77
14575
14576 # The commands to extract the exported symbol list from a shared archive.
14577 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14578
14579 # Symbols that should not be listed in the preloaded symbols.
14580 exclude_expsyms=$lt_exclude_expsyms_F77
14581
14582 # Symbols that must always be exported.
14583 include_expsyms=$lt_include_expsyms_F77
14584
14585 # ### END LIBTOOL TAG CONFIG: $tagname
14586
14587 __EOF__
14588
14589
14590 else
14591   # If there is no Makefile yet, we rely on a make rule to execute
14592   # `config.status --recheck' to rerun these tests and create the
14593   # libtool script then.
14594   test -f Makefile && make "$ltmain"
14595 fi
14596
14597
14598 ac_ext=c
14599 ac_cpp='$CPP $CPPFLAGS'
14600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14603
14604 CC="$lt_save_CC"
14605
14606         else
14607           tagname=""
14608         fi
14609         ;;
14610
14611       GCJ)
14612         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14613
14614
14615
14616 # Source file extension for Java test sources.
14617 ac_ext=java
14618
14619 # Object file extension for compiled Java test sources.
14620 objext=o
14621 objext_GCJ=$objext
14622
14623 # Code to be used in simple compile tests
14624 lt_simple_compile_test_code="class foo {}\n"
14625
14626 # Code to be used in simple link tests
14627 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14628
14629 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14630
14631 # If no C compiler was specified, use CC.
14632 LTCC=${LTCC-"$CC"}
14633
14634 # Allow CC to be a program name with arguments.
14635 compiler=$CC
14636
14637
14638 # Allow CC to be a program name with arguments.
14639 lt_save_CC="$CC"
14640 CC=${GCJ-"gcj"}
14641 compiler=$CC
14642 compiler_GCJ=$CC
14643
14644 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14645 archive_cmds_need_lc_GCJ=no
14646
14647
14648 lt_prog_compiler_no_builtin_flag_GCJ=
14649
14650 if test "$GCC" = yes; then
14651   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14652
14653   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14654 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14655 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14656   echo $ECHO_N "(cached) $ECHO_C" >&6
14657 else
14658   lt_cv_prog_compiler_rtti_exceptions=no
14659   ac_outfile=conftest.$ac_objext
14660    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14661    lt_compiler_flag="-fno-rtti -fno-exceptions"
14662    # Insert the option either (1) after the last *FLAGS variable, or
14663    # (2) before a word containing "conftest.", or (3) at the end.
14664    # Note that $ac_compile itself does not contain backslashes and begins
14665    # with a dollar sign (not a hyphen), so the echo should work correctly.
14666    # The option is referenced via a variable to avoid confusing sed.
14667    lt_compile=`echo "$ac_compile" | $SED \
14668    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14669    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14670    -e 's:$: $lt_compiler_flag:'`
14671    (eval echo "\"\$as_me:14671: $lt_compile\"" >&5)
14672    (eval "$lt_compile" 2>conftest.err)
14673    ac_status=$?
14674    cat conftest.err >&5
14675    echo "$as_me:14675: \$? = $ac_status" >&5
14676    if (exit $ac_status) && test -s "$ac_outfile"; then
14677      # The compiler can only warn and ignore the option if not recognized
14678      # So say no if there are warnings
14679      if test ! -s conftest.err; then
14680        lt_cv_prog_compiler_rtti_exceptions=yes
14681      fi
14682    fi
14683    $rm conftest*
14684
14685 fi
14686 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14687 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14688
14689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14690     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14691 else
14692     :
14693 fi
14694
14695 fi
14696
14697 lt_prog_compiler_wl_GCJ=
14698 lt_prog_compiler_pic_GCJ=
14699 lt_prog_compiler_static_GCJ=
14700
14701 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14703
14704   if test "$GCC" = yes; then
14705     lt_prog_compiler_wl_GCJ='-Wl,'
14706     lt_prog_compiler_static_GCJ='-static'
14707
14708     case $host_os in
14709       aix*)
14710       # All AIX code is PIC.
14711       if test "$host_cpu" = ia64; then
14712         # AIX 5 now supports IA64 processor
14713         lt_prog_compiler_static_GCJ='-Bstatic'
14714       fi
14715       ;;
14716
14717     amigaos*)
14718       # FIXME: we need at least 68020 code to build shared libraries, but
14719       # adding the `-m68020' flag to GCC prevents building anything better,
14720       # like `-m68040'.
14721       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14722       ;;
14723
14724     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14725       # PIC is the default for these OSes.
14726       ;;
14727
14728     mingw* | pw32* | os2*)
14729       # This hack is so that the source file can tell whether it is being
14730       # built for inclusion in a dll (and should export symbols for example).
14731       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14732       ;;
14733
14734     darwin* | rhapsody*)
14735       # PIC is the default on this platform
14736       # Common symbols not allowed in MH_DYLIB files
14737       lt_prog_compiler_pic_GCJ='-fno-common'
14738       ;;
14739
14740     msdosdjgpp*)
14741       # Just because we use GCC doesn't mean we suddenly get shared libraries
14742       # on systems that don't support them.
14743       lt_prog_compiler_can_build_shared_GCJ=no
14744       enable_shared=no
14745       ;;
14746
14747     sysv4*MP*)
14748       if test -d /usr/nec; then
14749         lt_prog_compiler_pic_GCJ=-Kconform_pic
14750       fi
14751       ;;
14752
14753     hpux*)
14754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14755       # not for PA HP-UX.
14756       case "$host_cpu" in
14757       hppa*64*|ia64*)
14758         # +Z the default
14759         ;;
14760       *)
14761         lt_prog_compiler_pic_GCJ='-fPIC'
14762         ;;
14763       esac
14764       ;;
14765
14766     *)
14767       lt_prog_compiler_pic_GCJ='-fPIC'
14768       ;;
14769     esac
14770   else
14771     # PORTME Check for flag to pass linker flags through the system compiler.
14772     case $host_os in
14773     aix*)
14774       lt_prog_compiler_wl_GCJ='-Wl,'
14775       if test "$host_cpu" = ia64; then
14776         # AIX 5 now supports IA64 processor
14777         lt_prog_compiler_static_GCJ='-Bstatic'
14778       else
14779         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14780       fi
14781       ;;
14782
14783     mingw* | pw32* | os2*)
14784       # This hack is so that the source file can tell whether it is being
14785       # built for inclusion in a dll (and should export symbols for example).
14786       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14787       ;;
14788
14789     hpux9* | hpux10* | hpux11*)
14790       lt_prog_compiler_wl_GCJ='-Wl,'
14791       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14792       # not for PA HP-UX.
14793       case "$host_cpu" in
14794       hppa*64*|ia64*)
14795         # +Z the default
14796         ;;
14797       *)
14798         lt_prog_compiler_pic_GCJ='+Z'
14799         ;;
14800       esac
14801       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14802       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14803       ;;
14804
14805     irix5* | irix6* | nonstopux*)
14806       lt_prog_compiler_wl_GCJ='-Wl,'
14807       # PIC (with -KPIC) is the default.
14808       lt_prog_compiler_static_GCJ='-non_shared'
14809       ;;
14810
14811     newsos6)
14812       lt_prog_compiler_pic_GCJ='-KPIC'
14813       lt_prog_compiler_static_GCJ='-Bstatic'
14814       ;;
14815
14816     linux*)
14817       case $CC in
14818       icc|ecc)
14819         lt_prog_compiler_wl_GCJ='-Wl,'
14820         lt_prog_compiler_pic_GCJ='-KPIC'
14821         lt_prog_compiler_static_GCJ='-static'
14822         ;;
14823       ccc)
14824         lt_prog_compiler_wl_GCJ='-Wl,'
14825         # All Alpha code is PIC.
14826         lt_prog_compiler_static_GCJ='-non_shared'
14827         ;;
14828       esac
14829       ;;
14830
14831     osf3* | osf4* | osf5*)
14832       lt_prog_compiler_wl_GCJ='-Wl,'
14833       # All OSF/1 code is PIC.
14834       lt_prog_compiler_static_GCJ='-non_shared'
14835       ;;
14836
14837     sco3.2v5*)
14838       lt_prog_compiler_pic_GCJ='-Kpic'
14839       lt_prog_compiler_static_GCJ='-dn'
14840       ;;
14841
14842     solaris*)
14843       lt_prog_compiler_wl_GCJ='-Wl,'
14844       lt_prog_compiler_pic_GCJ='-KPIC'
14845       lt_prog_compiler_static_GCJ='-Bstatic'
14846       ;;
14847
14848     sunos4*)
14849       lt_prog_compiler_wl_GCJ='-Qoption ld '
14850       lt_prog_compiler_pic_GCJ='-PIC'
14851       lt_prog_compiler_static_GCJ='-Bstatic'
14852       ;;
14853
14854     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14855       lt_prog_compiler_wl_GCJ='-Wl,'
14856       lt_prog_compiler_pic_GCJ='-KPIC'
14857       lt_prog_compiler_static_GCJ='-Bstatic'
14858       ;;
14859
14860     sysv4*MP*)
14861       if test -d /usr/nec ;then
14862         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14863         lt_prog_compiler_static_GCJ='-Bstatic'
14864       fi
14865       ;;
14866
14867     uts4*)
14868       lt_prog_compiler_pic_GCJ='-pic'
14869       lt_prog_compiler_static_GCJ='-Bstatic'
14870       ;;
14871
14872     *)
14873       lt_prog_compiler_can_build_shared_GCJ=no
14874       ;;
14875     esac
14876   fi
14877
14878 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14879 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14880
14881 #
14882 # Check to make sure the PIC flag actually works.
14883 #
14884 if test -n "$lt_prog_compiler_pic_GCJ"; then
14885   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14886 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14887 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14888   echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890   lt_prog_compiler_pic_works_GCJ=no
14891   ac_outfile=conftest.$ac_objext
14892    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14893    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14894    # Insert the option either (1) after the last *FLAGS variable, or
14895    # (2) before a word containing "conftest.", or (3) at the end.
14896    # Note that $ac_compile itself does not contain backslashes and begins
14897    # with a dollar sign (not a hyphen), so the echo should work correctly.
14898    # The option is referenced via a variable to avoid confusing sed.
14899    lt_compile=`echo "$ac_compile" | $SED \
14900    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14901    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14902    -e 's:$: $lt_compiler_flag:'`
14903    (eval echo "\"\$as_me:14903: $lt_compile\"" >&5)
14904    (eval "$lt_compile" 2>conftest.err)
14905    ac_status=$?
14906    cat conftest.err >&5
14907    echo "$as_me:14907: \$? = $ac_status" >&5
14908    if (exit $ac_status) && test -s "$ac_outfile"; then
14909      # The compiler can only warn and ignore the option if not recognized
14910      # So say no if there are warnings
14911      if test ! -s conftest.err; then
14912        lt_prog_compiler_pic_works_GCJ=yes
14913      fi
14914    fi
14915    $rm conftest*
14916
14917 fi
14918 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14919 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14920
14921 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14922     case $lt_prog_compiler_pic_GCJ in
14923      "" | " "*) ;;
14924      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14925      esac
14926 else
14927     lt_prog_compiler_pic_GCJ=
14928      lt_prog_compiler_can_build_shared_GCJ=no
14929 fi
14930
14931 fi
14932 case "$host_os" in
14933   # For platforms which do not support PIC, -DPIC is meaningless:
14934   *djgpp*)
14935     lt_prog_compiler_pic_GCJ=
14936     ;;
14937   *)
14938     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14939     ;;
14940 esac
14941
14942 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14943 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14944 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14945   echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947   lt_cv_prog_compiler_c_o_GCJ=no
14948    $rm -r conftest 2>/dev/null
14949    mkdir conftest
14950    cd conftest
14951    mkdir out
14952    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14953
14954    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14955    # that will create temporary files in the current directory regardless of
14956    # the output directory.  Thus, making CWD read-only will cause this test
14957    # to fail, enabling locking or at least warning the user not to do parallel
14958    # builds.
14959    chmod -w .
14960
14961    lt_compiler_flag="-o out/conftest2.$ac_objext"
14962    # Insert the option either (1) after the last *FLAGS variable, or
14963    # (2) before a word containing "conftest.", or (3) at the end.
14964    # Note that $ac_compile itself does not contain backslashes and begins
14965    # with a dollar sign (not a hyphen), so the echo should work correctly.
14966    lt_compile=`echo "$ac_compile" | $SED \
14967    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14968    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14969    -e 's:$: $lt_compiler_flag:'`
14970    (eval echo "\"\$as_me:14970: $lt_compile\"" >&5)
14971    (eval "$lt_compile" 2>out/conftest.err)
14972    ac_status=$?
14973    cat out/conftest.err >&5
14974    echo "$as_me:14974: \$? = $ac_status" >&5
14975    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14976    then
14977      # The compiler can only warn and ignore the option if not recognized
14978      # So say no if there are warnings
14979      if test ! -s out/conftest.err; then
14980        lt_cv_prog_compiler_c_o_GCJ=yes
14981      fi
14982    fi
14983    chmod u+w .
14984    $rm conftest* out/*
14985    rmdir out
14986    cd ..
14987    rmdir conftest
14988    $rm conftest*
14989
14990 fi
14991 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14992 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14993
14994
14995 hard_links="nottested"
14996 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14997   # do not overwrite the value of need_locks provided by the user
14998   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14999 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15000   hard_links=yes
15001   $rm conftest*
15002   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15003   touch conftest.a
15004   ln conftest.a conftest.b 2>&5 || hard_links=no
15005   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15006   echo "$as_me:$LINENO: result: $hard_links" >&5
15007 echo "${ECHO_T}$hard_links" >&6
15008   if test "$hard_links" = no; then
15009     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15010 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15011     need_locks=warn
15012   fi
15013 else
15014   need_locks=no
15015 fi
15016
15017 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15018 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15019
15020   runpath_var=
15021   allow_undefined_flag_GCJ=
15022   enable_shared_with_static_runtimes_GCJ=no
15023   archive_cmds_GCJ=
15024   archive_expsym_cmds_GCJ=
15025   old_archive_From_new_cmds_GCJ=
15026   old_archive_from_expsyms_cmds_GCJ=
15027   export_dynamic_flag_spec_GCJ=
15028   whole_archive_flag_spec_GCJ=
15029   thread_safe_flag_spec_GCJ=
15030   hardcode_libdir_flag_spec_GCJ=
15031   hardcode_libdir_flag_spec_ld_GCJ=
15032   hardcode_libdir_separator_GCJ=
15033   hardcode_direct_GCJ=no
15034   hardcode_minus_L_GCJ=no
15035   hardcode_shlibpath_var_GCJ=unsupported
15036   link_all_deplibs_GCJ=unknown
15037   hardcode_automatic_GCJ=no
15038   module_cmds_GCJ=
15039   module_expsym_cmds_GCJ=
15040   always_export_symbols_GCJ=no
15041   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15042   # include_expsyms should be a list of space-separated symbols to be *always*
15043   # included in the symbol list
15044   include_expsyms_GCJ=
15045   # exclude_expsyms can be an extended regexp of symbols to exclude
15046   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15047   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15048   # as well as any symbol that contains `d'.
15049   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15050   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15051   # platforms (ab)use it in PIC code, but their linkers get confused if
15052   # the symbol is explicitly referenced.  Since portable code cannot
15053   # rely on this symbol name, it's probably fine to never include it in
15054   # preloaded symbol tables.
15055   extract_expsyms_cmds=
15056
15057   case $host_os in
15058   cygwin* | mingw* | pw32*)
15059     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15060     # When not using gcc, we currently assume that we are using
15061     # Microsoft Visual C++.
15062     if test "$GCC" != yes; then
15063       with_gnu_ld=no
15064     fi
15065     ;;
15066   openbsd*)
15067     with_gnu_ld=no
15068     ;;
15069   esac
15070
15071   ld_shlibs_GCJ=yes
15072   if test "$with_gnu_ld" = yes; then
15073     # If archive_cmds runs LD, not CC, wlarc should be empty
15074     wlarc='${wl}'
15075
15076     # See if GNU ld supports shared libraries.
15077     case $host_os in
15078     aix3* | aix4* | aix5*)
15079       # On AIX/PPC, the GNU linker is very broken
15080       if test "$host_cpu" != ia64; then
15081         ld_shlibs_GCJ=no
15082         cat <<EOF 1>&2
15083
15084 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15085 *** to be unable to reliably create shared libraries on AIX.
15086 *** Therefore, libtool is disabling shared libraries support.  If you
15087 *** really care for shared libraries, you may want to modify your PATH
15088 *** so that a non-GNU linker is found, and then restart.
15089
15090 EOF
15091       fi
15092       ;;
15093
15094     amigaos*)
15095       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)'
15096       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15097       hardcode_minus_L_GCJ=yes
15098
15099       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15100       # that the semantics of dynamic libraries on AmigaOS, at least up
15101       # to version 4, is to share data among multiple programs linked
15102       # with the same dynamic library.  Since this doesn't match the
15103       # behavior of shared libraries on other platforms, we can't use
15104       # them.
15105       ld_shlibs_GCJ=no
15106       ;;
15107
15108     beos*)
15109       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15110         allow_undefined_flag_GCJ=unsupported
15111         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15112         # support --undefined.  This deserves some investigation.  FIXME
15113         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15114       else
15115         ld_shlibs_GCJ=no
15116       fi
15117       ;;
15118
15119     cygwin* | mingw* | pw32*)
15120       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15121       # as there is no search path for DLLs.
15122       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15123       allow_undefined_flag_GCJ=unsupported
15124       always_export_symbols_GCJ=no
15125       enable_shared_with_static_runtimes_GCJ=yes
15126       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15127
15128       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15129         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15130         # If the export-symbols file already is a .def file (1st line
15131         # is EXPORTS), use it as is; otherwise, prepend...
15132         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15133           cp $export_symbols $output_objdir/$soname.def;
15134         else
15135           echo EXPORTS > $output_objdir/$soname.def;
15136           cat $export_symbols >> $output_objdir/$soname.def;
15137         fi~
15138         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15139       else
15140         ld_shlibs=no
15141       fi
15142       ;;
15143
15144     netbsd*)
15145       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15146         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15147         wlarc=
15148       else
15149         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15150         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15151       fi
15152       ;;
15153
15154     solaris* | sysv5*)
15155       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15156         ld_shlibs_GCJ=no
15157         cat <<EOF 1>&2
15158
15159 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15160 *** create shared libraries on Solaris systems.  Therefore, libtool
15161 *** is disabling shared libraries support.  We urge you to upgrade GNU
15162 *** binutils to release 2.9.1 or newer.  Another option is to modify
15163 *** your PATH or compiler configuration so that the native linker is
15164 *** used, and then restart.
15165
15166 EOF
15167       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15168         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15169         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15170       else
15171         ld_shlibs_GCJ=no
15172       fi
15173       ;;
15174
15175     sunos4*)
15176       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15177       wlarc=
15178       hardcode_direct_GCJ=yes
15179       hardcode_shlibpath_var_GCJ=no
15180       ;;
15181
15182     *)
15183       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15184         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15185         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15186       else
15187         ld_shlibs_GCJ=no
15188       fi
15189       ;;
15190     esac
15191
15192     if test "$ld_shlibs_GCJ" = yes; then
15193       runpath_var=LD_RUN_PATH
15194       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15195       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15196       # ancient GNU ld didn't support --whole-archive et. al.
15197       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15198         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15199       else
15200         whole_archive_flag_spec_GCJ=
15201       fi
15202     fi
15203   else
15204     # PORTME fill in a description of your system's linker (not GNU ld)
15205     case $host_os in
15206     aix3*)
15207       allow_undefined_flag_GCJ=unsupported
15208       always_export_symbols_GCJ=yes
15209       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'
15210       # Note: this linker hardcodes the directories in LIBPATH if there
15211       # are no directories specified by -L.
15212       hardcode_minus_L_GCJ=yes
15213       if test "$GCC" = yes && test -z "$link_static_flag"; then
15214         # Neither direct hardcoding nor static linking is supported with a
15215         # broken collect2.
15216         hardcode_direct_GCJ=unsupported
15217       fi
15218       ;;
15219
15220     aix4* | aix5*)
15221       if test "$host_cpu" = ia64; then
15222         # On IA64, the linker does run time linking by default, so we don't
15223         # have to do anything special.
15224         aix_use_runtimelinking=no
15225         exp_sym_flag='-Bexport'
15226         no_entry_flag=""
15227       else
15228         # If we're using GNU nm, then we don't want the "-C" option.
15229         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15230         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15231           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'
15232         else
15233           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'
15234         fi
15235         aix_use_runtimelinking=no
15236
15237         # Test if we are trying to use run time linking or normal
15238         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15239         # need to do runtime linking.
15240         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15241           for ld_flag in $LDFLAGS; do
15242           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15243             aix_use_runtimelinking=yes
15244             break
15245           fi
15246           done
15247         esac
15248
15249         exp_sym_flag='-bexport'
15250         no_entry_flag='-bnoentry'
15251       fi
15252
15253       # When large executables or shared objects are built, AIX ld can
15254       # have problems creating the table of contents.  If linking a library
15255       # or program results in "error TOC overflow" add -mminimal-toc to
15256       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15257       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15258
15259       archive_cmds_GCJ=''
15260       hardcode_direct_GCJ=yes
15261       hardcode_libdir_separator_GCJ=':'
15262       link_all_deplibs_GCJ=yes
15263
15264       if test "$GCC" = yes; then
15265         case $host_os in aix4.012|aix4.012.*)
15266         # We only want to do this on AIX 4.2 and lower, the check
15267         # below for broken collect2 doesn't work under 4.3+
15268           collect2name=`${CC} -print-prog-name=collect2`
15269           if test -f "$collect2name" && \
15270            strings "$collect2name" | grep resolve_lib_name >/dev/null
15271           then
15272           # We have reworked collect2
15273           hardcode_direct_GCJ=yes
15274           else
15275           # We have old collect2
15276           hardcode_direct_GCJ=unsupported
15277           # It fails to find uninstalled libraries when the uninstalled
15278           # path is not listed in the libpath.  Setting hardcode_minus_L
15279           # to unsupported forces relinking
15280           hardcode_minus_L_GCJ=yes
15281           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15282           hardcode_libdir_separator_GCJ=
15283           fi
15284         esac
15285         shared_flag='-shared'
15286       else
15287         # not using gcc
15288         if test "$host_cpu" = ia64; then
15289         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15290         # chokes on -Wl,-G. The following line is correct:
15291           shared_flag='-G'
15292         else
15293         if test "$aix_use_runtimelinking" = yes; then
15294             shared_flag='${wl}-G'
15295           else
15296             shared_flag='${wl}-bM:SRE'
15297         fi
15298         fi
15299       fi
15300
15301       # It seems that -bexpall does not export symbols beginning with
15302       # underscore (_), so it is better to generate a list of symbols to export.
15303       always_export_symbols_GCJ=yes
15304       if test "$aix_use_runtimelinking" = yes; then
15305         # Warning - without using the other runtime loading flags (-brtl),
15306         # -berok will link without error, but may produce a broken library.
15307         allow_undefined_flag_GCJ='-berok'
15308        # Determine the default libpath from the value encoded in an empty executable.
15309        cat >conftest.$ac_ext <<_ACEOF
15310 #line $LINENO "configure"
15311 /* confdefs.h.  */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h.  */
15316
15317 int
15318 main ()
15319 {
15320
15321   ;
15322   return 0;
15323 }
15324 _ACEOF
15325 rm -f conftest.$ac_objext conftest$ac_exeext
15326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15327   (eval $ac_link) 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); } &&
15331          { ac_try='test -s conftest$ac_exeext'
15332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333   (eval $ac_try) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; }; then
15337
15338 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15339 }'`
15340 # Check for a 64-bit object if we didn't find anything.
15341 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; }
15342 }'`; fi
15343 else
15344   echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15346
15347 fi
15348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15350
15351        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15352         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"
15353        else
15354         if test "$host_cpu" = ia64; then
15355           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15356           allow_undefined_flag_GCJ="-z nodefs"
15357           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"
15358         else
15359          # Determine the default libpath from the value encoded in an empty executable.
15360          cat >conftest.$ac_ext <<_ACEOF
15361 #line $LINENO "configure"
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367
15368 int
15369 main ()
15370 {
15371
15372   ;
15373   return 0;
15374 }
15375 _ACEOF
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378   (eval $ac_link) 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); } &&
15382          { ac_try='test -s conftest$ac_exeext'
15383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384   (eval $ac_try) 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); }; }; then
15388
15389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15390 }'`
15391 # Check for a 64-bit object if we didn't find anything.
15392 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; }
15393 }'`; fi
15394 else
15395   echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15397
15398 fi
15399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15401
15402          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15403           # Warning - without using the other run time loading flags,
15404           # -berok will link without error, but may produce a broken library.
15405           no_undefined_flag_GCJ=' ${wl}-bernotok'
15406           allow_undefined_flag_GCJ=' ${wl}-berok'
15407           # -bexpall does not export symbols beginning with underscore (_)
15408           always_export_symbols_GCJ=yes
15409           # Exported symbols can be pulled into shared objects from archives
15410           whole_archive_flag_spec_GCJ=' '
15411           archive_cmds_need_lc_GCJ=yes
15412           # This is similar to how AIX traditionally builds it's shared libraries.
15413           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'
15414         fi
15415       fi
15416       ;;
15417
15418     amigaos*)
15419       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)'
15420       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15421       hardcode_minus_L_GCJ=yes
15422       # see comment about different semantics on the GNU ld section
15423       ld_shlibs_GCJ=no
15424       ;;
15425
15426     bsdi4*)
15427       export_dynamic_flag_spec_GCJ=-rdynamic
15428       ;;
15429
15430     cygwin* | mingw* | pw32*)
15431       # When not using gcc, we currently assume that we are using
15432       # Microsoft Visual C++.
15433       # hardcode_libdir_flag_spec is actually meaningless, as there is
15434       # no search path for DLLs.
15435       hardcode_libdir_flag_spec_GCJ=' '
15436       allow_undefined_flag_GCJ=unsupported
15437       # Tell ltmain to make .lib files, not .a files.
15438       libext=lib
15439       # Tell ltmain to make .dll files, not .so files.
15440       shrext=".dll"
15441       # FIXME: Setting linknames here is a bad hack.
15442       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15443       # The linker will automatically build a .lib file if we build a DLL.
15444       old_archive_From_new_cmds_GCJ='true'
15445       # FIXME: Should let the user specify the lib program.
15446       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15447       fix_srcfile_path='`cygpath -w "$srcfile"`'
15448       enable_shared_with_static_runtimes_GCJ=yes
15449       ;;
15450
15451     darwin* | rhapsody*)
15452     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15453       archive_cmds_need_lc_GCJ=no
15454       case "$host_os" in
15455       rhapsody* | darwin1.[012])
15456         allow_undefined_flag_GCJ='-undefined suppress'
15457         ;;
15458       *) # Darwin 1.3 on
15459         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15460         ;;
15461       esac
15462       # FIXME: Relying on posixy $() will cause problems for
15463       #        cross-compilation, but unfortunately the echo tests do not
15464       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15465       #        `"' quotes if we put them in here... so don't!
15466         lt_int_apple_cc_single_mod=no
15467         output_verbose_link_cmd='echo'
15468         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15469           lt_int_apple_cc_single_mod=yes
15470         fi
15471         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15472           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15473         else
15474         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'
15475       fi
15476       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15477       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15478         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15479           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}'
15480         else
15481           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}'
15482         fi
15483           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}'
15484       hardcode_direct_GCJ=no
15485       hardcode_automatic_GCJ=yes
15486       hardcode_shlibpath_var_GCJ=unsupported
15487       whole_archive_flag_spec_GCJ='-all_load $convenience'
15488       link_all_deplibs_GCJ=yes
15489     fi
15490       ;;
15491
15492     dgux*)
15493       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15494       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15495       hardcode_shlibpath_var_GCJ=no
15496       ;;
15497
15498     freebsd1*)
15499       ld_shlibs_GCJ=no
15500       ;;
15501
15502     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15503     # support.  Future versions do this automatically, but an explicit c++rt0.o
15504     # does not break anything, and helps significantly (at the cost of a little
15505     # extra space).
15506     freebsd2.2*)
15507       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15508       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15509       hardcode_direct_GCJ=yes
15510       hardcode_shlibpath_var_GCJ=no
15511       ;;
15512
15513     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15514     freebsd2*)
15515       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15516       hardcode_direct_GCJ=yes
15517       hardcode_minus_L_GCJ=yes
15518       hardcode_shlibpath_var_GCJ=no
15519       ;;
15520
15521     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15522     freebsd*)
15523       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15524       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15525       hardcode_direct_GCJ=yes
15526       hardcode_shlibpath_var_GCJ=no
15527       ;;
15528
15529     hpux9*)
15530       if test "$GCC" = yes; then
15531         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'
15532       else
15533         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'
15534       fi
15535       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15536       hardcode_libdir_separator_GCJ=:
15537       hardcode_direct_GCJ=yes
15538
15539       # hardcode_minus_L: Not really in the search PATH,
15540       # but as the default location of the library.
15541       hardcode_minus_L_GCJ=yes
15542       export_dynamic_flag_spec_GCJ='${wl}-E'
15543       ;;
15544
15545     hpux10* | hpux11*)
15546       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15547         case "$host_cpu" in
15548         hppa*64*|ia64*)
15549           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15550           ;;
15551         *)
15552           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15553           ;;
15554         esac
15555       else
15556         case "$host_cpu" in
15557         hppa*64*|ia64*)
15558           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15559           ;;
15560         *)
15561           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15562           ;;
15563         esac
15564       fi
15565       if test "$with_gnu_ld" = no; then
15566         case "$host_cpu" in
15567         hppa*64*)
15568           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15569           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15570           hardcode_libdir_separator_GCJ=:
15571           hardcode_direct_GCJ=no
15572           hardcode_shlibpath_var_GCJ=no
15573           ;;
15574         ia64*)
15575           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15576           hardcode_direct_GCJ=no
15577           hardcode_shlibpath_var_GCJ=no
15578
15579           # hardcode_minus_L: Not really in the search PATH,
15580           # but as the default location of the library.
15581           hardcode_minus_L_GCJ=yes
15582           ;;
15583         *)
15584           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15585           hardcode_libdir_separator_GCJ=:
15586           hardcode_direct_GCJ=yes
15587           export_dynamic_flag_spec_GCJ='${wl}-E'
15588
15589           # hardcode_minus_L: Not really in the search PATH,
15590           # but as the default location of the library.
15591           hardcode_minus_L_GCJ=yes
15592           ;;
15593         esac
15594       fi
15595       ;;
15596
15597     irix5* | irix6* | nonstopux*)
15598       if test "$GCC" = yes; then
15599         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'
15600       else
15601         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'
15602         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15603       fi
15604       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15605       hardcode_libdir_separator_GCJ=:
15606       link_all_deplibs_GCJ=yes
15607       ;;
15608
15609     netbsd*)
15610       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15611         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15612       else
15613         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15614       fi
15615       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15616       hardcode_direct_GCJ=yes
15617       hardcode_shlibpath_var_GCJ=no
15618       ;;
15619
15620     newsos6)
15621       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15622       hardcode_direct_GCJ=yes
15623       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15624       hardcode_libdir_separator_GCJ=:
15625       hardcode_shlibpath_var_GCJ=no
15626       ;;
15627
15628     openbsd*)
15629       hardcode_direct_GCJ=yes
15630       hardcode_shlibpath_var_GCJ=no
15631       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15632         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15633         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15634         export_dynamic_flag_spec_GCJ='${wl}-E'
15635       else
15636        case $host_os in
15637          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15638            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15639            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15640            ;;
15641          *)
15642            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15643            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15644            ;;
15645        esac
15646       fi
15647       ;;
15648
15649     os2*)
15650       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15651       hardcode_minus_L_GCJ=yes
15652       allow_undefined_flag_GCJ=unsupported
15653       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'
15654       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15655       ;;
15656
15657     osf3*)
15658       if test "$GCC" = yes; then
15659         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15660         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'
15661       else
15662         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15663         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'
15664       fi
15665       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15666       hardcode_libdir_separator_GCJ=:
15667       ;;
15668
15669     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15670       if test "$GCC" = yes; then
15671         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15672         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'
15673         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15674       else
15675         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15676         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'
15677         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~
15678         $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'
15679
15680         # Both c and cxx compiler support -rpath directly
15681         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15682       fi
15683       hardcode_libdir_separator_GCJ=:
15684       ;;
15685
15686     sco3.2v5*)
15687       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688       hardcode_shlibpath_var_GCJ=no
15689       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15690       runpath_var=LD_RUN_PATH
15691       hardcode_runpath_var=yes
15692       ;;
15693
15694     solaris*)
15695       no_undefined_flag_GCJ=' -z text'
15696       if test "$GCC" = yes; then
15697         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15698         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15699           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15700       else
15701         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15703         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15704       fi
15705       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15706       hardcode_shlibpath_var_GCJ=no
15707       case $host_os in
15708       solaris2.[0-5] | solaris2.[0-5].*) ;;
15709       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15710         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15711       esac
15712       link_all_deplibs_GCJ=yes
15713       ;;
15714
15715     sunos4*)
15716       if test "x$host_vendor" = xsequent; then
15717         # Use $CC to link under sequent, because it throws in some extra .o
15718         # files that make .init and .fini sections work.
15719         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15720       else
15721         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15722       fi
15723       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15724       hardcode_direct_GCJ=yes
15725       hardcode_minus_L_GCJ=yes
15726       hardcode_shlibpath_var_GCJ=no
15727       ;;
15728
15729     sysv4)
15730       case $host_vendor in
15731         sni)
15732           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733           hardcode_direct_GCJ=yes # is this really true???
15734         ;;
15735         siemens)
15736           ## LD is ld it makes a PLAMLIB
15737           ## CC just makes a GrossModule.
15738           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15739           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15740           hardcode_direct_GCJ=no
15741         ;;
15742         motorola)
15743           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15744           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15745         ;;
15746       esac
15747       runpath_var='LD_RUN_PATH'
15748       hardcode_shlibpath_var_GCJ=no
15749       ;;
15750
15751     sysv4.3*)
15752       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753       hardcode_shlibpath_var_GCJ=no
15754       export_dynamic_flag_spec_GCJ='-Bexport'
15755       ;;
15756
15757     sysv4*MP*)
15758       if test -d /usr/nec; then
15759         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760         hardcode_shlibpath_var_GCJ=no
15761         runpath_var=LD_RUN_PATH
15762         hardcode_runpath_var=yes
15763         ld_shlibs_GCJ=yes
15764       fi
15765       ;;
15766
15767     sysv4.2uw2*)
15768       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15769       hardcode_direct_GCJ=yes
15770       hardcode_minus_L_GCJ=no
15771       hardcode_shlibpath_var_GCJ=no
15772       hardcode_runpath_var=yes
15773       runpath_var=LD_RUN_PATH
15774       ;;
15775
15776    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15777       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15778       if test "$GCC" = yes; then
15779         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15780       else
15781         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15782       fi
15783       runpath_var='LD_RUN_PATH'
15784       hardcode_shlibpath_var_GCJ=no
15785       ;;
15786
15787     sysv5*)
15788       no_undefined_flag_GCJ=' -z text'
15789       # $CC -shared without GNU ld will not create a library from C++
15790       # object files and a static libstdc++, better avoid it by now
15791       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15793                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15794       hardcode_libdir_flag_spec_GCJ=
15795       hardcode_shlibpath_var_GCJ=no
15796       runpath_var='LD_RUN_PATH'
15797       ;;
15798
15799     uts4*)
15800       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15801       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15802       hardcode_shlibpath_var_GCJ=no
15803       ;;
15804
15805     *)
15806       ld_shlibs_GCJ=no
15807       ;;
15808     esac
15809   fi
15810
15811 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15812 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15813 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15814
15815 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15816 if test "$GCC" = yes; then
15817   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15818 fi
15819
15820 #
15821 # Do we need to explicitly link libc?
15822 #
15823 case "x$archive_cmds_need_lc_GCJ" in
15824 x|xyes)
15825   # Assume -lc should be added
15826   archive_cmds_need_lc_GCJ=yes
15827
15828   if test "$enable_shared" = yes && test "$GCC" = yes; then
15829     case $archive_cmds_GCJ in
15830     *'~'*)
15831       # FIXME: we may have to deal with multi-command sequences.
15832       ;;
15833     '$CC '*)
15834       # Test whether the compiler implicitly links with -lc since on some
15835       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15836       # to ld, don't add -lc before -lgcc.
15837       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15838 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15839       $rm conftest*
15840       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15841
15842       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15843   (eval $ac_compile) 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); } 2>conftest.err; then
15847         soname=conftest
15848         lib=conftest
15849         libobjs=conftest.$ac_objext
15850         deplibs=
15851         wl=$lt_prog_compiler_wl_GCJ
15852         compiler_flags=-v
15853         linker_flags=-v
15854         verstring=
15855         output_objdir=.
15856         libname=conftest
15857         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15858         allow_undefined_flag_GCJ=
15859         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15860   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }
15864         then
15865           archive_cmds_need_lc_GCJ=no
15866         else
15867           archive_cmds_need_lc_GCJ=yes
15868         fi
15869         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15870       else
15871         cat conftest.err 1>&5
15872       fi
15873       $rm conftest*
15874       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15875 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15876       ;;
15877     esac
15878   fi
15879   ;;
15880 esac
15881
15882 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15883 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15884 hardcode_action_GCJ=
15885 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15886    test -n "$runpath_var GCJ" || \
15887    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15888
15889   # We can hardcode non-existant directories.
15890   if test "$hardcode_direct_GCJ" != no &&
15891      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15892      # have to relink, otherwise we might link with an installed library
15893      # when we should be linking with a yet-to-be-installed one
15894      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15895      test "$hardcode_minus_L_GCJ" != no; then
15896     # Linking always hardcodes the temporary library directory.
15897     hardcode_action_GCJ=relink
15898   else
15899     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15900     hardcode_action_GCJ=immediate
15901   fi
15902 else
15903   # We cannot hardcode anything, or else we can only hardcode existing
15904   # directories.
15905   hardcode_action_GCJ=unsupported
15906 fi
15907 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15908 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15909
15910 if test "$hardcode_action_GCJ" = relink; then
15911   # Fast installation is not supported
15912   enable_fast_install=no
15913 elif test "$shlibpath_overrides_runpath" = yes ||
15914      test "$enable_shared" = no; then
15915   # Fast installation is not necessary
15916   enable_fast_install=needless
15917 fi
15918
15919 striplib=
15920 old_striplib=
15921 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15922 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15923 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15924   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15925   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15926   echo "$as_me:$LINENO: result: yes" >&5
15927 echo "${ECHO_T}yes" >&6
15928 else
15929 # FIXME - insert some real tests, host_os isn't really good enough
15930   case $host_os in
15931    darwin*)
15932        if test -n "$STRIP" ; then
15933          striplib="$STRIP -x"
15934          echo "$as_me:$LINENO: result: yes" >&5
15935 echo "${ECHO_T}yes" >&6
15936        else
15937   echo "$as_me:$LINENO: result: no" >&5
15938 echo "${ECHO_T}no" >&6
15939 fi
15940        ;;
15941    *)
15942   echo "$as_me:$LINENO: result: no" >&5
15943 echo "${ECHO_T}no" >&6
15944     ;;
15945   esac
15946 fi
15947
15948 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15949 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15950 library_names_spec=
15951 libname_spec='lib$name'
15952 soname_spec=
15953 shrext=".so"
15954 postinstall_cmds=
15955 postuninstall_cmds=
15956 finish_cmds=
15957 finish_eval=
15958 shlibpath_var=
15959 shlibpath_overrides_runpath=unknown
15960 version_type=none
15961 dynamic_linker="$host_os ld.so"
15962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15963 if test "$GCC" = yes; then
15964   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15965   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15966     # if the path contains ";" then we assume it to be the separator
15967     # otherwise default to the standard path separator (i.e. ":") - it is
15968     # assumed that no part of a normal pathname contains ";" but that should
15969     # okay in the real world where ";" in dirpaths is itself problematic.
15970     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15971   else
15972     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15973   fi
15974 else
15975   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15976 fi
15977 need_lib_prefix=unknown
15978 hardcode_into_libs=no
15979
15980 # when you set need_version to no, make sure it does not cause -set_version
15981 # flags to be left without arguments
15982 need_version=unknown
15983
15984 case $host_os in
15985 aix3*)
15986   version_type=linux
15987   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15988   shlibpath_var=LIBPATH
15989
15990   # AIX 3 has no versioning support, so we append a major version to the name.
15991   soname_spec='${libname}${release}${shared_ext}$major'
15992   ;;
15993
15994 aix4* | aix5*)
15995   version_type=linux
15996   need_lib_prefix=no
15997   need_version=no
15998   hardcode_into_libs=yes
15999   if test "$host_cpu" = ia64; then
16000     # AIX 5 supports IA64
16001     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16002     shlibpath_var=LD_LIBRARY_PATH
16003   else
16004     # With GCC up to 2.95.x, collect2 would create an import file
16005     # for dependence libraries.  The import file would start with
16006     # the line `#! .'.  This would cause the generated library to
16007     # depend on `.', always an invalid library.  This was fixed in
16008     # development snapshots of GCC prior to 3.0.
16009     case $host_os in
16010       aix4 | aix4.[01] | aix4.[01].*)
16011       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16012            echo ' yes '
16013            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16014         :
16015       else
16016         can_build_shared=no
16017       fi
16018       ;;
16019     esac
16020     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16021     # soname into executable. Probably we can add versioning support to
16022     # collect2, so additional links can be useful in future.
16023     if test "$aix_use_runtimelinking" = yes; then
16024       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16025       # instead of lib<name>.a to let people know that these are not
16026       # typical AIX shared libraries.
16027       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028     else
16029       # We preserve .a as extension for shared libraries through AIX4.2
16030       # and later when we are not doing run time linking.
16031       library_names_spec='${libname}${release}.a $libname.a'
16032       soname_spec='${libname}${release}${shared_ext}$major'
16033     fi
16034     shlibpath_var=LIBPATH
16035   fi
16036   ;;
16037
16038 amigaos*)
16039   library_names_spec='$libname.ixlibrary $libname.a'
16040   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16041   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'
16042   ;;
16043
16044 beos*)
16045   library_names_spec='${libname}${shared_ext}'
16046   dynamic_linker="$host_os ld.so"
16047   shlibpath_var=LIBRARY_PATH
16048   ;;
16049
16050 bsdi4*)
16051   version_type=linux
16052   need_version=no
16053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054   soname_spec='${libname}${release}${shared_ext}$major'
16055   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16056   shlibpath_var=LD_LIBRARY_PATH
16057   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16058   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16059   # the default ld.so.conf also contains /usr/contrib/lib and
16060   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16061   # libtool to hard-code these into programs
16062   ;;
16063
16064 cygwin* | mingw* | pw32*)
16065   version_type=windows
16066   shrext=".dll"
16067   need_version=no
16068   need_lib_prefix=no
16069
16070   case $GCC,$host_os in
16071   yes,cygwin* | yes,mingw* | yes,pw32*)
16072     library_names_spec='$libname.dll.a'
16073     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16074     postinstall_cmds='base_file=`basename \${file}`~
16075       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16076       dldir=$destdir/`dirname \$dlpath`~
16077       test -d \$dldir || mkdir -p \$dldir~
16078       $install_prog $dir/$dlname \$dldir/$dlname'
16079     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16080       dlpath=$dir/\$dldll~
16081        $rm \$dlpath'
16082     shlibpath_overrides_runpath=yes
16083
16084     case $host_os in
16085     cygwin*)
16086       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16087       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16088       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16089       ;;
16090     mingw*)
16091       # MinGW DLLs use traditional 'lib' prefix
16092       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16093       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16094       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16095         # It is most probably a Windows format PATH printed by
16096         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16097         # path with ; separators, and with drive letters. We can handle the
16098         # drive letters (cygwin fileutils understands them), so leave them,
16099         # especially as we might pass files found there to a mingw objdump,
16100         # which wouldn't understand a cygwinified path. Ahh.
16101         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16102       else
16103         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16104       fi
16105       ;;
16106     pw32*)
16107       # pw32 DLLs use 'pw' prefix rather than 'lib'
16108       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16109       ;;
16110     esac
16111     ;;
16112
16113   *)
16114     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16115     ;;
16116   esac
16117   dynamic_linker='Win32 ld.exe'
16118   # FIXME: first we should search . and the directory the executable is in
16119   shlibpath_var=PATH
16120   ;;
16121
16122 darwin* | rhapsody*)
16123   dynamic_linker="$host_os dyld"
16124   version_type=darwin
16125   need_lib_prefix=no
16126   need_version=no
16127   # FIXME: Relying on posixy $() will cause problems for
16128   #        cross-compilation, but unfortunately the echo tests do not
16129   #        yet detect zsh echo's removal of \ escapes.
16130   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16131   soname_spec='${libname}${release}${major}$shared_ext'
16132   shlibpath_overrides_runpath=yes
16133   shlibpath_var=DYLD_LIBRARY_PATH
16134   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16135   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16136   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16137   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"`
16138   fi
16139   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16140   ;;
16141
16142 dgux*)
16143   version_type=linux
16144   need_lib_prefix=no
16145   need_version=no
16146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16147   soname_spec='${libname}${release}${shared_ext}$major'
16148   shlibpath_var=LD_LIBRARY_PATH
16149   ;;
16150
16151 freebsd1*)
16152   dynamic_linker=no
16153   ;;
16154
16155 freebsd*)
16156   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16157   version_type=freebsd-$objformat
16158   case $version_type in
16159     freebsd-elf*)
16160       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16161       need_version=no
16162       need_lib_prefix=no
16163       ;;
16164     freebsd-*)
16165       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16166       need_version=yes
16167       ;;
16168   esac
16169   shlibpath_var=LD_LIBRARY_PATH
16170   case $host_os in
16171   freebsd2*)
16172     shlibpath_overrides_runpath=yes
16173     ;;
16174   freebsd3.01* | freebsdelf3.01*)
16175     shlibpath_overrides_runpath=yes
16176     hardcode_into_libs=yes
16177     ;;
16178   *) # from 3.2 on
16179     shlibpath_overrides_runpath=no
16180     hardcode_into_libs=yes
16181     ;;
16182   esac
16183   ;;
16184
16185 gnu*)
16186   version_type=linux
16187   need_lib_prefix=no
16188   need_version=no
16189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16190   soname_spec='${libname}${release}${shared_ext}$major'
16191   shlibpath_var=LD_LIBRARY_PATH
16192   hardcode_into_libs=yes
16193   ;;
16194
16195 hpux9* | hpux10* | hpux11*)
16196   # Give a soname corresponding to the major version so that dld.sl refuses to
16197   # link against other versions.
16198   version_type=sunos
16199   need_lib_prefix=no
16200   need_version=no
16201   case "$host_cpu" in
16202   ia64*)
16203     shrext='.so'
16204     hardcode_into_libs=yes
16205     dynamic_linker="$host_os dld.so"
16206     shlibpath_var=LD_LIBRARY_PATH
16207     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209     soname_spec='${libname}${release}${shared_ext}$major'
16210     if test "X$HPUX_IA64_MODE" = X32; then
16211       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16212     else
16213       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16214     fi
16215     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16216     ;;
16217    hppa*64*)
16218      shrext='.sl'
16219      hardcode_into_libs=yes
16220      dynamic_linker="$host_os dld.sl"
16221      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16222      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16223      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224      soname_spec='${libname}${release}${shared_ext}$major'
16225      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16226      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16227      ;;
16228    *)
16229     shrext='.sl'
16230     dynamic_linker="$host_os dld.sl"
16231     shlibpath_var=SHLIB_PATH
16232     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234     soname_spec='${libname}${release}${shared_ext}$major'
16235     ;;
16236   esac
16237   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16238   postinstall_cmds='chmod 555 $lib'
16239   ;;
16240
16241 irix5* | irix6* | nonstopux*)
16242   case $host_os in
16243     nonstopux*) version_type=nonstopux ;;
16244     *)
16245         if test "$lt_cv_prog_gnu_ld" = yes; then
16246                 version_type=linux
16247         else
16248                 version_type=irix
16249         fi ;;
16250   esac
16251   need_lib_prefix=no
16252   need_version=no
16253   soname_spec='${libname}${release}${shared_ext}$major'
16254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16255   case $host_os in
16256   irix5* | nonstopux*)
16257     libsuff= shlibsuff=
16258     ;;
16259   *)
16260     case $LD in # libtool.m4 will add one of these switches to LD
16261     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16262       libsuff= shlibsuff= libmagic=32-bit;;
16263     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16264       libsuff=32 shlibsuff=N32 libmagic=N32;;
16265     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16266       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16267     *) libsuff= shlibsuff= libmagic=never-match;;
16268     esac
16269     ;;
16270   esac
16271   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16272   shlibpath_overrides_runpath=no
16273   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16274   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16275   hardcode_into_libs=yes
16276   ;;
16277
16278 # No shared lib support for Linux oldld, aout, or coff.
16279 linux*oldld* | linux*aout* | linux*coff*)
16280   dynamic_linker=no
16281   ;;
16282
16283 # This must be Linux ELF.
16284 linux*)
16285   version_type=linux
16286   need_lib_prefix=no
16287   need_version=no
16288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289   soname_spec='${libname}${release}${shared_ext}$major'
16290   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16291   shlibpath_var=LD_LIBRARY_PATH
16292   shlibpath_overrides_runpath=no
16293   # This implies no fast_install, which is unacceptable.
16294   # Some rework will be needed to allow for fast_install
16295   # before this can be enabled.
16296   hardcode_into_libs=yes
16297
16298   # We used to test for /lib/ld.so.1 and disable shared libraries on
16299   # powerpc, because MkLinux only supported shared libraries with the
16300   # GNU dynamic linker.  Since this was broken with cross compilers,
16301   # most powerpc-linux boxes support dynamic linking these days and
16302   # people can always --disable-shared, the test was removed, and we
16303   # assume the GNU/Linux dynamic linker is in use.
16304   dynamic_linker='GNU/Linux ld.so'
16305   ;;
16306
16307 netbsd*)
16308   version_type=sunos
16309   need_lib_prefix=no
16310   need_version=no
16311   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16313     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16314     dynamic_linker='NetBSD (a.out) ld.so'
16315   else
16316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16317     soname_spec='${libname}${release}${shared_ext}$major'
16318     dynamic_linker='NetBSD ld.elf_so'
16319   fi
16320   shlibpath_var=LD_LIBRARY_PATH
16321   shlibpath_overrides_runpath=yes
16322   hardcode_into_libs=yes
16323   ;;
16324
16325 newsos6)
16326   version_type=linux
16327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328   shlibpath_var=LD_LIBRARY_PATH
16329   shlibpath_overrides_runpath=yes
16330   ;;
16331
16332 nto-qnx)
16333   version_type=linux
16334   need_lib_prefix=no
16335   need_version=no
16336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337   soname_spec='${libname}${release}${shared_ext}$major'
16338   shlibpath_var=LD_LIBRARY_PATH
16339   shlibpath_overrides_runpath=yes
16340   ;;
16341
16342 openbsd*)
16343   version_type=sunos
16344   need_lib_prefix=no
16345   need_version=no
16346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16347   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16348   shlibpath_var=LD_LIBRARY_PATH
16349   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16350     case $host_os in
16351       openbsd2.[89] | openbsd2.[89].*)
16352         shlibpath_overrides_runpath=no
16353         ;;
16354       *)
16355         shlibpath_overrides_runpath=yes
16356         ;;
16357       esac
16358   else
16359     shlibpath_overrides_runpath=yes
16360   fi
16361   ;;
16362
16363 os2*)
16364   libname_spec='$name'
16365   shrext=".dll"
16366   need_lib_prefix=no
16367   library_names_spec='$libname${shared_ext} $libname.a'
16368   dynamic_linker='OS/2 ld.exe'
16369   shlibpath_var=LIBPATH
16370   ;;
16371
16372 osf3* | osf4* | osf5*)
16373   version_type=osf
16374   need_lib_prefix=no
16375   need_version=no
16376   soname_spec='${libname}${release}${shared_ext}$major'
16377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378   shlibpath_var=LD_LIBRARY_PATH
16379   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16380   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16381   ;;
16382
16383 sco3.2v5*)
16384   version_type=osf
16385   soname_spec='${libname}${release}${shared_ext}$major'
16386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387   shlibpath_var=LD_LIBRARY_PATH
16388   ;;
16389
16390 solaris*)
16391   version_type=linux
16392   need_lib_prefix=no
16393   need_version=no
16394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395   soname_spec='${libname}${release}${shared_ext}$major'
16396   shlibpath_var=LD_LIBRARY_PATH
16397   shlibpath_overrides_runpath=yes
16398   hardcode_into_libs=yes
16399   # ldd complains unless libraries are executable
16400   postinstall_cmds='chmod +x $lib'
16401   ;;
16402
16403 sunos4*)
16404   version_type=sunos
16405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16406   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16407   shlibpath_var=LD_LIBRARY_PATH
16408   shlibpath_overrides_runpath=yes
16409   if test "$with_gnu_ld" = yes; then
16410     need_lib_prefix=no
16411   fi
16412   need_version=yes
16413   ;;
16414
16415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16416   version_type=linux
16417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418   soname_spec='${libname}${release}${shared_ext}$major'
16419   shlibpath_var=LD_LIBRARY_PATH
16420   case $host_vendor in
16421     sni)
16422       shlibpath_overrides_runpath=no
16423       need_lib_prefix=no
16424       export_dynamic_flag_spec='${wl}-Blargedynsym'
16425       runpath_var=LD_RUN_PATH
16426       ;;
16427     siemens)
16428       need_lib_prefix=no
16429       ;;
16430     motorola)
16431       need_lib_prefix=no
16432       need_version=no
16433       shlibpath_overrides_runpath=no
16434       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16435       ;;
16436   esac
16437   ;;
16438
16439 sysv4*MP*)
16440   if test -d /usr/nec ;then
16441     version_type=linux
16442     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16443     soname_spec='$libname${shared_ext}.$major'
16444     shlibpath_var=LD_LIBRARY_PATH
16445   fi
16446   ;;
16447
16448 uts4*)
16449   version_type=linux
16450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451   soname_spec='${libname}${release}${shared_ext}$major'
16452   shlibpath_var=LD_LIBRARY_PATH
16453   ;;
16454
16455 *)
16456   dynamic_linker=no
16457   ;;
16458 esac
16459 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16460 echo "${ECHO_T}$dynamic_linker" >&6
16461 test "$dynamic_linker" = no && can_build_shared=no
16462
16463 if test "x$enable_dlopen" != xyes; then
16464   enable_dlopen=unknown
16465   enable_dlopen_self=unknown
16466   enable_dlopen_self_static=unknown
16467 else
16468   lt_cv_dlopen=no
16469   lt_cv_dlopen_libs=
16470
16471   case $host_os in
16472   beos*)
16473     lt_cv_dlopen="load_add_on"
16474     lt_cv_dlopen_libs=
16475     lt_cv_dlopen_self=yes
16476     ;;
16477
16478   mingw* | pw32*)
16479     lt_cv_dlopen="LoadLibrary"
16480     lt_cv_dlopen_libs=
16481    ;;
16482
16483   cygwin*)
16484     lt_cv_dlopen="dlopen"
16485     lt_cv_dlopen_libs=
16486    ;;
16487
16488   darwin*)
16489   # if libdl is installed we need to link against it
16490     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16491 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16492 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   ac_check_lib_save_LIBS=$LIBS
16496 LIBS="-ldl  $LIBS"
16497 cat >conftest.$ac_ext <<_ACEOF
16498 #line $LINENO "configure"
16499 /* confdefs.h.  */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h.  */
16504
16505 /* Override any gcc2 internal prototype to avoid an error.  */
16506 #ifdef __cplusplus
16507 extern "C"
16508 #endif
16509 /* We use char because int might match the return type of a gcc2
16510    builtin and then its argument prototype would still apply.  */
16511 char dlopen ();
16512 int
16513 main ()
16514 {
16515 dlopen ();
16516   ;
16517   return 0;
16518 }
16519 _ACEOF
16520 rm -f conftest.$ac_objext conftest$ac_exeext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16522   (eval $ac_link) 2>&5
16523   ac_status=$?
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); } &&
16526          { ac_try='test -s conftest$ac_exeext'
16527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528   (eval $ac_try) 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); }; }; then
16532   ac_cv_lib_dl_dlopen=yes
16533 else
16534   echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16536
16537 ac_cv_lib_dl_dlopen=no
16538 fi
16539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16540 LIBS=$ac_check_lib_save_LIBS
16541 fi
16542 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16543 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16544 if test $ac_cv_lib_dl_dlopen = yes; then
16545   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16546 else
16547
16548     lt_cv_dlopen="dyld"
16549     lt_cv_dlopen_libs=
16550     lt_cv_dlopen_self=yes
16551
16552 fi
16553
16554    ;;
16555
16556   *)
16557     echo "$as_me:$LINENO: checking for shl_load" >&5
16558 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16559 if test "${ac_cv_func_shl_load+set}" = set; then
16560   echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562   cat >conftest.$ac_ext <<_ACEOF
16563 #line $LINENO "configure"
16564 /* confdefs.h.  */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h.  */
16569 /* System header to define __stub macros and hopefully few prototypes,
16570     which can conflict with char shl_load (); below.
16571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16572     <limits.h> exists even on freestanding compilers.  */
16573 #ifdef __STDC__
16574 # include <limits.h>
16575 #else
16576 # include <assert.h>
16577 #endif
16578 /* Override any gcc2 internal prototype to avoid an error.  */
16579 #ifdef __cplusplus
16580 extern "C"
16581 {
16582 #endif
16583 /* We use char because int might match the return type of a gcc2
16584    builtin and then its argument prototype would still apply.  */
16585 char shl_load ();
16586 /* The GNU C library defines this for functions which it implements
16587     to always fail with ENOSYS.  Some functions are actually named
16588     something starting with __ and the normal name is an alias.  */
16589 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16590 choke me
16591 #else
16592 char (*f) () = shl_load;
16593 #endif
16594 #ifdef __cplusplus
16595 }
16596 #endif
16597
16598 int
16599 main ()
16600 {
16601 return f != shl_load;
16602   ;
16603   return 0;
16604 }
16605 _ACEOF
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16608   (eval $ac_link) 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); } &&
16612          { ac_try='test -s conftest$ac_exeext'
16613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614   (eval $ac_try) 2>&5
16615   ac_status=$?
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); }; }; then
16618   ac_cv_func_shl_load=yes
16619 else
16620   echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16622
16623 ac_cv_func_shl_load=no
16624 fi
16625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16626 fi
16627 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16628 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16629 if test $ac_cv_func_shl_load = yes; then
16630   lt_cv_dlopen="shl_load"
16631 else
16632   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16633 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16634 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16635   echo $ECHO_N "(cached) $ECHO_C" >&6
16636 else
16637   ac_check_lib_save_LIBS=$LIBS
16638 LIBS="-ldld  $LIBS"
16639 cat >conftest.$ac_ext <<_ACEOF
16640 #line $LINENO "configure"
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646
16647 /* Override any gcc2 internal prototype to avoid an error.  */
16648 #ifdef __cplusplus
16649 extern "C"
16650 #endif
16651 /* We use char because int might match the return type of a gcc2
16652    builtin and then its argument prototype would still apply.  */
16653 char shl_load ();
16654 int
16655 main ()
16656 {
16657 shl_load ();
16658   ;
16659   return 0;
16660 }
16661 _ACEOF
16662 rm -f conftest.$ac_objext conftest$ac_exeext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664   (eval $ac_link) 2>&5
16665   ac_status=$?
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); } &&
16668          { ac_try='test -s conftest$ac_exeext'
16669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670   (eval $ac_try) 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }; }; then
16674   ac_cv_lib_dld_shl_load=yes
16675 else
16676   echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16678
16679 ac_cv_lib_dld_shl_load=no
16680 fi
16681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16682 LIBS=$ac_check_lib_save_LIBS
16683 fi
16684 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16685 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16686 if test $ac_cv_lib_dld_shl_load = yes; then
16687   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16688 else
16689   echo "$as_me:$LINENO: checking for dlopen" >&5
16690 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16691 if test "${ac_cv_func_dlopen+set}" = set; then
16692   echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694   cat >conftest.$ac_ext <<_ACEOF
16695 #line $LINENO "configure"
16696 /* confdefs.h.  */
16697 _ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h.  */
16701 /* System header to define __stub macros and hopefully few prototypes,
16702     which can conflict with char dlopen (); below.
16703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16704     <limits.h> exists even on freestanding compilers.  */
16705 #ifdef __STDC__
16706 # include <limits.h>
16707 #else
16708 # include <assert.h>
16709 #endif
16710 /* Override any gcc2 internal prototype to avoid an error.  */
16711 #ifdef __cplusplus
16712 extern "C"
16713 {
16714 #endif
16715 /* We use char because int might match the return type of a gcc2
16716    builtin and then its argument prototype would still apply.  */
16717 char dlopen ();
16718 /* The GNU C library defines this for functions which it implements
16719     to always fail with ENOSYS.  Some functions are actually named
16720     something starting with __ and the normal name is an alias.  */
16721 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16722 choke me
16723 #else
16724 char (*f) () = dlopen;
16725 #endif
16726 #ifdef __cplusplus
16727 }
16728 #endif
16729
16730 int
16731 main ()
16732 {
16733 return f != dlopen;
16734   ;
16735   return 0;
16736 }
16737 _ACEOF
16738 rm -f conftest.$ac_objext conftest$ac_exeext
16739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16740   (eval $ac_link) 2>&5
16741   ac_status=$?
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); } &&
16744          { ac_try='test -s conftest$ac_exeext'
16745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746   (eval $ac_try) 2>&5
16747   ac_status=$?
16748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749   (exit $ac_status); }; }; then
16750   ac_cv_func_dlopen=yes
16751 else
16752   echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16754
16755 ac_cv_func_dlopen=no
16756 fi
16757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16758 fi
16759 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16760 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16761 if test $ac_cv_func_dlopen = yes; then
16762   lt_cv_dlopen="dlopen"
16763 else
16764   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16767   echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769   ac_check_lib_save_LIBS=$LIBS
16770 LIBS="-ldl  $LIBS"
16771 cat >conftest.$ac_ext <<_ACEOF
16772 #line $LINENO "configure"
16773 /* confdefs.h.  */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h.  */
16778
16779 /* Override any gcc2 internal prototype to avoid an error.  */
16780 #ifdef __cplusplus
16781 extern "C"
16782 #endif
16783 /* We use char because int might match the return type of a gcc2
16784    builtin and then its argument prototype would still apply.  */
16785 char dlopen ();
16786 int
16787 main ()
16788 {
16789 dlopen ();
16790   ;
16791   return 0;
16792 }
16793 _ACEOF
16794 rm -f conftest.$ac_objext conftest$ac_exeext
16795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16796   (eval $ac_link) 2>&5
16797   ac_status=$?
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); } &&
16800          { ac_try='test -s conftest$ac_exeext'
16801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802   (eval $ac_try) 2>&5
16803   ac_status=$?
16804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805   (exit $ac_status); }; }; then
16806   ac_cv_lib_dl_dlopen=yes
16807 else
16808   echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16810
16811 ac_cv_lib_dl_dlopen=no
16812 fi
16813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16814 LIBS=$ac_check_lib_save_LIBS
16815 fi
16816 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16817 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16818 if test $ac_cv_lib_dl_dlopen = yes; then
16819   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16820 else
16821   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16822 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16823 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16824   echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826   ac_check_lib_save_LIBS=$LIBS
16827 LIBS="-lsvld  $LIBS"
16828 cat >conftest.$ac_ext <<_ACEOF
16829 #line $LINENO "configure"
16830 /* confdefs.h.  */
16831 _ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h.  */
16835
16836 /* Override any gcc2 internal prototype to avoid an error.  */
16837 #ifdef __cplusplus
16838 extern "C"
16839 #endif
16840 /* We use char because int might match the return type of a gcc2
16841    builtin and then its argument prototype would still apply.  */
16842 char dlopen ();
16843 int
16844 main ()
16845 {
16846 dlopen ();
16847   ;
16848   return 0;
16849 }
16850 _ACEOF
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16853   (eval $ac_link) 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); } &&
16857          { ac_try='test -s conftest$ac_exeext'
16858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859   (eval $ac_try) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; }; then
16863   ac_cv_lib_svld_dlopen=yes
16864 else
16865   echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16867
16868 ac_cv_lib_svld_dlopen=no
16869 fi
16870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16871 LIBS=$ac_check_lib_save_LIBS
16872 fi
16873 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16874 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16875 if test $ac_cv_lib_svld_dlopen = yes; then
16876   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16877 else
16878   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16879 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16880 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16881   echo $ECHO_N "(cached) $ECHO_C" >&6
16882 else
16883   ac_check_lib_save_LIBS=$LIBS
16884 LIBS="-ldld  $LIBS"
16885 cat >conftest.$ac_ext <<_ACEOF
16886 #line $LINENO "configure"
16887 /* confdefs.h.  */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h.  */
16892
16893 /* Override any gcc2 internal prototype to avoid an error.  */
16894 #ifdef __cplusplus
16895 extern "C"
16896 #endif
16897 /* We use char because int might match the return type of a gcc2
16898    builtin and then its argument prototype would still apply.  */
16899 char dld_link ();
16900 int
16901 main ()
16902 {
16903 dld_link ();
16904   ;
16905   return 0;
16906 }
16907 _ACEOF
16908 rm -f conftest.$ac_objext conftest$ac_exeext
16909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16910   (eval $ac_link) 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); } &&
16914          { ac_try='test -s conftest$ac_exeext'
16915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916   (eval $ac_try) 2>&5
16917   ac_status=$?
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); }; }; then
16920   ac_cv_lib_dld_dld_link=yes
16921 else
16922   echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16924
16925 ac_cv_lib_dld_dld_link=no
16926 fi
16927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16929 fi
16930 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16931 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16932 if test $ac_cv_lib_dld_dld_link = yes; then
16933   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16934 fi
16935
16936
16937 fi
16938
16939
16940 fi
16941
16942
16943 fi
16944
16945
16946 fi
16947
16948
16949 fi
16950
16951     ;;
16952   esac
16953
16954   if test "x$lt_cv_dlopen" != xno; then
16955     enable_dlopen=yes
16956   else
16957     enable_dlopen=no
16958   fi
16959
16960   case $lt_cv_dlopen in
16961   dlopen)
16962     save_CPPFLAGS="$CPPFLAGS"
16963     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16964
16965     save_LDFLAGS="$LDFLAGS"
16966     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16967
16968     save_LIBS="$LIBS"
16969     LIBS="$lt_cv_dlopen_libs $LIBS"
16970
16971     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16972 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16973 if test "${lt_cv_dlopen_self+set}" = set; then
16974   echo $ECHO_N "(cached) $ECHO_C" >&6
16975 else
16976           if test "$cross_compiling" = yes; then :
16977   lt_cv_dlopen_self=cross
16978 else
16979   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16980   lt_status=$lt_dlunknown
16981   cat > conftest.$ac_ext <<EOF
16982 #line 16982 "configure"
16983 #include "confdefs.h"
16984
16985 #if HAVE_DLFCN_H
16986 #include <dlfcn.h>
16987 #endif
16988
16989 #include <stdio.h>
16990
16991 #ifdef RTLD_GLOBAL
16992 #  define LT_DLGLOBAL           RTLD_GLOBAL
16993 #else
16994 #  ifdef DL_GLOBAL
16995 #    define LT_DLGLOBAL         DL_GLOBAL
16996 #  else
16997 #    define LT_DLGLOBAL         0
16998 #  endif
16999 #endif
17000
17001 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17002    find out it does not work in some platform. */
17003 #ifndef LT_DLLAZY_OR_NOW
17004 #  ifdef RTLD_LAZY
17005 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17006 #  else
17007 #    ifdef DL_LAZY
17008 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17009 #    else
17010 #      ifdef RTLD_NOW
17011 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17012 #      else
17013 #        ifdef DL_NOW
17014 #          define LT_DLLAZY_OR_NOW      DL_NOW
17015 #        else
17016 #          define LT_DLLAZY_OR_NOW      0
17017 #        endif
17018 #      endif
17019 #    endif
17020 #  endif
17021 #endif
17022
17023 #ifdef __cplusplus
17024 extern "C" void exit (int);
17025 #endif
17026
17027 void fnord() { int i=42;}
17028 int main ()
17029 {
17030   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17031   int status = $lt_dlunknown;
17032
17033   if (self)
17034     {
17035       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17036       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17037       /* dlclose (self); */
17038     }
17039
17040     exit (status);
17041 }
17042 EOF
17043   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17044   (eval $ac_link) 2>&5
17045   ac_status=$?
17046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17048     (./conftest; exit; ) 2>/dev/null
17049     lt_status=$?
17050     case x$lt_status in
17051       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17052       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17053       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17054     esac
17055   else :
17056     # compilation failed
17057     lt_cv_dlopen_self=no
17058   fi
17059 fi
17060 rm -fr conftest*
17061
17062
17063 fi
17064 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17065 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17066
17067     if test "x$lt_cv_dlopen_self" = xyes; then
17068       LDFLAGS="$LDFLAGS $link_static_flag"
17069       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17070 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17071 if test "${lt_cv_dlopen_self_static+set}" = set; then
17072   echo $ECHO_N "(cached) $ECHO_C" >&6
17073 else
17074           if test "$cross_compiling" = yes; then :
17075   lt_cv_dlopen_self_static=cross
17076 else
17077   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17078   lt_status=$lt_dlunknown
17079   cat > conftest.$ac_ext <<EOF
17080 #line 17080 "configure"
17081 #include "confdefs.h"
17082
17083 #if HAVE_DLFCN_H
17084 #include <dlfcn.h>
17085 #endif
17086
17087 #include <stdio.h>
17088
17089 #ifdef RTLD_GLOBAL
17090 #  define LT_DLGLOBAL           RTLD_GLOBAL
17091 #else
17092 #  ifdef DL_GLOBAL
17093 #    define LT_DLGLOBAL         DL_GLOBAL
17094 #  else
17095 #    define LT_DLGLOBAL         0
17096 #  endif
17097 #endif
17098
17099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17100    find out it does not work in some platform. */
17101 #ifndef LT_DLLAZY_OR_NOW
17102 #  ifdef RTLD_LAZY
17103 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17104 #  else
17105 #    ifdef DL_LAZY
17106 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17107 #    else
17108 #      ifdef RTLD_NOW
17109 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17110 #      else
17111 #        ifdef DL_NOW
17112 #          define LT_DLLAZY_OR_NOW      DL_NOW
17113 #        else
17114 #          define LT_DLLAZY_OR_NOW      0
17115 #        endif
17116 #      endif
17117 #    endif
17118 #  endif
17119 #endif
17120
17121 #ifdef __cplusplus
17122 extern "C" void exit (int);
17123 #endif
17124
17125 void fnord() { int i=42;}
17126 int main ()
17127 {
17128   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17129   int status = $lt_dlunknown;
17130
17131   if (self)
17132     {
17133       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17134       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17135       /* dlclose (self); */
17136     }
17137
17138     exit (status);
17139 }
17140 EOF
17141   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17142   (eval $ac_link) 2>&5
17143   ac_status=$?
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17146     (./conftest; exit; ) 2>/dev/null
17147     lt_status=$?
17148     case x$lt_status in
17149       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17150       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17151       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17152     esac
17153   else :
17154     # compilation failed
17155     lt_cv_dlopen_self_static=no
17156   fi
17157 fi
17158 rm -fr conftest*
17159
17160
17161 fi
17162 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17163 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17164     fi
17165
17166     CPPFLAGS="$save_CPPFLAGS"
17167     LDFLAGS="$save_LDFLAGS"
17168     LIBS="$save_LIBS"
17169     ;;
17170   esac
17171
17172   case $lt_cv_dlopen_self in
17173   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17174   *) enable_dlopen_self=unknown ;;
17175   esac
17176
17177   case $lt_cv_dlopen_self_static in
17178   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17179   *) enable_dlopen_self_static=unknown ;;
17180   esac
17181 fi
17182
17183
17184 # The else clause should only fire when bootstrapping the
17185 # libtool distribution, otherwise you forgot to ship ltmain.sh
17186 # with your package, and you will get complaints that there are
17187 # no rules to generate ltmain.sh.
17188 if test -f "$ltmain"; then
17189   # See if we are running on zsh, and set the options which allow our commands through
17190   # without removal of \ escapes.
17191   if test -n "${ZSH_VERSION+set}" ; then
17192     setopt NO_GLOB_SUBST
17193   fi
17194   # Now quote all the things that may contain metacharacters while being
17195   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17196   # variables and quote the copies for generation of the libtool script.
17197   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17198     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17199     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17200     deplibs_check_method reload_flag reload_cmds need_locks \
17201     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17202     lt_cv_sys_global_symbol_to_c_name_address \
17203     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17204     old_postinstall_cmds old_postuninstall_cmds \
17205     compiler_GCJ \
17206     CC_GCJ \
17207     LD_GCJ \
17208     lt_prog_compiler_wl_GCJ \
17209     lt_prog_compiler_pic_GCJ \
17210     lt_prog_compiler_static_GCJ \
17211     lt_prog_compiler_no_builtin_flag_GCJ \
17212     export_dynamic_flag_spec_GCJ \
17213     thread_safe_flag_spec_GCJ \
17214     whole_archive_flag_spec_GCJ \
17215     enable_shared_with_static_runtimes_GCJ \
17216     old_archive_cmds_GCJ \
17217     old_archive_from_new_cmds_GCJ \
17218     predep_objects_GCJ \
17219     postdep_objects_GCJ \
17220     predeps_GCJ \
17221     postdeps_GCJ \
17222     compiler_lib_search_path_GCJ \
17223     archive_cmds_GCJ \
17224     archive_expsym_cmds_GCJ \
17225     postinstall_cmds_GCJ \
17226     postuninstall_cmds_GCJ \
17227     old_archive_from_expsyms_cmds_GCJ \
17228     allow_undefined_flag_GCJ \
17229     no_undefined_flag_GCJ \
17230     export_symbols_cmds_GCJ \
17231     hardcode_libdir_flag_spec_GCJ \
17232     hardcode_libdir_flag_spec_ld_GCJ \
17233     hardcode_libdir_separator_GCJ \
17234     hardcode_automatic_GCJ \
17235     module_cmds_GCJ \
17236     module_expsym_cmds_GCJ \
17237     lt_cv_prog_compiler_c_o_GCJ \
17238     exclude_expsyms_GCJ \
17239     include_expsyms_GCJ; do
17240
17241     case $var in
17242     old_archive_cmds_GCJ | \
17243     old_archive_from_new_cmds_GCJ | \
17244     archive_cmds_GCJ | \
17245     archive_expsym_cmds_GCJ | \
17246     module_cmds_GCJ | \
17247     module_expsym_cmds_GCJ | \
17248     old_archive_from_expsyms_cmds_GCJ | \
17249     export_symbols_cmds_GCJ | \
17250     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17251     postinstall_cmds | postuninstall_cmds | \
17252     old_postinstall_cmds | old_postuninstall_cmds | \
17253     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17254       # Double-quote double-evaled strings.
17255       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17256       ;;
17257     *)
17258       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17259       ;;
17260     esac
17261   done
17262
17263   case $lt_echo in
17264   *'\$0 --fallback-echo"')
17265     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17266     ;;
17267   esac
17268
17269 cfgfile="$ofile"
17270
17271   cat <<__EOF__ >> "$cfgfile"
17272 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17273
17274 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17275
17276 # Shell to use when invoking shell scripts.
17277 SHELL=$lt_SHELL
17278
17279 # Whether or not to build shared libraries.
17280 build_libtool_libs=$enable_shared
17281
17282 # Whether or not to build static libraries.
17283 build_old_libs=$enable_static
17284
17285 # Whether or not to add -lc for building shared libraries.
17286 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17287
17288 # Whether or not to disallow shared libs when runtime libs are static
17289 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17290
17291 # Whether or not to optimize for fast installation.
17292 fast_install=$enable_fast_install
17293
17294 # The host system.
17295 host_alias=$host_alias
17296 host=$host
17297
17298 # An echo program that does not interpret backslashes.
17299 echo=$lt_echo
17300
17301 # The archiver.
17302 AR=$lt_AR
17303 AR_FLAGS=$lt_AR_FLAGS
17304
17305 # A C compiler.
17306 LTCC=$lt_LTCC
17307
17308 # A language-specific compiler.
17309 CC=$lt_compiler_GCJ
17310
17311 # Is the compiler the GNU C compiler?
17312 with_gcc=$GCC_GCJ
17313
17314 # An ERE matcher.
17315 EGREP=$lt_EGREP
17316
17317 # The linker used to build libraries.
17318 LD=$lt_LD_GCJ
17319
17320 # Whether we need hard or soft links.
17321 LN_S=$lt_LN_S
17322
17323 # A BSD-compatible nm program.
17324 NM=$lt_NM
17325
17326 # A symbol stripping program
17327 STRIP=$STRIP
17328
17329 # Used to examine libraries when file_magic_cmd begins "file"
17330 MAGIC_CMD=$MAGIC_CMD
17331
17332 # Used on cygwin: DLL creation program.
17333 DLLTOOL="$DLLTOOL"
17334
17335 # Used on cygwin: object dumper.
17336 OBJDUMP="$OBJDUMP"
17337
17338 # Used on cygwin: assembler.
17339 AS="$AS"
17340
17341 # The name of the directory that contains temporary libtool files.
17342 objdir=$objdir
17343
17344 # How to create reloadable object files.
17345 reload_flag=$lt_reload_flag
17346 reload_cmds=$lt_reload_cmds
17347
17348 # How to pass a linker flag through the compiler.
17349 wl=$lt_lt_prog_compiler_wl_GCJ
17350
17351 # Object file suffix (normally "o").
17352 objext="$ac_objext"
17353
17354 # Old archive suffix (normally "a").
17355 libext="$libext"
17356
17357 # Shared library suffix (normally ".so").
17358 shrext='$shrext'
17359
17360 # Executable file suffix (normally "").
17361 exeext="$exeext"
17362
17363 # Additional compiler flags for building library objects.
17364 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17365 pic_mode=$pic_mode
17366
17367 # What is the maximum length of a command?
17368 max_cmd_len=$lt_cv_sys_max_cmd_len
17369
17370 # Does compiler simultaneously support -c and -o options?
17371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17372
17373 # Must we lock files when doing compilation ?
17374 need_locks=$lt_need_locks
17375
17376 # Do we need the lib prefix for modules?
17377 need_lib_prefix=$need_lib_prefix
17378
17379 # Do we need a version for libraries?
17380 need_version=$need_version
17381
17382 # Whether dlopen is supported.
17383 dlopen_support=$enable_dlopen
17384
17385 # Whether dlopen of programs is supported.
17386 dlopen_self=$enable_dlopen_self
17387
17388 # Whether dlopen of statically linked programs is supported.
17389 dlopen_self_static=$enable_dlopen_self_static
17390
17391 # Compiler flag to prevent dynamic linking.
17392 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17393
17394 # Compiler flag to turn off builtin functions.
17395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17396
17397 # Compiler flag to allow reflexive dlopens.
17398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17399
17400 # Compiler flag to generate shared objects directly from archives.
17401 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17402
17403 # Compiler flag to generate thread-safe objects.
17404 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17405
17406 # Library versioning type.
17407 version_type=$version_type
17408
17409 # Format of library name prefix.
17410 libname_spec=$lt_libname_spec
17411
17412 # List of archive names.  First name is the real one, the rest are links.
17413 # The last name is the one that the linker finds with -lNAME.
17414 library_names_spec=$lt_library_names_spec
17415
17416 # The coded name of the library, if different from the real name.
17417 soname_spec=$lt_soname_spec
17418
17419 # Commands used to build and install an old-style archive.
17420 RANLIB=$lt_RANLIB
17421 old_archive_cmds=$lt_old_archive_cmds_GCJ
17422 old_postinstall_cmds=$lt_old_postinstall_cmds
17423 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17424
17425 # Create an old-style archive from a shared archive.
17426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17427
17428 # Create a temporary old-style archive to link instead of a shared archive.
17429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17430
17431 # Commands used to build and install a shared archive.
17432 archive_cmds=$lt_archive_cmds_GCJ
17433 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17434 postinstall_cmds=$lt_postinstall_cmds
17435 postuninstall_cmds=$lt_postuninstall_cmds
17436
17437 # Commands used to build a loadable module (assumed same as above if empty)
17438 module_cmds=$lt_module_cmds_GCJ
17439 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17440
17441 # Commands to strip libraries.
17442 old_striplib=$lt_old_striplib
17443 striplib=$lt_striplib
17444
17445 # Dependencies to place before the objects being linked to create a
17446 # shared library.
17447 predep_objects=$lt_predep_objects_GCJ
17448
17449 # Dependencies to place after the objects being linked to create a
17450 # shared library.
17451 postdep_objects=$lt_postdep_objects_GCJ
17452
17453 # Dependencies to place before the objects being linked to create a
17454 # shared library.
17455 predeps=$lt_predeps_GCJ
17456
17457 # Dependencies to place after the objects being linked to create a
17458 # shared library.
17459 postdeps=$lt_postdeps_GCJ
17460
17461 # The library search path used internally by the compiler when linking
17462 # a shared library.
17463 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17464
17465 # Method to check whether dependent libraries are shared objects.
17466 deplibs_check_method=$lt_deplibs_check_method
17467
17468 # Command to use when deplibs_check_method == file_magic.
17469 file_magic_cmd=$lt_file_magic_cmd
17470
17471 # Flag that allows shared libraries with undefined symbols to be built.
17472 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17473
17474 # Flag that forces no undefined symbols.
17475 no_undefined_flag=$lt_no_undefined_flag_GCJ
17476
17477 # Commands used to finish a libtool library installation in a directory.
17478 finish_cmds=$lt_finish_cmds
17479
17480 # Same as above, but a single script fragment to be evaled but not shown.
17481 finish_eval=$lt_finish_eval
17482
17483 # Take the output of nm and produce a listing of raw symbols and C names.
17484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17485
17486 # Transform the output of nm in a proper C declaration
17487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17488
17489 # Transform the output of nm in a C name address pair
17490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17491
17492 # This is the shared library runtime path variable.
17493 runpath_var=$runpath_var
17494
17495 # This is the shared library path variable.
17496 shlibpath_var=$shlibpath_var
17497
17498 # Is shlibpath searched before the hard-coded library search path?
17499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17500
17501 # How to hardcode a shared library path into an executable.
17502 hardcode_action=$hardcode_action_GCJ
17503
17504 # Whether we should hardcode library paths into libraries.
17505 hardcode_into_libs=$hardcode_into_libs
17506
17507 # Flag to hardcode \$libdir into a binary during linking.
17508 # This must work even if \$libdir does not exist.
17509 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17510
17511 # If ld is used when linking, flag to hardcode \$libdir into
17512 # a binary during linking. This must work even if \$libdir does
17513 # not exist.
17514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17515
17516 # Whether we need a single -rpath flag with a separated argument.
17517 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17518
17519 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17520 # resulting binary.
17521 hardcode_direct=$hardcode_direct_GCJ
17522
17523 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17524 # resulting binary.
17525 hardcode_minus_L=$hardcode_minus_L_GCJ
17526
17527 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17528 # the resulting binary.
17529 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17530
17531 # Set to yes if building a shared library automatically hardcodes DIR into the library
17532 # and all subsequent libraries and executables linked against it.
17533 hardcode_automatic=$hardcode_automatic_GCJ
17534
17535 # Variables whose values should be saved in libtool wrapper scripts and
17536 # restored at relink time.
17537 variables_saved_for_relink="$variables_saved_for_relink"
17538
17539 # Whether libtool must link a program against all its dependency libraries.
17540 link_all_deplibs=$link_all_deplibs_GCJ
17541
17542 # Compile-time system search path for libraries
17543 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17544
17545 # Run-time system search path for libraries
17546 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17547
17548 # Fix the shell variable \$srcfile for the compiler.
17549 fix_srcfile_path="$fix_srcfile_path_GCJ"
17550
17551 # Set to yes if exported symbols are required.
17552 always_export_symbols=$always_export_symbols_GCJ
17553
17554 # The commands to list exported symbols.
17555 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17556
17557 # The commands to extract the exported symbol list from a shared archive.
17558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17559
17560 # Symbols that should not be listed in the preloaded symbols.
17561 exclude_expsyms=$lt_exclude_expsyms_GCJ
17562
17563 # Symbols that must always be exported.
17564 include_expsyms=$lt_include_expsyms_GCJ
17565
17566 # ### END LIBTOOL TAG CONFIG: $tagname
17567
17568 __EOF__
17569
17570
17571 else
17572   # If there is no Makefile yet, we rely on a make rule to execute
17573   # `config.status --recheck' to rerun these tests and create the
17574   # libtool script then.
17575   test -f Makefile && make "$ltmain"
17576 fi
17577
17578
17579 ac_ext=c
17580 ac_cpp='$CPP $CPPFLAGS'
17581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17584
17585 CC="$lt_save_CC"
17586
17587         else
17588           tagname=""
17589         fi
17590         ;;
17591
17592       RC)
17593
17594
17595
17596 # Source file extension for RC test sources.
17597 ac_ext=rc
17598
17599 # Object file extension for compiled RC test sources.
17600 objext=o
17601 objext_RC=$objext
17602
17603 # Code to be used in simple compile tests
17604 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17605
17606 # Code to be used in simple link tests
17607 lt_simple_link_test_code="$lt_simple_compile_test_code"
17608
17609 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17610
17611 # If no C compiler was specified, use CC.
17612 LTCC=${LTCC-"$CC"}
17613
17614 # Allow CC to be a program name with arguments.
17615 compiler=$CC
17616
17617
17618 # Allow CC to be a program name with arguments.
17619 lt_save_CC="$CC"
17620 CC=${RC-"windres"}
17621 compiler=$CC
17622 compiler_RC=$CC
17623 lt_cv_prog_compiler_c_o_RC=yes
17624
17625 # The else clause should only fire when bootstrapping the
17626 # libtool distribution, otherwise you forgot to ship ltmain.sh
17627 # with your package, and you will get complaints that there are
17628 # no rules to generate ltmain.sh.
17629 if test -f "$ltmain"; then
17630   # See if we are running on zsh, and set the options which allow our commands through
17631   # without removal of \ escapes.
17632   if test -n "${ZSH_VERSION+set}" ; then
17633     setopt NO_GLOB_SUBST
17634   fi
17635   # Now quote all the things that may contain metacharacters while being
17636   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17637   # variables and quote the copies for generation of the libtool script.
17638   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17639     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17640     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17641     deplibs_check_method reload_flag reload_cmds need_locks \
17642     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17643     lt_cv_sys_global_symbol_to_c_name_address \
17644     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17645     old_postinstall_cmds old_postuninstall_cmds \
17646     compiler_RC \
17647     CC_RC \
17648     LD_RC \
17649     lt_prog_compiler_wl_RC \
17650     lt_prog_compiler_pic_RC \
17651     lt_prog_compiler_static_RC \
17652     lt_prog_compiler_no_builtin_flag_RC \
17653     export_dynamic_flag_spec_RC \
17654     thread_safe_flag_spec_RC \
17655     whole_archive_flag_spec_RC \
17656     enable_shared_with_static_runtimes_RC \
17657     old_archive_cmds_RC \
17658     old_archive_from_new_cmds_RC \
17659     predep_objects_RC \
17660     postdep_objects_RC \
17661     predeps_RC \
17662     postdeps_RC \
17663     compiler_lib_search_path_RC \
17664     archive_cmds_RC \
17665     archive_expsym_cmds_RC \
17666     postinstall_cmds_RC \
17667     postuninstall_cmds_RC \
17668     old_archive_from_expsyms_cmds_RC \
17669     allow_undefined_flag_RC \
17670     no_undefined_flag_RC \
17671     export_symbols_cmds_RC \
17672     hardcode_libdir_flag_spec_RC \
17673     hardcode_libdir_flag_spec_ld_RC \
17674     hardcode_libdir_separator_RC \
17675     hardcode_automatic_RC \
17676     module_cmds_RC \
17677     module_expsym_cmds_RC \
17678     lt_cv_prog_compiler_c_o_RC \
17679     exclude_expsyms_RC \
17680     include_expsyms_RC; do
17681
17682     case $var in
17683     old_archive_cmds_RC | \
17684     old_archive_from_new_cmds_RC | \
17685     archive_cmds_RC | \
17686     archive_expsym_cmds_RC | \
17687     module_cmds_RC | \
17688     module_expsym_cmds_RC | \
17689     old_archive_from_expsyms_cmds_RC | \
17690     export_symbols_cmds_RC | \
17691     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17692     postinstall_cmds | postuninstall_cmds | \
17693     old_postinstall_cmds | old_postuninstall_cmds | \
17694     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17695       # Double-quote double-evaled strings.
17696       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17697       ;;
17698     *)
17699       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17700       ;;
17701     esac
17702   done
17703
17704   case $lt_echo in
17705   *'\$0 --fallback-echo"')
17706     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17707     ;;
17708   esac
17709
17710 cfgfile="$ofile"
17711
17712   cat <<__EOF__ >> "$cfgfile"
17713 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17714
17715 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17716
17717 # Shell to use when invoking shell scripts.
17718 SHELL=$lt_SHELL
17719
17720 # Whether or not to build shared libraries.
17721 build_libtool_libs=$enable_shared
17722
17723 # Whether or not to build static libraries.
17724 build_old_libs=$enable_static
17725
17726 # Whether or not to add -lc for building shared libraries.
17727 build_libtool_need_lc=$archive_cmds_need_lc_RC
17728
17729 # Whether or not to disallow shared libs when runtime libs are static
17730 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17731
17732 # Whether or not to optimize for fast installation.
17733 fast_install=$enable_fast_install
17734
17735 # The host system.
17736 host_alias=$host_alias
17737 host=$host
17738
17739 # An echo program that does not interpret backslashes.
17740 echo=$lt_echo
17741
17742 # The archiver.
17743 AR=$lt_AR
17744 AR_FLAGS=$lt_AR_FLAGS
17745
17746 # A C compiler.
17747 LTCC=$lt_LTCC
17748
17749 # A language-specific compiler.
17750 CC=$lt_compiler_RC
17751
17752 # Is the compiler the GNU C compiler?
17753 with_gcc=$GCC_RC
17754
17755 # An ERE matcher.
17756 EGREP=$lt_EGREP
17757
17758 # The linker used to build libraries.
17759 LD=$lt_LD_RC
17760
17761 # Whether we need hard or soft links.
17762 LN_S=$lt_LN_S
17763
17764 # A BSD-compatible nm program.
17765 NM=$lt_NM
17766
17767 # A symbol stripping program
17768 STRIP=$STRIP
17769
17770 # Used to examine libraries when file_magic_cmd begins "file"
17771 MAGIC_CMD=$MAGIC_CMD
17772
17773 # Used on cygwin: DLL creation program.
17774 DLLTOOL="$DLLTOOL"
17775
17776 # Used on cygwin: object dumper.
17777 OBJDUMP="$OBJDUMP"
17778
17779 # Used on cygwin: assembler.
17780 AS="$AS"
17781
17782 # The name of the directory that contains temporary libtool files.
17783 objdir=$objdir
17784
17785 # How to create reloadable object files.
17786 reload_flag=$lt_reload_flag
17787 reload_cmds=$lt_reload_cmds
17788
17789 # How to pass a linker flag through the compiler.
17790 wl=$lt_lt_prog_compiler_wl_RC
17791
17792 # Object file suffix (normally "o").
17793 objext="$ac_objext"
17794
17795 # Old archive suffix (normally "a").
17796 libext="$libext"
17797
17798 # Shared library suffix (normally ".so").
17799 shrext='$shrext'
17800
17801 # Executable file suffix (normally "").
17802 exeext="$exeext"
17803
17804 # Additional compiler flags for building library objects.
17805 pic_flag=$lt_lt_prog_compiler_pic_RC
17806 pic_mode=$pic_mode
17807
17808 # What is the maximum length of a command?
17809 max_cmd_len=$lt_cv_sys_max_cmd_len
17810
17811 # Does compiler simultaneously support -c and -o options?
17812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17813
17814 # Must we lock files when doing compilation ?
17815 need_locks=$lt_need_locks
17816
17817 # Do we need the lib prefix for modules?
17818 need_lib_prefix=$need_lib_prefix
17819
17820 # Do we need a version for libraries?
17821 need_version=$need_version
17822
17823 # Whether dlopen is supported.
17824 dlopen_support=$enable_dlopen
17825
17826 # Whether dlopen of programs is supported.
17827 dlopen_self=$enable_dlopen_self
17828
17829 # Whether dlopen of statically linked programs is supported.
17830 dlopen_self_static=$enable_dlopen_self_static
17831
17832 # Compiler flag to prevent dynamic linking.
17833 link_static_flag=$lt_lt_prog_compiler_static_RC
17834
17835 # Compiler flag to turn off builtin functions.
17836 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17837
17838 # Compiler flag to allow reflexive dlopens.
17839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17840
17841 # Compiler flag to generate shared objects directly from archives.
17842 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17843
17844 # Compiler flag to generate thread-safe objects.
17845 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17846
17847 # Library versioning type.
17848 version_type=$version_type
17849
17850 # Format of library name prefix.
17851 libname_spec=$lt_libname_spec
17852
17853 # List of archive names.  First name is the real one, the rest are links.
17854 # The last name is the one that the linker finds with -lNAME.
17855 library_names_spec=$lt_library_names_spec
17856
17857 # The coded name of the library, if different from the real name.
17858 soname_spec=$lt_soname_spec
17859
17860 # Commands used to build and install an old-style archive.
17861 RANLIB=$lt_RANLIB
17862 old_archive_cmds=$lt_old_archive_cmds_RC
17863 old_postinstall_cmds=$lt_old_postinstall_cmds
17864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17865
17866 # Create an old-style archive from a shared archive.
17867 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17868
17869 # Create a temporary old-style archive to link instead of a shared archive.
17870 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17871
17872 # Commands used to build and install a shared archive.
17873 archive_cmds=$lt_archive_cmds_RC
17874 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17875 postinstall_cmds=$lt_postinstall_cmds
17876 postuninstall_cmds=$lt_postuninstall_cmds
17877
17878 # Commands used to build a loadable module (assumed same as above if empty)
17879 module_cmds=$lt_module_cmds_RC
17880 module_expsym_cmds=$lt_module_expsym_cmds_RC
17881
17882 # Commands to strip libraries.
17883 old_striplib=$lt_old_striplib
17884 striplib=$lt_striplib
17885
17886 # Dependencies to place before the objects being linked to create a
17887 # shared library.
17888 predep_objects=$lt_predep_objects_RC
17889
17890 # Dependencies to place after the objects being linked to create a
17891 # shared library.
17892 postdep_objects=$lt_postdep_objects_RC
17893
17894 # Dependencies to place before the objects being linked to create a
17895 # shared library.
17896 predeps=$lt_predeps_RC
17897
17898 # Dependencies to place after the objects being linked to create a
17899 # shared library.
17900 postdeps=$lt_postdeps_RC
17901
17902 # The library search path used internally by the compiler when linking
17903 # a shared library.
17904 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17905
17906 # Method to check whether dependent libraries are shared objects.
17907 deplibs_check_method=$lt_deplibs_check_method
17908
17909 # Command to use when deplibs_check_method == file_magic.
17910 file_magic_cmd=$lt_file_magic_cmd
17911
17912 # Flag that allows shared libraries with undefined symbols to be built.
17913 allow_undefined_flag=$lt_allow_undefined_flag_RC
17914
17915 # Flag that forces no undefined symbols.
17916 no_undefined_flag=$lt_no_undefined_flag_RC
17917
17918 # Commands used to finish a libtool library installation in a directory.
17919 finish_cmds=$lt_finish_cmds
17920
17921 # Same as above, but a single script fragment to be evaled but not shown.
17922 finish_eval=$lt_finish_eval
17923
17924 # Take the output of nm and produce a listing of raw symbols and C names.
17925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17926
17927 # Transform the output of nm in a proper C declaration
17928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17929
17930 # Transform the output of nm in a C name address pair
17931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17932
17933 # This is the shared library runtime path variable.
17934 runpath_var=$runpath_var
17935
17936 # This is the shared library path variable.
17937 shlibpath_var=$shlibpath_var
17938
17939 # Is shlibpath searched before the hard-coded library search path?
17940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17941
17942 # How to hardcode a shared library path into an executable.
17943 hardcode_action=$hardcode_action_RC
17944
17945 # Whether we should hardcode library paths into libraries.
17946 hardcode_into_libs=$hardcode_into_libs
17947
17948 # Flag to hardcode \$libdir into a binary during linking.
17949 # This must work even if \$libdir does not exist.
17950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17951
17952 # If ld is used when linking, flag to hardcode \$libdir into
17953 # a binary during linking. This must work even if \$libdir does
17954 # not exist.
17955 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17956
17957 # Whether we need a single -rpath flag with a separated argument.
17958 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17959
17960 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17961 # resulting binary.
17962 hardcode_direct=$hardcode_direct_RC
17963
17964 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17965 # resulting binary.
17966 hardcode_minus_L=$hardcode_minus_L_RC
17967
17968 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17969 # the resulting binary.
17970 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17971
17972 # Set to yes if building a shared library automatically hardcodes DIR into the library
17973 # and all subsequent libraries and executables linked against it.
17974 hardcode_automatic=$hardcode_automatic_RC
17975
17976 # Variables whose values should be saved in libtool wrapper scripts and
17977 # restored at relink time.
17978 variables_saved_for_relink="$variables_saved_for_relink"
17979
17980 # Whether libtool must link a program against all its dependency libraries.
17981 link_all_deplibs=$link_all_deplibs_RC
17982
17983 # Compile-time system search path for libraries
17984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17985
17986 # Run-time system search path for libraries
17987 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17988
17989 # Fix the shell variable \$srcfile for the compiler.
17990 fix_srcfile_path="$fix_srcfile_path_RC"
17991
17992 # Set to yes if exported symbols are required.
17993 always_export_symbols=$always_export_symbols_RC
17994
17995 # The commands to list exported symbols.
17996 export_symbols_cmds=$lt_export_symbols_cmds_RC
17997
17998 # The commands to extract the exported symbol list from a shared archive.
17999 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18000
18001 # Symbols that should not be listed in the preloaded symbols.
18002 exclude_expsyms=$lt_exclude_expsyms_RC
18003
18004 # Symbols that must always be exported.
18005 include_expsyms=$lt_include_expsyms_RC
18006
18007 # ### END LIBTOOL TAG CONFIG: $tagname
18008
18009 __EOF__
18010
18011
18012 else
18013   # If there is no Makefile yet, we rely on a make rule to execute
18014   # `config.status --recheck' to rerun these tests and create the
18015   # libtool script then.
18016   test -f Makefile && make "$ltmain"
18017 fi
18018
18019
18020 ac_ext=c
18021 ac_cpp='$CPP $CPPFLAGS'
18022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18025
18026 CC="$lt_save_CC"
18027
18028         ;;
18029
18030       *)
18031         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18032 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18033    { (exit 1); exit 1; }; }
18034         ;;
18035       esac
18036
18037       # Append the new tag name to the list of available tags.
18038       if test -n "$tagname" ; then
18039       available_tags="$available_tags $tagname"
18040     fi
18041     fi
18042   done
18043   IFS="$lt_save_ifs"
18044
18045   # Now substitute the updated list of available tags.
18046   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18047     mv "${ofile}T" "$ofile"
18048     chmod +x "$ofile"
18049   else
18050     rm -f "${ofile}T"
18051     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18052 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18053    { (exit 1); exit 1; }; }
18054   fi
18055 fi
18056
18057
18058
18059 # This can be used to rebuild libtool when needed
18060 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18061
18062 # Always use our own libtool.
18063 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18064
18065 # Prevent multiple expansion
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087 # Extract the first word of "dot", so it can be a program name with args.
18088 set dummy dot; ac_word=$2
18089 echo "$as_me:$LINENO: checking for $ac_word" >&5
18090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18091 if test "${ac_cv_path_DOT+set}" = set; then
18092   echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094   case $DOT in
18095   [\\/]* | ?:[\\/]*)
18096   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18097   ;;
18098   *)
18099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18100 for as_dir in $PATH
18101 do
18102   IFS=$as_save_IFS
18103   test -z "$as_dir" && as_dir=.
18104   for ac_exec_ext in '' $ac_executable_extensions; do
18105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18106     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18108     break 2
18109   fi
18110 done
18111 done
18112
18113   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18114   ;;
18115 esac
18116 fi
18117 DOT=$ac_cv_path_DOT
18118
18119 if test -n "$DOT"; then
18120   echo "$as_me:$LINENO: result: $DOT" >&5
18121 echo "${ECHO_T}$DOT" >&6
18122 else
18123   echo "$as_me:$LINENO: result: no" >&5
18124 echo "${ECHO_T}no" >&6
18125 fi
18126
18127 # Extract the first word of "etags", so it can be a program name with args.
18128 set dummy etags; ac_word=$2
18129 echo "$as_me:$LINENO: checking for $ac_word" >&5
18130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18131 if test "${ac_cv_path_ETAGS+set}" = set; then
18132   echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134   case $ETAGS in
18135   [\\/]* | ?:[\\/]*)
18136   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18137   ;;
18138   *)
18139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18140 for as_dir in $PATH
18141 do
18142   IFS=$as_save_IFS
18143   test -z "$as_dir" && as_dir=.
18144   for ac_exec_ext in '' $ac_executable_extensions; do
18145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18146     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18148     break 2
18149   fi
18150 done
18151 done
18152
18153   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18154   ;;
18155 esac
18156 fi
18157 ETAGS=$ac_cv_path_ETAGS
18158
18159 if test -n "$ETAGS"; then
18160   echo "$as_me:$LINENO: result: $ETAGS" >&5
18161 echo "${ECHO_T}$ETAGS" >&6
18162 else
18163   echo "$as_me:$LINENO: result: no" >&5
18164 echo "${ECHO_T}no" >&6
18165 fi
18166
18167 etags_version=`$ETAGS --version 2>&1`
18168 case "$etags_version" in
18169         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18170         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18171         *) ETAGSFLAGS="" ;;
18172 esac
18173 ETAGSFLAGS=$ETAGSFLAGS
18174
18175 # Extract the first word of "python", so it can be a program name with args.
18176 set dummy python; ac_word=$2
18177 echo "$as_me:$LINENO: checking for $ac_word" >&5
18178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18179 if test "${ac_cv_path_PYTHON+set}" = set; then
18180   echo $ECHO_N "(cached) $ECHO_C" >&6
18181 else
18182   case $PYTHON in
18183   [\\/]* | ?:[\\/]*)
18184   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18185   ;;
18186   *)
18187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18188 for as_dir in $PATH
18189 do
18190   IFS=$as_save_IFS
18191   test -z "$as_dir" && as_dir=.
18192   for ac_exec_ext in '' $ac_executable_extensions; do
18193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18194     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18196     break 2
18197   fi
18198 done
18199 done
18200
18201   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18202   ;;
18203 esac
18204 fi
18205 PYTHON=$ac_cv_path_PYTHON
18206
18207 if test -n "$PYTHON"; then
18208   echo "$as_me:$LINENO: result: $PYTHON" >&5
18209 echo "${ECHO_T}$PYTHON" >&6
18210 else
18211   echo "$as_me:$LINENO: result: no" >&5
18212 echo "${ECHO_T}no" >&6
18213 fi
18214
18215 if test "$PYTHON" = "false"
18216 then
18217         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18218 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18219 fi
18220 # Extract the first word of "qmtest", so it can be a program name with args.
18221 set dummy qmtest; ac_word=$2
18222 echo "$as_me:$LINENO: checking for $ac_word" >&5
18223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18224 if test "${ac_cv_path_QMTEST+set}" = set; then
18225   echo $ECHO_N "(cached) $ECHO_C" >&6
18226 else
18227   case $QMTEST in
18228   [\\/]* | ?:[\\/]*)
18229   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18230   ;;
18231   *)
18232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18233 for as_dir in $PATH
18234 do
18235   IFS=$as_save_IFS
18236   test -z "$as_dir" && as_dir=.
18237   for ac_exec_ext in '' $ac_executable_extensions; do
18238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18239     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18241     break 2
18242   fi
18243 done
18244 done
18245
18246   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18247   ;;
18248 esac
18249 fi
18250 QMTEST=$ac_cv_path_QMTEST
18251
18252 if test -n "$QMTEST"; then
18253   echo "$as_me:$LINENO: result: $QMTEST" >&5
18254 echo "${ECHO_T}$QMTEST" >&6
18255 else
18256   echo "$as_me:$LINENO: result: no" >&5
18257 echo "${ECHO_T}no" >&6
18258 fi
18259
18260 if test "$QMTEST" = "false"
18261 then
18262         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18263 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18264 fi
18265
18266 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18267 pymajor=`echo $pyversion | cut -d. -f1`
18268 pyminor=`echo $pyversion | cut -d. -f2`
18269
18270 if test "$pymajor" -ge "2"
18271 then
18272         if test "$pymajor" -eq "2"
18273         then
18274                 if test "$pyminor" -lt "2"
18275                 then
18276                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18277 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18278                 fi
18279         fi
18280 else
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
18285
18286
18287
18288 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18289 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18290 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18291   echo $ECHO_N "(cached) $ECHO_C" >&6
18292 else
18293   ac_check_lib_save_LIBS=$LIBS
18294 LIBS="-lelf  $LIBS"
18295 cat >conftest.$ac_ext <<_ACEOF
18296 #line $LINENO "configure"
18297 /* confdefs.h.  */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h.  */
18302
18303 /* Override any gcc2 internal prototype to avoid an error.  */
18304 #ifdef __cplusplus
18305 extern "C"
18306 #endif
18307 /* We use char because int might match the return type of a gcc2
18308    builtin and then its argument prototype would still apply.  */
18309 char elf_begin ();
18310 int
18311 main ()
18312 {
18313 elf_begin ();
18314   ;
18315   return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320   (eval $ac_link) 2>&5
18321   ac_status=$?
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); } &&
18324          { ac_try='test -s conftest$ac_exeext'
18325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326   (eval $ac_try) 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); }; }; then
18330   ac_cv_lib_elf_elf_begin=yes
18331 else
18332   echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18334
18335 ac_cv_lib_elf_elf_begin=no
18336 fi
18337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18338 LIBS=$ac_check_lib_save_LIBS
18339 fi
18340 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18341 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18342 if test $ac_cv_lib_elf_elf_begin = yes; then
18343   cat >>confdefs.h <<_ACEOF
18344 #define HAVE_LIBELF 1
18345 _ACEOF
18346
18347   LIBS="-lelf $LIBS"
18348
18349 fi
18350
18351
18352 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18353 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18354 if test "${ac_cv_search_dlopen+set}" = set; then
18355   echo $ECHO_N "(cached) $ECHO_C" >&6
18356 else
18357   ac_func_search_save_LIBS=$LIBS
18358 ac_cv_search_dlopen=no
18359 cat >conftest.$ac_ext <<_ACEOF
18360 #line $LINENO "configure"
18361 /* confdefs.h.  */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h.  */
18366
18367 /* Override any gcc2 internal prototype to avoid an error.  */
18368 #ifdef __cplusplus
18369 extern "C"
18370 #endif
18371 /* We use char because int might match the return type of a gcc2
18372    builtin and then its argument prototype would still apply.  */
18373 char dlopen ();
18374 int
18375 main ()
18376 {
18377 dlopen ();
18378   ;
18379   return 0;
18380 }
18381 _ACEOF
18382 rm -f conftest.$ac_objext conftest$ac_exeext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18384   (eval $ac_link) 2>&5
18385   ac_status=$?
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); } &&
18388          { ac_try='test -s conftest$ac_exeext'
18389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390   (eval $ac_try) 2>&5
18391   ac_status=$?
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); }; }; then
18394   ac_cv_search_dlopen="none required"
18395 else
18396   echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18398
18399 fi
18400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18401 if test "$ac_cv_search_dlopen" = no; then
18402   for ac_lib in dl; do
18403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18404     cat >conftest.$ac_ext <<_ACEOF
18405 #line $LINENO "configure"
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411
18412 /* Override any gcc2 internal prototype to avoid an error.  */
18413 #ifdef __cplusplus
18414 extern "C"
18415 #endif
18416 /* We use char because int might match the return type of a gcc2
18417    builtin and then its argument prototype would still apply.  */
18418 char dlopen ();
18419 int
18420 main ()
18421 {
18422 dlopen ();
18423   ;
18424   return 0;
18425 }
18426 _ACEOF
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18429   (eval $ac_link) 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); } &&
18433          { ac_try='test -s conftest$ac_exeext'
18434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; }; then
18439   ac_cv_search_dlopen="-l$ac_lib"
18440 break
18441 else
18442   echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18444
18445 fi
18446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18447   done
18448 fi
18449 LIBS=$ac_func_search_save_LIBS
18450 fi
18451 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18452 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18453 if test "$ac_cv_search_dlopen" != no; then
18454   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18455
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_DLOPEN 1
18458 _ACEOF
18459
18460 else
18461   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18462 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18463 fi
18464
18465
18466 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18467 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18468 if test "${ac_cv_search_mallinfo+set}" = set; then
18469   echo $ECHO_N "(cached) $ECHO_C" >&6
18470 else
18471   ac_func_search_save_LIBS=$LIBS
18472 ac_cv_search_mallinfo=no
18473 cat >conftest.$ac_ext <<_ACEOF
18474 #line $LINENO "configure"
18475 /* confdefs.h.  */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h.  */
18480
18481 /* Override any gcc2 internal prototype to avoid an error.  */
18482 #ifdef __cplusplus
18483 extern "C"
18484 #endif
18485 /* We use char because int might match the return type of a gcc2
18486    builtin and then its argument prototype would still apply.  */
18487 char mallinfo ();
18488 int
18489 main ()
18490 {
18491 mallinfo ();
18492   ;
18493   return 0;
18494 }
18495 _ACEOF
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18498   (eval $ac_link) 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); } &&
18502          { ac_try='test -s conftest$ac_exeext'
18503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504   (eval $ac_try) 2>&5
18505   ac_status=$?
18506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507   (exit $ac_status); }; }; then
18508   ac_cv_search_mallinfo="none required"
18509 else
18510   echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18512
18513 fi
18514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18515 if test "$ac_cv_search_mallinfo" = no; then
18516   for ac_lib in malloc; do
18517     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18518     cat >conftest.$ac_ext <<_ACEOF
18519 #line $LINENO "configure"
18520 /* confdefs.h.  */
18521 _ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h.  */
18525
18526 /* Override any gcc2 internal prototype to avoid an error.  */
18527 #ifdef __cplusplus
18528 extern "C"
18529 #endif
18530 /* We use char because int might match the return type of a gcc2
18531    builtin and then its argument prototype would still apply.  */
18532 char mallinfo ();
18533 int
18534 main ()
18535 {
18536 mallinfo ();
18537   ;
18538   return 0;
18539 }
18540 _ACEOF
18541 rm -f conftest.$ac_objext conftest$ac_exeext
18542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18543   (eval $ac_link) 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); } &&
18547          { ac_try='test -s conftest$ac_exeext'
18548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549   (eval $ac_try) 2>&5
18550   ac_status=$?
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); }; }; then
18553   ac_cv_search_mallinfo="-l$ac_lib"
18554 break
18555 else
18556   echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559 fi
18560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18561   done
18562 fi
18563 LIBS=$ac_func_search_save_LIBS
18564 fi
18565 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18566 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18567 if test "$ac_cv_search_mallinfo" != no; then
18568   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18569
18570 cat >>confdefs.h <<\_ACEOF
18571 #define HAVE_MALLINFO 1
18572 _ACEOF
18573
18574 fi
18575
18576
18577 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18578 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18579 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18580   echo $ECHO_N "(cached) $ECHO_C" >&6
18581 else
18582   ac_func_search_save_LIBS=$LIBS
18583 ac_cv_search_pthread_mutex_lock=no
18584 cat >conftest.$ac_ext <<_ACEOF
18585 #line $LINENO "configure"
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591
18592 /* Override any gcc2 internal prototype to avoid an error.  */
18593 #ifdef __cplusplus
18594 extern "C"
18595 #endif
18596 /* We use char because int might match the return type of a gcc2
18597    builtin and then its argument prototype would still apply.  */
18598 char pthread_mutex_lock ();
18599 int
18600 main ()
18601 {
18602 pthread_mutex_lock ();
18603   ;
18604   return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609   (eval $ac_link) 2>&5
18610   ac_status=$?
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); } &&
18613          { ac_try='test -s conftest$ac_exeext'
18614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615   (eval $ac_try) 2>&5
18616   ac_status=$?
18617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618   (exit $ac_status); }; }; then
18619   ac_cv_search_pthread_mutex_lock="none required"
18620 else
18621   echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 fi
18625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18626 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18627   for ac_lib in pthread; do
18628     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18629     cat >conftest.$ac_ext <<_ACEOF
18630 #line $LINENO "configure"
18631 /* confdefs.h.  */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h.  */
18636
18637 /* Override any gcc2 internal prototype to avoid an error.  */
18638 #ifdef __cplusplus
18639 extern "C"
18640 #endif
18641 /* We use char because int might match the return type of a gcc2
18642    builtin and then its argument prototype would still apply.  */
18643 char pthread_mutex_lock ();
18644 int
18645 main ()
18646 {
18647 pthread_mutex_lock ();
18648   ;
18649   return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18654   (eval $ac_link) 2>&5
18655   ac_status=$?
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); } &&
18658          { ac_try='test -s conftest$ac_exeext'
18659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660   (eval $ac_try) 2>&5
18661   ac_status=$?
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); }; }; then
18664   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18665 break
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670 fi
18671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18672   done
18673 fi
18674 LIBS=$ac_func_search_save_LIBS
18675 fi
18676 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18677 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18678 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18679   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18680   HAVE_PTHREAD_MUTEX_LOCK=1
18681 else
18682   HAVE_PTHREAD_MUTEX_LOCK=0
18683 fi
18684
18685
18686
18687 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18688 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18689 if test "${ac_cv_header_stdc+set}" = set; then
18690   echo $ECHO_N "(cached) $ECHO_C" >&6
18691 else
18692   cat >conftest.$ac_ext <<_ACEOF
18693 #line $LINENO "configure"
18694 /* confdefs.h.  */
18695 _ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h.  */
18699 #include <stdlib.h>
18700 #include <stdarg.h>
18701 #include <string.h>
18702 #include <float.h>
18703
18704 int
18705 main ()
18706 {
18707
18708   ;
18709   return 0;
18710 }
18711 _ACEOF
18712 rm -f conftest.$ac_objext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18714   (eval $ac_compile) 2>&5
18715   ac_status=$?
18716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717   (exit $ac_status); } &&
18718          { ac_try='test -s conftest.$ac_objext'
18719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720   (eval $ac_try) 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; }; then
18724   ac_cv_header_stdc=yes
18725 else
18726   echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18728
18729 ac_cv_header_stdc=no
18730 fi
18731 rm -f conftest.$ac_objext conftest.$ac_ext
18732
18733 if test $ac_cv_header_stdc = yes; then
18734   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18735   cat >conftest.$ac_ext <<_ACEOF
18736 #line $LINENO "configure"
18737 /* confdefs.h.  */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h.  */
18742 #include <string.h>
18743
18744 _ACEOF
18745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18746   $EGREP "memchr" >/dev/null 2>&1; then
18747   :
18748 else
18749   ac_cv_header_stdc=no
18750 fi
18751 rm -f conftest*
18752
18753 fi
18754
18755 if test $ac_cv_header_stdc = yes; then
18756   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18757   cat >conftest.$ac_ext <<_ACEOF
18758 #line $LINENO "configure"
18759 /* confdefs.h.  */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h.  */
18764 #include <stdlib.h>
18765
18766 _ACEOF
18767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18768   $EGREP "free" >/dev/null 2>&1; then
18769   :
18770 else
18771   ac_cv_header_stdc=no
18772 fi
18773 rm -f conftest*
18774
18775 fi
18776
18777 if test $ac_cv_header_stdc = yes; then
18778   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18779   if test "$cross_compiling" = yes; then
18780   :
18781 else
18782   cat >conftest.$ac_ext <<_ACEOF
18783 #line $LINENO "configure"
18784 /* confdefs.h.  */
18785 _ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h.  */
18789 #include <ctype.h>
18790 #if ((' ' & 0x0FF) == 0x020)
18791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18793 #else
18794 # define ISLOWER(c) \
18795                    (('a' <= (c) && (c) <= 'i') \
18796                      || ('j' <= (c) && (c) <= 'r') \
18797                      || ('s' <= (c) && (c) <= 'z'))
18798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18799 #endif
18800
18801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18802 int
18803 main ()
18804 {
18805   int i;
18806   for (i = 0; i < 256; i++)
18807     if (XOR (islower (i), ISLOWER (i))
18808         || toupper (i) != TOUPPER (i))
18809       exit(2);
18810   exit (0);
18811 }
18812 _ACEOF
18813 rm -f conftest$ac_exeext
18814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18815   (eval $ac_link) 2>&5
18816   ac_status=$?
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820   (eval $ac_try) 2>&5
18821   ac_status=$?
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); }; }; then
18824   :
18825 else
18826   echo "$as_me: program exited with status $ac_status" >&5
18827 echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18829
18830 ( exit $ac_status )
18831 ac_cv_header_stdc=no
18832 fi
18833 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18834 fi
18835 fi
18836 fi
18837 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18838 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18839 if test $ac_cv_header_stdc = yes; then
18840
18841 cat >>confdefs.h <<\_ACEOF
18842 #define STDC_HEADERS 1
18843 _ACEOF
18844
18845 fi
18846
18847 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18848 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18849 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18850   echo $ECHO_N "(cached) $ECHO_C" >&6
18851 else
18852   cat >conftest.$ac_ext <<_ACEOF
18853 #line $LINENO "configure"
18854 /* confdefs.h.  */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h.  */
18859 #include <sys/types.h>
18860 #include <sys/wait.h>
18861 #ifndef WEXITSTATUS
18862 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18863 #endif
18864 #ifndef WIFEXITED
18865 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18866 #endif
18867
18868 int
18869 main ()
18870 {
18871   int s;
18872   wait (&s);
18873   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18874   ;
18875   return 0;
18876 }
18877 _ACEOF
18878 rm -f conftest.$ac_objext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18880   (eval $ac_compile) 2>&5
18881   ac_status=$?
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); } &&
18884          { ac_try='test -s conftest.$ac_objext'
18885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886   (eval $ac_try) 2>&5
18887   ac_status=$?
18888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); }; }; then
18890   ac_cv_header_sys_wait_h=yes
18891 else
18892   echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18894
18895 ac_cv_header_sys_wait_h=no
18896 fi
18897 rm -f conftest.$ac_objext conftest.$ac_ext
18898 fi
18899 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18900 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18901 if test $ac_cv_header_sys_wait_h = yes; then
18902
18903 cat >>confdefs.h <<\_ACEOF
18904 #define HAVE_SYS_WAIT_H 1
18905 _ACEOF
18906
18907 fi
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920 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
18921 do
18922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18924   echo "$as_me:$LINENO: checking for $ac_header" >&5
18925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18927   echo $ECHO_N "(cached) $ECHO_C" >&6
18928 fi
18929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18931 else
18932   # Is the header compilable?
18933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18935 cat >conftest.$ac_ext <<_ACEOF
18936 #line $LINENO "configure"
18937 /* confdefs.h.  */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h.  */
18942 $ac_includes_default
18943 #include <$ac_header>
18944 _ACEOF
18945 rm -f conftest.$ac_objext
18946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18947   (eval $ac_compile) 2>&5
18948   ac_status=$?
18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950   (exit $ac_status); } &&
18951          { ac_try='test -s conftest.$ac_objext'
18952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953   (eval $ac_try) 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; }; then
18957   ac_header_compiler=yes
18958 else
18959   echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962 ac_header_compiler=no
18963 fi
18964 rm -f conftest.$ac_objext conftest.$ac_ext
18965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18966 echo "${ECHO_T}$ac_header_compiler" >&6
18967
18968 # Is the header present?
18969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18971 cat >conftest.$ac_ext <<_ACEOF
18972 #line $LINENO "configure"
18973 /* confdefs.h.  */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h.  */
18978 #include <$ac_header>
18979 _ACEOF
18980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18982   ac_status=$?
18983   grep -v '^ *+' conftest.er1 >conftest.err
18984   rm -f conftest.er1
18985   cat conftest.err >&5
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); } >/dev/null; then
18988   if test -s conftest.err; then
18989     ac_cpp_err=$ac_c_preproc_warn_flag
18990   else
18991     ac_cpp_err=
18992   fi
18993 else
18994   ac_cpp_err=yes
18995 fi
18996 if test -z "$ac_cpp_err"; then
18997   ac_header_preproc=yes
18998 else
18999   echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002   ac_header_preproc=no
19003 fi
19004 rm -f conftest.err conftest.$ac_ext
19005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19006 echo "${ECHO_T}$ac_header_preproc" >&6
19007
19008 # So?  What about this header?
19009 case $ac_header_compiler:$ac_header_preproc in
19010   yes:no )
19011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19015     (
19016       cat <<\_ASBOX
19017 ## ------------------------------------ ##
19018 ## Report this to bug-autoconf@gnu.org. ##
19019 ## ------------------------------------ ##
19020 _ASBOX
19021     ) |
19022       sed "s/^/$as_me: WARNING:     /" >&2
19023     ;;
19024   no:yes )
19025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19027     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19031     (
19032       cat <<\_ASBOX
19033 ## ------------------------------------ ##
19034 ## Report this to bug-autoconf@gnu.org. ##
19035 ## ------------------------------------ ##
19036 _ASBOX
19037     ) |
19038       sed "s/^/$as_me: WARNING:     /" >&2
19039     ;;
19040 esac
19041 echo "$as_me:$LINENO: checking for $ac_header" >&5
19042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19044   echo $ECHO_N "(cached) $ECHO_C" >&6
19045 else
19046   eval "$as_ac_Header=$ac_header_preproc"
19047 fi
19048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19050
19051 fi
19052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19053   cat >>confdefs.h <<_ACEOF
19054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19055 _ACEOF
19056
19057 fi
19058
19059 done
19060
19061
19062 if test "${ac_cv_header_sys_types_h+set}" = set; then
19063   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19064 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19065 if test "${ac_cv_header_sys_types_h+set}" = set; then
19066   echo $ECHO_N "(cached) $ECHO_C" >&6
19067 fi
19068 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19069 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19070 else
19071   # Is the header compilable?
19072 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19073 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19074 cat >conftest.$ac_ext <<_ACEOF
19075 #line $LINENO "configure"
19076 /* confdefs.h.  */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h.  */
19081 $ac_includes_default
19082 #include <sys/types.h>
19083 _ACEOF
19084 rm -f conftest.$ac_objext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086   (eval $ac_compile) 2>&5
19087   ac_status=$?
19088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089   (exit $ac_status); } &&
19090          { ac_try='test -s conftest.$ac_objext'
19091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092   (eval $ac_try) 2>&5
19093   ac_status=$?
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); }; }; then
19096   ac_header_compiler=yes
19097 else
19098   echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19100
19101 ac_header_compiler=no
19102 fi
19103 rm -f conftest.$ac_objext conftest.$ac_ext
19104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19105 echo "${ECHO_T}$ac_header_compiler" >&6
19106
19107 # Is the header present?
19108 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19109 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19110 cat >conftest.$ac_ext <<_ACEOF
19111 #line $LINENO "configure"
19112 /* confdefs.h.  */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h.  */
19117 #include <sys/types.h>
19118 _ACEOF
19119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19121   ac_status=$?
19122   grep -v '^ *+' conftest.er1 >conftest.err
19123   rm -f conftest.er1
19124   cat conftest.err >&5
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); } >/dev/null; then
19127   if test -s conftest.err; then
19128     ac_cpp_err=$ac_c_preproc_warn_flag
19129   else
19130     ac_cpp_err=
19131   fi
19132 else
19133   ac_cpp_err=yes
19134 fi
19135 if test -z "$ac_cpp_err"; then
19136   ac_header_preproc=yes
19137 else
19138   echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19140
19141   ac_header_preproc=no
19142 fi
19143 rm -f conftest.err conftest.$ac_ext
19144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19145 echo "${ECHO_T}$ac_header_preproc" >&6
19146
19147 # So?  What about this header?
19148 case $ac_header_compiler:$ac_header_preproc in
19149   yes:no )
19150     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19151 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19152     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19153 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19154     (
19155       cat <<\_ASBOX
19156 ## ------------------------------------ ##
19157 ## Report this to bug-autoconf@gnu.org. ##
19158 ## ------------------------------------ ##
19159 _ASBOX
19160     ) |
19161       sed "s/^/$as_me: WARNING:     /" >&2
19162     ;;
19163   no:yes )
19164     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19165 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19166     { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19167 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19168     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19169 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19170     (
19171       cat <<\_ASBOX
19172 ## ------------------------------------ ##
19173 ## Report this to bug-autoconf@gnu.org. ##
19174 ## ------------------------------------ ##
19175 _ASBOX
19176     ) |
19177       sed "s/^/$as_me: WARNING:     /" >&2
19178     ;;
19179 esac
19180 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19181 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19182 if test "${ac_cv_header_sys_types_h+set}" = set; then
19183   echo $ECHO_N "(cached) $ECHO_C" >&6
19184 else
19185   ac_cv_header_sys_types_h=$ac_header_preproc
19186 fi
19187 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19188 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19189
19190 fi
19191 if test $ac_cv_header_sys_types_h = yes; then
19192   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19193 else
19194   INCLUDE_SYS_TYPES_H=''
19195 fi
19196
19197
19198
19199 if test "${ac_cv_header_inttypes_h+set}" = set; then
19200   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19201 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19202 if test "${ac_cv_header_inttypes_h+set}" = set; then
19203   echo $ECHO_N "(cached) $ECHO_C" >&6
19204 fi
19205 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19206 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19207 else
19208   # Is the header compilable?
19209 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19210 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19211 cat >conftest.$ac_ext <<_ACEOF
19212 #line $LINENO "configure"
19213 /* confdefs.h.  */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h.  */
19218 $ac_includes_default
19219 #include <inttypes.h>
19220 _ACEOF
19221 rm -f conftest.$ac_objext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19223   (eval $ac_compile) 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); } &&
19227          { ac_try='test -s conftest.$ac_objext'
19228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229   (eval $ac_try) 2>&5
19230   ac_status=$?
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); }; }; then
19233   ac_header_compiler=yes
19234 else
19235   echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19237
19238 ac_header_compiler=no
19239 fi
19240 rm -f conftest.$ac_objext conftest.$ac_ext
19241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19242 echo "${ECHO_T}$ac_header_compiler" >&6
19243
19244 # Is the header present?
19245 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19246 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19247 cat >conftest.$ac_ext <<_ACEOF
19248 #line $LINENO "configure"
19249 /* confdefs.h.  */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h.  */
19254 #include <inttypes.h>
19255 _ACEOF
19256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19258   ac_status=$?
19259   grep -v '^ *+' conftest.er1 >conftest.err
19260   rm -f conftest.er1
19261   cat conftest.err >&5
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); } >/dev/null; then
19264   if test -s conftest.err; then
19265     ac_cpp_err=$ac_c_preproc_warn_flag
19266   else
19267     ac_cpp_err=
19268   fi
19269 else
19270   ac_cpp_err=yes
19271 fi
19272 if test -z "$ac_cpp_err"; then
19273   ac_header_preproc=yes
19274 else
19275   echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19277
19278   ac_header_preproc=no
19279 fi
19280 rm -f conftest.err conftest.$ac_ext
19281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19282 echo "${ECHO_T}$ac_header_preproc" >&6
19283
19284 # So?  What about this header?
19285 case $ac_header_compiler:$ac_header_preproc in
19286   yes:no )
19287     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19288 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19289     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19290 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19291     (
19292       cat <<\_ASBOX
19293 ## ------------------------------------ ##
19294 ## Report this to bug-autoconf@gnu.org. ##
19295 ## ------------------------------------ ##
19296 _ASBOX
19297     ) |
19298       sed "s/^/$as_me: WARNING:     /" >&2
19299     ;;
19300   no:yes )
19301     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19302 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19303     { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19304 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19305     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19306 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19307     (
19308       cat <<\_ASBOX
19309 ## ------------------------------------ ##
19310 ## Report this to bug-autoconf@gnu.org. ##
19311 ## ------------------------------------ ##
19312 _ASBOX
19313     ) |
19314       sed "s/^/$as_me: WARNING:     /" >&2
19315     ;;
19316 esac
19317 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19318 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19319 if test "${ac_cv_header_inttypes_h+set}" = set; then
19320   echo $ECHO_N "(cached) $ECHO_C" >&6
19321 else
19322   ac_cv_header_inttypes_h=$ac_header_preproc
19323 fi
19324 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19325 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19326
19327 fi
19328 if test $ac_cv_header_inttypes_h = yes; then
19329   INCLUDE_INTTYPES_H='#include <inttypes.h>'
19330 else
19331   INCLUDE_INTTYPES_H=''
19332 fi
19333
19334
19335
19336
19337 echo "$as_me:$LINENO: checking for pid_t" >&5
19338 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19339 if test "${ac_cv_type_pid_t+set}" = set; then
19340   echo $ECHO_N "(cached) $ECHO_C" >&6
19341 else
19342   cat >conftest.$ac_ext <<_ACEOF
19343 #line $LINENO "configure"
19344 /* confdefs.h.  */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h.  */
19349 $ac_includes_default
19350 int
19351 main ()
19352 {
19353 if ((pid_t *) 0)
19354   return 0;
19355 if (sizeof (pid_t))
19356   return 0;
19357   ;
19358   return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext
19362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19363   (eval $ac_compile) 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); } &&
19367          { ac_try='test -s conftest.$ac_objext'
19368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369   (eval $ac_try) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); }; }; then
19373   ac_cv_type_pid_t=yes
19374 else
19375   echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19377
19378 ac_cv_type_pid_t=no
19379 fi
19380 rm -f conftest.$ac_objext conftest.$ac_ext
19381 fi
19382 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19383 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19384 if test $ac_cv_type_pid_t = yes; then
19385   :
19386 else
19387
19388 cat >>confdefs.h <<_ACEOF
19389 #define pid_t int
19390 _ACEOF
19391
19392 fi
19393
19394 echo "$as_me:$LINENO: checking for size_t" >&5
19395 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19396 if test "${ac_cv_type_size_t+set}" = set; then
19397   echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399   cat >conftest.$ac_ext <<_ACEOF
19400 #line $LINENO "configure"
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406 $ac_includes_default
19407 int
19408 main ()
19409 {
19410 if ((size_t *) 0)
19411   return 0;
19412 if (sizeof (size_t))
19413   return 0;
19414   ;
19415   return 0;
19416 }
19417 _ACEOF
19418 rm -f conftest.$ac_objext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19420   (eval $ac_compile) 2>&5
19421   ac_status=$?
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); } &&
19424          { ac_try='test -s conftest.$ac_objext'
19425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426   (eval $ac_try) 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); }; }; then
19430   ac_cv_type_size_t=yes
19431 else
19432   echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19434
19435 ac_cv_type_size_t=no
19436 fi
19437 rm -f conftest.$ac_objext conftest.$ac_ext
19438 fi
19439 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19440 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19441 if test $ac_cv_type_size_t = yes; then
19442   :
19443 else
19444
19445 cat >>confdefs.h <<_ACEOF
19446 #define size_t unsigned
19447 _ACEOF
19448
19449 fi
19450
19451 echo "$as_me:$LINENO: checking for int64_t" >&5
19452 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19453 if test "${ac_cv_type_int64_t+set}" = set; then
19454   echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456   cat >conftest.$ac_ext <<_ACEOF
19457 #line $LINENO "configure"
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463 $ac_includes_default
19464 int
19465 main ()
19466 {
19467 if ((int64_t *) 0)
19468   return 0;
19469 if (sizeof (int64_t))
19470   return 0;
19471   ;
19472   return 0;
19473 }
19474 _ACEOF
19475 rm -f conftest.$ac_objext
19476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19477   (eval $ac_compile) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); } &&
19481          { ac_try='test -s conftest.$ac_objext'
19482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483   (eval $ac_try) 2>&5
19484   ac_status=$?
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); }; }; then
19487   ac_cv_type_int64_t=yes
19488 else
19489   echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19491
19492 ac_cv_type_int64_t=no
19493 fi
19494 rm -f conftest.$ac_objext conftest.$ac_ext
19495 fi
19496 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19497 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19498 if test $ac_cv_type_int64_t = yes; then
19499
19500 cat >>confdefs.h <<_ACEOF
19501 #define HAVE_INT64_T 1
19502 _ACEOF
19503
19504
19505 else
19506   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19507 echo "$as_me: error: Type int64_t required but not found" >&2;}
19508    { (exit 1); exit 1; }; }
19509 fi
19510
19511 echo "$as_me:$LINENO: checking for uint64_t" >&5
19512 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19513 if test "${ac_cv_type_uint64_t+set}" = set; then
19514   echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
19516   cat >conftest.$ac_ext <<_ACEOF
19517 #line $LINENO "configure"
19518 /* confdefs.h.  */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h.  */
19523 $ac_includes_default
19524 int
19525 main ()
19526 {
19527 if ((uint64_t *) 0)
19528   return 0;
19529 if (sizeof (uint64_t))
19530   return 0;
19531   ;
19532   return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext
19536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19537   (eval $ac_compile) 2>&5
19538   ac_status=$?
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); } &&
19541          { ac_try='test -s conftest.$ac_objext'
19542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543   (eval $ac_try) 2>&5
19544   ac_status=$?
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); }; }; then
19547   ac_cv_type_uint64_t=yes
19548 else
19549   echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19551
19552 ac_cv_type_uint64_t=no
19553 fi
19554 rm -f conftest.$ac_objext conftest.$ac_ext
19555 fi
19556 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19557 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19558 if test $ac_cv_type_uint64_t = yes; then
19559
19560 cat >>confdefs.h <<_ACEOF
19561 #define HAVE_UINT64_T 1
19562 _ACEOF
19563
19564
19565 else
19566   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19567 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19568    { (exit 1); exit 1; }; }
19569 fi
19570
19571 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19572 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19573 if test "${ac_cv_header_time+set}" = set; then
19574   echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576   cat >conftest.$ac_ext <<_ACEOF
19577 #line $LINENO "configure"
19578 /* confdefs.h.  */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h.  */
19583 #include <sys/types.h>
19584 #include <sys/time.h>
19585 #include <time.h>
19586
19587 int
19588 main ()
19589 {
19590 if ((struct tm *) 0)
19591 return 0;
19592   ;
19593   return 0;
19594 }
19595 _ACEOF
19596 rm -f conftest.$ac_objext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598   (eval $ac_compile) 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } &&
19602          { ac_try='test -s conftest.$ac_objext'
19603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604   (eval $ac_try) 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; }; then
19608   ac_cv_header_time=yes
19609 else
19610   echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 ac_cv_header_time=no
19614 fi
19615 rm -f conftest.$ac_objext conftest.$ac_ext
19616 fi
19617 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19618 echo "${ECHO_T}$ac_cv_header_time" >&6
19619 if test $ac_cv_header_time = yes; then
19620
19621 cat >>confdefs.h <<\_ACEOF
19622 #define TIME_WITH_SYS_TIME 1
19623 _ACEOF
19624
19625 fi
19626
19627 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19628 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19629 if test "${ac_cv_struct_tm+set}" = set; then
19630   echo $ECHO_N "(cached) $ECHO_C" >&6
19631 else
19632   cat >conftest.$ac_ext <<_ACEOF
19633 #line $LINENO "configure"
19634 /* confdefs.h.  */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h.  */
19639 #include <sys/types.h>
19640 #include <time.h>
19641
19642 int
19643 main ()
19644 {
19645 struct tm *tp; tp->tm_sec;
19646   ;
19647   return 0;
19648 }
19649 _ACEOF
19650 rm -f conftest.$ac_objext
19651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19652   (eval $ac_compile) 2>&5
19653   ac_status=$?
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); } &&
19656          { ac_try='test -s conftest.$ac_objext'
19657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658   (eval $ac_try) 2>&5
19659   ac_status=$?
19660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661   (exit $ac_status); }; }; then
19662   ac_cv_struct_tm=time.h
19663 else
19664   echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19666
19667 ac_cv_struct_tm=sys/time.h
19668 fi
19669 rm -f conftest.$ac_objext conftest.$ac_ext
19670 fi
19671 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19672 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19673 if test $ac_cv_struct_tm = sys/time.h; then
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define TM_IN_SYS_TIME 1
19677 _ACEOF
19678
19679 fi
19680
19681
19682
19683
19684
19685         ac_ext=c
19686 ac_cpp='$CPP $CPPFLAGS'
19687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19690
19691         if test "$cross_compiling" = yes; then
19692   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19693 See \`config.log' for more details." >&5
19694 echo "$as_me: error: cannot run test program while cross compiling
19695 See \`config.log' for more details." >&2;}
19696    { (exit 1); exit 1; }; }
19697 else
19698   cat >conftest.$ac_ext <<_ACEOF
19699 #line $LINENO "configure"
19700 /* confdefs.h.  */
19701 _ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h.  */
19705 #include <stdio.h>
19706                                  #include <stdlib.h>
19707 int
19708 main ()
19709 {
19710
19711                                  volatile double A, B;
19712                                  char Buffer[100];
19713                                  A = 1;
19714                                  A /= 10.0;
19715                                  sprintf(Buffer, "%a", A);
19716                                  B = atof(Buffer);
19717                                  if (A != B)
19718                                                          return (1);
19719                                  if (A != 0x1.999999999999ap-4)
19720                                                          return (1);
19721                                  return (0);
19722   ;
19723   return 0;
19724 }
19725 _ACEOF
19726 rm -f conftest$ac_exeext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19728   (eval $ac_link) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733   (eval $ac_try) 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); }; }; then
19737   ac_c_printf_a=yes
19738 else
19739   echo "$as_me: program exited with status $ac_status" >&5
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 ( exit $ac_status )
19744 ac_c_printf_a=no
19745 fi
19746 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19747 fi
19748         ac_ext=c
19749 ac_cpp='$CPP $CPPFLAGS'
19750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19753
19754         if test "$ac_c_printf_a" = "yes"; then
19755
19756 cat >>confdefs.h <<\_ACEOF
19757 #define HAVE_PRINTF_A 1
19758 _ACEOF
19759
19760         fi
19761
19762
19763 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19764 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19765 if test "${ac_cv_c_bigendian+set}" = set; then
19766   echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768   # See if sys/param.h defines the BYTE_ORDER macro.
19769 cat >conftest.$ac_ext <<_ACEOF
19770 #line $LINENO "configure"
19771 /* confdefs.h.  */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h.  */
19776 #include <sys/types.h>
19777 #include <sys/param.h>
19778
19779 int
19780 main ()
19781 {
19782 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19783  bogus endian macros
19784 #endif
19785
19786   ;
19787   return 0;
19788 }
19789 _ACEOF
19790 rm -f conftest.$ac_objext
19791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19792   (eval $ac_compile) 2>&5
19793   ac_status=$?
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } &&
19796          { ac_try='test -s conftest.$ac_objext'
19797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798   (eval $ac_try) 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; }; then
19802   # It does; now see whether it defined to BIG_ENDIAN or not.
19803 cat >conftest.$ac_ext <<_ACEOF
19804 #line $LINENO "configure"
19805 /* confdefs.h.  */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h.  */
19810 #include <sys/types.h>
19811 #include <sys/param.h>
19812
19813 int
19814 main ()
19815 {
19816 #if BYTE_ORDER != BIG_ENDIAN
19817  not big endian
19818 #endif
19819
19820   ;
19821   return 0;
19822 }
19823 _ACEOF
19824 rm -f conftest.$ac_objext
19825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19826   (eval $ac_compile) 2>&5
19827   ac_status=$?
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); } &&
19830          { ac_try='test -s conftest.$ac_objext'
19831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832   (eval $ac_try) 2>&5
19833   ac_status=$?
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); }; }; then
19836   ac_cv_c_bigendian=yes
19837 else
19838   echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19840
19841 ac_cv_c_bigendian=no
19842 fi
19843 rm -f conftest.$ac_objext conftest.$ac_ext
19844 else
19845   echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19847
19848 # It does not; compile a test program.
19849 if test "$cross_compiling" = yes; then
19850   # try to guess the endianness by grepping values into an object file
19851   ac_cv_c_bigendian=unknown
19852   cat >conftest.$ac_ext <<_ACEOF
19853 #line $LINENO "configure"
19854 /* confdefs.h.  */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h.  */
19859 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19860 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19861 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19862 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19863 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19864 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19865 int
19866 main ()
19867 {
19868  _ascii (); _ebcdic ();
19869   ;
19870   return 0;
19871 }
19872 _ACEOF
19873 rm -f conftest.$ac_objext
19874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19875   (eval $ac_compile) 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); } &&
19879          { ac_try='test -s conftest.$ac_objext'
19880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881   (eval $ac_try) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; }; then
19885   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19886   ac_cv_c_bigendian=yes
19887 fi
19888 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19889   if test "$ac_cv_c_bigendian" = unknown; then
19890     ac_cv_c_bigendian=no
19891   else
19892     # finding both strings is unlikely to happen, but who knows?
19893     ac_cv_c_bigendian=unknown
19894   fi
19895 fi
19896 else
19897   echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19899
19900 fi
19901 rm -f conftest.$ac_objext conftest.$ac_ext
19902 else
19903   cat >conftest.$ac_ext <<_ACEOF
19904 #line $LINENO "configure"
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19910 int
19911 main ()
19912 {
19913   /* Are we little or big endian?  From Harbison&Steele.  */
19914   union
19915   {
19916     long l;
19917     char c[sizeof (long)];
19918   } u;
19919   u.l = 1;
19920   exit (u.c[sizeof (long) - 1] == 1);
19921 }
19922 _ACEOF
19923 rm -f conftest$ac_exeext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19925   (eval $ac_link) 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930   (eval $ac_try) 2>&5
19931   ac_status=$?
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); }; }; then
19934   ac_cv_c_bigendian=no
19935 else
19936   echo "$as_me: program exited with status $ac_status" >&5
19937 echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19939
19940 ( exit $ac_status )
19941 ac_cv_c_bigendian=yes
19942 fi
19943 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19944 fi
19945 fi
19946 rm -f conftest.$ac_objext conftest.$ac_ext
19947 fi
19948 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19949 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19950 case $ac_cv_c_bigendian in
19951   yes)
19952     ENDIAN=big
19953  ;;
19954   no)
19955     ENDIAN=little
19956  ;;
19957   *)
19958     { { echo "$as_me:$LINENO: error: unknown endianness
19959 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19960 echo "$as_me: error: unknown endianness
19961 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19962    { (exit 1); exit 1; }; } ;;
19963 esac
19964
19965
19966 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19967 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19968 if test "${ac_cv_cxx_namespaces+set}" = set; then
19969   echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971
19972
19973  ac_ext=cc
19974 ac_cpp='$CXXCPP $CPPFLAGS'
19975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19978
19979  cat >conftest.$ac_ext <<_ACEOF
19980 #line $LINENO "configure"
19981 /* confdefs.h.  */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h.  */
19986 namespace Outer { namespace Inner { int i = 0; }}
19987 int
19988 main ()
19989 {
19990 using namespace Outer::Inner; return i;
19991   ;
19992   return 0;
19993 }
19994 _ACEOF
19995 rm -f conftest.$ac_objext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997   (eval $ac_compile) 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); } &&
20001          { ac_try='test -s conftest.$ac_objext'
20002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003   (eval $ac_try) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; }; then
20007   ac_cv_cxx_namespaces=yes
20008 else
20009   echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012 ac_cv_cxx_namespaces=no
20013 fi
20014 rm -f conftest.$ac_objext conftest.$ac_ext
20015  ac_ext=c
20016 ac_cpp='$CPP $CPPFLAGS'
20017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20020
20021
20022 fi
20023 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20024 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20025 if test "$ac_cv_cxx_namespaces" = yes; then
20026
20027 cat >>confdefs.h <<\_ACEOF
20028 #define HAVE_NAMESPACES
20029 _ACEOF
20030
20031 fi
20032
20033 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20034 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20035 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20036   echo $ECHO_N "(cached) $ECHO_C" >&6
20037 else
20038
20039
20040
20041   ac_ext=cc
20042 ac_cpp='$CXXCPP $CPPFLAGS'
20043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20046
20047   cat >conftest.$ac_ext <<_ACEOF
20048 #line $LINENO "configure"
20049 /* confdefs.h.  */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h.  */
20054 #include <ext/hash_map>
20055 #ifdef HAVE_NAMESPACES
20056 using namespace std;
20057 #endif
20058 int
20059 main ()
20060 {
20061 hash_map<int, int> t;
20062   ;
20063   return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest.$ac_objext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068   (eval $ac_compile) 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } &&
20072          { ac_try='test -s conftest.$ac_objext'
20073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074   (eval $ac_try) 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); }; }; then
20078   ac_cv_cxx_have_std_ext_hash_map=yes
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083 ac_cv_cxx_have_std_ext_hash_map=no
20084 fi
20085 rm -f conftest.$ac_objext conftest.$ac_ext
20086   ac_ext=c
20087 ac_cpp='$CPP $CPPFLAGS'
20088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20091
20092 fi
20093 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20094 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20095  HAVE_STD_EXT_HASH_MAP=0
20096  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20097  then
20098    HAVE_STD_EXT_HASH_MAP=1
20099  fi
20100
20101  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20102 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20103 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20104   echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20106
20107
20108
20109   ac_ext=cc
20110 ac_cpp='$CXXCPP $CPPFLAGS'
20111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20114
20115   cat >conftest.$ac_ext <<_ACEOF
20116 #line $LINENO "configure"
20117 /* confdefs.h.  */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h.  */
20122 #include <ext/hash_map>
20123 #ifdef HAVE_NAMESPACES
20124 using namespace __gnu_cxx;
20125 #endif
20126 int
20127 main ()
20128 {
20129 hash_map<int,int> t;
20130   ;
20131   return 0;
20132 }
20133 _ACEOF
20134 rm -f conftest.$ac_objext
20135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20136   (eval $ac_compile) 2>&5
20137   ac_status=$?
20138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139   (exit $ac_status); } &&
20140          { ac_try='test -s conftest.$ac_objext'
20141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142   (eval $ac_try) 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); }; }; then
20146   ac_cv_cxx_have_gnu_ext_hash_map=yes
20147 else
20148   echo "$as_me: failed program was:" >&5
20149 sed 's/^/| /' conftest.$ac_ext >&5
20150
20151 ac_cv_cxx_have_gnu_ext_hash_map=no
20152 fi
20153 rm -f conftest.$ac_objext conftest.$ac_ext
20154   ac_ext=c
20155 ac_cpp='$CPP $CPPFLAGS'
20156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20159
20160 fi
20161 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20162 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20163  HAVE_GNU_EXT_HASH_MAP=0
20164  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20165  then
20166    HAVE_GNU_EXT_HASH_MAP=1
20167  fi
20168
20169  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20170 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20171 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20172   echo $ECHO_N "(cached) $ECHO_C" >&6
20173 else
20174
20175
20176
20177   ac_ext=cc
20178 ac_cpp='$CXXCPP $CPPFLAGS'
20179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20182
20183   cat >conftest.$ac_ext <<_ACEOF
20184 #line $LINENO "configure"
20185 /* confdefs.h.  */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h.  */
20190 #include <hash_map>
20191 int
20192 main ()
20193 {
20194 hash_map<int,int> t;
20195   ;
20196   return 0;
20197 }
20198 _ACEOF
20199 rm -f conftest.$ac_objext
20200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20201   (eval $ac_compile) 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); } &&
20205          { ac_try='test -s conftest.$ac_objext'
20206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207   (eval $ac_try) 2>&5
20208   ac_status=$?
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); }; }; then
20211   ac_cv_cxx_have_global_hash_map=yes
20212 else
20213   echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20215
20216 ac_cv_cxx_have_global_hash_map=no
20217 fi
20218 rm -f conftest.$ac_objext conftest.$ac_ext
20219   ac_ext=c
20220 ac_cpp='$CPP $CPPFLAGS'
20221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20224
20225 fi
20226 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20227 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20228  HAVE_GLOBAL_HASH_MAP=0
20229  if test "$ac_cv_cxx_have_global_hash_map" = yes
20230  then
20231    HAVE_GLOBAL_HASH_MAP=1
20232  fi
20233
20234 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20235 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20236 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239
20240
20241
20242   ac_ext=cc
20243 ac_cpp='$CXXCPP $CPPFLAGS'
20244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20247
20248   cat >conftest.$ac_ext <<_ACEOF
20249 #line $LINENO "configure"
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255 #include <ext/hash_set>
20256 #ifdef HAVE_NAMESPACES
20257 using namespace std;
20258 #endif
20259 int
20260 main ()
20261 {
20262 hash_set<int> t;
20263   ;
20264   return 0;
20265 }
20266 _ACEOF
20267 rm -f conftest.$ac_objext
20268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20269   (eval $ac_compile) 2>&5
20270   ac_status=$?
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); } &&
20273          { ac_try='test -s conftest.$ac_objext'
20274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275   (eval $ac_try) 2>&5
20276   ac_status=$?
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); }; }; then
20279   ac_cv_cxx_have_std_ext_hash_set=yes
20280 else
20281   echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20283
20284 ac_cv_cxx_have_std_ext_hash_set=no
20285 fi
20286 rm -f conftest.$ac_objext conftest.$ac_ext
20287   ac_ext=c
20288 ac_cpp='$CPP $CPPFLAGS'
20289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20292
20293 fi
20294 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20295 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20296  HAVE_STD_EXT_HASH_SET=0
20297  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20298  then
20299    HAVE_STD_EXT_HASH_SET=1
20300  fi
20301
20302  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20303 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20304 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20305   echo $ECHO_N "(cached) $ECHO_C" >&6
20306 else
20307
20308
20309
20310   ac_ext=cc
20311 ac_cpp='$CXXCPP $CPPFLAGS'
20312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20315
20316   cat >conftest.$ac_ext <<_ACEOF
20317 #line $LINENO "configure"
20318 /* confdefs.h.  */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h.  */
20323 #include <ext/hash_set>
20324 #ifdef HAVE_NAMESPACES
20325 using namespace __gnu_cxx;
20326 #endif
20327 int
20328 main ()
20329 {
20330 hash_set<int> t;
20331   ;
20332   return 0;
20333 }
20334 _ACEOF
20335 rm -f conftest.$ac_objext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20337   (eval $ac_compile) 2>&5
20338   ac_status=$?
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); } &&
20341          { ac_try='test -s conftest.$ac_objext'
20342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343   (eval $ac_try) 2>&5
20344   ac_status=$?
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); }; }; then
20347   ac_cv_cxx_have_gnu_ext_hash_set=yes
20348 else
20349   echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352 ac_cv_cxx_have_gnu_ext_hash_set=no
20353 fi
20354 rm -f conftest.$ac_objext conftest.$ac_ext
20355   ac_ext=c
20356 ac_cpp='$CPP $CPPFLAGS'
20357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20360
20361 fi
20362 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20363 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20364  HAVE_GNU_EXT_HASH_SET=0
20365  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20366  then
20367    HAVE_GNU_EXT_HASH_SET=1
20368  fi
20369
20370  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20371 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20372 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20373   echo $ECHO_N "(cached) $ECHO_C" >&6
20374 else
20375
20376
20377
20378   ac_ext=cc
20379 ac_cpp='$CXXCPP $CPPFLAGS'
20380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20383
20384   cat >conftest.$ac_ext <<_ACEOF
20385 #line $LINENO "configure"
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391 #include <hash_set>
20392 int
20393 main ()
20394 {
20395 hash_set<int> t; return 0;
20396   ;
20397   return 0;
20398 }
20399 _ACEOF
20400 rm -f conftest.$ac_objext
20401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20402   (eval $ac_compile) 2>&5
20403   ac_status=$?
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); } &&
20406          { ac_try='test -s conftest.$ac_objext'
20407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408   (eval $ac_try) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; }; then
20412   ac_cv_cxx_have_global_hash_set=yes
20413 else
20414   echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20416
20417 ac_cv_cxx_have_global_hash_set=no
20418 fi
20419 rm -f conftest.$ac_objext conftest.$ac_ext
20420   ac_ext=c
20421 ac_cpp='$CPP $CPPFLAGS'
20422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20425
20426 fi
20427 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20428 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20429  HAVE_GLOBAL_HASH_SET=0
20430  if test "$ac_cv_cxx_have_global_hash_set" = yes
20431  then
20432    HAVE_GLOBAL_HASH_SET=1
20433  fi
20434
20435 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20436 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20437 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20438   echo $ECHO_N "(cached) $ECHO_C" >&6
20439 else
20440
20441
20442
20443   ac_ext=cc
20444 ac_cpp='$CXXCPP $CPPFLAGS'
20445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20448
20449   cat >conftest.$ac_ext <<_ACEOF
20450 #line $LINENO "configure"
20451 /* confdefs.h.  */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h.  */
20456 #include <iterator>
20457 #ifdef HAVE_NAMESPACES
20458 using namespace std;
20459 #endif
20460 int
20461 main ()
20462 {
20463 iterator<int,int,int> t; return 0;
20464   ;
20465   return 0;
20466 }
20467 _ACEOF
20468 rm -f conftest.$ac_objext
20469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20470   (eval $ac_compile) 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); } &&
20474          { ac_try='test -s conftest.$ac_objext'
20475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476   (eval $ac_try) 2>&5
20477   ac_status=$?
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); }; }; then
20480   ac_cv_cxx_have_std_iterator=yes
20481 else
20482   echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20484
20485 ac_cv_cxx_have_std_iterator=no
20486 fi
20487 rm -f conftest.$ac_objext conftest.$ac_ext
20488   ac_ext=c
20489 ac_cpp='$CPP $CPPFLAGS'
20490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20493
20494
20495 fi
20496 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20497 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20498 HAVE_STD_ITERATOR=0
20499 if test "$ac_cv_cxx_have_std_iterator" = yes
20500 then
20501    HAVE_STD_ITERATOR=1
20502 fi
20503
20504 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20505 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20506 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20507   echo $ECHO_N "(cached) $ECHO_C" >&6
20508 else
20509
20510
20511
20512   ac_ext=cc
20513 ac_cpp='$CXXCPP $CPPFLAGS'
20514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20517
20518   cat >conftest.$ac_ext <<_ACEOF
20519 #line $LINENO "configure"
20520 /* confdefs.h.  */
20521 _ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h.  */
20525 #include <iterator>
20526 #ifdef HAVE_NAMESPACES
20527 using namespace std;
20528 #endif
20529 int
20530 main ()
20531 {
20532 bidirectional_iterator<int,int> t; return 0;
20533   ;
20534   return 0;
20535 }
20536 _ACEOF
20537 rm -f conftest.$ac_objext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539   (eval $ac_compile) 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); } &&
20543          { ac_try='test -s conftest.$ac_objext'
20544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545   (eval $ac_try) 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); }; }; then
20549   ac_cv_cxx_have_bi_iterator=yes
20550 else
20551   echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554 ac_cv_cxx_have_bi_iterator=no
20555 fi
20556 rm -f conftest.$ac_objext conftest.$ac_ext
20557   ac_ext=c
20558 ac_cpp='$CPP $CPPFLAGS'
20559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20562
20563
20564 fi
20565 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20566 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20567 HAVE_BI_ITERATOR=0
20568 if test "$ac_cv_cxx_have_bi_iterator" = yes
20569 then
20570    HAVE_BI_ITERATOR=1
20571 fi
20572
20573 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20574 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20575 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20576   echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578
20579
20580
20581   ac_ext=cc
20582 ac_cpp='$CXXCPP $CPPFLAGS'
20583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20586
20587   cat >conftest.$ac_ext <<_ACEOF
20588 #line $LINENO "configure"
20589 /* confdefs.h.  */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h.  */
20594 #include <iterator>
20595 #ifdef HAVE_NAMESPACES
20596 using namespace std;
20597 #endif
20598 int
20599 main ()
20600 {
20601 forward_iterator<int,int> t; return 0;
20602   ;
20603   return 0;
20604 }
20605 _ACEOF
20606 rm -f conftest.$ac_objext
20607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20608   (eval $ac_compile) 2>&5
20609   ac_status=$?
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); } &&
20612          { ac_try='test -s conftest.$ac_objext'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; }; then
20618   ac_cv_cxx_have_fwd_iterator=yes
20619 else
20620   echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 ac_cv_cxx_have_fwd_iterator=no
20624 fi
20625 rm -f conftest.$ac_objext conftest.$ac_ext
20626   ac_ext=c
20627 ac_cpp='$CPP $CPPFLAGS'
20628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20631
20632
20633 fi
20634 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20635 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20636 HAVE_FWD_ITERATOR=0
20637 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20638 then
20639    HAVE_FWD_ITERATOR=1
20640 fi
20641
20642
20643 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20644 # for constant arguments.  Useless!
20645 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20646 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20647 if test "${ac_cv_working_alloca_h+set}" = set; then
20648   echo $ECHO_N "(cached) $ECHO_C" >&6
20649 else
20650   cat >conftest.$ac_ext <<_ACEOF
20651 #line $LINENO "configure"
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657 #include <alloca.h>
20658 int
20659 main ()
20660 {
20661 char *p = (char *) alloca (2 * sizeof (int));
20662   ;
20663   return 0;
20664 }
20665 _ACEOF
20666 rm -f conftest.$ac_objext conftest$ac_exeext
20667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20668   (eval $ac_link) 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); } &&
20672          { ac_try='test -s conftest$ac_exeext'
20673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674   (eval $ac_try) 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); }; }; then
20678   ac_cv_working_alloca_h=yes
20679 else
20680   echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683 ac_cv_working_alloca_h=no
20684 fi
20685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20686 fi
20687 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20688 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20689 if test $ac_cv_working_alloca_h = yes; then
20690
20691 cat >>confdefs.h <<\_ACEOF
20692 #define HAVE_ALLOCA_H 1
20693 _ACEOF
20694
20695 fi
20696
20697 echo "$as_me:$LINENO: checking for alloca" >&5
20698 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20699 if test "${ac_cv_func_alloca_works+set}" = set; then
20700   echo $ECHO_N "(cached) $ECHO_C" >&6
20701 else
20702   cat >conftest.$ac_ext <<_ACEOF
20703 #line $LINENO "configure"
20704 /* confdefs.h.  */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h.  */
20709 #ifdef __GNUC__
20710 # define alloca __builtin_alloca
20711 #else
20712 # ifdef _MSC_VER
20713 #  include <malloc.h>
20714 #  define alloca _alloca
20715 # else
20716 #  if HAVE_ALLOCA_H
20717 #   include <alloca.h>
20718 #  else
20719 #   ifdef _AIX
20720  #pragma alloca
20721 #   else
20722 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20723 char *alloca ();
20724 #    endif
20725 #   endif
20726 #  endif
20727 # endif
20728 #endif
20729
20730 int
20731 main ()
20732 {
20733 char *p = (char *) alloca (1);
20734   ;
20735   return 0;
20736 }
20737 _ACEOF
20738 rm -f conftest.$ac_objext conftest$ac_exeext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740   (eval $ac_link) 2>&5
20741   ac_status=$?
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } &&
20744          { ac_try='test -s conftest$ac_exeext'
20745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746   (eval $ac_try) 2>&5
20747   ac_status=$?
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); }; }; then
20750   ac_cv_func_alloca_works=yes
20751 else
20752   echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755 ac_cv_func_alloca_works=no
20756 fi
20757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20758 fi
20759 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20760 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20761
20762 if test $ac_cv_func_alloca_works = yes; then
20763
20764 cat >>confdefs.h <<\_ACEOF
20765 #define HAVE_ALLOCA 1
20766 _ACEOF
20767
20768 else
20769   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20770 # that cause trouble.  Some versions do not even contain alloca or
20771 # contain a buggy version.  If you still want to use their alloca,
20772 # use ar to extract alloca.o from them instead of compiling alloca.c.
20773
20774 ALLOCA=alloca.$ac_objext
20775
20776 cat >>confdefs.h <<\_ACEOF
20777 #define C_ALLOCA 1
20778 _ACEOF
20779
20780
20781 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20782 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20783 if test "${ac_cv_os_cray+set}" = set; then
20784   echo $ECHO_N "(cached) $ECHO_C" >&6
20785 else
20786   cat >conftest.$ac_ext <<_ACEOF
20787 #line $LINENO "configure"
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793 #if defined(CRAY) && ! defined(CRAY2)
20794 webecray
20795 #else
20796 wenotbecray
20797 #endif
20798
20799 _ACEOF
20800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20801   $EGREP "webecray" >/dev/null 2>&1; then
20802   ac_cv_os_cray=yes
20803 else
20804   ac_cv_os_cray=no
20805 fi
20806 rm -f conftest*
20807
20808 fi
20809 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20810 echo "${ECHO_T}$ac_cv_os_cray" >&6
20811 if test $ac_cv_os_cray = yes; then
20812   for ac_func in _getb67 GETB67 getb67; do
20813     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20814 echo "$as_me:$LINENO: checking for $ac_func" >&5
20815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20816 if eval "test \"\${$as_ac_var+set}\" = set"; then
20817   echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819   cat >conftest.$ac_ext <<_ACEOF
20820 #line $LINENO "configure"
20821 /* confdefs.h.  */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h.  */
20826 /* System header to define __stub macros and hopefully few prototypes,
20827     which can conflict with char $ac_func (); below.
20828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20829     <limits.h> exists even on freestanding compilers.  */
20830 #ifdef __STDC__
20831 # include <limits.h>
20832 #else
20833 # include <assert.h>
20834 #endif
20835 /* Override any gcc2 internal prototype to avoid an error.  */
20836 #ifdef __cplusplus
20837 extern "C"
20838 {
20839 #endif
20840 /* We use char because int might match the return type of a gcc2
20841    builtin and then its argument prototype would still apply.  */
20842 char $ac_func ();
20843 /* The GNU C library defines this for functions which it implements
20844     to always fail with ENOSYS.  Some functions are actually named
20845     something starting with __ and the normal name is an alias.  */
20846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20847 choke me
20848 #else
20849 char (*f) () = $ac_func;
20850 #endif
20851 #ifdef __cplusplus
20852 }
20853 #endif
20854
20855 int
20856 main ()
20857 {
20858 return f != $ac_func;
20859   ;
20860   return 0;
20861 }
20862 _ACEOF
20863 rm -f conftest.$ac_objext conftest$ac_exeext
20864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20865   (eval $ac_link) 2>&5
20866   ac_status=$?
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); } &&
20869          { ac_try='test -s conftest$ac_exeext'
20870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871   (eval $ac_try) 2>&5
20872   ac_status=$?
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); }; }; then
20875   eval "$as_ac_var=yes"
20876 else
20877   echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880 eval "$as_ac_var=no"
20881 fi
20882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20883 fi
20884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20886 if test `eval echo '${'$as_ac_var'}'` = yes; then
20887
20888 cat >>confdefs.h <<_ACEOF
20889 #define CRAY_STACKSEG_END $ac_func
20890 _ACEOF
20891
20892     break
20893 fi
20894
20895   done
20896 fi
20897
20898 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20899 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20900 if test "${ac_cv_c_stack_direction+set}" = set; then
20901   echo $ECHO_N "(cached) $ECHO_C" >&6
20902 else
20903   if test "$cross_compiling" = yes; then
20904   ac_cv_c_stack_direction=0
20905 else
20906   cat >conftest.$ac_ext <<_ACEOF
20907 #line $LINENO "configure"
20908 /* confdefs.h.  */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h.  */
20913 int
20914 find_stack_direction ()
20915 {
20916   static char *addr = 0;
20917   auto char dummy;
20918   if (addr == 0)
20919     {
20920       addr = &dummy;
20921       return find_stack_direction ();
20922     }
20923   else
20924     return (&dummy > addr) ? 1 : -1;
20925 }
20926
20927 int
20928 main ()
20929 {
20930   exit (find_stack_direction () < 0);
20931 }
20932 _ACEOF
20933 rm -f conftest$ac_exeext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20935   (eval $ac_link) 2>&5
20936   ac_status=$?
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940   (eval $ac_try) 2>&5
20941   ac_status=$?
20942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943   (exit $ac_status); }; }; then
20944   ac_cv_c_stack_direction=1
20945 else
20946   echo "$as_me: program exited with status $ac_status" >&5
20947 echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20949
20950 ( exit $ac_status )
20951 ac_cv_c_stack_direction=-1
20952 fi
20953 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20954 fi
20955 fi
20956 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20957 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20958
20959 cat >>confdefs.h <<_ACEOF
20960 #define STACK_DIRECTION $ac_cv_c_stack_direction
20961 _ACEOF
20962
20963
20964 fi
20965
20966
20967
20968 for ac_header in stdlib.h unistd.h
20969 do
20970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20972   echo "$as_me:$LINENO: checking for $ac_header" >&5
20973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20975   echo $ECHO_N "(cached) $ECHO_C" >&6
20976 fi
20977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20979 else
20980   # Is the header compilable?
20981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20983 cat >conftest.$ac_ext <<_ACEOF
20984 #line $LINENO "configure"
20985 /* confdefs.h.  */
20986 _ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h.  */
20990 $ac_includes_default
20991 #include <$ac_header>
20992 _ACEOF
20993 rm -f conftest.$ac_objext
20994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20995   (eval $ac_compile) 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); } &&
20999          { ac_try='test -s conftest.$ac_objext'
21000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001   (eval $ac_try) 2>&5
21002   ac_status=$?
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); }; }; then
21005   ac_header_compiler=yes
21006 else
21007   echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 ac_header_compiler=no
21011 fi
21012 rm -f conftest.$ac_objext conftest.$ac_ext
21013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21014 echo "${ECHO_T}$ac_header_compiler" >&6
21015
21016 # Is the header present?
21017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21019 cat >conftest.$ac_ext <<_ACEOF
21020 #line $LINENO "configure"
21021 /* confdefs.h.  */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h.  */
21026 #include <$ac_header>
21027 _ACEOF
21028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21030   ac_status=$?
21031   grep -v '^ *+' conftest.er1 >conftest.err
21032   rm -f conftest.er1
21033   cat conftest.err >&5
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); } >/dev/null; then
21036   if test -s conftest.err; then
21037     ac_cpp_err=$ac_c_preproc_warn_flag
21038   else
21039     ac_cpp_err=
21040   fi
21041 else
21042   ac_cpp_err=yes
21043 fi
21044 if test -z "$ac_cpp_err"; then
21045   ac_header_preproc=yes
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050   ac_header_preproc=no
21051 fi
21052 rm -f conftest.err conftest.$ac_ext
21053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21054 echo "${ECHO_T}$ac_header_preproc" >&6
21055
21056 # So?  What about this header?
21057 case $ac_header_compiler:$ac_header_preproc in
21058   yes:no )
21059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21063     (
21064       cat <<\_ASBOX
21065 ## ------------------------------------ ##
21066 ## Report this to bug-autoconf@gnu.org. ##
21067 ## ------------------------------------ ##
21068 _ASBOX
21069     ) |
21070       sed "s/^/$as_me: WARNING:     /" >&2
21071     ;;
21072   no:yes )
21073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21075     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21079     (
21080       cat <<\_ASBOX
21081 ## ------------------------------------ ##
21082 ## Report this to bug-autoconf@gnu.org. ##
21083 ## ------------------------------------ ##
21084 _ASBOX
21085     ) |
21086       sed "s/^/$as_me: WARNING:     /" >&2
21087     ;;
21088 esac
21089 echo "$as_me:$LINENO: checking for $ac_header" >&5
21090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21092   echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094   eval "$as_ac_Header=$ac_header_preproc"
21095 fi
21096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21098
21099 fi
21100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21101   cat >>confdefs.h <<_ACEOF
21102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21103 _ACEOF
21104
21105 fi
21106
21107 done
21108
21109
21110 for ac_func in getpagesize
21111 do
21112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21113 echo "$as_me:$LINENO: checking for $ac_func" >&5
21114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21115 if eval "test \"\${$as_ac_var+set}\" = set"; then
21116   echo $ECHO_N "(cached) $ECHO_C" >&6
21117 else
21118   cat >conftest.$ac_ext <<_ACEOF
21119 #line $LINENO "configure"
21120 /* confdefs.h.  */
21121 _ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h.  */
21125 /* System header to define __stub macros and hopefully few prototypes,
21126     which can conflict with char $ac_func (); below.
21127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21128     <limits.h> exists even on freestanding compilers.  */
21129 #ifdef __STDC__
21130 # include <limits.h>
21131 #else
21132 # include <assert.h>
21133 #endif
21134 /* Override any gcc2 internal prototype to avoid an error.  */
21135 #ifdef __cplusplus
21136 extern "C"
21137 {
21138 #endif
21139 /* We use char because int might match the return type of a gcc2
21140    builtin and then its argument prototype would still apply.  */
21141 char $ac_func ();
21142 /* The GNU C library defines this for functions which it implements
21143     to always fail with ENOSYS.  Some functions are actually named
21144     something starting with __ and the normal name is an alias.  */
21145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21146 choke me
21147 #else
21148 char (*f) () = $ac_func;
21149 #endif
21150 #ifdef __cplusplus
21151 }
21152 #endif
21153
21154 int
21155 main ()
21156 {
21157 return f != $ac_func;
21158   ;
21159   return 0;
21160 }
21161 _ACEOF
21162 rm -f conftest.$ac_objext conftest$ac_exeext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21164   (eval $ac_link) 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } &&
21168          { ac_try='test -s conftest$ac_exeext'
21169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170   (eval $ac_try) 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; }; then
21174   eval "$as_ac_var=yes"
21175 else
21176   echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179 eval "$as_ac_var=no"
21180 fi
21181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21182 fi
21183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21185 if test `eval echo '${'$as_ac_var'}'` = yes; then
21186   cat >>confdefs.h <<_ACEOF
21187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21188 _ACEOF
21189
21190 fi
21191 done
21192
21193 echo "$as_me:$LINENO: checking for working mmap" >&5
21194 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21195 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21196   echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198   if test "$cross_compiling" = yes; then
21199   ac_cv_func_mmap_fixed_mapped=no
21200 else
21201   cat >conftest.$ac_ext <<_ACEOF
21202 #line $LINENO "configure"
21203 /* confdefs.h.  */
21204 _ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h.  */
21208 $ac_includes_default
21209 /* malloc might have been renamed as rpl_malloc. */
21210 #undef malloc
21211
21212 /* Thanks to Mike Haertel and Jim Avera for this test.
21213    Here is a matrix of mmap possibilities:
21214         mmap private not fixed
21215         mmap private fixed at somewhere currently unmapped
21216         mmap private fixed at somewhere already mapped
21217         mmap shared not fixed
21218         mmap shared fixed at somewhere currently unmapped
21219         mmap shared fixed at somewhere already mapped
21220    For private mappings, we should verify that changes cannot be read()
21221    back from the file, nor mmap's back from the file at a different
21222    address.  (There have been systems where private was not correctly
21223    implemented like the infamous i386 svr4.0, and systems where the
21224    VM page cache was not coherent with the file system buffer cache
21225    like early versions of FreeBSD and possibly contemporary NetBSD.)
21226    For shared mappings, we should conversely verify that changes get
21227    propagated back to all the places they're supposed to be.
21228
21229    Grep wants private fixed already mapped.
21230    The main things grep needs to know about mmap are:
21231    * does it exist and is it safe to write into the mmap'd area
21232    * how to use it (BSD variants)  */
21233
21234 #include <fcntl.h>
21235 #include <sys/mman.h>
21236
21237 #if !STDC_HEADERS && !HAVE_STDLIB_H
21238 char *malloc ();
21239 #endif
21240
21241 /* This mess was copied from the GNU getpagesize.h.  */
21242 #if !HAVE_GETPAGESIZE
21243 /* Assume that all systems that can run configure have sys/param.h.  */
21244 # if !HAVE_SYS_PARAM_H
21245 #  define HAVE_SYS_PARAM_H 1
21246 # endif
21247
21248 # ifdef _SC_PAGESIZE
21249 #  define getpagesize() sysconf(_SC_PAGESIZE)
21250 # else /* no _SC_PAGESIZE */
21251 #  if HAVE_SYS_PARAM_H
21252 #   include <sys/param.h>
21253 #   ifdef EXEC_PAGESIZE
21254 #    define getpagesize() EXEC_PAGESIZE
21255 #   else /* no EXEC_PAGESIZE */
21256 #    ifdef NBPG
21257 #     define getpagesize() NBPG * CLSIZE
21258 #     ifndef CLSIZE
21259 #      define CLSIZE 1
21260 #     endif /* no CLSIZE */
21261 #    else /* no NBPG */
21262 #     ifdef NBPC
21263 #      define getpagesize() NBPC
21264 #     else /* no NBPC */
21265 #      ifdef PAGESIZE
21266 #       define getpagesize() PAGESIZE
21267 #      endif /* PAGESIZE */
21268 #     endif /* no NBPC */
21269 #    endif /* no NBPG */
21270 #   endif /* no EXEC_PAGESIZE */
21271 #  else /* no HAVE_SYS_PARAM_H */
21272 #   define getpagesize() 8192   /* punt totally */
21273 #  endif /* no HAVE_SYS_PARAM_H */
21274 # endif /* no _SC_PAGESIZE */
21275
21276 #endif /* no HAVE_GETPAGESIZE */
21277
21278 int
21279 main ()
21280 {
21281   char *data, *data2, *data3;
21282   int i, pagesize;
21283   int fd;
21284
21285   pagesize = getpagesize ();
21286
21287   /* First, make a file with some known garbage in it. */
21288   data = (char *) malloc (pagesize);
21289   if (!data)
21290     exit (1);
21291   for (i = 0; i < pagesize; ++i)
21292     *(data + i) = rand ();
21293   umask (0);
21294   fd = creat ("conftest.mmap", 0600);
21295   if (fd < 0)
21296     exit (1);
21297   if (write (fd, data, pagesize) != pagesize)
21298     exit (1);
21299   close (fd);
21300
21301   /* Next, try to mmap the file at a fixed address which already has
21302      something else allocated at it.  If we can, also make sure that
21303      we see the same garbage.  */
21304   fd = open ("conftest.mmap", O_RDWR);
21305   if (fd < 0)
21306     exit (1);
21307   data2 = (char *) malloc (2 * pagesize);
21308   if (!data2)
21309     exit (1);
21310   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21311   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21312                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21313     exit (1);
21314   for (i = 0; i < pagesize; ++i)
21315     if (*(data + i) != *(data2 + i))
21316       exit (1);
21317
21318   /* Finally, make sure that changes to the mapped area do not
21319      percolate back to the file as seen by read().  (This is a bug on
21320      some variants of i386 svr4.0.)  */
21321   for (i = 0; i < pagesize; ++i)
21322     *(data2 + i) = *(data2 + i) + 1;
21323   data3 = (char *) malloc (pagesize);
21324   if (!data3)
21325     exit (1);
21326   if (read (fd, data3, pagesize) != pagesize)
21327     exit (1);
21328   for (i = 0; i < pagesize; ++i)
21329     if (*(data + i) != *(data3 + i))
21330       exit (1);
21331   close (fd);
21332   exit (0);
21333 }
21334 _ACEOF
21335 rm -f conftest$ac_exeext
21336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21337   (eval $ac_link) 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342   (eval $ac_try) 2>&5
21343   ac_status=$?
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); }; }; then
21346   ac_cv_func_mmap_fixed_mapped=yes
21347 else
21348   echo "$as_me: program exited with status $ac_status" >&5
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21351
21352 ( exit $ac_status )
21353 ac_cv_func_mmap_fixed_mapped=no
21354 fi
21355 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21356 fi
21357 fi
21358 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21359 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21360 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21361
21362 cat >>confdefs.h <<\_ACEOF
21363 #define HAVE_MMAP 1
21364 _ACEOF
21365
21366 fi
21367 rm -f conftest.mmap
21368
21369 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21370 then
21371         { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21372 echo "$as_me: error: mmap() required but not found" >&2;}
21373    { (exit 1); exit 1; }; }
21374 fi
21375 echo "$as_me:$LINENO: checking for mmap of files" >&5
21376 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21377 if test "${ac_cv_func_mmap_file+set}" = set; then
21378   echo $ECHO_N "(cached) $ECHO_C" >&6
21379 else
21380
21381
21382   ac_ext=c
21383 ac_cpp='$CPP $CPPFLAGS'
21384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21387
21388   if test "$cross_compiling" = yes; then
21389   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21390 See \`config.log' for more details." >&5
21391 echo "$as_me: error: cannot run test program while cross compiling
21392 See \`config.log' for more details." >&2;}
21393    { (exit 1); exit 1; }; }
21394 else
21395   cat >conftest.$ac_ext <<_ACEOF
21396 #line $LINENO "configure"
21397 /* confdefs.h.  */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h.  */
21402
21403 #ifdef HAVE_SYS_TYPES_H
21404 #include <sys/types.h>
21405 #endif
21406
21407 #ifdef HAVE_SYS_MMAN_H
21408 #include <sys/mman.h>
21409 #endif
21410
21411 #ifdef HAVE_FCNTL_H
21412 #include <fcntl.h>
21413 #endif
21414
21415   int fd;
21416   int main () {
21417   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21418 _ACEOF
21419 rm -f conftest$ac_exeext
21420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21421   (eval $ac_link) 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426   (eval $ac_try) 2>&5
21427   ac_status=$?
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); }; }; then
21430   ac_cv_func_mmap_file=yes
21431 else
21432   echo "$as_me: program exited with status $ac_status" >&5
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21435
21436 ( exit $ac_status )
21437 ac_cv_func_mmap_file=no
21438 fi
21439 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21440 fi
21441   ac_ext=c
21442 ac_cpp='$CPP $CPPFLAGS'
21443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21446
21447
21448 fi
21449 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21450 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21451 if test "$ac_cv_func_mmap_file" = yes; then
21452
21453 cat >>confdefs.h <<\_ACEOF
21454 #define HAVE_MMAP_FILE
21455 _ACEOF
21456
21457    MMAP_FILE=yes
21458
21459 fi
21460
21461 if test "$ac_cv_func_mmap_file" = "no"
21462 then
21463         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21464 echo "$as_me: error: mmap() of files required but not found" >&2;}
21465    { (exit 1); exit 1; }; }
21466 fi
21467 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21468 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21469 if test "${ac_cv_header_mmap_anon+set}" = set; then
21470   echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472
21473
21474   ac_ext=c
21475 ac_cpp='$CPP $CPPFLAGS'
21476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21479
21480   cat >conftest.$ac_ext <<_ACEOF
21481 #line $LINENO "configure"
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487 #include <sys/mman.h>
21488   #include <unistd.h>
21489   #include <fcntl.h>
21490 int
21491 main ()
21492 {
21493 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21494   ;
21495   return 0;
21496 }
21497 _ACEOF
21498 rm -f conftest.$ac_objext
21499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21500   (eval $ac_compile) 2>&5
21501   ac_status=$?
21502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503   (exit $ac_status); } &&
21504          { ac_try='test -s conftest.$ac_objext'
21505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506   (eval $ac_try) 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); }; }; then
21510   ac_cv_header_mmap_anon=yes
21511 else
21512   echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21514
21515 ac_cv_header_mmap_anon=no
21516 fi
21517 rm -f conftest.$ac_objext conftest.$ac_ext
21518   ac_ext=c
21519 ac_cpp='$CPP $CPPFLAGS'
21520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21523
21524
21525 fi
21526 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21527 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21528 if test "$ac_cv_header_mmap_anon" = yes; then
21529
21530 cat >>confdefs.h <<\_ACEOF
21531 #define HAVE_MMAP_ANONYMOUS
21532 _ACEOF
21533
21534 fi
21535
21536 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21537 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21538 if test "${ac_cv_type_signal+set}" = set; then
21539   echo $ECHO_N "(cached) $ECHO_C" >&6
21540 else
21541   cat >conftest.$ac_ext <<_ACEOF
21542 #line $LINENO "configure"
21543 /* confdefs.h.  */
21544 _ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h.  */
21548 #include <sys/types.h>
21549 #include <signal.h>
21550 #ifdef signal
21551 # undef signal
21552 #endif
21553 #ifdef __cplusplus
21554 extern "C" void (*signal (int, void (*)(int)))(int);
21555 #else
21556 void (*signal ()) ();
21557 #endif
21558
21559 int
21560 main ()
21561 {
21562 int i;
21563   ;
21564   return 0;
21565 }
21566 _ACEOF
21567 rm -f conftest.$ac_objext
21568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21569   (eval $ac_compile) 2>&5
21570   ac_status=$?
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } &&
21573          { ac_try='test -s conftest.$ac_objext'
21574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575   (eval $ac_try) 2>&5
21576   ac_status=$?
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); }; }; then
21579   ac_cv_type_signal=void
21580 else
21581   echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21583
21584 ac_cv_type_signal=int
21585 fi
21586 rm -f conftest.$ac_objext conftest.$ac_ext
21587 fi
21588 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21589 echo "${ECHO_T}$ac_cv_type_signal" >&6
21590
21591 cat >>confdefs.h <<_ACEOF
21592 #define RETSIGTYPE $ac_cv_type_signal
21593 _ACEOF
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty
21604 do
21605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21606 echo "$as_me:$LINENO: checking for $ac_func" >&5
21607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21608 if eval "test \"\${$as_ac_var+set}\" = set"; then
21609   echo $ECHO_N "(cached) $ECHO_C" >&6
21610 else
21611   cat >conftest.$ac_ext <<_ACEOF
21612 #line $LINENO "configure"
21613 /* confdefs.h.  */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h.  */
21618 /* System header to define __stub macros and hopefully few prototypes,
21619     which can conflict with char $ac_func (); below.
21620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21621     <limits.h> exists even on freestanding compilers.  */
21622 #ifdef __STDC__
21623 # include <limits.h>
21624 #else
21625 # include <assert.h>
21626 #endif
21627 /* Override any gcc2 internal prototype to avoid an error.  */
21628 #ifdef __cplusplus
21629 extern "C"
21630 {
21631 #endif
21632 /* We use char because int might match the return type of a gcc2
21633    builtin and then its argument prototype would still apply.  */
21634 char $ac_func ();
21635 /* The GNU C library defines this for functions which it implements
21636     to always fail with ENOSYS.  Some functions are actually named
21637     something starting with __ and the normal name is an alias.  */
21638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21639 choke me
21640 #else
21641 char (*f) () = $ac_func;
21642 #endif
21643 #ifdef __cplusplus
21644 }
21645 #endif
21646
21647 int
21648 main ()
21649 {
21650 return f != $ac_func;
21651   ;
21652   return 0;
21653 }
21654 _ACEOF
21655 rm -f conftest.$ac_objext conftest$ac_exeext
21656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21657   (eval $ac_link) 2>&5
21658   ac_status=$?
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); } &&
21661          { ac_try='test -s conftest$ac_exeext'
21662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663   (eval $ac_try) 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); }; }; then
21667   eval "$as_ac_var=yes"
21668 else
21669   echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21671
21672 eval "$as_ac_var=no"
21673 fi
21674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21675 fi
21676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21678 if test `eval echo '${'$as_ac_var'}'` = yes; then
21679   cat >>confdefs.h <<_ACEOF
21680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21681 _ACEOF
21682
21683 fi
21684 done
21685
21686 echo "$as_me:$LINENO: checking for mprotect" >&5
21687 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21688 if test "${ac_cv_func_mprotect+set}" = set; then
21689   echo $ECHO_N "(cached) $ECHO_C" >&6
21690 else
21691   cat >conftest.$ac_ext <<_ACEOF
21692 #line $LINENO "configure"
21693 /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698 /* System header to define __stub macros and hopefully few prototypes,
21699     which can conflict with char mprotect (); below.
21700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21701     <limits.h> exists even on freestanding compilers.  */
21702 #ifdef __STDC__
21703 # include <limits.h>
21704 #else
21705 # include <assert.h>
21706 #endif
21707 /* Override any gcc2 internal prototype to avoid an error.  */
21708 #ifdef __cplusplus
21709 extern "C"
21710 {
21711 #endif
21712 /* We use char because int might match the return type of a gcc2
21713    builtin and then its argument prototype would still apply.  */
21714 char mprotect ();
21715 /* The GNU C library defines this for functions which it implements
21716     to always fail with ENOSYS.  Some functions are actually named
21717     something starting with __ and the normal name is an alias.  */
21718 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21719 choke me
21720 #else
21721 char (*f) () = mprotect;
21722 #endif
21723 #ifdef __cplusplus
21724 }
21725 #endif
21726
21727 int
21728 main ()
21729 {
21730 return f != mprotect;
21731   ;
21732   return 0;
21733 }
21734 _ACEOF
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21737   (eval $ac_link) 2>&5
21738   ac_status=$?
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); } &&
21741          { ac_try='test -s conftest$ac_exeext'
21742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743   (eval $ac_try) 2>&5
21744   ac_status=$?
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); }; }; then
21747   ac_cv_func_mprotect=yes
21748 else
21749   echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21751
21752 ac_cv_func_mprotect=no
21753 fi
21754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21755 fi
21756 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21757 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21758 if test $ac_cv_func_mprotect = yes; then
21759   :
21760 else
21761   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21762 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21763    { (exit 1); exit 1; }; }
21764 fi
21765
21766
21767
21768
21769
21770   ac_ext=c
21771 ac_cpp='$CPP $CPPFLAGS'
21772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21775
21776   oldcflags="$CFLAGS"
21777   CFLAGS="$CFLAGS -Wl,-R."
21778   cat >conftest.$ac_ext <<_ACEOF
21779 int main() { return 0; }
21780 _ACEOF
21781 rm -f conftest.$ac_objext conftest$ac_exeext
21782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21783   (eval $ac_link) 2>&5
21784   ac_status=$?
21785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786   (exit $ac_status); } &&
21787          { ac_try='test -s conftest$ac_exeext'
21788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789   (eval $ac_try) 2>&5
21790   ac_status=$?
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); }; }; then
21793   ac_cv_link_use_r=yes
21794 else
21795   echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798 ac_cv_link_use_r=no
21799 fi
21800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21801   CFLAGS="$oldcflags"
21802   ac_ext=c
21803 ac_cpp='$CPP $CPPFLAGS'
21804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21807
21808   if test "$ac_cv_link_use_r" = yes
21809   then
21810
21811 cat >>confdefs.h <<\_ACEOF
21812 #define HAVE_LINK_R 1
21813 _ACEOF
21814
21815   fi
21816
21817
21818 # Check whether --enable-optimized or --disable-optimized was given.
21819 if test "${enable_optimized+set}" = set; then
21820   enableval="$enable_optimized"
21821
21822 else
21823   enableval=no
21824 fi;
21825 if test ${enableval} = "no"
21826 then
21827         ENABLE_OPTIMIZED=
21828
21829 else
21830         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21831
21832 fi
21833
21834 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21835 if test "${enable_spec2000+set}" = set; then
21836   enableval="$enable_spec2000"
21837
21838 else
21839   enableval=no
21840 fi;
21841 if test ${enableval} = "no"
21842 then
21843         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21844         then
21845                 SPEC2000_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21846
21847                 USE_SPEC2000=USE_SPEC2000=1
21848
21849         else
21850                 USE_SPEC2000=
21851
21852
21853         fi
21854 else
21855         if test ${enableval} = ""
21856         then
21857                 SPEC2000_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21858
21859         else
21860                 SPEC2000_ROOT=${enableval}
21861
21862         fi
21863         USE_SPEC2000=USE_SPEC2000=1
21864
21865 fi
21866
21867 # Check whether --enable-spec95 or --disable-spec95 was given.
21868 if test "${enable_spec95+set}" = set; then
21869   enableval="$enable_spec95"
21870
21871 else
21872   enableval=no
21873 fi;
21874 if test ${enableval} = "no"
21875 then
21876         if test -d /home/vadve/shared/benchmarks/spec95/benchspec
21877         then
21878                 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21879
21880                 USE_SPEC95=USE_SPEC95=1
21881
21882         else
21883                 USE_SPEC95=
21884
21885
21886         fi
21887 else
21888         if test ${enableval} = ""
21889         then
21890                 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21891
21892         else
21893                 SPEC95_ROOT=${enableval}
21894
21895         fi
21896         USE_SPEC95=USE_SPEC95=1
21897
21898 fi
21899
21900 # Check whether --enable-povray or --disable-povray was given.
21901 if test "${enable_povray+set}" = set; then
21902   enableval="$enable_povray"
21903   povray=$enableval
21904 else
21905   povray=auto
21906 fi;
21907 echo "$as_me:$LINENO: checking for POV-Ray benchmark sources" >&5
21908 echo $ECHO_N "checking for POV-Ray benchmark sources... $ECHO_C" >&6
21909 case "$povray" in
21910 yes)
21911     defaultdir=/home/vadve/shared/benchmarks/povray31
21912         if test -d $defaultdir
21913         then
21914                 POVRAY_ROOT=$defaultdir
21915
21916                 USE_POVRAY=USE_POVRAY=1
21917
21918         povray="yes, found in $defaultdir"
21919     else
21920         povray=no
21921     fi
21922     ;;
21923 auto|no)
21924
21925     USE_POVRAY=
21926
21927     povray=no
21928     ;;
21929 *)  if test -d "$povray"
21930     then
21931         POVRAY_ROOT="$povray"
21932
21933         USE_POVRAY=USE_POVRAY=1
21934
21935         povray="yes, in $povray"
21936     else
21937
21938         USE_POVRAY=
21939
21940         povray="no, not found in $povray"
21941     fi
21942     ;;
21943 esac
21944 echo "$as_me:$LINENO: result: $povray" >&5
21945 echo "${ECHO_T}$povray" >&6
21946
21947 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21948 if test "${enable_precompiled_bytecode+set}" = set; then
21949   enableval="$enable_precompiled_bytecode"
21950
21951 else
21952   enableval=no
21953 fi;
21954 if test ${enableval} = "no"
21955 then
21956         UPB=
21957
21958 else
21959         UPB=USE_PRECOMPILED_BYTECODE=1
21960
21961 fi
21962
21963 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21964 if test "${enable_llc_diffs+set}" = set; then
21965   enableval="$enable_llc_diffs"
21966
21967 else
21968   enableval=yes
21969 fi;
21970 if test ${enableval} = "no"
21971 then
21972         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
21973
21974 else
21975         DISABLE_LLC_DIFFS=
21976
21977 fi
21978
21979 # Check whether --enable-jit or --disable-jit was given.
21980 if test "${enable_jit+set}" = set; then
21981   enableval="$enable_jit"
21982
21983 else
21984   enableval=default
21985 fi;
21986 if test ${enableval} = "no"
21987 then
21988         JIT=
21989
21990 else
21991         case $target in
21992                 *i*86*)
21993                         JIT=TARGET_HAS_JIT=1
21994
21995                         ;;
21996                 *sparc*)
21997                         JIT=TARGET_HAS_JIT=1
21998
21999                         ;;
22000                 *)
22001                         JIT=
22002
22003                         ;;
22004         esac
22005 fi
22006
22007
22008 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22009 if test "${with_llvmgccdir+set}" = set; then
22010   withval="$with_llvmgccdir"
22011   LLVMGCCDIR=$withval
22012
22013 fi;
22014 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22015 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22016 LLVM_GCC_CHECK=no
22017 if test -d "$LLVMGCCDIR"
22018 then
22019         if test -x "$LLVMGCCDIR/bin/gcc"
22020         then
22021                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22022         fi
22023 fi
22024 llvmgccwarn=no
22025 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22026 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22027 if test "$LLVM_GCC_CHECK" = "no"
22028 then
22029     llvmgccwarn=yes
22030 fi
22031 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22032 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22033 LLVM_GCC_SANE=no
22034 if test -x "$LLVM_GCC_CHECK"
22035 then
22036         cp /dev/null conftest.c
22037     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22038         if test $? -eq 0
22039         then
22040                 LLVM_GCC_SANE=yes
22041         fi
22042         rm conftest.c
22043         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22044         LLVMCC1=$llvmcc1path
22045
22046         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22047         LLVMCC1PLUS=$llvmcc1pluspath
22048
22049 fi
22050 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22051 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22052 if test "$LLVM_GCC_SANE" = "no"
22053 then
22054         llvmgccwarn=yes
22055 fi
22056
22057
22058 # Check whether --with-bcrepos or --without-bcrepos was given.
22059 if test "${with_bcrepos+set}" = set; then
22060   withval="$with_bcrepos"
22061   BCR=$withval
22062
22063 else
22064   BCR=/home/vadve/lattner/LLVMPrograms
22065
22066 fi;
22067
22068
22069 # Check whether --with-papi or --without-papi was given.
22070 if test "${with_papi+set}" = set; then
22071   withval="$with_papi"
22072   PAPIDIR=$withval
22073
22074 else
22075   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22076
22077 fi;
22078
22079 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22080 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22081 eval "SHLIBEXT=$shrext"
22082 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22083 echo "${ECHO_T}$SHLIBEXT" >&6
22084 SHLIBEXT=$SHLIBEXT
22085
22086
22087 cat >>confdefs.h <<_ACEOF
22088 #define SHLIBEXT "$SHLIBEXT"
22089 _ACEOF
22090
22091
22092                                                             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"
22093 cat >confcache <<\_ACEOF
22094 # This file is a shell script that caches the results of configure
22095 # tests run on this system so they can be shared between configure
22096 # scripts and configure runs, see configure's option --config-cache.
22097 # It is not useful on other systems.  If it contains results you don't
22098 # want to keep, you may remove or edit it.
22099 #
22100 # config.status only pays attention to the cache file if you give it
22101 # the --recheck option to rerun configure.
22102 #
22103 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22104 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22105 # following values.
22106
22107 _ACEOF
22108
22109 # The following way of writing the cache mishandles newlines in values,
22110 # but we know of no workaround that is simple, portable, and efficient.
22111 # So, don't put newlines in cache variables' values.
22112 # Ultrix sh set writes to stderr and can't be redirected directly,
22113 # and sets the high bit in the cache file unless we assign to the vars.
22114 {
22115   (set) 2>&1 |
22116     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22117     *ac_space=\ *)
22118       # `set' does not quote correctly, so add quotes (double-quote
22119       # substitution turns \\\\ into \\, and sed turns \\ into \).
22120       sed -n \
22121         "s/'/'\\\\''/g;
22122           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22123       ;;
22124     *)
22125       # `set' quotes correctly as required by POSIX, so do not add quotes.
22126       sed -n \
22127         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22128       ;;
22129     esac;
22130 } |
22131   sed '
22132      t clear
22133      : clear
22134      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22135      t end
22136      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22137      : end' >>confcache
22138 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22139   if test -w $cache_file; then
22140     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22141     cat confcache >$cache_file
22142   else
22143     echo "not updating unwritable cache $cache_file"
22144   fi
22145 fi
22146 rm -f confcache
22147
22148 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22149 # Let make expand exec_prefix.
22150 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22151
22152 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22153 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22154 # trailing colons and then remove the whole line if VPATH becomes empty
22155 # (actually we leave an empty line to preserve line numbers).
22156 if test "x$srcdir" = x.; then
22157   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22158 s/:*\$(srcdir):*/:/;
22159 s/:*\${srcdir}:*/:/;
22160 s/:*@srcdir@:*/:/;
22161 s/^\([^=]*=[    ]*\):*/\1/;
22162 s/:*$//;
22163 s/^[^=]*=[      ]*$//;
22164 }'
22165 fi
22166
22167 DEFS=-DHAVE_CONFIG_H
22168
22169 ac_libobjs=
22170 ac_ltlibobjs=
22171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22172   # 1. Remove the extension, and $U if already installed.
22173   ac_i=`echo "$ac_i" |
22174          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22175   # 2. Add them.
22176   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22177   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22178 done
22179 LIBOBJS=$ac_libobjs
22180
22181 LTLIBOBJS=$ac_ltlibobjs
22182
22183
22184
22185 : ${CONFIG_STATUS=./config.status}
22186 ac_clean_files_save=$ac_clean_files
22187 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22188 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22189 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22190 cat >$CONFIG_STATUS <<_ACEOF
22191 #! $SHELL
22192 # Generated by $as_me.
22193 # Run this file to recreate the current configuration.
22194 # Compiler output produced by configure, useful for debugging
22195 # configure, is in config.log if it exists.
22196
22197 debug=false
22198 ac_cs_recheck=false
22199 ac_cs_silent=false
22200 SHELL=\${CONFIG_SHELL-$SHELL}
22201 _ACEOF
22202
22203 cat >>$CONFIG_STATUS <<\_ACEOF
22204 ## --------------------- ##
22205 ## M4sh Initialization.  ##
22206 ## --------------------- ##
22207
22208 # Be Bourne compatible
22209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22210   emulate sh
22211   NULLCMD=:
22212   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22213   # is contrary to our usage.  Disable this feature.
22214   alias -g '${1+"$@"}'='"$@"'
22215 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22216   set -o posix
22217 fi
22218
22219 # Support unset when possible.
22220 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22221   as_unset=unset
22222 else
22223   as_unset=false
22224 fi
22225
22226
22227 # Work around bugs in pre-3.0 UWIN ksh.
22228 $as_unset ENV MAIL MAILPATH
22229 PS1='$ '
22230 PS2='> '
22231 PS4='+ '
22232
22233 # NLS nuisances.
22234 for as_var in \
22235   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22236   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22237   LC_TELEPHONE LC_TIME
22238 do
22239   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22240     eval $as_var=C; export $as_var
22241   else
22242     $as_unset $as_var
22243   fi
22244 done
22245
22246 # Required to use basename.
22247 if expr a : '\(a\)' >/dev/null 2>&1; then
22248   as_expr=expr
22249 else
22250   as_expr=false
22251 fi
22252
22253 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22254   as_basename=basename
22255 else
22256   as_basename=false
22257 fi
22258
22259
22260 # Name of the executable.
22261 as_me=`$as_basename "$0" ||
22262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22263          X"$0" : 'X\(//\)$' \| \
22264          X"$0" : 'X\(/\)$' \| \
22265          .     : '\(.\)' 2>/dev/null ||
22266 echo X/"$0" |
22267     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22268           /^X\/\(\/\/\)$/{ s//\1/; q; }
22269           /^X\/\(\/\).*/{ s//\1/; q; }
22270           s/.*/./; q'`
22271
22272
22273 # PATH needs CR, and LINENO needs CR and PATH.
22274 # Avoid depending upon Character Ranges.
22275 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22276 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22277 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22278 as_cr_digits='0123456789'
22279 as_cr_alnum=$as_cr_Letters$as_cr_digits
22280
22281 # The user is always right.
22282 if test "${PATH_SEPARATOR+set}" != set; then
22283   echo "#! /bin/sh" >conf$$.sh
22284   echo  "exit 0"   >>conf$$.sh
22285   chmod +x conf$$.sh
22286   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22287     PATH_SEPARATOR=';'
22288   else
22289     PATH_SEPARATOR=:
22290   fi
22291   rm -f conf$$.sh
22292 fi
22293
22294
22295   as_lineno_1=$LINENO
22296   as_lineno_2=$LINENO
22297   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22298   test "x$as_lineno_1" != "x$as_lineno_2" &&
22299   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22300   # Find who we are.  Look in the path if we contain no path at all
22301   # relative or not.
22302   case $0 in
22303     *[\\/]* ) as_myself=$0 ;;
22304     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22305 for as_dir in $PATH
22306 do
22307   IFS=$as_save_IFS
22308   test -z "$as_dir" && as_dir=.
22309   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22310 done
22311
22312        ;;
22313   esac
22314   # We did not find ourselves, most probably we were run as `sh COMMAND'
22315   # in which case we are not to be found in the path.
22316   if test "x$as_myself" = x; then
22317     as_myself=$0
22318   fi
22319   if test ! -f "$as_myself"; then
22320     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22321 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22322    { (exit 1); exit 1; }; }
22323   fi
22324   case $CONFIG_SHELL in
22325   '')
22326     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22327 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22328 do
22329   IFS=$as_save_IFS
22330   test -z "$as_dir" && as_dir=.
22331   for as_base in sh bash ksh sh5; do
22332          case $as_dir in
22333          /*)
22334            if ("$as_dir/$as_base" -c '
22335   as_lineno_1=$LINENO
22336   as_lineno_2=$LINENO
22337   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22338   test "x$as_lineno_1" != "x$as_lineno_2" &&
22339   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22340              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22341              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22342              CONFIG_SHELL=$as_dir/$as_base
22343              export CONFIG_SHELL
22344              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22345            fi;;
22346          esac
22347        done
22348 done
22349 ;;
22350   esac
22351
22352   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22353   # uniformly replaced by the line number.  The first 'sed' inserts a
22354   # line-number line before each line; the second 'sed' does the real
22355   # work.  The second script uses 'N' to pair each line-number line
22356   # with the numbered line, and appends trailing '-' during
22357   # substitution so that $LINENO is not a special case at line end.
22358   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22359   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22360   sed '=' <$as_myself |
22361     sed '
22362       N
22363       s,$,-,
22364       : loop
22365       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22366       t loop
22367       s,-$,,
22368       s,^['$as_cr_digits']*\n,,
22369     ' >$as_me.lineno &&
22370   chmod +x $as_me.lineno ||
22371     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22372 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22373    { (exit 1); exit 1; }; }
22374
22375   # Don't try to exec as it changes $[0], causing all sort of problems
22376   # (the dirname of $[0] is not the place where we might find the
22377   # original and so on.  Autoconf is especially sensible to this).
22378   . ./$as_me.lineno
22379   # Exit status is that of the last command.
22380   exit
22381 }
22382
22383
22384 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22385   *c*,-n*) ECHO_N= ECHO_C='
22386 ' ECHO_T='      ' ;;
22387   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22388   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22389 esac
22390
22391 if expr a : '\(a\)' >/dev/null 2>&1; then
22392   as_expr=expr
22393 else
22394   as_expr=false
22395 fi
22396
22397 rm -f conf$$ conf$$.exe conf$$.file
22398 echo >conf$$.file
22399 if ln -s conf$$.file conf$$ 2>/dev/null; then
22400   # We could just check for DJGPP; but this test a) works b) is more generic
22401   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22402   if test -f conf$$.exe; then
22403     # Don't use ln at all; we don't have any links
22404     as_ln_s='cp -p'
22405   else
22406     as_ln_s='ln -s'
22407   fi
22408 elif ln conf$$.file conf$$ 2>/dev/null; then
22409   as_ln_s=ln
22410 else
22411   as_ln_s='cp -p'
22412 fi
22413 rm -f conf$$ conf$$.exe conf$$.file
22414
22415 if mkdir -p . 2>/dev/null; then
22416   as_mkdir_p=:
22417 else
22418   as_mkdir_p=false
22419 fi
22420
22421 as_executable_p="test -f"
22422
22423 # Sed expression to map a string onto a valid CPP name.
22424 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22425
22426 # Sed expression to map a string onto a valid variable name.
22427 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22428
22429
22430 # IFS
22431 # We need space, tab and new line, in precisely that order.
22432 as_nl='
22433 '
22434 IFS="   $as_nl"
22435
22436 # CDPATH.
22437 $as_unset CDPATH
22438
22439 exec 6>&1
22440
22441 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22442 # report actual input values of CONFIG_FILES etc. instead of their
22443 # values after options handling.  Logging --version etc. is OK.
22444 exec 5>>config.log
22445 {
22446   echo
22447   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22448 ## Running $as_me. ##
22449 _ASBOX
22450 } >&5
22451 cat >&5 <<_CSEOF
22452
22453 This file was extended by [LLVM] $as_me [1.1], which was
22454 generated by GNU Autoconf 2.57.  Invocation command line was
22455
22456   CONFIG_FILES    = $CONFIG_FILES
22457   CONFIG_HEADERS  = $CONFIG_HEADERS
22458   CONFIG_LINKS    = $CONFIG_LINKS
22459   CONFIG_COMMANDS = $CONFIG_COMMANDS
22460   $ $0 $@
22461
22462 _CSEOF
22463 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22464 echo >&5
22465 _ACEOF
22466
22467 # Files that config.status was made for.
22468 if test -n "$ac_config_files"; then
22469   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22470 fi
22471
22472 if test -n "$ac_config_headers"; then
22473   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22474 fi
22475
22476 if test -n "$ac_config_links"; then
22477   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22478 fi
22479
22480 if test -n "$ac_config_commands"; then
22481   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22482 fi
22483
22484 cat >>$CONFIG_STATUS <<\_ACEOF
22485
22486 ac_cs_usage="\
22487 \`$as_me' instantiates files from templates according to the
22488 current configuration.
22489
22490 Usage: $0 [OPTIONS] [FILE]...
22491
22492   -h, --help       print this help, then exit
22493   -V, --version    print version number, then exit
22494   -q, --quiet      do not print progress messages
22495   -d, --debug      don't remove temporary files
22496       --recheck    update $as_me by reconfiguring in the same conditions
22497   --file=FILE[:TEMPLATE]
22498                    instantiate the configuration file FILE
22499   --header=FILE[:TEMPLATE]
22500                    instantiate the configuration header FILE
22501
22502 Configuration files:
22503 $config_files
22504
22505 Configuration headers:
22506 $config_headers
22507
22508 Configuration commands:
22509 $config_commands
22510
22511 Report bugs to <bug-autoconf@gnu.org>."
22512 _ACEOF
22513
22514 cat >>$CONFIG_STATUS <<_ACEOF
22515 ac_cs_version="\\
22516 [LLVM] config.status [1.1]
22517 configured by $0, generated by GNU Autoconf 2.57,
22518   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22519
22520 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22521 Free Software Foundation, Inc.
22522 This config.status script is free software; the Free Software Foundation
22523 gives unlimited permission to copy, distribute and modify it."
22524 srcdir=$srcdir
22525 INSTALL="$INSTALL"
22526 _ACEOF
22527
22528 cat >>$CONFIG_STATUS <<\_ACEOF
22529 # If no file are specified by the user, then we need to provide default
22530 # value.  By we need to know if files were specified by the user.
22531 ac_need_defaults=:
22532 while test $# != 0
22533 do
22534   case $1 in
22535   --*=*)
22536     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22537     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22538     ac_shift=:
22539     ;;
22540   -*)
22541     ac_option=$1
22542     ac_optarg=$2
22543     ac_shift=shift
22544     ;;
22545   *) # This is not an option, so the user has probably given explicit
22546      # arguments.
22547      ac_option=$1
22548      ac_need_defaults=false;;
22549   esac
22550
22551   case $ac_option in
22552   # Handling of the options.
22553 _ACEOF
22554 cat >>$CONFIG_STATUS <<\_ACEOF
22555   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22556     ac_cs_recheck=: ;;
22557   --version | --vers* | -V )
22558     echo "$ac_cs_version"; exit 0 ;;
22559   --he | --h)
22560     # Conflict between --help and --header
22561     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22562 Try \`$0 --help' for more information." >&5
22563 echo "$as_me: error: ambiguous option: $1
22564 Try \`$0 --help' for more information." >&2;}
22565    { (exit 1); exit 1; }; };;
22566   --help | --hel | -h )
22567     echo "$ac_cs_usage"; exit 0 ;;
22568   --debug | --d* | -d )
22569     debug=: ;;
22570   --file | --fil | --fi | --f )
22571     $ac_shift
22572     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22573     ac_need_defaults=false;;
22574   --header | --heade | --head | --hea )
22575     $ac_shift
22576     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22577     ac_need_defaults=false;;
22578   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22579   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22580     ac_cs_silent=: ;;
22581
22582   # This is an error.
22583   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22584 Try \`$0 --help' for more information." >&5
22585 echo "$as_me: error: unrecognized option: $1
22586 Try \`$0 --help' for more information." >&2;}
22587    { (exit 1); exit 1; }; } ;;
22588
22589   *) ac_config_targets="$ac_config_targets $1" ;;
22590
22591   esac
22592   shift
22593 done
22594
22595 ac_configure_extra_args=
22596
22597 if $ac_cs_silent; then
22598   exec 6>/dev/null
22599   ac_configure_extra_args="$ac_configure_extra_args --silent"
22600 fi
22601
22602 _ACEOF
22603 cat >>$CONFIG_STATUS <<_ACEOF
22604 if \$ac_cs_recheck; then
22605   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22606   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22607 fi
22608
22609 _ACEOF
22610
22611 cat >>$CONFIG_STATUS <<_ACEOF
22612 #
22613 # INIT-COMMANDS section.
22614 #
22615
22616 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22617 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22618 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22619 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22620 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22621 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22622 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22623 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22624 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22625 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22626 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22627 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22628 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22629 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22630 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22631 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22632 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22633 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22634 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22635 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22636 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22637 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22638 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
22639 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22640 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22641 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22642 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
22643 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22644 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22645 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22646 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22647 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22648 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22649 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22650 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22651 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22652 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22653 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22654 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22655 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22656 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22657 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22658 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22659 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22660 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22661 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
22662 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22663 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22664 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22665
22666 _ACEOF
22667
22668
22669
22670 cat >>$CONFIG_STATUS <<\_ACEOF
22671 for ac_config_target in $ac_config_targets
22672 do
22673   case "$ac_config_target" in
22674   # Handling of arguments.
22675   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22676   "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
22677   "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
22678   "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22679   "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
22680   "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
22681   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22682   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22683   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22684   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22685   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22686   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22687   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22688   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22689   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22690   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22691   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22692   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22693   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22694   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22695   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22696   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22697   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22698   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22699   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22700   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22701   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22702   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22703   "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
22704   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22705   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22706   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22707   "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
22708   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22709   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22710   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22711   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22712   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22713   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22714   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22715   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22716   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22717   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22718   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22719   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22720   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22721   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22722   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22723   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22724   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22725   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22726   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
22727   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22728   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22729   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22730   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22731   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22732 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22733    { (exit 1); exit 1; }; };;
22734   esac
22735 done
22736
22737 # If the user did not use the arguments to specify the items to instantiate,
22738 # then the envvar interface is used.  Set only those that are not.
22739 # We use the long form for the default assignment because of an extremely
22740 # bizarre bug on SunOS 4.1.3.
22741 if $ac_need_defaults; then
22742   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22743   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22744   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22745 fi
22746
22747 # Have a temporary directory for convenience.  Make it in the build tree
22748 # simply because there is no reason to put it here, and in addition,
22749 # creating and moving files from /tmp can sometimes cause problems.
22750 # Create a temporary directory, and hook for its removal unless debugging.
22751 $debug ||
22752 {
22753   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22754   trap '{ (exit 1); exit 1; }' 1 2 13 15
22755 }
22756
22757 # Create a (secure) tmp directory for tmp files.
22758
22759 {
22760   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22761   test -n "$tmp" && test -d "$tmp"
22762 }  ||
22763 {
22764   tmp=./confstat$$-$RANDOM
22765   (umask 077 && mkdir $tmp)
22766 } ||
22767 {
22768    echo "$me: cannot create a temporary directory in ." >&2
22769    { (exit 1); exit 1; }
22770 }
22771
22772 _ACEOF
22773
22774 cat >>$CONFIG_STATUS <<_ACEOF
22775
22776 #
22777 # CONFIG_FILES section.
22778 #
22779
22780 # No need to generate the scripts if there are no CONFIG_FILES.
22781 # This happens for instance when ./config.status config.h
22782 if test -n "\$CONFIG_FILES"; then
22783   # Protect against being on the right side of a sed subst in config.status.
22784   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22785    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22786 s,@SHELL@,$SHELL,;t t
22787 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22788 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22789 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22790 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22791 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22792 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22793 s,@exec_prefix@,$exec_prefix,;t t
22794 s,@prefix@,$prefix,;t t
22795 s,@program_transform_name@,$program_transform_name,;t t
22796 s,@bindir@,$bindir,;t t
22797 s,@sbindir@,$sbindir,;t t
22798 s,@libexecdir@,$libexecdir,;t t
22799 s,@datadir@,$datadir,;t t
22800 s,@sysconfdir@,$sysconfdir,;t t
22801 s,@sharedstatedir@,$sharedstatedir,;t t
22802 s,@localstatedir@,$localstatedir,;t t
22803 s,@libdir@,$libdir,;t t
22804 s,@includedir@,$includedir,;t t
22805 s,@oldincludedir@,$oldincludedir,;t t
22806 s,@infodir@,$infodir,;t t
22807 s,@mandir@,$mandir,;t t
22808 s,@build_alias@,$build_alias,;t t
22809 s,@host_alias@,$host_alias,;t t
22810 s,@target_alias@,$target_alias,;t t
22811 s,@DEFS@,$DEFS,;t t
22812 s,@ECHO_C@,$ECHO_C,;t t
22813 s,@ECHO_N@,$ECHO_N,;t t
22814 s,@ECHO_T@,$ECHO_T,;t t
22815 s,@LIBS@,$LIBS,;t t
22816 s,@subdirs@,$subdirs,;t t
22817 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22818 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22819 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22820 s,@build@,$build,;t t
22821 s,@build_cpu@,$build_cpu,;t t
22822 s,@build_vendor@,$build_vendor,;t t
22823 s,@build_os@,$build_os,;t t
22824 s,@host@,$host,;t t
22825 s,@host_cpu@,$host_cpu,;t t
22826 s,@host_vendor@,$host_vendor,;t t
22827 s,@host_os@,$host_os,;t t
22828 s,@target@,$target,;t t
22829 s,@target_cpu@,$target_cpu,;t t
22830 s,@target_vendor@,$target_vendor,;t t
22831 s,@target_os@,$target_os,;t t
22832 s,@OS@,$OS,;t t
22833 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22834 s,@ARCH@,$ARCH,;t t
22835 s,@CXX@,$CXX,;t t
22836 s,@CXXFLAGS@,$CXXFLAGS,;t t
22837 s,@LDFLAGS@,$LDFLAGS,;t t
22838 s,@CPPFLAGS@,$CPPFLAGS,;t t
22839 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22840 s,@EXEEXT@,$EXEEXT,;t t
22841 s,@OBJEXT@,$OBJEXT,;t t
22842 s,@CC@,$CC,;t t
22843 s,@CFLAGS@,$CFLAGS,;t t
22844 s,@ac_ct_CC@,$ac_ct_CC,;t t
22845 s,@CPP@,$CPP,;t t
22846 s,@ifGNUmake@,$ifGNUmake,;t t
22847 s,@LEX@,$LEX,;t t
22848 s,@LEXLIB@,$LEXLIB,;t t
22849 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22850 s,@YACC@,$YACC,;t t
22851 s,@BISON@,$BISON,;t t
22852 s,@EGREP@,$EGREP,;t t
22853 s,@LN_S@,$LN_S,;t t
22854 s,@ECHO@,$ECHO,;t t
22855 s,@AR@,$AR,;t t
22856 s,@ac_ct_AR@,$ac_ct_AR,;t t
22857 s,@RANLIB@,$RANLIB,;t t
22858 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22859 s,@STRIP@,$STRIP,;t t
22860 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22861 s,@CXXCPP@,$CXXCPP,;t t
22862 s,@F77@,$F77,;t t
22863 s,@FFLAGS@,$FFLAGS,;t t
22864 s,@ac_ct_F77@,$ac_ct_F77,;t t
22865 s,@LIBTOOL@,$LIBTOOL,;t t
22866 s,@DOT@,$DOT,;t t
22867 s,@ETAGS@,$ETAGS,;t t
22868 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22869 s,@PYTHON@,$PYTHON,;t t
22870 s,@QMTEST@,$QMTEST,;t t
22871 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
22872 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
22873 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
22874 s,@ENDIAN@,$ENDIAN,;t t
22875 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22876 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22877 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22878 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22879 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22880 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
22881 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22882 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22883 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
22884 s,@ALLOCA@,$ALLOCA,;t t
22885 s,@MMAP_FILE@,$MMAP_FILE,;t t
22886 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22887 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
22888 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
22889 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22890 s,@USE_SPEC95@,$USE_SPEC95,;t t
22891 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22892 s,@USE_POVRAY@,$USE_POVRAY,;t t
22893 s,@UPB@,$UPB,;t t
22894 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22895 s,@JIT@,$JIT,;t t
22896 s,@LLVMCC1@,$LLVMCC1,;t t
22897 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22898 s,@BCR@,$BCR,;t t
22899 s,@PAPIDIR@,$PAPIDIR,;t t
22900 s,@SHLIBEXT@,$SHLIBEXT,;t t
22901 s,@LIBOBJS@,$LIBOBJS,;t t
22902 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22903 CEOF
22904
22905 _ACEOF
22906
22907   cat >>$CONFIG_STATUS <<\_ACEOF
22908   # Split the substitutions into bite-sized pieces for seds with
22909   # small command number limits, like on Digital OSF/1 and HP-UX.
22910   ac_max_sed_lines=48
22911   ac_sed_frag=1 # Number of current file.
22912   ac_beg=1 # First line for current file.
22913   ac_end=$ac_max_sed_lines # Line after last line for current file.
22914   ac_more_lines=:
22915   ac_sed_cmds=
22916   while $ac_more_lines; do
22917     if test $ac_beg -gt 1; then
22918       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22919     else
22920       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22921     fi
22922     if test ! -s $tmp/subs.frag; then
22923       ac_more_lines=false
22924     else
22925       # The purpose of the label and of the branching condition is to
22926       # speed up the sed processing (if there are no `@' at all, there
22927       # is no need to browse any of the substitutions).
22928       # These are the two extra sed commands mentioned above.
22929       (echo ':t
22930   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22931       if test -z "$ac_sed_cmds"; then
22932         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22933       else
22934         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22935       fi
22936       ac_sed_frag=`expr $ac_sed_frag + 1`
22937       ac_beg=$ac_end
22938       ac_end=`expr $ac_end + $ac_max_sed_lines`
22939     fi
22940   done
22941   if test -z "$ac_sed_cmds"; then
22942     ac_sed_cmds=cat
22943   fi
22944 fi # test -n "$CONFIG_FILES"
22945
22946 _ACEOF
22947 cat >>$CONFIG_STATUS <<\_ACEOF
22948 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22949   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22950   case $ac_file in
22951   - | *:- | *:-:* ) # input from stdin
22952         cat >$tmp/stdin
22953         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22954         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22955   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22956         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22957   * )   ac_file_in=$ac_file.in ;;
22958   esac
22959
22960   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22961   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22963          X"$ac_file" : 'X\(//\)[^/]' \| \
22964          X"$ac_file" : 'X\(//\)$' \| \
22965          X"$ac_file" : 'X\(/\)' \| \
22966          .     : '\(.\)' 2>/dev/null ||
22967 echo X"$ac_file" |
22968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22969           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22970           /^X\(\/\/\)$/{ s//\1/; q; }
22971           /^X\(\/\).*/{ s//\1/; q; }
22972           s/.*/./; q'`
22973   { if $as_mkdir_p; then
22974     mkdir -p "$ac_dir"
22975   else
22976     as_dir="$ac_dir"
22977     as_dirs=
22978     while test ! -d "$as_dir"; do
22979       as_dirs="$as_dir $as_dirs"
22980       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22982          X"$as_dir" : 'X\(//\)[^/]' \| \
22983          X"$as_dir" : 'X\(//\)$' \| \
22984          X"$as_dir" : 'X\(/\)' \| \
22985          .     : '\(.\)' 2>/dev/null ||
22986 echo X"$as_dir" |
22987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22988           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22989           /^X\(\/\/\)$/{ s//\1/; q; }
22990           /^X\(\/\).*/{ s//\1/; q; }
22991           s/.*/./; q'`
22992     done
22993     test ! -n "$as_dirs" || mkdir $as_dirs
22994   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22995 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22996    { (exit 1); exit 1; }; }; }
22997
22998   ac_builddir=.
22999
23000 if test "$ac_dir" != .; then
23001   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23002   # A "../" for each directory in $ac_dir_suffix.
23003   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23004 else
23005   ac_dir_suffix= ac_top_builddir=
23006 fi
23007
23008 case $srcdir in
23009   .)  # No --srcdir option.  We are building in place.
23010     ac_srcdir=.
23011     if test -z "$ac_top_builddir"; then
23012        ac_top_srcdir=.
23013     else
23014        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23015     fi ;;
23016   [\\/]* | ?:[\\/]* )  # Absolute path.
23017     ac_srcdir=$srcdir$ac_dir_suffix;
23018     ac_top_srcdir=$srcdir ;;
23019   *) # Relative path.
23020     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23021     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23022 esac
23023 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23024 # absolute.
23025 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23026 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23027 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23028 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23029
23030
23031   case $INSTALL in
23032   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23033   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23034   esac
23035
23036   if test x"$ac_file" != x-; then
23037     { echo "$as_me:$LINENO: creating $ac_file" >&5
23038 echo "$as_me: creating $ac_file" >&6;}
23039     rm -f "$ac_file"
23040   fi
23041   # Let's still pretend it is `configure' which instantiates (i.e., don't
23042   # use $as_me), people would be surprised to read:
23043   #    /* config.h.  Generated by config.status.  */
23044   if test x"$ac_file" = x-; then
23045     configure_input=
23046   else
23047     configure_input="$ac_file.  "
23048   fi
23049   configure_input=$configure_input"Generated from `echo $ac_file_in |
23050                                      sed 's,.*/,,'` by configure."
23051
23052   # First look for the input files in the build tree, otherwise in the
23053   # src tree.
23054   ac_file_inputs=`IFS=:
23055     for f in $ac_file_in; do
23056       case $f in
23057       -) echo $tmp/stdin ;;
23058       [\\/$]*)
23059          # Absolute (can't be DOS-style, as IFS=:)
23060          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23061 echo "$as_me: error: cannot find input file: $f" >&2;}
23062    { (exit 1); exit 1; }; }
23063          echo $f;;
23064       *) # Relative
23065          if test -f "$f"; then
23066            # Build tree
23067            echo $f
23068          elif test -f "$srcdir/$f"; then
23069            # Source tree
23070            echo $srcdir/$f
23071          else
23072            # /dev/null tree
23073            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23074 echo "$as_me: error: cannot find input file: $f" >&2;}
23075    { (exit 1); exit 1; }; }
23076          fi;;
23077       esac
23078     done` || { (exit 1); exit 1; }
23079 _ACEOF
23080 cat >>$CONFIG_STATUS <<_ACEOF
23081   sed "$ac_vpsub
23082 $extrasub
23083 _ACEOF
23084 cat >>$CONFIG_STATUS <<\_ACEOF
23085 :t
23086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23087 s,@configure_input@,$configure_input,;t t
23088 s,@srcdir@,$ac_srcdir,;t t
23089 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23090 s,@top_srcdir@,$ac_top_srcdir,;t t
23091 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23092 s,@builddir@,$ac_builddir,;t t
23093 s,@abs_builddir@,$ac_abs_builddir,;t t
23094 s,@top_builddir@,$ac_top_builddir,;t t
23095 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23096 s,@INSTALL@,$ac_INSTALL,;t t
23097 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23098   rm -f $tmp/stdin
23099   if test x"$ac_file" != x-; then
23100     mv $tmp/out $ac_file
23101   else
23102     cat $tmp/out
23103     rm -f $tmp/out
23104   fi
23105
23106 done
23107 _ACEOF
23108 cat >>$CONFIG_STATUS <<\_ACEOF
23109
23110 #
23111 # CONFIG_HEADER section.
23112 #
23113
23114 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23115 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23116 #
23117 # ac_d sets the value in "#define NAME VALUE" lines.
23118 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23119 ac_dB='[        ].*$,\1#\2'
23120 ac_dC=' '
23121 ac_dD=',;t'
23122 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23123 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23124 ac_uB='$,\1#\2define\3'
23125 ac_uC=' '
23126 ac_uD=',;t'
23127
23128 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23129   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23130   case $ac_file in
23131   - | *:- | *:-:* ) # input from stdin
23132         cat >$tmp/stdin
23133         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23134         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23135   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23136         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23137   * )   ac_file_in=$ac_file.in ;;
23138   esac
23139
23140   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23141 echo "$as_me: creating $ac_file" >&6;}
23142
23143   # First look for the input files in the build tree, otherwise in the
23144   # src tree.
23145   ac_file_inputs=`IFS=:
23146     for f in $ac_file_in; do
23147       case $f in
23148       -) echo $tmp/stdin ;;
23149       [\\/$]*)
23150          # Absolute (can't be DOS-style, as IFS=:)
23151          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23152 echo "$as_me: error: cannot find input file: $f" >&2;}
23153    { (exit 1); exit 1; }; }
23154          echo $f;;
23155       *) # Relative
23156          if test -f "$f"; then
23157            # Build tree
23158            echo $f
23159          elif test -f "$srcdir/$f"; then
23160            # Source tree
23161            echo $srcdir/$f
23162          else
23163            # /dev/null tree
23164            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23165 echo "$as_me: error: cannot find input file: $f" >&2;}
23166    { (exit 1); exit 1; }; }
23167          fi;;
23168       esac
23169     done` || { (exit 1); exit 1; }
23170   # Remove the trailing spaces.
23171   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23172
23173 _ACEOF
23174
23175 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23176 # `conftest.undefs', that substitutes the proper values into
23177 # config.h.in to produce config.h.  The first handles `#define'
23178 # templates, and the second `#undef' templates.
23179 # And first: Protect against being on the right side of a sed subst in
23180 # config.status.  Protect against being in an unquoted here document
23181 # in config.status.
23182 rm -f conftest.defines conftest.undefs
23183 # Using a here document instead of a string reduces the quoting nightmare.
23184 # Putting comments in sed scripts is not portable.
23185 #
23186 # `end' is used to avoid that the second main sed command (meant for
23187 # 0-ary CPP macros) applies to n-ary macro definitions.
23188 # See the Autoconf documentation for `clear'.
23189 cat >confdef2sed.sed <<\_ACEOF
23190 s/[\\&,]/\\&/g
23191 s,[\\$`],\\&,g
23192 t clear
23193 : clear
23194 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23195 t end
23196 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23197 : end
23198 _ACEOF
23199 # If some macros were called several times there might be several times
23200 # the same #defines, which is useless.  Nevertheless, we may not want to
23201 # sort them, since we want the *last* AC-DEFINE to be honored.
23202 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23203 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23204 rm -f confdef2sed.sed
23205
23206 # This sed command replaces #undef with comments.  This is necessary, for
23207 # example, in the case of _POSIX_SOURCE, which is predefined and required
23208 # on some systems where configure will not decide to define it.
23209 cat >>conftest.undefs <<\_ACEOF
23210 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23211 _ACEOF
23212
23213 # Break up conftest.defines because some shells have a limit on the size
23214 # of here documents, and old seds have small limits too (100 cmds).
23215 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23216 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23217 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23218 echo '  :' >>$CONFIG_STATUS
23219 rm -f conftest.tail
23220 while grep . conftest.defines >/dev/null
23221 do
23222   # Write a limited-size here document to $tmp/defines.sed.
23223   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23224   # Speed up: don't consider the non `#define' lines.
23225   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23226   # Work around the forget-to-reset-the-flag bug.
23227   echo 't clr' >>$CONFIG_STATUS
23228   echo ': clr' >>$CONFIG_STATUS
23229   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23230   echo 'CEOF
23231   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23232   rm -f $tmp/in
23233   mv $tmp/out $tmp/in
23234 ' >>$CONFIG_STATUS
23235   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23236   rm -f conftest.defines
23237   mv conftest.tail conftest.defines
23238 done
23239 rm -f conftest.defines
23240 echo '  fi # grep' >>$CONFIG_STATUS
23241 echo >>$CONFIG_STATUS
23242
23243 # Break up conftest.undefs because some shells have a limit on the size
23244 # of here documents, and old seds have small limits too (100 cmds).
23245 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23246 rm -f conftest.tail
23247 while grep . conftest.undefs >/dev/null
23248 do
23249   # Write a limited-size here document to $tmp/undefs.sed.
23250   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23251   # Speed up: don't consider the non `#undef'
23252   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23253   # Work around the forget-to-reset-the-flag bug.
23254   echo 't clr' >>$CONFIG_STATUS
23255   echo ': clr' >>$CONFIG_STATUS
23256   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23257   echo 'CEOF
23258   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23259   rm -f $tmp/in
23260   mv $tmp/out $tmp/in
23261 ' >>$CONFIG_STATUS
23262   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23263   rm -f conftest.undefs
23264   mv conftest.tail conftest.undefs
23265 done
23266 rm -f conftest.undefs
23267
23268 cat >>$CONFIG_STATUS <<\_ACEOF
23269   # Let's still pretend it is `configure' which instantiates (i.e., don't
23270   # use $as_me), people would be surprised to read:
23271   #    /* config.h.  Generated by config.status.  */
23272   if test x"$ac_file" = x-; then
23273     echo "/* Generated by configure.  */" >$tmp/config.h
23274   else
23275     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23276   fi
23277   cat $tmp/in >>$tmp/config.h
23278   rm -f $tmp/in
23279   if test x"$ac_file" != x-; then
23280     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23281       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23282 echo "$as_me: $ac_file is unchanged" >&6;}
23283     else
23284       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23286          X"$ac_file" : 'X\(//\)[^/]' \| \
23287          X"$ac_file" : 'X\(//\)$' \| \
23288          X"$ac_file" : 'X\(/\)' \| \
23289          .     : '\(.\)' 2>/dev/null ||
23290 echo X"$ac_file" |
23291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23292           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23293           /^X\(\/\/\)$/{ s//\1/; q; }
23294           /^X\(\/\).*/{ s//\1/; q; }
23295           s/.*/./; q'`
23296       { if $as_mkdir_p; then
23297     mkdir -p "$ac_dir"
23298   else
23299     as_dir="$ac_dir"
23300     as_dirs=
23301     while test ! -d "$as_dir"; do
23302       as_dirs="$as_dir $as_dirs"
23303       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23305          X"$as_dir" : 'X\(//\)[^/]' \| \
23306          X"$as_dir" : 'X\(//\)$' \| \
23307          X"$as_dir" : 'X\(/\)' \| \
23308          .     : '\(.\)' 2>/dev/null ||
23309 echo X"$as_dir" |
23310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23311           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23312           /^X\(\/\/\)$/{ s//\1/; q; }
23313           /^X\(\/\).*/{ s//\1/; q; }
23314           s/.*/./; q'`
23315     done
23316     test ! -n "$as_dirs" || mkdir $as_dirs
23317   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23318 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23319    { (exit 1); exit 1; }; }; }
23320
23321       rm -f $ac_file
23322       mv $tmp/config.h $ac_file
23323     fi
23324   else
23325     cat $tmp/config.h
23326     rm -f $tmp/config.h
23327   fi
23328 done
23329 _ACEOF
23330 cat >>$CONFIG_STATUS <<\_ACEOF
23331
23332 #
23333 # CONFIG_COMMANDS section.
23334 #
23335 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23336   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23337   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23338   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23339 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23340          X"$ac_dest" : 'X\(//\)[^/]' \| \
23341          X"$ac_dest" : 'X\(//\)$' \| \
23342          X"$ac_dest" : 'X\(/\)' \| \
23343          .     : '\(.\)' 2>/dev/null ||
23344 echo X"$ac_dest" |
23345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23346           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23347           /^X\(\/\/\)$/{ s//\1/; q; }
23348           /^X\(\/\).*/{ s//\1/; q; }
23349           s/.*/./; q'`
23350   ac_builddir=.
23351
23352 if test "$ac_dir" != .; then
23353   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23354   # A "../" for each directory in $ac_dir_suffix.
23355   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23356 else
23357   ac_dir_suffix= ac_top_builddir=
23358 fi
23359
23360 case $srcdir in
23361   .)  # No --srcdir option.  We are building in place.
23362     ac_srcdir=.
23363     if test -z "$ac_top_builddir"; then
23364        ac_top_srcdir=.
23365     else
23366        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23367     fi ;;
23368   [\\/]* | ?:[\\/]* )  # Absolute path.
23369     ac_srcdir=$srcdir$ac_dir_suffix;
23370     ac_top_srcdir=$srcdir ;;
23371   *) # Relative path.
23372     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23373     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23374 esac
23375 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23376 # absolute.
23377 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23378 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23379 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23380 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23381
23382
23383   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23384 echo "$as_me: executing $ac_dest commands" >&6;}
23385   case $ac_dest in
23386     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23387     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23388     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23389     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23390     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23391     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23392     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23393     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23394     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23395     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23396     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23397     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23398     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23399     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23400     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23401     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23402     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23403     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23404     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23405     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23406     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23407     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23408     test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
23409     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23410     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23411     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 ;;
23412     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 ;;
23413     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 ;;
23414     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23415     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23416     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 ;;
23417     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 ;;
23418     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 ;;
23419     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 ;;
23420     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 ;;
23421     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 ;;
23422     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 ;;
23423     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 ;;
23424     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 ;;
23425     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 ;;
23426     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 ;;
23427     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 ;;
23428     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 ;;
23429     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23430     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23431     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 ;;
23432     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23433     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23434     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23435   esac
23436 done
23437 _ACEOF
23438
23439 cat >>$CONFIG_STATUS <<\_ACEOF
23440
23441 { (exit 0); exit 0; }
23442 _ACEOF
23443 chmod +x $CONFIG_STATUS
23444 ac_clean_files=$ac_clean_files_save
23445
23446
23447 # configure is writing to config.log, and then calls config.status.
23448 # config.status does its own redirection, appending to config.log.
23449 # Unfortunately, on DOS this fails, as config.log is still kept open
23450 # by configure, so config.status won't be able to write to it; its
23451 # output is simply discarded.  So we exec the FD to /dev/null,
23452 # effectively closing config.log, so it can be properly (re)opened and
23453 # appended to by config.status.  When coming back to configure, we
23454 # need to make the FD available again.
23455 if test "$no_create" != yes; then
23456   ac_cs_success=:
23457   ac_config_status_args=
23458   test "$silent" = yes &&
23459     ac_config_status_args="$ac_config_status_args --quiet"
23460   exec 5>/dev/null
23461   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23462   exec 5>>config.log
23463   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23464   # would make configure fail if this is the last instruction.
23465   $ac_cs_success || { (exit 1); exit 1; }
23466 fi
23467
23468 #
23469 # CONFIG_SUBDIRS section.
23470 #
23471 if test "$no_recursion" != yes; then
23472
23473   # Remove --cache-file and --srcdir arguments so they do not pile up.
23474   ac_sub_configure_args=
23475   ac_prev=
23476   for ac_arg in $ac_configure_args; do
23477     if test -n "$ac_prev"; then
23478       ac_prev=
23479       continue
23480     fi
23481     case $ac_arg in
23482     -cache-file | --cache-file | --cache-fil | --cache-fi \
23483     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23484       ac_prev=cache_file ;;
23485     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23486     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23487     | --c=*)
23488       ;;
23489     --config-cache | -C)
23490       ;;
23491     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23492       ac_prev=srcdir ;;
23493     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23494       ;;
23495     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23496       ac_prev=prefix ;;
23497     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23498       ;;
23499     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23500     esac
23501   done
23502
23503   # Always prepend --prefix to ensure using the same prefix
23504   # in subdir configurations.
23505   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23506
23507   ac_popdir=`pwd`
23508   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23509
23510     # Do not complain, so a configure script can configure whichever
23511     # parts of a large source tree are present.
23512     test -d $srcdir/$ac_dir || continue
23513
23514     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23515 echo "$as_me: configuring in $ac_dir" >&6;}
23516     { if $as_mkdir_p; then
23517     mkdir -p "$ac_dir"
23518   else
23519     as_dir="$ac_dir"
23520     as_dirs=
23521     while test ! -d "$as_dir"; do
23522       as_dirs="$as_dir $as_dirs"
23523       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23525          X"$as_dir" : 'X\(//\)[^/]' \| \
23526          X"$as_dir" : 'X\(//\)$' \| \
23527          X"$as_dir" : 'X\(/\)' \| \
23528          .     : '\(.\)' 2>/dev/null ||
23529 echo X"$as_dir" |
23530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23531           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23532           /^X\(\/\/\)$/{ s//\1/; q; }
23533           /^X\(\/\).*/{ s//\1/; q; }
23534           s/.*/./; q'`
23535     done
23536     test ! -n "$as_dirs" || mkdir $as_dirs
23537   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23538 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23539    { (exit 1); exit 1; }; }; }
23540
23541     ac_builddir=.
23542
23543 if test "$ac_dir" != .; then
23544   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23545   # A "../" for each directory in $ac_dir_suffix.
23546   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23547 else
23548   ac_dir_suffix= ac_top_builddir=
23549 fi
23550
23551 case $srcdir in
23552   .)  # No --srcdir option.  We are building in place.
23553     ac_srcdir=.
23554     if test -z "$ac_top_builddir"; then
23555        ac_top_srcdir=.
23556     else
23557        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23558     fi ;;
23559   [\\/]* | ?:[\\/]* )  # Absolute path.
23560     ac_srcdir=$srcdir$ac_dir_suffix;
23561     ac_top_srcdir=$srcdir ;;
23562   *) # Relative path.
23563     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23564     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23565 esac
23566 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23567 # absolute.
23568 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23569 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23570 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23571 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23572
23573
23574     cd $ac_dir
23575
23576     # Check for guested configure; otherwise get Cygnus style configure.
23577     if test -f $ac_srcdir/configure.gnu; then
23578       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23579     elif test -f $ac_srcdir/configure; then
23580       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23581     elif test -f $ac_srcdir/configure.in; then
23582       ac_sub_configure=$ac_configure
23583     else
23584       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23585 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23586       ac_sub_configure=
23587     fi
23588
23589     # The recursion is here.
23590     if test -n "$ac_sub_configure"; then
23591       # Make the cache file name correct relative to the subdirectory.
23592       case $cache_file in
23593       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23594       *) # Relative path.
23595         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23596       esac
23597
23598       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23599 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23600       # The eval makes quoting arguments work.
23601       eval $ac_sub_configure $ac_sub_configure_args \
23602            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23603         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23604 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23605    { (exit 1); exit 1; }; }
23606     fi
23607
23608     cd $ac_popdir
23609   done
23610 fi
23611
23612
23613 if test $llvmgccwarn = yes
23614 then
23615         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23616 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23617         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23618 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23619         { echo "$as_me:$LINENO: WARNING: ***** " >&5
23620 echo "$as_me: WARNING: ***** " >&2;}
23621         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23622 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23623         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23624 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23625         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23626 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23627 fi
23628