Regenerated with 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.0].
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.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/sample"
430 ac_subdirs_all="$ac_subdirs_all projects/reopt"
431 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_unique_file=""Makefile.config.in""
470 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CC_set=${CC+set}
928 ac_env_CC_value=$CC
929 ac_cv_env_CC_set=${CC+set}
930 ac_cv_env_CC_value=$CC
931 ac_env_CFLAGS_set=${CFLAGS+set}
932 ac_env_CFLAGS_value=$CFLAGS
933 ac_cv_env_CFLAGS_set=${CFLAGS+set}
934 ac_cv_env_CFLAGS_value=$CFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951
952 #
953 # Report the --help message.
954 #
955 if test "$ac_init_help" = "long"; then
956   # Omit some internal or obsolete options to make the list less imposing.
957   # This message is too long to be a string in the A/UX 3.1 sh.
958   cat <<_ACEOF
959 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
960
961 Usage: $0 [OPTION]... [VAR=VALUE]...
962
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966 Defaults for the options are specified in brackets.
967
968 Configuration:
969   -h, --help              display this help and exit
970       --help=short        display options specific to this package
971       --help=recursive    display the short help of all the included packages
972   -V, --version           display version information and exit
973   -q, --quiet, --silent   do not print \`checking...' messages
974       --cache-file=FILE   cache test results in FILE [disabled]
975   -C, --config-cache      alias for \`--cache-file=config.cache'
976   -n, --no-create         do not create output files
977       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979 _ACEOF
980
981   cat <<_ACEOF
982 Installation directories:
983   --prefix=PREFIX         install architecture-independent files in PREFIX
984                           [$ac_default_prefix]
985   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                           [PREFIX]
987
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
992
993 For better control, use the options below.
994
995 Fine tuning of the installation directories:
996   --bindir=DIR           user executables [EPREFIX/bin]
997   --sbindir=DIR          system admin executables [EPREFIX/sbin]
998   --libexecdir=DIR       program executables [EPREFIX/libexec]
999   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003   --libdir=DIR           object code libraries [EPREFIX/lib]
1004   --includedir=DIR       C header files [PREFIX/include]
1005   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006   --infodir=DIR          info documentation [PREFIX/info]
1007   --mandir=DIR           man documentation [PREFIX/man]
1008 _ACEOF
1009
1010   cat <<\_ACEOF
1011
1012 System types:
1013   --build=BUILD     configure for building on BUILD [guessed]
1014   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1015   --target=TARGET   configure for building compilers for TARGET [HOST]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020   case $ac_init_help in
1021      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1022    esac
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035   --enable-purify         Compile with purify (default is NO)
1036   --enable-optimized      Compile with optimizations enabled (default is NO)
1037   --enable-spec           Compile SPEC 2000 benchmarks (default is NO)
1038   --enable-precompiled_bytecode
1039                           Use pre-compiled bytecode (default is NO)
1040   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051   --with-llvmgccdir       Location of LLVM GCC front-end
1052   --with-bcrepos          Location of Bytecode Repository
1053   --with-papi             Location of PAPI
1054   --with-purify           Location of purify program
1055
1056 Some influential environment variables:
1057   CXX         C++ compiler command
1058   CXXFLAGS    C++ compiler flags
1059   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060               nonstandard directory <lib dir>
1061   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062               headers in a nonstandard directory <include dir>
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   CPP         C preprocessor
1066   CXXCPP      C++ preprocessor
1067   F77         Fortran 77 compiler command
1068   FFLAGS      Fortran 77 compiler flags
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 Report bugs to <llvmbugs@cs.uiuc.edu>.
1074 _ACEOF
1075 fi
1076
1077 if test "$ac_init_help" = "recursive"; then
1078   # If there are subdirs, report their specific --help.
1079   ac_popdir=`pwd`
1080   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081     test -d $ac_dir || continue
1082     ac_builddir=.
1083
1084 if test "$ac_dir" != .; then
1085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086   # A "../" for each directory in $ac_dir_suffix.
1087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089   ac_dir_suffix= ac_top_builddir=
1090 fi
1091
1092 case $srcdir in
1093   .)  # No --srcdir option.  We are building in place.
1094     ac_srcdir=.
1095     if test -z "$ac_top_builddir"; then
1096        ac_top_srcdir=.
1097     else
1098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099     fi ;;
1100   [\\/]* | ?:[\\/]* )  # Absolute path.
1101     ac_srcdir=$srcdir$ac_dir_suffix;
1102     ac_top_srcdir=$srcdir ;;
1103   *) # Relative path.
1104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108 # absolute.
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114     cd $ac_dir
1115     # Check for guested configure; otherwise get Cygnus style configure.
1116     if test -f $ac_srcdir/configure.gnu; then
1117       echo
1118       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1119     elif test -f $ac_srcdir/configure; then
1120       echo
1121       $SHELL $ac_srcdir/configure  --help=recursive
1122     elif test -f $ac_srcdir/configure.ac ||
1123            test -f $ac_srcdir/configure.in; then
1124       echo
1125       $ac_configure --help
1126     else
1127       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128     fi
1129     cd $ac_popdir
1130   done
1131 fi
1132
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135   cat <<\_ACEOF
1136 [LLVM] configure [1.0]
1137 generated by GNU Autoconf 2.57
1138
1139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144   exit 0
1145 fi
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1150
1151 It was created by [LLVM] $as_me [1.0], which was
1152 generated by GNU Autoconf 2.57.  Invocation command line was
1153
1154   $ $0 $@
1155
1156 _ACEOF
1157 {
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1162
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1171
1172 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1173 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1176 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1177 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1178 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1179
1180 _ASUNAME
1181
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1184 do
1185   IFS=$as_save_IFS
1186   test -z "$as_dir" && as_dir=.
1187   echo "PATH: $as_dir"
1188 done
1189
1190 } >&5
1191
1192 cat >&5 <<_ACEOF
1193
1194
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1198
1199 _ACEOF
1200
1201
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1213 do
1214   for ac_arg
1215   do
1216     case $ac_arg in
1217     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219     | -silent | --silent | --silen | --sile | --sil)
1220       continue ;;
1221     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223     esac
1224     case $ac_pass in
1225     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226     2)
1227       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228       if test $ac_must_keep_next = true; then
1229         ac_must_keep_next=false # Got value, back to normal.
1230       else
1231         case $ac_arg in
1232           *=* | --config-cache | -C | -disable-* | --disable-* \
1233           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235           | -with-* | --with-* | -without-* | --without-* | --x)
1236             case "$ac_configure_args0 " in
1237               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238             esac
1239             ;;
1240           -* ) ac_must_keep_next=true ;;
1241         esac
1242       fi
1243       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244       # Get rid of the leading space.
1245       ac_sep=" "
1246       ;;
1247     esac
1248   done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log.  We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259   # Save into config.log some information that might help in debugging.
1260   {
1261     echo
1262
1263     cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268     echo
1269     # The following way of writing the cache mishandles newlines in values,
1270 {
1271   (set) 2>&1 |
1272     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273     *ac_space=\ *)
1274       sed -n \
1275         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277       ;;
1278     *)
1279       sed -n \
1280         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281       ;;
1282     esac;
1283 }
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291     echo
1292     for ac_var in $ac_subst_vars
1293     do
1294       eval ac_val=$`echo $ac_var`
1295       echo "$ac_var='"'"'$ac_val'"'"'"
1296     done | sort
1297     echo
1298
1299     if test -n "$ac_subst_files"; then
1300       cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305       echo
1306       for ac_var in $ac_subst_files
1307       do
1308         eval ac_val=$`echo $ac_var`
1309         echo "$ac_var='"'"'$ac_val'"'"'"
1310       done | sort
1311       echo
1312     fi
1313
1314     if test -s confdefs.h; then
1315       cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320       echo
1321       sed "/^$/d" confdefs.h | sort
1322       echo
1323     fi
1324     test "$ac_signal" != 0 &&
1325       echo "$as_me: caught signal $ac_signal"
1326     echo "$as_me: exit $exit_status"
1327   } >&5
1328   rm -f core core.* *.core &&
1329   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330     exit $exit_status
1331      ' 0
1332 for ac_signal in 1 2 13 15; do
1333   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1336
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1341
1342 # Predefined preprocessor variables.
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1367
1368
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372   if test "x$prefix" != xNONE; then
1373     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374   else
1375     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376   fi
1377 fi
1378 for ac_site_file in $CONFIG_SITE; do
1379   if test -r "$ac_site_file"; then
1380     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382     sed 's/^/| /' "$ac_site_file" >&5
1383     . "$ac_site_file"
1384   fi
1385 done
1386
1387 if test -r "$cache_file"; then
1388   # Some versions of bash will fail to source /dev/null (special
1389   # files actually), so we avoid doing that.
1390   if test -f "$cache_file"; then
1391     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393     case $cache_file in
1394       [\\/]* | ?:[\\/]* ) . $cache_file;;
1395       *)                      . ./$cache_file;;
1396     esac
1397   fi
1398 else
1399   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401   >$cache_file
1402 fi
1403
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410   eval ac_new_set=\$ac_env_${ac_var}_set
1411   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412   eval ac_new_val="\$ac_env_${ac_var}_value"
1413   case $ac_old_set,$ac_new_set in
1414     set,)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,set)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,);;
1423     *)
1424       if test "x$ac_old_val" != "x$ac_new_val"; then
1425         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1428 echo "$as_me:   former value:  $ac_old_val" >&2;}
1429         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1430 echo "$as_me:   current value: $ac_new_val" >&2;}
1431         ac_cache_corrupted=:
1432       fi;;
1433   esac
1434   # Pass precious variables to config.status.
1435   if test "$ac_new_set" = set; then
1436     case $ac_new_val in
1437     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439     *) ac_arg=$ac_var=$ac_new_val ;;
1440     esac
1441     case " $ac_configure_args " in
1442       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1443       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444     esac
1445   fi
1446 done
1447 if $ac_cache_corrupted; then
1448   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452    { (exit 1); exit 1; }; }
1453 fi
1454
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1487
1488 ac_aux_dir=
1489 for ac_dir in autoconf $srcdir/autoconf; do
1490   if test -f $ac_dir/install-sh; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/install-sh -c"
1493     break
1494   elif test -f $ac_dir/install.sh; then
1495     ac_aux_dir=$ac_dir
1496     ac_install_sh="$ac_aux_dir/install.sh -c"
1497     break
1498   elif test -f $ac_dir/shtool; then
1499     ac_aux_dir=$ac_dir
1500     ac_install_sh="$ac_aux_dir/shtool install -c"
1501     break
1502   fi
1503 done
1504 if test -z "$ac_aux_dir"; then
1505   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513
1514 if test ${srcdir} != "."
1515 then
1516         if test -f ${srcdir}/include/Config/config.h
1517         then
1518                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1519 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520    { (exit 1); exit 1; }; }
1521         fi
1522 fi
1523
1524 if test -d ${srcdir}/projects/sample
1525 then
1526
1527
1528 subdirs="$subdirs projects/sample"
1529
1530 fi
1531
1532 if test -d ${srcdir}/projects/reopt
1533 then
1534
1535
1536 subdirs="$subdirs projects/reopt"
1537
1538 fi
1539
1540 if test -d ${srcdir}/projects/poolalloc
1541 then
1542
1543
1544 subdirs="$subdirs projects/poolalloc"
1545
1546 fi
1547
1548           ac_config_headers="$ac_config_headers include/Config/config.h"
1549
1550           ac_config_commands="$ac_config_commands Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands Makefile.common"
1554
1555
1556           ac_config_commands="$ac_config_commands Makefile.rules"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands runtime/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1668
1669
1670           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1686
1687
1688           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1692
1693
1694           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1695
1696
1697           ac_config_commands="$ac_config_commands runtime/libprofile/Makefile"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Makefile"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Makefile.tests"
1704
1705
1706           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1707
1708
1709           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1992
1993
1994           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
2013
2014
2015           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
2016
2017
2018           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
2031
2032
2033           ac_config_commands="$ac_config_commands tools/Makefile"
2034
2035
2036           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
2037
2038
2039           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
2040
2041
2042           ac_config_commands="$ac_config_commands tools/extract/Makefile"
2043
2044
2045           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
2046
2047
2048           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
2049
2050
2051           ac_config_commands="$ac_config_commands tools/llc/Makefile"
2052
2053
2054           ac_config_commands="$ac_config_commands tools/llee/Makefile"
2055
2056
2057           ac_config_commands="$ac_config_commands tools/lli/Makefile"
2058
2059
2060           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2061
2062
2063           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2064
2065
2066           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2067
2068
2069           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2070
2071
2072           ac_config_commands="$ac_config_commands tools/llvm-nm/Makefile"
2073
2074
2075           ac_config_commands="$ac_config_commands tools/llvm-prof/Makefile"
2076
2077
2078           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2079
2080
2081           ac_config_commands="$ac_config_commands utils/Makefile"
2082
2083
2084           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2085
2086
2087           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2088
2089
2090           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2091
2092
2093           ac_config_commands="$ac_config_commands projects/Makefile"
2094
2095
2096           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2097
2098
2099           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2100
2101
2102           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2103
2104
2105           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2106
2107
2108
2109
2110 # Find a good install program.  We prefer a C program (faster),
2111 # so one script is as good as another.  But avoid the broken or
2112 # incompatible versions:
2113 # SysV /etc/install, /usr/sbin/install
2114 # SunOS /usr/etc/install
2115 # IRIX /sbin/install
2116 # AIX /bin/install
2117 # AmigaOS /C/install, which installs bootblocks on floppy discs
2118 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2121 # ./install, which can be erroneously created by make from ./install.sh.
2122 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2123 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2124 if test -z "$INSTALL"; then
2125 if test "${ac_cv_path_install+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131   IFS=$as_save_IFS
2132   test -z "$as_dir" && as_dir=.
2133   # Account for people who put trailing slashes in PATH elements.
2134 case $as_dir/ in
2135   ./ | .// | /cC/* | \
2136   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2137   /usr/ucb/* ) ;;
2138   *)
2139     # OSF1 and SCO ODT 3.0 have their own names for install.
2140     # Don't use installbsd from OSF since it installs stuff as root
2141     # by default.
2142     for ac_prog in ginstall scoinst install; do
2143       for ac_exec_ext in '' $ac_executable_extensions; do
2144         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2145           if test $ac_prog = install &&
2146             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2147             # AIX install.  It has an incompatible calling convention.
2148             :
2149           elif test $ac_prog = install &&
2150             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2151             # program-specific install script used by HP pwplus--don't use.
2152             :
2153           else
2154             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2155             break 3
2156           fi
2157         fi
2158       done
2159     done
2160     ;;
2161 esac
2162 done
2163
2164
2165 fi
2166   if test "${ac_cv_path_install+set}" = set; then
2167     INSTALL=$ac_cv_path_install
2168   else
2169     # As a last resort, use the slow shell script.  We don't cache a
2170     # path for INSTALL within a source directory, because that will
2171     # break other packages using the cache if that directory is
2172     # removed, or if the path is relative.
2173     INSTALL=$ac_install_sh
2174   fi
2175 fi
2176 echo "$as_me:$LINENO: result: $INSTALL" >&5
2177 echo "${ECHO_T}$INSTALL" >&6
2178
2179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2180 # It thinks the first close brace ends the variable substitution.
2181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2182
2183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2184
2185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2186
2187
2188 # Make sure we can run config.sub.
2189 $ac_config_sub sun4 >/dev/null 2>&1 ||
2190   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2191 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2192    { (exit 1); exit 1; }; }
2193
2194 echo "$as_me:$LINENO: checking build system type" >&5
2195 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2196 if test "${ac_cv_build+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   ac_cv_build_alias=$build_alias
2200 test -z "$ac_cv_build_alias" &&
2201   ac_cv_build_alias=`$ac_config_guess`
2202 test -z "$ac_cv_build_alias" &&
2203   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2204 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2205    { (exit 1); exit 1; }; }
2206 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2207   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2208 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2209    { (exit 1); exit 1; }; }
2210
2211 fi
2212 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2213 echo "${ECHO_T}$ac_cv_build" >&6
2214 build=$ac_cv_build
2215 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2216 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2217 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2218
2219
2220 echo "$as_me:$LINENO: checking host system type" >&5
2221 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2222 if test "${ac_cv_host+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   ac_cv_host_alias=$host_alias
2226 test -z "$ac_cv_host_alias" &&
2227   ac_cv_host_alias=$ac_cv_build_alias
2228 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2229   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2230 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2231    { (exit 1); exit 1; }; }
2232
2233 fi
2234 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2235 echo "${ECHO_T}$ac_cv_host" >&6
2236 host=$ac_cv_host
2237 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2238 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2239 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2240
2241
2242 echo "$as_me:$LINENO: checking target system type" >&5
2243 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2244 if test "${ac_cv_target+set}" = set; then
2245   echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247   ac_cv_target_alias=$target_alias
2248 test "x$ac_cv_target_alias" = "x" &&
2249   ac_cv_target_alias=$ac_cv_host_alias
2250 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2251   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2252 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2253    { (exit 1); exit 1; }; }
2254
2255 fi
2256 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2257 echo "${ECHO_T}$ac_cv_target" >&6
2258 target=$ac_cv_target
2259 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2260 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2261 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2262
2263
2264 # The aliases save the names the user supplied, while $host etc.
2265 # will get canonicalized.
2266 test -n "$target_alias" &&
2267   test "$program_prefix$program_suffix$program_transform_name" = \
2268     NONENONEs,x,x, &&
2269   program_prefix=${target_alias}-
2270
2271 case $build in
2272         *i*86*)  OS=Linux
2273
2274                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
2275                          then
2276                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2277
2278                          fi
2279                  ;;
2280
2281         *sparc*) OS=SunOS
2282
2283                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
2284                          then
2285                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2286
2287                          fi
2288                  ;;
2289
2290         *)       OS=Unknown
2291
2292                  ;;
2293 esac
2294
2295 case $target in
2296         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2297
2298                           ;;
2299 esac
2300
2301 case $target in
2302         *i*86*)           ARCH=x86
2303
2304                           ;;
2305         *sparc*solaris*)  ARCH=Sparc
2306
2307                           ;;
2308 esac
2309
2310
2311 ac_ext=cc
2312 ac_cpp='$CXXCPP $CPPFLAGS'
2313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2316 if test -n "$ac_tool_prefix"; then
2317   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2318   do
2319     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_CXX+set}" = set; then
2324   echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326   if test -n "$CXX"; then
2327   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332   IFS=$as_save_IFS
2333   test -z "$as_dir" && as_dir=.
2334   for ac_exec_ext in '' $ac_executable_extensions; do
2335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338     break 2
2339   fi
2340 done
2341 done
2342
2343 fi
2344 fi
2345 CXX=$ac_cv_prog_CXX
2346 if test -n "$CXX"; then
2347   echo "$as_me:$LINENO: result: $CXX" >&5
2348 echo "${ECHO_T}$CXX" >&6
2349 else
2350   echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2352 fi
2353
2354     test -n "$CXX" && break
2355   done
2356 fi
2357 if test -z "$CXX"; then
2358   ac_ct_CXX=$CXX
2359   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2360 do
2361   # Extract the first word of "$ac_prog", so it can be a program name with args.
2362 set dummy $ac_prog; ac_word=$2
2363 echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   if test -n "$ac_ct_CXX"; then
2369   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374   IFS=$as_save_IFS
2375   test -z "$as_dir" && as_dir=.
2376   for ac_exec_ext in '' $ac_executable_extensions; do
2377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378     ac_cv_prog_ac_ct_CXX="$ac_prog"
2379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380     break 2
2381   fi
2382 done
2383 done
2384
2385 fi
2386 fi
2387 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2388 if test -n "$ac_ct_CXX"; then
2389   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2390 echo "${ECHO_T}$ac_ct_CXX" >&6
2391 else
2392   echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6
2394 fi
2395
2396   test -n "$ac_ct_CXX" && break
2397 done
2398 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2399
2400   CXX=$ac_ct_CXX
2401 fi
2402
2403
2404 # Provide some information about the compiler.
2405 echo "$as_me:$LINENO:" \
2406      "checking for C++ compiler version" >&5
2407 ac_compiler=`set X $ac_compile; echo $2`
2408 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2409   (eval $ac_compiler --version </dev/null >&5) 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); }
2413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2414   (eval $ac_compiler -v </dev/null >&5) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }
2418 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2419   (eval $ac_compiler -V </dev/null >&5) 2>&5
2420   ac_status=$?
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); }
2423
2424 cat >conftest.$ac_ext <<_ACEOF
2425 #line $LINENO "configure"
2426 /* confdefs.h.  */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h.  */
2431
2432 int
2433 main ()
2434 {
2435
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 ac_clean_files_save=$ac_clean_files
2441 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2442 # Try to create an executable without -o first, disregard a.out.
2443 # It will help us diagnose broken compilers, and finding out an intuition
2444 # of exeext.
2445 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2446 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2447 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2449   (eval $ac_link_default) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; then
2453   # Find the output, starting from the most likely.  This scheme is
2454 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2455 # resort.
2456
2457 # Be careful to initialize this variable, since it used to be cached.
2458 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2459 ac_cv_exeext=
2460 # b.out is created by i960 compilers.
2461 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2462 do
2463   test -f "$ac_file" || continue
2464   case $ac_file in
2465     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2466         ;;
2467     conftest.$ac_ext )
2468         # This is the source file.
2469         ;;
2470     [ab].out )
2471         # We found the default executable, but exeext='' is most
2472         # certainly right.
2473         break;;
2474     *.* )
2475         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2476         # FIXME: I believe we export ac_cv_exeext for Libtool,
2477         # but it would be cool to find out if it's true.  Does anybody
2478         # maintain Libtool? --akim.
2479         export ac_cv_exeext
2480         break;;
2481     * )
2482         break;;
2483   esac
2484 done
2485 else
2486   echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: C++ compiler cannot create executables
2492 See \`config.log' for more details." >&2;}
2493    { (exit 77); exit 77; }; }
2494 fi
2495
2496 ac_exeext=$ac_cv_exeext
2497 echo "$as_me:$LINENO: result: $ac_file" >&5
2498 echo "${ECHO_T}$ac_file" >&6
2499
2500 # Check the compiler produces executables we can run.  If not, either
2501 # the compiler is broken, or we cross compile.
2502 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2503 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2504 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2505 # If not cross compiling, check that we can run a simple program.
2506 if test "$cross_compiling" != yes; then
2507   if { ac_try='./$ac_file'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; }; then
2513     cross_compiling=no
2514   else
2515     if test "$cross_compiling" = maybe; then
2516         cross_compiling=yes
2517     else
2518         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2519 If you meant to cross compile, use \`--host'.
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: cannot run C++ compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&2;}
2524    { (exit 1); exit 1; }; }
2525     fi
2526   fi
2527 fi
2528 echo "$as_me:$LINENO: result: yes" >&5
2529 echo "${ECHO_T}yes" >&6
2530
2531 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2532 ac_clean_files=$ac_clean_files_save
2533 # Check the compiler produces executables we can run.  If not, either
2534 # the compiler is broken, or we cross compile.
2535 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2536 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2537 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2538 echo "${ECHO_T}$cross_compiling" >&6
2539
2540 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2541 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2543   (eval $ac_link) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; then
2547   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2548 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2549 # work properly (i.e., refer to `conftest.exe'), while it won't with
2550 # `rm'.
2551 for ac_file in conftest.exe conftest conftest.*; do
2552   test -f "$ac_file" || continue
2553   case $ac_file in
2554     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2555     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2556           export ac_cv_exeext
2557           break;;
2558     * ) break;;
2559   esac
2560 done
2561 else
2562   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2565 See \`config.log' for more details." >&2;}
2566    { (exit 1); exit 1; }; }
2567 fi
2568
2569 rm -f conftest$ac_cv_exeext
2570 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2571 echo "${ECHO_T}$ac_cv_exeext" >&6
2572
2573 rm -f conftest.$ac_ext
2574 EXEEXT=$ac_cv_exeext
2575 ac_exeext=$EXEEXT
2576 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2577 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2578 if test "${ac_cv_objext+set}" = set; then
2579   echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581   cat >conftest.$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 /* confdefs.h.  */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h.  */
2588
2589 int
2590 main ()
2591 {
2592
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 rm -f conftest.o conftest.obj
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599   (eval $ac_compile) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; then
2603   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2604   case $ac_file in
2605     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2606     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2607        break;;
2608   esac
2609 done
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2617 See \`config.log' for more details." >&2;}
2618    { (exit 1); exit 1; }; }
2619 fi
2620
2621 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2622 fi
2623 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2624 echo "${ECHO_T}$ac_cv_objext" >&6
2625 OBJEXT=$ac_cv_objext
2626 ac_objext=$OBJEXT
2627 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2628 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2629 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2630   echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632   cat >conftest.$ac_ext <<_ACEOF
2633 #line $LINENO "configure"
2634 /* confdefs.h.  */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h.  */
2639
2640 int
2641 main ()
2642 {
2643 #ifndef __GNUC__
2644        choke me
2645 #endif
2646
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653   (eval $ac_compile) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; }; then
2663   ac_compiler_gnu=yes
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 ac_compiler_gnu=no
2669 fi
2670 rm -f conftest.$ac_objext conftest.$ac_ext
2671 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2672
2673 fi
2674 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2675 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2676 GXX=`test $ac_compiler_gnu = yes && echo yes`
2677 ac_test_CXXFLAGS=${CXXFLAGS+set}
2678 ac_save_CXXFLAGS=$CXXFLAGS
2679 CXXFLAGS="-g"
2680 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2681 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2682 if test "${ac_cv_prog_cxx_g+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   cat >conftest.$ac_ext <<_ACEOF
2686 #line $LINENO "configure"
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692
2693 int
2694 main ()
2695 {
2696
2697   ;
2698   return 0;
2699 }
2700 _ACEOF
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703   (eval $ac_compile) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } &&
2707          { ac_try='test -s conftest.$ac_objext'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; }; then
2713   ac_cv_prog_cxx_g=yes
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 ac_cv_prog_cxx_g=no
2719 fi
2720 rm -f conftest.$ac_objext conftest.$ac_ext
2721 fi
2722 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2723 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2724 if test "$ac_test_CXXFLAGS" = set; then
2725   CXXFLAGS=$ac_save_CXXFLAGS
2726 elif test $ac_cv_prog_cxx_g = yes; then
2727   if test "$GXX" = yes; then
2728     CXXFLAGS="-g -O2"
2729   else
2730     CXXFLAGS="-g"
2731   fi
2732 else
2733   if test "$GXX" = yes; then
2734     CXXFLAGS="-O2"
2735   else
2736     CXXFLAGS=
2737   fi
2738 fi
2739 for ac_declaration in \
2740    ''\
2741    '#include <stdlib.h>' \
2742    'extern "C" void std::exit (int) throw (); using std::exit;' \
2743    'extern "C" void std::exit (int); using std::exit;' \
2744    'extern "C" void exit (int) throw ();' \
2745    'extern "C" void exit (int);' \
2746    'void exit (int);'
2747 do
2748   cat >conftest.$ac_ext <<_ACEOF
2749 #line $LINENO "configure"
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2755 #include <stdlib.h>
2756 $ac_declaration
2757 int
2758 main ()
2759 {
2760 exit (42);
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } &&
2771          { ac_try='test -s conftest.$ac_objext'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; }; then
2777   :
2778 else
2779   echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 continue
2783 fi
2784 rm -f conftest.$ac_objext conftest.$ac_ext
2785   cat >conftest.$ac_ext <<_ACEOF
2786 #line $LINENO "configure"
2787 /* confdefs.h.  */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h.  */
2792 $ac_declaration
2793 int
2794 main ()
2795 {
2796 exit (42);
2797   ;
2798   return 0;
2799 }
2800 _ACEOF
2801 rm -f conftest.$ac_objext
2802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803   (eval $ac_compile) 2>&5
2804   ac_status=$?
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); } &&
2807          { ac_try='test -s conftest.$ac_objext'
2808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809   (eval $ac_try) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; }; then
2813   break
2814 else
2815   echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2817
2818 fi
2819 rm -f conftest.$ac_objext conftest.$ac_ext
2820 done
2821 rm -f conftest*
2822 if test -n "$ac_declaration"; then
2823   echo '#ifdef __cplusplus' >>confdefs.h
2824   echo $ac_declaration      >>confdefs.h
2825   echo '#endif'             >>confdefs.h
2826 fi
2827
2828 ac_ext=c
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833
2834 ac_ext=c
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 if test -n "$ac_tool_prefix"; then
2840   for ac_prog in gcc
2841   do
2842     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_CC+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849   if test -n "$CC"; then
2850   ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857   for ac_exec_ext in '' $ac_executable_extensions; do
2858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864 done
2865
2866 fi
2867 fi
2868 CC=$ac_cv_prog_CC
2869 if test -n "$CC"; then
2870   echo "$as_me:$LINENO: result: $CC" >&5
2871 echo "${ECHO_T}$CC" >&6
2872 else
2873   echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2875 fi
2876
2877     test -n "$CC" && break
2878   done
2879 fi
2880 if test -z "$CC"; then
2881   ac_ct_CC=$CC
2882   for ac_prog in gcc
2883 do
2884   # Extract the first word of "$ac_prog", so it can be a program name with args.
2885 set dummy $ac_prog; ac_word=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   if test -n "$ac_ct_CC"; then
2892   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897   IFS=$as_save_IFS
2898   test -z "$as_dir" && as_dir=.
2899   for ac_exec_ext in '' $ac_executable_extensions; do
2900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901     ac_cv_prog_ac_ct_CC="$ac_prog"
2902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903     break 2
2904   fi
2905 done
2906 done
2907
2908 fi
2909 fi
2910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911 if test -n "$ac_ct_CC"; then
2912   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2913 echo "${ECHO_T}$ac_ct_CC" >&6
2914 else
2915   echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6
2917 fi
2918
2919   test -n "$ac_ct_CC" && break
2920 done
2921
2922   CC=$ac_ct_CC
2923 fi
2924
2925
2926 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: no acceptable C compiler found in \$PATH
2929 See \`config.log' for more details." >&2;}
2930    { (exit 1); exit 1; }; }
2931
2932 # Provide some information about the compiler.
2933 echo "$as_me:$LINENO:" \
2934      "checking for C compiler version" >&5
2935 ac_compiler=`set X $ac_compile; echo $2`
2936 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2937   (eval $ac_compiler --version </dev/null >&5) 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }
2941 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2942   (eval $ac_compiler -v </dev/null >&5) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }
2946 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2947   (eval $ac_compiler -V </dev/null >&5) 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }
2951
2952 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2953 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2954 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2955   echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957   cat >conftest.$ac_ext <<_ACEOF
2958 #line $LINENO "configure"
2959 /* confdefs.h.  */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h.  */
2964
2965 int
2966 main ()
2967 {
2968 #ifndef __GNUC__
2969        choke me
2970 #endif
2971
2972   ;
2973   return 0;
2974 }
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978   (eval $ac_compile) 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } &&
2982          { ac_try='test -s conftest.$ac_objext'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; }; then
2988   ac_compiler_gnu=yes
2989 else
2990   echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993 ac_compiler_gnu=no
2994 fi
2995 rm -f conftest.$ac_objext conftest.$ac_ext
2996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2997
2998 fi
2999 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3000 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3001 GCC=`test $ac_compiler_gnu = yes && echo yes`
3002 ac_test_CFLAGS=${CFLAGS+set}
3003 ac_save_CFLAGS=$CFLAGS
3004 CFLAGS="-g"
3005 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3006 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3007 if test "${ac_cv_prog_cc_g+set}" = set; then
3008   echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010   cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017
3018 int
3019 main ()
3020 {
3021
3022   ;
3023   return 0;
3024 }
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028   (eval $ac_compile) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } &&
3032          { ac_try='test -s conftest.$ac_objext'
3033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034   (eval $ac_try) 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; }; then
3038   ac_cv_prog_cc_g=yes
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 ac_cv_prog_cc_g=no
3044 fi
3045 rm -f conftest.$ac_objext conftest.$ac_ext
3046 fi
3047 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3048 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3049 if test "$ac_test_CFLAGS" = set; then
3050   CFLAGS=$ac_save_CFLAGS
3051 elif test $ac_cv_prog_cc_g = yes; then
3052   if test "$GCC" = yes; then
3053     CFLAGS="-g -O2"
3054   else
3055     CFLAGS="-g"
3056   fi
3057 else
3058   if test "$GCC" = yes; then
3059     CFLAGS="-O2"
3060   else
3061     CFLAGS=
3062   fi
3063 fi
3064 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3065 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3066 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3067   echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069   ac_cv_prog_cc_stdc=no
3070 ac_save_CC=$CC
3071 cat >conftest.$ac_ext <<_ACEOF
3072 #line $LINENO "configure"
3073 /* confdefs.h.  */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h.  */
3078 #include <stdarg.h>
3079 #include <stdio.h>
3080 #include <sys/types.h>
3081 #include <sys/stat.h>
3082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3083 struct buf { int x; };
3084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3085 static char *e (p, i)
3086      char **p;
3087      int i;
3088 {
3089   return p[i];
3090 }
3091 static char *f (char * (*g) (char **, int), char **p, ...)
3092 {
3093   char *s;
3094   va_list v;
3095   va_start (v,p);
3096   s = g (p, va_arg (v,int));
3097   va_end (v);
3098   return s;
3099 }
3100 int test (int i, double x);
3101 struct s1 {int (*f) (int a);};
3102 struct s2 {int (*f) (double a);};
3103 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3104 int argc;
3105 char **argv;
3106 int
3107 main ()
3108 {
3109 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3110   ;
3111   return 0;
3112 }
3113 _ACEOF
3114 # Don't try gcc -ansi; that turns off useful extensions and
3115 # breaks some systems' header files.
3116 # AIX                   -qlanglvl=ansi
3117 # Ultrix and OSF/1      -std1
3118 # HP-UX 10.20 and later -Ae
3119 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3120 # SVR4                  -Xc -D__EXTENSIONS__
3121 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3122 do
3123   CC="$ac_save_CC $ac_arg"
3124   rm -f conftest.$ac_objext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126   (eval $ac_compile) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } &&
3130          { ac_try='test -s conftest.$ac_objext'
3131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132   (eval $ac_try) 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); }; }; then
3136   ac_cv_prog_cc_stdc=$ac_arg
3137 break
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142 fi
3143 rm -f conftest.$ac_objext
3144 done
3145 rm -f conftest.$ac_ext conftest.$ac_objext
3146 CC=$ac_save_CC
3147
3148 fi
3149
3150 case "x$ac_cv_prog_cc_stdc" in
3151   x|xno)
3152     echo "$as_me:$LINENO: result: none needed" >&5
3153 echo "${ECHO_T}none needed" >&6 ;;
3154   *)
3155     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3156 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3157     CC="$CC $ac_cv_prog_cc_stdc" ;;
3158 esac
3159
3160 # Some people use a C++ compiler to compile C.  Since we use `exit',
3161 # in C++ we need to declare it.  In case someone uses the same compiler
3162 # for both compiling C and C++ we need to have the C++ compiler decide
3163 # the declaration of exit, since it's the most demanding environment.
3164 cat >conftest.$ac_ext <<_ACEOF
3165 #ifndef __cplusplus
3166   choke me
3167 #endif
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171   (eval $ac_compile) 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } &&
3175          { ac_try='test -s conftest.$ac_objext'
3176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177   (eval $ac_try) 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }; }; then
3181   for ac_declaration in \
3182    ''\
3183    '#include <stdlib.h>' \
3184    'extern "C" void std::exit (int) throw (); using std::exit;' \
3185    'extern "C" void std::exit (int); using std::exit;' \
3186    'extern "C" void exit (int) throw ();' \
3187    'extern "C" void exit (int);' \
3188    'void exit (int);'
3189 do
3190   cat >conftest.$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197 #include <stdlib.h>
3198 $ac_declaration
3199 int
3200 main ()
3201 {
3202 exit (42);
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209   (eval $ac_compile) 2>&5
3210   ac_status=$?
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); } &&
3213          { ac_try='test -s conftest.$ac_objext'
3214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215   (eval $ac_try) 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; }; then
3219   :
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 continue
3225 fi
3226 rm -f conftest.$ac_objext conftest.$ac_ext
3227   cat >conftest.$ac_ext <<_ACEOF
3228 #line $LINENO "configure"
3229 /* confdefs.h.  */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h.  */
3234 $ac_declaration
3235 int
3236 main ()
3237 {
3238 exit (42);
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245   (eval $ac_compile) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); } &&
3249          { ac_try='test -s conftest.$ac_objext'
3250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251   (eval $ac_try) 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   break
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 fi
3261 rm -f conftest.$ac_objext conftest.$ac_ext
3262 done
3263 rm -f conftest*
3264 if test -n "$ac_declaration"; then
3265   echo '#ifdef __cplusplus' >>confdefs.h
3266   echo $ac_declaration      >>confdefs.h
3267   echo '#endif'             >>confdefs.h
3268 fi
3269
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 fi
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3276 ac_ext=c
3277 ac_cpp='$CPP $CPPFLAGS'
3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281
3282 ac_ext=c
3283 ac_cpp='$CPP $CPPFLAGS'
3284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3287 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3288 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3289 # On Suns, sometimes $CPP names a directory.
3290 if test -n "$CPP" && test -d "$CPP"; then
3291   CPP=
3292 fi
3293 if test -z "$CPP"; then
3294   if test "${ac_cv_prog_CPP+set}" = set; then
3295   echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297       # Double quotes because CPP needs to be expanded
3298     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3299     do
3300       ac_preproc_ok=false
3301 for ac_c_preproc_warn_flag in '' yes
3302 do
3303   # Use a header file that comes with gcc, so configuring glibc
3304   # with a fresh cross-compiler works.
3305   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3306   # <limits.h> exists even on freestanding compilers.
3307   # On the NeXT, cc -E runs the code through the compiler's parser,
3308   # not just through cpp. "Syntax error" is here to catch this case.
3309   cat >conftest.$ac_ext <<_ACEOF
3310 #line $LINENO "configure"
3311 /* confdefs.h.  */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h.  */
3316 #ifdef __STDC__
3317 # include <limits.h>
3318 #else
3319 # include <assert.h>
3320 #endif
3321                      Syntax error
3322 _ACEOF
3323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3325   ac_status=$?
3326   grep -v '^ *+' conftest.er1 >conftest.err
3327   rm -f conftest.er1
3328   cat conftest.err >&5
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); } >/dev/null; then
3331   if test -s conftest.err; then
3332     ac_cpp_err=$ac_c_preproc_warn_flag
3333   else
3334     ac_cpp_err=
3335   fi
3336 else
3337   ac_cpp_err=yes
3338 fi
3339 if test -z "$ac_cpp_err"; then
3340   :
3341 else
3342   echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345   # Broken: fails on valid input.
3346 continue
3347 fi
3348 rm -f conftest.err conftest.$ac_ext
3349
3350   # OK, works on sane cases.  Now check whether non-existent headers
3351   # can be detected and how.
3352   cat >conftest.$ac_ext <<_ACEOF
3353 #line $LINENO "configure"
3354 /* confdefs.h.  */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h.  */
3359 #include <ac_nonexistent.h>
3360 _ACEOF
3361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363   ac_status=$?
3364   grep -v '^ *+' conftest.er1 >conftest.err
3365   rm -f conftest.er1
3366   cat conftest.err >&5
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); } >/dev/null; then
3369   if test -s conftest.err; then
3370     ac_cpp_err=$ac_c_preproc_warn_flag
3371   else
3372     ac_cpp_err=
3373   fi
3374 else
3375   ac_cpp_err=yes
3376 fi
3377 if test -z "$ac_cpp_err"; then
3378   # Broken: success on invalid input.
3379 continue
3380 else
3381   echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384   # Passes both tests.
3385 ac_preproc_ok=:
3386 break
3387 fi
3388 rm -f conftest.err conftest.$ac_ext
3389
3390 done
3391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392 rm -f conftest.err conftest.$ac_ext
3393 if $ac_preproc_ok; then
3394   break
3395 fi
3396
3397     done
3398     ac_cv_prog_CPP=$CPP
3399
3400 fi
3401   CPP=$ac_cv_prog_CPP
3402 else
3403   ac_cv_prog_CPP=$CPP
3404 fi
3405 echo "$as_me:$LINENO: result: $CPP" >&5
3406 echo "${ECHO_T}$CPP" >&6
3407 ac_preproc_ok=false
3408 for ac_c_preproc_warn_flag in '' yes
3409 do
3410   # Use a header file that comes with gcc, so configuring glibc
3411   # with a fresh cross-compiler works.
3412   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413   # <limits.h> exists even on freestanding compilers.
3414   # On the NeXT, cc -E runs the code through the compiler's parser,
3415   # not just through cpp. "Syntax error" is here to catch this case.
3416   cat >conftest.$ac_ext <<_ACEOF
3417 #line $LINENO "configure"
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #ifdef __STDC__
3424 # include <limits.h>
3425 #else
3426 # include <assert.h>
3427 #endif
3428                      Syntax error
3429 _ACEOF
3430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3432   ac_status=$?
3433   grep -v '^ *+' conftest.er1 >conftest.err
3434   rm -f conftest.er1
3435   cat conftest.err >&5
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); } >/dev/null; then
3438   if test -s conftest.err; then
3439     ac_cpp_err=$ac_c_preproc_warn_flag
3440   else
3441     ac_cpp_err=
3442   fi
3443 else
3444   ac_cpp_err=yes
3445 fi
3446 if test -z "$ac_cpp_err"; then
3447   :
3448 else
3449   echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452   # Broken: fails on valid input.
3453 continue
3454 fi
3455 rm -f conftest.err conftest.$ac_ext
3456
3457   # OK, works on sane cases.  Now check whether non-existent headers
3458   # can be detected and how.
3459   cat >conftest.$ac_ext <<_ACEOF
3460 #line $LINENO "configure"
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466 #include <ac_nonexistent.h>
3467 _ACEOF
3468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3470   ac_status=$?
3471   grep -v '^ *+' conftest.er1 >conftest.err
3472   rm -f conftest.er1
3473   cat conftest.err >&5
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } >/dev/null; then
3476   if test -s conftest.err; then
3477     ac_cpp_err=$ac_c_preproc_warn_flag
3478   else
3479     ac_cpp_err=
3480   fi
3481 else
3482   ac_cpp_err=yes
3483 fi
3484 if test -z "$ac_cpp_err"; then
3485   # Broken: success on invalid input.
3486 continue
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491   # Passes both tests.
3492 ac_preproc_ok=:
3493 break
3494 fi
3495 rm -f conftest.err conftest.$ac_ext
3496
3497 done
3498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3499 rm -f conftest.err conftest.$ac_ext
3500 if $ac_preproc_ok; then
3501   :
3502 else
3503   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3504 See \`config.log' for more details." >&5
3505 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3506 See \`config.log' for more details." >&2;}
3507    { (exit 1); exit 1; }; }
3508 fi
3509
3510 ac_ext=c
3511 ac_cpp='$CPP $CPPFLAGS'
3512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515
3516
3517 if test "$GCC" != "yes"
3518 then
3519         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3520 echo "$as_me: error: gcc required but not found" >&2;}
3521    { (exit 1); exit 1; }; }
3522 fi
3523
3524 if test "$GXX" != "yes"
3525 then
3526         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3527 echo "$as_me: error: g++ required but not found" >&2;}
3528    { (exit 1); exit 1; }; }
3529 fi
3530
3531 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3532 if test "$gccmajor" -lt "3"
3533 then
3534         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3535 echo "$as_me: error: gcc 3.x required" >&2;}
3536    { (exit 1); exit 1; }; }
3537 fi
3538
3539  echo "$as_me:$LINENO: checking for GNU make" >&5
3540 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3541 if test "${_cv_gnu_make_command+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   _cv_gnu_make_command='' ;
3545                 for a in "$MAKE" make gmake gnumake ; do
3546                         if test -z "$a" ; then continue ; fi ;
3547                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3548                                 _cv_gnu_make_command=$a ;
3549                                 break;
3550                         fi
3551                 done ;
3552
3553 fi
3554 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3555 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3556         if test  "x$_cv_gnu_make_command" != "x"  ; then
3557                 ifGNUmake='' ;
3558         else
3559                 ifGNUmake='#' ;
3560                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3561 echo "${ECHO_T}\"Not found\"" >&6;
3562         fi
3563
3564
3565 if test -z "$_cv_gnu_make_command"
3566 then
3567         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3568 echo "$as_me: error: GNU Make required but not found" >&2;}
3569    { (exit 1); exit 1; }; }
3570 fi
3571
3572
3573 echo "$as_me:$LINENO: checking " >&5
3574 echo $ECHO_N "checking ... $ECHO_C" >&6
3575 if test "${ac_cv_has_flex+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   for ac_prog in flex lex
3579 do
3580   # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_LEX+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   if test -n "$LEX"; then
3588   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_prog_LEX="$ac_prog"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604 fi
3605 fi
3606 LEX=$ac_cv_prog_LEX
3607 if test -n "$LEX"; then
3608   echo "$as_me:$LINENO: result: $LEX" >&5
3609 echo "${ECHO_T}$LEX" >&6
3610 else
3611   echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3613 fi
3614
3615   test -n "$LEX" && break
3616 done
3617 test -n "$LEX" || LEX=":"
3618
3619 if test -z "$LEXLIB"
3620 then
3621   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3622 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3623 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   ac_check_lib_save_LIBS=$LIBS
3627 LIBS="-lfl  $LIBS"
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635
3636 /* Override any gcc2 internal prototype to avoid an error.  */
3637 #ifdef __cplusplus
3638 extern "C"
3639 #endif
3640 /* We use char because int might match the return type of a gcc2
3641    builtin and then its argument prototype would still apply.  */
3642 char yywrap ();
3643 int
3644 main ()
3645 {
3646 yywrap ();
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 rm -f conftest.$ac_objext conftest$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653   (eval $ac_link) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); } &&
3657          { ac_try='test -s conftest$ac_exeext'
3658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659   (eval $ac_try) 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); }; }; then
3663   ac_cv_lib_fl_yywrap=yes
3664 else
3665   echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668 ac_cv_lib_fl_yywrap=no
3669 fi
3670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3671 LIBS=$ac_check_lib_save_LIBS
3672 fi
3673 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3674 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3675 if test $ac_cv_lib_fl_yywrap = yes; then
3676   LEXLIB="-lfl"
3677 else
3678   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3679 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3680 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3681   echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683   ac_check_lib_save_LIBS=$LIBS
3684 LIBS="-ll  $LIBS"
3685 cat >conftest.$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692
3693 /* Override any gcc2 internal prototype to avoid an error.  */
3694 #ifdef __cplusplus
3695 extern "C"
3696 #endif
3697 /* We use char because int might match the return type of a gcc2
3698    builtin and then its argument prototype would still apply.  */
3699 char yywrap ();
3700 int
3701 main ()
3702 {
3703 yywrap ();
3704   ;
3705   return 0;
3706 }
3707 _ACEOF
3708 rm -f conftest.$ac_objext conftest$ac_exeext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710   (eval $ac_link) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } &&
3714          { ac_try='test -s conftest$ac_exeext'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; }; then
3720   ac_cv_lib_l_yywrap=yes
3721 else
3722   echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 ac_cv_lib_l_yywrap=no
3726 fi
3727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3728 LIBS=$ac_check_lib_save_LIBS
3729 fi
3730 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3731 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3732 if test $ac_cv_lib_l_yywrap = yes; then
3733   LEXLIB="-ll"
3734 fi
3735
3736 fi
3737
3738 fi
3739
3740 if test "x$LEX" != "x:"; then
3741   echo "$as_me:$LINENO: checking lex output file root" >&5
3742 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3743 if test "${ac_cv_prog_lex_root+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   # The minimal lex program is just a single line: %%.  But some broken lexes
3747 # (Solaris, I think it was) want two %% lines, so accommodate them.
3748 cat >conftest.l <<_ACEOF
3749 %%
3750 %%
3751 _ACEOF
3752 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3753   (eval $LEX conftest.l) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }
3757 if test -f lex.yy.c; then
3758   ac_cv_prog_lex_root=lex.yy
3759 elif test -f lexyy.c; then
3760   ac_cv_prog_lex_root=lexyy
3761 else
3762   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3763 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3764    { (exit 1); exit 1; }; }
3765 fi
3766 fi
3767 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3768 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3769 rm -f conftest.l
3770 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3771
3772 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3773 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3774 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   # POSIX says lex can declare yytext either as a pointer or an array; the
3778 # default is implementation-dependent. Figure out which it is, since
3779 # not all implementations provide the %pointer and %array declarations.
3780 ac_cv_prog_lex_yytext_pointer=no
3781 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3782 ac_save_LIBS=$LIBS
3783 LIBS="$LIBS $LEXLIB"
3784 cat >conftest.$ac_ext <<_ACEOF
3785 `cat $LEX_OUTPUT_ROOT.c`
3786 _ACEOF
3787 rm -f conftest.$ac_objext conftest$ac_exeext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789   (eval $ac_link) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); } &&
3793          { ac_try='test -s conftest$ac_exeext'
3794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795   (eval $ac_try) 2>&5
3796   ac_status=$?
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); }; }; then
3799   ac_cv_prog_lex_yytext_pointer=yes
3800 else
3801   echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 fi
3805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3806 LIBS=$ac_save_LIBS
3807 rm -f "${LEX_OUTPUT_ROOT}.c"
3808
3809 fi
3810 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3811 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3812 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3813
3814 cat >>confdefs.h <<\_ACEOF
3815 #define YYTEXT_POINTER 1
3816 _ACEOF
3817
3818 fi
3819
3820 fi
3821
3822 fi
3823 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3824 echo "${ECHO_T}$ac_cv_has_flex" >&6
3825 if test "$LEX" != "flex"; then
3826   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3827 echo "$as_me: error: flex not found but required" >&2;}
3828    { (exit 1); exit 1; }; }
3829 fi
3830
3831 echo "$as_me:$LINENO: checking " >&5
3832 echo $ECHO_N "checking ... $ECHO_C" >&6
3833 if test "${ac_cv_has_bison+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   for ac_prog in 'bison -y' byacc
3837 do
3838   # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842 if test "${ac_cv_prog_YACC+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   if test -n "$YACC"; then
3846   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851   IFS=$as_save_IFS
3852   test -z "$as_dir" && as_dir=.
3853   for ac_exec_ext in '' $ac_executable_extensions; do
3854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855     ac_cv_prog_YACC="$ac_prog"
3856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857     break 2
3858   fi
3859 done
3860 done
3861
3862 fi
3863 fi
3864 YACC=$ac_cv_prog_YACC
3865 if test -n "$YACC"; then
3866   echo "$as_me:$LINENO: result: $YACC" >&5
3867 echo "${ECHO_T}$YACC" >&6
3868 else
3869   echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3871 fi
3872
3873   test -n "$YACC" && break
3874 done
3875 test -n "$YACC" || YACC="yacc"
3876
3877
3878 fi
3879 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3880 echo "${ECHO_T}$ac_cv_has_bison" >&6
3881 if test "$YACC" != "bison -y"; then
3882   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3883 echo "$as_me: error: bison not found but required" >&2;}
3884    { (exit 1); exit 1; }; }
3885 else
3886   YACC=bison
3887
3888 fi
3889
3890
3891 # Check whether --enable-shared or --disable-shared was given.
3892 if test "${enable_shared+set}" = set; then
3893   enableval="$enable_shared"
3894   p=${PACKAGE-default}
3895     case $enableval in
3896     yes) enable_shared=yes ;;
3897     no) enable_shared=no ;;
3898     *)
3899       enable_shared=no
3900       # Look at the argument we got.  We use all the common list separators.
3901       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3902       for pkg in $enableval; do
3903         IFS="$lt_save_ifs"
3904         if test "X$pkg" = "X$p"; then
3905           enable_shared=yes
3906         fi
3907       done
3908       IFS="$lt_save_ifs"
3909       ;;
3910     esac
3911 else
3912   enable_shared=yes
3913 fi;
3914
3915 # Check whether --enable-static or --disable-static was given.
3916 if test "${enable_static+set}" = set; then
3917   enableval="$enable_static"
3918   p=${PACKAGE-default}
3919     case $enableval in
3920     yes) enable_static=yes ;;
3921     no) enable_static=no ;;
3922     *)
3923      enable_static=no
3924       # Look at the argument we got.  We use all the common list separators.
3925       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3926       for pkg in $enableval; do
3927         IFS="$lt_save_ifs"
3928         if test "X$pkg" = "X$p"; then
3929           enable_static=yes
3930         fi
3931       done
3932       IFS="$lt_save_ifs"
3933       ;;
3934     esac
3935 else
3936   enable_static=yes
3937 fi;
3938
3939 # Check whether --enable-fast-install or --disable-fast-install was given.
3940 if test "${enable_fast_install+set}" = set; then
3941   enableval="$enable_fast_install"
3942   p=${PACKAGE-default}
3943     case $enableval in
3944     yes) enable_fast_install=yes ;;
3945     no) enable_fast_install=no ;;
3946     *)
3947       enable_fast_install=no
3948       # Look at the argument we got.  We use all the common list separators.
3949       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3950       for pkg in $enableval; do
3951         IFS="$lt_save_ifs"
3952         if test "X$pkg" = "X$p"; then
3953           enable_fast_install=yes
3954         fi
3955       done
3956       IFS="$lt_save_ifs"
3957       ;;
3958     esac
3959 else
3960   enable_fast_install=yes
3961 fi;
3962
3963 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3964 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3965 if test "${lt_cv_path_SED+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   # Loop through the user's path and test for sed and gsed.
3969 # Then use that list of sed's as ones to test for truncation.
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975   for lt_ac_prog in sed gsed; do
3976     for ac_exec_ext in '' $ac_executable_extensions; do
3977       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3978         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3979       fi
3980     done
3981   done
3982 done
3983 lt_ac_max=0
3984 lt_ac_count=0
3985 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3986 # along with /bin/sed that truncates output.
3987 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3988   test ! -f $lt_ac_sed && break
3989   cat /dev/null > conftest.in
3990   lt_ac_count=0
3991   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3992   # Check for GNU sed and select it if it is found.
3993   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3994     lt_cv_path_SED=$lt_ac_sed
3995     break
3996   fi
3997   while true; do
3998     cat conftest.in conftest.in >conftest.tmp
3999     mv conftest.tmp conftest.in
4000     cp conftest.in conftest.nl
4001     echo >>conftest.nl
4002     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4003     cmp -s conftest.out conftest.nl || break
4004     # 10000 chars as input seems more than enough
4005     test $lt_ac_count -gt 10 && break
4006     lt_ac_count=`expr $lt_ac_count + 1`
4007     if test $lt_ac_count -gt $lt_ac_max; then
4008       lt_ac_max=$lt_ac_count
4009       lt_cv_path_SED=$lt_ac_sed
4010     fi
4011   done
4012 done
4013 SED=$lt_cv_path_SED
4014
4015 fi
4016
4017 echo "$as_me:$LINENO: result: $SED" >&5
4018 echo "${ECHO_T}$SED" >&6
4019
4020 echo "$as_me:$LINENO: checking for egrep" >&5
4021 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4022 if test "${ac_cv_prog_egrep+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4026     then ac_cv_prog_egrep='grep -E'
4027     else ac_cv_prog_egrep='egrep'
4028     fi
4029 fi
4030 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4031 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4032  EGREP=$ac_cv_prog_egrep
4033
4034
4035
4036 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4037 if test "${with_gnu_ld+set}" = set; then
4038   withval="$with_gnu_ld"
4039   test "$withval" = no || with_gnu_ld=yes
4040 else
4041   with_gnu_ld=no
4042 fi;
4043 ac_prog=ld
4044 if test "$GCC" = yes; then
4045   # Check if gcc -print-prog-name=ld gives a path.
4046   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4047 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4048   case $host in
4049   *-*-mingw*)
4050     # gcc leaves a trailing carriage return which upsets mingw
4051     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4052   *)
4053     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4054   esac
4055   case $ac_prog in
4056     # Accept absolute paths.
4057     [\\/]* | ?:[\\/]*)
4058       re_direlt='/[^/][^/]*/\.\./'
4059       # Canonicalize the path of ld
4060       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4061       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4062         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4063       done
4064       test -z "$LD" && LD="$ac_prog"
4065       ;;
4066   "")
4067     # If it fails, then pretend we aren't using GCC.
4068     ac_prog=ld
4069     ;;
4070   *)
4071     # If it is relative, then search for the first ld in PATH.
4072     with_gnu_ld=unknown
4073     ;;
4074   esac
4075 elif test "$with_gnu_ld" = yes; then
4076   echo "$as_me:$LINENO: checking for GNU ld" >&5
4077 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4078 else
4079   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4080 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4081 fi
4082 if test "${lt_cv_path_LD+set}" = set; then
4083   echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085   if test -z "$LD"; then
4086   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4087   for ac_dir in $PATH; do
4088     IFS="$lt_save_ifs"
4089     test -z "$ac_dir" && ac_dir=.
4090     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4091       lt_cv_path_LD="$ac_dir/$ac_prog"
4092       # Check to see if the program is GNU ld.  I'd rather use --version,
4093       # but apparently some GNU ld's only accept -v.
4094       # Break only if it was the GNU/non-GNU ld that we prefer.
4095       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4096       *GNU* | *'with BFD'*)
4097         test "$with_gnu_ld" != no && break
4098         ;;
4099       *)
4100         test "$with_gnu_ld" != yes && break
4101         ;;
4102       esac
4103     fi
4104   done
4105   IFS="$lt_save_ifs"
4106 else
4107   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4108 fi
4109 fi
4110
4111 LD="$lt_cv_path_LD"
4112 if test -n "$LD"; then
4113   echo "$as_me:$LINENO: result: $LD" >&5
4114 echo "${ECHO_T}$LD" >&6
4115 else
4116   echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4118 fi
4119 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4120 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4121    { (exit 1); exit 1; }; }
4122 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4123 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4124 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4128 case `"$LD" -v 2>&1 </dev/null` in
4129 *GNU* | *'with BFD'*)
4130   lt_cv_prog_gnu_ld=yes
4131   ;;
4132 *)
4133   lt_cv_prog_gnu_ld=no
4134   ;;
4135 esac
4136 fi
4137 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4138 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4139 with_gnu_ld=$lt_cv_prog_gnu_ld
4140
4141
4142 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4143 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4144 if test "${lt_cv_ld_reload_flag+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   lt_cv_ld_reload_flag='-r'
4148 fi
4149 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4150 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4151 reload_flag=$lt_cv_ld_reload_flag
4152 case $reload_flag in
4153 "" | " "*) ;;
4154 *) reload_flag=" $reload_flag" ;;
4155 esac
4156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4157
4158 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4159 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4160 if test "${lt_cv_path_NM+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   if test -n "$NM"; then
4164   # Let the user override the test.
4165   lt_cv_path_NM="$NM"
4166 else
4167   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4168   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4169     IFS="$lt_save_ifs"
4170     test -z "$ac_dir" && ac_dir=.
4171     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4172     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4173       # Check to see if the nm accepts a BSD-compat flag.
4174       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4175       #   nm: unknown option "B" ignored
4176       # Tru64's nm complains that /dev/null is an invalid object file
4177       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4178       */dev/null* | *'Invalid file or object type'*)
4179         lt_cv_path_NM="$tmp_nm -B"
4180         break
4181         ;;
4182       *)
4183         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4184         */dev/null*)
4185           lt_cv_path_NM="$tmp_nm -p"
4186           break
4187           ;;
4188         *)
4189           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4190           continue # so that we can try to find one that supports BSD flags
4191           ;;
4192         esac
4193       esac
4194     fi
4195   done
4196   IFS="$lt_save_ifs"
4197   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4198 fi
4199 fi
4200 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4201 echo "${ECHO_T}$lt_cv_path_NM" >&6
4202 NM="$lt_cv_path_NM"
4203
4204 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4205 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4206 LN_S=$as_ln_s
4207 if test "$LN_S" = "ln -s"; then
4208   echo "$as_me:$LINENO: result: yes" >&5
4209 echo "${ECHO_T}yes" >&6
4210 else
4211   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4212 echo "${ECHO_T}no, using $LN_S" >&6
4213 fi
4214
4215 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4216 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4217 if test "${lt_cv_deplibs_check_method+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   lt_cv_file_magic_cmd='$MAGIC_CMD'
4221 lt_cv_file_magic_test_file=
4222 lt_cv_deplibs_check_method='unknown'
4223 # Need to set the preceding variable on all platforms that support
4224 # interlibrary dependencies.
4225 # 'none' -- dependencies not supported.
4226 # `unknown' -- same as none, but documents that we really don't know.
4227 # 'pass_all' -- all dependencies passed with no checks.
4228 # 'test_compile' -- check by making test program.
4229 # 'file_magic [[regex]]' -- check by looking for files in library path
4230 # which responds to the $file_magic_cmd with a given extended regex.
4231 # If you have `file' or equivalent on your system and you're not sure
4232 # whether `pass_all' will *always* work, you probably want this one.
4233
4234 case $host_os in
4235 aix4* | aix5*)
4236   lt_cv_deplibs_check_method=pass_all
4237   ;;
4238
4239 beos*)
4240   lt_cv_deplibs_check_method=pass_all
4241   ;;
4242
4243 bsdi4*)
4244   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4245   lt_cv_file_magic_cmd='/usr/bin/file -L'
4246   lt_cv_file_magic_test_file=/shlib/libc.so
4247   ;;
4248
4249 cygwin* | mingw* | pw32*)
4250   # win32_libid is a shell function defined in ltmain.sh
4251   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4252   lt_cv_file_magic_cmd='win32_libid'
4253   ;;
4254
4255 darwin* | rhapsody*)
4256   # this will be overwritten by pass_all, but leave it in just in case
4257   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4258   lt_cv_file_magic_cmd='/usr/bin/file -L'
4259   case "$host_os" in
4260   rhapsody* | darwin1.[012])
4261     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4262     ;;
4263   *) # Darwin 1.3 on
4264     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4265     ;;
4266   esac
4267   lt_cv_deplibs_check_method=pass_all
4268   ;;
4269
4270 freebsd*)
4271   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4272     case $host_cpu in
4273     i*86 )
4274       # Not sure whether the presence of OpenBSD here was a mistake.
4275       # Let's accept both of them until this is cleared up.
4276       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4277       lt_cv_file_magic_cmd=/usr/bin/file
4278       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4279       ;;
4280     esac
4281   else
4282     lt_cv_deplibs_check_method=pass_all
4283   fi
4284   ;;
4285
4286 gnu*)
4287   lt_cv_deplibs_check_method=pass_all
4288   ;;
4289
4290 hpux10.20* | hpux11*)
4291   lt_cv_file_magic_cmd=/usr/bin/file
4292   case "$host_cpu" in
4293   ia64*)
4294     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4295     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4296     ;;
4297   hppa*64*)
4298     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]'
4299     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4300     ;;
4301   *)
4302     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4303     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4304     ;;
4305   esac
4306   ;;
4307
4308 irix5* | irix6* | nonstopux*)
4309   case $host_os in
4310   irix5* | nonstopux*)
4311     # this will be overridden with pass_all, but let us keep it just in case
4312     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4313     ;;
4314   *)
4315     case $LD in
4316     *-32|*"-32 ") libmagic=32-bit;;
4317     *-n32|*"-n32 ") libmagic=N32;;
4318     *-64|*"-64 ") libmagic=64-bit;;
4319     *) libmagic=never-match;;
4320     esac
4321     # this will be overridden with pass_all, but let us keep it just in case
4322     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4323     ;;
4324   esac
4325   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4326   lt_cv_deplibs_check_method=pass_all
4327   ;;
4328
4329 # This must be Linux ELF.
4330 linux*)
4331   case $host_cpu in
4332   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4333     lt_cv_deplibs_check_method=pass_all ;;
4334   *)
4335     # glibc up to 2.1.1 does not perform some relocations on ARM
4336     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4337   esac
4338   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4339   ;;
4340
4341 netbsd*)
4342   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4343     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4344   else
4345     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4346   fi
4347   ;;
4348
4349 newos6*)
4350   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4351   lt_cv_file_magic_cmd=/usr/bin/file
4352   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4353   ;;
4354
4355 nto-qnx)
4356   lt_cv_deplibs_check_method=unknown
4357   ;;
4358
4359 openbsd*)
4360   lt_cv_file_magic_cmd=/usr/bin/file
4361   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4362   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4363     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4364   else
4365     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4366   fi
4367   ;;
4368
4369 osf3* | osf4* | osf5*)
4370   # this will be overridden with pass_all, but let us keep it just in case
4371   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4372   lt_cv_file_magic_test_file=/shlib/libc.so
4373   lt_cv_deplibs_check_method=pass_all
4374   ;;
4375
4376 sco3.2v5*)
4377   lt_cv_deplibs_check_method=pass_all
4378   ;;
4379
4380 solaris*)
4381   lt_cv_deplibs_check_method=pass_all
4382   lt_cv_file_magic_test_file=/lib/libc.so
4383   ;;
4384
4385 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4386   case $host_vendor in
4387   motorola)
4388     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]'
4389     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4390     ;;
4391   ncr)
4392     lt_cv_deplibs_check_method=pass_all
4393     ;;
4394   sequent)
4395     lt_cv_file_magic_cmd='/bin/file'
4396     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4397     ;;
4398   sni)
4399     lt_cv_file_magic_cmd='/bin/file'
4400     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4401     lt_cv_file_magic_test_file=/lib/libc.so
4402     ;;
4403   siemens)
4404     lt_cv_deplibs_check_method=pass_all
4405     ;;
4406   esac
4407   ;;
4408
4409 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4410   lt_cv_deplibs_check_method=pass_all
4411   ;;
4412 esac
4413
4414 fi
4415 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4416 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4417 file_magic_cmd=$lt_cv_file_magic_cmd
4418 deplibs_check_method=$lt_cv_deplibs_check_method
4419 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4420
4421
4422
4423
4424 # If no C compiler was specified, use CC.
4425 LTCC=${LTCC-"$CC"}
4426
4427 # Allow CC to be a program name with arguments.
4428 compiler=$CC
4429
4430 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4431 if test "${enable_libtool_lock+set}" = set; then
4432   enableval="$enable_libtool_lock"
4433
4434 fi;
4435 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4436
4437 # Some flags need to be propagated to the compiler or linker for good
4438 # libtool support.
4439 case $host in
4440 ia64-*-hpux*)
4441   # Find out which ABI we are using.
4442   echo 'int i;' > conftest.$ac_ext
4443   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444   (eval $ac_compile) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; then
4448     case `/usr/bin/file conftest.$ac_objext` in
4449     *ELF-32*)
4450       HPUX_IA64_MODE="32"
4451       ;;
4452     *ELF-64*)
4453       HPUX_IA64_MODE="64"
4454       ;;
4455     esac
4456   fi
4457   rm -rf conftest*
4458   ;;
4459 *-*-irix6*)
4460   # Find out which ABI we are using.
4461   echo '#line 4461 "configure"' > conftest.$ac_ext
4462   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463   (eval $ac_compile) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; then
4467    if test "$lt_cv_prog_gnu_ld" = yes; then
4468     case `/usr/bin/file conftest.$ac_objext` in
4469     *32-bit*)
4470       LD="${LD-ld} -melf32bsmip"
4471       ;;
4472     *N32*)
4473       LD="${LD-ld} -melf32bmipn32"
4474       ;;
4475     *64-bit*)
4476       LD="${LD-ld} -melf64bmip"
4477       ;;
4478     esac
4479    else
4480     case `/usr/bin/file conftest.$ac_objext` in
4481     *32-bit*)
4482       LD="${LD-ld} -32"
4483       ;;
4484     *N32*)
4485       LD="${LD-ld} -n32"
4486       ;;
4487     *64-bit*)
4488       LD="${LD-ld} -64"
4489       ;;
4490     esac
4491    fi
4492   fi
4493   rm -rf conftest*
4494   ;;
4495
4496 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4497   # Find out which ABI we are using.
4498   echo 'int i;' > conftest.$ac_ext
4499   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500   (eval $ac_compile) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; then
4504     case "`/usr/bin/file conftest.o`" in
4505     *32-bit*)
4506       case $host in
4507         x86_64-*linux*)
4508           LD="${LD-ld} -m elf_i386"
4509           ;;
4510         ppc64-*linux*)
4511           LD="${LD-ld} -m elf32ppclinux"
4512           ;;
4513         s390x-*linux*)
4514           LD="${LD-ld} -m elf_s390"
4515           ;;
4516         sparc64-*linux*)
4517           LD="${LD-ld} -m elf32_sparc"
4518           ;;
4519       esac
4520       ;;
4521     *64-bit*)
4522       case $host in
4523         x86_64-*linux*)
4524           LD="${LD-ld} -m elf_x86_64"
4525           ;;
4526         ppc*-*linux*|powerpc*-*linux*)
4527           LD="${LD-ld} -m elf64ppc"
4528           ;;
4529         s390*-*linux*)
4530           LD="${LD-ld} -m elf64_s390"
4531           ;;
4532         sparc*-*linux*)
4533           LD="${LD-ld} -m elf64_sparc"
4534           ;;
4535       esac
4536       ;;
4537     esac
4538   fi
4539   rm -rf conftest*
4540   ;;
4541
4542 *-*-sco3.2v5*)
4543   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4544   SAVE_CFLAGS="$CFLAGS"
4545   CFLAGS="$CFLAGS -belf"
4546   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4547 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4548 if test "${lt_cv_cc_needs_belf+set}" = set; then
4549   echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551   ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556
4557      cat >conftest.$ac_ext <<_ACEOF
4558 #line $LINENO "configure"
4559 /* confdefs.h.  */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h.  */
4564
4565 int
4566 main ()
4567 {
4568
4569   ;
4570   return 0;
4571 }
4572 _ACEOF
4573 rm -f conftest.$ac_objext conftest$ac_exeext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4575   (eval $ac_link) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); } &&
4579          { ac_try='test -s conftest$ac_exeext'
4580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581   (eval $ac_try) 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }; }; then
4585   lt_cv_cc_needs_belf=yes
4586 else
4587   echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590 lt_cv_cc_needs_belf=no
4591 fi
4592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4593      ac_ext=c
4594 ac_cpp='$CPP $CPPFLAGS'
4595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598
4599 fi
4600 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4601 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4602   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4603     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4604     CFLAGS="$SAVE_CFLAGS"
4605   fi
4606   ;;
4607
4608 esac
4609
4610 need_locks="$enable_libtool_lock"
4611
4612
4613
4614 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4615 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4616 if test "${ac_cv_header_stdc+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   cat >conftest.$ac_ext <<_ACEOF
4620 #line $LINENO "configure"
4621 /* confdefs.h.  */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h.  */
4626 #include <stdlib.h>
4627 #include <stdarg.h>
4628 #include <string.h>
4629 #include <float.h>
4630
4631 int
4632 main ()
4633 {
4634
4635   ;
4636   return 0;
4637 }
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641   (eval $ac_compile) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } &&
4645          { ac_try='test -s conftest.$ac_objext'
4646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647   (eval $ac_try) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; }; then
4651   ac_cv_header_stdc=yes
4652 else
4653   echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4655
4656 ac_cv_header_stdc=no
4657 fi
4658 rm -f conftest.$ac_objext conftest.$ac_ext
4659
4660 if test $ac_cv_header_stdc = yes; then
4661   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4662   cat >conftest.$ac_ext <<_ACEOF
4663 #line $LINENO "configure"
4664 /* confdefs.h.  */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h.  */
4669 #include <string.h>
4670
4671 _ACEOF
4672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4673   $EGREP "memchr" >/dev/null 2>&1; then
4674   :
4675 else
4676   ac_cv_header_stdc=no
4677 fi
4678 rm -f conftest*
4679
4680 fi
4681
4682 if test $ac_cv_header_stdc = yes; then
4683   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4684   cat >conftest.$ac_ext <<_ACEOF
4685 #line $LINENO "configure"
4686 /* confdefs.h.  */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h.  */
4691 #include <stdlib.h>
4692
4693 _ACEOF
4694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4695   $EGREP "free" >/dev/null 2>&1; then
4696   :
4697 else
4698   ac_cv_header_stdc=no
4699 fi
4700 rm -f conftest*
4701
4702 fi
4703
4704 if test $ac_cv_header_stdc = yes; then
4705   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4706   if test "$cross_compiling" = yes; then
4707   :
4708 else
4709   cat >conftest.$ac_ext <<_ACEOF
4710 #line $LINENO "configure"
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716 #include <ctype.h>
4717 #if ((' ' & 0x0FF) == 0x020)
4718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4720 #else
4721 # define ISLOWER(c) \
4722                    (('a' <= (c) && (c) <= 'i') \
4723                      || ('j' <= (c) && (c) <= 'r') \
4724                      || ('s' <= (c) && (c) <= 'z'))
4725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4726 #endif
4727
4728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4729 int
4730 main ()
4731 {
4732   int i;
4733   for (i = 0; i < 256; i++)
4734     if (XOR (islower (i), ISLOWER (i))
4735         || toupper (i) != TOUPPER (i))
4736       exit(2);
4737   exit (0);
4738 }
4739 _ACEOF
4740 rm -f conftest$ac_exeext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4742   (eval $ac_link) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747   (eval $ac_try) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }; }; then
4751   :
4752 else
4753   echo "$as_me: program exited with status $ac_status" >&5
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757 ( exit $ac_status )
4758 ac_cv_header_stdc=no
4759 fi
4760 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4761 fi
4762 fi
4763 fi
4764 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4765 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4766 if test $ac_cv_header_stdc = yes; then
4767
4768 cat >>confdefs.h <<\_ACEOF
4769 #define STDC_HEADERS 1
4770 _ACEOF
4771
4772 fi
4773
4774 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4785                   inttypes.h stdint.h unistd.h
4786 do
4787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4788 echo "$as_me:$LINENO: checking for $ac_header" >&5
4789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793   cat >conftest.$ac_ext <<_ACEOF
4794 #line $LINENO "configure"
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 $ac_includes_default
4801
4802 #include <$ac_header>
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806   (eval $ac_compile) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); } &&
4810          { ac_try='test -s conftest.$ac_objext'
4811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812   (eval $ac_try) 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); }; }; then
4816   eval "$as_ac_Header=yes"
4817 else
4818   echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 eval "$as_ac_Header=no"
4822 fi
4823 rm -f conftest.$ac_objext conftest.$ac_ext
4824 fi
4825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4828   cat >>confdefs.h <<_ACEOF
4829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4830 _ACEOF
4831
4832 fi
4833
4834 done
4835
4836
4837
4838 for ac_header in dlfcn.h
4839 do
4840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4842   echo "$as_me:$LINENO: checking for $ac_header" >&5
4843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4845   echo $ECHO_N "(cached) $ECHO_C" >&6
4846 fi
4847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4849 else
4850   # Is the header compilable?
4851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 /* confdefs.h.  */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h.  */
4860 $ac_includes_default
4861 #include <$ac_header>
4862 _ACEOF
4863 rm -f conftest.$ac_objext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4865   (eval $ac_compile) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); } &&
4869          { ac_try='test -s conftest.$ac_objext'
4870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871   (eval $ac_try) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); }; }; then
4875   ac_header_compiler=yes
4876 else
4877   echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4879
4880 ac_header_compiler=no
4881 fi
4882 rm -f conftest.$ac_objext conftest.$ac_ext
4883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4884 echo "${ECHO_T}$ac_header_compiler" >&6
4885
4886 # Is the header present?
4887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4889 cat >conftest.$ac_ext <<_ACEOF
4890 #line $LINENO "configure"
4891 /* confdefs.h.  */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h.  */
4896 #include <$ac_header>
4897 _ACEOF
4898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4900   ac_status=$?
4901   grep -v '^ *+' conftest.er1 >conftest.err
4902   rm -f conftest.er1
4903   cat conftest.err >&5
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); } >/dev/null; then
4906   if test -s conftest.err; then
4907     ac_cpp_err=$ac_c_preproc_warn_flag
4908   else
4909     ac_cpp_err=
4910   fi
4911 else
4912   ac_cpp_err=yes
4913 fi
4914 if test -z "$ac_cpp_err"; then
4915   ac_header_preproc=yes
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920   ac_header_preproc=no
4921 fi
4922 rm -f conftest.err conftest.$ac_ext
4923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4924 echo "${ECHO_T}$ac_header_preproc" >&6
4925
4926 # So?  What about this header?
4927 case $ac_header_compiler:$ac_header_preproc in
4928   yes:no )
4929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4933     (
4934       cat <<\_ASBOX
4935 ## ------------------------------------ ##
4936 ## Report this to bug-autoconf@gnu.org. ##
4937 ## ------------------------------------ ##
4938 _ASBOX
4939     ) |
4940       sed "s/^/$as_me: WARNING:     /" >&2
4941     ;;
4942   no:yes )
4943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4945     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4949     (
4950       cat <<\_ASBOX
4951 ## ------------------------------------ ##
4952 ## Report this to bug-autoconf@gnu.org. ##
4953 ## ------------------------------------ ##
4954 _ASBOX
4955     ) |
4956       sed "s/^/$as_me: WARNING:     /" >&2
4957     ;;
4958 esac
4959 echo "$as_me:$LINENO: checking for $ac_header" >&5
4960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   eval "$as_ac_Header=$ac_header_preproc"
4965 fi
4966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4968
4969 fi
4970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4971   cat >>confdefs.h <<_ACEOF
4972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4973 _ACEOF
4974
4975 fi
4976
4977 done
4978
4979 ac_ext=cc
4980 ac_cpp='$CXXCPP $CPPFLAGS'
4981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4984 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4985 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4986 if test -z "$CXXCPP"; then
4987   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990       # Double quotes because CXXCPP needs to be expanded
4991     for CXXCPP in "$CXX -E" "/lib/cpp"
4992     do
4993       ac_preproc_ok=false
4994 for ac_cxx_preproc_warn_flag in '' yes
4995 do
4996   # Use a header file that comes with gcc, so configuring glibc
4997   # with a fresh cross-compiler works.
4998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4999   # <limits.h> exists even on freestanding compilers.
5000   # On the NeXT, cc -E runs the code through the compiler's parser,
5001   # not just through cpp. "Syntax error" is here to catch this case.
5002   cat >conftest.$ac_ext <<_ACEOF
5003 #line $LINENO "configure"
5004 /* confdefs.h.  */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h.  */
5009 #ifdef __STDC__
5010 # include <limits.h>
5011 #else
5012 # include <assert.h>
5013 #endif
5014                      Syntax error
5015 _ACEOF
5016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5018   ac_status=$?
5019   grep -v '^ *+' conftest.er1 >conftest.err
5020   rm -f conftest.er1
5021   cat conftest.err >&5
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); } >/dev/null; then
5024   if test -s conftest.err; then
5025     ac_cpp_err=$ac_cxx_preproc_warn_flag
5026   else
5027     ac_cpp_err=
5028   fi
5029 else
5030   ac_cpp_err=yes
5031 fi
5032 if test -z "$ac_cpp_err"; then
5033   :
5034 else
5035   echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5037
5038   # Broken: fails on valid input.
5039 continue
5040 fi
5041 rm -f conftest.err conftest.$ac_ext
5042
5043   # OK, works on sane cases.  Now check whether non-existent headers
5044   # can be detected and how.
5045   cat >conftest.$ac_ext <<_ACEOF
5046 #line $LINENO "configure"
5047 /* confdefs.h.  */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h.  */
5052 #include <ac_nonexistent.h>
5053 _ACEOF
5054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5056   ac_status=$?
5057   grep -v '^ *+' conftest.er1 >conftest.err
5058   rm -f conftest.er1
5059   cat conftest.err >&5
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); } >/dev/null; then
5062   if test -s conftest.err; then
5063     ac_cpp_err=$ac_cxx_preproc_warn_flag
5064   else
5065     ac_cpp_err=
5066   fi
5067 else
5068   ac_cpp_err=yes
5069 fi
5070 if test -z "$ac_cpp_err"; then
5071   # Broken: success on invalid input.
5072 continue
5073 else
5074   echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077   # Passes both tests.
5078 ac_preproc_ok=:
5079 break
5080 fi
5081 rm -f conftest.err conftest.$ac_ext
5082
5083 done
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.$ac_ext
5086 if $ac_preproc_ok; then
5087   break
5088 fi
5089
5090     done
5091     ac_cv_prog_CXXCPP=$CXXCPP
5092
5093 fi
5094   CXXCPP=$ac_cv_prog_CXXCPP
5095 else
5096   ac_cv_prog_CXXCPP=$CXXCPP
5097 fi
5098 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5099 echo "${ECHO_T}$CXXCPP" >&6
5100 ac_preproc_ok=false
5101 for ac_cxx_preproc_warn_flag in '' yes
5102 do
5103   # Use a header file that comes with gcc, so configuring glibc
5104   # with a fresh cross-compiler works.
5105   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106   # <limits.h> exists even on freestanding compilers.
5107   # On the NeXT, cc -E runs the code through the compiler's parser,
5108   # not just through cpp. "Syntax error" is here to catch this case.
5109   cat >conftest.$ac_ext <<_ACEOF
5110 #line $LINENO "configure"
5111 /* confdefs.h.  */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h.  */
5116 #ifdef __STDC__
5117 # include <limits.h>
5118 #else
5119 # include <assert.h>
5120 #endif
5121                      Syntax error
5122 _ACEOF
5123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5125   ac_status=$?
5126   grep -v '^ *+' conftest.er1 >conftest.err
5127   rm -f conftest.er1
5128   cat conftest.err >&5
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); } >/dev/null; then
5131   if test -s conftest.err; then
5132     ac_cpp_err=$ac_cxx_preproc_warn_flag
5133   else
5134     ac_cpp_err=
5135   fi
5136 else
5137   ac_cpp_err=yes
5138 fi
5139 if test -z "$ac_cpp_err"; then
5140   :
5141 else
5142   echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145   # Broken: fails on valid input.
5146 continue
5147 fi
5148 rm -f conftest.err conftest.$ac_ext
5149
5150   # OK, works on sane cases.  Now check whether non-existent headers
5151   # can be detected and how.
5152   cat >conftest.$ac_ext <<_ACEOF
5153 #line $LINENO "configure"
5154 /* confdefs.h.  */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h.  */
5159 #include <ac_nonexistent.h>
5160 _ACEOF
5161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5163   ac_status=$?
5164   grep -v '^ *+' conftest.er1 >conftest.err
5165   rm -f conftest.er1
5166   cat conftest.err >&5
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); } >/dev/null; then
5169   if test -s conftest.err; then
5170     ac_cpp_err=$ac_cxx_preproc_warn_flag
5171   else
5172     ac_cpp_err=
5173   fi
5174 else
5175   ac_cpp_err=yes
5176 fi
5177 if test -z "$ac_cpp_err"; then
5178   # Broken: success on invalid input.
5179 continue
5180 else
5181   echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5183
5184   # Passes both tests.
5185 ac_preproc_ok=:
5186 break
5187 fi
5188 rm -f conftest.err conftest.$ac_ext
5189
5190 done
5191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5192 rm -f conftest.err conftest.$ac_ext
5193 if $ac_preproc_ok; then
5194   :
5195 else
5196   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5197 See \`config.log' for more details." >&5
5198 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5199 See \`config.log' for more details." >&2;}
5200    { (exit 1); exit 1; }; }
5201 fi
5202
5203 ac_ext=cc
5204 ac_cpp='$CXXCPP $CPPFLAGS'
5205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5208
5209
5210 ac_ext=f
5211 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5212 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5214 if test -n "$ac_tool_prefix"; then
5215   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5216   do
5217     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5219 echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221 if test "${ac_cv_prog_F77+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   if test -n "$F77"; then
5225   ac_cv_prog_F77="$F77" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232   for ac_exec_ext in '' $ac_executable_extensions; do
5233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236     break 2
5237   fi
5238 done
5239 done
5240
5241 fi
5242 fi
5243 F77=$ac_cv_prog_F77
5244 if test -n "$F77"; then
5245   echo "$as_me:$LINENO: result: $F77" >&5
5246 echo "${ECHO_T}$F77" >&6
5247 else
5248   echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5250 fi
5251
5252     test -n "$F77" && break
5253   done
5254 fi
5255 if test -z "$F77"; then
5256   ac_ct_F77=$F77
5257   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5258 do
5259   # Extract the first word of "$ac_prog", so it can be a program name with args.
5260 set dummy $ac_prog; ac_word=$2
5261 echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266   if test -n "$ac_ct_F77"; then
5267   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272   IFS=$as_save_IFS
5273   test -z "$as_dir" && as_dir=.
5274   for ac_exec_ext in '' $ac_executable_extensions; do
5275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276     ac_cv_prog_ac_ct_F77="$ac_prog"
5277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278     break 2
5279   fi
5280 done
5281 done
5282
5283 fi
5284 fi
5285 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5286 if test -n "$ac_ct_F77"; then
5287   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5288 echo "${ECHO_T}$ac_ct_F77" >&6
5289 else
5290   echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5292 fi
5293
5294   test -n "$ac_ct_F77" && break
5295 done
5296
5297   F77=$ac_ct_F77
5298 fi
5299
5300
5301 # Provide some information about the compiler.
5302 echo "$as_me:5302:" \
5303      "checking for Fortran 77 compiler version" >&5
5304 ac_compiler=`set X $ac_compile; echo $2`
5305 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5306   (eval $ac_compiler --version </dev/null >&5) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }
5310 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5311   (eval $ac_compiler -v </dev/null >&5) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }
5315 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5316   (eval $ac_compiler -V </dev/null >&5) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }
5320
5321 # If we don't use `.F' as extension, the preprocessor is not run on the
5322 # input file.
5323 ac_save_ext=$ac_ext
5324 ac_ext=F
5325 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5326 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5327 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   cat >conftest.$ac_ext <<_ACEOF
5331       program main
5332 #ifndef __GNUC__
5333        choke me
5334 #endif
5335
5336       end
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340   (eval $ac_compile) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); } &&
5344          { ac_try='test -s conftest.$ac_objext'
5345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346   (eval $ac_try) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }; }; then
5350   ac_compiler_gnu=yes
5351 else
5352   echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 ac_compiler_gnu=no
5356 fi
5357 rm -f conftest.$ac_objext conftest.$ac_ext
5358 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5359
5360 fi
5361 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5362 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5363 ac_ext=$ac_save_ext
5364 G77=`test $ac_compiler_gnu = yes && echo yes`
5365 ac_test_FFLAGS=${FFLAGS+set}
5366 ac_save_FFLAGS=$FFLAGS
5367 FFLAGS=
5368 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5369 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5370 if test "${ac_cv_prog_f77_g+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   FFLAGS=-g
5374 cat >conftest.$ac_ext <<_ACEOF
5375       program main
5376
5377       end
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381   (eval $ac_compile) 2>&5
5382   ac_status=$?
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); } &&
5385          { ac_try='test -s conftest.$ac_objext'
5386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387   (eval $ac_try) 2>&5
5388   ac_status=$?
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); }; }; then
5391   ac_cv_prog_f77_g=yes
5392 else
5393   echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396 ac_cv_prog_f77_g=no
5397 fi
5398 rm -f conftest.$ac_objext conftest.$ac_ext
5399
5400 fi
5401 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5402 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5403 if test "$ac_test_FFLAGS" = set; then
5404   FFLAGS=$ac_save_FFLAGS
5405 elif test $ac_cv_prog_f77_g = yes; then
5406   if test "$G77" = yes; then
5407     FFLAGS="-g -O2"
5408   else
5409     FFLAGS="-g"
5410   fi
5411 else
5412   if test "$G77" = yes; then
5413     FFLAGS="-O2"
5414   else
5415     FFLAGS=
5416   fi
5417 fi
5418 ac_ext=c
5419 ac_cpp='$CPP $CPPFLAGS'
5420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423
5424
5425
5426 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5427
5428 # find the maximum length of command line arguments
5429 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5430 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5431 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434     i=0
5435   testring="ABCD"
5436
5437   case $build_os in
5438   msdosdjgpp*)
5439     # On DJGPP, this test can blow up pretty badly due to problems in libc
5440     # (any single argument exceeding 2000 bytes causes a buffer overrun
5441     # during glob expansion).  Even if it were fixed, the result of this
5442     # check would be larger than it should be.
5443     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5444     ;;
5445
5446   gnu*)
5447     # Under GNU Hurd, this test is not required because there is
5448     # no limit to the length of command line arguments.
5449     # Libtool will interpret -1 as no limit whatsoever
5450     lt_cv_sys_max_cmd_len=-1;
5451     ;;
5452
5453   cygwin* | mingw*)
5454     # On Win9x/ME, this test blows up -- it succeeds, but takes
5455     # about 5 minutes as the teststring grows exponentially.
5456     # Worse, since 9x/ME are not pre-emptively multitasking,
5457     # you end up with a "frozen" computer, even though with patience
5458     # the test eventually succeeds (with a max line length of 256k).
5459     # Instead, let's just punt: use the minimum linelength reported by
5460     # all of the supported platforms: 8192 (on NT/2K/XP).
5461     lt_cv_sys_max_cmd_len=8192;
5462     ;;
5463
5464  *)
5465     # If test is not a shell built-in, we'll probably end up computing a
5466     # maximum length that is only half of the actual maximum length, but
5467     # we can't tell.
5468     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5469                = "XX$testring") >/dev/null 2>&1 &&
5470             new_result=`expr "X$testring" : ".*" 2>&1` &&
5471             lt_cv_sys_max_cmd_len=$new_result &&
5472             test $i != 17 # 1/2 MB should be enough
5473     do
5474       i=`expr $i + 1`
5475       testring=$testring$testring
5476     done
5477     testring=
5478     # Add a significant safety factor because C++ compilers can tack on massive
5479     # amounts of additional arguments before passing them to the linker.
5480     # It appears as though 1/2 is a usable value.
5481     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5482     ;;
5483   esac
5484
5485 fi
5486
5487 if test -n $lt_cv_sys_max_cmd_len ; then
5488   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5489 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5490 else
5491   echo "$as_me:$LINENO: result: none" >&5
5492 echo "${ECHO_T}none" >&6
5493 fi
5494
5495
5496
5497
5498 # Check for command to grab the raw symbol name followed by C symbol from nm.
5499 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5500 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5501 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504
5505 # These are sane defaults that work on at least a few old systems.
5506 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5507
5508 # Character class describing NM global symbol codes.
5509 symcode='[BCDEGRST]'
5510
5511 # Regexp to match symbols that can be accessed directly from C.
5512 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5513
5514 # Transform the above into a raw symbol and a C symbol.
5515 symxfrm='\1 \2\3 \3'
5516
5517 # Transform an extracted symbol line into a proper C declaration
5518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5519
5520 # Transform an extracted symbol line into symbol name and symbol address
5521 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'"
5522
5523 # Define system-specific variables.
5524 case $host_os in
5525 aix*)
5526   symcode='[BCDT]'
5527   ;;
5528 cygwin* | mingw* | pw32*)
5529   symcode='[ABCDGISTW]'
5530   ;;
5531 hpux*) # Its linker distinguishes data from code symbols
5532   if test "$host_cpu" = ia64; then
5533     symcode='[ABCDEGRST]'
5534   fi
5535   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5536   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'"
5537   ;;
5538 irix* | nonstopux*)
5539   symcode='[BCDEGRST]'
5540   ;;
5541 osf*)
5542   symcode='[BCDEGQRST]'
5543   ;;
5544 solaris* | sysv5*)
5545   symcode='[BDT]'
5546   ;;
5547 sysv4)
5548   symcode='[DFNSTU]'
5549   ;;
5550 esac
5551
5552 # Handle CRLF in mingw tool chain
5553 opt_cr=
5554 case $build_os in
5555 mingw*)
5556   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5557   ;;
5558 esac
5559
5560 # If we're using GNU nm, then use its standard symbol codes.
5561 case `$NM -V 2>&1` in
5562 *GNU* | *'with BFD'*)
5563   symcode='[ABCDGISTW]' ;;
5564 esac
5565
5566 # Try without a prefix undercore, then with it.
5567 for ac_symprfx in "" "_"; do
5568
5569   # Write the raw and C identifiers.
5570   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5571
5572   # Check to see that the pipe works correctly.
5573   pipe_works=no
5574
5575   rm -f conftest*
5576   cat > conftest.$ac_ext <<EOF
5577 #ifdef __cplusplus
5578 extern "C" {
5579 #endif
5580 char nm_test_var;
5581 void nm_test_func(){}
5582 #ifdef __cplusplus
5583 }
5584 #endif
5585 int main(){nm_test_var='a';nm_test_func();return(0);}
5586 EOF
5587
5588   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589   (eval $ac_compile) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); }; then
5593     # Now try to grab the symbols.
5594     nlist=conftest.nm
5595     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5596   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); } && test -s "$nlist"; then
5600       # Try sorting and uniquifying the output.
5601       if sort "$nlist" | uniq > "$nlist"T; then
5602         mv -f "$nlist"T "$nlist"
5603       else
5604         rm -f "$nlist"T
5605       fi
5606
5607       # Make sure that we snagged all the symbols we need.
5608       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5609         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5610           cat <<EOF > conftest.$ac_ext
5611 #ifdef __cplusplus
5612 extern "C" {
5613 #endif
5614
5615 EOF
5616           # Now generate the symbol file.
5617           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5618
5619           cat <<EOF >> conftest.$ac_ext
5620 #if defined (__STDC__) && __STDC__
5621 # define lt_ptr_t void *
5622 #else
5623 # define lt_ptr_t char *
5624 # define const
5625 #endif
5626
5627 /* The mapping between symbol names and symbols. */
5628 const struct {
5629   const char *name;
5630   lt_ptr_t address;
5631 }
5632 lt_preloaded_symbols[] =
5633 {
5634 EOF
5635           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5636           cat <<\EOF >> conftest.$ac_ext
5637   {0, (lt_ptr_t) 0}
5638 };
5639
5640 #ifdef __cplusplus
5641 }
5642 #endif
5643 EOF
5644           # Now try linking the two files.
5645           mv conftest.$ac_objext conftstm.$ac_objext
5646           lt_save_LIBS="$LIBS"
5647           lt_save_CFLAGS="$CFLAGS"
5648           LIBS="conftstm.$ac_objext"
5649           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5650           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651   (eval $ac_link) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5655             pipe_works=yes
5656           fi
5657           LIBS="$lt_save_LIBS"
5658           CFLAGS="$lt_save_CFLAGS"
5659         else
5660           echo "cannot find nm_test_func in $nlist" >&5
5661         fi
5662       else
5663         echo "cannot find nm_test_var in $nlist" >&5
5664       fi
5665     else
5666       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5667     fi
5668   else
5669     echo "$progname: failed program was:" >&5
5670     cat conftest.$ac_ext >&5
5671   fi
5672   rm -f conftest* conftst*
5673
5674   # Do not use the global_symbol_pipe unless it works.
5675   if test "$pipe_works" = yes; then
5676     break
5677   else
5678     lt_cv_sys_global_symbol_pipe=
5679   fi
5680 done
5681
5682 fi
5683
5684 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5685   lt_cv_sys_global_symbol_to_cdecl=
5686 fi
5687 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5688   echo "$as_me:$LINENO: result: failed" >&5
5689 echo "${ECHO_T}failed" >&6
5690 else
5691   echo "$as_me:$LINENO: result: ok" >&5
5692 echo "${ECHO_T}ok" >&6
5693 fi
5694
5695 echo "$as_me:$LINENO: checking for objdir" >&5
5696 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5697 if test "${lt_cv_objdir+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   rm -f .libs 2>/dev/null
5701 mkdir .libs 2>/dev/null
5702 if test -d .libs; then
5703   lt_cv_objdir=.libs
5704 else
5705   # MS-DOS does not allow filenames that begin with a dot.
5706   lt_cv_objdir=_libs
5707 fi
5708 rmdir .libs 2>/dev/null
5709 fi
5710 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5711 echo "${ECHO_T}$lt_cv_objdir" >&6
5712 objdir=$lt_cv_objdir
5713
5714
5715
5716
5717
5718 case $host_os in
5719 aix3*)
5720   # AIX sometimes has problems with the GCC collect2 program.  For some
5721   # reason, if we set the COLLECT_NAMES environment variable, the problems
5722   # vanish in a puff of smoke.
5723   if test "X${COLLECT_NAMES+set}" != Xset; then
5724     COLLECT_NAMES=
5725     export COLLECT_NAMES
5726   fi
5727   ;;
5728 esac
5729
5730 # Sed substitution that helps us do robust quoting.  It backslashifies
5731 # metacharacters that are still active within double-quoted strings.
5732 Xsed='sed -e s/^X//'
5733 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5734
5735 # Same as above, but do not quote variable references.
5736 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5737
5738 # Sed substitution to delay expansion of an escaped shell variable in a
5739 # double_quote_subst'ed string.
5740 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5741
5742 # Sed substitution to avoid accidental globbing in evaled expressions
5743 no_glob_subst='s/\*/\\\*/g'
5744
5745 # Constants:
5746 rm="rm -f"
5747
5748 # Global variables:
5749 default_ofile=mklib
5750 can_build_shared=yes
5751
5752 # All known linkers require a `.a' archive for static linking (except M$VC,
5753 # which needs '.lib').
5754 libext=a
5755 ltmain="$ac_aux_dir/ltmain.sh"
5756 ofile="$default_ofile"
5757 with_gnu_ld="$lt_cv_prog_gnu_ld"
5758
5759 if test -n "$ac_tool_prefix"; then
5760   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5761 set dummy ${ac_tool_prefix}ar; ac_word=$2
5762 echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764 if test "${ac_cv_prog_AR+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   if test -n "$AR"; then
5768   ac_cv_prog_AR="$AR" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775   for ac_exec_ext in '' $ac_executable_extensions; do
5776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777     ac_cv_prog_AR="${ac_tool_prefix}ar"
5778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782 done
5783
5784 fi
5785 fi
5786 AR=$ac_cv_prog_AR
5787 if test -n "$AR"; then
5788   echo "$as_me:$LINENO: result: $AR" >&5
5789 echo "${ECHO_T}$AR" >&6
5790 else
5791   echo "$as_me:$LINENO: result: no" >&5
5792 echo "${ECHO_T}no" >&6
5793 fi
5794
5795 fi
5796 if test -z "$ac_cv_prog_AR"; then
5797   ac_ct_AR=$AR
5798   # Extract the first word of "ar", so it can be a program name with args.
5799 set dummy ar; ac_word=$2
5800 echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5802 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   if test -n "$ac_ct_AR"; then
5806   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811   IFS=$as_save_IFS
5812   test -z "$as_dir" && as_dir=.
5813   for ac_exec_ext in '' $ac_executable_extensions; do
5814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815     ac_cv_prog_ac_ct_AR="ar"
5816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817     break 2
5818   fi
5819 done
5820 done
5821
5822   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5823 fi
5824 fi
5825 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5826 if test -n "$ac_ct_AR"; then
5827   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5828 echo "${ECHO_T}$ac_ct_AR" >&6
5829 else
5830   echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6
5832 fi
5833
5834   AR=$ac_ct_AR
5835 else
5836   AR="$ac_cv_prog_AR"
5837 fi
5838
5839 if test -n "$ac_tool_prefix"; then
5840   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5842 echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5844 if test "${ac_cv_prog_RANLIB+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   if test -n "$RANLIB"; then
5848   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855   for ac_exec_ext in '' $ac_executable_extensions; do
5856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859     break 2
5860   fi
5861 done
5862 done
5863
5864 fi
5865 fi
5866 RANLIB=$ac_cv_prog_RANLIB
5867 if test -n "$RANLIB"; then
5868   echo "$as_me:$LINENO: result: $RANLIB" >&5
5869 echo "${ECHO_T}$RANLIB" >&6
5870 else
5871   echo "$as_me:$LINENO: result: no" >&5
5872 echo "${ECHO_T}no" >&6
5873 fi
5874
5875 fi
5876 if test -z "$ac_cv_prog_RANLIB"; then
5877   ac_ct_RANLIB=$RANLIB
5878   # Extract the first word of "ranlib", so it can be a program name with args.
5879 set dummy ranlib; ac_word=$2
5880 echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5882 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   if test -n "$ac_ct_RANLIB"; then
5886   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893   for ac_exec_ext in '' $ac_executable_extensions; do
5894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895     ac_cv_prog_ac_ct_RANLIB="ranlib"
5896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900 done
5901
5902   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5903 fi
5904 fi
5905 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5906 if test -n "$ac_ct_RANLIB"; then
5907   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5908 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5909 else
5910   echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6
5912 fi
5913
5914   RANLIB=$ac_ct_RANLIB
5915 else
5916   RANLIB="$ac_cv_prog_RANLIB"
5917 fi
5918
5919 if test -n "$ac_tool_prefix"; then
5920   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5921 set dummy ${ac_tool_prefix}strip; ac_word=$2
5922 echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924 if test "${ac_cv_prog_STRIP+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   if test -n "$STRIP"; then
5928   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933   IFS=$as_save_IFS
5934   test -z "$as_dir" && as_dir=.
5935   for ac_exec_ext in '' $ac_executable_extensions; do
5936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939     break 2
5940   fi
5941 done
5942 done
5943
5944 fi
5945 fi
5946 STRIP=$ac_cv_prog_STRIP
5947 if test -n "$STRIP"; then
5948   echo "$as_me:$LINENO: result: $STRIP" >&5
5949 echo "${ECHO_T}$STRIP" >&6
5950 else
5951   echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6
5953 fi
5954
5955 fi
5956 if test -z "$ac_cv_prog_STRIP"; then
5957   ac_ct_STRIP=$STRIP
5958   # Extract the first word of "strip", so it can be a program name with args.
5959 set dummy strip; ac_word=$2
5960 echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5962 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   if test -n "$ac_ct_STRIP"; then
5966   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973   for ac_exec_ext in '' $ac_executable_extensions; do
5974   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975     ac_cv_prog_ac_ct_STRIP="strip"
5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980 done
5981
5982   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5983 fi
5984 fi
5985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5986 if test -n "$ac_ct_STRIP"; then
5987   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5988 echo "${ECHO_T}$ac_ct_STRIP" >&6
5989 else
5990   echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6
5992 fi
5993
5994   STRIP=$ac_ct_STRIP
5995 else
5996   STRIP="$ac_cv_prog_STRIP"
5997 fi
5998
5999
6000 old_CC="$CC"
6001 old_CFLAGS="$CFLAGS"
6002
6003 # Set sane defaults for various variables
6004 test -z "$AR" && AR=ar
6005 test -z "$AR_FLAGS" && AR_FLAGS=cru
6006 test -z "$AS" && AS=as
6007 test -z "$CC" && CC=cc
6008 test -z "$LTCC" && LTCC=$CC
6009 test -z "$DLLTOOL" && DLLTOOL=dlltool
6010 test -z "$LD" && LD=ld
6011 test -z "$LN_S" && LN_S="ln -s"
6012 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6013 test -z "$NM" && NM=nm
6014 test -z "$SED" && SED=sed
6015 test -z "$OBJDUMP" && OBJDUMP=objdump
6016 test -z "$RANLIB" && RANLIB=:
6017 test -z "$STRIP" && STRIP=:
6018 test -z "$ac_objext" && ac_objext=o
6019
6020 # Determine commands to create old-style static archives.
6021 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6022 old_postinstall_cmds='chmod 644 $oldlib'
6023 old_postuninstall_cmds=
6024
6025 if test -n "$RANLIB"; then
6026   case $host_os in
6027   openbsd*)
6028     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6029     ;;
6030   *)
6031     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6032     ;;
6033   esac
6034   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6035 fi
6036
6037 # Only perform the check for file, if the check method requires it
6038 case $deplibs_check_method in
6039 file_magic*)
6040   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6041     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6042 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   case $MAGIC_CMD in
6047 [\\/*] |  ?:[\\/]*)
6048   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6049   ;;
6050 *)
6051   lt_save_MAGIC_CMD="$MAGIC_CMD"
6052   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6053   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6054   for ac_dir in $ac_dummy; do
6055     IFS="$lt_save_ifs"
6056     test -z "$ac_dir" && ac_dir=.
6057     if test -f $ac_dir/${ac_tool_prefix}file; then
6058       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6059       if test -n "$file_magic_test_file"; then
6060         case $deplibs_check_method in
6061         "file_magic "*)
6062           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6063           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6065             $EGREP "$file_magic_regex" > /dev/null; then
6066             :
6067           else
6068             cat <<EOF 1>&2
6069
6070 *** Warning: the command libtool uses to detect shared libraries,
6071 *** $file_magic_cmd, produces output that libtool cannot recognize.
6072 *** The result is that libtool may fail to recognize shared libraries
6073 *** as such.  This will affect the creation of libtool libraries that
6074 *** depend on shared libraries, but programs linked with such libtool
6075 *** libraries will work regardless of this problem.  Nevertheless, you
6076 *** may want to report the problem to your system manager and/or to
6077 *** bug-libtool@gnu.org
6078
6079 EOF
6080           fi ;;
6081         esac
6082       fi
6083       break
6084     fi
6085   done
6086   IFS="$lt_save_ifs"
6087   MAGIC_CMD="$lt_save_MAGIC_CMD"
6088   ;;
6089 esac
6090 fi
6091
6092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6093 if test -n "$MAGIC_CMD"; then
6094   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6095 echo "${ECHO_T}$MAGIC_CMD" >&6
6096 else
6097   echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6
6099 fi
6100
6101 if test -z "$lt_cv_path_MAGIC_CMD"; then
6102   if test -n "$ac_tool_prefix"; then
6103     echo "$as_me:$LINENO: checking for file" >&5
6104 echo $ECHO_N "checking for file... $ECHO_C" >&6
6105 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   case $MAGIC_CMD in
6109 [\\/*] |  ?:[\\/]*)
6110   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6111   ;;
6112 *)
6113   lt_save_MAGIC_CMD="$MAGIC_CMD"
6114   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6115   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6116   for ac_dir in $ac_dummy; do
6117     IFS="$lt_save_ifs"
6118     test -z "$ac_dir" && ac_dir=.
6119     if test -f $ac_dir/file; then
6120       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6121       if test -n "$file_magic_test_file"; then
6122         case $deplibs_check_method in
6123         "file_magic "*)
6124           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6125           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6126           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6127             $EGREP "$file_magic_regex" > /dev/null; then
6128             :
6129           else
6130             cat <<EOF 1>&2
6131
6132 *** Warning: the command libtool uses to detect shared libraries,
6133 *** $file_magic_cmd, produces output that libtool cannot recognize.
6134 *** The result is that libtool may fail to recognize shared libraries
6135 *** as such.  This will affect the creation of libtool libraries that
6136 *** depend on shared libraries, but programs linked with such libtool
6137 *** libraries will work regardless of this problem.  Nevertheless, you
6138 *** may want to report the problem to your system manager and/or to
6139 *** bug-libtool@gnu.org
6140
6141 EOF
6142           fi ;;
6143         esac
6144       fi
6145       break
6146     fi
6147   done
6148   IFS="$lt_save_ifs"
6149   MAGIC_CMD="$lt_save_MAGIC_CMD"
6150   ;;
6151 esac
6152 fi
6153
6154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6155 if test -n "$MAGIC_CMD"; then
6156   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6157 echo "${ECHO_T}$MAGIC_CMD" >&6
6158 else
6159   echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6
6161 fi
6162
6163   else
6164     MAGIC_CMD=:
6165   fi
6166 fi
6167
6168   fi
6169   ;;
6170 esac
6171
6172 enable_dlopen=no
6173 enable_win32_dll=no
6174
6175 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6176 if test "${enable_libtool_lock+set}" = set; then
6177   enableval="$enable_libtool_lock"
6178
6179 fi;
6180 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6181
6182
6183 # Check whether --with-pic or --without-pic was given.
6184 if test "${with_pic+set}" = set; then
6185   withval="$with_pic"
6186   pic_mode="$withval"
6187 else
6188   pic_mode=default
6189 fi;
6190 test -z "$pic_mode" && pic_mode=default
6191
6192 # Use C for the default configuration in the libtool script
6193 tagname=
6194 lt_save_CC="$CC"
6195 ac_ext=c
6196 ac_cpp='$CPP $CPPFLAGS'
6197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6200
6201
6202 # Source file extension for C test sources.
6203 ac_ext=c
6204
6205 # Object file extension for compiled C test sources.
6206 objext=o
6207 objext=$objext
6208
6209 # Code to be used in simple compile tests
6210 lt_simple_compile_test_code="int some_variable = 0;\n"
6211
6212 # Code to be used in simple link tests
6213 lt_simple_link_test_code='int main(){return(0);}\n'
6214
6215
6216 # If no C compiler was specified, use CC.
6217 LTCC=${LTCC-"$CC"}
6218
6219 # Allow CC to be a program name with arguments.
6220 compiler=$CC
6221
6222
6223 #
6224 # Check for any special shared library compilation flags.
6225 #
6226 lt_prog_cc_shlib=
6227 if test "$GCC" = no; then
6228   case $host_os in
6229   sco3.2v5*)
6230     lt_prog_cc_shlib='-belf'
6231     ;;
6232   esac
6233 fi
6234 if test -n "$lt_prog_cc_shlib"; then
6235   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6236 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6237   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6238   else
6239     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6240 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6241     lt_cv_prog_cc_can_build_shared=no
6242   fi
6243 fi
6244
6245
6246 #
6247 # Check to make sure the static flag actually works.
6248 #
6249 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6250 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6251 if test "${lt_prog_compiler_static_works+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254   lt_prog_compiler_static_works=no
6255    save_LDFLAGS="$LDFLAGS"
6256    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6257    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6258    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6259      # The compiler can only warn and ignore the option if not recognized
6260      # So say no if there are warnings
6261      if test -s conftest.err; then
6262        # Append any errors to the config.log.
6263        cat conftest.err 1>&5
6264      else
6265        lt_prog_compiler_static_works=yes
6266      fi
6267    fi
6268    $rm conftest*
6269    LDFLAGS="$save_LDFLAGS"
6270
6271 fi
6272 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6273 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6274
6275 if test x"$lt_prog_compiler_static_works" = xyes; then
6276     :
6277 else
6278     lt_prog_compiler_static=
6279 fi
6280
6281
6282
6283 ## CAVEAT EMPTOR:
6284 ## There is no encapsulation within the following macros, do not change
6285 ## the running order or otherwise move them around unless you know exactly
6286 ## what you are doing...
6287
6288 lt_prog_compiler_no_builtin_flag=
6289
6290 if test "$GCC" = yes; then
6291   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6292
6293   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6294 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6295 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   lt_cv_prog_compiler_rtti_exceptions=no
6299   ac_outfile=conftest.$ac_objext
6300    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6301    lt_compiler_flag="-fno-rtti -fno-exceptions"
6302    # Insert the option either (1) after the last *FLAGS variable, or
6303    # (2) before a word containing "conftest.", or (3) at the end.
6304    # Note that $ac_compile itself does not contain backslashes and begins
6305    # with a dollar sign (not a hyphen), so the echo should work correctly.
6306    # The option is referenced via a variable to avoid confusing sed.
6307    lt_compile=`echo "$ac_compile" | $SED \
6308    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6309    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6310    -e 's:$: $lt_compiler_flag:'`
6311    (eval echo "\"\$as_me:6311: $lt_compile\"" >&5)
6312    (eval "$lt_compile" 2>conftest.err)
6313    ac_status=$?
6314    cat conftest.err >&5
6315    echo "$as_me:6315: \$? = $ac_status" >&5
6316    if (exit $ac_status) && test -s "$ac_outfile"; then
6317      # The compiler can only warn and ignore the option if not recognized
6318      # So say no if there are warnings
6319      if test ! -s conftest.err; then
6320        lt_cv_prog_compiler_rtti_exceptions=yes
6321      fi
6322    fi
6323    $rm conftest*
6324
6325 fi
6326 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6327 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6328
6329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6330     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6331 else
6332     :
6333 fi
6334
6335 fi
6336
6337 lt_prog_compiler_wl=
6338 lt_prog_compiler_pic=
6339 lt_prog_compiler_static=
6340
6341 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6342 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6343
6344   if test "$GCC" = yes; then
6345     lt_prog_compiler_wl='-Wl,'
6346     lt_prog_compiler_static='-static'
6347
6348     case $host_os in
6349       aix*)
6350       # All AIX code is PIC.
6351       if test "$host_cpu" = ia64; then
6352         # AIX 5 now supports IA64 processor
6353         lt_prog_compiler_static='-Bstatic'
6354       fi
6355       ;;
6356
6357     amigaos*)
6358       # FIXME: we need at least 68020 code to build shared libraries, but
6359       # adding the `-m68020' flag to GCC prevents building anything better,
6360       # like `-m68040'.
6361       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6362       ;;
6363
6364     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6365       # PIC is the default for these OSes.
6366       ;;
6367
6368     mingw* | pw32* | os2*)
6369       # This hack is so that the source file can tell whether it is being
6370       # built for inclusion in a dll (and should export symbols for example).
6371       lt_prog_compiler_pic='-DDLL_EXPORT'
6372       ;;
6373
6374     darwin* | rhapsody*)
6375       # PIC is the default on this platform
6376       # Common symbols not allowed in MH_DYLIB files
6377       lt_prog_compiler_pic='-fno-common'
6378       ;;
6379
6380     msdosdjgpp*)
6381       # Just because we use GCC doesn't mean we suddenly get shared libraries
6382       # on systems that don't support them.
6383       lt_prog_compiler_can_build_shared=no
6384       enable_shared=no
6385       ;;
6386
6387     sysv4*MP*)
6388       if test -d /usr/nec; then
6389         lt_prog_compiler_pic=-Kconform_pic
6390       fi
6391       ;;
6392
6393     hpux*)
6394       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6395       # not for PA HP-UX.
6396       case "$host_cpu" in
6397       hppa*64*|ia64*)
6398         # +Z the default
6399         ;;
6400       *)
6401         lt_prog_compiler_pic='-fPIC'
6402         ;;
6403       esac
6404       ;;
6405
6406     *)
6407       lt_prog_compiler_pic='-fPIC'
6408       ;;
6409     esac
6410   else
6411     # PORTME Check for flag to pass linker flags through the system compiler.
6412     case $host_os in
6413     aix*)
6414       lt_prog_compiler_wl='-Wl,'
6415       if test "$host_cpu" = ia64; then
6416         # AIX 5 now supports IA64 processor
6417         lt_prog_compiler_static='-Bstatic'
6418       else
6419         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6420       fi
6421       ;;
6422
6423     mingw* | pw32* | os2*)
6424       # This hack is so that the source file can tell whether it is being
6425       # built for inclusion in a dll (and should export symbols for example).
6426       lt_prog_compiler_pic='-DDLL_EXPORT'
6427       ;;
6428
6429     hpux9* | hpux10* | hpux11*)
6430       lt_prog_compiler_wl='-Wl,'
6431       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6432       # not for PA HP-UX.
6433       case "$host_cpu" in
6434       hppa*64*|ia64*)
6435         # +Z the default
6436         ;;
6437       *)
6438         lt_prog_compiler_pic='+Z'
6439         ;;
6440       esac
6441       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6442       lt_prog_compiler_static='${wl}-a ${wl}archive'
6443       ;;
6444
6445     irix5* | irix6* | nonstopux*)
6446       lt_prog_compiler_wl='-Wl,'
6447       # PIC (with -KPIC) is the default.
6448       lt_prog_compiler_static='-non_shared'
6449       ;;
6450
6451     newsos6)
6452       lt_prog_compiler_pic='-KPIC'
6453       lt_prog_compiler_static='-Bstatic'
6454       ;;
6455
6456     linux*)
6457       case $CC in
6458       icc|ecc)
6459         lt_prog_compiler_wl='-Wl,'
6460         lt_prog_compiler_pic='-KPIC'
6461         lt_prog_compiler_static='-static'
6462         ;;
6463       ccc)
6464         lt_prog_compiler_wl='-Wl,'
6465         # All Alpha code is PIC.
6466         lt_prog_compiler_static='-non_shared'
6467         ;;
6468       esac
6469       ;;
6470
6471     osf3* | osf4* | osf5*)
6472       lt_prog_compiler_wl='-Wl,'
6473       # All OSF/1 code is PIC.
6474       lt_prog_compiler_static='-non_shared'
6475       ;;
6476
6477     sco3.2v5*)
6478       lt_prog_compiler_pic='-Kpic'
6479       lt_prog_compiler_static='-dn'
6480       ;;
6481
6482     solaris*)
6483       lt_prog_compiler_wl='-Wl,'
6484       lt_prog_compiler_pic='-KPIC'
6485       lt_prog_compiler_static='-Bstatic'
6486       ;;
6487
6488     sunos4*)
6489       lt_prog_compiler_wl='-Qoption ld '
6490       lt_prog_compiler_pic='-PIC'
6491       lt_prog_compiler_static='-Bstatic'
6492       ;;
6493
6494     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6495       lt_prog_compiler_wl='-Wl,'
6496       lt_prog_compiler_pic='-KPIC'
6497       lt_prog_compiler_static='-Bstatic'
6498       ;;
6499
6500     sysv4*MP*)
6501       if test -d /usr/nec ;then
6502         lt_prog_compiler_pic='-Kconform_pic'
6503         lt_prog_compiler_static='-Bstatic'
6504       fi
6505       ;;
6506
6507     uts4*)
6508       lt_prog_compiler_pic='-pic'
6509       lt_prog_compiler_static='-Bstatic'
6510       ;;
6511
6512     *)
6513       lt_prog_compiler_can_build_shared=no
6514       ;;
6515     esac
6516   fi
6517
6518 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6519 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6520
6521 #
6522 # Check to make sure the PIC flag actually works.
6523 #
6524 if test -n "$lt_prog_compiler_pic"; then
6525   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6526 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6527 if test "${lt_prog_compiler_pic_works+set}" = set; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   lt_prog_compiler_pic_works=no
6531   ac_outfile=conftest.$ac_objext
6532    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6533    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6534    # Insert the option either (1) after the last *FLAGS variable, or
6535    # (2) before a word containing "conftest.", or (3) at the end.
6536    # Note that $ac_compile itself does not contain backslashes and begins
6537    # with a dollar sign (not a hyphen), so the echo should work correctly.
6538    # The option is referenced via a variable to avoid confusing sed.
6539    lt_compile=`echo "$ac_compile" | $SED \
6540    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6541    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542    -e 's:$: $lt_compiler_flag:'`
6543    (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
6544    (eval "$lt_compile" 2>conftest.err)
6545    ac_status=$?
6546    cat conftest.err >&5
6547    echo "$as_me:6547: \$? = $ac_status" >&5
6548    if (exit $ac_status) && test -s "$ac_outfile"; then
6549      # The compiler can only warn and ignore the option if not recognized
6550      # So say no if there are warnings
6551      if test ! -s conftest.err; then
6552        lt_prog_compiler_pic_works=yes
6553      fi
6554    fi
6555    $rm conftest*
6556
6557 fi
6558 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6559 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6560
6561 if test x"$lt_prog_compiler_pic_works" = xyes; then
6562     case $lt_prog_compiler_pic in
6563      "" | " "*) ;;
6564      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6565      esac
6566 else
6567     lt_prog_compiler_pic=
6568      lt_prog_compiler_can_build_shared=no
6569 fi
6570
6571 fi
6572 case "$host_os" in
6573   # For platforms which do not support PIC, -DPIC is meaningless:
6574   *djgpp*)
6575     lt_prog_compiler_pic=
6576     ;;
6577   *)
6578     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6579     ;;
6580 esac
6581
6582 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6583 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6584 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   lt_cv_prog_compiler_c_o=no
6588    $rm -r conftest 2>/dev/null
6589    mkdir conftest
6590    cd conftest
6591    mkdir out
6592    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6593
6594    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6595    # that will create temporary files in the current directory regardless of
6596    # the output directory.  Thus, making CWD read-only will cause this test
6597    # to fail, enabling locking or at least warning the user not to do parallel
6598    # builds.
6599    chmod -w .
6600
6601    lt_compiler_flag="-o out/conftest2.$ac_objext"
6602    # Insert the option either (1) after the last *FLAGS variable, or
6603    # (2) before a word containing "conftest.", or (3) at the end.
6604    # Note that $ac_compile itself does not contain backslashes and begins
6605    # with a dollar sign (not a hyphen), so the echo should work correctly.
6606    lt_compile=`echo "$ac_compile" | $SED \
6607    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6608    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6609    -e 's:$: $lt_compiler_flag:'`
6610    (eval echo "\"\$as_me:6610: $lt_compile\"" >&5)
6611    (eval "$lt_compile" 2>out/conftest.err)
6612    ac_status=$?
6613    cat out/conftest.err >&5
6614    echo "$as_me:6614: \$? = $ac_status" >&5
6615    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6616    then
6617      # The compiler can only warn and ignore the option if not recognized
6618      # So say no if there are warnings
6619      if test ! -s out/conftest.err; then
6620        lt_cv_prog_compiler_c_o=yes
6621      fi
6622    fi
6623    chmod u+w .
6624    $rm conftest* out/*
6625    rmdir out
6626    cd ..
6627    rmdir conftest
6628    $rm conftest*
6629
6630 fi
6631 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6633
6634
6635 hard_links="nottested"
6636 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6637   # do not overwrite the value of need_locks provided by the user
6638   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6640   hard_links=yes
6641   $rm conftest*
6642   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6643   touch conftest.a
6644   ln conftest.a conftest.b 2>&5 || hard_links=no
6645   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6646   echo "$as_me:$LINENO: result: $hard_links" >&5
6647 echo "${ECHO_T}$hard_links" >&6
6648   if test "$hard_links" = no; then
6649     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6651     need_locks=warn
6652   fi
6653 else
6654   need_locks=no
6655 fi
6656
6657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6659
6660   runpath_var=
6661   allow_undefined_flag=
6662   enable_shared_with_static_runtimes=no
6663   archive_cmds=
6664   archive_expsym_cmds=
6665   old_archive_From_new_cmds=
6666   old_archive_from_expsyms_cmds=
6667   export_dynamic_flag_spec=
6668   whole_archive_flag_spec=
6669   thread_safe_flag_spec=
6670   hardcode_libdir_flag_spec=
6671   hardcode_libdir_flag_spec_ld=
6672   hardcode_libdir_separator=
6673   hardcode_direct=no
6674   hardcode_minus_L=no
6675   hardcode_shlibpath_var=unsupported
6676   link_all_deplibs=unknown
6677   hardcode_automatic=no
6678   module_cmds=
6679   module_expsym_cmds=
6680   always_export_symbols=no
6681   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6682   # include_expsyms should be a list of space-separated symbols to be *always*
6683   # included in the symbol list
6684   include_expsyms=
6685   # exclude_expsyms can be an extended regexp of symbols to exclude
6686   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6687   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6688   # as well as any symbol that contains `d'.
6689   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6690   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6691   # platforms (ab)use it in PIC code, but their linkers get confused if
6692   # the symbol is explicitly referenced.  Since portable code cannot
6693   # rely on this symbol name, it's probably fine to never include it in
6694   # preloaded symbol tables.
6695   extract_expsyms_cmds=
6696
6697   case $host_os in
6698   cygwin* | mingw* | pw32*)
6699     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6700     # When not using gcc, we currently assume that we are using
6701     # Microsoft Visual C++.
6702     if test "$GCC" != yes; then
6703       with_gnu_ld=no
6704     fi
6705     ;;
6706   openbsd*)
6707     with_gnu_ld=no
6708     ;;
6709   esac
6710
6711   ld_shlibs=yes
6712   if test "$with_gnu_ld" = yes; then
6713     # If archive_cmds runs LD, not CC, wlarc should be empty
6714     wlarc='${wl}'
6715
6716     # See if GNU ld supports shared libraries.
6717     case $host_os in
6718     aix3* | aix4* | aix5*)
6719       # On AIX/PPC, the GNU linker is very broken
6720       if test "$host_cpu" != ia64; then
6721         ld_shlibs=no
6722         cat <<EOF 1>&2
6723
6724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6725 *** to be unable to reliably create shared libraries on AIX.
6726 *** Therefore, libtool is disabling shared libraries support.  If you
6727 *** really care for shared libraries, you may want to modify your PATH
6728 *** so that a non-GNU linker is found, and then restart.
6729
6730 EOF
6731       fi
6732       ;;
6733
6734     amigaos*)
6735       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)'
6736       hardcode_libdir_flag_spec='-L$libdir'
6737       hardcode_minus_L=yes
6738
6739       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6740       # that the semantics of dynamic libraries on AmigaOS, at least up
6741       # to version 4, is to share data among multiple programs linked
6742       # with the same dynamic library.  Since this doesn't match the
6743       # behavior of shared libraries on other platforms, we can't use
6744       # them.
6745       ld_shlibs=no
6746       ;;
6747
6748     beos*)
6749       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6750         allow_undefined_flag=unsupported
6751         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6752         # support --undefined.  This deserves some investigation.  FIXME
6753         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754       else
6755         ld_shlibs=no
6756       fi
6757       ;;
6758
6759     cygwin* | mingw* | pw32*)
6760       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6761       # as there is no search path for DLLs.
6762       hardcode_libdir_flag_spec='-L$libdir'
6763       allow_undefined_flag=unsupported
6764       always_export_symbols=no
6765       enable_shared_with_static_runtimes=yes
6766       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6767
6768       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6769         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6770         # If the export-symbols file already is a .def file (1st line
6771         # is EXPORTS), use it as is; otherwise, prepend...
6772         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6773           cp $export_symbols $output_objdir/$soname.def;
6774         else
6775           echo EXPORTS > $output_objdir/$soname.def;
6776           cat $export_symbols >> $output_objdir/$soname.def;
6777         fi~
6778         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6779       else
6780         ld_shlibs=no
6781       fi
6782       ;;
6783
6784     netbsd*)
6785       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6786         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6787         wlarc=
6788       else
6789         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6790         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6791       fi
6792       ;;
6793
6794     solaris* | sysv5*)
6795       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6796         ld_shlibs=no
6797         cat <<EOF 1>&2
6798
6799 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6800 *** create shared libraries on Solaris systems.  Therefore, libtool
6801 *** is disabling shared libraries support.  We urge you to upgrade GNU
6802 *** binutils to release 2.9.1 or newer.  Another option is to modify
6803 *** your PATH or compiler configuration so that the native linker is
6804 *** used, and then restart.
6805
6806 EOF
6807       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6808         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6809         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6810       else
6811         ld_shlibs=no
6812       fi
6813       ;;
6814
6815     sunos4*)
6816       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6817       wlarc=
6818       hardcode_direct=yes
6819       hardcode_shlibpath_var=no
6820       ;;
6821
6822     *)
6823       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6824         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6825         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6826       else
6827         ld_shlibs=no
6828       fi
6829       ;;
6830     esac
6831
6832     if test "$ld_shlibs" = yes; then
6833       runpath_var=LD_RUN_PATH
6834       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6835       export_dynamic_flag_spec='${wl}--export-dynamic'
6836       # ancient GNU ld didn't support --whole-archive et. al.
6837       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6838         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6839       else
6840         whole_archive_flag_spec=
6841       fi
6842     fi
6843   else
6844     # PORTME fill in a description of your system's linker (not GNU ld)
6845     case $host_os in
6846     aix3*)
6847       allow_undefined_flag=unsupported
6848       always_export_symbols=yes
6849       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'
6850       # Note: this linker hardcodes the directories in LIBPATH if there
6851       # are no directories specified by -L.
6852       hardcode_minus_L=yes
6853       if test "$GCC" = yes && test -z "$link_static_flag"; then
6854         # Neither direct hardcoding nor static linking is supported with a
6855         # broken collect2.
6856         hardcode_direct=unsupported
6857       fi
6858       ;;
6859
6860     aix4* | aix5*)
6861       if test "$host_cpu" = ia64; then
6862         # On IA64, the linker does run time linking by default, so we don't
6863         # have to do anything special.
6864         aix_use_runtimelinking=no
6865         exp_sym_flag='-Bexport'
6866         no_entry_flag=""
6867       else
6868         # If we're using GNU nm, then we don't want the "-C" option.
6869         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6870         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6871           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'
6872         else
6873           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'
6874         fi
6875         aix_use_runtimelinking=no
6876
6877         # Test if we are trying to use run time linking or normal
6878         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6879         # need to do runtime linking.
6880         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6881           for ld_flag in $LDFLAGS; do
6882           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6883             aix_use_runtimelinking=yes
6884             break
6885           fi
6886           done
6887         esac
6888
6889         exp_sym_flag='-bexport'
6890         no_entry_flag='-bnoentry'
6891       fi
6892
6893       # When large executables or shared objects are built, AIX ld can
6894       # have problems creating the table of contents.  If linking a library
6895       # or program results in "error TOC overflow" add -mminimal-toc to
6896       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6897       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6898
6899       archive_cmds=''
6900       hardcode_direct=yes
6901       hardcode_libdir_separator=':'
6902       link_all_deplibs=yes
6903
6904       if test "$GCC" = yes; then
6905         case $host_os in aix4.012|aix4.012.*)
6906         # We only want to do this on AIX 4.2 and lower, the check
6907         # below for broken collect2 doesn't work under 4.3+
6908           collect2name=`${CC} -print-prog-name=collect2`
6909           if test -f "$collect2name" && \
6910            strings "$collect2name" | grep resolve_lib_name >/dev/null
6911           then
6912           # We have reworked collect2
6913           hardcode_direct=yes
6914           else
6915           # We have old collect2
6916           hardcode_direct=unsupported
6917           # It fails to find uninstalled libraries when the uninstalled
6918           # path is not listed in the libpath.  Setting hardcode_minus_L
6919           # to unsupported forces relinking
6920           hardcode_minus_L=yes
6921           hardcode_libdir_flag_spec='-L$libdir'
6922           hardcode_libdir_separator=
6923           fi
6924         esac
6925         shared_flag='-shared'
6926       else
6927         # not using gcc
6928         if test "$host_cpu" = ia64; then
6929         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6930         # chokes on -Wl,-G. The following line is correct:
6931           shared_flag='-G'
6932         else
6933         if test "$aix_use_runtimelinking" = yes; then
6934             shared_flag='${wl}-G'
6935           else
6936             shared_flag='${wl}-bM:SRE'
6937         fi
6938         fi
6939       fi
6940
6941       # It seems that -bexpall does not export symbols beginning with
6942       # underscore (_), so it is better to generate a list of symbols to export.
6943       always_export_symbols=yes
6944       if test "$aix_use_runtimelinking" = yes; then
6945         # Warning - without using the other runtime loading flags (-brtl),
6946         # -berok will link without error, but may produce a broken library.
6947         allow_undefined_flag='-berok'
6948        # Determine the default libpath from the value encoded in an empty executable.
6949        cat >conftest.$ac_ext <<_ACEOF
6950 #line $LINENO "configure"
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956
6957 int
6958 main ()
6959 {
6960
6961   ;
6962   return 0;
6963 }
6964 _ACEOF
6965 rm -f conftest.$ac_objext conftest$ac_exeext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967   (eval $ac_link) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } &&
6971          { ac_try='test -s conftest$ac_exeext'
6972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973   (eval $ac_try) 2>&5
6974   ac_status=$?
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); }; }; then
6977
6978 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6979 }'`
6980 # Check for a 64-bit object if we didn't find anything.
6981 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; }
6982 }'`; fi
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6986
6987 fi
6988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6990
6991        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6992         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"
6993        else
6994         if test "$host_cpu" = ia64; then
6995           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6996           allow_undefined_flag="-z nodefs"
6997           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"
6998         else
6999          # Determine the default libpath from the value encoded in an empty executable.
7000          cat >conftest.$ac_ext <<_ACEOF
7001 #line $LINENO "configure"
7002 /* confdefs.h.  */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h.  */
7007
7008 int
7009 main ()
7010 {
7011
7012   ;
7013   return 0;
7014 }
7015 _ACEOF
7016 rm -f conftest.$ac_objext conftest$ac_exeext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018   (eval $ac_link) 2>&5
7019   ac_status=$?
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } &&
7022          { ac_try='test -s conftest$ac_exeext'
7023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024   (eval $ac_try) 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); }; }; then
7028
7029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7030 }'`
7031 # Check for a 64-bit object if we didn't find anything.
7032 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; }
7033 }'`; fi
7034 else
7035   echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7037
7038 fi
7039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7041
7042          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7043           # Warning - without using the other run time loading flags,
7044           # -berok will link without error, but may produce a broken library.
7045           no_undefined_flag=' ${wl}-bernotok'
7046           allow_undefined_flag=' ${wl}-berok'
7047           # -bexpall does not export symbols beginning with underscore (_)
7048           always_export_symbols=yes
7049           # Exported symbols can be pulled into shared objects from archives
7050           whole_archive_flag_spec=' '
7051           archive_cmds_need_lc=yes
7052           # This is similar to how AIX traditionally builds it's shared libraries.
7053           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'
7054         fi
7055       fi
7056       ;;
7057
7058     amigaos*)
7059       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)'
7060       hardcode_libdir_flag_spec='-L$libdir'
7061       hardcode_minus_L=yes
7062       # see comment about different semantics on the GNU ld section
7063       ld_shlibs=no
7064       ;;
7065
7066     bsdi4*)
7067       export_dynamic_flag_spec=-rdynamic
7068       ;;
7069
7070     cygwin* | mingw* | pw32*)
7071       # When not using gcc, we currently assume that we are using
7072       # Microsoft Visual C++.
7073       # hardcode_libdir_flag_spec is actually meaningless, as there is
7074       # no search path for DLLs.
7075       hardcode_libdir_flag_spec=' '
7076       allow_undefined_flag=unsupported
7077       # Tell ltmain to make .lib files, not .a files.
7078       libext=lib
7079       # Tell ltmain to make .dll files, not .so files.
7080       shrext=".dll"
7081       # FIXME: Setting linknames here is a bad hack.
7082       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7083       # The linker will automatically build a .lib file if we build a DLL.
7084       old_archive_From_new_cmds='true'
7085       # FIXME: Should let the user specify the lib program.
7086       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7087       fix_srcfile_path='`cygpath -w "$srcfile"`'
7088       enable_shared_with_static_runtimes=yes
7089       ;;
7090
7091     darwin* | rhapsody*)
7092     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7093       archive_cmds_need_lc=no
7094       case "$host_os" in
7095       rhapsody* | darwin1.[012])
7096         allow_undefined_flag='-undefined suppress'
7097         ;;
7098       *) # Darwin 1.3 on
7099         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7100         ;;
7101       esac
7102       # FIXME: Relying on posixy $() will cause problems for
7103       #        cross-compilation, but unfortunately the echo tests do not
7104       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7105       #        `"' quotes if we put them in here... so don't!
7106         lt_int_apple_cc_single_mod=no
7107         output_verbose_link_cmd='echo'
7108         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7109           lt_int_apple_cc_single_mod=yes
7110         fi
7111         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7112           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7113         else
7114         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'
7115       fi
7116       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7117       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7118         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7119           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}'
7120         else
7121           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}'
7122         fi
7123           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}'
7124       hardcode_direct=no
7125       hardcode_automatic=yes
7126       hardcode_shlibpath_var=unsupported
7127       whole_archive_flag_spec='-all_load $convenience'
7128       link_all_deplibs=yes
7129     fi
7130       ;;
7131
7132     dgux*)
7133       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7134       hardcode_libdir_flag_spec='-L$libdir'
7135       hardcode_shlibpath_var=no
7136       ;;
7137
7138     freebsd1*)
7139       ld_shlibs=no
7140       ;;
7141
7142     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7143     # support.  Future versions do this automatically, but an explicit c++rt0.o
7144     # does not break anything, and helps significantly (at the cost of a little
7145     # extra space).
7146     freebsd2.2*)
7147       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7148       hardcode_libdir_flag_spec='-R$libdir'
7149       hardcode_direct=yes
7150       hardcode_shlibpath_var=no
7151       ;;
7152
7153     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7154     freebsd2*)
7155       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7156       hardcode_direct=yes
7157       hardcode_minus_L=yes
7158       hardcode_shlibpath_var=no
7159       ;;
7160
7161     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7162     freebsd*)
7163       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7164       hardcode_libdir_flag_spec='-R$libdir'
7165       hardcode_direct=yes
7166       hardcode_shlibpath_var=no
7167       ;;
7168
7169     hpux9*)
7170       if test "$GCC" = yes; then
7171         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'
7172       else
7173         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'
7174       fi
7175       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7176       hardcode_libdir_separator=:
7177       hardcode_direct=yes
7178
7179       # hardcode_minus_L: Not really in the search PATH,
7180       # but as the default location of the library.
7181       hardcode_minus_L=yes
7182       export_dynamic_flag_spec='${wl}-E'
7183       ;;
7184
7185     hpux10* | hpux11*)
7186       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7187         case "$host_cpu" in
7188         hppa*64*|ia64*)
7189           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7190           ;;
7191         *)
7192           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7193           ;;
7194         esac
7195       else
7196         case "$host_cpu" in
7197         hppa*64*|ia64*)
7198           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7199           ;;
7200         *)
7201           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7202           ;;
7203         esac
7204       fi
7205       if test "$with_gnu_ld" = no; then
7206         case "$host_cpu" in
7207         hppa*64*)
7208           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7209           hardcode_libdir_flag_spec_ld='+b $libdir'
7210           hardcode_libdir_separator=:
7211           hardcode_direct=no
7212           hardcode_shlibpath_var=no
7213           ;;
7214         ia64*)
7215           hardcode_libdir_flag_spec='-L$libdir'
7216           hardcode_direct=no
7217           hardcode_shlibpath_var=no
7218
7219           # hardcode_minus_L: Not really in the search PATH,
7220           # but as the default location of the library.
7221           hardcode_minus_L=yes
7222           ;;
7223         *)
7224           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7225           hardcode_libdir_separator=:
7226           hardcode_direct=yes
7227           export_dynamic_flag_spec='${wl}-E'
7228
7229           # hardcode_minus_L: Not really in the search PATH,
7230           # but as the default location of the library.
7231           hardcode_minus_L=yes
7232           ;;
7233         esac
7234       fi
7235       ;;
7236
7237     irix5* | irix6* | nonstopux*)
7238       if test "$GCC" = yes; then
7239         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'
7240       else
7241         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'
7242         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7243       fi
7244       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7245       hardcode_libdir_separator=:
7246       link_all_deplibs=yes
7247       ;;
7248
7249     netbsd*)
7250       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7251         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7252       else
7253         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7254       fi
7255       hardcode_libdir_flag_spec='-R$libdir'
7256       hardcode_direct=yes
7257       hardcode_shlibpath_var=no
7258       ;;
7259
7260     newsos6)
7261       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7262       hardcode_direct=yes
7263       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7264       hardcode_libdir_separator=:
7265       hardcode_shlibpath_var=no
7266       ;;
7267
7268     openbsd*)
7269       hardcode_direct=yes
7270       hardcode_shlibpath_var=no
7271       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7272         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7273         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7274         export_dynamic_flag_spec='${wl}-E'
7275       else
7276        case $host_os in
7277          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7278            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7279            hardcode_libdir_flag_spec='-R$libdir'
7280            ;;
7281          *)
7282            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7283            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7284            ;;
7285        esac
7286       fi
7287       ;;
7288
7289     os2*)
7290       hardcode_libdir_flag_spec='-L$libdir'
7291       hardcode_minus_L=yes
7292       allow_undefined_flag=unsupported
7293       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'
7294       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7295       ;;
7296
7297     osf3*)
7298       if test "$GCC" = yes; then
7299         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7300         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'
7301       else
7302         allow_undefined_flag=' -expect_unresolved \*'
7303         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'
7304       fi
7305       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7306       hardcode_libdir_separator=:
7307       ;;
7308
7309     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7310       if test "$GCC" = yes; then
7311         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7312         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'
7313         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7314       else
7315         allow_undefined_flag=' -expect_unresolved \*'
7316         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'
7317         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7318         $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'
7319
7320         # Both c and cxx compiler support -rpath directly
7321         hardcode_libdir_flag_spec='-rpath $libdir'
7322       fi
7323       hardcode_libdir_separator=:
7324       ;;
7325
7326     sco3.2v5*)
7327       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328       hardcode_shlibpath_var=no
7329       export_dynamic_flag_spec='${wl}-Bexport'
7330       runpath_var=LD_RUN_PATH
7331       hardcode_runpath_var=yes
7332       ;;
7333
7334     solaris*)
7335       no_undefined_flag=' -z text'
7336       if test "$GCC" = yes; then
7337         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7338         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7339           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7340       else
7341         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7343         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7344       fi
7345       hardcode_libdir_flag_spec='-R$libdir'
7346       hardcode_shlibpath_var=no
7347       case $host_os in
7348       solaris2.[0-5] | solaris2.[0-5].*) ;;
7349       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7350         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7351       esac
7352       link_all_deplibs=yes
7353       ;;
7354
7355     sunos4*)
7356       if test "x$host_vendor" = xsequent; then
7357         # Use $CC to link under sequent, because it throws in some extra .o
7358         # files that make .init and .fini sections work.
7359         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7360       else
7361         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7362       fi
7363       hardcode_libdir_flag_spec='-L$libdir'
7364       hardcode_direct=yes
7365       hardcode_minus_L=yes
7366       hardcode_shlibpath_var=no
7367       ;;
7368
7369     sysv4)
7370       case $host_vendor in
7371         sni)
7372           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7373           hardcode_direct=yes # is this really true???
7374         ;;
7375         siemens)
7376           ## LD is ld it makes a PLAMLIB
7377           ## CC just makes a GrossModule.
7378           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7379           reload_cmds='$CC -r -o $output$reload_objs'
7380           hardcode_direct=no
7381         ;;
7382         motorola)
7383           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7385         ;;
7386       esac
7387       runpath_var='LD_RUN_PATH'
7388       hardcode_shlibpath_var=no
7389       ;;
7390
7391     sysv4.3*)
7392       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7393       hardcode_shlibpath_var=no
7394       export_dynamic_flag_spec='-Bexport'
7395       ;;
7396
7397     sysv4*MP*)
7398       if test -d /usr/nec; then
7399         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400         hardcode_shlibpath_var=no
7401         runpath_var=LD_RUN_PATH
7402         hardcode_runpath_var=yes
7403         ld_shlibs=yes
7404       fi
7405       ;;
7406
7407     sysv4.2uw2*)
7408       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7409       hardcode_direct=yes
7410       hardcode_minus_L=no
7411       hardcode_shlibpath_var=no
7412       hardcode_runpath_var=yes
7413       runpath_var=LD_RUN_PATH
7414       ;;
7415
7416    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7417       no_undefined_flag='${wl}-z ${wl}text'
7418       if test "$GCC" = yes; then
7419         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7420       else
7421         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7422       fi
7423       runpath_var='LD_RUN_PATH'
7424       hardcode_shlibpath_var=no
7425       ;;
7426
7427     sysv5*)
7428       no_undefined_flag=' -z text'
7429       # $CC -shared without GNU ld will not create a library from C++
7430       # object files and a static libstdc++, better avoid it by now
7431       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7433                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7434       hardcode_libdir_flag_spec=
7435       hardcode_shlibpath_var=no
7436       runpath_var='LD_RUN_PATH'
7437       ;;
7438
7439     uts4*)
7440       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7441       hardcode_libdir_flag_spec='-L$libdir'
7442       hardcode_shlibpath_var=no
7443       ;;
7444
7445     *)
7446       ld_shlibs=no
7447       ;;
7448     esac
7449   fi
7450
7451 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7452 echo "${ECHO_T}$ld_shlibs" >&6
7453 test "$ld_shlibs" = no && can_build_shared=no
7454
7455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7456 if test "$GCC" = yes; then
7457   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7458 fi
7459
7460 #
7461 # Do we need to explicitly link libc?
7462 #
7463 case "x$archive_cmds_need_lc" in
7464 x|xyes)
7465   # Assume -lc should be added
7466   archive_cmds_need_lc=yes
7467
7468   if test "$enable_shared" = yes && test "$GCC" = yes; then
7469     case $archive_cmds in
7470     *'~'*)
7471       # FIXME: we may have to deal with multi-command sequences.
7472       ;;
7473     '$CC '*)
7474       # Test whether the compiler implicitly links with -lc since on some
7475       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7476       # to ld, don't add -lc before -lgcc.
7477       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7478 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7479       $rm conftest*
7480       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7481
7482       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483   (eval $ac_compile) 2>&5
7484   ac_status=$?
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); } 2>conftest.err; then
7487         soname=conftest
7488         lib=conftest
7489         libobjs=conftest.$ac_objext
7490         deplibs=
7491         wl=$lt_prog_compiler_wl
7492         compiler_flags=-v
7493         linker_flags=-v
7494         verstring=
7495         output_objdir=.
7496         libname=conftest
7497         lt_save_allow_undefined_flag=$allow_undefined_flag
7498         allow_undefined_flag=
7499         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7500   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); }
7504         then
7505           archive_cmds_need_lc=no
7506         else
7507           archive_cmds_need_lc=yes
7508         fi
7509         allow_undefined_flag=$lt_save_allow_undefined_flag
7510       else
7511         cat conftest.err 1>&5
7512       fi
7513       $rm conftest*
7514       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7515 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7516       ;;
7517     esac
7518   fi
7519   ;;
7520 esac
7521
7522 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7523 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7524 hardcode_action=
7525 if test -n "$hardcode_libdir_flag_spec" || \
7526    test -n "$runpath_var " || \
7527    test "X$hardcode_automatic"="Xyes" ; then
7528
7529   # We can hardcode non-existant directories.
7530   if test "$hardcode_direct" != no &&
7531      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7532      # have to relink, otherwise we might link with an installed library
7533      # when we should be linking with a yet-to-be-installed one
7534      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7535      test "$hardcode_minus_L" != no; then
7536     # Linking always hardcodes the temporary library directory.
7537     hardcode_action=relink
7538   else
7539     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7540     hardcode_action=immediate
7541   fi
7542 else
7543   # We cannot hardcode anything, or else we can only hardcode existing
7544   # directories.
7545   hardcode_action=unsupported
7546 fi
7547 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7548 echo "${ECHO_T}$hardcode_action" >&6
7549
7550 if test "$hardcode_action" = relink; then
7551   # Fast installation is not supported
7552   enable_fast_install=no
7553 elif test "$shlibpath_overrides_runpath" = yes ||
7554      test "$enable_shared" = no; then
7555   # Fast installation is not necessary
7556   enable_fast_install=needless
7557 fi
7558
7559 striplib=
7560 old_striplib=
7561 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7562 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7563 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7564   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7565   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7566   echo "$as_me:$LINENO: result: yes" >&5
7567 echo "${ECHO_T}yes" >&6
7568 else
7569 # FIXME - insert some real tests, host_os isn't really good enough
7570   case $host_os in
7571    darwin*)
7572        if test -n "$STRIP" ; then
7573          striplib="$STRIP -x"
7574          echo "$as_me:$LINENO: result: yes" >&5
7575 echo "${ECHO_T}yes" >&6
7576        else
7577   echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7579 fi
7580        ;;
7581    *)
7582   echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7584     ;;
7585   esac
7586 fi
7587
7588 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7589 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7590 library_names_spec=
7591 libname_spec='lib$name'
7592 soname_spec=
7593 shrext=".so"
7594 postinstall_cmds=
7595 postuninstall_cmds=
7596 finish_cmds=
7597 finish_eval=
7598 shlibpath_var=
7599 shlibpath_overrides_runpath=unknown
7600 version_type=none
7601 dynamic_linker="$host_os ld.so"
7602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7603 if test "$GCC" = yes; then
7604   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7605   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7606     # if the path contains ";" then we assume it to be the separator
7607     # otherwise default to the standard path separator (i.e. ":") - it is
7608     # assumed that no part of a normal pathname contains ";" but that should
7609     # okay in the real world where ";" in dirpaths is itself problematic.
7610     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7611   else
7612     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7613   fi
7614 else
7615   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7616 fi
7617 need_lib_prefix=unknown
7618 hardcode_into_libs=no
7619
7620 # when you set need_version to no, make sure it does not cause -set_version
7621 # flags to be left without arguments
7622 need_version=unknown
7623
7624 case $host_os in
7625 aix3*)
7626   version_type=linux
7627   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7628   shlibpath_var=LIBPATH
7629
7630   # AIX 3 has no versioning support, so we append a major version to the name.
7631   soname_spec='${libname}${release}${shared_ext}$major'
7632   ;;
7633
7634 aix4* | aix5*)
7635   version_type=linux
7636   need_lib_prefix=no
7637   need_version=no
7638   hardcode_into_libs=yes
7639   if test "$host_cpu" = ia64; then
7640     # AIX 5 supports IA64
7641     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7642     shlibpath_var=LD_LIBRARY_PATH
7643   else
7644     # With GCC up to 2.95.x, collect2 would create an import file
7645     # for dependence libraries.  The import file would start with
7646     # the line `#! .'.  This would cause the generated library to
7647     # depend on `.', always an invalid library.  This was fixed in
7648     # development snapshots of GCC prior to 3.0.
7649     case $host_os in
7650       aix4 | aix4.[01] | aix4.[01].*)
7651       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7652            echo ' yes '
7653            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7654         :
7655       else
7656         can_build_shared=no
7657       fi
7658       ;;
7659     esac
7660     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7661     # soname into executable. Probably we can add versioning support to
7662     # collect2, so additional links can be useful in future.
7663     if test "$aix_use_runtimelinking" = yes; then
7664       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7665       # instead of lib<name>.a to let people know that these are not
7666       # typical AIX shared libraries.
7667       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7668     else
7669       # We preserve .a as extension for shared libraries through AIX4.2
7670       # and later when we are not doing run time linking.
7671       library_names_spec='${libname}${release}.a $libname.a'
7672       soname_spec='${libname}${release}${shared_ext}$major'
7673     fi
7674     shlibpath_var=LIBPATH
7675   fi
7676   ;;
7677
7678 amigaos*)
7679   library_names_spec='$libname.ixlibrary $libname.a'
7680   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7681   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'
7682   ;;
7683
7684 beos*)
7685   library_names_spec='${libname}${shared_ext}'
7686   dynamic_linker="$host_os ld.so"
7687   shlibpath_var=LIBRARY_PATH
7688   ;;
7689
7690 bsdi4*)
7691   version_type=linux
7692   need_version=no
7693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7694   soname_spec='${libname}${release}${shared_ext}$major'
7695   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7696   shlibpath_var=LD_LIBRARY_PATH
7697   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7698   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7699   # the default ld.so.conf also contains /usr/contrib/lib and
7700   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7701   # libtool to hard-code these into programs
7702   ;;
7703
7704 cygwin* | mingw* | pw32*)
7705   version_type=windows
7706   shrext=".dll"
7707   need_version=no
7708   need_lib_prefix=no
7709
7710   case $GCC,$host_os in
7711   yes,cygwin* | yes,mingw* | yes,pw32*)
7712     library_names_spec='$libname.dll.a'
7713     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7714     postinstall_cmds='base_file=`basename \${file}`~
7715       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7716       dldir=$destdir/`dirname \$dlpath`~
7717       test -d \$dldir || mkdir -p \$dldir~
7718       $install_prog $dir/$dlname \$dldir/$dlname'
7719     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7720       dlpath=$dir/\$dldll~
7721        $rm \$dlpath'
7722     shlibpath_overrides_runpath=yes
7723
7724     case $host_os in
7725     cygwin*)
7726       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7727       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7728       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7729       ;;
7730     mingw*)
7731       # MinGW DLLs use traditional 'lib' prefix
7732       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7733       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7734       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7735         # It is most probably a Windows format PATH printed by
7736         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7737         # path with ; separators, and with drive letters. We can handle the
7738         # drive letters (cygwin fileutils understands them), so leave them,
7739         # especially as we might pass files found there to a mingw objdump,
7740         # which wouldn't understand a cygwinified path. Ahh.
7741         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7742       else
7743         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7744       fi
7745       ;;
7746     pw32*)
7747       # pw32 DLLs use 'pw' prefix rather than 'lib'
7748       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7749       ;;
7750     esac
7751     ;;
7752
7753   *)
7754     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7755     ;;
7756   esac
7757   dynamic_linker='Win32 ld.exe'
7758   # FIXME: first we should search . and the directory the executable is in
7759   shlibpath_var=PATH
7760   ;;
7761
7762 darwin* | rhapsody*)
7763   dynamic_linker="$host_os dyld"
7764   version_type=darwin
7765   need_lib_prefix=no
7766   need_version=no
7767   # FIXME: Relying on posixy $() will cause problems for
7768   #        cross-compilation, but unfortunately the echo tests do not
7769   #        yet detect zsh echo's removal of \ escapes.
7770   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7771   soname_spec='${libname}${release}${major}$shared_ext'
7772   shlibpath_overrides_runpath=yes
7773   shlibpath_var=DYLD_LIBRARY_PATH
7774   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7775   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7776   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7777   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"`
7778   fi
7779   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7780   ;;
7781
7782 dgux*)
7783   version_type=linux
7784   need_lib_prefix=no
7785   need_version=no
7786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7787   soname_spec='${libname}${release}${shared_ext}$major'
7788   shlibpath_var=LD_LIBRARY_PATH
7789   ;;
7790
7791 freebsd1*)
7792   dynamic_linker=no
7793   ;;
7794
7795 freebsd*)
7796   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7797   version_type=freebsd-$objformat
7798   case $version_type in
7799     freebsd-elf*)
7800       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7801       need_version=no
7802       need_lib_prefix=no
7803       ;;
7804     freebsd-*)
7805       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7806       need_version=yes
7807       ;;
7808   esac
7809   shlibpath_var=LD_LIBRARY_PATH
7810   case $host_os in
7811   freebsd2*)
7812     shlibpath_overrides_runpath=yes
7813     ;;
7814   freebsd3.01* | freebsdelf3.01*)
7815     shlibpath_overrides_runpath=yes
7816     hardcode_into_libs=yes
7817     ;;
7818   *) # from 3.2 on
7819     shlibpath_overrides_runpath=no
7820     hardcode_into_libs=yes
7821     ;;
7822   esac
7823   ;;
7824
7825 gnu*)
7826   version_type=linux
7827   need_lib_prefix=no
7828   need_version=no
7829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7830   soname_spec='${libname}${release}${shared_ext}$major'
7831   shlibpath_var=LD_LIBRARY_PATH
7832   hardcode_into_libs=yes
7833   ;;
7834
7835 hpux9* | hpux10* | hpux11*)
7836   # Give a soname corresponding to the major version so that dld.sl refuses to
7837   # link against other versions.
7838   version_type=sunos
7839   need_lib_prefix=no
7840   need_version=no
7841   case "$host_cpu" in
7842   ia64*)
7843     shrext='.so'
7844     hardcode_into_libs=yes
7845     dynamic_linker="$host_os dld.so"
7846     shlibpath_var=LD_LIBRARY_PATH
7847     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849     soname_spec='${libname}${release}${shared_ext}$major'
7850     if test "X$HPUX_IA64_MODE" = X32; then
7851       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7852     else
7853       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7854     fi
7855     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7856     ;;
7857    hppa*64*)
7858      shrext='.sl'
7859      hardcode_into_libs=yes
7860      dynamic_linker="$host_os dld.sl"
7861      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7862      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7863      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7864      soname_spec='${libname}${release}${shared_ext}$major'
7865      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7866      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7867      ;;
7868    *)
7869     shrext='.sl'
7870     dynamic_linker="$host_os dld.sl"
7871     shlibpath_var=SHLIB_PATH
7872     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874     soname_spec='${libname}${release}${shared_ext}$major'
7875     ;;
7876   esac
7877   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7878   postinstall_cmds='chmod 555 $lib'
7879   ;;
7880
7881 irix5* | irix6* | nonstopux*)
7882   case $host_os in
7883     nonstopux*) version_type=nonstopux ;;
7884     *)
7885         if test "$lt_cv_prog_gnu_ld" = yes; then
7886                 version_type=linux
7887         else
7888                 version_type=irix
7889         fi ;;
7890   esac
7891   need_lib_prefix=no
7892   need_version=no
7893   soname_spec='${libname}${release}${shared_ext}$major'
7894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7895   case $host_os in
7896   irix5* | nonstopux*)
7897     libsuff= shlibsuff=
7898     ;;
7899   *)
7900     case $LD in # libtool.m4 will add one of these switches to LD
7901     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7902       libsuff= shlibsuff= libmagic=32-bit;;
7903     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7904       libsuff=32 shlibsuff=N32 libmagic=N32;;
7905     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7906       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7907     *) libsuff= shlibsuff= libmagic=never-match;;
7908     esac
7909     ;;
7910   esac
7911   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7912   shlibpath_overrides_runpath=no
7913   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7914   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7915   hardcode_into_libs=yes
7916   ;;
7917
7918 # No shared lib support for Linux oldld, aout, or coff.
7919 linux*oldld* | linux*aout* | linux*coff*)
7920   dynamic_linker=no
7921   ;;
7922
7923 # This must be Linux ELF.
7924 linux*)
7925   version_type=linux
7926   need_lib_prefix=no
7927   need_version=no
7928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929   soname_spec='${libname}${release}${shared_ext}$major'
7930   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7931   shlibpath_var=LD_LIBRARY_PATH
7932   shlibpath_overrides_runpath=no
7933   # This implies no fast_install, which is unacceptable.
7934   # Some rework will be needed to allow for fast_install
7935   # before this can be enabled.
7936   hardcode_into_libs=yes
7937
7938   # We used to test for /lib/ld.so.1 and disable shared libraries on
7939   # powerpc, because MkLinux only supported shared libraries with the
7940   # GNU dynamic linker.  Since this was broken with cross compilers,
7941   # most powerpc-linux boxes support dynamic linking these days and
7942   # people can always --disable-shared, the test was removed, and we
7943   # assume the GNU/Linux dynamic linker is in use.
7944   dynamic_linker='GNU/Linux ld.so'
7945   ;;
7946
7947 netbsd*)
7948   version_type=sunos
7949   need_lib_prefix=no
7950   need_version=no
7951   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7952     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7953     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7954     dynamic_linker='NetBSD (a.out) ld.so'
7955   else
7956     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7957     soname_spec='${libname}${release}${shared_ext}$major'
7958     dynamic_linker='NetBSD ld.elf_so'
7959   fi
7960   shlibpath_var=LD_LIBRARY_PATH
7961   shlibpath_overrides_runpath=yes
7962   hardcode_into_libs=yes
7963   ;;
7964
7965 newsos6)
7966   version_type=linux
7967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7968   shlibpath_var=LD_LIBRARY_PATH
7969   shlibpath_overrides_runpath=yes
7970   ;;
7971
7972 nto-qnx)
7973   version_type=linux
7974   need_lib_prefix=no
7975   need_version=no
7976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7977   soname_spec='${libname}${release}${shared_ext}$major'
7978   shlibpath_var=LD_LIBRARY_PATH
7979   shlibpath_overrides_runpath=yes
7980   ;;
7981
7982 openbsd*)
7983   version_type=sunos
7984   need_lib_prefix=no
7985   need_version=no
7986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7987   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7988   shlibpath_var=LD_LIBRARY_PATH
7989   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7990     case $host_os in
7991       openbsd2.[89] | openbsd2.[89].*)
7992         shlibpath_overrides_runpath=no
7993         ;;
7994       *)
7995         shlibpath_overrides_runpath=yes
7996         ;;
7997       esac
7998   else
7999     shlibpath_overrides_runpath=yes
8000   fi
8001   ;;
8002
8003 os2*)
8004   libname_spec='$name'
8005   shrext=".dll"
8006   need_lib_prefix=no
8007   library_names_spec='$libname${shared_ext} $libname.a'
8008   dynamic_linker='OS/2 ld.exe'
8009   shlibpath_var=LIBPATH
8010   ;;
8011
8012 osf3* | osf4* | osf5*)
8013   version_type=osf
8014   need_lib_prefix=no
8015   need_version=no
8016   soname_spec='${libname}${release}${shared_ext}$major'
8017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8018   shlibpath_var=LD_LIBRARY_PATH
8019   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8020   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8021   ;;
8022
8023 sco3.2v5*)
8024   version_type=osf
8025   soname_spec='${libname}${release}${shared_ext}$major'
8026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8027   shlibpath_var=LD_LIBRARY_PATH
8028   ;;
8029
8030 solaris*)
8031   version_type=linux
8032   need_lib_prefix=no
8033   need_version=no
8034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8035   soname_spec='${libname}${release}${shared_ext}$major'
8036   shlibpath_var=LD_LIBRARY_PATH
8037   shlibpath_overrides_runpath=yes
8038   hardcode_into_libs=yes
8039   # ldd complains unless libraries are executable
8040   postinstall_cmds='chmod +x $lib'
8041   ;;
8042
8043 sunos4*)
8044   version_type=sunos
8045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8046   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8047   shlibpath_var=LD_LIBRARY_PATH
8048   shlibpath_overrides_runpath=yes
8049   if test "$with_gnu_ld" = yes; then
8050     need_lib_prefix=no
8051   fi
8052   need_version=yes
8053   ;;
8054
8055 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8056   version_type=linux
8057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8058   soname_spec='${libname}${release}${shared_ext}$major'
8059   shlibpath_var=LD_LIBRARY_PATH
8060   case $host_vendor in
8061     sni)
8062       shlibpath_overrides_runpath=no
8063       need_lib_prefix=no
8064       export_dynamic_flag_spec='${wl}-Blargedynsym'
8065       runpath_var=LD_RUN_PATH
8066       ;;
8067     siemens)
8068       need_lib_prefix=no
8069       ;;
8070     motorola)
8071       need_lib_prefix=no
8072       need_version=no
8073       shlibpath_overrides_runpath=no
8074       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8075       ;;
8076   esac
8077   ;;
8078
8079 sysv4*MP*)
8080   if test -d /usr/nec ;then
8081     version_type=linux
8082     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8083     soname_spec='$libname${shared_ext}.$major'
8084     shlibpath_var=LD_LIBRARY_PATH
8085   fi
8086   ;;
8087
8088 uts4*)
8089   version_type=linux
8090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091   soname_spec='${libname}${release}${shared_ext}$major'
8092   shlibpath_var=LD_LIBRARY_PATH
8093   ;;
8094
8095 *)
8096   dynamic_linker=no
8097   ;;
8098 esac
8099 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8100 echo "${ECHO_T}$dynamic_linker" >&6
8101 test "$dynamic_linker" = no && can_build_shared=no
8102
8103 if test "x$enable_dlopen" != xyes; then
8104   enable_dlopen=unknown
8105   enable_dlopen_self=unknown
8106   enable_dlopen_self_static=unknown
8107 else
8108   lt_cv_dlopen=no
8109   lt_cv_dlopen_libs=
8110
8111   case $host_os in
8112   beos*)
8113     lt_cv_dlopen="load_add_on"
8114     lt_cv_dlopen_libs=
8115     lt_cv_dlopen_self=yes
8116     ;;
8117
8118   mingw* | pw32*)
8119     lt_cv_dlopen="LoadLibrary"
8120     lt_cv_dlopen_libs=
8121    ;;
8122
8123   cygwin*)
8124     lt_cv_dlopen="dlopen"
8125     lt_cv_dlopen_libs=
8126    ;;
8127
8128   darwin*)
8129   # if libdl is installed we need to link against it
8130     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8131 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8132 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   ac_check_lib_save_LIBS=$LIBS
8136 LIBS="-ldl  $LIBS"
8137 cat >conftest.$ac_ext <<_ACEOF
8138 #line $LINENO "configure"
8139 /* confdefs.h.  */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h.  */
8144
8145 /* Override any gcc2 internal prototype to avoid an error.  */
8146 #ifdef __cplusplus
8147 extern "C"
8148 #endif
8149 /* We use char because int might match the return type of a gcc2
8150    builtin and then its argument prototype would still apply.  */
8151 char dlopen ();
8152 int
8153 main ()
8154 {
8155 dlopen ();
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162   (eval $ac_link) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } &&
8166          { ac_try='test -s conftest$ac_exeext'
8167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168   (eval $ac_try) 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; }; then
8172   ac_cv_lib_dl_dlopen=yes
8173 else
8174   echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8176
8177 ac_cv_lib_dl_dlopen=no
8178 fi
8179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8180 LIBS=$ac_check_lib_save_LIBS
8181 fi
8182 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8183 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8184 if test $ac_cv_lib_dl_dlopen = yes; then
8185   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8186 else
8187
8188     lt_cv_dlopen="dyld"
8189     lt_cv_dlopen_libs=
8190     lt_cv_dlopen_self=yes
8191
8192 fi
8193
8194    ;;
8195
8196   *)
8197     echo "$as_me:$LINENO: checking for shl_load" >&5
8198 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8199 if test "${ac_cv_func_shl_load+set}" = set; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   cat >conftest.$ac_ext <<_ACEOF
8203 #line $LINENO "configure"
8204 /* confdefs.h.  */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h.  */
8209 /* System header to define __stub macros and hopefully few prototypes,
8210     which can conflict with char shl_load (); below.
8211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8212     <limits.h> exists even on freestanding compilers.  */
8213 #ifdef __STDC__
8214 # include <limits.h>
8215 #else
8216 # include <assert.h>
8217 #endif
8218 /* Override any gcc2 internal prototype to avoid an error.  */
8219 #ifdef __cplusplus
8220 extern "C"
8221 {
8222 #endif
8223 /* We use char because int might match the return type of a gcc2
8224    builtin and then its argument prototype would still apply.  */
8225 char shl_load ();
8226 /* The GNU C library defines this for functions which it implements
8227     to always fail with ENOSYS.  Some functions are actually named
8228     something starting with __ and the normal name is an alias.  */
8229 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8230 choke me
8231 #else
8232 char (*f) () = shl_load;
8233 #endif
8234 #ifdef __cplusplus
8235 }
8236 #endif
8237
8238 int
8239 main ()
8240 {
8241 return f != shl_load;
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext conftest$ac_exeext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248   (eval $ac_link) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } &&
8252          { ac_try='test -s conftest$ac_exeext'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; }; then
8258   ac_cv_func_shl_load=yes
8259 else
8260   echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263 ac_cv_func_shl_load=no
8264 fi
8265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8266 fi
8267 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8268 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8269 if test $ac_cv_func_shl_load = yes; then
8270   lt_cv_dlopen="shl_load"
8271 else
8272   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8273 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8274 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   ac_check_lib_save_LIBS=$LIBS
8278 LIBS="-ldld  $LIBS"
8279 cat >conftest.$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286
8287 /* Override any gcc2 internal prototype to avoid an error.  */
8288 #ifdef __cplusplus
8289 extern "C"
8290 #endif
8291 /* We use char because int might match the return type of a gcc2
8292    builtin and then its argument prototype would still apply.  */
8293 char shl_load ();
8294 int
8295 main ()
8296 {
8297 shl_load ();
8298   ;
8299   return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304   (eval $ac_link) 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); } &&
8308          { ac_try='test -s conftest$ac_exeext'
8309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; }; then
8314   ac_cv_lib_dld_shl_load=yes
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 ac_cv_lib_dld_shl_load=no
8320 fi
8321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8322 LIBS=$ac_check_lib_save_LIBS
8323 fi
8324 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8325 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8326 if test $ac_cv_lib_dld_shl_load = yes; then
8327   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8328 else
8329   echo "$as_me:$LINENO: checking for dlopen" >&5
8330 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8331 if test "${ac_cv_func_dlopen+set}" = set; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334   cat >conftest.$ac_ext <<_ACEOF
8335 #line $LINENO "configure"
8336 /* confdefs.h.  */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h.  */
8341 /* System header to define __stub macros and hopefully few prototypes,
8342     which can conflict with char dlopen (); below.
8343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8344     <limits.h> exists even on freestanding compilers.  */
8345 #ifdef __STDC__
8346 # include <limits.h>
8347 #else
8348 # include <assert.h>
8349 #endif
8350 /* Override any gcc2 internal prototype to avoid an error.  */
8351 #ifdef __cplusplus
8352 extern "C"
8353 {
8354 #endif
8355 /* We use char because int might match the return type of a gcc2
8356    builtin and then its argument prototype would still apply.  */
8357 char dlopen ();
8358 /* The GNU C library defines this for functions which it implements
8359     to always fail with ENOSYS.  Some functions are actually named
8360     something starting with __ and the normal name is an alias.  */
8361 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8362 choke me
8363 #else
8364 char (*f) () = dlopen;
8365 #endif
8366 #ifdef __cplusplus
8367 }
8368 #endif
8369
8370 int
8371 main ()
8372 {
8373 return f != dlopen;
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380   (eval $ac_link) 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); } &&
8384          { ac_try='test -s conftest$ac_exeext'
8385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386   (eval $ac_try) 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; }; then
8390   ac_cv_func_dlopen=yes
8391 else
8392   echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395 ac_cv_func_dlopen=no
8396 fi
8397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8398 fi
8399 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8400 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8401 if test $ac_cv_func_dlopen = yes; then
8402   lt_cv_dlopen="dlopen"
8403 else
8404   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8405 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409   ac_check_lib_save_LIBS=$LIBS
8410 LIBS="-ldl  $LIBS"
8411 cat >conftest.$ac_ext <<_ACEOF
8412 #line $LINENO "configure"
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418
8419 /* Override any gcc2 internal prototype to avoid an error.  */
8420 #ifdef __cplusplus
8421 extern "C"
8422 #endif
8423 /* We use char because int might match the return type of a gcc2
8424    builtin and then its argument prototype would still apply.  */
8425 char dlopen ();
8426 int
8427 main ()
8428 {
8429 dlopen ();
8430   ;
8431   return 0;
8432 }
8433 _ACEOF
8434 rm -f conftest.$ac_objext conftest$ac_exeext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436   (eval $ac_link) 2>&5
8437   ac_status=$?
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } &&
8440          { ac_try='test -s conftest$ac_exeext'
8441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442   (eval $ac_try) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; }; then
8446   ac_cv_lib_dl_dlopen=yes
8447 else
8448   echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 ac_cv_lib_dl_dlopen=no
8452 fi
8453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8454 LIBS=$ac_check_lib_save_LIBS
8455 fi
8456 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8457 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8458 if test $ac_cv_lib_dl_dlopen = yes; then
8459   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8460 else
8461   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8462 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8463 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466   ac_check_lib_save_LIBS=$LIBS
8467 LIBS="-lsvld  $LIBS"
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 /* confdefs.h.  */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h.  */
8475
8476 /* Override any gcc2 internal prototype to avoid an error.  */
8477 #ifdef __cplusplus
8478 extern "C"
8479 #endif
8480 /* We use char because int might match the return type of a gcc2
8481    builtin and then its argument prototype would still apply.  */
8482 char dlopen ();
8483 int
8484 main ()
8485 {
8486 dlopen ();
8487   ;
8488   return 0;
8489 }
8490 _ACEOF
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8493   (eval $ac_link) 2>&5
8494   ac_status=$?
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } &&
8497          { ac_try='test -s conftest$ac_exeext'
8498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499   (eval $ac_try) 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; }; then
8503   ac_cv_lib_svld_dlopen=yes
8504 else
8505   echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 ac_cv_lib_svld_dlopen=no
8509 fi
8510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8511 LIBS=$ac_check_lib_save_LIBS
8512 fi
8513 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8514 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8515 if test $ac_cv_lib_svld_dlopen = yes; then
8516   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8517 else
8518   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8519 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8520 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   ac_check_lib_save_LIBS=$LIBS
8524 LIBS="-ldld  $LIBS"
8525 cat >conftest.$ac_ext <<_ACEOF
8526 #line $LINENO "configure"
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532
8533 /* Override any gcc2 internal prototype to avoid an error.  */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 /* We use char because int might match the return type of a gcc2
8538    builtin and then its argument prototype would still apply.  */
8539 char dld_link ();
8540 int
8541 main ()
8542 {
8543 dld_link ();
8544   ;
8545   return 0;
8546 }
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550   (eval $ac_link) 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } &&
8554          { ac_try='test -s conftest$ac_exeext'
8555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556   (eval $ac_try) 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); }; }; then
8560   ac_cv_lib_dld_dld_link=yes
8561 else
8562   echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8564
8565 ac_cv_lib_dld_dld_link=no
8566 fi
8567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8568 LIBS=$ac_check_lib_save_LIBS
8569 fi
8570 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8571 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8572 if test $ac_cv_lib_dld_dld_link = yes; then
8573   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8574 fi
8575
8576
8577 fi
8578
8579
8580 fi
8581
8582
8583 fi
8584
8585
8586 fi
8587
8588
8589 fi
8590
8591     ;;
8592   esac
8593
8594   if test "x$lt_cv_dlopen" != xno; then
8595     enable_dlopen=yes
8596   else
8597     enable_dlopen=no
8598   fi
8599
8600   case $lt_cv_dlopen in
8601   dlopen)
8602     save_CPPFLAGS="$CPPFLAGS"
8603     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8604
8605     save_LDFLAGS="$LDFLAGS"
8606     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8607
8608     save_LIBS="$LIBS"
8609     LIBS="$lt_cv_dlopen_libs $LIBS"
8610
8611     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8612 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8613 if test "${lt_cv_dlopen_self+set}" = set; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616           if test "$cross_compiling" = yes; then :
8617   lt_cv_dlopen_self=cross
8618 else
8619   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8620   lt_status=$lt_dlunknown
8621   cat > conftest.$ac_ext <<EOF
8622 #line 8622 "configure"
8623 #include "confdefs.h"
8624
8625 #if HAVE_DLFCN_H
8626 #include <dlfcn.h>
8627 #endif
8628
8629 #include <stdio.h>
8630
8631 #ifdef RTLD_GLOBAL
8632 #  define LT_DLGLOBAL           RTLD_GLOBAL
8633 #else
8634 #  ifdef DL_GLOBAL
8635 #    define LT_DLGLOBAL         DL_GLOBAL
8636 #  else
8637 #    define LT_DLGLOBAL         0
8638 #  endif
8639 #endif
8640
8641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8642    find out it does not work in some platform. */
8643 #ifndef LT_DLLAZY_OR_NOW
8644 #  ifdef RTLD_LAZY
8645 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8646 #  else
8647 #    ifdef DL_LAZY
8648 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8649 #    else
8650 #      ifdef RTLD_NOW
8651 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8652 #      else
8653 #        ifdef DL_NOW
8654 #          define LT_DLLAZY_OR_NOW      DL_NOW
8655 #        else
8656 #          define LT_DLLAZY_OR_NOW      0
8657 #        endif
8658 #      endif
8659 #    endif
8660 #  endif
8661 #endif
8662
8663 #ifdef __cplusplus
8664 extern "C" void exit (int);
8665 #endif
8666
8667 void fnord() { int i=42;}
8668 int main ()
8669 {
8670   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8671   int status = $lt_dlunknown;
8672
8673   if (self)
8674     {
8675       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8676       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8677       /* dlclose (self); */
8678     }
8679
8680     exit (status);
8681 }
8682 EOF
8683   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684   (eval $ac_link) 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8688     (./conftest; exit; ) 2>/dev/null
8689     lt_status=$?
8690     case x$lt_status in
8691       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8692       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8693       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8694     esac
8695   else :
8696     # compilation failed
8697     lt_cv_dlopen_self=no
8698   fi
8699 fi
8700 rm -fr conftest*
8701
8702
8703 fi
8704 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8705 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8706
8707     if test "x$lt_cv_dlopen_self" = xyes; then
8708       LDFLAGS="$LDFLAGS $link_static_flag"
8709       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8710 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8711 if test "${lt_cv_dlopen_self_static+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714           if test "$cross_compiling" = yes; then :
8715   lt_cv_dlopen_self_static=cross
8716 else
8717   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8718   lt_status=$lt_dlunknown
8719   cat > conftest.$ac_ext <<EOF
8720 #line 8720 "configure"
8721 #include "confdefs.h"
8722
8723 #if HAVE_DLFCN_H
8724 #include <dlfcn.h>
8725 #endif
8726
8727 #include <stdio.h>
8728
8729 #ifdef RTLD_GLOBAL
8730 #  define LT_DLGLOBAL           RTLD_GLOBAL
8731 #else
8732 #  ifdef DL_GLOBAL
8733 #    define LT_DLGLOBAL         DL_GLOBAL
8734 #  else
8735 #    define LT_DLGLOBAL         0
8736 #  endif
8737 #endif
8738
8739 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8740    find out it does not work in some platform. */
8741 #ifndef LT_DLLAZY_OR_NOW
8742 #  ifdef RTLD_LAZY
8743 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8744 #  else
8745 #    ifdef DL_LAZY
8746 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8747 #    else
8748 #      ifdef RTLD_NOW
8749 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8750 #      else
8751 #        ifdef DL_NOW
8752 #          define LT_DLLAZY_OR_NOW      DL_NOW
8753 #        else
8754 #          define LT_DLLAZY_OR_NOW      0
8755 #        endif
8756 #      endif
8757 #    endif
8758 #  endif
8759 #endif
8760
8761 #ifdef __cplusplus
8762 extern "C" void exit (int);
8763 #endif
8764
8765 void fnord() { int i=42;}
8766 int main ()
8767 {
8768   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8769   int status = $lt_dlunknown;
8770
8771   if (self)
8772     {
8773       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8774       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8775       /* dlclose (self); */
8776     }
8777
8778     exit (status);
8779 }
8780 EOF
8781   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8782   (eval $ac_link) 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8786     (./conftest; exit; ) 2>/dev/null
8787     lt_status=$?
8788     case x$lt_status in
8789       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8790       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8791       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8792     esac
8793   else :
8794     # compilation failed
8795     lt_cv_dlopen_self_static=no
8796   fi
8797 fi
8798 rm -fr conftest*
8799
8800
8801 fi
8802 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8803 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8804     fi
8805
8806     CPPFLAGS="$save_CPPFLAGS"
8807     LDFLAGS="$save_LDFLAGS"
8808     LIBS="$save_LIBS"
8809     ;;
8810   esac
8811
8812   case $lt_cv_dlopen_self in
8813   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8814   *) enable_dlopen_self=unknown ;;
8815   esac
8816
8817   case $lt_cv_dlopen_self_static in
8818   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8819   *) enable_dlopen_self_static=unknown ;;
8820   esac
8821 fi
8822
8823
8824 # Report which librarie types wil actually be built
8825 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8826 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8827 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8828 echo "${ECHO_T}$can_build_shared" >&6
8829
8830 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8831 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8832 test "$can_build_shared" = "no" && enable_shared=no
8833
8834 # On AIX, shared libraries and static libraries use the same namespace, and
8835 # are all built from PIC.
8836 case "$host_os" in
8837 aix3*)
8838   test "$enable_shared" = yes && enable_static=no
8839   if test -n "$RANLIB"; then
8840     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8841     postinstall_cmds='$RANLIB $lib'
8842   fi
8843   ;;
8844
8845 aix4*)
8846   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8847     test "$enable_shared" = yes && enable_static=no
8848   fi
8849   ;;
8850   darwin* | rhapsody*)
8851   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8852     archive_cmds_need_lc=no
8853     case "$host_os" in
8854     rhapsody* | darwin1.[012])
8855       allow_undefined_flag='-undefined suppress'
8856       ;;
8857     *) # Darwin 1.3 on
8858       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8859       ;;
8860     esac
8861     # FIXME: Relying on posixy $() will cause problems for
8862     #        cross-compilation, but unfortunately the echo tests do not
8863     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8864     #          `"' quotes if we put them in here... so don't!
8865                 output_verbose_link_cmd='echo'
8866     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8867     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8868     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8869                   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}'
8870                   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}'
8871     hardcode_direct=no
8872     hardcode_automatic=yes
8873     hardcode_shlibpath_var=unsupported
8874     whole_archive_flag_spec='-all_load $convenience'
8875     link_all_deplibs=yes
8876     fi
8877     ;;
8878 esac
8879 echo "$as_me:$LINENO: result: $enable_shared" >&5
8880 echo "${ECHO_T}$enable_shared" >&6
8881
8882 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8883 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8884 # Make sure either enable_shared or enable_static is yes.
8885 test "$enable_shared" = yes || enable_static=yes
8886 echo "$as_me:$LINENO: result: $enable_static" >&5
8887 echo "${ECHO_T}$enable_static" >&6
8888
8889 # The else clause should only fire when bootstrapping the
8890 # libtool distribution, otherwise you forgot to ship ltmain.sh
8891 # with your package, and you will get complaints that there are
8892 # no rules to generate ltmain.sh.
8893 if test -f "$ltmain"; then
8894   # See if we are running on zsh, and set the options which allow our commands through
8895   # without removal of \ escapes.
8896   if test -n "${ZSH_VERSION+set}" ; then
8897     setopt NO_GLOB_SUBST
8898   fi
8899   # Now quote all the things that may contain metacharacters while being
8900   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8901   # variables and quote the copies for generation of the libtool script.
8902   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8903     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8904     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8905     deplibs_check_method reload_flag reload_cmds need_locks \
8906     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8907     lt_cv_sys_global_symbol_to_c_name_address \
8908     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8909     old_postinstall_cmds old_postuninstall_cmds \
8910     compiler \
8911     CC \
8912     LD \
8913     lt_prog_compiler_wl \
8914     lt_prog_compiler_pic \
8915     lt_prog_compiler_static \
8916     lt_prog_compiler_no_builtin_flag \
8917     export_dynamic_flag_spec \
8918     thread_safe_flag_spec \
8919     whole_archive_flag_spec \
8920     enable_shared_with_static_runtimes \
8921     old_archive_cmds \
8922     old_archive_from_new_cmds \
8923     predep_objects \
8924     postdep_objects \
8925     predeps \
8926     postdeps \
8927     compiler_lib_search_path \
8928     archive_cmds \
8929     archive_expsym_cmds \
8930     postinstall_cmds \
8931     postuninstall_cmds \
8932     old_archive_from_expsyms_cmds \
8933     allow_undefined_flag \
8934     no_undefined_flag \
8935     export_symbols_cmds \
8936     hardcode_libdir_flag_spec \
8937     hardcode_libdir_flag_spec_ld \
8938     hardcode_libdir_separator \
8939     hardcode_automatic \
8940     module_cmds \
8941     module_expsym_cmds \
8942     lt_cv_prog_compiler_c_o \
8943     exclude_expsyms \
8944     include_expsyms; do
8945
8946     case $var in
8947     old_archive_cmds | \
8948     old_archive_from_new_cmds | \
8949     archive_cmds | \
8950     archive_expsym_cmds | \
8951     module_cmds | \
8952     module_expsym_cmds | \
8953     old_archive_from_expsyms_cmds | \
8954     export_symbols_cmds | \
8955     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8956     postinstall_cmds | postuninstall_cmds | \
8957     old_postinstall_cmds | old_postuninstall_cmds | \
8958     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8959       # Double-quote double-evaled strings.
8960       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8961       ;;
8962     *)
8963       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8964       ;;
8965     esac
8966   done
8967
8968   case $lt_echo in
8969   *'\$0 --fallback-echo"')
8970     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8971     ;;
8972   esac
8973
8974 cfgfile="${ofile}T"
8975   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8976   $rm -f "$cfgfile"
8977   { echo "$as_me:$LINENO: creating $ofile" >&5
8978 echo "$as_me: creating $ofile" >&6;}
8979
8980   cat <<__EOF__ >> "$cfgfile"
8981 #! $SHELL
8982
8983 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8984 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8985 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8986 #
8987 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8988 # Free Software Foundation, Inc.
8989 #
8990 # This file is part of GNU Libtool:
8991 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8992 #
8993 # This program is free software; you can redistribute it and/or modify
8994 # it under the terms of the GNU General Public License as published by
8995 # the Free Software Foundation; either version 2 of the License, or
8996 # (at your option) any later version.
8997 #
8998 # This program is distributed in the hope that it will be useful, but
8999 # WITHOUT ANY WARRANTY; without even the implied warranty of
9000 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9001 # General Public License for more details.
9002 #
9003 # You should have received a copy of the GNU General Public License
9004 # along with this program; if not, write to the Free Software
9005 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9006 #
9007 # As a special exception to the GNU General Public License, if you
9008 # distribute this file as part of a program that contains a
9009 # configuration script generated by Autoconf, you may include it under
9010 # the same distribution terms that you use for the rest of that program.
9011
9012 # A sed program that does not truncate output.
9013 SED=$lt_SED
9014
9015 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9016 Xsed="$SED -e s/^X//"
9017
9018 # The HP-UX ksh and POSIX shell print the target directory to stdout
9019 # if CDPATH is set.
9020 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9021
9022 # The names of the tagged configurations supported by this script.
9023 available_tags=
9024
9025 # ### BEGIN LIBTOOL CONFIG
9026
9027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9028
9029 # Shell to use when invoking shell scripts.
9030 SHELL=$lt_SHELL
9031
9032 # Whether or not to build shared libraries.
9033 build_libtool_libs=$enable_shared
9034
9035 # Whether or not to build static libraries.
9036 build_old_libs=$enable_static
9037
9038 # Whether or not to add -lc for building shared libraries.
9039 build_libtool_need_lc=$archive_cmds_need_lc
9040
9041 # Whether or not to disallow shared libs when runtime libs are static
9042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9043
9044 # Whether or not to optimize for fast installation.
9045 fast_install=$enable_fast_install
9046
9047 # The host system.
9048 host_alias=$host_alias
9049 host=$host
9050
9051 # An echo program that does not interpret backslashes.
9052 echo=$lt_echo
9053
9054 # The archiver.
9055 AR=$lt_AR
9056 AR_FLAGS=$lt_AR_FLAGS
9057
9058 # A C compiler.
9059 LTCC=$lt_LTCC
9060
9061 # A language-specific compiler.
9062 CC=$lt_compiler
9063
9064 # Is the compiler the GNU C compiler?
9065 with_gcc=$GCC
9066
9067 # An ERE matcher.
9068 EGREP=$lt_EGREP
9069
9070 # The linker used to build libraries.
9071 LD=$lt_LD
9072
9073 # Whether we need hard or soft links.
9074 LN_S=$lt_LN_S
9075
9076 # A BSD-compatible nm program.
9077 NM=$lt_NM
9078
9079 # A symbol stripping program
9080 STRIP=$STRIP
9081
9082 # Used to examine libraries when file_magic_cmd begins "file"
9083 MAGIC_CMD=$MAGIC_CMD
9084
9085 # Used on cygwin: DLL creation program.
9086 DLLTOOL="$DLLTOOL"
9087
9088 # Used on cygwin: object dumper.
9089 OBJDUMP="$OBJDUMP"
9090
9091 # Used on cygwin: assembler.
9092 AS="$AS"
9093
9094 # The name of the directory that contains temporary libtool files.
9095 objdir=$objdir
9096
9097 # How to create reloadable object files.
9098 reload_flag=$lt_reload_flag
9099 reload_cmds=$lt_reload_cmds
9100
9101 # How to pass a linker flag through the compiler.
9102 wl=$lt_lt_prog_compiler_wl
9103
9104 # Object file suffix (normally "o").
9105 objext="$ac_objext"
9106
9107 # Old archive suffix (normally "a").
9108 libext="$libext"
9109
9110 # Shared library suffix (normally ".so").
9111 shrext='$shrext'
9112
9113 # Executable file suffix (normally "").
9114 exeext="$exeext"
9115
9116 # Additional compiler flags for building library objects.
9117 pic_flag=$lt_lt_prog_compiler_pic
9118 pic_mode=$pic_mode
9119
9120 # What is the maximum length of a command?
9121 max_cmd_len=$lt_cv_sys_max_cmd_len
9122
9123 # Does compiler simultaneously support -c and -o options?
9124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9125
9126 # Must we lock files when doing compilation ?
9127 need_locks=$lt_need_locks
9128
9129 # Do we need the lib prefix for modules?
9130 need_lib_prefix=$need_lib_prefix
9131
9132 # Do we need a version for libraries?
9133 need_version=$need_version
9134
9135 # Whether dlopen is supported.
9136 dlopen_support=$enable_dlopen
9137
9138 # Whether dlopen of programs is supported.
9139 dlopen_self=$enable_dlopen_self
9140
9141 # Whether dlopen of statically linked programs is supported.
9142 dlopen_self_static=$enable_dlopen_self_static
9143
9144 # Compiler flag to prevent dynamic linking.
9145 link_static_flag=$lt_lt_prog_compiler_static
9146
9147 # Compiler flag to turn off builtin functions.
9148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9149
9150 # Compiler flag to allow reflexive dlopens.
9151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9152
9153 # Compiler flag to generate shared objects directly from archives.
9154 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9155
9156 # Compiler flag to generate thread-safe objects.
9157 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9158
9159 # Library versioning type.
9160 version_type=$version_type
9161
9162 # Format of library name prefix.
9163 libname_spec=$lt_libname_spec
9164
9165 # List of archive names.  First name is the real one, the rest are links.
9166 # The last name is the one that the linker finds with -lNAME.
9167 library_names_spec=$lt_library_names_spec
9168
9169 # The coded name of the library, if different from the real name.
9170 soname_spec=$lt_soname_spec
9171
9172 # Commands used to build and install an old-style archive.
9173 RANLIB=$lt_RANLIB
9174 old_archive_cmds=$lt_old_archive_cmds
9175 old_postinstall_cmds=$lt_old_postinstall_cmds
9176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9177
9178 # Create an old-style archive from a shared archive.
9179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9180
9181 # Create a temporary old-style archive to link instead of a shared archive.
9182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9183
9184 # Commands used to build and install a shared archive.
9185 archive_cmds=$lt_archive_cmds
9186 archive_expsym_cmds=$lt_archive_expsym_cmds
9187 postinstall_cmds=$lt_postinstall_cmds
9188 postuninstall_cmds=$lt_postuninstall_cmds
9189
9190 # Commands used to build a loadable module (assumed same as above if empty)
9191 module_cmds=$lt_module_cmds
9192 module_expsym_cmds=$lt_module_expsym_cmds
9193
9194 # Commands to strip libraries.
9195 old_striplib=$lt_old_striplib
9196 striplib=$lt_striplib
9197
9198 # Dependencies to place before the objects being linked to create a
9199 # shared library.
9200 predep_objects=$lt_predep_objects
9201
9202 # Dependencies to place after the objects being linked to create a
9203 # shared library.
9204 postdep_objects=$lt_postdep_objects
9205
9206 # Dependencies to place before the objects being linked to create a
9207 # shared library.
9208 predeps=$lt_predeps
9209
9210 # Dependencies to place after the objects being linked to create a
9211 # shared library.
9212 postdeps=$lt_postdeps
9213
9214 # The library search path used internally by the compiler when linking
9215 # a shared library.
9216 compiler_lib_search_path=$lt_compiler_lib_search_path
9217
9218 # Method to check whether dependent libraries are shared objects.
9219 deplibs_check_method=$lt_deplibs_check_method
9220
9221 # Command to use when deplibs_check_method == file_magic.
9222 file_magic_cmd=$lt_file_magic_cmd
9223
9224 # Flag that allows shared libraries with undefined symbols to be built.
9225 allow_undefined_flag=$lt_allow_undefined_flag
9226
9227 # Flag that forces no undefined symbols.
9228 no_undefined_flag=$lt_no_undefined_flag
9229
9230 # Commands used to finish a libtool library installation in a directory.
9231 finish_cmds=$lt_finish_cmds
9232
9233 # Same as above, but a single script fragment to be evaled but not shown.
9234 finish_eval=$lt_finish_eval
9235
9236 # Take the output of nm and produce a listing of raw symbols and C names.
9237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9238
9239 # Transform the output of nm in a proper C declaration
9240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9241
9242 # Transform the output of nm in a C name address pair
9243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9244
9245 # This is the shared library runtime path variable.
9246 runpath_var=$runpath_var
9247
9248 # This is the shared library path variable.
9249 shlibpath_var=$shlibpath_var
9250
9251 # Is shlibpath searched before the hard-coded library search path?
9252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9253
9254 # How to hardcode a shared library path into an executable.
9255 hardcode_action=$hardcode_action
9256
9257 # Whether we should hardcode library paths into libraries.
9258 hardcode_into_libs=$hardcode_into_libs
9259
9260 # Flag to hardcode \$libdir into a binary during linking.
9261 # This must work even if \$libdir does not exist.
9262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9263
9264 # If ld is used when linking, flag to hardcode \$libdir into
9265 # a binary during linking. This must work even if \$libdir does
9266 # not exist.
9267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9268
9269 # Whether we need a single -rpath flag with a separated argument.
9270 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9271
9272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9273 # resulting binary.
9274 hardcode_direct=$hardcode_direct
9275
9276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9277 # resulting binary.
9278 hardcode_minus_L=$hardcode_minus_L
9279
9280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9281 # the resulting binary.
9282 hardcode_shlibpath_var=$hardcode_shlibpath_var
9283
9284 # Set to yes if building a shared library automatically hardcodes DIR into the library
9285 # and all subsequent libraries and executables linked against it.
9286 hardcode_automatic=$hardcode_automatic
9287
9288 # Variables whose values should be saved in libtool wrapper scripts and
9289 # restored at relink time.
9290 variables_saved_for_relink="$variables_saved_for_relink"
9291
9292 # Whether libtool must link a program against all its dependency libraries.
9293 link_all_deplibs=$link_all_deplibs
9294
9295 # Compile-time system search path for libraries
9296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9297
9298 # Run-time system search path for libraries
9299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9300
9301 # Fix the shell variable \$srcfile for the compiler.
9302 fix_srcfile_path="$fix_srcfile_path"
9303
9304 # Set to yes if exported symbols are required.
9305 always_export_symbols=$always_export_symbols
9306
9307 # The commands to list exported symbols.
9308 export_symbols_cmds=$lt_export_symbols_cmds
9309
9310 # The commands to extract the exported symbol list from a shared archive.
9311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9312
9313 # Symbols that should not be listed in the preloaded symbols.
9314 exclude_expsyms=$lt_exclude_expsyms
9315
9316 # Symbols that must always be exported.
9317 include_expsyms=$lt_include_expsyms
9318
9319 # ### END LIBTOOL CONFIG
9320
9321 __EOF__
9322
9323
9324   case $host_os in
9325   aix3*)
9326     cat <<\EOF >> "$cfgfile"
9327
9328 # AIX sometimes has problems with the GCC collect2 program.  For some
9329 # reason, if we set the COLLECT_NAMES environment variable, the problems
9330 # vanish in a puff of smoke.
9331 if test "X${COLLECT_NAMES+set}" != Xset; then
9332   COLLECT_NAMES=
9333   export COLLECT_NAMES
9334 fi
9335 EOF
9336     ;;
9337   esac
9338
9339   # We use sed instead of cat because bash on DJGPP gets confused if
9340   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9341   # text mode, it properly converts lines to CR/LF.  This bash problem
9342   # is reportedly fixed, but why not run on old versions too?
9343   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9344
9345   mv -f "$cfgfile" "$ofile" || \
9346     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9347   chmod +x "$ofile"
9348
9349 else
9350   # If there is no Makefile yet, we rely on a make rule to execute
9351   # `config.status --recheck' to rerun these tests and create the
9352   # libtool script then.
9353   test -f Makefile && make "$ltmain"
9354 fi
9355
9356
9357 ac_ext=c
9358 ac_cpp='$CPP $CPPFLAGS'
9359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9362
9363 CC="$lt_save_CC"
9364
9365
9366 # Check whether --with-tags or --without-tags was given.
9367 if test "${with_tags+set}" = set; then
9368   withval="$with_tags"
9369   tagnames="$withval"
9370 fi;
9371
9372 if test -f "$ltmain" && test -n "$tagnames"; then
9373   if test ! -f "${ofile}"; then
9374     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9375 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9376   fi
9377
9378   if test -z "$LTCC"; then
9379     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9380     if test -z "$LTCC"; then
9381       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9382 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9383     else
9384       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9385 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9386     fi
9387   fi
9388
9389   # Extract list of available tagged configurations in $ofile.
9390   # Note that this assumes the entire list is on one line.
9391   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9392
9393   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9394   for tagname in $tagnames; do
9395     IFS="$lt_save_ifs"
9396     # Check whether tagname contains only valid characters
9397     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9398     "") ;;
9399     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9400 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9401    { (exit 1); exit 1; }; }
9402         ;;
9403     esac
9404
9405     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9406     then
9407       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9408 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9409    { (exit 1); exit 1; }; }
9410     fi
9411
9412     # Update the list of available tags.
9413     if test -n "$tagname"; then
9414       echo appending configuration tag \"$tagname\" to $ofile
9415
9416       case $tagname in
9417       CXX)
9418         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9419           ac_ext=cc
9420 ac_cpp='$CXXCPP $CPPFLAGS'
9421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9424
9425
9426
9427
9428 archive_cmds_need_lc_CXX=no
9429 allow_undefined_flag_CXX=
9430 always_export_symbols_CXX=no
9431 archive_expsym_cmds_CXX=
9432 export_dynamic_flag_spec_CXX=
9433 hardcode_direct_CXX=no
9434 hardcode_libdir_flag_spec_CXX=
9435 hardcode_libdir_flag_spec_ld_CXX=
9436 hardcode_libdir_separator_CXX=
9437 hardcode_minus_L_CXX=no
9438 hardcode_automatic_CXX=no
9439 module_cmds_CXX=
9440 module_expsym_cmds_CXX=
9441 link_all_deplibs_CXX=unknown
9442 old_archive_cmds_CXX=$old_archive_cmds
9443 no_undefined_flag_CXX=
9444 whole_archive_flag_spec_CXX=
9445 enable_shared_with_static_runtimes_CXX=no
9446
9447 # Dependencies to place before and after the object being linked:
9448 predep_objects_CXX=
9449 postdep_objects_CXX=
9450 predeps_CXX=
9451 postdeps_CXX=
9452 compiler_lib_search_path_CXX=
9453
9454 # Source file extension for C++ test sources.
9455 ac_ext=cc
9456
9457 # Object file extension for compiled C++ test sources.
9458 objext=o
9459 objext_CXX=$objext
9460
9461 # Code to be used in simple compile tests
9462 lt_simple_compile_test_code="int some_variable = 0;\n"
9463
9464 # Code to be used in simple link tests
9465 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9466
9467 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9468
9469 # If no C compiler was specified, use CC.
9470 LTCC=${LTCC-"$CC"}
9471
9472 # Allow CC to be a program name with arguments.
9473 compiler=$CC
9474
9475
9476 # Allow CC to be a program name with arguments.
9477 lt_save_CC=$CC
9478 lt_save_LD=$LD
9479 lt_save_GCC=$GCC
9480 GCC=$GXX
9481 lt_save_with_gnu_ld=$with_gnu_ld
9482 lt_save_path_LD=$lt_cv_path_LD
9483 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9484   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9485 else
9486   unset lt_cv_prog_gnu_ld
9487 fi
9488 if test -n "${lt_cv_path_LDCXX+set}"; then
9489   lt_cv_path_LD=$lt_cv_path_LDCXX
9490 else
9491   unset lt_cv_path_LD
9492 fi
9493 test -z "${LDCXX+set}" || LD=$LDCXX
9494 CC=${CXX-"c++"}
9495 compiler=$CC
9496 compiler_CXX=$CC
9497 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9498
9499 # We don't want -fno-exception wen compiling C++ code, so set the
9500 # no_builtin_flag separately
9501 if test "$GXX" = yes; then
9502   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9503 else
9504   lt_prog_compiler_no_builtin_flag_CXX=
9505 fi
9506
9507 if test "$GXX" = yes; then
9508   # Set up default GNU C++ configuration
9509
9510
9511 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9512 if test "${with_gnu_ld+set}" = set; then
9513   withval="$with_gnu_ld"
9514   test "$withval" = no || with_gnu_ld=yes
9515 else
9516   with_gnu_ld=no
9517 fi;
9518 ac_prog=ld
9519 if test "$GCC" = yes; then
9520   # Check if gcc -print-prog-name=ld gives a path.
9521   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9522 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9523   case $host in
9524   *-*-mingw*)
9525     # gcc leaves a trailing carriage return which upsets mingw
9526     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9527   *)
9528     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9529   esac
9530   case $ac_prog in
9531     # Accept absolute paths.
9532     [\\/]* | ?:[\\/]*)
9533       re_direlt='/[^/][^/]*/\.\./'
9534       # Canonicalize the path of ld
9535       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9536       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9537         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9538       done
9539       test -z "$LD" && LD="$ac_prog"
9540       ;;
9541   "")
9542     # If it fails, then pretend we aren't using GCC.
9543     ac_prog=ld
9544     ;;
9545   *)
9546     # If it is relative, then search for the first ld in PATH.
9547     with_gnu_ld=unknown
9548     ;;
9549   esac
9550 elif test "$with_gnu_ld" = yes; then
9551   echo "$as_me:$LINENO: checking for GNU ld" >&5
9552 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9553 else
9554   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9555 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9556 fi
9557 if test "${lt_cv_path_LD+set}" = set; then
9558   echo $ECHO_N "(cached) $ECHO_C" >&6
9559 else
9560   if test -z "$LD"; then
9561   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9562   for ac_dir in $PATH; do
9563     IFS="$lt_save_ifs"
9564     test -z "$ac_dir" && ac_dir=.
9565     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9566       lt_cv_path_LD="$ac_dir/$ac_prog"
9567       # Check to see if the program is GNU ld.  I'd rather use --version,
9568       # but apparently some GNU ld's only accept -v.
9569       # Break only if it was the GNU/non-GNU ld that we prefer.
9570       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9571       *GNU* | *'with BFD'*)
9572         test "$with_gnu_ld" != no && break
9573         ;;
9574       *)
9575         test "$with_gnu_ld" != yes && break
9576         ;;
9577       esac
9578     fi
9579   done
9580   IFS="$lt_save_ifs"
9581 else
9582   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9583 fi
9584 fi
9585
9586 LD="$lt_cv_path_LD"
9587 if test -n "$LD"; then
9588   echo "$as_me:$LINENO: result: $LD" >&5
9589 echo "${ECHO_T}$LD" >&6
9590 else
9591   echo "$as_me:$LINENO: result: no" >&5
9592 echo "${ECHO_T}no" >&6
9593 fi
9594 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9595 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9596    { (exit 1); exit 1; }; }
9597 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9598 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9599 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9600   echo $ECHO_N "(cached) $ECHO_C" >&6
9601 else
9602   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9603 case `"$LD" -v 2>&1 </dev/null` in
9604 *GNU* | *'with BFD'*)
9605   lt_cv_prog_gnu_ld=yes
9606   ;;
9607 *)
9608   lt_cv_prog_gnu_ld=no
9609   ;;
9610 esac
9611 fi
9612 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9613 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9614 with_gnu_ld=$lt_cv_prog_gnu_ld
9615
9616
9617
9618   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9619   # archiving commands below assume that GNU ld is being used.
9620   if test "$with_gnu_ld" = yes; then
9621     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9622     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'
9623
9624     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9625     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9626
9627     # If archive_cmds runs LD, not CC, wlarc should be empty
9628     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9629     #     investigate it a little bit more. (MM)
9630     wlarc='${wl}'
9631
9632     # ancient GNU ld didn't support --whole-archive et. al.
9633     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9634         grep 'no-whole-archive' > /dev/null; then
9635       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9636     else
9637       whole_archive_flag_spec_CXX=
9638     fi
9639   else
9640     with_gnu_ld=no
9641     wlarc=
9642
9643     # A generic and very simple default shared library creation
9644     # command for GNU C++ for the case where it uses the native
9645     # linker, instead of GNU ld.  If possible, this setting should
9646     # overridden to take advantage of the native linker features on
9647     # the platform it is being used on.
9648     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9649   fi
9650
9651   # Commands to make compiler produce verbose output that lists
9652   # what "hidden" libraries, object files and flags are used when
9653   # linking a shared library.
9654   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9655
9656 else
9657   GXX=no
9658   with_gnu_ld=no
9659   wlarc=
9660 fi
9661
9662 # PORTME: fill in a description of your system's C++ link characteristics
9663 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9664 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9665 ld_shlibs_CXX=yes
9666 case $host_os in
9667   aix3*)
9668     # FIXME: insert proper C++ library support
9669     ld_shlibs_CXX=no
9670     ;;
9671   aix4* | aix5*)
9672     if test "$host_cpu" = ia64; then
9673       # On IA64, the linker does run time linking by default, so we don't
9674       # have to do anything special.
9675       aix_use_runtimelinking=no
9676       exp_sym_flag='-Bexport'
9677       no_entry_flag=""
9678     else
9679       aix_use_runtimelinking=no
9680
9681       # Test if we are trying to use run time linking or normal
9682       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9683       # need to do runtime linking.
9684       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9685         for ld_flag in $LDFLAGS; do
9686           case $ld_flag in
9687           *-brtl*)
9688             aix_use_runtimelinking=yes
9689             break
9690             ;;
9691           esac
9692         done
9693       esac
9694
9695       exp_sym_flag='-bexport'
9696       no_entry_flag='-bnoentry'
9697     fi
9698
9699     # When large executables or shared objects are built, AIX ld can
9700     # have problems creating the table of contents.  If linking a library
9701     # or program results in "error TOC overflow" add -mminimal-toc to
9702     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9703     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9704
9705     archive_cmds_CXX=''
9706     hardcode_direct_CXX=yes
9707     hardcode_libdir_separator_CXX=':'
9708     link_all_deplibs_CXX=yes
9709
9710     if test "$GXX" = yes; then
9711       case $host_os in aix4.012|aix4.012.*)
9712       # We only want to do this on AIX 4.2 and lower, the check
9713       # below for broken collect2 doesn't work under 4.3+
9714         collect2name=`${CC} -print-prog-name=collect2`
9715         if test -f "$collect2name" && \
9716            strings "$collect2name" | grep resolve_lib_name >/dev/null
9717         then
9718           # We have reworked collect2
9719           hardcode_direct_CXX=yes
9720         else
9721           # We have old collect2
9722           hardcode_direct_CXX=unsupported
9723           # It fails to find uninstalled libraries when the uninstalled
9724           # path is not listed in the libpath.  Setting hardcode_minus_L
9725           # to unsupported forces relinking
9726           hardcode_minus_L_CXX=yes
9727           hardcode_libdir_flag_spec_CXX='-L$libdir'
9728           hardcode_libdir_separator_CXX=
9729         fi
9730       esac
9731       shared_flag='-shared'
9732     else
9733       # not using gcc
9734       if test "$host_cpu" = ia64; then
9735         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9736         # chokes on -Wl,-G. The following line is correct:
9737         shared_flag='-G'
9738       else
9739         if test "$aix_use_runtimelinking" = yes; then
9740           shared_flag='${wl}-G'
9741         else
9742           shared_flag='${wl}-bM:SRE'
9743         fi
9744       fi
9745     fi
9746
9747     # It seems that -bexpall does not export symbols beginning with
9748     # underscore (_), so it is better to generate a list of symbols to export.
9749     always_export_symbols_CXX=yes
9750     if test "$aix_use_runtimelinking" = yes; then
9751       # Warning - without using the other runtime loading flags (-brtl),
9752       # -berok will link without error, but may produce a broken library.
9753       allow_undefined_flag_CXX='-berok'
9754       # Determine the default libpath from the value encoded in an empty executable.
9755       cat >conftest.$ac_ext <<_ACEOF
9756 #line $LINENO "configure"
9757 /* confdefs.h.  */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h.  */
9762
9763 int
9764 main ()
9765 {
9766
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773   (eval $ac_link) 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); } &&
9777          { ac_try='test -s conftest$ac_exeext'
9778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779   (eval $ac_try) 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); }; }; then
9783
9784 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9785 }'`
9786 # Check for a 64-bit object if we didn't find anything.
9787 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; }
9788 }'`; fi
9789 else
9790   echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 fi
9794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9795 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9796
9797       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9798
9799       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"
9800      else
9801       if test "$host_cpu" = ia64; then
9802         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9803         allow_undefined_flag_CXX="-z nodefs"
9804         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"
9805       else
9806         # Determine the default libpath from the value encoded in an empty executable.
9807         cat >conftest.$ac_ext <<_ACEOF
9808 #line $LINENO "configure"
9809 /* confdefs.h.  */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h.  */
9814
9815 int
9816 main ()
9817 {
9818
9819   ;
9820   return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825   (eval $ac_link) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } &&
9829          { ac_try='test -s conftest$ac_exeext'
9830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831   (eval $ac_try) 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); }; }; then
9835
9836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9837 }'`
9838 # Check for a 64-bit object if we didn't find anything.
9839 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; }
9840 }'`; fi
9841 else
9842   echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845 fi
9846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9848
9849         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9850         # Warning - without using the other run time loading flags,
9851         # -berok will link without error, but may produce a broken library.
9852         no_undefined_flag_CXX=' ${wl}-bernotok'
9853         allow_undefined_flag_CXX=' ${wl}-berok'
9854         # -bexpall does not export symbols beginning with underscore (_)
9855         always_export_symbols_CXX=yes
9856         # Exported symbols can be pulled into shared objects from archives
9857         whole_archive_flag_spec_CXX=' '
9858         archive_cmds_need_lc_CXX=yes
9859         # This is similar to how AIX traditionally builds it's shared libraries.
9860         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'
9861       fi
9862     fi
9863     ;;
9864   chorus*)
9865     case $cc_basename in
9866       *)
9867         # FIXME: insert proper C++ library support
9868         ld_shlibs_CXX=no
9869         ;;
9870     esac
9871     ;;
9872
9873   cygwin* | mingw* | pw32*)
9874     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9875     # as there is no search path for DLLs.
9876     hardcode_libdir_flag_spec_CXX='-L$libdir'
9877     allow_undefined_flag_CXX=unsupported
9878     always_export_symbols_CXX=no
9879     enable_shared_with_static_runtimes_CXX=yes
9880
9881     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9882       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'
9883       # If the export-symbols file already is a .def file (1st line
9884       # is EXPORTS), use it as is; otherwise, prepend...
9885       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9886         cp $export_symbols $output_objdir/$soname.def;
9887       else
9888         echo EXPORTS > $output_objdir/$soname.def;
9889         cat $export_symbols >> $output_objdir/$soname.def;
9890       fi~
9891       $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'
9892     else
9893       ld_shlibs_CXX=no
9894     fi
9895   ;;
9896
9897   darwin* | rhapsody*)
9898    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9899     archive_cmds_need_lc_CXX=no
9900     case "$host_os" in
9901     rhapsody* | darwin1.[012])
9902       allow_undefined_flag_CXX='-undefined suppress'
9903       ;;
9904     *) # Darwin 1.3 on
9905       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9906       ;;
9907     esac
9908         lt_int_apple_cc_single_mod=no
9909         output_verbose_link_cmd='echo'
9910         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9911           lt_int_apple_cc_single_mod=yes
9912         fi
9913         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9914           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9915         else
9916         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'
9917       fi
9918       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9919
9920     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9921       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9922         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}'
9923       else
9924         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}'
9925       fi
9926         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}'
9927     hardcode_direct_CXX=no
9928     hardcode_automatic_CXX=yes
9929     hardcode_shlibpath_var_CXX=unsupported
9930     whole_archive_flag_spec_CXX='-all_load $convenience'
9931     link_all_deplibs_CXX=yes
9932    fi
9933     ;;
9934
9935   dgux*)
9936     case $cc_basename in
9937       ec++)
9938         # FIXME: insert proper C++ library support
9939         ld_shlibs_CXX=no
9940         ;;
9941       ghcx)
9942         # Green Hills C++ Compiler
9943         # FIXME: insert proper C++ library support
9944         ld_shlibs_CXX=no
9945         ;;
9946       *)
9947         # FIXME: insert proper C++ library support
9948         ld_shlibs_CXX=no
9949         ;;
9950     esac
9951     ;;
9952   freebsd12*)
9953     # C++ shared libraries reported to be fairly broken before switch to ELF
9954     ld_shlibs_CXX=no
9955     ;;
9956   freebsd-elf*)
9957     archive_cmds_need_lc_CXX=no
9958     ;;
9959   freebsd*)
9960     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9961     # conventions
9962     ld_shlibs_CXX=yes
9963     ;;
9964   gnu*)
9965     ;;
9966   hpux9*)
9967     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9968     hardcode_libdir_separator_CXX=:
9969     export_dynamic_flag_spec_CXX='${wl}-E'
9970     hardcode_direct_CXX=yes
9971     hardcode_minus_L_CXX=yes # Not in the search PATH,
9972                                 # but as the default
9973                                 # location of the library.
9974
9975     case $cc_basename in
9976     CC)
9977       # FIXME: insert proper C++ library support
9978       ld_shlibs_CXX=no
9979       ;;
9980     aCC)
9981       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'
9982       # Commands to make compiler produce verbose output that lists
9983       # what "hidden" libraries, object files and flags are used when
9984       # linking a shared library.
9985       #
9986       # There doesn't appear to be a way to prevent this compiler from
9987       # explicitly linking system object files so we need to strip them
9988       # from the output so that they don't get included in the library
9989       # dependencies.
9990       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'
9991       ;;
9992     *)
9993       if test "$GXX" = yes; then
9994         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'
9995       else
9996         # FIXME: insert proper C++ library support
9997         ld_shlibs_CXX=no
9998       fi
9999       ;;
10000     esac
10001     ;;
10002   hpux10*|hpux11*)
10003     if test $with_gnu_ld = no; then
10004       case "$host_cpu" in
10005       hppa*64*)
10006         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10007         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10008         hardcode_libdir_separator_CXX=:
10009         ;;
10010       ia64*)
10011         hardcode_libdir_flag_spec_CXX='-L$libdir'
10012         ;;
10013       *)
10014         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10015         hardcode_libdir_separator_CXX=:
10016         export_dynamic_flag_spec_CXX='${wl}-E'
10017         ;;
10018       esac
10019     fi
10020     case "$host_cpu" in
10021     hppa*64*)
10022       hardcode_direct_CXX=no
10023       hardcode_shlibpath_var_CXX=no
10024       ;;
10025     ia64*)
10026       hardcode_direct_CXX=no
10027       hardcode_shlibpath_var_CXX=no
10028       hardcode_minus_L_CXX=yes # Not in the search PATH,
10029                                               # but as the default
10030                                               # location of the library.
10031       ;;
10032     *)
10033       hardcode_direct_CXX=yes
10034       hardcode_minus_L_CXX=yes # Not in the search PATH,
10035                                               # but as the default
10036                                               # location of the library.
10037       ;;
10038     esac
10039
10040     case $cc_basename in
10041       CC)
10042         # FIXME: insert proper C++ library support
10043         ld_shlibs_CXX=no
10044         ;;
10045       aCC)
10046         case "$host_cpu" in
10047         hppa*64*|ia64*)
10048           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10049           ;;
10050         *)
10051           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10052           ;;
10053         esac
10054         # Commands to make compiler produce verbose output that lists
10055         # what "hidden" libraries, object files and flags are used when
10056         # linking a shared library.
10057         #
10058         # There doesn't appear to be a way to prevent this compiler from
10059         # explicitly linking system object files so we need to strip them
10060         # from the output so that they don't get included in the library
10061         # dependencies.
10062         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'
10063         ;;
10064       *)
10065         if test "$GXX" = yes; then
10066           if test $with_gnu_ld = no; then
10067             case "$host_cpu" in
10068             ia64*|hppa*64*)
10069               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10070               ;;
10071             *)
10072               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'
10073               ;;
10074             esac
10075           fi
10076         else
10077           # FIXME: insert proper C++ library support
10078           ld_shlibs_CXX=no
10079         fi
10080         ;;
10081     esac
10082     ;;
10083   irix5* | irix6*)
10084     case $cc_basename in
10085       CC)
10086         # SGI C++
10087         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'
10088
10089         # Archives containing C++ object files must be created using
10090         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10091         # necessary to make sure instantiated templates are included
10092         # in the archive.
10093         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10094         ;;
10095       *)
10096         if test "$GXX" = yes; then
10097           if test "$with_gnu_ld" = no; then
10098             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'
10099           else
10100             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'
10101           fi
10102         fi
10103         link_all_deplibs_CXX=yes
10104         ;;
10105     esac
10106     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10107     hardcode_libdir_separator_CXX=:
10108     ;;
10109   linux*)
10110     case $cc_basename in
10111       KCC)
10112         # Kuck and Associates, Inc. (KAI) C++ Compiler
10113
10114         # KCC will only create a shared library if the output file
10115         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10116         # to its proper name (with version) after linking.
10117         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'
10118         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'
10119         # Commands to make compiler produce verbose output that lists
10120         # what "hidden" libraries, object files and flags are used when
10121         # linking a shared library.
10122         #
10123         # There doesn't appear to be a way to prevent this compiler from
10124         # explicitly linking system object files so we need to strip them
10125         # from the output so that they don't get included in the library
10126         # dependencies.
10127         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'
10128
10129         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10130         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10131
10132         # Archives containing C++ object files must be created using
10133         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10134         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10135         ;;
10136       icpc)
10137         # Intel C++
10138         with_gnu_ld=yes
10139         archive_cmds_need_lc_CXX=no
10140         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10141         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'
10142         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10143         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10144         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10145         ;;
10146       cxx)
10147         # Compaq C++
10148         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10149         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'
10150
10151         runpath_var=LD_RUN_PATH
10152         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10153         hardcode_libdir_separator_CXX=:
10154
10155         # Commands to make compiler produce verbose output that lists
10156         # what "hidden" libraries, object files and flags are used when
10157         # linking a shared library.
10158         #
10159         # There doesn't appear to be a way to prevent this compiler from
10160         # explicitly linking system object files so we need to strip them
10161         # from the output so that they don't get included in the library
10162         # dependencies.
10163         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'
10164         ;;
10165     esac
10166     ;;
10167   lynxos*)
10168     # FIXME: insert proper C++ library support
10169     ld_shlibs_CXX=no
10170     ;;
10171   m88k*)
10172     # FIXME: insert proper C++ library support
10173     ld_shlibs_CXX=no
10174     ;;
10175   mvs*)
10176     case $cc_basename in
10177       cxx)
10178         # FIXME: insert proper C++ library support
10179         ld_shlibs_CXX=no
10180         ;;
10181       *)
10182         # FIXME: insert proper C++ library support
10183         ld_shlibs_CXX=no
10184         ;;
10185     esac
10186     ;;
10187   netbsd*)
10188     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10189       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10190       wlarc=
10191       hardcode_libdir_flag_spec_CXX='-R$libdir'
10192       hardcode_direct_CXX=yes
10193       hardcode_shlibpath_var_CXX=no
10194     fi
10195     # Workaround some broken pre-1.5 toolchains
10196     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10197     ;;
10198   osf3*)
10199     case $cc_basename in
10200       KCC)
10201         # Kuck and Associates, Inc. (KAI) C++ Compiler
10202
10203         # KCC will only create a shared library if the output file
10204         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10205         # to its proper name (with version) after linking.
10206         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'
10207
10208         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10209         hardcode_libdir_separator_CXX=:
10210
10211         # Archives containing C++ object files must be created using
10212         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10213         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10214
10215         ;;
10216       RCC)
10217         # Rational C++ 2.4.1
10218         # FIXME: insert proper C++ library support
10219         ld_shlibs_CXX=no
10220         ;;
10221       cxx)
10222         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10223         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'
10224
10225         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10226         hardcode_libdir_separator_CXX=:
10227
10228         # Commands to make compiler produce verbose output that lists
10229         # what "hidden" libraries, object files and flags are used when
10230         # linking a shared library.
10231         #
10232         # There doesn't appear to be a way to prevent this compiler from
10233         # explicitly linking system object files so we need to strip them
10234         # from the output so that they don't get included in the library
10235         # dependencies.
10236         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'
10237         ;;
10238       *)
10239         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10240           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10241           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'
10242
10243           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10244           hardcode_libdir_separator_CXX=:
10245
10246           # Commands to make compiler produce verbose output that lists
10247           # what "hidden" libraries, object files and flags are used when
10248           # linking a shared library.
10249           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10250
10251         else
10252           # FIXME: insert proper C++ library support
10253           ld_shlibs_CXX=no
10254         fi
10255         ;;
10256     esac
10257     ;;
10258   osf4* | osf5*)
10259     case $cc_basename in
10260       KCC)
10261         # Kuck and Associates, Inc. (KAI) C++ Compiler
10262
10263         # KCC will only create a shared library if the output file
10264         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10265         # to its proper name (with version) after linking.
10266         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'
10267
10268         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10269         hardcode_libdir_separator_CXX=:
10270
10271         # Archives containing C++ object files must be created using
10272         # the KAI C++ compiler.
10273         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10274         ;;
10275       RCC)
10276         # Rational C++ 2.4.1
10277         # FIXME: insert proper C++ library support
10278         ld_shlibs_CXX=no
10279         ;;
10280       cxx)
10281         allow_undefined_flag_CXX=' -expect_unresolved \*'
10282         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'
10283         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10284           echo "-hidden">> $lib.exp~
10285           $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~
10286           $rm $lib.exp'
10287
10288         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10289         hardcode_libdir_separator_CXX=:
10290
10291         # Commands to make compiler produce verbose output that lists
10292         # what "hidden" libraries, object files and flags are used when
10293         # linking a shared library.
10294         #
10295         # There doesn't appear to be a way to prevent this compiler from
10296         # explicitly linking system object files so we need to strip them
10297         # from the output so that they don't get included in the library
10298         # dependencies.
10299         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'
10300         ;;
10301       *)
10302         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10303           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10304          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'
10305
10306           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10307           hardcode_libdir_separator_CXX=:
10308
10309           # Commands to make compiler produce verbose output that lists
10310           # what "hidden" libraries, object files and flags are used when
10311           # linking a shared library.
10312           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10313
10314         else
10315           # FIXME: insert proper C++ library support
10316           ld_shlibs_CXX=no
10317         fi
10318         ;;
10319     esac
10320     ;;
10321   psos*)
10322     # FIXME: insert proper C++ library support
10323     ld_shlibs_CXX=no
10324     ;;
10325   sco*)
10326     archive_cmds_need_lc_CXX=no
10327     case $cc_basename in
10328       CC)
10329         # FIXME: insert proper C++ library support
10330         ld_shlibs_CXX=no
10331         ;;
10332       *)
10333         # FIXME: insert proper C++ library support
10334         ld_shlibs_CXX=no
10335         ;;
10336     esac
10337     ;;
10338   sunos4*)
10339     case $cc_basename in
10340       CC)
10341         # Sun C++ 4.x
10342         # FIXME: insert proper C++ library support
10343         ld_shlibs_CXX=no
10344         ;;
10345       lcc)
10346         # Lucid
10347         # FIXME: insert proper C++ library support
10348         ld_shlibs_CXX=no
10349         ;;
10350       *)
10351         # FIXME: insert proper C++ library support
10352         ld_shlibs_CXX=no
10353         ;;
10354     esac
10355     ;;
10356   solaris*)
10357     case $cc_basename in
10358       CC)
10359         # Sun C++ 4.2, 5.x and Centerline C++
10360         no_undefined_flag_CXX=' -zdefs'
10361         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10362         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10363         $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'
10364
10365         hardcode_libdir_flag_spec_CXX='-R$libdir'
10366         hardcode_shlibpath_var_CXX=no
10367         case $host_os in
10368           solaris2.0-5 | solaris2.0-5.*) ;;
10369           *)
10370             # The C++ compiler is used as linker so we must use $wl
10371             # flag to pass the commands to the underlying system
10372             # linker.
10373             # Supported since Solaris 2.6 (maybe 2.5.1?)
10374             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10375             ;;
10376         esac
10377         link_all_deplibs_CXX=yes
10378
10379         # Commands to make compiler produce verbose output that lists
10380         # what "hidden" libraries, object files and flags are used when
10381         # linking a shared library.
10382         #
10383         # There doesn't appear to be a way to prevent this compiler from
10384         # explicitly linking system object files so we need to strip them
10385         # from the output so that they don't get included in the library
10386         # dependencies.
10387         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'
10388
10389         # Archives containing C++ object files must be created using
10390         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10391         # necessary to make sure instantiated templates are included
10392         # in the archive.
10393         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10394         ;;
10395       gcx)
10396         # Green Hills C++ Compiler
10397         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10398
10399         # The C++ compiler must be used to create the archive.
10400         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10401         ;;
10402       *)
10403         # GNU C++ compiler with Solaris linker
10404         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10405           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10406           if $CC --version | grep -v '^2\.7' > /dev/null; then
10407             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10408             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10409                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10410
10411             # Commands to make compiler produce verbose output that lists
10412             # what "hidden" libraries, object files and flags are used when
10413             # linking a shared library.
10414             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10415           else
10416             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10417             # platform.
10418             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10419             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10420                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10421
10422             # Commands to make compiler produce verbose output that lists
10423             # what "hidden" libraries, object files and flags are used when
10424             # linking a shared library.
10425             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10426           fi
10427
10428           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10429         fi
10430         ;;
10431     esac
10432     ;;
10433   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10434     archive_cmds_need_lc_CXX=no
10435     ;;
10436   tandem*)
10437     case $cc_basename in
10438       NCC)
10439         # NonStop-UX NCC 3.20
10440         # FIXME: insert proper C++ library support
10441         ld_shlibs_CXX=no
10442         ;;
10443       *)
10444         # FIXME: insert proper C++ library support
10445         ld_shlibs_CXX=no
10446         ;;
10447     esac
10448     ;;
10449   vxworks*)
10450     # FIXME: insert proper C++ library support
10451     ld_shlibs_CXX=no
10452     ;;
10453   *)
10454     # FIXME: insert proper C++ library support
10455     ld_shlibs_CXX=no
10456     ;;
10457 esac
10458 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10459 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10460 test "$ld_shlibs_CXX" = no && can_build_shared=no
10461
10462 GCC_CXX="$GXX"
10463 LD_CXX="$LD"
10464
10465 ## CAVEAT EMPTOR:
10466 ## There is no encapsulation within the following macros, do not change
10467 ## the running order or otherwise move them around unless you know exactly
10468 ## what you are doing...
10469
10470 cat > conftest.$ac_ext <<EOF
10471 class Foo
10472 {
10473 public:
10474   Foo (void) { a = 0; }
10475 private:
10476   int a;
10477 };
10478 EOF
10479
10480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10481   (eval $ac_compile) 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; then
10485   # Parse the compiler output and extract the necessary
10486   # objects, libraries and library flags.
10487
10488   # Sentinel used to keep track of whether or not we are before
10489   # the conftest object file.
10490   pre_test_object_deps_done=no
10491
10492   # The `*' in the case matches for architectures that use `case' in
10493   # $output_verbose_cmd can trigger glob expansion during the loop
10494   # eval without this substitution.
10495   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10496
10497   for p in `eval $output_verbose_link_cmd`; do
10498     case $p in
10499
10500     -L* | -R* | -l*)
10501        # Some compilers place space between "-{L,R}" and the path.
10502        # Remove the space.
10503        if test $p = "-L" \
10504           || test $p = "-R"; then
10505          prev=$p
10506          continue
10507        else
10508          prev=
10509        fi
10510
10511        if test "$pre_test_object_deps_done" = no; then
10512          case $p in
10513          -L* | -R*)
10514            # Internal compiler library paths should come after those
10515            # provided the user.  The postdeps already come after the
10516            # user supplied libs so there is no need to process them.
10517            if test -z "$compiler_lib_search_path_CXX"; then
10518              compiler_lib_search_path_CXX="${prev}${p}"
10519            else
10520              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10521            fi
10522            ;;
10523          # The "-l" case would never come before the object being
10524          # linked, so don't bother handling this case.
10525          esac
10526        else
10527          if test -z "$postdeps_CXX"; then
10528            postdeps_CXX="${prev}${p}"
10529          else
10530            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10531          fi
10532        fi
10533        ;;
10534
10535     *.$objext)
10536        # This assumes that the test object file only shows up
10537        # once in the compiler output.
10538        if test "$p" = "conftest.$objext"; then
10539          pre_test_object_deps_done=yes
10540          continue
10541        fi
10542
10543        if test "$pre_test_object_deps_done" = no; then
10544          if test -z "$predep_objects_CXX"; then
10545            predep_objects_CXX="$p"
10546          else
10547            predep_objects_CXX="$predep_objects_CXX $p"
10548          fi
10549        else
10550          if test -z "$postdep_objects_CXX"; then
10551            postdep_objects_CXX="$p"
10552          else
10553            postdep_objects_CXX="$postdep_objects_CXX $p"
10554          fi
10555        fi
10556        ;;
10557
10558     *) ;; # Ignore the rest.
10559
10560     esac
10561   done
10562
10563   # Clean up.
10564   rm -f a.out a.exe
10565 else
10566   echo "libtool.m4: error: problem compiling CXX test program"
10567 fi
10568
10569 $rm -f confest.$objext
10570
10571 case " $postdeps_CXX " in
10572 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10573 esac
10574
10575 lt_prog_compiler_wl_CXX=
10576 lt_prog_compiler_pic_CXX=
10577 lt_prog_compiler_static_CXX=
10578
10579 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10581
10582   # C++ specific cases for pic, static, wl, etc.
10583   if test "$GXX" = yes; then
10584     lt_prog_compiler_wl_CXX='-Wl,'
10585     lt_prog_compiler_static_CXX='-static'
10586
10587     case $host_os in
10588     aix*)
10589       # All AIX code is PIC.
10590       if test "$host_cpu" = ia64; then
10591         # AIX 5 now supports IA64 processor
10592         lt_prog_compiler_static_CXX='-Bstatic'
10593       fi
10594       ;;
10595     amigaos*)
10596       # FIXME: we need at least 68020 code to build shared libraries, but
10597       # adding the `-m68020' flag to GCC prevents building anything better,
10598       # like `-m68040'.
10599       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10600       ;;
10601     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10602       # PIC is the default for these OSes.
10603       ;;
10604     mingw* | os2* | pw32*)
10605       # This hack is so that the source file can tell whether it is being
10606       # built for inclusion in a dll (and should export symbols for example).
10607       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10608       ;;
10609     darwin* | rhapsody*)
10610       # PIC is the default on this platform
10611       # Common symbols not allowed in MH_DYLIB files
10612       lt_prog_compiler_pic_CXX='-fno-common'
10613       ;;
10614     *djgpp*)
10615       # DJGPP does not support shared libraries at all
10616       lt_prog_compiler_pic_CXX=
10617       ;;
10618     sysv4*MP*)
10619       if test -d /usr/nec; then
10620         lt_prog_compiler_pic_CXX=-Kconform_pic
10621       fi
10622       ;;
10623     hpux*)
10624       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10625       # not for PA HP-UX.
10626       case "$host_cpu" in
10627       hppa*64*|ia64*)
10628         ;;
10629       *)
10630         lt_prog_compiler_pic_CXX='-fPIC'
10631         ;;
10632       esac
10633       ;;
10634     *)
10635       lt_prog_compiler_pic_CXX='-fPIC'
10636       ;;
10637     esac
10638   else
10639     case $host_os in
10640       aix4* | aix5*)
10641         # All AIX code is PIC.
10642         if test "$host_cpu" = ia64; then
10643           # AIX 5 now supports IA64 processor
10644           lt_prog_compiler_static_CXX='-Bstatic'
10645         else
10646           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10647         fi
10648         ;;
10649       chorus*)
10650         case $cc_basename in
10651         cxch68)
10652           # Green Hills C++ Compiler
10653           # _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"
10654           ;;
10655         esac
10656         ;;
10657       dgux*)
10658         case $cc_basename in
10659           ec++)
10660             lt_prog_compiler_pic_CXX='-KPIC'
10661             ;;
10662           ghcx)
10663             # Green Hills C++ Compiler
10664             lt_prog_compiler_pic_CXX='-pic'
10665             ;;
10666           *)
10667             ;;
10668         esac
10669         ;;
10670       freebsd*)
10671         # FreeBSD uses GNU C++
10672         ;;
10673       hpux9* | hpux10* | hpux11*)
10674         case $cc_basename in
10675           CC)
10676             lt_prog_compiler_wl_CXX='-Wl,'
10677             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10678             if test "$host_cpu" != ia64; then
10679               lt_prog_compiler_pic_CXX='+Z'
10680             fi
10681             ;;
10682           aCC)
10683             lt_prog_compiler_wl_CXX='-Wl,'
10684             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10685             case "$host_cpu" in
10686             hppa*64*|ia64*)
10687               # +Z the default
10688               ;;
10689             *)
10690               lt_prog_compiler_pic_CXX='+Z'
10691               ;;
10692             esac
10693             ;;
10694           *)
10695             ;;
10696         esac
10697         ;;
10698       irix5* | irix6* | nonstopux*)
10699         case $cc_basename in
10700           CC)
10701             lt_prog_compiler_wl_CXX='-Wl,'
10702             lt_prog_compiler_static_CXX='-non_shared'
10703             # CC pic flag -KPIC is the default.
10704             ;;
10705           *)
10706             ;;
10707         esac
10708         ;;
10709       linux*)
10710         case $cc_basename in
10711           KCC)
10712             # KAI C++ Compiler
10713             lt_prog_compiler_wl_CXX='--backend -Wl,'
10714             lt_prog_compiler_pic_CXX='-fPIC'
10715             ;;
10716           icpc)
10717             # Intel C++
10718             lt_prog_compiler_wl_CXX='-Wl,'
10719             lt_prog_compiler_pic_CXX='-KPIC'
10720             lt_prog_compiler_static_CXX='-static'
10721             ;;
10722           cxx)
10723             # Compaq C++
10724             # Make sure the PIC flag is empty.  It appears that all Alpha
10725             # Linux and Compaq Tru64 Unix objects are PIC.
10726             lt_prog_compiler_pic_CXX=
10727             lt_prog_compiler_static_CXX='-non_shared'
10728             ;;
10729           *)
10730             ;;
10731         esac
10732         ;;
10733       lynxos*)
10734         ;;
10735       m88k*)
10736         ;;
10737       mvs*)
10738         case $cc_basename in
10739           cxx)
10740             lt_prog_compiler_pic_CXX='-W c,exportall'
10741             ;;
10742           *)
10743             ;;
10744         esac
10745         ;;
10746       netbsd*)
10747         ;;
10748       osf3* | osf4* | osf5*)
10749         case $cc_basename in
10750           KCC)
10751             lt_prog_compiler_wl_CXX='--backend -Wl,'
10752             ;;
10753           RCC)
10754             # Rational C++ 2.4.1
10755             lt_prog_compiler_pic_CXX='-pic'
10756             ;;
10757           cxx)
10758             # Digital/Compaq C++
10759             lt_prog_compiler_wl_CXX='-Wl,'
10760             # Make sure the PIC flag is empty.  It appears that all Alpha
10761             # Linux and Compaq Tru64 Unix objects are PIC.
10762             lt_prog_compiler_pic_CXX=
10763             lt_prog_compiler_static_CXX='-non_shared'
10764             ;;
10765           *)
10766             ;;
10767         esac
10768         ;;
10769       psos*)
10770         ;;
10771       sco*)
10772         case $cc_basename in
10773           CC)
10774             lt_prog_compiler_pic_CXX='-fPIC'
10775             ;;
10776           *)
10777             ;;
10778         esac
10779         ;;
10780       solaris*)
10781         case $cc_basename in
10782           CC)
10783             # Sun C++ 4.2, 5.x and Centerline C++
10784             lt_prog_compiler_pic_CXX='-KPIC'
10785             lt_prog_compiler_static_CXX='-Bstatic'
10786             lt_prog_compiler_wl_CXX='-Qoption ld '
10787             ;;
10788           gcx)
10789             # Green Hills C++ Compiler
10790             lt_prog_compiler_pic_CXX='-PIC'
10791             ;;
10792           *)
10793             ;;
10794         esac
10795         ;;
10796       sunos4*)
10797         case $cc_basename in
10798           CC)
10799             # Sun C++ 4.x
10800             lt_prog_compiler_pic_CXX='-pic'
10801             lt_prog_compiler_static_CXX='-Bstatic'
10802             ;;
10803           lcc)
10804             # Lucid
10805             lt_prog_compiler_pic_CXX='-pic'
10806             ;;
10807           *)
10808             ;;
10809         esac
10810         ;;
10811       tandem*)
10812         case $cc_basename in
10813           NCC)
10814             # NonStop-UX NCC 3.20
10815             lt_prog_compiler_pic_CXX='-KPIC'
10816             ;;
10817           *)
10818             ;;
10819         esac
10820         ;;
10821       unixware*)
10822         ;;
10823       vxworks*)
10824         ;;
10825       *)
10826         lt_prog_compiler_can_build_shared_CXX=no
10827         ;;
10828     esac
10829   fi
10830
10831 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10832 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10833
10834 #
10835 # Check to make sure the PIC flag actually works.
10836 #
10837 if test -n "$lt_prog_compiler_pic_CXX"; then
10838   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10839 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10840 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843   lt_prog_compiler_pic_works_CXX=no
10844   ac_outfile=conftest.$ac_objext
10845    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10846    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10847    # Insert the option either (1) after the last *FLAGS variable, or
10848    # (2) before a word containing "conftest.", or (3) at the end.
10849    # Note that $ac_compile itself does not contain backslashes and begins
10850    # with a dollar sign (not a hyphen), so the echo should work correctly.
10851    # The option is referenced via a variable to avoid confusing sed.
10852    lt_compile=`echo "$ac_compile" | $SED \
10853    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10854    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10855    -e 's:$: $lt_compiler_flag:'`
10856    (eval echo "\"\$as_me:10856: $lt_compile\"" >&5)
10857    (eval "$lt_compile" 2>conftest.err)
10858    ac_status=$?
10859    cat conftest.err >&5
10860    echo "$as_me:10860: \$? = $ac_status" >&5
10861    if (exit $ac_status) && test -s "$ac_outfile"; then
10862      # The compiler can only warn and ignore the option if not recognized
10863      # So say no if there are warnings
10864      if test ! -s conftest.err; then
10865        lt_prog_compiler_pic_works_CXX=yes
10866      fi
10867    fi
10868    $rm conftest*
10869
10870 fi
10871 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10872 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10873
10874 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10875     case $lt_prog_compiler_pic_CXX in
10876      "" | " "*) ;;
10877      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10878      esac
10879 else
10880     lt_prog_compiler_pic_CXX=
10881      lt_prog_compiler_can_build_shared_CXX=no
10882 fi
10883
10884 fi
10885 case "$host_os" in
10886   # For platforms which do not support PIC, -DPIC is meaningless:
10887   *djgpp*)
10888     lt_prog_compiler_pic_CXX=
10889     ;;
10890   *)
10891     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10892     ;;
10893 esac
10894
10895 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10896 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10897 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10898   echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900   lt_cv_prog_compiler_c_o_CXX=no
10901    $rm -r conftest 2>/dev/null
10902    mkdir conftest
10903    cd conftest
10904    mkdir out
10905    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10906
10907    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10908    # that will create temporary files in the current directory regardless of
10909    # the output directory.  Thus, making CWD read-only will cause this test
10910    # to fail, enabling locking or at least warning the user not to do parallel
10911    # builds.
10912    chmod -w .
10913
10914    lt_compiler_flag="-o out/conftest2.$ac_objext"
10915    # Insert the option either (1) after the last *FLAGS variable, or
10916    # (2) before a word containing "conftest.", or (3) at the end.
10917    # Note that $ac_compile itself does not contain backslashes and begins
10918    # with a dollar sign (not a hyphen), so the echo should work correctly.
10919    lt_compile=`echo "$ac_compile" | $SED \
10920    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10921    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10922    -e 's:$: $lt_compiler_flag:'`
10923    (eval echo "\"\$as_me:10923: $lt_compile\"" >&5)
10924    (eval "$lt_compile" 2>out/conftest.err)
10925    ac_status=$?
10926    cat out/conftest.err >&5
10927    echo "$as_me:10927: \$? = $ac_status" >&5
10928    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10929    then
10930      # The compiler can only warn and ignore the option if not recognized
10931      # So say no if there are warnings
10932      if test ! -s out/conftest.err; then
10933        lt_cv_prog_compiler_c_o_CXX=yes
10934      fi
10935    fi
10936    chmod u+w .
10937    $rm conftest* out/*
10938    rmdir out
10939    cd ..
10940    rmdir conftest
10941    $rm conftest*
10942
10943 fi
10944 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10946
10947
10948 hard_links="nottested"
10949 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10950   # do not overwrite the value of need_locks provided by the user
10951   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10953   hard_links=yes
10954   $rm conftest*
10955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10956   touch conftest.a
10957   ln conftest.a conftest.b 2>&5 || hard_links=no
10958   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10959   echo "$as_me:$LINENO: result: $hard_links" >&5
10960 echo "${ECHO_T}$hard_links" >&6
10961   if test "$hard_links" = no; then
10962     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10964     need_locks=warn
10965   fi
10966 else
10967   need_locks=no
10968 fi
10969
10970 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10972
10973   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10974   case $host_os in
10975   aix4* | aix5*)
10976     # If we're using GNU nm, then we don't want the "-C" option.
10977     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10978     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10979       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'
10980     else
10981       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'
10982     fi
10983     ;;
10984   pw32*)
10985     export_symbols_cmds_CXX="$ltdll_cmds"
10986   ;;
10987   cygwin* | mingw*)
10988     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10989   ;;
10990   *)
10991     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10992   ;;
10993   esac
10994
10995 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10996 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10997 test "$ld_shlibs_CXX" = no && can_build_shared=no
10998
10999 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11000 if test "$GCC" = yes; then
11001   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11002 fi
11003
11004 #
11005 # Do we need to explicitly link libc?
11006 #
11007 case "x$archive_cmds_need_lc_CXX" in
11008 x|xyes)
11009   # Assume -lc should be added
11010   archive_cmds_need_lc_CXX=yes
11011
11012   if test "$enable_shared" = yes && test "$GCC" = yes; then
11013     case $archive_cmds_CXX in
11014     *'~'*)
11015       # FIXME: we may have to deal with multi-command sequences.
11016       ;;
11017     '$CC '*)
11018       # Test whether the compiler implicitly links with -lc since on some
11019       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11020       # to ld, don't add -lc before -lgcc.
11021       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11022 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11023       $rm conftest*
11024       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11025
11026       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11027   (eval $ac_compile) 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } 2>conftest.err; then
11031         soname=conftest
11032         lib=conftest
11033         libobjs=conftest.$ac_objext
11034         deplibs=
11035         wl=$lt_prog_compiler_wl_CXX
11036         compiler_flags=-v
11037         linker_flags=-v
11038         verstring=
11039         output_objdir=.
11040         libname=conftest
11041         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11042         allow_undefined_flag_CXX=
11043         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11044   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); }
11048         then
11049           archive_cmds_need_lc_CXX=no
11050         else
11051           archive_cmds_need_lc_CXX=yes
11052         fi
11053         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11054       else
11055         cat conftest.err 1>&5
11056       fi
11057       $rm conftest*
11058       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11059 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11060       ;;
11061     esac
11062   fi
11063   ;;
11064 esac
11065
11066 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11067 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11068 hardcode_action_CXX=
11069 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11070    test -n "$runpath_var CXX" || \
11071    test "X$hardcode_automatic_CXX"="Xyes" ; then
11072
11073   # We can hardcode non-existant directories.
11074   if test "$hardcode_direct_CXX" != no &&
11075      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11076      # have to relink, otherwise we might link with an installed library
11077      # when we should be linking with a yet-to-be-installed one
11078      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11079      test "$hardcode_minus_L_CXX" != no; then
11080     # Linking always hardcodes the temporary library directory.
11081     hardcode_action_CXX=relink
11082   else
11083     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11084     hardcode_action_CXX=immediate
11085   fi
11086 else
11087   # We cannot hardcode anything, or else we can only hardcode existing
11088   # directories.
11089   hardcode_action_CXX=unsupported
11090 fi
11091 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11092 echo "${ECHO_T}$hardcode_action_CXX" >&6
11093
11094 if test "$hardcode_action_CXX" = relink; then
11095   # Fast installation is not supported
11096   enable_fast_install=no
11097 elif test "$shlibpath_overrides_runpath" = yes ||
11098      test "$enable_shared" = no; then
11099   # Fast installation is not necessary
11100   enable_fast_install=needless
11101 fi
11102
11103 striplib=
11104 old_striplib=
11105 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11106 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11107 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11108   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11109   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11110   echo "$as_me:$LINENO: result: yes" >&5
11111 echo "${ECHO_T}yes" >&6
11112 else
11113 # FIXME - insert some real tests, host_os isn't really good enough
11114   case $host_os in
11115    darwin*)
11116        if test -n "$STRIP" ; then
11117          striplib="$STRIP -x"
11118          echo "$as_me:$LINENO: result: yes" >&5
11119 echo "${ECHO_T}yes" >&6
11120        else
11121   echo "$as_me:$LINENO: result: no" >&5
11122 echo "${ECHO_T}no" >&6
11123 fi
11124        ;;
11125    *)
11126   echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6
11128     ;;
11129   esac
11130 fi
11131
11132 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11133 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11134 library_names_spec=
11135 libname_spec='lib$name'
11136 soname_spec=
11137 shrext=".so"
11138 postinstall_cmds=
11139 postuninstall_cmds=
11140 finish_cmds=
11141 finish_eval=
11142 shlibpath_var=
11143 shlibpath_overrides_runpath=unknown
11144 version_type=none
11145 dynamic_linker="$host_os ld.so"
11146 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11147 if test "$GCC" = yes; then
11148   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11149   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11150     # if the path contains ";" then we assume it to be the separator
11151     # otherwise default to the standard path separator (i.e. ":") - it is
11152     # assumed that no part of a normal pathname contains ";" but that should
11153     # okay in the real world where ";" in dirpaths is itself problematic.
11154     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11155   else
11156     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11157   fi
11158 else
11159   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11160 fi
11161 need_lib_prefix=unknown
11162 hardcode_into_libs=no
11163
11164 # when you set need_version to no, make sure it does not cause -set_version
11165 # flags to be left without arguments
11166 need_version=unknown
11167
11168 case $host_os in
11169 aix3*)
11170   version_type=linux
11171   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11172   shlibpath_var=LIBPATH
11173
11174   # AIX 3 has no versioning support, so we append a major version to the name.
11175   soname_spec='${libname}${release}${shared_ext}$major'
11176   ;;
11177
11178 aix4* | aix5*)
11179   version_type=linux
11180   need_lib_prefix=no
11181   need_version=no
11182   hardcode_into_libs=yes
11183   if test "$host_cpu" = ia64; then
11184     # AIX 5 supports IA64
11185     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11186     shlibpath_var=LD_LIBRARY_PATH
11187   else
11188     # With GCC up to 2.95.x, collect2 would create an import file
11189     # for dependence libraries.  The import file would start with
11190     # the line `#! .'.  This would cause the generated library to
11191     # depend on `.', always an invalid library.  This was fixed in
11192     # development snapshots of GCC prior to 3.0.
11193     case $host_os in
11194       aix4 | aix4.[01] | aix4.[01].*)
11195       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11196            echo ' yes '
11197            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11198         :
11199       else
11200         can_build_shared=no
11201       fi
11202       ;;
11203     esac
11204     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11205     # soname into executable. Probably we can add versioning support to
11206     # collect2, so additional links can be useful in future.
11207     if test "$aix_use_runtimelinking" = yes; then
11208       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11209       # instead of lib<name>.a to let people know that these are not
11210       # typical AIX shared libraries.
11211       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212     else
11213       # We preserve .a as extension for shared libraries through AIX4.2
11214       # and later when we are not doing run time linking.
11215       library_names_spec='${libname}${release}.a $libname.a'
11216       soname_spec='${libname}${release}${shared_ext}$major'
11217     fi
11218     shlibpath_var=LIBPATH
11219   fi
11220   ;;
11221
11222 amigaos*)
11223   library_names_spec='$libname.ixlibrary $libname.a'
11224   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11225   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'
11226   ;;
11227
11228 beos*)
11229   library_names_spec='${libname}${shared_ext}'
11230   dynamic_linker="$host_os ld.so"
11231   shlibpath_var=LIBRARY_PATH
11232   ;;
11233
11234 bsdi4*)
11235   version_type=linux
11236   need_version=no
11237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238   soname_spec='${libname}${release}${shared_ext}$major'
11239   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11240   shlibpath_var=LD_LIBRARY_PATH
11241   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11242   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11243   # the default ld.so.conf also contains /usr/contrib/lib and
11244   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11245   # libtool to hard-code these into programs
11246   ;;
11247
11248 cygwin* | mingw* | pw32*)
11249   version_type=windows
11250   shrext=".dll"
11251   need_version=no
11252   need_lib_prefix=no
11253
11254   case $GCC,$host_os in
11255   yes,cygwin* | yes,mingw* | yes,pw32*)
11256     library_names_spec='$libname.dll.a'
11257     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11258     postinstall_cmds='base_file=`basename \${file}`~
11259       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11260       dldir=$destdir/`dirname \$dlpath`~
11261       test -d \$dldir || mkdir -p \$dldir~
11262       $install_prog $dir/$dlname \$dldir/$dlname'
11263     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11264       dlpath=$dir/\$dldll~
11265        $rm \$dlpath'
11266     shlibpath_overrides_runpath=yes
11267
11268     case $host_os in
11269     cygwin*)
11270       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11271       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11272       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11273       ;;
11274     mingw*)
11275       # MinGW DLLs use traditional 'lib' prefix
11276       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11277       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11278       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11279         # It is most probably a Windows format PATH printed by
11280         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11281         # path with ; separators, and with drive letters. We can handle the
11282         # drive letters (cygwin fileutils understands them), so leave them,
11283         # especially as we might pass files found there to a mingw objdump,
11284         # which wouldn't understand a cygwinified path. Ahh.
11285         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11286       else
11287         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11288       fi
11289       ;;
11290     pw32*)
11291       # pw32 DLLs use 'pw' prefix rather than 'lib'
11292       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11293       ;;
11294     esac
11295     ;;
11296
11297   *)
11298     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11299     ;;
11300   esac
11301   dynamic_linker='Win32 ld.exe'
11302   # FIXME: first we should search . and the directory the executable is in
11303   shlibpath_var=PATH
11304   ;;
11305
11306 darwin* | rhapsody*)
11307   dynamic_linker="$host_os dyld"
11308   version_type=darwin
11309   need_lib_prefix=no
11310   need_version=no
11311   # FIXME: Relying on posixy $() will cause problems for
11312   #        cross-compilation, but unfortunately the echo tests do not
11313   #        yet detect zsh echo's removal of \ escapes.
11314   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11315   soname_spec='${libname}${release}${major}$shared_ext'
11316   shlibpath_overrides_runpath=yes
11317   shlibpath_var=DYLD_LIBRARY_PATH
11318   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11319   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11320   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11321   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"`
11322   fi
11323   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11324   ;;
11325
11326 dgux*)
11327   version_type=linux
11328   need_lib_prefix=no
11329   need_version=no
11330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11331   soname_spec='${libname}${release}${shared_ext}$major'
11332   shlibpath_var=LD_LIBRARY_PATH
11333   ;;
11334
11335 freebsd1*)
11336   dynamic_linker=no
11337   ;;
11338
11339 freebsd*)
11340   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11341   version_type=freebsd-$objformat
11342   case $version_type in
11343     freebsd-elf*)
11344       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11345       need_version=no
11346       need_lib_prefix=no
11347       ;;
11348     freebsd-*)
11349       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11350       need_version=yes
11351       ;;
11352   esac
11353   shlibpath_var=LD_LIBRARY_PATH
11354   case $host_os in
11355   freebsd2*)
11356     shlibpath_overrides_runpath=yes
11357     ;;
11358   freebsd3.01* | freebsdelf3.01*)
11359     shlibpath_overrides_runpath=yes
11360     hardcode_into_libs=yes
11361     ;;
11362   *) # from 3.2 on
11363     shlibpath_overrides_runpath=no
11364     hardcode_into_libs=yes
11365     ;;
11366   esac
11367   ;;
11368
11369 gnu*)
11370   version_type=linux
11371   need_lib_prefix=no
11372   need_version=no
11373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11374   soname_spec='${libname}${release}${shared_ext}$major'
11375   shlibpath_var=LD_LIBRARY_PATH
11376   hardcode_into_libs=yes
11377   ;;
11378
11379 hpux9* | hpux10* | hpux11*)
11380   # Give a soname corresponding to the major version so that dld.sl refuses to
11381   # link against other versions.
11382   version_type=sunos
11383   need_lib_prefix=no
11384   need_version=no
11385   case "$host_cpu" in
11386   ia64*)
11387     shrext='.so'
11388     hardcode_into_libs=yes
11389     dynamic_linker="$host_os dld.so"
11390     shlibpath_var=LD_LIBRARY_PATH
11391     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393     soname_spec='${libname}${release}${shared_ext}$major'
11394     if test "X$HPUX_IA64_MODE" = X32; then
11395       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11396     else
11397       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11398     fi
11399     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11400     ;;
11401    hppa*64*)
11402      shrext='.sl'
11403      hardcode_into_libs=yes
11404      dynamic_linker="$host_os dld.sl"
11405      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11406      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11407      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11408      soname_spec='${libname}${release}${shared_ext}$major'
11409      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11410      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11411      ;;
11412    *)
11413     shrext='.sl'
11414     dynamic_linker="$host_os dld.sl"
11415     shlibpath_var=SHLIB_PATH
11416     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418     soname_spec='${libname}${release}${shared_ext}$major'
11419     ;;
11420   esac
11421   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11422   postinstall_cmds='chmod 555 $lib'
11423   ;;
11424
11425 irix5* | irix6* | nonstopux*)
11426   case $host_os in
11427     nonstopux*) version_type=nonstopux ;;
11428     *)
11429         if test "$lt_cv_prog_gnu_ld" = yes; then
11430                 version_type=linux
11431         else
11432                 version_type=irix
11433         fi ;;
11434   esac
11435   need_lib_prefix=no
11436   need_version=no
11437   soname_spec='${libname}${release}${shared_ext}$major'
11438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11439   case $host_os in
11440   irix5* | nonstopux*)
11441     libsuff= shlibsuff=
11442     ;;
11443   *)
11444     case $LD in # libtool.m4 will add one of these switches to LD
11445     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11446       libsuff= shlibsuff= libmagic=32-bit;;
11447     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11448       libsuff=32 shlibsuff=N32 libmagic=N32;;
11449     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11450       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11451     *) libsuff= shlibsuff= libmagic=never-match;;
11452     esac
11453     ;;
11454   esac
11455   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11456   shlibpath_overrides_runpath=no
11457   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11458   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11459   hardcode_into_libs=yes
11460   ;;
11461
11462 # No shared lib support for Linux oldld, aout, or coff.
11463 linux*oldld* | linux*aout* | linux*coff*)
11464   dynamic_linker=no
11465   ;;
11466
11467 # This must be Linux ELF.
11468 linux*)
11469   version_type=linux
11470   need_lib_prefix=no
11471   need_version=no
11472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473   soname_spec='${libname}${release}${shared_ext}$major'
11474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11475   shlibpath_var=LD_LIBRARY_PATH
11476   shlibpath_overrides_runpath=no
11477   # This implies no fast_install, which is unacceptable.
11478   # Some rework will be needed to allow for fast_install
11479   # before this can be enabled.
11480   hardcode_into_libs=yes
11481
11482   # We used to test for /lib/ld.so.1 and disable shared libraries on
11483   # powerpc, because MkLinux only supported shared libraries with the
11484   # GNU dynamic linker.  Since this was broken with cross compilers,
11485   # most powerpc-linux boxes support dynamic linking these days and
11486   # people can always --disable-shared, the test was removed, and we
11487   # assume the GNU/Linux dynamic linker is in use.
11488   dynamic_linker='GNU/Linux ld.so'
11489   ;;
11490
11491 netbsd*)
11492   version_type=sunos
11493   need_lib_prefix=no
11494   need_version=no
11495   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11497     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11498     dynamic_linker='NetBSD (a.out) ld.so'
11499   else
11500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11501     soname_spec='${libname}${release}${shared_ext}$major'
11502     dynamic_linker='NetBSD ld.elf_so'
11503   fi
11504   shlibpath_var=LD_LIBRARY_PATH
11505   shlibpath_overrides_runpath=yes
11506   hardcode_into_libs=yes
11507   ;;
11508
11509 newsos6)
11510   version_type=linux
11511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512   shlibpath_var=LD_LIBRARY_PATH
11513   shlibpath_overrides_runpath=yes
11514   ;;
11515
11516 nto-qnx)
11517   version_type=linux
11518   need_lib_prefix=no
11519   need_version=no
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521   soname_spec='${libname}${release}${shared_ext}$major'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   shlibpath_overrides_runpath=yes
11524   ;;
11525
11526 openbsd*)
11527   version_type=sunos
11528   need_lib_prefix=no
11529   need_version=no
11530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11531   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11532   shlibpath_var=LD_LIBRARY_PATH
11533   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11534     case $host_os in
11535       openbsd2.[89] | openbsd2.[89].*)
11536         shlibpath_overrides_runpath=no
11537         ;;
11538       *)
11539         shlibpath_overrides_runpath=yes
11540         ;;
11541       esac
11542   else
11543     shlibpath_overrides_runpath=yes
11544   fi
11545   ;;
11546
11547 os2*)
11548   libname_spec='$name'
11549   shrext=".dll"
11550   need_lib_prefix=no
11551   library_names_spec='$libname${shared_ext} $libname.a'
11552   dynamic_linker='OS/2 ld.exe'
11553   shlibpath_var=LIBPATH
11554   ;;
11555
11556 osf3* | osf4* | osf5*)
11557   version_type=osf
11558   need_lib_prefix=no
11559   need_version=no
11560   soname_spec='${libname}${release}${shared_ext}$major'
11561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562   shlibpath_var=LD_LIBRARY_PATH
11563   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11564   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11565   ;;
11566
11567 sco3.2v5*)
11568   version_type=osf
11569   soname_spec='${libname}${release}${shared_ext}$major'
11570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571   shlibpath_var=LD_LIBRARY_PATH
11572   ;;
11573
11574 solaris*)
11575   version_type=linux
11576   need_lib_prefix=no
11577   need_version=no
11578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579   soname_spec='${libname}${release}${shared_ext}$major'
11580   shlibpath_var=LD_LIBRARY_PATH
11581   shlibpath_overrides_runpath=yes
11582   hardcode_into_libs=yes
11583   # ldd complains unless libraries are executable
11584   postinstall_cmds='chmod +x $lib'
11585   ;;
11586
11587 sunos4*)
11588   version_type=sunos
11589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11590   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11591   shlibpath_var=LD_LIBRARY_PATH
11592   shlibpath_overrides_runpath=yes
11593   if test "$with_gnu_ld" = yes; then
11594     need_lib_prefix=no
11595   fi
11596   need_version=yes
11597   ;;
11598
11599 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11600   version_type=linux
11601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11602   soname_spec='${libname}${release}${shared_ext}$major'
11603   shlibpath_var=LD_LIBRARY_PATH
11604   case $host_vendor in
11605     sni)
11606       shlibpath_overrides_runpath=no
11607       need_lib_prefix=no
11608       export_dynamic_flag_spec='${wl}-Blargedynsym'
11609       runpath_var=LD_RUN_PATH
11610       ;;
11611     siemens)
11612       need_lib_prefix=no
11613       ;;
11614     motorola)
11615       need_lib_prefix=no
11616       need_version=no
11617       shlibpath_overrides_runpath=no
11618       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11619       ;;
11620   esac
11621   ;;
11622
11623 sysv4*MP*)
11624   if test -d /usr/nec ;then
11625     version_type=linux
11626     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11627     soname_spec='$libname${shared_ext}.$major'
11628     shlibpath_var=LD_LIBRARY_PATH
11629   fi
11630   ;;
11631
11632 uts4*)
11633   version_type=linux
11634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635   soname_spec='${libname}${release}${shared_ext}$major'
11636   shlibpath_var=LD_LIBRARY_PATH
11637   ;;
11638
11639 *)
11640   dynamic_linker=no
11641   ;;
11642 esac
11643 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11644 echo "${ECHO_T}$dynamic_linker" >&6
11645 test "$dynamic_linker" = no && can_build_shared=no
11646
11647 if test "x$enable_dlopen" != xyes; then
11648   enable_dlopen=unknown
11649   enable_dlopen_self=unknown
11650   enable_dlopen_self_static=unknown
11651 else
11652   lt_cv_dlopen=no
11653   lt_cv_dlopen_libs=
11654
11655   case $host_os in
11656   beos*)
11657     lt_cv_dlopen="load_add_on"
11658     lt_cv_dlopen_libs=
11659     lt_cv_dlopen_self=yes
11660     ;;
11661
11662   mingw* | pw32*)
11663     lt_cv_dlopen="LoadLibrary"
11664     lt_cv_dlopen_libs=
11665    ;;
11666
11667   cygwin*)
11668     lt_cv_dlopen="dlopen"
11669     lt_cv_dlopen_libs=
11670    ;;
11671
11672   darwin*)
11673   # if libdl is installed we need to link against it
11674     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11675 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11676 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11677   echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679   ac_check_lib_save_LIBS=$LIBS
11680 LIBS="-ldl  $LIBS"
11681 cat >conftest.$ac_ext <<_ACEOF
11682 #line $LINENO "configure"
11683 /* confdefs.h.  */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h.  */
11688
11689 /* Override any gcc2 internal prototype to avoid an error.  */
11690 #ifdef __cplusplus
11691 extern "C"
11692 #endif
11693 /* We use char because int might match the return type of a gcc2
11694    builtin and then its argument prototype would still apply.  */
11695 char dlopen ();
11696 int
11697 main ()
11698 {
11699 dlopen ();
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706   (eval $ac_link) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } &&
11710          { ac_try='test -s conftest$ac_exeext'
11711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712   (eval $ac_try) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); }; }; then
11716   ac_cv_lib_dl_dlopen=yes
11717 else
11718   echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11720
11721 ac_cv_lib_dl_dlopen=no
11722 fi
11723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11724 LIBS=$ac_check_lib_save_LIBS
11725 fi
11726 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11727 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11728 if test $ac_cv_lib_dl_dlopen = yes; then
11729   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11730 else
11731
11732     lt_cv_dlopen="dyld"
11733     lt_cv_dlopen_libs=
11734     lt_cv_dlopen_self=yes
11735
11736 fi
11737
11738    ;;
11739
11740   *)
11741     echo "$as_me:$LINENO: checking for shl_load" >&5
11742 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11743 if test "${ac_cv_func_shl_load+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 /* System header to define __stub macros and hopefully few prototypes,
11754     which can conflict with char shl_load (); below.
11755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756     <limits.h> exists even on freestanding compilers.  */
11757 #ifdef __STDC__
11758 # include <limits.h>
11759 #else
11760 # include <assert.h>
11761 #endif
11762 /* Override any gcc2 internal prototype to avoid an error.  */
11763 #ifdef __cplusplus
11764 extern "C"
11765 {
11766 #endif
11767 /* We use char because int might match the return type of a gcc2
11768    builtin and then its argument prototype would still apply.  */
11769 char shl_load ();
11770 /* The GNU C library defines this for functions which it implements
11771     to always fail with ENOSYS.  Some functions are actually named
11772     something starting with __ and the normal name is an alias.  */
11773 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11774 choke me
11775 #else
11776 char (*f) () = shl_load;
11777 #endif
11778 #ifdef __cplusplus
11779 }
11780 #endif
11781
11782 int
11783 main ()
11784 {
11785 return f != shl_load;
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11792   (eval $ac_link) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -s conftest$ac_exeext'
11797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798   (eval $ac_try) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }; then
11802   ac_cv_func_shl_load=yes
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807 ac_cv_func_shl_load=no
11808 fi
11809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11810 fi
11811 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11812 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11813 if test $ac_cv_func_shl_load = yes; then
11814   lt_cv_dlopen="shl_load"
11815 else
11816   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11817 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11818 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11819   echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821   ac_check_lib_save_LIBS=$LIBS
11822 LIBS="-ldld  $LIBS"
11823 cat >conftest.$ac_ext <<_ACEOF
11824 #line $LINENO "configure"
11825 /* confdefs.h.  */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h.  */
11830
11831 /* Override any gcc2 internal prototype to avoid an error.  */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 /* We use char because int might match the return type of a gcc2
11836    builtin and then its argument prototype would still apply.  */
11837 char shl_load ();
11838 int
11839 main ()
11840 {
11841 shl_load ();
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11848   (eval $ac_link) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } &&
11852          { ac_try='test -s conftest$ac_exeext'
11853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854   (eval $ac_try) 2>&5
11855   ac_status=$?
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); }; }; then
11858   ac_cv_lib_dld_shl_load=yes
11859 else
11860   echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11862
11863 ac_cv_lib_dld_shl_load=no
11864 fi
11865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11866 LIBS=$ac_check_lib_save_LIBS
11867 fi
11868 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11869 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11870 if test $ac_cv_lib_dld_shl_load = yes; then
11871   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11872 else
11873   echo "$as_me:$LINENO: checking for dlopen" >&5
11874 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11875 if test "${ac_cv_func_dlopen+set}" = set; then
11876   echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878   cat >conftest.$ac_ext <<_ACEOF
11879 #line $LINENO "configure"
11880 /* confdefs.h.  */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h.  */
11885 /* System header to define __stub macros and hopefully few prototypes,
11886     which can conflict with char dlopen (); below.
11887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888     <limits.h> exists even on freestanding compilers.  */
11889 #ifdef __STDC__
11890 # include <limits.h>
11891 #else
11892 # include <assert.h>
11893 #endif
11894 /* Override any gcc2 internal prototype to avoid an error.  */
11895 #ifdef __cplusplus
11896 extern "C"
11897 {
11898 #endif
11899 /* We use char because int might match the return type of a gcc2
11900    builtin and then its argument prototype would still apply.  */
11901 char dlopen ();
11902 /* The GNU C library defines this for functions which it implements
11903     to always fail with ENOSYS.  Some functions are actually named
11904     something starting with __ and the normal name is an alias.  */
11905 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11906 choke me
11907 #else
11908 char (*f) () = dlopen;
11909 #endif
11910 #ifdef __cplusplus
11911 }
11912 #endif
11913
11914 int
11915 main ()
11916 {
11917 return f != dlopen;
11918   ;
11919   return 0;
11920 }
11921 _ACEOF
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924   (eval $ac_link) 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } &&
11928          { ac_try='test -s conftest$ac_exeext'
11929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930   (eval $ac_try) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; }; then
11934   ac_cv_func_dlopen=yes
11935 else
11936   echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11938
11939 ac_cv_func_dlopen=no
11940 fi
11941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11942 fi
11943 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11944 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11945 if test $ac_cv_func_dlopen = yes; then
11946   lt_cv_dlopen="dlopen"
11947 else
11948   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11949 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-ldl  $LIBS"
11955 cat >conftest.$ac_ext <<_ACEOF
11956 #line $LINENO "configure"
11957 /* confdefs.h.  */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h.  */
11962
11963 /* Override any gcc2 internal prototype to avoid an error.  */
11964 #ifdef __cplusplus
11965 extern "C"
11966 #endif
11967 /* We use char because int might match the return type of a gcc2
11968    builtin and then its argument prototype would still apply.  */
11969 char dlopen ();
11970 int
11971 main ()
11972 {
11973 dlopen ();
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11980   (eval $ac_link) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); } &&
11984          { ac_try='test -s conftest$ac_exeext'
11985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986   (eval $ac_try) 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); }; }; then
11990   ac_cv_lib_dl_dlopen=yes
11991 else
11992   echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11994
11995 ac_cv_lib_dl_dlopen=no
11996 fi
11997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
11999 fi
12000 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12001 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12002 if test $ac_cv_lib_dl_dlopen = yes; then
12003   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12004 else
12005   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12006 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12007 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010   ac_check_lib_save_LIBS=$LIBS
12011 LIBS="-lsvld  $LIBS"
12012 cat >conftest.$ac_ext <<_ACEOF
12013 #line $LINENO "configure"
12014 /* confdefs.h.  */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h.  */
12019
12020 /* Override any gcc2 internal prototype to avoid an error.  */
12021 #ifdef __cplusplus
12022 extern "C"
12023 #endif
12024 /* We use char because int might match the return type of a gcc2
12025    builtin and then its argument prototype would still apply.  */
12026 char dlopen ();
12027 int
12028 main ()
12029 {
12030 dlopen ();
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037   (eval $ac_link) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -s conftest$ac_exeext'
12042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043   (eval $ac_try) 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; }; then
12047   ac_cv_lib_svld_dlopen=yes
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052 ac_cv_lib_svld_dlopen=no
12053 fi
12054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12056 fi
12057 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12058 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12059 if test $ac_cv_lib_svld_dlopen = yes; then
12060   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12061 else
12062   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12063 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12064 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12065   echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067   ac_check_lib_save_LIBS=$LIBS
12068 LIBS="-ldld  $LIBS"
12069 cat >conftest.$ac_ext <<_ACEOF
12070 #line $LINENO "configure"
12071 /* confdefs.h.  */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h.  */
12076
12077 /* Override any gcc2 internal prototype to avoid an error.  */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 /* We use char because int might match the return type of a gcc2
12082    builtin and then its argument prototype would still apply.  */
12083 char dld_link ();
12084 int
12085 main ()
12086 {
12087 dld_link ();
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
12092 rm -f conftest.$ac_objext conftest$ac_exeext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12094   (eval $ac_link) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); } &&
12098          { ac_try='test -s conftest$ac_exeext'
12099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100   (eval $ac_try) 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   ac_cv_lib_dld_dld_link=yes
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109 ac_cv_lib_dld_dld_link=no
12110 fi
12111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12112 LIBS=$ac_check_lib_save_LIBS
12113 fi
12114 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12115 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12116 if test $ac_cv_lib_dld_dld_link = yes; then
12117   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12118 fi
12119
12120
12121 fi
12122
12123
12124 fi
12125
12126
12127 fi
12128
12129
12130 fi
12131
12132
12133 fi
12134
12135     ;;
12136   esac
12137
12138   if test "x$lt_cv_dlopen" != xno; then
12139     enable_dlopen=yes
12140   else
12141     enable_dlopen=no
12142   fi
12143
12144   case $lt_cv_dlopen in
12145   dlopen)
12146     save_CPPFLAGS="$CPPFLAGS"
12147     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12148
12149     save_LDFLAGS="$LDFLAGS"
12150     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12151
12152     save_LIBS="$LIBS"
12153     LIBS="$lt_cv_dlopen_libs $LIBS"
12154
12155     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12156 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12157 if test "${lt_cv_dlopen_self+set}" = set; then
12158   echo $ECHO_N "(cached) $ECHO_C" >&6
12159 else
12160           if test "$cross_compiling" = yes; then :
12161   lt_cv_dlopen_self=cross
12162 else
12163   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12164   lt_status=$lt_dlunknown
12165   cat > conftest.$ac_ext <<EOF
12166 #line 12166 "configure"
12167 #include "confdefs.h"
12168
12169 #if HAVE_DLFCN_H
12170 #include <dlfcn.h>
12171 #endif
12172
12173 #include <stdio.h>
12174
12175 #ifdef RTLD_GLOBAL
12176 #  define LT_DLGLOBAL           RTLD_GLOBAL
12177 #else
12178 #  ifdef DL_GLOBAL
12179 #    define LT_DLGLOBAL         DL_GLOBAL
12180 #  else
12181 #    define LT_DLGLOBAL         0
12182 #  endif
12183 #endif
12184
12185 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12186    find out it does not work in some platform. */
12187 #ifndef LT_DLLAZY_OR_NOW
12188 #  ifdef RTLD_LAZY
12189 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12190 #  else
12191 #    ifdef DL_LAZY
12192 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12193 #    else
12194 #      ifdef RTLD_NOW
12195 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12196 #      else
12197 #        ifdef DL_NOW
12198 #          define LT_DLLAZY_OR_NOW      DL_NOW
12199 #        else
12200 #          define LT_DLLAZY_OR_NOW      0
12201 #        endif
12202 #      endif
12203 #    endif
12204 #  endif
12205 #endif
12206
12207 #ifdef __cplusplus
12208 extern "C" void exit (int);
12209 #endif
12210
12211 void fnord() { int i=42;}
12212 int main ()
12213 {
12214   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12215   int status = $lt_dlunknown;
12216
12217   if (self)
12218     {
12219       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12220       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12221       /* dlclose (self); */
12222     }
12223
12224     exit (status);
12225 }
12226 EOF
12227   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228   (eval $ac_link) 2>&5
12229   ac_status=$?
12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12232     (./conftest; exit; ) 2>/dev/null
12233     lt_status=$?
12234     case x$lt_status in
12235       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12236       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12237       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12238     esac
12239   else :
12240     # compilation failed
12241     lt_cv_dlopen_self=no
12242   fi
12243 fi
12244 rm -fr conftest*
12245
12246
12247 fi
12248 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12249 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12250
12251     if test "x$lt_cv_dlopen_self" = xyes; then
12252       LDFLAGS="$LDFLAGS $link_static_flag"
12253       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12254 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12255 if test "${lt_cv_dlopen_self_static+set}" = set; then
12256   echo $ECHO_N "(cached) $ECHO_C" >&6
12257 else
12258           if test "$cross_compiling" = yes; then :
12259   lt_cv_dlopen_self_static=cross
12260 else
12261   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12262   lt_status=$lt_dlunknown
12263   cat > conftest.$ac_ext <<EOF
12264 #line 12264 "configure"
12265 #include "confdefs.h"
12266
12267 #if HAVE_DLFCN_H
12268 #include <dlfcn.h>
12269 #endif
12270
12271 #include <stdio.h>
12272
12273 #ifdef RTLD_GLOBAL
12274 #  define LT_DLGLOBAL           RTLD_GLOBAL
12275 #else
12276 #  ifdef DL_GLOBAL
12277 #    define LT_DLGLOBAL         DL_GLOBAL
12278 #  else
12279 #    define LT_DLGLOBAL         0
12280 #  endif
12281 #endif
12282
12283 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12284    find out it does not work in some platform. */
12285 #ifndef LT_DLLAZY_OR_NOW
12286 #  ifdef RTLD_LAZY
12287 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12288 #  else
12289 #    ifdef DL_LAZY
12290 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12291 #    else
12292 #      ifdef RTLD_NOW
12293 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12294 #      else
12295 #        ifdef DL_NOW
12296 #          define LT_DLLAZY_OR_NOW      DL_NOW
12297 #        else
12298 #          define LT_DLLAZY_OR_NOW      0
12299 #        endif
12300 #      endif
12301 #    endif
12302 #  endif
12303 #endif
12304
12305 #ifdef __cplusplus
12306 extern "C" void exit (int);
12307 #endif
12308
12309 void fnord() { int i=42;}
12310 int main ()
12311 {
12312   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12313   int status = $lt_dlunknown;
12314
12315   if (self)
12316     {
12317       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12318       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12319       /* dlclose (self); */
12320     }
12321
12322     exit (status);
12323 }
12324 EOF
12325   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12326   (eval $ac_link) 2>&5
12327   ac_status=$?
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12330     (./conftest; exit; ) 2>/dev/null
12331     lt_status=$?
12332     case x$lt_status in
12333       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12334       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12335       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12336     esac
12337   else :
12338     # compilation failed
12339     lt_cv_dlopen_self_static=no
12340   fi
12341 fi
12342 rm -fr conftest*
12343
12344
12345 fi
12346 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12347 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12348     fi
12349
12350     CPPFLAGS="$save_CPPFLAGS"
12351     LDFLAGS="$save_LDFLAGS"
12352     LIBS="$save_LIBS"
12353     ;;
12354   esac
12355
12356   case $lt_cv_dlopen_self in
12357   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12358   *) enable_dlopen_self=unknown ;;
12359   esac
12360
12361   case $lt_cv_dlopen_self_static in
12362   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12363   *) enable_dlopen_self_static=unknown ;;
12364   esac
12365 fi
12366
12367
12368 # The else clause should only fire when bootstrapping the
12369 # libtool distribution, otherwise you forgot to ship ltmain.sh
12370 # with your package, and you will get complaints that there are
12371 # no rules to generate ltmain.sh.
12372 if test -f "$ltmain"; then
12373   # See if we are running on zsh, and set the options which allow our commands through
12374   # without removal of \ escapes.
12375   if test -n "${ZSH_VERSION+set}" ; then
12376     setopt NO_GLOB_SUBST
12377   fi
12378   # Now quote all the things that may contain metacharacters while being
12379   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12380   # variables and quote the copies for generation of the libtool script.
12381   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12382     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12383     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12384     deplibs_check_method reload_flag reload_cmds need_locks \
12385     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12386     lt_cv_sys_global_symbol_to_c_name_address \
12387     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12388     old_postinstall_cmds old_postuninstall_cmds \
12389     compiler_CXX \
12390     CC_CXX \
12391     LD_CXX \
12392     lt_prog_compiler_wl_CXX \
12393     lt_prog_compiler_pic_CXX \
12394     lt_prog_compiler_static_CXX \
12395     lt_prog_compiler_no_builtin_flag_CXX \
12396     export_dynamic_flag_spec_CXX \
12397     thread_safe_flag_spec_CXX \
12398     whole_archive_flag_spec_CXX \
12399     enable_shared_with_static_runtimes_CXX \
12400     old_archive_cmds_CXX \
12401     old_archive_from_new_cmds_CXX \
12402     predep_objects_CXX \
12403     postdep_objects_CXX \
12404     predeps_CXX \
12405     postdeps_CXX \
12406     compiler_lib_search_path_CXX \
12407     archive_cmds_CXX \
12408     archive_expsym_cmds_CXX \
12409     postinstall_cmds_CXX \
12410     postuninstall_cmds_CXX \
12411     old_archive_from_expsyms_cmds_CXX \
12412     allow_undefined_flag_CXX \
12413     no_undefined_flag_CXX \
12414     export_symbols_cmds_CXX \
12415     hardcode_libdir_flag_spec_CXX \
12416     hardcode_libdir_flag_spec_ld_CXX \
12417     hardcode_libdir_separator_CXX \
12418     hardcode_automatic_CXX \
12419     module_cmds_CXX \
12420     module_expsym_cmds_CXX \
12421     lt_cv_prog_compiler_c_o_CXX \
12422     exclude_expsyms_CXX \
12423     include_expsyms_CXX; do
12424
12425     case $var in
12426     old_archive_cmds_CXX | \
12427     old_archive_from_new_cmds_CXX | \
12428     archive_cmds_CXX | \
12429     archive_expsym_cmds_CXX | \
12430     module_cmds_CXX | \
12431     module_expsym_cmds_CXX | \
12432     old_archive_from_expsyms_cmds_CXX | \
12433     export_symbols_cmds_CXX | \
12434     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12435     postinstall_cmds | postuninstall_cmds | \
12436     old_postinstall_cmds | old_postuninstall_cmds | \
12437     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12438       # Double-quote double-evaled strings.
12439       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12440       ;;
12441     *)
12442       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12443       ;;
12444     esac
12445   done
12446
12447   case $lt_echo in
12448   *'\$0 --fallback-echo"')
12449     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12450     ;;
12451   esac
12452
12453 cfgfile="$ofile"
12454
12455   cat <<__EOF__ >> "$cfgfile"
12456 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12457
12458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12459
12460 # Shell to use when invoking shell scripts.
12461 SHELL=$lt_SHELL
12462
12463 # Whether or not to build shared libraries.
12464 build_libtool_libs=$enable_shared
12465
12466 # Whether or not to build static libraries.
12467 build_old_libs=$enable_static
12468
12469 # Whether or not to add -lc for building shared libraries.
12470 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12471
12472 # Whether or not to disallow shared libs when runtime libs are static
12473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12474
12475 # Whether or not to optimize for fast installation.
12476 fast_install=$enable_fast_install
12477
12478 # The host system.
12479 host_alias=$host_alias
12480 host=$host
12481
12482 # An echo program that does not interpret backslashes.
12483 echo=$lt_echo
12484
12485 # The archiver.
12486 AR=$lt_AR
12487 AR_FLAGS=$lt_AR_FLAGS
12488
12489 # A C compiler.
12490 LTCC=$lt_LTCC
12491
12492 # A language-specific compiler.
12493 CC=$lt_compiler_CXX
12494
12495 # Is the compiler the GNU C compiler?
12496 with_gcc=$GCC_CXX
12497
12498 # An ERE matcher.
12499 EGREP=$lt_EGREP
12500
12501 # The linker used to build libraries.
12502 LD=$lt_LD_CXX
12503
12504 # Whether we need hard or soft links.
12505 LN_S=$lt_LN_S
12506
12507 # A BSD-compatible nm program.
12508 NM=$lt_NM
12509
12510 # A symbol stripping program
12511 STRIP=$STRIP
12512
12513 # Used to examine libraries when file_magic_cmd begins "file"
12514 MAGIC_CMD=$MAGIC_CMD
12515
12516 # Used on cygwin: DLL creation program.
12517 DLLTOOL="$DLLTOOL"
12518
12519 # Used on cygwin: object dumper.
12520 OBJDUMP="$OBJDUMP"
12521
12522 # Used on cygwin: assembler.
12523 AS="$AS"
12524
12525 # The name of the directory that contains temporary libtool files.
12526 objdir=$objdir
12527
12528 # How to create reloadable object files.
12529 reload_flag=$lt_reload_flag
12530 reload_cmds=$lt_reload_cmds
12531
12532 # How to pass a linker flag through the compiler.
12533 wl=$lt_lt_prog_compiler_wl_CXX
12534
12535 # Object file suffix (normally "o").
12536 objext="$ac_objext"
12537
12538 # Old archive suffix (normally "a").
12539 libext="$libext"
12540
12541 # Shared library suffix (normally ".so").
12542 shrext='$shrext'
12543
12544 # Executable file suffix (normally "").
12545 exeext="$exeext"
12546
12547 # Additional compiler flags for building library objects.
12548 pic_flag=$lt_lt_prog_compiler_pic_CXX
12549 pic_mode=$pic_mode
12550
12551 # What is the maximum length of a command?
12552 max_cmd_len=$lt_cv_sys_max_cmd_len
12553
12554 # Does compiler simultaneously support -c and -o options?
12555 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12556
12557 # Must we lock files when doing compilation ?
12558 need_locks=$lt_need_locks
12559
12560 # Do we need the lib prefix for modules?
12561 need_lib_prefix=$need_lib_prefix
12562
12563 # Do we need a version for libraries?
12564 need_version=$need_version
12565
12566 # Whether dlopen is supported.
12567 dlopen_support=$enable_dlopen
12568
12569 # Whether dlopen of programs is supported.
12570 dlopen_self=$enable_dlopen_self
12571
12572 # Whether dlopen of statically linked programs is supported.
12573 dlopen_self_static=$enable_dlopen_self_static
12574
12575 # Compiler flag to prevent dynamic linking.
12576 link_static_flag=$lt_lt_prog_compiler_static_CXX
12577
12578 # Compiler flag to turn off builtin functions.
12579 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12580
12581 # Compiler flag to allow reflexive dlopens.
12582 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12583
12584 # Compiler flag to generate shared objects directly from archives.
12585 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12586
12587 # Compiler flag to generate thread-safe objects.
12588 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12589
12590 # Library versioning type.
12591 version_type=$version_type
12592
12593 # Format of library name prefix.
12594 libname_spec=$lt_libname_spec
12595
12596 # List of archive names.  First name is the real one, the rest are links.
12597 # The last name is the one that the linker finds with -lNAME.
12598 library_names_spec=$lt_library_names_spec
12599
12600 # The coded name of the library, if different from the real name.
12601 soname_spec=$lt_soname_spec
12602
12603 # Commands used to build and install an old-style archive.
12604 RANLIB=$lt_RANLIB
12605 old_archive_cmds=$lt_old_archive_cmds_CXX
12606 old_postinstall_cmds=$lt_old_postinstall_cmds
12607 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12608
12609 # Create an old-style archive from a shared archive.
12610 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12611
12612 # Create a temporary old-style archive to link instead of a shared archive.
12613 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12614
12615 # Commands used to build and install a shared archive.
12616 archive_cmds=$lt_archive_cmds_CXX
12617 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12618 postinstall_cmds=$lt_postinstall_cmds
12619 postuninstall_cmds=$lt_postuninstall_cmds
12620
12621 # Commands used to build a loadable module (assumed same as above if empty)
12622 module_cmds=$lt_module_cmds_CXX
12623 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12624
12625 # Commands to strip libraries.
12626 old_striplib=$lt_old_striplib
12627 striplib=$lt_striplib
12628
12629 # Dependencies to place before the objects being linked to create a
12630 # shared library.
12631 predep_objects=$lt_predep_objects_CXX
12632
12633 # Dependencies to place after the objects being linked to create a
12634 # shared library.
12635 postdep_objects=$lt_postdep_objects_CXX
12636
12637 # Dependencies to place before the objects being linked to create a
12638 # shared library.
12639 predeps=$lt_predeps_CXX
12640
12641 # Dependencies to place after the objects being linked to create a
12642 # shared library.
12643 postdeps=$lt_postdeps_CXX
12644
12645 # The library search path used internally by the compiler when linking
12646 # a shared library.
12647 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12648
12649 # Method to check whether dependent libraries are shared objects.
12650 deplibs_check_method=$lt_deplibs_check_method
12651
12652 # Command to use when deplibs_check_method == file_magic.
12653 file_magic_cmd=$lt_file_magic_cmd
12654
12655 # Flag that allows shared libraries with undefined symbols to be built.
12656 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12657
12658 # Flag that forces no undefined symbols.
12659 no_undefined_flag=$lt_no_undefined_flag_CXX
12660
12661 # Commands used to finish a libtool library installation in a directory.
12662 finish_cmds=$lt_finish_cmds
12663
12664 # Same as above, but a single script fragment to be evaled but not shown.
12665 finish_eval=$lt_finish_eval
12666
12667 # Take the output of nm and produce a listing of raw symbols and C names.
12668 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12669
12670 # Transform the output of nm in a proper C declaration
12671 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12672
12673 # Transform the output of nm in a C name address pair
12674 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12675
12676 # This is the shared library runtime path variable.
12677 runpath_var=$runpath_var
12678
12679 # This is the shared library path variable.
12680 shlibpath_var=$shlibpath_var
12681
12682 # Is shlibpath searched before the hard-coded library search path?
12683 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12684
12685 # How to hardcode a shared library path into an executable.
12686 hardcode_action=$hardcode_action_CXX
12687
12688 # Whether we should hardcode library paths into libraries.
12689 hardcode_into_libs=$hardcode_into_libs
12690
12691 # Flag to hardcode \$libdir into a binary during linking.
12692 # This must work even if \$libdir does not exist.
12693 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12694
12695 # If ld is used when linking, flag to hardcode \$libdir into
12696 # a binary during linking. This must work even if \$libdir does
12697 # not exist.
12698 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12699
12700 # Whether we need a single -rpath flag with a separated argument.
12701 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12702
12703 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12704 # resulting binary.
12705 hardcode_direct=$hardcode_direct_CXX
12706
12707 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12708 # resulting binary.
12709 hardcode_minus_L=$hardcode_minus_L_CXX
12710
12711 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12712 # the resulting binary.
12713 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12714
12715 # Set to yes if building a shared library automatically hardcodes DIR into the library
12716 # and all subsequent libraries and executables linked against it.
12717 hardcode_automatic=$hardcode_automatic_CXX
12718
12719 # Variables whose values should be saved in libtool wrapper scripts and
12720 # restored at relink time.
12721 variables_saved_for_relink="$variables_saved_for_relink"
12722
12723 # Whether libtool must link a program against all its dependency libraries.
12724 link_all_deplibs=$link_all_deplibs_CXX
12725
12726 # Compile-time system search path for libraries
12727 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12728
12729 # Run-time system search path for libraries
12730 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12731
12732 # Fix the shell variable \$srcfile for the compiler.
12733 fix_srcfile_path="$fix_srcfile_path_CXX"
12734
12735 # Set to yes if exported symbols are required.
12736 always_export_symbols=$always_export_symbols_CXX
12737
12738 # The commands to list exported symbols.
12739 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12740
12741 # The commands to extract the exported symbol list from a shared archive.
12742 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12743
12744 # Symbols that should not be listed in the preloaded symbols.
12745 exclude_expsyms=$lt_exclude_expsyms_CXX
12746
12747 # Symbols that must always be exported.
12748 include_expsyms=$lt_include_expsyms_CXX
12749
12750 # ### END LIBTOOL TAG CONFIG: $tagname
12751
12752 __EOF__
12753
12754
12755 else
12756   # If there is no Makefile yet, we rely on a make rule to execute
12757   # `config.status --recheck' to rerun these tests and create the
12758   # libtool script then.
12759   test -f Makefile && make "$ltmain"
12760 fi
12761
12762
12763 ac_ext=c
12764 ac_cpp='$CPP $CPPFLAGS'
12765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12768
12769 CC=$lt_save_CC
12770 LDCXX=$LD
12771 LD=$lt_save_LD
12772 GCC=$lt_save_GCC
12773 with_gnu_ldcxx=$with_gnu_ld
12774 with_gnu_ld=$lt_save_with_gnu_ld
12775 lt_cv_path_LDCXX=$lt_cv_path_LD
12776 lt_cv_path_LD=$lt_save_path_LD
12777 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12778 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12779
12780         else
12781           tagname=""
12782         fi
12783         ;;
12784
12785       F77)
12786         if test -n "$F77" && test "X$F77" != "Xno"; then
12787
12788 ac_ext=f
12789 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12790 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12791 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12792
12793
12794 archive_cmds_need_lc_F77=no
12795 allow_undefined_flag_F77=
12796 always_export_symbols_F77=no
12797 archive_expsym_cmds_F77=
12798 export_dynamic_flag_spec_F77=
12799 hardcode_direct_F77=no
12800 hardcode_libdir_flag_spec_F77=
12801 hardcode_libdir_flag_spec_ld_F77=
12802 hardcode_libdir_separator_F77=
12803 hardcode_minus_L_F77=no
12804 hardcode_automatic_F77=no
12805 module_cmds_F77=
12806 module_expsym_cmds_F77=
12807 link_all_deplibs_F77=unknown
12808 old_archive_cmds_F77=$old_archive_cmds
12809 no_undefined_flag_F77=
12810 whole_archive_flag_spec_F77=
12811 enable_shared_with_static_runtimes_F77=no
12812
12813 # Source file extension for f77 test sources.
12814 ac_ext=f
12815
12816 # Object file extension for compiled f77 test sources.
12817 objext=o
12818 objext_F77=$objext
12819
12820 # Code to be used in simple compile tests
12821 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12822
12823 # Code to be used in simple link tests
12824 lt_simple_link_test_code="      program t\n      end\n"
12825
12826 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12827
12828 # If no C compiler was specified, use CC.
12829 LTCC=${LTCC-"$CC"}
12830
12831 # Allow CC to be a program name with arguments.
12832 compiler=$CC
12833
12834
12835 # Allow CC to be a program name with arguments.
12836 lt_save_CC="$CC"
12837 CC=${F77-"f77"}
12838 compiler=$CC
12839 compiler_F77=$CC
12840 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12841
12842 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12843 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12844 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12845 echo "${ECHO_T}$can_build_shared" >&6
12846
12847 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12848 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12849 test "$can_build_shared" = "no" && enable_shared=no
12850
12851 # On AIX, shared libraries and static libraries use the same namespace, and
12852 # are all built from PIC.
12853 case "$host_os" in
12854 aix3*)
12855   test "$enable_shared" = yes && enable_static=no
12856   if test -n "$RANLIB"; then
12857     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12858     postinstall_cmds='$RANLIB $lib'
12859   fi
12860   ;;
12861 aix4*)
12862   test "$enable_shared" = yes && enable_static=no
12863   ;;
12864 esac
12865 echo "$as_me:$LINENO: result: $enable_shared" >&5
12866 echo "${ECHO_T}$enable_shared" >&6
12867
12868 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12869 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12870 # Make sure either enable_shared or enable_static is yes.
12871 test "$enable_shared" = yes || enable_static=yes
12872 echo "$as_me:$LINENO: result: $enable_static" >&5
12873 echo "${ECHO_T}$enable_static" >&6
12874
12875 test "$ld_shlibs_F77" = no && can_build_shared=no
12876
12877 GCC_F77="$G77"
12878 LD_F77="$LD"
12879
12880 lt_prog_compiler_wl_F77=
12881 lt_prog_compiler_pic_F77=
12882 lt_prog_compiler_static_F77=
12883
12884 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12885 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12886
12887   if test "$GCC" = yes; then
12888     lt_prog_compiler_wl_F77='-Wl,'
12889     lt_prog_compiler_static_F77='-static'
12890
12891     case $host_os in
12892       aix*)
12893       # All AIX code is PIC.
12894       if test "$host_cpu" = ia64; then
12895         # AIX 5 now supports IA64 processor
12896         lt_prog_compiler_static_F77='-Bstatic'
12897       fi
12898       ;;
12899
12900     amigaos*)
12901       # FIXME: we need at least 68020 code to build shared libraries, but
12902       # adding the `-m68020' flag to GCC prevents building anything better,
12903       # like `-m68040'.
12904       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12905       ;;
12906
12907     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12908       # PIC is the default for these OSes.
12909       ;;
12910
12911     mingw* | pw32* | os2*)
12912       # This hack is so that the source file can tell whether it is being
12913       # built for inclusion in a dll (and should export symbols for example).
12914       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12915       ;;
12916
12917     darwin* | rhapsody*)
12918       # PIC is the default on this platform
12919       # Common symbols not allowed in MH_DYLIB files
12920       lt_prog_compiler_pic_F77='-fno-common'
12921       ;;
12922
12923     msdosdjgpp*)
12924       # Just because we use GCC doesn't mean we suddenly get shared libraries
12925       # on systems that don't support them.
12926       lt_prog_compiler_can_build_shared_F77=no
12927       enable_shared=no
12928       ;;
12929
12930     sysv4*MP*)
12931       if test -d /usr/nec; then
12932         lt_prog_compiler_pic_F77=-Kconform_pic
12933       fi
12934       ;;
12935
12936     hpux*)
12937       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12938       # not for PA HP-UX.
12939       case "$host_cpu" in
12940       hppa*64*|ia64*)
12941         # +Z the default
12942         ;;
12943       *)
12944         lt_prog_compiler_pic_F77='-fPIC'
12945         ;;
12946       esac
12947       ;;
12948
12949     *)
12950       lt_prog_compiler_pic_F77='-fPIC'
12951       ;;
12952     esac
12953   else
12954     # PORTME Check for flag to pass linker flags through the system compiler.
12955     case $host_os in
12956     aix*)
12957       lt_prog_compiler_wl_F77='-Wl,'
12958       if test "$host_cpu" = ia64; then
12959         # AIX 5 now supports IA64 processor
12960         lt_prog_compiler_static_F77='-Bstatic'
12961       else
12962         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12963       fi
12964       ;;
12965
12966     mingw* | pw32* | os2*)
12967       # This hack is so that the source file can tell whether it is being
12968       # built for inclusion in a dll (and should export symbols for example).
12969       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12970       ;;
12971
12972     hpux9* | hpux10* | hpux11*)
12973       lt_prog_compiler_wl_F77='-Wl,'
12974       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12975       # not for PA HP-UX.
12976       case "$host_cpu" in
12977       hppa*64*|ia64*)
12978         # +Z the default
12979         ;;
12980       *)
12981         lt_prog_compiler_pic_F77='+Z'
12982         ;;
12983       esac
12984       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12985       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12986       ;;
12987
12988     irix5* | irix6* | nonstopux*)
12989       lt_prog_compiler_wl_F77='-Wl,'
12990       # PIC (with -KPIC) is the default.
12991       lt_prog_compiler_static_F77='-non_shared'
12992       ;;
12993
12994     newsos6)
12995       lt_prog_compiler_pic_F77='-KPIC'
12996       lt_prog_compiler_static_F77='-Bstatic'
12997       ;;
12998
12999     linux*)
13000       case $CC in
13001       icc|ecc)
13002         lt_prog_compiler_wl_F77='-Wl,'
13003         lt_prog_compiler_pic_F77='-KPIC'
13004         lt_prog_compiler_static_F77='-static'
13005         ;;
13006       ccc)
13007         lt_prog_compiler_wl_F77='-Wl,'
13008         # All Alpha code is PIC.
13009         lt_prog_compiler_static_F77='-non_shared'
13010         ;;
13011       esac
13012       ;;
13013
13014     osf3* | osf4* | osf5*)
13015       lt_prog_compiler_wl_F77='-Wl,'
13016       # All OSF/1 code is PIC.
13017       lt_prog_compiler_static_F77='-non_shared'
13018       ;;
13019
13020     sco3.2v5*)
13021       lt_prog_compiler_pic_F77='-Kpic'
13022       lt_prog_compiler_static_F77='-dn'
13023       ;;
13024
13025     solaris*)
13026       lt_prog_compiler_wl_F77='-Wl,'
13027       lt_prog_compiler_pic_F77='-KPIC'
13028       lt_prog_compiler_static_F77='-Bstatic'
13029       ;;
13030
13031     sunos4*)
13032       lt_prog_compiler_wl_F77='-Qoption ld '
13033       lt_prog_compiler_pic_F77='-PIC'
13034       lt_prog_compiler_static_F77='-Bstatic'
13035       ;;
13036
13037     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13038       lt_prog_compiler_wl_F77='-Wl,'
13039       lt_prog_compiler_pic_F77='-KPIC'
13040       lt_prog_compiler_static_F77='-Bstatic'
13041       ;;
13042
13043     sysv4*MP*)
13044       if test -d /usr/nec ;then
13045         lt_prog_compiler_pic_F77='-Kconform_pic'
13046         lt_prog_compiler_static_F77='-Bstatic'
13047       fi
13048       ;;
13049
13050     uts4*)
13051       lt_prog_compiler_pic_F77='-pic'
13052       lt_prog_compiler_static_F77='-Bstatic'
13053       ;;
13054
13055     *)
13056       lt_prog_compiler_can_build_shared_F77=no
13057       ;;
13058     esac
13059   fi
13060
13061 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13062 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13063
13064 #
13065 # Check to make sure the PIC flag actually works.
13066 #
13067 if test -n "$lt_prog_compiler_pic_F77"; then
13068   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13069 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13070 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13071   echo $ECHO_N "(cached) $ECHO_C" >&6
13072 else
13073   lt_prog_compiler_pic_works_F77=no
13074   ac_outfile=conftest.$ac_objext
13075    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13076    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13077    # Insert the option either (1) after the last *FLAGS variable, or
13078    # (2) before a word containing "conftest.", or (3) at the end.
13079    # Note that $ac_compile itself does not contain backslashes and begins
13080    # with a dollar sign (not a hyphen), so the echo should work correctly.
13081    # The option is referenced via a variable to avoid confusing sed.
13082    lt_compile=`echo "$ac_compile" | $SED \
13083    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13085    -e 's:$: $lt_compiler_flag:'`
13086    (eval echo "\"\$as_me:13086: $lt_compile\"" >&5)
13087    (eval "$lt_compile" 2>conftest.err)
13088    ac_status=$?
13089    cat conftest.err >&5
13090    echo "$as_me:13090: \$? = $ac_status" >&5
13091    if (exit $ac_status) && test -s "$ac_outfile"; then
13092      # The compiler can only warn and ignore the option if not recognized
13093      # So say no if there are warnings
13094      if test ! -s conftest.err; then
13095        lt_prog_compiler_pic_works_F77=yes
13096      fi
13097    fi
13098    $rm conftest*
13099
13100 fi
13101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13102 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13103
13104 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13105     case $lt_prog_compiler_pic_F77 in
13106      "" | " "*) ;;
13107      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13108      esac
13109 else
13110     lt_prog_compiler_pic_F77=
13111      lt_prog_compiler_can_build_shared_F77=no
13112 fi
13113
13114 fi
13115 case "$host_os" in
13116   # For platforms which do not support PIC, -DPIC is meaningless:
13117   *djgpp*)
13118     lt_prog_compiler_pic_F77=
13119     ;;
13120   *)
13121     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13122     ;;
13123 esac
13124
13125 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13126 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13127 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13128   echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130   lt_cv_prog_compiler_c_o_F77=no
13131    $rm -r conftest 2>/dev/null
13132    mkdir conftest
13133    cd conftest
13134    mkdir out
13135    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13136
13137    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13138    # that will create temporary files in the current directory regardless of
13139    # the output directory.  Thus, making CWD read-only will cause this test
13140    # to fail, enabling locking or at least warning the user not to do parallel
13141    # builds.
13142    chmod -w .
13143
13144    lt_compiler_flag="-o out/conftest2.$ac_objext"
13145    # Insert the option either (1) after the last *FLAGS variable, or
13146    # (2) before a word containing "conftest.", or (3) at the end.
13147    # Note that $ac_compile itself does not contain backslashes and begins
13148    # with a dollar sign (not a hyphen), so the echo should work correctly.
13149    lt_compile=`echo "$ac_compile" | $SED \
13150    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13151    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13152    -e 's:$: $lt_compiler_flag:'`
13153    (eval echo "\"\$as_me:13153: $lt_compile\"" >&5)
13154    (eval "$lt_compile" 2>out/conftest.err)
13155    ac_status=$?
13156    cat out/conftest.err >&5
13157    echo "$as_me:13157: \$? = $ac_status" >&5
13158    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13159    then
13160      # The compiler can only warn and ignore the option if not recognized
13161      # So say no if there are warnings
13162      if test ! -s out/conftest.err; then
13163        lt_cv_prog_compiler_c_o_F77=yes
13164      fi
13165    fi
13166    chmod u+w .
13167    $rm conftest* out/*
13168    rmdir out
13169    cd ..
13170    rmdir conftest
13171    $rm conftest*
13172
13173 fi
13174 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13175 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13176
13177
13178 hard_links="nottested"
13179 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13180   # do not overwrite the value of need_locks provided by the user
13181   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13182 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13183   hard_links=yes
13184   $rm conftest*
13185   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13186   touch conftest.a
13187   ln conftest.a conftest.b 2>&5 || hard_links=no
13188   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13189   echo "$as_me:$LINENO: result: $hard_links" >&5
13190 echo "${ECHO_T}$hard_links" >&6
13191   if test "$hard_links" = no; then
13192     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13193 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13194     need_locks=warn
13195   fi
13196 else
13197   need_locks=no
13198 fi
13199
13200 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13201 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13202
13203   runpath_var=
13204   allow_undefined_flag_F77=
13205   enable_shared_with_static_runtimes_F77=no
13206   archive_cmds_F77=
13207   archive_expsym_cmds_F77=
13208   old_archive_From_new_cmds_F77=
13209   old_archive_from_expsyms_cmds_F77=
13210   export_dynamic_flag_spec_F77=
13211   whole_archive_flag_spec_F77=
13212   thread_safe_flag_spec_F77=
13213   hardcode_libdir_flag_spec_F77=
13214   hardcode_libdir_flag_spec_ld_F77=
13215   hardcode_libdir_separator_F77=
13216   hardcode_direct_F77=no
13217   hardcode_minus_L_F77=no
13218   hardcode_shlibpath_var_F77=unsupported
13219   link_all_deplibs_F77=unknown
13220   hardcode_automatic_F77=no
13221   module_cmds_F77=
13222   module_expsym_cmds_F77=
13223   always_export_symbols_F77=no
13224   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13225   # include_expsyms should be a list of space-separated symbols to be *always*
13226   # included in the symbol list
13227   include_expsyms_F77=
13228   # exclude_expsyms can be an extended regexp of symbols to exclude
13229   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13230   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13231   # as well as any symbol that contains `d'.
13232   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13233   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13234   # platforms (ab)use it in PIC code, but their linkers get confused if
13235   # the symbol is explicitly referenced.  Since portable code cannot
13236   # rely on this symbol name, it's probably fine to never include it in
13237   # preloaded symbol tables.
13238   extract_expsyms_cmds=
13239
13240   case $host_os in
13241   cygwin* | mingw* | pw32*)
13242     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13243     # When not using gcc, we currently assume that we are using
13244     # Microsoft Visual C++.
13245     if test "$GCC" != yes; then
13246       with_gnu_ld=no
13247     fi
13248     ;;
13249   openbsd*)
13250     with_gnu_ld=no
13251     ;;
13252   esac
13253
13254   ld_shlibs_F77=yes
13255   if test "$with_gnu_ld" = yes; then
13256     # If archive_cmds runs LD, not CC, wlarc should be empty
13257     wlarc='${wl}'
13258
13259     # See if GNU ld supports shared libraries.
13260     case $host_os in
13261     aix3* | aix4* | aix5*)
13262       # On AIX/PPC, the GNU linker is very broken
13263       if test "$host_cpu" != ia64; then
13264         ld_shlibs_F77=no
13265         cat <<EOF 1>&2
13266
13267 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13268 *** to be unable to reliably create shared libraries on AIX.
13269 *** Therefore, libtool is disabling shared libraries support.  If you
13270 *** really care for shared libraries, you may want to modify your PATH
13271 *** so that a non-GNU linker is found, and then restart.
13272
13273 EOF
13274       fi
13275       ;;
13276
13277     amigaos*)
13278       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)'
13279       hardcode_libdir_flag_spec_F77='-L$libdir'
13280       hardcode_minus_L_F77=yes
13281
13282       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13283       # that the semantics of dynamic libraries on AmigaOS, at least up
13284       # to version 4, is to share data among multiple programs linked
13285       # with the same dynamic library.  Since this doesn't match the
13286       # behavior of shared libraries on other platforms, we can't use
13287       # them.
13288       ld_shlibs_F77=no
13289       ;;
13290
13291     beos*)
13292       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13293         allow_undefined_flag_F77=unsupported
13294         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13295         # support --undefined.  This deserves some investigation.  FIXME
13296         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297       else
13298         ld_shlibs_F77=no
13299       fi
13300       ;;
13301
13302     cygwin* | mingw* | pw32*)
13303       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13304       # as there is no search path for DLLs.
13305       hardcode_libdir_flag_spec_F77='-L$libdir'
13306       allow_undefined_flag_F77=unsupported
13307       always_export_symbols_F77=no
13308       enable_shared_with_static_runtimes_F77=yes
13309       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13310
13311       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13312         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13313         # If the export-symbols file already is a .def file (1st line
13314         # is EXPORTS), use it as is; otherwise, prepend...
13315         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13316           cp $export_symbols $output_objdir/$soname.def;
13317         else
13318           echo EXPORTS > $output_objdir/$soname.def;
13319           cat $export_symbols >> $output_objdir/$soname.def;
13320         fi~
13321         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13322       else
13323         ld_shlibs=no
13324       fi
13325       ;;
13326
13327     netbsd*)
13328       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13329         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13330         wlarc=
13331       else
13332         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13333         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13334       fi
13335       ;;
13336
13337     solaris* | sysv5*)
13338       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13339         ld_shlibs_F77=no
13340         cat <<EOF 1>&2
13341
13342 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13343 *** create shared libraries on Solaris systems.  Therefore, libtool
13344 *** is disabling shared libraries support.  We urge you to upgrade GNU
13345 *** binutils to release 2.9.1 or newer.  Another option is to modify
13346 *** your PATH or compiler configuration so that the native linker is
13347 *** used, and then restart.
13348
13349 EOF
13350       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13351         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13352         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13353       else
13354         ld_shlibs_F77=no
13355       fi
13356       ;;
13357
13358     sunos4*)
13359       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13360       wlarc=
13361       hardcode_direct_F77=yes
13362       hardcode_shlibpath_var_F77=no
13363       ;;
13364
13365     *)
13366       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13367         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13368         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13369       else
13370         ld_shlibs_F77=no
13371       fi
13372       ;;
13373     esac
13374
13375     if test "$ld_shlibs_F77" = yes; then
13376       runpath_var=LD_RUN_PATH
13377       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13378       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13379       # ancient GNU ld didn't support --whole-archive et. al.
13380       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13381         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13382       else
13383         whole_archive_flag_spec_F77=
13384       fi
13385     fi
13386   else
13387     # PORTME fill in a description of your system's linker (not GNU ld)
13388     case $host_os in
13389     aix3*)
13390       allow_undefined_flag_F77=unsupported
13391       always_export_symbols_F77=yes
13392       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'
13393       # Note: this linker hardcodes the directories in LIBPATH if there
13394       # are no directories specified by -L.
13395       hardcode_minus_L_F77=yes
13396       if test "$GCC" = yes && test -z "$link_static_flag"; then
13397         # Neither direct hardcoding nor static linking is supported with a
13398         # broken collect2.
13399         hardcode_direct_F77=unsupported
13400       fi
13401       ;;
13402
13403     aix4* | aix5*)
13404       if test "$host_cpu" = ia64; then
13405         # On IA64, the linker does run time linking by default, so we don't
13406         # have to do anything special.
13407         aix_use_runtimelinking=no
13408         exp_sym_flag='-Bexport'
13409         no_entry_flag=""
13410       else
13411         # If we're using GNU nm, then we don't want the "-C" option.
13412         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13413         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13414           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'
13415         else
13416           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'
13417         fi
13418         aix_use_runtimelinking=no
13419
13420         # Test if we are trying to use run time linking or normal
13421         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13422         # need to do runtime linking.
13423         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13424           for ld_flag in $LDFLAGS; do
13425           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13426             aix_use_runtimelinking=yes
13427             break
13428           fi
13429           done
13430         esac
13431
13432         exp_sym_flag='-bexport'
13433         no_entry_flag='-bnoentry'
13434       fi
13435
13436       # When large executables or shared objects are built, AIX ld can
13437       # have problems creating the table of contents.  If linking a library
13438       # or program results in "error TOC overflow" add -mminimal-toc to
13439       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13440       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13441
13442       archive_cmds_F77=''
13443       hardcode_direct_F77=yes
13444       hardcode_libdir_separator_F77=':'
13445       link_all_deplibs_F77=yes
13446
13447       if test "$GCC" = yes; then
13448         case $host_os in aix4.012|aix4.012.*)
13449         # We only want to do this on AIX 4.2 and lower, the check
13450         # below for broken collect2 doesn't work under 4.3+
13451           collect2name=`${CC} -print-prog-name=collect2`
13452           if test -f "$collect2name" && \
13453            strings "$collect2name" | grep resolve_lib_name >/dev/null
13454           then
13455           # We have reworked collect2
13456           hardcode_direct_F77=yes
13457           else
13458           # We have old collect2
13459           hardcode_direct_F77=unsupported
13460           # It fails to find uninstalled libraries when the uninstalled
13461           # path is not listed in the libpath.  Setting hardcode_minus_L
13462           # to unsupported forces relinking
13463           hardcode_minus_L_F77=yes
13464           hardcode_libdir_flag_spec_F77='-L$libdir'
13465           hardcode_libdir_separator_F77=
13466           fi
13467         esac
13468         shared_flag='-shared'
13469       else
13470         # not using gcc
13471         if test "$host_cpu" = ia64; then
13472         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13473         # chokes on -Wl,-G. The following line is correct:
13474           shared_flag='-G'
13475         else
13476         if test "$aix_use_runtimelinking" = yes; then
13477             shared_flag='${wl}-G'
13478           else
13479             shared_flag='${wl}-bM:SRE'
13480         fi
13481         fi
13482       fi
13483
13484       # It seems that -bexpall does not export symbols beginning with
13485       # underscore (_), so it is better to generate a list of symbols to export.
13486       always_export_symbols_F77=yes
13487       if test "$aix_use_runtimelinking" = yes; then
13488         # Warning - without using the other runtime loading flags (-brtl),
13489         # -berok will link without error, but may produce a broken library.
13490         allow_undefined_flag_F77='-berok'
13491        # Determine the default libpath from the value encoded in an empty executable.
13492        cat >conftest.$ac_ext <<_ACEOF
13493       program main
13494
13495       end
13496 _ACEOF
13497 rm -f conftest.$ac_objext conftest$ac_exeext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13499   (eval $ac_link) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); } &&
13503          { ac_try='test -s conftest$ac_exeext'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509
13510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13511 }'`
13512 # Check for a 64-bit object if we didn't find anything.
13513 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; }
13514 }'`; fi
13515 else
13516   echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13518
13519 fi
13520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13522
13523        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13524         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"
13525        else
13526         if test "$host_cpu" = ia64; then
13527           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13528           allow_undefined_flag_F77="-z nodefs"
13529           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"
13530         else
13531          # Determine the default libpath from the value encoded in an empty executable.
13532          cat >conftest.$ac_ext <<_ACEOF
13533       program main
13534
13535       end
13536 _ACEOF
13537 rm -f conftest.$ac_objext conftest$ac_exeext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13539   (eval $ac_link) 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); } &&
13543          { ac_try='test -s conftest$ac_exeext'
13544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545   (eval $ac_try) 2>&5
13546   ac_status=$?
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); }; }; then
13549
13550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13551 }'`
13552 # Check for a 64-bit object if we didn't find anything.
13553 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; }
13554 }'`; fi
13555 else
13556   echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13558
13559 fi
13560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13562
13563          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13564           # Warning - without using the other run time loading flags,
13565           # -berok will link without error, but may produce a broken library.
13566           no_undefined_flag_F77=' ${wl}-bernotok'
13567           allow_undefined_flag_F77=' ${wl}-berok'
13568           # -bexpall does not export symbols beginning with underscore (_)
13569           always_export_symbols_F77=yes
13570           # Exported symbols can be pulled into shared objects from archives
13571           whole_archive_flag_spec_F77=' '
13572           archive_cmds_need_lc_F77=yes
13573           # This is similar to how AIX traditionally builds it's shared libraries.
13574           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'
13575         fi
13576       fi
13577       ;;
13578
13579     amigaos*)
13580       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)'
13581       hardcode_libdir_flag_spec_F77='-L$libdir'
13582       hardcode_minus_L_F77=yes
13583       # see comment about different semantics on the GNU ld section
13584       ld_shlibs_F77=no
13585       ;;
13586
13587     bsdi4*)
13588       export_dynamic_flag_spec_F77=-rdynamic
13589       ;;
13590
13591     cygwin* | mingw* | pw32*)
13592       # When not using gcc, we currently assume that we are using
13593       # Microsoft Visual C++.
13594       # hardcode_libdir_flag_spec is actually meaningless, as there is
13595       # no search path for DLLs.
13596       hardcode_libdir_flag_spec_F77=' '
13597       allow_undefined_flag_F77=unsupported
13598       # Tell ltmain to make .lib files, not .a files.
13599       libext=lib
13600       # Tell ltmain to make .dll files, not .so files.
13601       shrext=".dll"
13602       # FIXME: Setting linknames here is a bad hack.
13603       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13604       # The linker will automatically build a .lib file if we build a DLL.
13605       old_archive_From_new_cmds_F77='true'
13606       # FIXME: Should let the user specify the lib program.
13607       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13608       fix_srcfile_path='`cygpath -w "$srcfile"`'
13609       enable_shared_with_static_runtimes_F77=yes
13610       ;;
13611
13612     darwin* | rhapsody*)
13613     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13614       archive_cmds_need_lc_F77=no
13615       case "$host_os" in
13616       rhapsody* | darwin1.[012])
13617         allow_undefined_flag_F77='-undefined suppress'
13618         ;;
13619       *) # Darwin 1.3 on
13620         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13621         ;;
13622       esac
13623       # FIXME: Relying on posixy $() will cause problems for
13624       #        cross-compilation, but unfortunately the echo tests do not
13625       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13626       #        `"' quotes if we put them in here... so don't!
13627         lt_int_apple_cc_single_mod=no
13628         output_verbose_link_cmd='echo'
13629         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13630           lt_int_apple_cc_single_mod=yes
13631         fi
13632         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13633           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13634         else
13635         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'
13636       fi
13637       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13638       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13639         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13640           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}'
13641         else
13642           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}'
13643         fi
13644           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}'
13645       hardcode_direct_F77=no
13646       hardcode_automatic_F77=yes
13647       hardcode_shlibpath_var_F77=unsupported
13648       whole_archive_flag_spec_F77='-all_load $convenience'
13649       link_all_deplibs_F77=yes
13650     fi
13651       ;;
13652
13653     dgux*)
13654       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13655       hardcode_libdir_flag_spec_F77='-L$libdir'
13656       hardcode_shlibpath_var_F77=no
13657       ;;
13658
13659     freebsd1*)
13660       ld_shlibs_F77=no
13661       ;;
13662
13663     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13664     # support.  Future versions do this automatically, but an explicit c++rt0.o
13665     # does not break anything, and helps significantly (at the cost of a little
13666     # extra space).
13667     freebsd2.2*)
13668       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13669       hardcode_libdir_flag_spec_F77='-R$libdir'
13670       hardcode_direct_F77=yes
13671       hardcode_shlibpath_var_F77=no
13672       ;;
13673
13674     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13675     freebsd2*)
13676       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13677       hardcode_direct_F77=yes
13678       hardcode_minus_L_F77=yes
13679       hardcode_shlibpath_var_F77=no
13680       ;;
13681
13682     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13683     freebsd*)
13684       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13685       hardcode_libdir_flag_spec_F77='-R$libdir'
13686       hardcode_direct_F77=yes
13687       hardcode_shlibpath_var_F77=no
13688       ;;
13689
13690     hpux9*)
13691       if test "$GCC" = yes; then
13692         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'
13693       else
13694         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'
13695       fi
13696       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13697       hardcode_libdir_separator_F77=:
13698       hardcode_direct_F77=yes
13699
13700       # hardcode_minus_L: Not really in the search PATH,
13701       # but as the default location of the library.
13702       hardcode_minus_L_F77=yes
13703       export_dynamic_flag_spec_F77='${wl}-E'
13704       ;;
13705
13706     hpux10* | hpux11*)
13707       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13708         case "$host_cpu" in
13709         hppa*64*|ia64*)
13710           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13711           ;;
13712         *)
13713           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13714           ;;
13715         esac
13716       else
13717         case "$host_cpu" in
13718         hppa*64*|ia64*)
13719           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13720           ;;
13721         *)
13722           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13723           ;;
13724         esac
13725       fi
13726       if test "$with_gnu_ld" = no; then
13727         case "$host_cpu" in
13728         hppa*64*)
13729           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13730           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13731           hardcode_libdir_separator_F77=:
13732           hardcode_direct_F77=no
13733           hardcode_shlibpath_var_F77=no
13734           ;;
13735         ia64*)
13736           hardcode_libdir_flag_spec_F77='-L$libdir'
13737           hardcode_direct_F77=no
13738           hardcode_shlibpath_var_F77=no
13739
13740           # hardcode_minus_L: Not really in the search PATH,
13741           # but as the default location of the library.
13742           hardcode_minus_L_F77=yes
13743           ;;
13744         *)
13745           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13746           hardcode_libdir_separator_F77=:
13747           hardcode_direct_F77=yes
13748           export_dynamic_flag_spec_F77='${wl}-E'
13749
13750           # hardcode_minus_L: Not really in the search PATH,
13751           # but as the default location of the library.
13752           hardcode_minus_L_F77=yes
13753           ;;
13754         esac
13755       fi
13756       ;;
13757
13758     irix5* | irix6* | nonstopux*)
13759       if test "$GCC" = yes; then
13760         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'
13761       else
13762         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'
13763         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13764       fi
13765       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13766       hardcode_libdir_separator_F77=:
13767       link_all_deplibs_F77=yes
13768       ;;
13769
13770     netbsd*)
13771       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13772         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13773       else
13774         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13775       fi
13776       hardcode_libdir_flag_spec_F77='-R$libdir'
13777       hardcode_direct_F77=yes
13778       hardcode_shlibpath_var_F77=no
13779       ;;
13780
13781     newsos6)
13782       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13783       hardcode_direct_F77=yes
13784       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13785       hardcode_libdir_separator_F77=:
13786       hardcode_shlibpath_var_F77=no
13787       ;;
13788
13789     openbsd*)
13790       hardcode_direct_F77=yes
13791       hardcode_shlibpath_var_F77=no
13792       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13793         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13794         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13795         export_dynamic_flag_spec_F77='${wl}-E'
13796       else
13797        case $host_os in
13798          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13799            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13800            hardcode_libdir_flag_spec_F77='-R$libdir'
13801            ;;
13802          *)
13803            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13804            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13805            ;;
13806        esac
13807       fi
13808       ;;
13809
13810     os2*)
13811       hardcode_libdir_flag_spec_F77='-L$libdir'
13812       hardcode_minus_L_F77=yes
13813       allow_undefined_flag_F77=unsupported
13814       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'
13815       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13816       ;;
13817
13818     osf3*)
13819       if test "$GCC" = yes; then
13820         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13821         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'
13822       else
13823         allow_undefined_flag_F77=' -expect_unresolved \*'
13824         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'
13825       fi
13826       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13827       hardcode_libdir_separator_F77=:
13828       ;;
13829
13830     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13831       if test "$GCC" = yes; then
13832         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13833         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'
13834         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13835       else
13836         allow_undefined_flag_F77=' -expect_unresolved \*'
13837         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'
13838         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~
13839         $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'
13840
13841         # Both c and cxx compiler support -rpath directly
13842         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13843       fi
13844       hardcode_libdir_separator_F77=:
13845       ;;
13846
13847     sco3.2v5*)
13848       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13849       hardcode_shlibpath_var_F77=no
13850       export_dynamic_flag_spec_F77='${wl}-Bexport'
13851       runpath_var=LD_RUN_PATH
13852       hardcode_runpath_var=yes
13853       ;;
13854
13855     solaris*)
13856       no_undefined_flag_F77=' -z text'
13857       if test "$GCC" = yes; then
13858         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13859         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13860           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13861       else
13862         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13863         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13864         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13865       fi
13866       hardcode_libdir_flag_spec_F77='-R$libdir'
13867       hardcode_shlibpath_var_F77=no
13868       case $host_os in
13869       solaris2.[0-5] | solaris2.[0-5].*) ;;
13870       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13871         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13872       esac
13873       link_all_deplibs_F77=yes
13874       ;;
13875
13876     sunos4*)
13877       if test "x$host_vendor" = xsequent; then
13878         # Use $CC to link under sequent, because it throws in some extra .o
13879         # files that make .init and .fini sections work.
13880         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13881       else
13882         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13883       fi
13884       hardcode_libdir_flag_spec_F77='-L$libdir'
13885       hardcode_direct_F77=yes
13886       hardcode_minus_L_F77=yes
13887       hardcode_shlibpath_var_F77=no
13888       ;;
13889
13890     sysv4)
13891       case $host_vendor in
13892         sni)
13893           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894           hardcode_direct_F77=yes # is this really true???
13895         ;;
13896         siemens)
13897           ## LD is ld it makes a PLAMLIB
13898           ## CC just makes a GrossModule.
13899           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13900           reload_cmds_F77='$CC -r -o $output$reload_objs'
13901           hardcode_direct_F77=no
13902         ;;
13903         motorola)
13904           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13905           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13906         ;;
13907       esac
13908       runpath_var='LD_RUN_PATH'
13909       hardcode_shlibpath_var_F77=no
13910       ;;
13911
13912     sysv4.3*)
13913       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13914       hardcode_shlibpath_var_F77=no
13915       export_dynamic_flag_spec_F77='-Bexport'
13916       ;;
13917
13918     sysv4*MP*)
13919       if test -d /usr/nec; then
13920         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13921         hardcode_shlibpath_var_F77=no
13922         runpath_var=LD_RUN_PATH
13923         hardcode_runpath_var=yes
13924         ld_shlibs_F77=yes
13925       fi
13926       ;;
13927
13928     sysv4.2uw2*)
13929       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13930       hardcode_direct_F77=yes
13931       hardcode_minus_L_F77=no
13932       hardcode_shlibpath_var_F77=no
13933       hardcode_runpath_var=yes
13934       runpath_var=LD_RUN_PATH
13935       ;;
13936
13937    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13938       no_undefined_flag_F77='${wl}-z ${wl}text'
13939       if test "$GCC" = yes; then
13940         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13941       else
13942         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13943       fi
13944       runpath_var='LD_RUN_PATH'
13945       hardcode_shlibpath_var_F77=no
13946       ;;
13947
13948     sysv5*)
13949       no_undefined_flag_F77=' -z text'
13950       # $CC -shared without GNU ld will not create a library from C++
13951       # object files and a static libstdc++, better avoid it by now
13952       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13953       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13954                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13955       hardcode_libdir_flag_spec_F77=
13956       hardcode_shlibpath_var_F77=no
13957       runpath_var='LD_RUN_PATH'
13958       ;;
13959
13960     uts4*)
13961       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13962       hardcode_libdir_flag_spec_F77='-L$libdir'
13963       hardcode_shlibpath_var_F77=no
13964       ;;
13965
13966     *)
13967       ld_shlibs_F77=no
13968       ;;
13969     esac
13970   fi
13971
13972 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13973 echo "${ECHO_T}$ld_shlibs_F77" >&6
13974 test "$ld_shlibs_F77" = no && can_build_shared=no
13975
13976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13977 if test "$GCC" = yes; then
13978   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13979 fi
13980
13981 #
13982 # Do we need to explicitly link libc?
13983 #
13984 case "x$archive_cmds_need_lc_F77" in
13985 x|xyes)
13986   # Assume -lc should be added
13987   archive_cmds_need_lc_F77=yes
13988
13989   if test "$enable_shared" = yes && test "$GCC" = yes; then
13990     case $archive_cmds_F77 in
13991     *'~'*)
13992       # FIXME: we may have to deal with multi-command sequences.
13993       ;;
13994     '$CC '*)
13995       # Test whether the compiler implicitly links with -lc since on some
13996       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13997       # to ld, don't add -lc before -lgcc.
13998       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13999 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14000       $rm conftest*
14001       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14002
14003       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14004   (eval $ac_compile) 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } 2>conftest.err; then
14008         soname=conftest
14009         lib=conftest
14010         libobjs=conftest.$ac_objext
14011         deplibs=
14012         wl=$lt_prog_compiler_wl_F77
14013         compiler_flags=-v
14014         linker_flags=-v
14015         verstring=
14016         output_objdir=.
14017         libname=conftest
14018         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14019         allow_undefined_flag_F77=
14020         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14021   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }
14025         then
14026           archive_cmds_need_lc_F77=no
14027         else
14028           archive_cmds_need_lc_F77=yes
14029         fi
14030         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14031       else
14032         cat conftest.err 1>&5
14033       fi
14034       $rm conftest*
14035       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14036 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14037       ;;
14038     esac
14039   fi
14040   ;;
14041 esac
14042
14043 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14044 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14045 hardcode_action_F77=
14046 if test -n "$hardcode_libdir_flag_spec_F77" || \
14047    test -n "$runpath_var F77" || \
14048    test "X$hardcode_automatic_F77"="Xyes" ; then
14049
14050   # We can hardcode non-existant directories.
14051   if test "$hardcode_direct_F77" != no &&
14052      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14053      # have to relink, otherwise we might link with an installed library
14054      # when we should be linking with a yet-to-be-installed one
14055      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14056      test "$hardcode_minus_L_F77" != no; then
14057     # Linking always hardcodes the temporary library directory.
14058     hardcode_action_F77=relink
14059   else
14060     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14061     hardcode_action_F77=immediate
14062   fi
14063 else
14064   # We cannot hardcode anything, or else we can only hardcode existing
14065   # directories.
14066   hardcode_action_F77=unsupported
14067 fi
14068 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14069 echo "${ECHO_T}$hardcode_action_F77" >&6
14070
14071 if test "$hardcode_action_F77" = relink; then
14072   # Fast installation is not supported
14073   enable_fast_install=no
14074 elif test "$shlibpath_overrides_runpath" = yes ||
14075      test "$enable_shared" = no; then
14076   # Fast installation is not necessary
14077   enable_fast_install=needless
14078 fi
14079
14080 striplib=
14081 old_striplib=
14082 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14083 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14084 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14085   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14086   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14087   echo "$as_me:$LINENO: result: yes" >&5
14088 echo "${ECHO_T}yes" >&6
14089 else
14090 # FIXME - insert some real tests, host_os isn't really good enough
14091   case $host_os in
14092    darwin*)
14093        if test -n "$STRIP" ; then
14094          striplib="$STRIP -x"
14095          echo "$as_me:$LINENO: result: yes" >&5
14096 echo "${ECHO_T}yes" >&6
14097        else
14098   echo "$as_me:$LINENO: result: no" >&5
14099 echo "${ECHO_T}no" >&6
14100 fi
14101        ;;
14102    *)
14103   echo "$as_me:$LINENO: result: no" >&5
14104 echo "${ECHO_T}no" >&6
14105     ;;
14106   esac
14107 fi
14108
14109 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14110 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14111 library_names_spec=
14112 libname_spec='lib$name'
14113 soname_spec=
14114 shrext=".so"
14115 postinstall_cmds=
14116 postuninstall_cmds=
14117 finish_cmds=
14118 finish_eval=
14119 shlibpath_var=
14120 shlibpath_overrides_runpath=unknown
14121 version_type=none
14122 dynamic_linker="$host_os ld.so"
14123 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14124 if test "$GCC" = yes; then
14125   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14126   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14127     # if the path contains ";" then we assume it to be the separator
14128     # otherwise default to the standard path separator (i.e. ":") - it is
14129     # assumed that no part of a normal pathname contains ";" but that should
14130     # okay in the real world where ";" in dirpaths is itself problematic.
14131     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14132   else
14133     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14134   fi
14135 else
14136   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14137 fi
14138 need_lib_prefix=unknown
14139 hardcode_into_libs=no
14140
14141 # when you set need_version to no, make sure it does not cause -set_version
14142 # flags to be left without arguments
14143 need_version=unknown
14144
14145 case $host_os in
14146 aix3*)
14147   version_type=linux
14148   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14149   shlibpath_var=LIBPATH
14150
14151   # AIX 3 has no versioning support, so we append a major version to the name.
14152   soname_spec='${libname}${release}${shared_ext}$major'
14153   ;;
14154
14155 aix4* | aix5*)
14156   version_type=linux
14157   need_lib_prefix=no
14158   need_version=no
14159   hardcode_into_libs=yes
14160   if test "$host_cpu" = ia64; then
14161     # AIX 5 supports IA64
14162     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14163     shlibpath_var=LD_LIBRARY_PATH
14164   else
14165     # With GCC up to 2.95.x, collect2 would create an import file
14166     # for dependence libraries.  The import file would start with
14167     # the line `#! .'.  This would cause the generated library to
14168     # depend on `.', always an invalid library.  This was fixed in
14169     # development snapshots of GCC prior to 3.0.
14170     case $host_os in
14171       aix4 | aix4.[01] | aix4.[01].*)
14172       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14173            echo ' yes '
14174            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14175         :
14176       else
14177         can_build_shared=no
14178       fi
14179       ;;
14180     esac
14181     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14182     # soname into executable. Probably we can add versioning support to
14183     # collect2, so additional links can be useful in future.
14184     if test "$aix_use_runtimelinking" = yes; then
14185       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14186       # instead of lib<name>.a to let people know that these are not
14187       # typical AIX shared libraries.
14188       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14189     else
14190       # We preserve .a as extension for shared libraries through AIX4.2
14191       # and later when we are not doing run time linking.
14192       library_names_spec='${libname}${release}.a $libname.a'
14193       soname_spec='${libname}${release}${shared_ext}$major'
14194     fi
14195     shlibpath_var=LIBPATH
14196   fi
14197   ;;
14198
14199 amigaos*)
14200   library_names_spec='$libname.ixlibrary $libname.a'
14201   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14202   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'
14203   ;;
14204
14205 beos*)
14206   library_names_spec='${libname}${shared_ext}'
14207   dynamic_linker="$host_os ld.so"
14208   shlibpath_var=LIBRARY_PATH
14209   ;;
14210
14211 bsdi4*)
14212   version_type=linux
14213   need_version=no
14214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14215   soname_spec='${libname}${release}${shared_ext}$major'
14216   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14217   shlibpath_var=LD_LIBRARY_PATH
14218   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14219   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14220   # the default ld.so.conf also contains /usr/contrib/lib and
14221   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14222   # libtool to hard-code these into programs
14223   ;;
14224
14225 cygwin* | mingw* | pw32*)
14226   version_type=windows
14227   shrext=".dll"
14228   need_version=no
14229   need_lib_prefix=no
14230
14231   case $GCC,$host_os in
14232   yes,cygwin* | yes,mingw* | yes,pw32*)
14233     library_names_spec='$libname.dll.a'
14234     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14235     postinstall_cmds='base_file=`basename \${file}`~
14236       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14237       dldir=$destdir/`dirname \$dlpath`~
14238       test -d \$dldir || mkdir -p \$dldir~
14239       $install_prog $dir/$dlname \$dldir/$dlname'
14240     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14241       dlpath=$dir/\$dldll~
14242        $rm \$dlpath'
14243     shlibpath_overrides_runpath=yes
14244
14245     case $host_os in
14246     cygwin*)
14247       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14248       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14249       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14250       ;;
14251     mingw*)
14252       # MinGW DLLs use traditional 'lib' prefix
14253       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14254       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14255       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14256         # It is most probably a Windows format PATH printed by
14257         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14258         # path with ; separators, and with drive letters. We can handle the
14259         # drive letters (cygwin fileutils understands them), so leave them,
14260         # especially as we might pass files found there to a mingw objdump,
14261         # which wouldn't understand a cygwinified path. Ahh.
14262         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14263       else
14264         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14265       fi
14266       ;;
14267     pw32*)
14268       # pw32 DLLs use 'pw' prefix rather than 'lib'
14269       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14270       ;;
14271     esac
14272     ;;
14273
14274   *)
14275     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14276     ;;
14277   esac
14278   dynamic_linker='Win32 ld.exe'
14279   # FIXME: first we should search . and the directory the executable is in
14280   shlibpath_var=PATH
14281   ;;
14282
14283 darwin* | rhapsody*)
14284   dynamic_linker="$host_os dyld"
14285   version_type=darwin
14286   need_lib_prefix=no
14287   need_version=no
14288   # FIXME: Relying on posixy $() will cause problems for
14289   #        cross-compilation, but unfortunately the echo tests do not
14290   #        yet detect zsh echo's removal of \ escapes.
14291   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14292   soname_spec='${libname}${release}${major}$shared_ext'
14293   shlibpath_overrides_runpath=yes
14294   shlibpath_var=DYLD_LIBRARY_PATH
14295   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14296   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14297   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14298   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"`
14299   fi
14300   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14301   ;;
14302
14303 dgux*)
14304   version_type=linux
14305   need_lib_prefix=no
14306   need_version=no
14307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14308   soname_spec='${libname}${release}${shared_ext}$major'
14309   shlibpath_var=LD_LIBRARY_PATH
14310   ;;
14311
14312 freebsd1*)
14313   dynamic_linker=no
14314   ;;
14315
14316 freebsd*)
14317   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14318   version_type=freebsd-$objformat
14319   case $version_type in
14320     freebsd-elf*)
14321       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14322       need_version=no
14323       need_lib_prefix=no
14324       ;;
14325     freebsd-*)
14326       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14327       need_version=yes
14328       ;;
14329   esac
14330   shlibpath_var=LD_LIBRARY_PATH
14331   case $host_os in
14332   freebsd2*)
14333     shlibpath_overrides_runpath=yes
14334     ;;
14335   freebsd3.01* | freebsdelf3.01*)
14336     shlibpath_overrides_runpath=yes
14337     hardcode_into_libs=yes
14338     ;;
14339   *) # from 3.2 on
14340     shlibpath_overrides_runpath=no
14341     hardcode_into_libs=yes
14342     ;;
14343   esac
14344   ;;
14345
14346 gnu*)
14347   version_type=linux
14348   need_lib_prefix=no
14349   need_version=no
14350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14351   soname_spec='${libname}${release}${shared_ext}$major'
14352   shlibpath_var=LD_LIBRARY_PATH
14353   hardcode_into_libs=yes
14354   ;;
14355
14356 hpux9* | hpux10* | hpux11*)
14357   # Give a soname corresponding to the major version so that dld.sl refuses to
14358   # link against other versions.
14359   version_type=sunos
14360   need_lib_prefix=no
14361   need_version=no
14362   case "$host_cpu" in
14363   ia64*)
14364     shrext='.so'
14365     hardcode_into_libs=yes
14366     dynamic_linker="$host_os dld.so"
14367     shlibpath_var=LD_LIBRARY_PATH
14368     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14370     soname_spec='${libname}${release}${shared_ext}$major'
14371     if test "X$HPUX_IA64_MODE" = X32; then
14372       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14373     else
14374       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14375     fi
14376     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14377     ;;
14378    hppa*64*)
14379      shrext='.sl'
14380      hardcode_into_libs=yes
14381      dynamic_linker="$host_os dld.sl"
14382      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14383      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14384      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14385      soname_spec='${libname}${release}${shared_ext}$major'
14386      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14387      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14388      ;;
14389    *)
14390     shrext='.sl'
14391     dynamic_linker="$host_os dld.sl"
14392     shlibpath_var=SHLIB_PATH
14393     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14394     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14395     soname_spec='${libname}${release}${shared_ext}$major'
14396     ;;
14397   esac
14398   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14399   postinstall_cmds='chmod 555 $lib'
14400   ;;
14401
14402 irix5* | irix6* | nonstopux*)
14403   case $host_os in
14404     nonstopux*) version_type=nonstopux ;;
14405     *)
14406         if test "$lt_cv_prog_gnu_ld" = yes; then
14407                 version_type=linux
14408         else
14409                 version_type=irix
14410         fi ;;
14411   esac
14412   need_lib_prefix=no
14413   need_version=no
14414   soname_spec='${libname}${release}${shared_ext}$major'
14415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14416   case $host_os in
14417   irix5* | nonstopux*)
14418     libsuff= shlibsuff=
14419     ;;
14420   *)
14421     case $LD in # libtool.m4 will add one of these switches to LD
14422     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14423       libsuff= shlibsuff= libmagic=32-bit;;
14424     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14425       libsuff=32 shlibsuff=N32 libmagic=N32;;
14426     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14427       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14428     *) libsuff= shlibsuff= libmagic=never-match;;
14429     esac
14430     ;;
14431   esac
14432   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14433   shlibpath_overrides_runpath=no
14434   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14435   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14436   hardcode_into_libs=yes
14437   ;;
14438
14439 # No shared lib support for Linux oldld, aout, or coff.
14440 linux*oldld* | linux*aout* | linux*coff*)
14441   dynamic_linker=no
14442   ;;
14443
14444 # This must be Linux ELF.
14445 linux*)
14446   version_type=linux
14447   need_lib_prefix=no
14448   need_version=no
14449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450   soname_spec='${libname}${release}${shared_ext}$major'
14451   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14452   shlibpath_var=LD_LIBRARY_PATH
14453   shlibpath_overrides_runpath=no
14454   # This implies no fast_install, which is unacceptable.
14455   # Some rework will be needed to allow for fast_install
14456   # before this can be enabled.
14457   hardcode_into_libs=yes
14458
14459   # We used to test for /lib/ld.so.1 and disable shared libraries on
14460   # powerpc, because MkLinux only supported shared libraries with the
14461   # GNU dynamic linker.  Since this was broken with cross compilers,
14462   # most powerpc-linux boxes support dynamic linking these days and
14463   # people can always --disable-shared, the test was removed, and we
14464   # assume the GNU/Linux dynamic linker is in use.
14465   dynamic_linker='GNU/Linux ld.so'
14466   ;;
14467
14468 netbsd*)
14469   version_type=sunos
14470   need_lib_prefix=no
14471   need_version=no
14472   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14474     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14475     dynamic_linker='NetBSD (a.out) ld.so'
14476   else
14477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14478     soname_spec='${libname}${release}${shared_ext}$major'
14479     dynamic_linker='NetBSD ld.elf_so'
14480   fi
14481   shlibpath_var=LD_LIBRARY_PATH
14482   shlibpath_overrides_runpath=yes
14483   hardcode_into_libs=yes
14484   ;;
14485
14486 newsos6)
14487   version_type=linux
14488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489   shlibpath_var=LD_LIBRARY_PATH
14490   shlibpath_overrides_runpath=yes
14491   ;;
14492
14493 nto-qnx)
14494   version_type=linux
14495   need_lib_prefix=no
14496   need_version=no
14497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498   soname_spec='${libname}${release}${shared_ext}$major'
14499   shlibpath_var=LD_LIBRARY_PATH
14500   shlibpath_overrides_runpath=yes
14501   ;;
14502
14503 openbsd*)
14504   version_type=sunos
14505   need_lib_prefix=no
14506   need_version=no
14507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14508   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14509   shlibpath_var=LD_LIBRARY_PATH
14510   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14511     case $host_os in
14512       openbsd2.[89] | openbsd2.[89].*)
14513         shlibpath_overrides_runpath=no
14514         ;;
14515       *)
14516         shlibpath_overrides_runpath=yes
14517         ;;
14518       esac
14519   else
14520     shlibpath_overrides_runpath=yes
14521   fi
14522   ;;
14523
14524 os2*)
14525   libname_spec='$name'
14526   shrext=".dll"
14527   need_lib_prefix=no
14528   library_names_spec='$libname${shared_ext} $libname.a'
14529   dynamic_linker='OS/2 ld.exe'
14530   shlibpath_var=LIBPATH
14531   ;;
14532
14533 osf3* | osf4* | osf5*)
14534   version_type=osf
14535   need_lib_prefix=no
14536   need_version=no
14537   soname_spec='${libname}${release}${shared_ext}$major'
14538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539   shlibpath_var=LD_LIBRARY_PATH
14540   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14541   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14542   ;;
14543
14544 sco3.2v5*)
14545   version_type=osf
14546   soname_spec='${libname}${release}${shared_ext}$major'
14547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548   shlibpath_var=LD_LIBRARY_PATH
14549   ;;
14550
14551 solaris*)
14552   version_type=linux
14553   need_lib_prefix=no
14554   need_version=no
14555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14556   soname_spec='${libname}${release}${shared_ext}$major'
14557   shlibpath_var=LD_LIBRARY_PATH
14558   shlibpath_overrides_runpath=yes
14559   hardcode_into_libs=yes
14560   # ldd complains unless libraries are executable
14561   postinstall_cmds='chmod +x $lib'
14562   ;;
14563
14564 sunos4*)
14565   version_type=sunos
14566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14567   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14568   shlibpath_var=LD_LIBRARY_PATH
14569   shlibpath_overrides_runpath=yes
14570   if test "$with_gnu_ld" = yes; then
14571     need_lib_prefix=no
14572   fi
14573   need_version=yes
14574   ;;
14575
14576 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14577   version_type=linux
14578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579   soname_spec='${libname}${release}${shared_ext}$major'
14580   shlibpath_var=LD_LIBRARY_PATH
14581   case $host_vendor in
14582     sni)
14583       shlibpath_overrides_runpath=no
14584       need_lib_prefix=no
14585       export_dynamic_flag_spec='${wl}-Blargedynsym'
14586       runpath_var=LD_RUN_PATH
14587       ;;
14588     siemens)
14589       need_lib_prefix=no
14590       ;;
14591     motorola)
14592       need_lib_prefix=no
14593       need_version=no
14594       shlibpath_overrides_runpath=no
14595       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14596       ;;
14597   esac
14598   ;;
14599
14600 sysv4*MP*)
14601   if test -d /usr/nec ;then
14602     version_type=linux
14603     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14604     soname_spec='$libname${shared_ext}.$major'
14605     shlibpath_var=LD_LIBRARY_PATH
14606   fi
14607   ;;
14608
14609 uts4*)
14610   version_type=linux
14611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612   soname_spec='${libname}${release}${shared_ext}$major'
14613   shlibpath_var=LD_LIBRARY_PATH
14614   ;;
14615
14616 *)
14617   dynamic_linker=no
14618   ;;
14619 esac
14620 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14621 echo "${ECHO_T}$dynamic_linker" >&6
14622 test "$dynamic_linker" = no && can_build_shared=no
14623
14624
14625 # The else clause should only fire when bootstrapping the
14626 # libtool distribution, otherwise you forgot to ship ltmain.sh
14627 # with your package, and you will get complaints that there are
14628 # no rules to generate ltmain.sh.
14629 if test -f "$ltmain"; then
14630   # See if we are running on zsh, and set the options which allow our commands through
14631   # without removal of \ escapes.
14632   if test -n "${ZSH_VERSION+set}" ; then
14633     setopt NO_GLOB_SUBST
14634   fi
14635   # Now quote all the things that may contain metacharacters while being
14636   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14637   # variables and quote the copies for generation of the libtool script.
14638   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14639     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14640     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14641     deplibs_check_method reload_flag reload_cmds need_locks \
14642     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14643     lt_cv_sys_global_symbol_to_c_name_address \
14644     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14645     old_postinstall_cmds old_postuninstall_cmds \
14646     compiler_F77 \
14647     CC_F77 \
14648     LD_F77 \
14649     lt_prog_compiler_wl_F77 \
14650     lt_prog_compiler_pic_F77 \
14651     lt_prog_compiler_static_F77 \
14652     lt_prog_compiler_no_builtin_flag_F77 \
14653     export_dynamic_flag_spec_F77 \
14654     thread_safe_flag_spec_F77 \
14655     whole_archive_flag_spec_F77 \
14656     enable_shared_with_static_runtimes_F77 \
14657     old_archive_cmds_F77 \
14658     old_archive_from_new_cmds_F77 \
14659     predep_objects_F77 \
14660     postdep_objects_F77 \
14661     predeps_F77 \
14662     postdeps_F77 \
14663     compiler_lib_search_path_F77 \
14664     archive_cmds_F77 \
14665     archive_expsym_cmds_F77 \
14666     postinstall_cmds_F77 \
14667     postuninstall_cmds_F77 \
14668     old_archive_from_expsyms_cmds_F77 \
14669     allow_undefined_flag_F77 \
14670     no_undefined_flag_F77 \
14671     export_symbols_cmds_F77 \
14672     hardcode_libdir_flag_spec_F77 \
14673     hardcode_libdir_flag_spec_ld_F77 \
14674     hardcode_libdir_separator_F77 \
14675     hardcode_automatic_F77 \
14676     module_cmds_F77 \
14677     module_expsym_cmds_F77 \
14678     lt_cv_prog_compiler_c_o_F77 \
14679     exclude_expsyms_F77 \
14680     include_expsyms_F77; do
14681
14682     case $var in
14683     old_archive_cmds_F77 | \
14684     old_archive_from_new_cmds_F77 | \
14685     archive_cmds_F77 | \
14686     archive_expsym_cmds_F77 | \
14687     module_cmds_F77 | \
14688     module_expsym_cmds_F77 | \
14689     old_archive_from_expsyms_cmds_F77 | \
14690     export_symbols_cmds_F77 | \
14691     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14692     postinstall_cmds | postuninstall_cmds | \
14693     old_postinstall_cmds | old_postuninstall_cmds | \
14694     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14695       # Double-quote double-evaled strings.
14696       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14697       ;;
14698     *)
14699       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14700       ;;
14701     esac
14702   done
14703
14704   case $lt_echo in
14705   *'\$0 --fallback-echo"')
14706     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14707     ;;
14708   esac
14709
14710 cfgfile="$ofile"
14711
14712   cat <<__EOF__ >> "$cfgfile"
14713 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14714
14715 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14716
14717 # Shell to use when invoking shell scripts.
14718 SHELL=$lt_SHELL
14719
14720 # Whether or not to build shared libraries.
14721 build_libtool_libs=$enable_shared
14722
14723 # Whether or not to build static libraries.
14724 build_old_libs=$enable_static
14725
14726 # Whether or not to add -lc for building shared libraries.
14727 build_libtool_need_lc=$archive_cmds_need_lc_F77
14728
14729 # Whether or not to disallow shared libs when runtime libs are static
14730 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14731
14732 # Whether or not to optimize for fast installation.
14733 fast_install=$enable_fast_install
14734
14735 # The host system.
14736 host_alias=$host_alias
14737 host=$host
14738
14739 # An echo program that does not interpret backslashes.
14740 echo=$lt_echo
14741
14742 # The archiver.
14743 AR=$lt_AR
14744 AR_FLAGS=$lt_AR_FLAGS
14745
14746 # A C compiler.
14747 LTCC=$lt_LTCC
14748
14749 # A language-specific compiler.
14750 CC=$lt_compiler_F77
14751
14752 # Is the compiler the GNU C compiler?
14753 with_gcc=$GCC_F77
14754
14755 # An ERE matcher.
14756 EGREP=$lt_EGREP
14757
14758 # The linker used to build libraries.
14759 LD=$lt_LD_F77
14760
14761 # Whether we need hard or soft links.
14762 LN_S=$lt_LN_S
14763
14764 # A BSD-compatible nm program.
14765 NM=$lt_NM
14766
14767 # A symbol stripping program
14768 STRIP=$STRIP
14769
14770 # Used to examine libraries when file_magic_cmd begins "file"
14771 MAGIC_CMD=$MAGIC_CMD
14772
14773 # Used on cygwin: DLL creation program.
14774 DLLTOOL="$DLLTOOL"
14775
14776 # Used on cygwin: object dumper.
14777 OBJDUMP="$OBJDUMP"
14778
14779 # Used on cygwin: assembler.
14780 AS="$AS"
14781
14782 # The name of the directory that contains temporary libtool files.
14783 objdir=$objdir
14784
14785 # How to create reloadable object files.
14786 reload_flag=$lt_reload_flag
14787 reload_cmds=$lt_reload_cmds
14788
14789 # How to pass a linker flag through the compiler.
14790 wl=$lt_lt_prog_compiler_wl_F77
14791
14792 # Object file suffix (normally "o").
14793 objext="$ac_objext"
14794
14795 # Old archive suffix (normally "a").
14796 libext="$libext"
14797
14798 # Shared library suffix (normally ".so").
14799 shrext='$shrext'
14800
14801 # Executable file suffix (normally "").
14802 exeext="$exeext"
14803
14804 # Additional compiler flags for building library objects.
14805 pic_flag=$lt_lt_prog_compiler_pic_F77
14806 pic_mode=$pic_mode
14807
14808 # What is the maximum length of a command?
14809 max_cmd_len=$lt_cv_sys_max_cmd_len
14810
14811 # Does compiler simultaneously support -c and -o options?
14812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14813
14814 # Must we lock files when doing compilation ?
14815 need_locks=$lt_need_locks
14816
14817 # Do we need the lib prefix for modules?
14818 need_lib_prefix=$need_lib_prefix
14819
14820 # Do we need a version for libraries?
14821 need_version=$need_version
14822
14823 # Whether dlopen is supported.
14824 dlopen_support=$enable_dlopen
14825
14826 # Whether dlopen of programs is supported.
14827 dlopen_self=$enable_dlopen_self
14828
14829 # Whether dlopen of statically linked programs is supported.
14830 dlopen_self_static=$enable_dlopen_self_static
14831
14832 # Compiler flag to prevent dynamic linking.
14833 link_static_flag=$lt_lt_prog_compiler_static_F77
14834
14835 # Compiler flag to turn off builtin functions.
14836 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14837
14838 # Compiler flag to allow reflexive dlopens.
14839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14840
14841 # Compiler flag to generate shared objects directly from archives.
14842 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14843
14844 # Compiler flag to generate thread-safe objects.
14845 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14846
14847 # Library versioning type.
14848 version_type=$version_type
14849
14850 # Format of library name prefix.
14851 libname_spec=$lt_libname_spec
14852
14853 # List of archive names.  First name is the real one, the rest are links.
14854 # The last name is the one that the linker finds with -lNAME.
14855 library_names_spec=$lt_library_names_spec
14856
14857 # The coded name of the library, if different from the real name.
14858 soname_spec=$lt_soname_spec
14859
14860 # Commands used to build and install an old-style archive.
14861 RANLIB=$lt_RANLIB
14862 old_archive_cmds=$lt_old_archive_cmds_F77
14863 old_postinstall_cmds=$lt_old_postinstall_cmds
14864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14865
14866 # Create an old-style archive from a shared archive.
14867 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14868
14869 # Create a temporary old-style archive to link instead of a shared archive.
14870 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14871
14872 # Commands used to build and install a shared archive.
14873 archive_cmds=$lt_archive_cmds_F77
14874 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14875 postinstall_cmds=$lt_postinstall_cmds
14876 postuninstall_cmds=$lt_postuninstall_cmds
14877
14878 # Commands used to build a loadable module (assumed same as above if empty)
14879 module_cmds=$lt_module_cmds_F77
14880 module_expsym_cmds=$lt_module_expsym_cmds_F77
14881
14882 # Commands to strip libraries.
14883 old_striplib=$lt_old_striplib
14884 striplib=$lt_striplib
14885
14886 # Dependencies to place before the objects being linked to create a
14887 # shared library.
14888 predep_objects=$lt_predep_objects_F77
14889
14890 # Dependencies to place after the objects being linked to create a
14891 # shared library.
14892 postdep_objects=$lt_postdep_objects_F77
14893
14894 # Dependencies to place before the objects being linked to create a
14895 # shared library.
14896 predeps=$lt_predeps_F77
14897
14898 # Dependencies to place after the objects being linked to create a
14899 # shared library.
14900 postdeps=$lt_postdeps_F77
14901
14902 # The library search path used internally by the compiler when linking
14903 # a shared library.
14904 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14905
14906 # Method to check whether dependent libraries are shared objects.
14907 deplibs_check_method=$lt_deplibs_check_method
14908
14909 # Command to use when deplibs_check_method == file_magic.
14910 file_magic_cmd=$lt_file_magic_cmd
14911
14912 # Flag that allows shared libraries with undefined symbols to be built.
14913 allow_undefined_flag=$lt_allow_undefined_flag_F77
14914
14915 # Flag that forces no undefined symbols.
14916 no_undefined_flag=$lt_no_undefined_flag_F77
14917
14918 # Commands used to finish a libtool library installation in a directory.
14919 finish_cmds=$lt_finish_cmds
14920
14921 # Same as above, but a single script fragment to be evaled but not shown.
14922 finish_eval=$lt_finish_eval
14923
14924 # Take the output of nm and produce a listing of raw symbols and C names.
14925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14926
14927 # Transform the output of nm in a proper C declaration
14928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14929
14930 # Transform the output of nm in a C name address pair
14931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14932
14933 # This is the shared library runtime path variable.
14934 runpath_var=$runpath_var
14935
14936 # This is the shared library path variable.
14937 shlibpath_var=$shlibpath_var
14938
14939 # Is shlibpath searched before the hard-coded library search path?
14940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14941
14942 # How to hardcode a shared library path into an executable.
14943 hardcode_action=$hardcode_action_F77
14944
14945 # Whether we should hardcode library paths into libraries.
14946 hardcode_into_libs=$hardcode_into_libs
14947
14948 # Flag to hardcode \$libdir into a binary during linking.
14949 # This must work even if \$libdir does not exist.
14950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14951
14952 # If ld is used when linking, flag to hardcode \$libdir into
14953 # a binary during linking. This must work even if \$libdir does
14954 # not exist.
14955 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14956
14957 # Whether we need a single -rpath flag with a separated argument.
14958 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14959
14960 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14961 # resulting binary.
14962 hardcode_direct=$hardcode_direct_F77
14963
14964 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14965 # resulting binary.
14966 hardcode_minus_L=$hardcode_minus_L_F77
14967
14968 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14969 # the resulting binary.
14970 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14971
14972 # Set to yes if building a shared library automatically hardcodes DIR into the library
14973 # and all subsequent libraries and executables linked against it.
14974 hardcode_automatic=$hardcode_automatic_F77
14975
14976 # Variables whose values should be saved in libtool wrapper scripts and
14977 # restored at relink time.
14978 variables_saved_for_relink="$variables_saved_for_relink"
14979
14980 # Whether libtool must link a program against all its dependency libraries.
14981 link_all_deplibs=$link_all_deplibs_F77
14982
14983 # Compile-time system search path for libraries
14984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14985
14986 # Run-time system search path for libraries
14987 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14988
14989 # Fix the shell variable \$srcfile for the compiler.
14990 fix_srcfile_path="$fix_srcfile_path_F77"
14991
14992 # Set to yes if exported symbols are required.
14993 always_export_symbols=$always_export_symbols_F77
14994
14995 # The commands to list exported symbols.
14996 export_symbols_cmds=$lt_export_symbols_cmds_F77
14997
14998 # The commands to extract the exported symbol list from a shared archive.
14999 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15000
15001 # Symbols that should not be listed in the preloaded symbols.
15002 exclude_expsyms=$lt_exclude_expsyms_F77
15003
15004 # Symbols that must always be exported.
15005 include_expsyms=$lt_include_expsyms_F77
15006
15007 # ### END LIBTOOL TAG CONFIG: $tagname
15008
15009 __EOF__
15010
15011
15012 else
15013   # If there is no Makefile yet, we rely on a make rule to execute
15014   # `config.status --recheck' to rerun these tests and create the
15015   # libtool script then.
15016   test -f Makefile && make "$ltmain"
15017 fi
15018
15019
15020 ac_ext=c
15021 ac_cpp='$CPP $CPPFLAGS'
15022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15025
15026 CC="$lt_save_CC"
15027
15028         else
15029           tagname=""
15030         fi
15031         ;;
15032
15033       GCJ)
15034         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15035
15036
15037
15038 # Source file extension for Java test sources.
15039 ac_ext=java
15040
15041 # Object file extension for compiled Java test sources.
15042 objext=o
15043 objext_GCJ=$objext
15044
15045 # Code to be used in simple compile tests
15046 lt_simple_compile_test_code="class foo {}\n"
15047
15048 # Code to be used in simple link tests
15049 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15050
15051 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15052
15053 # If no C compiler was specified, use CC.
15054 LTCC=${LTCC-"$CC"}
15055
15056 # Allow CC to be a program name with arguments.
15057 compiler=$CC
15058
15059
15060 # Allow CC to be a program name with arguments.
15061 lt_save_CC="$CC"
15062 CC=${GCJ-"gcj"}
15063 compiler=$CC
15064 compiler_GCJ=$CC
15065
15066 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15067 archive_cmds_need_lc_GCJ=no
15068
15069 ## CAVEAT EMPTOR:
15070 ## There is no encapsulation within the following macros, do not change
15071 ## the running order or otherwise move them around unless you know exactly
15072 ## what you are doing...
15073
15074 lt_prog_compiler_no_builtin_flag_GCJ=
15075
15076 if test "$GCC" = yes; then
15077   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15078
15079   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15080 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15081 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   lt_cv_prog_compiler_rtti_exceptions=no
15085   ac_outfile=conftest.$ac_objext
15086    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15087    lt_compiler_flag="-fno-rtti -fno-exceptions"
15088    # Insert the option either (1) after the last *FLAGS variable, or
15089    # (2) before a word containing "conftest.", or (3) at the end.
15090    # Note that $ac_compile itself does not contain backslashes and begins
15091    # with a dollar sign (not a hyphen), so the echo should work correctly.
15092    # The option is referenced via a variable to avoid confusing sed.
15093    lt_compile=`echo "$ac_compile" | $SED \
15094    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15095    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15096    -e 's:$: $lt_compiler_flag:'`
15097    (eval echo "\"\$as_me:15097: $lt_compile\"" >&5)
15098    (eval "$lt_compile" 2>conftest.err)
15099    ac_status=$?
15100    cat conftest.err >&5
15101    echo "$as_me:15101: \$? = $ac_status" >&5
15102    if (exit $ac_status) && test -s "$ac_outfile"; then
15103      # The compiler can only warn and ignore the option if not recognized
15104      # So say no if there are warnings
15105      if test ! -s conftest.err; then
15106        lt_cv_prog_compiler_rtti_exceptions=yes
15107      fi
15108    fi
15109    $rm conftest*
15110
15111 fi
15112 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15113 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15114
15115 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15116     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15117 else
15118     :
15119 fi
15120
15121 fi
15122
15123 lt_prog_compiler_wl_GCJ=
15124 lt_prog_compiler_pic_GCJ=
15125 lt_prog_compiler_static_GCJ=
15126
15127 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15128 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15129
15130   if test "$GCC" = yes; then
15131     lt_prog_compiler_wl_GCJ='-Wl,'
15132     lt_prog_compiler_static_GCJ='-static'
15133
15134     case $host_os in
15135       aix*)
15136       # All AIX code is PIC.
15137       if test "$host_cpu" = ia64; then
15138         # AIX 5 now supports IA64 processor
15139         lt_prog_compiler_static_GCJ='-Bstatic'
15140       fi
15141       ;;
15142
15143     amigaos*)
15144       # FIXME: we need at least 68020 code to build shared libraries, but
15145       # adding the `-m68020' flag to GCC prevents building anything better,
15146       # like `-m68040'.
15147       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15148       ;;
15149
15150     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15151       # PIC is the default for these OSes.
15152       ;;
15153
15154     mingw* | pw32* | os2*)
15155       # This hack is so that the source file can tell whether it is being
15156       # built for inclusion in a dll (and should export symbols for example).
15157       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15158       ;;
15159
15160     darwin* | rhapsody*)
15161       # PIC is the default on this platform
15162       # Common symbols not allowed in MH_DYLIB files
15163       lt_prog_compiler_pic_GCJ='-fno-common'
15164       ;;
15165
15166     msdosdjgpp*)
15167       # Just because we use GCC doesn't mean we suddenly get shared libraries
15168       # on systems that don't support them.
15169       lt_prog_compiler_can_build_shared_GCJ=no
15170       enable_shared=no
15171       ;;
15172
15173     sysv4*MP*)
15174       if test -d /usr/nec; then
15175         lt_prog_compiler_pic_GCJ=-Kconform_pic
15176       fi
15177       ;;
15178
15179     hpux*)
15180       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15181       # not for PA HP-UX.
15182       case "$host_cpu" in
15183       hppa*64*|ia64*)
15184         # +Z the default
15185         ;;
15186       *)
15187         lt_prog_compiler_pic_GCJ='-fPIC'
15188         ;;
15189       esac
15190       ;;
15191
15192     *)
15193       lt_prog_compiler_pic_GCJ='-fPIC'
15194       ;;
15195     esac
15196   else
15197     # PORTME Check for flag to pass linker flags through the system compiler.
15198     case $host_os in
15199     aix*)
15200       lt_prog_compiler_wl_GCJ='-Wl,'
15201       if test "$host_cpu" = ia64; then
15202         # AIX 5 now supports IA64 processor
15203         lt_prog_compiler_static_GCJ='-Bstatic'
15204       else
15205         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15206       fi
15207       ;;
15208
15209     mingw* | pw32* | os2*)
15210       # This hack is so that the source file can tell whether it is being
15211       # built for inclusion in a dll (and should export symbols for example).
15212       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15213       ;;
15214
15215     hpux9* | hpux10* | hpux11*)
15216       lt_prog_compiler_wl_GCJ='-Wl,'
15217       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15218       # not for PA HP-UX.
15219       case "$host_cpu" in
15220       hppa*64*|ia64*)
15221         # +Z the default
15222         ;;
15223       *)
15224         lt_prog_compiler_pic_GCJ='+Z'
15225         ;;
15226       esac
15227       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15228       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15229       ;;
15230
15231     irix5* | irix6* | nonstopux*)
15232       lt_prog_compiler_wl_GCJ='-Wl,'
15233       # PIC (with -KPIC) is the default.
15234       lt_prog_compiler_static_GCJ='-non_shared'
15235       ;;
15236
15237     newsos6)
15238       lt_prog_compiler_pic_GCJ='-KPIC'
15239       lt_prog_compiler_static_GCJ='-Bstatic'
15240       ;;
15241
15242     linux*)
15243       case $CC in
15244       icc|ecc)
15245         lt_prog_compiler_wl_GCJ='-Wl,'
15246         lt_prog_compiler_pic_GCJ='-KPIC'
15247         lt_prog_compiler_static_GCJ='-static'
15248         ;;
15249       ccc)
15250         lt_prog_compiler_wl_GCJ='-Wl,'
15251         # All Alpha code is PIC.
15252         lt_prog_compiler_static_GCJ='-non_shared'
15253         ;;
15254       esac
15255       ;;
15256
15257     osf3* | osf4* | osf5*)
15258       lt_prog_compiler_wl_GCJ='-Wl,'
15259       # All OSF/1 code is PIC.
15260       lt_prog_compiler_static_GCJ='-non_shared'
15261       ;;
15262
15263     sco3.2v5*)
15264       lt_prog_compiler_pic_GCJ='-Kpic'
15265       lt_prog_compiler_static_GCJ='-dn'
15266       ;;
15267
15268     solaris*)
15269       lt_prog_compiler_wl_GCJ='-Wl,'
15270       lt_prog_compiler_pic_GCJ='-KPIC'
15271       lt_prog_compiler_static_GCJ='-Bstatic'
15272       ;;
15273
15274     sunos4*)
15275       lt_prog_compiler_wl_GCJ='-Qoption ld '
15276       lt_prog_compiler_pic_GCJ='-PIC'
15277       lt_prog_compiler_static_GCJ='-Bstatic'
15278       ;;
15279
15280     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15281       lt_prog_compiler_wl_GCJ='-Wl,'
15282       lt_prog_compiler_pic_GCJ='-KPIC'
15283       lt_prog_compiler_static_GCJ='-Bstatic'
15284       ;;
15285
15286     sysv4*MP*)
15287       if test -d /usr/nec ;then
15288         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15289         lt_prog_compiler_static_GCJ='-Bstatic'
15290       fi
15291       ;;
15292
15293     uts4*)
15294       lt_prog_compiler_pic_GCJ='-pic'
15295       lt_prog_compiler_static_GCJ='-Bstatic'
15296       ;;
15297
15298     *)
15299       lt_prog_compiler_can_build_shared_GCJ=no
15300       ;;
15301     esac
15302   fi
15303
15304 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15305 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15306
15307 #
15308 # Check to make sure the PIC flag actually works.
15309 #
15310 if test -n "$lt_prog_compiler_pic_GCJ"; then
15311   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15312 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15313 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15314   echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316   lt_prog_compiler_pic_works_GCJ=no
15317   ac_outfile=conftest.$ac_objext
15318    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15319    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15320    # Insert the option either (1) after the last *FLAGS variable, or
15321    # (2) before a word containing "conftest.", or (3) at the end.
15322    # Note that $ac_compile itself does not contain backslashes and begins
15323    # with a dollar sign (not a hyphen), so the echo should work correctly.
15324    # The option is referenced via a variable to avoid confusing sed.
15325    lt_compile=`echo "$ac_compile" | $SED \
15326    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15327    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15328    -e 's:$: $lt_compiler_flag:'`
15329    (eval echo "\"\$as_me:15329: $lt_compile\"" >&5)
15330    (eval "$lt_compile" 2>conftest.err)
15331    ac_status=$?
15332    cat conftest.err >&5
15333    echo "$as_me:15333: \$? = $ac_status" >&5
15334    if (exit $ac_status) && test -s "$ac_outfile"; then
15335      # The compiler can only warn and ignore the option if not recognized
15336      # So say no if there are warnings
15337      if test ! -s conftest.err; then
15338        lt_prog_compiler_pic_works_GCJ=yes
15339      fi
15340    fi
15341    $rm conftest*
15342
15343 fi
15344 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15345 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15346
15347 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15348     case $lt_prog_compiler_pic_GCJ in
15349      "" | " "*) ;;
15350      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15351      esac
15352 else
15353     lt_prog_compiler_pic_GCJ=
15354      lt_prog_compiler_can_build_shared_GCJ=no
15355 fi
15356
15357 fi
15358 case "$host_os" in
15359   # For platforms which do not support PIC, -DPIC is meaningless:
15360   *djgpp*)
15361     lt_prog_compiler_pic_GCJ=
15362     ;;
15363   *)
15364     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15365     ;;
15366 esac
15367
15368 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15369 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15370 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15371   echo $ECHO_N "(cached) $ECHO_C" >&6
15372 else
15373   lt_cv_prog_compiler_c_o_GCJ=no
15374    $rm -r conftest 2>/dev/null
15375    mkdir conftest
15376    cd conftest
15377    mkdir out
15378    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15379
15380    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15381    # that will create temporary files in the current directory regardless of
15382    # the output directory.  Thus, making CWD read-only will cause this test
15383    # to fail, enabling locking or at least warning the user not to do parallel
15384    # builds.
15385    chmod -w .
15386
15387    lt_compiler_flag="-o out/conftest2.$ac_objext"
15388    # Insert the option either (1) after the last *FLAGS variable, or
15389    # (2) before a word containing "conftest.", or (3) at the end.
15390    # Note that $ac_compile itself does not contain backslashes and begins
15391    # with a dollar sign (not a hyphen), so the echo should work correctly.
15392    lt_compile=`echo "$ac_compile" | $SED \
15393    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15394    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15395    -e 's:$: $lt_compiler_flag:'`
15396    (eval echo "\"\$as_me:15396: $lt_compile\"" >&5)
15397    (eval "$lt_compile" 2>out/conftest.err)
15398    ac_status=$?
15399    cat out/conftest.err >&5
15400    echo "$as_me:15400: \$? = $ac_status" >&5
15401    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15402    then
15403      # The compiler can only warn and ignore the option if not recognized
15404      # So say no if there are warnings
15405      if test ! -s out/conftest.err; then
15406        lt_cv_prog_compiler_c_o_GCJ=yes
15407      fi
15408    fi
15409    chmod u+w .
15410    $rm conftest* out/*
15411    rmdir out
15412    cd ..
15413    rmdir conftest
15414    $rm conftest*
15415
15416 fi
15417 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15418 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15419
15420
15421 hard_links="nottested"
15422 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15423   # do not overwrite the value of need_locks provided by the user
15424   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15425 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15426   hard_links=yes
15427   $rm conftest*
15428   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15429   touch conftest.a
15430   ln conftest.a conftest.b 2>&5 || hard_links=no
15431   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15432   echo "$as_me:$LINENO: result: $hard_links" >&5
15433 echo "${ECHO_T}$hard_links" >&6
15434   if test "$hard_links" = no; then
15435     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15436 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15437     need_locks=warn
15438   fi
15439 else
15440   need_locks=no
15441 fi
15442
15443 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15444 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15445
15446   runpath_var=
15447   allow_undefined_flag_GCJ=
15448   enable_shared_with_static_runtimes_GCJ=no
15449   archive_cmds_GCJ=
15450   archive_expsym_cmds_GCJ=
15451   old_archive_From_new_cmds_GCJ=
15452   old_archive_from_expsyms_cmds_GCJ=
15453   export_dynamic_flag_spec_GCJ=
15454   whole_archive_flag_spec_GCJ=
15455   thread_safe_flag_spec_GCJ=
15456   hardcode_libdir_flag_spec_GCJ=
15457   hardcode_libdir_flag_spec_ld_GCJ=
15458   hardcode_libdir_separator_GCJ=
15459   hardcode_direct_GCJ=no
15460   hardcode_minus_L_GCJ=no
15461   hardcode_shlibpath_var_GCJ=unsupported
15462   link_all_deplibs_GCJ=unknown
15463   hardcode_automatic_GCJ=no
15464   module_cmds_GCJ=
15465   module_expsym_cmds_GCJ=
15466   always_export_symbols_GCJ=no
15467   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15468   # include_expsyms should be a list of space-separated symbols to be *always*
15469   # included in the symbol list
15470   include_expsyms_GCJ=
15471   # exclude_expsyms can be an extended regexp of symbols to exclude
15472   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15473   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15474   # as well as any symbol that contains `d'.
15475   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15476   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15477   # platforms (ab)use it in PIC code, but their linkers get confused if
15478   # the symbol is explicitly referenced.  Since portable code cannot
15479   # rely on this symbol name, it's probably fine to never include it in
15480   # preloaded symbol tables.
15481   extract_expsyms_cmds=
15482
15483   case $host_os in
15484   cygwin* | mingw* | pw32*)
15485     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15486     # When not using gcc, we currently assume that we are using
15487     # Microsoft Visual C++.
15488     if test "$GCC" != yes; then
15489       with_gnu_ld=no
15490     fi
15491     ;;
15492   openbsd*)
15493     with_gnu_ld=no
15494     ;;
15495   esac
15496
15497   ld_shlibs_GCJ=yes
15498   if test "$with_gnu_ld" = yes; then
15499     # If archive_cmds runs LD, not CC, wlarc should be empty
15500     wlarc='${wl}'
15501
15502     # See if GNU ld supports shared libraries.
15503     case $host_os in
15504     aix3* | aix4* | aix5*)
15505       # On AIX/PPC, the GNU linker is very broken
15506       if test "$host_cpu" != ia64; then
15507         ld_shlibs_GCJ=no
15508         cat <<EOF 1>&2
15509
15510 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15511 *** to be unable to reliably create shared libraries on AIX.
15512 *** Therefore, libtool is disabling shared libraries support.  If you
15513 *** really care for shared libraries, you may want to modify your PATH
15514 *** so that a non-GNU linker is found, and then restart.
15515
15516 EOF
15517       fi
15518       ;;
15519
15520     amigaos*)
15521       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)'
15522       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15523       hardcode_minus_L_GCJ=yes
15524
15525       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15526       # that the semantics of dynamic libraries on AmigaOS, at least up
15527       # to version 4, is to share data among multiple programs linked
15528       # with the same dynamic library.  Since this doesn't match the
15529       # behavior of shared libraries on other platforms, we can't use
15530       # them.
15531       ld_shlibs_GCJ=no
15532       ;;
15533
15534     beos*)
15535       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15536         allow_undefined_flag_GCJ=unsupported
15537         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15538         # support --undefined.  This deserves some investigation.  FIXME
15539         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15540       else
15541         ld_shlibs_GCJ=no
15542       fi
15543       ;;
15544
15545     cygwin* | mingw* | pw32*)
15546       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15547       # as there is no search path for DLLs.
15548       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15549       allow_undefined_flag_GCJ=unsupported
15550       always_export_symbols_GCJ=no
15551       enable_shared_with_static_runtimes_GCJ=yes
15552       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15553
15554       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15555         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15556         # If the export-symbols file already is a .def file (1st line
15557         # is EXPORTS), use it as is; otherwise, prepend...
15558         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15559           cp $export_symbols $output_objdir/$soname.def;
15560         else
15561           echo EXPORTS > $output_objdir/$soname.def;
15562           cat $export_symbols >> $output_objdir/$soname.def;
15563         fi~
15564         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15565       else
15566         ld_shlibs=no
15567       fi
15568       ;;
15569
15570     netbsd*)
15571       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15572         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15573         wlarc=
15574       else
15575         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15576         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15577       fi
15578       ;;
15579
15580     solaris* | sysv5*)
15581       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15582         ld_shlibs_GCJ=no
15583         cat <<EOF 1>&2
15584
15585 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15586 *** create shared libraries on Solaris systems.  Therefore, libtool
15587 *** is disabling shared libraries support.  We urge you to upgrade GNU
15588 *** binutils to release 2.9.1 or newer.  Another option is to modify
15589 *** your PATH or compiler configuration so that the native linker is
15590 *** used, and then restart.
15591
15592 EOF
15593       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15594         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15595         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15596       else
15597         ld_shlibs_GCJ=no
15598       fi
15599       ;;
15600
15601     sunos4*)
15602       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15603       wlarc=
15604       hardcode_direct_GCJ=yes
15605       hardcode_shlibpath_var_GCJ=no
15606       ;;
15607
15608     *)
15609       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15610         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15611         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15612       else
15613         ld_shlibs_GCJ=no
15614       fi
15615       ;;
15616     esac
15617
15618     if test "$ld_shlibs_GCJ" = yes; then
15619       runpath_var=LD_RUN_PATH
15620       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15621       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15622       # ancient GNU ld didn't support --whole-archive et. al.
15623       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15624         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15625       else
15626         whole_archive_flag_spec_GCJ=
15627       fi
15628     fi
15629   else
15630     # PORTME fill in a description of your system's linker (not GNU ld)
15631     case $host_os in
15632     aix3*)
15633       allow_undefined_flag_GCJ=unsupported
15634       always_export_symbols_GCJ=yes
15635       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'
15636       # Note: this linker hardcodes the directories in LIBPATH if there
15637       # are no directories specified by -L.
15638       hardcode_minus_L_GCJ=yes
15639       if test "$GCC" = yes && test -z "$link_static_flag"; then
15640         # Neither direct hardcoding nor static linking is supported with a
15641         # broken collect2.
15642         hardcode_direct_GCJ=unsupported
15643       fi
15644       ;;
15645
15646     aix4* | aix5*)
15647       if test "$host_cpu" = ia64; then
15648         # On IA64, the linker does run time linking by default, so we don't
15649         # have to do anything special.
15650         aix_use_runtimelinking=no
15651         exp_sym_flag='-Bexport'
15652         no_entry_flag=""
15653       else
15654         # If we're using GNU nm, then we don't want the "-C" option.
15655         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15656         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15657           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'
15658         else
15659           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'
15660         fi
15661         aix_use_runtimelinking=no
15662
15663         # Test if we are trying to use run time linking or normal
15664         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15665         # need to do runtime linking.
15666         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15667           for ld_flag in $LDFLAGS; do
15668           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15669             aix_use_runtimelinking=yes
15670             break
15671           fi
15672           done
15673         esac
15674
15675         exp_sym_flag='-bexport'
15676         no_entry_flag='-bnoentry'
15677       fi
15678
15679       # When large executables or shared objects are built, AIX ld can
15680       # have problems creating the table of contents.  If linking a library
15681       # or program results in "error TOC overflow" add -mminimal-toc to
15682       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15683       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15684
15685       archive_cmds_GCJ=''
15686       hardcode_direct_GCJ=yes
15687       hardcode_libdir_separator_GCJ=':'
15688       link_all_deplibs_GCJ=yes
15689
15690       if test "$GCC" = yes; then
15691         case $host_os in aix4.012|aix4.012.*)
15692         # We only want to do this on AIX 4.2 and lower, the check
15693         # below for broken collect2 doesn't work under 4.3+
15694           collect2name=`${CC} -print-prog-name=collect2`
15695           if test -f "$collect2name" && \
15696            strings "$collect2name" | grep resolve_lib_name >/dev/null
15697           then
15698           # We have reworked collect2
15699           hardcode_direct_GCJ=yes
15700           else
15701           # We have old collect2
15702           hardcode_direct_GCJ=unsupported
15703           # It fails to find uninstalled libraries when the uninstalled
15704           # path is not listed in the libpath.  Setting hardcode_minus_L
15705           # to unsupported forces relinking
15706           hardcode_minus_L_GCJ=yes
15707           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15708           hardcode_libdir_separator_GCJ=
15709           fi
15710         esac
15711         shared_flag='-shared'
15712       else
15713         # not using gcc
15714         if test "$host_cpu" = ia64; then
15715         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15716         # chokes on -Wl,-G. The following line is correct:
15717           shared_flag='-G'
15718         else
15719         if test "$aix_use_runtimelinking" = yes; then
15720             shared_flag='${wl}-G'
15721           else
15722             shared_flag='${wl}-bM:SRE'
15723         fi
15724         fi
15725       fi
15726
15727       # It seems that -bexpall does not export symbols beginning with
15728       # underscore (_), so it is better to generate a list of symbols to export.
15729       always_export_symbols_GCJ=yes
15730       if test "$aix_use_runtimelinking" = yes; then
15731         # Warning - without using the other runtime loading flags (-brtl),
15732         # -berok will link without error, but may produce a broken library.
15733         allow_undefined_flag_GCJ='-berok'
15734        # Determine the default libpath from the value encoded in an empty executable.
15735        cat >conftest.$ac_ext <<_ACEOF
15736 #line $LINENO "configure"
15737 /* confdefs.h.  */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h.  */
15742
15743 int
15744 main ()
15745 {
15746
15747   ;
15748   return 0;
15749 }
15750 _ACEOF
15751 rm -f conftest.$ac_objext conftest$ac_exeext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15753   (eval $ac_link) 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); } &&
15757          { ac_try='test -s conftest$ac_exeext'
15758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759   (eval $ac_try) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; }; then
15763
15764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15765 }'`
15766 # Check for a 64-bit object if we didn't find anything.
15767 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; }
15768 }'`; fi
15769 else
15770   echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15772
15773 fi
15774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15776
15777        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15778         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"
15779        else
15780         if test "$host_cpu" = ia64; then
15781           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15782           allow_undefined_flag_GCJ="-z nodefs"
15783           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"
15784         else
15785          # Determine the default libpath from the value encoded in an empty executable.
15786          cat >conftest.$ac_ext <<_ACEOF
15787 #line $LINENO "configure"
15788 /* confdefs.h.  */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h.  */
15793
15794 int
15795 main ()
15796 {
15797
15798   ;
15799   return 0;
15800 }
15801 _ACEOF
15802 rm -f conftest.$ac_objext conftest$ac_exeext
15803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15804   (eval $ac_link) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); } &&
15808          { ac_try='test -s conftest$ac_exeext'
15809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810   (eval $ac_try) 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); }; }; then
15814
15815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15816 }'`
15817 # Check for a 64-bit object if we didn't find anything.
15818 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; }
15819 }'`; fi
15820 else
15821   echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824 fi
15825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15826 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15827
15828          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15829           # Warning - without using the other run time loading flags,
15830           # -berok will link without error, but may produce a broken library.
15831           no_undefined_flag_GCJ=' ${wl}-bernotok'
15832           allow_undefined_flag_GCJ=' ${wl}-berok'
15833           # -bexpall does not export symbols beginning with underscore (_)
15834           always_export_symbols_GCJ=yes
15835           # Exported symbols can be pulled into shared objects from archives
15836           whole_archive_flag_spec_GCJ=' '
15837           archive_cmds_need_lc_GCJ=yes
15838           # This is similar to how AIX traditionally builds it's shared libraries.
15839           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'
15840         fi
15841       fi
15842       ;;
15843
15844     amigaos*)
15845       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)'
15846       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15847       hardcode_minus_L_GCJ=yes
15848       # see comment about different semantics on the GNU ld section
15849       ld_shlibs_GCJ=no
15850       ;;
15851
15852     bsdi4*)
15853       export_dynamic_flag_spec_GCJ=-rdynamic
15854       ;;
15855
15856     cygwin* | mingw* | pw32*)
15857       # When not using gcc, we currently assume that we are using
15858       # Microsoft Visual C++.
15859       # hardcode_libdir_flag_spec is actually meaningless, as there is
15860       # no search path for DLLs.
15861       hardcode_libdir_flag_spec_GCJ=' '
15862       allow_undefined_flag_GCJ=unsupported
15863       # Tell ltmain to make .lib files, not .a files.
15864       libext=lib
15865       # Tell ltmain to make .dll files, not .so files.
15866       shrext=".dll"
15867       # FIXME: Setting linknames here is a bad hack.
15868       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15869       # The linker will automatically build a .lib file if we build a DLL.
15870       old_archive_From_new_cmds_GCJ='true'
15871       # FIXME: Should let the user specify the lib program.
15872       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15873       fix_srcfile_path='`cygpath -w "$srcfile"`'
15874       enable_shared_with_static_runtimes_GCJ=yes
15875       ;;
15876
15877     darwin* | rhapsody*)
15878     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15879       archive_cmds_need_lc_GCJ=no
15880       case "$host_os" in
15881       rhapsody* | darwin1.[012])
15882         allow_undefined_flag_GCJ='-undefined suppress'
15883         ;;
15884       *) # Darwin 1.3 on
15885         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15886         ;;
15887       esac
15888       # FIXME: Relying on posixy $() will cause problems for
15889       #        cross-compilation, but unfortunately the echo tests do not
15890       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15891       #        `"' quotes if we put them in here... so don't!
15892         lt_int_apple_cc_single_mod=no
15893         output_verbose_link_cmd='echo'
15894         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15895           lt_int_apple_cc_single_mod=yes
15896         fi
15897         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15898           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15899         else
15900         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'
15901       fi
15902       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15903       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15904         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15905           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}'
15906         else
15907           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}'
15908         fi
15909           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}'
15910       hardcode_direct_GCJ=no
15911       hardcode_automatic_GCJ=yes
15912       hardcode_shlibpath_var_GCJ=unsupported
15913       whole_archive_flag_spec_GCJ='-all_load $convenience'
15914       link_all_deplibs_GCJ=yes
15915     fi
15916       ;;
15917
15918     dgux*)
15919       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15920       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15921       hardcode_shlibpath_var_GCJ=no
15922       ;;
15923
15924     freebsd1*)
15925       ld_shlibs_GCJ=no
15926       ;;
15927
15928     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15929     # support.  Future versions do this automatically, but an explicit c++rt0.o
15930     # does not break anything, and helps significantly (at the cost of a little
15931     # extra space).
15932     freebsd2.2*)
15933       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15934       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15935       hardcode_direct_GCJ=yes
15936       hardcode_shlibpath_var_GCJ=no
15937       ;;
15938
15939     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15940     freebsd2*)
15941       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15942       hardcode_direct_GCJ=yes
15943       hardcode_minus_L_GCJ=yes
15944       hardcode_shlibpath_var_GCJ=no
15945       ;;
15946
15947     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15948     freebsd*)
15949       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15950       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15951       hardcode_direct_GCJ=yes
15952       hardcode_shlibpath_var_GCJ=no
15953       ;;
15954
15955     hpux9*)
15956       if test "$GCC" = yes; then
15957         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'
15958       else
15959         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'
15960       fi
15961       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15962       hardcode_libdir_separator_GCJ=:
15963       hardcode_direct_GCJ=yes
15964
15965       # hardcode_minus_L: Not really in the search PATH,
15966       # but as the default location of the library.
15967       hardcode_minus_L_GCJ=yes
15968       export_dynamic_flag_spec_GCJ='${wl}-E'
15969       ;;
15970
15971     hpux10* | hpux11*)
15972       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15973         case "$host_cpu" in
15974         hppa*64*|ia64*)
15975           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15976           ;;
15977         *)
15978           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15979           ;;
15980         esac
15981       else
15982         case "$host_cpu" in
15983         hppa*64*|ia64*)
15984           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15985           ;;
15986         *)
15987           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15988           ;;
15989         esac
15990       fi
15991       if test "$with_gnu_ld" = no; then
15992         case "$host_cpu" in
15993         hppa*64*)
15994           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15995           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15996           hardcode_libdir_separator_GCJ=:
15997           hardcode_direct_GCJ=no
15998           hardcode_shlibpath_var_GCJ=no
15999           ;;
16000         ia64*)
16001           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16002           hardcode_direct_GCJ=no
16003           hardcode_shlibpath_var_GCJ=no
16004
16005           # hardcode_minus_L: Not really in the search PATH,
16006           # but as the default location of the library.
16007           hardcode_minus_L_GCJ=yes
16008           ;;
16009         *)
16010           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16011           hardcode_libdir_separator_GCJ=:
16012           hardcode_direct_GCJ=yes
16013           export_dynamic_flag_spec_GCJ='${wl}-E'
16014
16015           # hardcode_minus_L: Not really in the search PATH,
16016           # but as the default location of the library.
16017           hardcode_minus_L_GCJ=yes
16018           ;;
16019         esac
16020       fi
16021       ;;
16022
16023     irix5* | irix6* | nonstopux*)
16024       if test "$GCC" = yes; then
16025         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'
16026       else
16027         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'
16028         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16029       fi
16030       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16031       hardcode_libdir_separator_GCJ=:
16032       link_all_deplibs_GCJ=yes
16033       ;;
16034
16035     netbsd*)
16036       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16037         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16038       else
16039         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16040       fi
16041       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16042       hardcode_direct_GCJ=yes
16043       hardcode_shlibpath_var_GCJ=no
16044       ;;
16045
16046     newsos6)
16047       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16048       hardcode_direct_GCJ=yes
16049       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16050       hardcode_libdir_separator_GCJ=:
16051       hardcode_shlibpath_var_GCJ=no
16052       ;;
16053
16054     openbsd*)
16055       hardcode_direct_GCJ=yes
16056       hardcode_shlibpath_var_GCJ=no
16057       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16058         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16059         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16060         export_dynamic_flag_spec_GCJ='${wl}-E'
16061       else
16062        case $host_os in
16063          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16064            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16065            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16066            ;;
16067          *)
16068            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16069            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16070            ;;
16071        esac
16072       fi
16073       ;;
16074
16075     os2*)
16076       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16077       hardcode_minus_L_GCJ=yes
16078       allow_undefined_flag_GCJ=unsupported
16079       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'
16080       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16081       ;;
16082
16083     osf3*)
16084       if test "$GCC" = yes; then
16085         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16086         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'
16087       else
16088         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16089         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'
16090       fi
16091       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16092       hardcode_libdir_separator_GCJ=:
16093       ;;
16094
16095     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16096       if test "$GCC" = yes; then
16097         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16098         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'
16099         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16100       else
16101         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16102         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'
16103         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~
16104         $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'
16105
16106         # Both c and cxx compiler support -rpath directly
16107         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16108       fi
16109       hardcode_libdir_separator_GCJ=:
16110       ;;
16111
16112     sco3.2v5*)
16113       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114       hardcode_shlibpath_var_GCJ=no
16115       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16116       runpath_var=LD_RUN_PATH
16117       hardcode_runpath_var=yes
16118       ;;
16119
16120     solaris*)
16121       no_undefined_flag_GCJ=' -z text'
16122       if test "$GCC" = yes; then
16123         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16124         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16125           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16126       else
16127         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16129         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16130       fi
16131       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16132       hardcode_shlibpath_var_GCJ=no
16133       case $host_os in
16134       solaris2.[0-5] | solaris2.[0-5].*) ;;
16135       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16136         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16137       esac
16138       link_all_deplibs_GCJ=yes
16139       ;;
16140
16141     sunos4*)
16142       if test "x$host_vendor" = xsequent; then
16143         # Use $CC to link under sequent, because it throws in some extra .o
16144         # files that make .init and .fini sections work.
16145         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16146       else
16147         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16148       fi
16149       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16150       hardcode_direct_GCJ=yes
16151       hardcode_minus_L_GCJ=yes
16152       hardcode_shlibpath_var_GCJ=no
16153       ;;
16154
16155     sysv4)
16156       case $host_vendor in
16157         sni)
16158           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16159           hardcode_direct_GCJ=yes # is this really true???
16160         ;;
16161         siemens)
16162           ## LD is ld it makes a PLAMLIB
16163           ## CC just makes a GrossModule.
16164           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16165           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16166           hardcode_direct_GCJ=no
16167         ;;
16168         motorola)
16169           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16171         ;;
16172       esac
16173       runpath_var='LD_RUN_PATH'
16174       hardcode_shlibpath_var_GCJ=no
16175       ;;
16176
16177     sysv4.3*)
16178       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16179       hardcode_shlibpath_var_GCJ=no
16180       export_dynamic_flag_spec_GCJ='-Bexport'
16181       ;;
16182
16183     sysv4*MP*)
16184       if test -d /usr/nec; then
16185         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186         hardcode_shlibpath_var_GCJ=no
16187         runpath_var=LD_RUN_PATH
16188         hardcode_runpath_var=yes
16189         ld_shlibs_GCJ=yes
16190       fi
16191       ;;
16192
16193     sysv4.2uw2*)
16194       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16195       hardcode_direct_GCJ=yes
16196       hardcode_minus_L_GCJ=no
16197       hardcode_shlibpath_var_GCJ=no
16198       hardcode_runpath_var=yes
16199       runpath_var=LD_RUN_PATH
16200       ;;
16201
16202    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16203       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16204       if test "$GCC" = yes; then
16205         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16206       else
16207         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16208       fi
16209       runpath_var='LD_RUN_PATH'
16210       hardcode_shlibpath_var_GCJ=no
16211       ;;
16212
16213     sysv5*)
16214       no_undefined_flag_GCJ=' -z text'
16215       # $CC -shared without GNU ld will not create a library from C++
16216       # object files and a static libstdc++, better avoid it by now
16217       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16218       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16219                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16220       hardcode_libdir_flag_spec_GCJ=
16221       hardcode_shlibpath_var_GCJ=no
16222       runpath_var='LD_RUN_PATH'
16223       ;;
16224
16225     uts4*)
16226       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16227       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16228       hardcode_shlibpath_var_GCJ=no
16229       ;;
16230
16231     *)
16232       ld_shlibs_GCJ=no
16233       ;;
16234     esac
16235   fi
16236
16237 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16238 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16239 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16240
16241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16242 if test "$GCC" = yes; then
16243   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16244 fi
16245
16246 #
16247 # Do we need to explicitly link libc?
16248 #
16249 case "x$archive_cmds_need_lc_GCJ" in
16250 x|xyes)
16251   # Assume -lc should be added
16252   archive_cmds_need_lc_GCJ=yes
16253
16254   if test "$enable_shared" = yes && test "$GCC" = yes; then
16255     case $archive_cmds_GCJ in
16256     *'~'*)
16257       # FIXME: we may have to deal with multi-command sequences.
16258       ;;
16259     '$CC '*)
16260       # Test whether the compiler implicitly links with -lc since on some
16261       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16262       # to ld, don't add -lc before -lgcc.
16263       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16264 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16265       $rm conftest*
16266       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16267
16268       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16269   (eval $ac_compile) 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); } 2>conftest.err; then
16273         soname=conftest
16274         lib=conftest
16275         libobjs=conftest.$ac_objext
16276         deplibs=
16277         wl=$lt_prog_compiler_wl_GCJ
16278         compiler_flags=-v
16279         linker_flags=-v
16280         verstring=
16281         output_objdir=.
16282         libname=conftest
16283         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16284         allow_undefined_flag_GCJ=
16285         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16286   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16287   ac_status=$?
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); }
16290         then
16291           archive_cmds_need_lc_GCJ=no
16292         else
16293           archive_cmds_need_lc_GCJ=yes
16294         fi
16295         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16296       else
16297         cat conftest.err 1>&5
16298       fi
16299       $rm conftest*
16300       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16301 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16302       ;;
16303     esac
16304   fi
16305   ;;
16306 esac
16307
16308 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16309 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16310 hardcode_action_GCJ=
16311 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16312    test -n "$runpath_var GCJ" || \
16313    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16314
16315   # We can hardcode non-existant directories.
16316   if test "$hardcode_direct_GCJ" != no &&
16317      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16318      # have to relink, otherwise we might link with an installed library
16319      # when we should be linking with a yet-to-be-installed one
16320      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16321      test "$hardcode_minus_L_GCJ" != no; then
16322     # Linking always hardcodes the temporary library directory.
16323     hardcode_action_GCJ=relink
16324   else
16325     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16326     hardcode_action_GCJ=immediate
16327   fi
16328 else
16329   # We cannot hardcode anything, or else we can only hardcode existing
16330   # directories.
16331   hardcode_action_GCJ=unsupported
16332 fi
16333 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16334 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16335
16336 if test "$hardcode_action_GCJ" = relink; then
16337   # Fast installation is not supported
16338   enable_fast_install=no
16339 elif test "$shlibpath_overrides_runpath" = yes ||
16340      test "$enable_shared" = no; then
16341   # Fast installation is not necessary
16342   enable_fast_install=needless
16343 fi
16344
16345 striplib=
16346 old_striplib=
16347 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16348 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16349 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16350   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16351   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16352   echo "$as_me:$LINENO: result: yes" >&5
16353 echo "${ECHO_T}yes" >&6
16354 else
16355 # FIXME - insert some real tests, host_os isn't really good enough
16356   case $host_os in
16357    darwin*)
16358        if test -n "$STRIP" ; then
16359          striplib="$STRIP -x"
16360          echo "$as_me:$LINENO: result: yes" >&5
16361 echo "${ECHO_T}yes" >&6
16362        else
16363   echo "$as_me:$LINENO: result: no" >&5
16364 echo "${ECHO_T}no" >&6
16365 fi
16366        ;;
16367    *)
16368   echo "$as_me:$LINENO: result: no" >&5
16369 echo "${ECHO_T}no" >&6
16370     ;;
16371   esac
16372 fi
16373
16374 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16375 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16376 library_names_spec=
16377 libname_spec='lib$name'
16378 soname_spec=
16379 shrext=".so"
16380 postinstall_cmds=
16381 postuninstall_cmds=
16382 finish_cmds=
16383 finish_eval=
16384 shlibpath_var=
16385 shlibpath_overrides_runpath=unknown
16386 version_type=none
16387 dynamic_linker="$host_os ld.so"
16388 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16389 if test "$GCC" = yes; then
16390   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16391   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16392     # if the path contains ";" then we assume it to be the separator
16393     # otherwise default to the standard path separator (i.e. ":") - it is
16394     # assumed that no part of a normal pathname contains ";" but that should
16395     # okay in the real world where ";" in dirpaths is itself problematic.
16396     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16397   else
16398     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16399   fi
16400 else
16401   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16402 fi
16403 need_lib_prefix=unknown
16404 hardcode_into_libs=no
16405
16406 # when you set need_version to no, make sure it does not cause -set_version
16407 # flags to be left without arguments
16408 need_version=unknown
16409
16410 case $host_os in
16411 aix3*)
16412   version_type=linux
16413   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16414   shlibpath_var=LIBPATH
16415
16416   # AIX 3 has no versioning support, so we append a major version to the name.
16417   soname_spec='${libname}${release}${shared_ext}$major'
16418   ;;
16419
16420 aix4* | aix5*)
16421   version_type=linux
16422   need_lib_prefix=no
16423   need_version=no
16424   hardcode_into_libs=yes
16425   if test "$host_cpu" = ia64; then
16426     # AIX 5 supports IA64
16427     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16428     shlibpath_var=LD_LIBRARY_PATH
16429   else
16430     # With GCC up to 2.95.x, collect2 would create an import file
16431     # for dependence libraries.  The import file would start with
16432     # the line `#! .'.  This would cause the generated library to
16433     # depend on `.', always an invalid library.  This was fixed in
16434     # development snapshots of GCC prior to 3.0.
16435     case $host_os in
16436       aix4 | aix4.[01] | aix4.[01].*)
16437       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16438            echo ' yes '
16439            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16440         :
16441       else
16442         can_build_shared=no
16443       fi
16444       ;;
16445     esac
16446     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16447     # soname into executable. Probably we can add versioning support to
16448     # collect2, so additional links can be useful in future.
16449     if test "$aix_use_runtimelinking" = yes; then
16450       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16451       # instead of lib<name>.a to let people know that these are not
16452       # typical AIX shared libraries.
16453       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16454     else
16455       # We preserve .a as extension for shared libraries through AIX4.2
16456       # and later when we are not doing run time linking.
16457       library_names_spec='${libname}${release}.a $libname.a'
16458       soname_spec='${libname}${release}${shared_ext}$major'
16459     fi
16460     shlibpath_var=LIBPATH
16461   fi
16462   ;;
16463
16464 amigaos*)
16465   library_names_spec='$libname.ixlibrary $libname.a'
16466   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16467   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'
16468   ;;
16469
16470 beos*)
16471   library_names_spec='${libname}${shared_ext}'
16472   dynamic_linker="$host_os ld.so"
16473   shlibpath_var=LIBRARY_PATH
16474   ;;
16475
16476 bsdi4*)
16477   version_type=linux
16478   need_version=no
16479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480   soname_spec='${libname}${release}${shared_ext}$major'
16481   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16482   shlibpath_var=LD_LIBRARY_PATH
16483   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16484   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16485   # the default ld.so.conf also contains /usr/contrib/lib and
16486   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16487   # libtool to hard-code these into programs
16488   ;;
16489
16490 cygwin* | mingw* | pw32*)
16491   version_type=windows
16492   shrext=".dll"
16493   need_version=no
16494   need_lib_prefix=no
16495
16496   case $GCC,$host_os in
16497   yes,cygwin* | yes,mingw* | yes,pw32*)
16498     library_names_spec='$libname.dll.a'
16499     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16500     postinstall_cmds='base_file=`basename \${file}`~
16501       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16502       dldir=$destdir/`dirname \$dlpath`~
16503       test -d \$dldir || mkdir -p \$dldir~
16504       $install_prog $dir/$dlname \$dldir/$dlname'
16505     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16506       dlpath=$dir/\$dldll~
16507        $rm \$dlpath'
16508     shlibpath_overrides_runpath=yes
16509
16510     case $host_os in
16511     cygwin*)
16512       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16513       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16514       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16515       ;;
16516     mingw*)
16517       # MinGW DLLs use traditional 'lib' prefix
16518       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16519       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16520       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16521         # It is most probably a Windows format PATH printed by
16522         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16523         # path with ; separators, and with drive letters. We can handle the
16524         # drive letters (cygwin fileutils understands them), so leave them,
16525         # especially as we might pass files found there to a mingw objdump,
16526         # which wouldn't understand a cygwinified path. Ahh.
16527         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16528       else
16529         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16530       fi
16531       ;;
16532     pw32*)
16533       # pw32 DLLs use 'pw' prefix rather than 'lib'
16534       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16535       ;;
16536     esac
16537     ;;
16538
16539   *)
16540     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16541     ;;
16542   esac
16543   dynamic_linker='Win32 ld.exe'
16544   # FIXME: first we should search . and the directory the executable is in
16545   shlibpath_var=PATH
16546   ;;
16547
16548 darwin* | rhapsody*)
16549   dynamic_linker="$host_os dyld"
16550   version_type=darwin
16551   need_lib_prefix=no
16552   need_version=no
16553   # FIXME: Relying on posixy $() will cause problems for
16554   #        cross-compilation, but unfortunately the echo tests do not
16555   #        yet detect zsh echo's removal of \ escapes.
16556   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16557   soname_spec='${libname}${release}${major}$shared_ext'
16558   shlibpath_overrides_runpath=yes
16559   shlibpath_var=DYLD_LIBRARY_PATH
16560   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16561   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16562   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16563   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"`
16564   fi
16565   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16566   ;;
16567
16568 dgux*)
16569   version_type=linux
16570   need_lib_prefix=no
16571   need_version=no
16572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16573   soname_spec='${libname}${release}${shared_ext}$major'
16574   shlibpath_var=LD_LIBRARY_PATH
16575   ;;
16576
16577 freebsd1*)
16578   dynamic_linker=no
16579   ;;
16580
16581 freebsd*)
16582   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16583   version_type=freebsd-$objformat
16584   case $version_type in
16585     freebsd-elf*)
16586       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16587       need_version=no
16588       need_lib_prefix=no
16589       ;;
16590     freebsd-*)
16591       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16592       need_version=yes
16593       ;;
16594   esac
16595   shlibpath_var=LD_LIBRARY_PATH
16596   case $host_os in
16597   freebsd2*)
16598     shlibpath_overrides_runpath=yes
16599     ;;
16600   freebsd3.01* | freebsdelf3.01*)
16601     shlibpath_overrides_runpath=yes
16602     hardcode_into_libs=yes
16603     ;;
16604   *) # from 3.2 on
16605     shlibpath_overrides_runpath=no
16606     hardcode_into_libs=yes
16607     ;;
16608   esac
16609   ;;
16610
16611 gnu*)
16612   version_type=linux
16613   need_lib_prefix=no
16614   need_version=no
16615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16616   soname_spec='${libname}${release}${shared_ext}$major'
16617   shlibpath_var=LD_LIBRARY_PATH
16618   hardcode_into_libs=yes
16619   ;;
16620
16621 hpux9* | hpux10* | hpux11*)
16622   # Give a soname corresponding to the major version so that dld.sl refuses to
16623   # link against other versions.
16624   version_type=sunos
16625   need_lib_prefix=no
16626   need_version=no
16627   case "$host_cpu" in
16628   ia64*)
16629     shrext='.so'
16630     hardcode_into_libs=yes
16631     dynamic_linker="$host_os dld.so"
16632     shlibpath_var=LD_LIBRARY_PATH
16633     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16635     soname_spec='${libname}${release}${shared_ext}$major'
16636     if test "X$HPUX_IA64_MODE" = X32; then
16637       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16638     else
16639       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16640     fi
16641     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16642     ;;
16643    hppa*64*)
16644      shrext='.sl'
16645      hardcode_into_libs=yes
16646      dynamic_linker="$host_os dld.sl"
16647      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16648      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16649      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650      soname_spec='${libname}${release}${shared_ext}$major'
16651      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16652      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16653      ;;
16654    *)
16655     shrext='.sl'
16656     dynamic_linker="$host_os dld.sl"
16657     shlibpath_var=SHLIB_PATH
16658     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660     soname_spec='${libname}${release}${shared_ext}$major'
16661     ;;
16662   esac
16663   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16664   postinstall_cmds='chmod 555 $lib'
16665   ;;
16666
16667 irix5* | irix6* | nonstopux*)
16668   case $host_os in
16669     nonstopux*) version_type=nonstopux ;;
16670     *)
16671         if test "$lt_cv_prog_gnu_ld" = yes; then
16672                 version_type=linux
16673         else
16674                 version_type=irix
16675         fi ;;
16676   esac
16677   need_lib_prefix=no
16678   need_version=no
16679   soname_spec='${libname}${release}${shared_ext}$major'
16680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16681   case $host_os in
16682   irix5* | nonstopux*)
16683     libsuff= shlibsuff=
16684     ;;
16685   *)
16686     case $LD in # libtool.m4 will add one of these switches to LD
16687     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16688       libsuff= shlibsuff= libmagic=32-bit;;
16689     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16690       libsuff=32 shlibsuff=N32 libmagic=N32;;
16691     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16692       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16693     *) libsuff= shlibsuff= libmagic=never-match;;
16694     esac
16695     ;;
16696   esac
16697   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16698   shlibpath_overrides_runpath=no
16699   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16700   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16701   hardcode_into_libs=yes
16702   ;;
16703
16704 # No shared lib support for Linux oldld, aout, or coff.
16705 linux*oldld* | linux*aout* | linux*coff*)
16706   dynamic_linker=no
16707   ;;
16708
16709 # This must be Linux ELF.
16710 linux*)
16711   version_type=linux
16712   need_lib_prefix=no
16713   need_version=no
16714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715   soname_spec='${libname}${release}${shared_ext}$major'
16716   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16717   shlibpath_var=LD_LIBRARY_PATH
16718   shlibpath_overrides_runpath=no
16719   # This implies no fast_install, which is unacceptable.
16720   # Some rework will be needed to allow for fast_install
16721   # before this can be enabled.
16722   hardcode_into_libs=yes
16723
16724   # We used to test for /lib/ld.so.1 and disable shared libraries on
16725   # powerpc, because MkLinux only supported shared libraries with the
16726   # GNU dynamic linker.  Since this was broken with cross compilers,
16727   # most powerpc-linux boxes support dynamic linking these days and
16728   # people can always --disable-shared, the test was removed, and we
16729   # assume the GNU/Linux dynamic linker is in use.
16730   dynamic_linker='GNU/Linux ld.so'
16731   ;;
16732
16733 netbsd*)
16734   version_type=sunos
16735   need_lib_prefix=no
16736   need_version=no
16737   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16739     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16740     dynamic_linker='NetBSD (a.out) ld.so'
16741   else
16742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16743     soname_spec='${libname}${release}${shared_ext}$major'
16744     dynamic_linker='NetBSD ld.elf_so'
16745   fi
16746   shlibpath_var=LD_LIBRARY_PATH
16747   shlibpath_overrides_runpath=yes
16748   hardcode_into_libs=yes
16749   ;;
16750
16751 newsos6)
16752   version_type=linux
16753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754   shlibpath_var=LD_LIBRARY_PATH
16755   shlibpath_overrides_runpath=yes
16756   ;;
16757
16758 nto-qnx)
16759   version_type=linux
16760   need_lib_prefix=no
16761   need_version=no
16762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763   soname_spec='${libname}${release}${shared_ext}$major'
16764   shlibpath_var=LD_LIBRARY_PATH
16765   shlibpath_overrides_runpath=yes
16766   ;;
16767
16768 openbsd*)
16769   version_type=sunos
16770   need_lib_prefix=no
16771   need_version=no
16772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16773   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16774   shlibpath_var=LD_LIBRARY_PATH
16775   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16776     case $host_os in
16777       openbsd2.[89] | openbsd2.[89].*)
16778         shlibpath_overrides_runpath=no
16779         ;;
16780       *)
16781         shlibpath_overrides_runpath=yes
16782         ;;
16783       esac
16784   else
16785     shlibpath_overrides_runpath=yes
16786   fi
16787   ;;
16788
16789 os2*)
16790   libname_spec='$name'
16791   shrext=".dll"
16792   need_lib_prefix=no
16793   library_names_spec='$libname${shared_ext} $libname.a'
16794   dynamic_linker='OS/2 ld.exe'
16795   shlibpath_var=LIBPATH
16796   ;;
16797
16798 osf3* | osf4* | osf5*)
16799   version_type=osf
16800   need_lib_prefix=no
16801   need_version=no
16802   soname_spec='${libname}${release}${shared_ext}$major'
16803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804   shlibpath_var=LD_LIBRARY_PATH
16805   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16806   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16807   ;;
16808
16809 sco3.2v5*)
16810   version_type=osf
16811   soname_spec='${libname}${release}${shared_ext}$major'
16812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813   shlibpath_var=LD_LIBRARY_PATH
16814   ;;
16815
16816 solaris*)
16817   version_type=linux
16818   need_lib_prefix=no
16819   need_version=no
16820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821   soname_spec='${libname}${release}${shared_ext}$major'
16822   shlibpath_var=LD_LIBRARY_PATH
16823   shlibpath_overrides_runpath=yes
16824   hardcode_into_libs=yes
16825   # ldd complains unless libraries are executable
16826   postinstall_cmds='chmod +x $lib'
16827   ;;
16828
16829 sunos4*)
16830   version_type=sunos
16831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16832   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16833   shlibpath_var=LD_LIBRARY_PATH
16834   shlibpath_overrides_runpath=yes
16835   if test "$with_gnu_ld" = yes; then
16836     need_lib_prefix=no
16837   fi
16838   need_version=yes
16839   ;;
16840
16841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16842   version_type=linux
16843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844   soname_spec='${libname}${release}${shared_ext}$major'
16845   shlibpath_var=LD_LIBRARY_PATH
16846   case $host_vendor in
16847     sni)
16848       shlibpath_overrides_runpath=no
16849       need_lib_prefix=no
16850       export_dynamic_flag_spec='${wl}-Blargedynsym'
16851       runpath_var=LD_RUN_PATH
16852       ;;
16853     siemens)
16854       need_lib_prefix=no
16855       ;;
16856     motorola)
16857       need_lib_prefix=no
16858       need_version=no
16859       shlibpath_overrides_runpath=no
16860       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16861       ;;
16862   esac
16863   ;;
16864
16865 sysv4*MP*)
16866   if test -d /usr/nec ;then
16867     version_type=linux
16868     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16869     soname_spec='$libname${shared_ext}.$major'
16870     shlibpath_var=LD_LIBRARY_PATH
16871   fi
16872   ;;
16873
16874 uts4*)
16875   version_type=linux
16876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877   soname_spec='${libname}${release}${shared_ext}$major'
16878   shlibpath_var=LD_LIBRARY_PATH
16879   ;;
16880
16881 *)
16882   dynamic_linker=no
16883   ;;
16884 esac
16885 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16886 echo "${ECHO_T}$dynamic_linker" >&6
16887 test "$dynamic_linker" = no && can_build_shared=no
16888
16889 if test "x$enable_dlopen" != xyes; then
16890   enable_dlopen=unknown
16891   enable_dlopen_self=unknown
16892   enable_dlopen_self_static=unknown
16893 else
16894   lt_cv_dlopen=no
16895   lt_cv_dlopen_libs=
16896
16897   case $host_os in
16898   beos*)
16899     lt_cv_dlopen="load_add_on"
16900     lt_cv_dlopen_libs=
16901     lt_cv_dlopen_self=yes
16902     ;;
16903
16904   mingw* | pw32*)
16905     lt_cv_dlopen="LoadLibrary"
16906     lt_cv_dlopen_libs=
16907    ;;
16908
16909   cygwin*)
16910     lt_cv_dlopen="dlopen"
16911     lt_cv_dlopen_libs=
16912    ;;
16913
16914   darwin*)
16915   # if libdl is installed we need to link against it
16916     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16917 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16918 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16919   echo $ECHO_N "(cached) $ECHO_C" >&6
16920 else
16921   ac_check_lib_save_LIBS=$LIBS
16922 LIBS="-ldl  $LIBS"
16923 cat >conftest.$ac_ext <<_ACEOF
16924 #line $LINENO "configure"
16925 /* confdefs.h.  */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h.  */
16930
16931 /* Override any gcc2 internal prototype to avoid an error.  */
16932 #ifdef __cplusplus
16933 extern "C"
16934 #endif
16935 /* We use char because int might match the return type of a gcc2
16936    builtin and then its argument prototype would still apply.  */
16937 char dlopen ();
16938 int
16939 main ()
16940 {
16941 dlopen ();
16942   ;
16943   return 0;
16944 }
16945 _ACEOF
16946 rm -f conftest.$ac_objext conftest$ac_exeext
16947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16948   (eval $ac_link) 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); } &&
16952          { ac_try='test -s conftest$ac_exeext'
16953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954   (eval $ac_try) 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); }; }; then
16958   ac_cv_lib_dl_dlopen=yes
16959 else
16960   echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16962
16963 ac_cv_lib_dl_dlopen=no
16964 fi
16965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16966 LIBS=$ac_check_lib_save_LIBS
16967 fi
16968 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16970 if test $ac_cv_lib_dl_dlopen = yes; then
16971   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16972 else
16973
16974     lt_cv_dlopen="dyld"
16975     lt_cv_dlopen_libs=
16976     lt_cv_dlopen_self=yes
16977
16978 fi
16979
16980    ;;
16981
16982   *)
16983     echo "$as_me:$LINENO: checking for shl_load" >&5
16984 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16985 if test "${ac_cv_func_shl_load+set}" = set; then
16986   echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988   cat >conftest.$ac_ext <<_ACEOF
16989 #line $LINENO "configure"
16990 /* confdefs.h.  */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h.  */
16995 /* System header to define __stub macros and hopefully few prototypes,
16996     which can conflict with char shl_load (); below.
16997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16998     <limits.h> exists even on freestanding compilers.  */
16999 #ifdef __STDC__
17000 # include <limits.h>
17001 #else
17002 # include <assert.h>
17003 #endif
17004 /* Override any gcc2 internal prototype to avoid an error.  */
17005 #ifdef __cplusplus
17006 extern "C"
17007 {
17008 #endif
17009 /* We use char because int might match the return type of a gcc2
17010    builtin and then its argument prototype would still apply.  */
17011 char shl_load ();
17012 /* The GNU C library defines this for functions which it implements
17013     to always fail with ENOSYS.  Some functions are actually named
17014     something starting with __ and the normal name is an alias.  */
17015 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17016 choke me
17017 #else
17018 char (*f) () = shl_load;
17019 #endif
17020 #ifdef __cplusplus
17021 }
17022 #endif
17023
17024 int
17025 main ()
17026 {
17027 return f != shl_load;
17028   ;
17029   return 0;
17030 }
17031 _ACEOF
17032 rm -f conftest.$ac_objext conftest$ac_exeext
17033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17034   (eval $ac_link) 2>&5
17035   ac_status=$?
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); } &&
17038          { ac_try='test -s conftest$ac_exeext'
17039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040   (eval $ac_try) 2>&5
17041   ac_status=$?
17042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043   (exit $ac_status); }; }; then
17044   ac_cv_func_shl_load=yes
17045 else
17046   echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17048
17049 ac_cv_func_shl_load=no
17050 fi
17051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17052 fi
17053 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17054 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17055 if test $ac_cv_func_shl_load = yes; then
17056   lt_cv_dlopen="shl_load"
17057 else
17058   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17059 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17060 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17061   echo $ECHO_N "(cached) $ECHO_C" >&6
17062 else
17063   ac_check_lib_save_LIBS=$LIBS
17064 LIBS="-ldld  $LIBS"
17065 cat >conftest.$ac_ext <<_ACEOF
17066 #line $LINENO "configure"
17067 /* confdefs.h.  */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h.  */
17072
17073 /* Override any gcc2 internal prototype to avoid an error.  */
17074 #ifdef __cplusplus
17075 extern "C"
17076 #endif
17077 /* We use char because int might match the return type of a gcc2
17078    builtin and then its argument prototype would still apply.  */
17079 char shl_load ();
17080 int
17081 main ()
17082 {
17083 shl_load ();
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17090   (eval $ac_link) 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); } &&
17094          { ac_try='test -s conftest$ac_exeext'
17095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096   (eval $ac_try) 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; }; then
17100   ac_cv_lib_dld_shl_load=yes
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105 ac_cv_lib_dld_shl_load=no
17106 fi
17107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17108 LIBS=$ac_check_lib_save_LIBS
17109 fi
17110 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17111 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17112 if test $ac_cv_lib_dld_shl_load = yes; then
17113   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17114 else
17115   echo "$as_me:$LINENO: checking for dlopen" >&5
17116 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17117 if test "${ac_cv_func_dlopen+set}" = set; then
17118   echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120   cat >conftest.$ac_ext <<_ACEOF
17121 #line $LINENO "configure"
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127 /* System header to define __stub macros and hopefully few prototypes,
17128     which can conflict with char dlopen (); below.
17129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17130     <limits.h> exists even on freestanding compilers.  */
17131 #ifdef __STDC__
17132 # include <limits.h>
17133 #else
17134 # include <assert.h>
17135 #endif
17136 /* Override any gcc2 internal prototype to avoid an error.  */
17137 #ifdef __cplusplus
17138 extern "C"
17139 {
17140 #endif
17141 /* We use char because int might match the return type of a gcc2
17142    builtin and then its argument prototype would still apply.  */
17143 char dlopen ();
17144 /* The GNU C library defines this for functions which it implements
17145     to always fail with ENOSYS.  Some functions are actually named
17146     something starting with __ and the normal name is an alias.  */
17147 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17148 choke me
17149 #else
17150 char (*f) () = dlopen;
17151 #endif
17152 #ifdef __cplusplus
17153 }
17154 #endif
17155
17156 int
17157 main ()
17158 {
17159 return f != dlopen;
17160   ;
17161   return 0;
17162 }
17163 _ACEOF
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17166   (eval $ac_link) 2>&5
17167   ac_status=$?
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); } &&
17170          { ac_try='test -s conftest$ac_exeext'
17171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172   (eval $ac_try) 2>&5
17173   ac_status=$?
17174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175   (exit $ac_status); }; }; then
17176   ac_cv_func_dlopen=yes
17177 else
17178   echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17180
17181 ac_cv_func_dlopen=no
17182 fi
17183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17184 fi
17185 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17186 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17187 if test $ac_cv_func_dlopen = yes; then
17188   lt_cv_dlopen="dlopen"
17189 else
17190   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17191 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17192 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17193   echo $ECHO_N "(cached) $ECHO_C" >&6
17194 else
17195   ac_check_lib_save_LIBS=$LIBS
17196 LIBS="-ldl  $LIBS"
17197 cat >conftest.$ac_ext <<_ACEOF
17198 #line $LINENO "configure"
17199 /* confdefs.h.  */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h.  */
17204
17205 /* Override any gcc2 internal prototype to avoid an error.  */
17206 #ifdef __cplusplus
17207 extern "C"
17208 #endif
17209 /* We use char because int might match the return type of a gcc2
17210    builtin and then its argument prototype would still apply.  */
17211 char dlopen ();
17212 int
17213 main ()
17214 {
17215 dlopen ();
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222   (eval $ac_link) 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); } &&
17226          { ac_try='test -s conftest$ac_exeext'
17227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228   (eval $ac_try) 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; }; then
17232   ac_cv_lib_dl_dlopen=yes
17233 else
17234   echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17236
17237 ac_cv_lib_dl_dlopen=no
17238 fi
17239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17240 LIBS=$ac_check_lib_save_LIBS
17241 fi
17242 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17243 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17244 if test $ac_cv_lib_dl_dlopen = yes; then
17245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17246 else
17247   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17248 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17249 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17250   echo $ECHO_N "(cached) $ECHO_C" >&6
17251 else
17252   ac_check_lib_save_LIBS=$LIBS
17253 LIBS="-lsvld  $LIBS"
17254 cat >conftest.$ac_ext <<_ACEOF
17255 #line $LINENO "configure"
17256 /* confdefs.h.  */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h.  */
17261
17262 /* Override any gcc2 internal prototype to avoid an error.  */
17263 #ifdef __cplusplus
17264 extern "C"
17265 #endif
17266 /* We use char because int might match the return type of a gcc2
17267    builtin and then its argument prototype would still apply.  */
17268 char dlopen ();
17269 int
17270 main ()
17271 {
17272 dlopen ();
17273   ;
17274   return 0;
17275 }
17276 _ACEOF
17277 rm -f conftest.$ac_objext conftest$ac_exeext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279   (eval $ac_link) 2>&5
17280   ac_status=$?
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); } &&
17283          { ac_try='test -s conftest$ac_exeext'
17284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285   (eval $ac_try) 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; }; then
17289   ac_cv_lib_svld_dlopen=yes
17290 else
17291   echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294 ac_cv_lib_svld_dlopen=no
17295 fi
17296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17297 LIBS=$ac_check_lib_save_LIBS
17298 fi
17299 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17300 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17301 if test $ac_cv_lib_svld_dlopen = yes; then
17302   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17303 else
17304   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17305 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17306 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17307   echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309   ac_check_lib_save_LIBS=$LIBS
17310 LIBS="-ldld  $LIBS"
17311 cat >conftest.$ac_ext <<_ACEOF
17312 #line $LINENO "configure"
17313 /* confdefs.h.  */
17314 _ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h.  */
17318
17319 /* Override any gcc2 internal prototype to avoid an error.  */
17320 #ifdef __cplusplus
17321 extern "C"
17322 #endif
17323 /* We use char because int might match the return type of a gcc2
17324    builtin and then its argument prototype would still apply.  */
17325 char dld_link ();
17326 int
17327 main ()
17328 {
17329 dld_link ();
17330   ;
17331   return 0;
17332 }
17333 _ACEOF
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17336   (eval $ac_link) 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); } &&
17340          { ac_try='test -s conftest$ac_exeext'
17341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342   (eval $ac_try) 2>&5
17343   ac_status=$?
17344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345   (exit $ac_status); }; }; then
17346   ac_cv_lib_dld_dld_link=yes
17347 else
17348   echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351 ac_cv_lib_dld_dld_link=no
17352 fi
17353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17354 LIBS=$ac_check_lib_save_LIBS
17355 fi
17356 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17357 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17358 if test $ac_cv_lib_dld_dld_link = yes; then
17359   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17360 fi
17361
17362
17363 fi
17364
17365
17366 fi
17367
17368
17369 fi
17370
17371
17372 fi
17373
17374
17375 fi
17376
17377     ;;
17378   esac
17379
17380   if test "x$lt_cv_dlopen" != xno; then
17381     enable_dlopen=yes
17382   else
17383     enable_dlopen=no
17384   fi
17385
17386   case $lt_cv_dlopen in
17387   dlopen)
17388     save_CPPFLAGS="$CPPFLAGS"
17389     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17390
17391     save_LDFLAGS="$LDFLAGS"
17392     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17393
17394     save_LIBS="$LIBS"
17395     LIBS="$lt_cv_dlopen_libs $LIBS"
17396
17397     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17398 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17399 if test "${lt_cv_dlopen_self+set}" = set; then
17400   echo $ECHO_N "(cached) $ECHO_C" >&6
17401 else
17402           if test "$cross_compiling" = yes; then :
17403   lt_cv_dlopen_self=cross
17404 else
17405   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17406   lt_status=$lt_dlunknown
17407   cat > conftest.$ac_ext <<EOF
17408 #line 17408 "configure"
17409 #include "confdefs.h"
17410
17411 #if HAVE_DLFCN_H
17412 #include <dlfcn.h>
17413 #endif
17414
17415 #include <stdio.h>
17416
17417 #ifdef RTLD_GLOBAL
17418 #  define LT_DLGLOBAL           RTLD_GLOBAL
17419 #else
17420 #  ifdef DL_GLOBAL
17421 #    define LT_DLGLOBAL         DL_GLOBAL
17422 #  else
17423 #    define LT_DLGLOBAL         0
17424 #  endif
17425 #endif
17426
17427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17428    find out it does not work in some platform. */
17429 #ifndef LT_DLLAZY_OR_NOW
17430 #  ifdef RTLD_LAZY
17431 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17432 #  else
17433 #    ifdef DL_LAZY
17434 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17435 #    else
17436 #      ifdef RTLD_NOW
17437 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17438 #      else
17439 #        ifdef DL_NOW
17440 #          define LT_DLLAZY_OR_NOW      DL_NOW
17441 #        else
17442 #          define LT_DLLAZY_OR_NOW      0
17443 #        endif
17444 #      endif
17445 #    endif
17446 #  endif
17447 #endif
17448
17449 #ifdef __cplusplus
17450 extern "C" void exit (int);
17451 #endif
17452
17453 void fnord() { int i=42;}
17454 int main ()
17455 {
17456   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17457   int status = $lt_dlunknown;
17458
17459   if (self)
17460     {
17461       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17462       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17463       /* dlclose (self); */
17464     }
17465
17466     exit (status);
17467 }
17468 EOF
17469   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470   (eval $ac_link) 2>&5
17471   ac_status=$?
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17474     (./conftest; exit; ) 2>/dev/null
17475     lt_status=$?
17476     case x$lt_status in
17477       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17478       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17479       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17480     esac
17481   else :
17482     # compilation failed
17483     lt_cv_dlopen_self=no
17484   fi
17485 fi
17486 rm -fr conftest*
17487
17488
17489 fi
17490 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17491 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17492
17493     if test "x$lt_cv_dlopen_self" = xyes; then
17494       LDFLAGS="$LDFLAGS $link_static_flag"
17495       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17496 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17497 if test "${lt_cv_dlopen_self_static+set}" = set; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500           if test "$cross_compiling" = yes; then :
17501   lt_cv_dlopen_self_static=cross
17502 else
17503   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17504   lt_status=$lt_dlunknown
17505   cat > conftest.$ac_ext <<EOF
17506 #line 17506 "configure"
17507 #include "confdefs.h"
17508
17509 #if HAVE_DLFCN_H
17510 #include <dlfcn.h>
17511 #endif
17512
17513 #include <stdio.h>
17514
17515 #ifdef RTLD_GLOBAL
17516 #  define LT_DLGLOBAL           RTLD_GLOBAL
17517 #else
17518 #  ifdef DL_GLOBAL
17519 #    define LT_DLGLOBAL         DL_GLOBAL
17520 #  else
17521 #    define LT_DLGLOBAL         0
17522 #  endif
17523 #endif
17524
17525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17526    find out it does not work in some platform. */
17527 #ifndef LT_DLLAZY_OR_NOW
17528 #  ifdef RTLD_LAZY
17529 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17530 #  else
17531 #    ifdef DL_LAZY
17532 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17533 #    else
17534 #      ifdef RTLD_NOW
17535 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17536 #      else
17537 #        ifdef DL_NOW
17538 #          define LT_DLLAZY_OR_NOW      DL_NOW
17539 #        else
17540 #          define LT_DLLAZY_OR_NOW      0
17541 #        endif
17542 #      endif
17543 #    endif
17544 #  endif
17545 #endif
17546
17547 #ifdef __cplusplus
17548 extern "C" void exit (int);
17549 #endif
17550
17551 void fnord() { int i=42;}
17552 int main ()
17553 {
17554   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17555   int status = $lt_dlunknown;
17556
17557   if (self)
17558     {
17559       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17560       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17561       /* dlclose (self); */
17562     }
17563
17564     exit (status);
17565 }
17566 EOF
17567   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568   (eval $ac_link) 2>&5
17569   ac_status=$?
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17572     (./conftest; exit; ) 2>/dev/null
17573     lt_status=$?
17574     case x$lt_status in
17575       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17576       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17577       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17578     esac
17579   else :
17580     # compilation failed
17581     lt_cv_dlopen_self_static=no
17582   fi
17583 fi
17584 rm -fr conftest*
17585
17586
17587 fi
17588 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17589 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17590     fi
17591
17592     CPPFLAGS="$save_CPPFLAGS"
17593     LDFLAGS="$save_LDFLAGS"
17594     LIBS="$save_LIBS"
17595     ;;
17596   esac
17597
17598   case $lt_cv_dlopen_self in
17599   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17600   *) enable_dlopen_self=unknown ;;
17601   esac
17602
17603   case $lt_cv_dlopen_self_static in
17604   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17605   *) enable_dlopen_self_static=unknown ;;
17606   esac
17607 fi
17608
17609
17610 # The else clause should only fire when bootstrapping the
17611 # libtool distribution, otherwise you forgot to ship ltmain.sh
17612 # with your package, and you will get complaints that there are
17613 # no rules to generate ltmain.sh.
17614 if test -f "$ltmain"; then
17615   # See if we are running on zsh, and set the options which allow our commands through
17616   # without removal of \ escapes.
17617   if test -n "${ZSH_VERSION+set}" ; then
17618     setopt NO_GLOB_SUBST
17619   fi
17620   # Now quote all the things that may contain metacharacters while being
17621   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17622   # variables and quote the copies for generation of the libtool script.
17623   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17624     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17625     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17626     deplibs_check_method reload_flag reload_cmds need_locks \
17627     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17628     lt_cv_sys_global_symbol_to_c_name_address \
17629     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17630     old_postinstall_cmds old_postuninstall_cmds \
17631     compiler_GCJ \
17632     CC_GCJ \
17633     LD_GCJ \
17634     lt_prog_compiler_wl_GCJ \
17635     lt_prog_compiler_pic_GCJ \
17636     lt_prog_compiler_static_GCJ \
17637     lt_prog_compiler_no_builtin_flag_GCJ \
17638     export_dynamic_flag_spec_GCJ \
17639     thread_safe_flag_spec_GCJ \
17640     whole_archive_flag_spec_GCJ \
17641     enable_shared_with_static_runtimes_GCJ \
17642     old_archive_cmds_GCJ \
17643     old_archive_from_new_cmds_GCJ \
17644     predep_objects_GCJ \
17645     postdep_objects_GCJ \
17646     predeps_GCJ \
17647     postdeps_GCJ \
17648     compiler_lib_search_path_GCJ \
17649     archive_cmds_GCJ \
17650     archive_expsym_cmds_GCJ \
17651     postinstall_cmds_GCJ \
17652     postuninstall_cmds_GCJ \
17653     old_archive_from_expsyms_cmds_GCJ \
17654     allow_undefined_flag_GCJ \
17655     no_undefined_flag_GCJ \
17656     export_symbols_cmds_GCJ \
17657     hardcode_libdir_flag_spec_GCJ \
17658     hardcode_libdir_flag_spec_ld_GCJ \
17659     hardcode_libdir_separator_GCJ \
17660     hardcode_automatic_GCJ \
17661     module_cmds_GCJ \
17662     module_expsym_cmds_GCJ \
17663     lt_cv_prog_compiler_c_o_GCJ \
17664     exclude_expsyms_GCJ \
17665     include_expsyms_GCJ; do
17666
17667     case $var in
17668     old_archive_cmds_GCJ | \
17669     old_archive_from_new_cmds_GCJ | \
17670     archive_cmds_GCJ | \
17671     archive_expsym_cmds_GCJ | \
17672     module_cmds_GCJ | \
17673     module_expsym_cmds_GCJ | \
17674     old_archive_from_expsyms_cmds_GCJ | \
17675     export_symbols_cmds_GCJ | \
17676     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17677     postinstall_cmds | postuninstall_cmds | \
17678     old_postinstall_cmds | old_postuninstall_cmds | \
17679     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17680       # Double-quote double-evaled strings.
17681       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17682       ;;
17683     *)
17684       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17685       ;;
17686     esac
17687   done
17688
17689   case $lt_echo in
17690   *'\$0 --fallback-echo"')
17691     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17692     ;;
17693   esac
17694
17695 cfgfile="$ofile"
17696
17697   cat <<__EOF__ >> "$cfgfile"
17698 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17699
17700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17701
17702 # Shell to use when invoking shell scripts.
17703 SHELL=$lt_SHELL
17704
17705 # Whether or not to build shared libraries.
17706 build_libtool_libs=$enable_shared
17707
17708 # Whether or not to build static libraries.
17709 build_old_libs=$enable_static
17710
17711 # Whether or not to add -lc for building shared libraries.
17712 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17713
17714 # Whether or not to disallow shared libs when runtime libs are static
17715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17716
17717 # Whether or not to optimize for fast installation.
17718 fast_install=$enable_fast_install
17719
17720 # The host system.
17721 host_alias=$host_alias
17722 host=$host
17723
17724 # An echo program that does not interpret backslashes.
17725 echo=$lt_echo
17726
17727 # The archiver.
17728 AR=$lt_AR
17729 AR_FLAGS=$lt_AR_FLAGS
17730
17731 # A C compiler.
17732 LTCC=$lt_LTCC
17733
17734 # A language-specific compiler.
17735 CC=$lt_compiler_GCJ
17736
17737 # Is the compiler the GNU C compiler?
17738 with_gcc=$GCC_GCJ
17739
17740 # An ERE matcher.
17741 EGREP=$lt_EGREP
17742
17743 # The linker used to build libraries.
17744 LD=$lt_LD_GCJ
17745
17746 # Whether we need hard or soft links.
17747 LN_S=$lt_LN_S
17748
17749 # A BSD-compatible nm program.
17750 NM=$lt_NM
17751
17752 # A symbol stripping program
17753 STRIP=$STRIP
17754
17755 # Used to examine libraries when file_magic_cmd begins "file"
17756 MAGIC_CMD=$MAGIC_CMD
17757
17758 # Used on cygwin: DLL creation program.
17759 DLLTOOL="$DLLTOOL"
17760
17761 # Used on cygwin: object dumper.
17762 OBJDUMP="$OBJDUMP"
17763
17764 # Used on cygwin: assembler.
17765 AS="$AS"
17766
17767 # The name of the directory that contains temporary libtool files.
17768 objdir=$objdir
17769
17770 # How to create reloadable object files.
17771 reload_flag=$lt_reload_flag
17772 reload_cmds=$lt_reload_cmds
17773
17774 # How to pass a linker flag through the compiler.
17775 wl=$lt_lt_prog_compiler_wl_GCJ
17776
17777 # Object file suffix (normally "o").
17778 objext="$ac_objext"
17779
17780 # Old archive suffix (normally "a").
17781 libext="$libext"
17782
17783 # Shared library suffix (normally ".so").
17784 shrext='$shrext'
17785
17786 # Executable file suffix (normally "").
17787 exeext="$exeext"
17788
17789 # Additional compiler flags for building library objects.
17790 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17791 pic_mode=$pic_mode
17792
17793 # What is the maximum length of a command?
17794 max_cmd_len=$lt_cv_sys_max_cmd_len
17795
17796 # Does compiler simultaneously support -c and -o options?
17797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17798
17799 # Must we lock files when doing compilation ?
17800 need_locks=$lt_need_locks
17801
17802 # Do we need the lib prefix for modules?
17803 need_lib_prefix=$need_lib_prefix
17804
17805 # Do we need a version for libraries?
17806 need_version=$need_version
17807
17808 # Whether dlopen is supported.
17809 dlopen_support=$enable_dlopen
17810
17811 # Whether dlopen of programs is supported.
17812 dlopen_self=$enable_dlopen_self
17813
17814 # Whether dlopen of statically linked programs is supported.
17815 dlopen_self_static=$enable_dlopen_self_static
17816
17817 # Compiler flag to prevent dynamic linking.
17818 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17819
17820 # Compiler flag to turn off builtin functions.
17821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17822
17823 # Compiler flag to allow reflexive dlopens.
17824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17825
17826 # Compiler flag to generate shared objects directly from archives.
17827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17828
17829 # Compiler flag to generate thread-safe objects.
17830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17831
17832 # Library versioning type.
17833 version_type=$version_type
17834
17835 # Format of library name prefix.
17836 libname_spec=$lt_libname_spec
17837
17838 # List of archive names.  First name is the real one, the rest are links.
17839 # The last name is the one that the linker finds with -lNAME.
17840 library_names_spec=$lt_library_names_spec
17841
17842 # The coded name of the library, if different from the real name.
17843 soname_spec=$lt_soname_spec
17844
17845 # Commands used to build and install an old-style archive.
17846 RANLIB=$lt_RANLIB
17847 old_archive_cmds=$lt_old_archive_cmds_GCJ
17848 old_postinstall_cmds=$lt_old_postinstall_cmds
17849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17850
17851 # Create an old-style archive from a shared archive.
17852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17853
17854 # Create a temporary old-style archive to link instead of a shared archive.
17855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17856
17857 # Commands used to build and install a shared archive.
17858 archive_cmds=$lt_archive_cmds_GCJ
17859 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17860 postinstall_cmds=$lt_postinstall_cmds
17861 postuninstall_cmds=$lt_postuninstall_cmds
17862
17863 # Commands used to build a loadable module (assumed same as above if empty)
17864 module_cmds=$lt_module_cmds_GCJ
17865 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17866
17867 # Commands to strip libraries.
17868 old_striplib=$lt_old_striplib
17869 striplib=$lt_striplib
17870
17871 # Dependencies to place before the objects being linked to create a
17872 # shared library.
17873 predep_objects=$lt_predep_objects_GCJ
17874
17875 # Dependencies to place after the objects being linked to create a
17876 # shared library.
17877 postdep_objects=$lt_postdep_objects_GCJ
17878
17879 # Dependencies to place before the objects being linked to create a
17880 # shared library.
17881 predeps=$lt_predeps_GCJ
17882
17883 # Dependencies to place after the objects being linked to create a
17884 # shared library.
17885 postdeps=$lt_postdeps_GCJ
17886
17887 # The library search path used internally by the compiler when linking
17888 # a shared library.
17889 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17890
17891 # Method to check whether dependent libraries are shared objects.
17892 deplibs_check_method=$lt_deplibs_check_method
17893
17894 # Command to use when deplibs_check_method == file_magic.
17895 file_magic_cmd=$lt_file_magic_cmd
17896
17897 # Flag that allows shared libraries with undefined symbols to be built.
17898 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17899
17900 # Flag that forces no undefined symbols.
17901 no_undefined_flag=$lt_no_undefined_flag_GCJ
17902
17903 # Commands used to finish a libtool library installation in a directory.
17904 finish_cmds=$lt_finish_cmds
17905
17906 # Same as above, but a single script fragment to be evaled but not shown.
17907 finish_eval=$lt_finish_eval
17908
17909 # Take the output of nm and produce a listing of raw symbols and C names.
17910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17911
17912 # Transform the output of nm in a proper C declaration
17913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17914
17915 # Transform the output of nm in a C name address pair
17916 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17917
17918 # This is the shared library runtime path variable.
17919 runpath_var=$runpath_var
17920
17921 # This is the shared library path variable.
17922 shlibpath_var=$shlibpath_var
17923
17924 # Is shlibpath searched before the hard-coded library search path?
17925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17926
17927 # How to hardcode a shared library path into an executable.
17928 hardcode_action=$hardcode_action_GCJ
17929
17930 # Whether we should hardcode library paths into libraries.
17931 hardcode_into_libs=$hardcode_into_libs
17932
17933 # Flag to hardcode \$libdir into a binary during linking.
17934 # This must work even if \$libdir does not exist.
17935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17936
17937 # If ld is used when linking, flag to hardcode \$libdir into
17938 # a binary during linking. This must work even if \$libdir does
17939 # not exist.
17940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17941
17942 # Whether we need a single -rpath flag with a separated argument.
17943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17944
17945 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17946 # resulting binary.
17947 hardcode_direct=$hardcode_direct_GCJ
17948
17949 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17950 # resulting binary.
17951 hardcode_minus_L=$hardcode_minus_L_GCJ
17952
17953 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17954 # the resulting binary.
17955 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17956
17957 # Set to yes if building a shared library automatically hardcodes DIR into the library
17958 # and all subsequent libraries and executables linked against it.
17959 hardcode_automatic=$hardcode_automatic_GCJ
17960
17961 # Variables whose values should be saved in libtool wrapper scripts and
17962 # restored at relink time.
17963 variables_saved_for_relink="$variables_saved_for_relink"
17964
17965 # Whether libtool must link a program against all its dependency libraries.
17966 link_all_deplibs=$link_all_deplibs_GCJ
17967
17968 # Compile-time system search path for libraries
17969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17970
17971 # Run-time system search path for libraries
17972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17973
17974 # Fix the shell variable \$srcfile for the compiler.
17975 fix_srcfile_path="$fix_srcfile_path_GCJ"
17976
17977 # Set to yes if exported symbols are required.
17978 always_export_symbols=$always_export_symbols_GCJ
17979
17980 # The commands to list exported symbols.
17981 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17982
17983 # The commands to extract the exported symbol list from a shared archive.
17984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17985
17986 # Symbols that should not be listed in the preloaded symbols.
17987 exclude_expsyms=$lt_exclude_expsyms_GCJ
17988
17989 # Symbols that must always be exported.
17990 include_expsyms=$lt_include_expsyms_GCJ
17991
17992 # ### END LIBTOOL TAG CONFIG: $tagname
17993
17994 __EOF__
17995
17996
17997 else
17998   # If there is no Makefile yet, we rely on a make rule to execute
17999   # `config.status --recheck' to rerun these tests and create the
18000   # libtool script then.
18001   test -f Makefile && make "$ltmain"
18002 fi
18003
18004
18005 ac_ext=c
18006 ac_cpp='$CPP $CPPFLAGS'
18007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18010
18011 CC="$lt_save_CC"
18012
18013         else
18014           tagname=""
18015         fi
18016         ;;
18017
18018       RC)
18019
18020
18021
18022 # Source file extension for RC test sources.
18023 ac_ext=rc
18024
18025 # Object file extension for compiled RC test sources.
18026 objext=o
18027 objext_RC=$objext
18028
18029 # Code to be used in simple compile tests
18030 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18031
18032 # Code to be used in simple link tests
18033 lt_simple_link_test_code="$lt_simple_compile_test_code"
18034
18035 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18036
18037 # If no C compiler was specified, use CC.
18038 LTCC=${LTCC-"$CC"}
18039
18040 # Allow CC to be a program name with arguments.
18041 compiler=$CC
18042
18043
18044 # Allow CC to be a program name with arguments.
18045 lt_save_CC="$CC"
18046 CC=${RC-"windres"}
18047 compiler=$CC
18048 compiler_RC=$CC
18049 lt_cv_prog_compiler_c_o_RC=yes
18050
18051 # The else clause should only fire when bootstrapping the
18052 # libtool distribution, otherwise you forgot to ship ltmain.sh
18053 # with your package, and you will get complaints that there are
18054 # no rules to generate ltmain.sh.
18055 if test -f "$ltmain"; then
18056   # See if we are running on zsh, and set the options which allow our commands through
18057   # without removal of \ escapes.
18058   if test -n "${ZSH_VERSION+set}" ; then
18059     setopt NO_GLOB_SUBST
18060   fi
18061   # Now quote all the things that may contain metacharacters while being
18062   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18063   # variables and quote the copies for generation of the libtool script.
18064   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18065     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18066     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18067     deplibs_check_method reload_flag reload_cmds need_locks \
18068     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18069     lt_cv_sys_global_symbol_to_c_name_address \
18070     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18071     old_postinstall_cmds old_postuninstall_cmds \
18072     compiler_RC \
18073     CC_RC \
18074     LD_RC \
18075     lt_prog_compiler_wl_RC \
18076     lt_prog_compiler_pic_RC \
18077     lt_prog_compiler_static_RC \
18078     lt_prog_compiler_no_builtin_flag_RC \
18079     export_dynamic_flag_spec_RC \
18080     thread_safe_flag_spec_RC \
18081     whole_archive_flag_spec_RC \
18082     enable_shared_with_static_runtimes_RC \
18083     old_archive_cmds_RC \
18084     old_archive_from_new_cmds_RC \
18085     predep_objects_RC \
18086     postdep_objects_RC \
18087     predeps_RC \
18088     postdeps_RC \
18089     compiler_lib_search_path_RC \
18090     archive_cmds_RC \
18091     archive_expsym_cmds_RC \
18092     postinstall_cmds_RC \
18093     postuninstall_cmds_RC \
18094     old_archive_from_expsyms_cmds_RC \
18095     allow_undefined_flag_RC \
18096     no_undefined_flag_RC \
18097     export_symbols_cmds_RC \
18098     hardcode_libdir_flag_spec_RC \
18099     hardcode_libdir_flag_spec_ld_RC \
18100     hardcode_libdir_separator_RC \
18101     hardcode_automatic_RC \
18102     module_cmds_RC \
18103     module_expsym_cmds_RC \
18104     lt_cv_prog_compiler_c_o_RC \
18105     exclude_expsyms_RC \
18106     include_expsyms_RC; do
18107
18108     case $var in
18109     old_archive_cmds_RC | \
18110     old_archive_from_new_cmds_RC | \
18111     archive_cmds_RC | \
18112     archive_expsym_cmds_RC | \
18113     module_cmds_RC | \
18114     module_expsym_cmds_RC | \
18115     old_archive_from_expsyms_cmds_RC | \
18116     export_symbols_cmds_RC | \
18117     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18118     postinstall_cmds | postuninstall_cmds | \
18119     old_postinstall_cmds | old_postuninstall_cmds | \
18120     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18121       # Double-quote double-evaled strings.
18122       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18123       ;;
18124     *)
18125       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18126       ;;
18127     esac
18128   done
18129
18130   case $lt_echo in
18131   *'\$0 --fallback-echo"')
18132     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18133     ;;
18134   esac
18135
18136 cfgfile="$ofile"
18137
18138   cat <<__EOF__ >> "$cfgfile"
18139 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18140
18141 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18142
18143 # Shell to use when invoking shell scripts.
18144 SHELL=$lt_SHELL
18145
18146 # Whether or not to build shared libraries.
18147 build_libtool_libs=$enable_shared
18148
18149 # Whether or not to build static libraries.
18150 build_old_libs=$enable_static
18151
18152 # Whether or not to add -lc for building shared libraries.
18153 build_libtool_need_lc=$archive_cmds_need_lc_RC
18154
18155 # Whether or not to disallow shared libs when runtime libs are static
18156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18157
18158 # Whether or not to optimize for fast installation.
18159 fast_install=$enable_fast_install
18160
18161 # The host system.
18162 host_alias=$host_alias
18163 host=$host
18164
18165 # An echo program that does not interpret backslashes.
18166 echo=$lt_echo
18167
18168 # The archiver.
18169 AR=$lt_AR
18170 AR_FLAGS=$lt_AR_FLAGS
18171
18172 # A C compiler.
18173 LTCC=$lt_LTCC
18174
18175 # A language-specific compiler.
18176 CC=$lt_compiler_RC
18177
18178 # Is the compiler the GNU C compiler?
18179 with_gcc=$GCC_RC
18180
18181 # An ERE matcher.
18182 EGREP=$lt_EGREP
18183
18184 # The linker used to build libraries.
18185 LD=$lt_LD_RC
18186
18187 # Whether we need hard or soft links.
18188 LN_S=$lt_LN_S
18189
18190 # A BSD-compatible nm program.
18191 NM=$lt_NM
18192
18193 # A symbol stripping program
18194 STRIP=$STRIP
18195
18196 # Used to examine libraries when file_magic_cmd begins "file"
18197 MAGIC_CMD=$MAGIC_CMD
18198
18199 # Used on cygwin: DLL creation program.
18200 DLLTOOL="$DLLTOOL"
18201
18202 # Used on cygwin: object dumper.
18203 OBJDUMP="$OBJDUMP"
18204
18205 # Used on cygwin: assembler.
18206 AS="$AS"
18207
18208 # The name of the directory that contains temporary libtool files.
18209 objdir=$objdir
18210
18211 # How to create reloadable object files.
18212 reload_flag=$lt_reload_flag
18213 reload_cmds=$lt_reload_cmds
18214
18215 # How to pass a linker flag through the compiler.
18216 wl=$lt_lt_prog_compiler_wl_RC
18217
18218 # Object file suffix (normally "o").
18219 objext="$ac_objext"
18220
18221 # Old archive suffix (normally "a").
18222 libext="$libext"
18223
18224 # Shared library suffix (normally ".so").
18225 shrext='$shrext'
18226
18227 # Executable file suffix (normally "").
18228 exeext="$exeext"
18229
18230 # Additional compiler flags for building library objects.
18231 pic_flag=$lt_lt_prog_compiler_pic_RC
18232 pic_mode=$pic_mode
18233
18234 # What is the maximum length of a command?
18235 max_cmd_len=$lt_cv_sys_max_cmd_len
18236
18237 # Does compiler simultaneously support -c and -o options?
18238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18239
18240 # Must we lock files when doing compilation ?
18241 need_locks=$lt_need_locks
18242
18243 # Do we need the lib prefix for modules?
18244 need_lib_prefix=$need_lib_prefix
18245
18246 # Do we need a version for libraries?
18247 need_version=$need_version
18248
18249 # Whether dlopen is supported.
18250 dlopen_support=$enable_dlopen
18251
18252 # Whether dlopen of programs is supported.
18253 dlopen_self=$enable_dlopen_self
18254
18255 # Whether dlopen of statically linked programs is supported.
18256 dlopen_self_static=$enable_dlopen_self_static
18257
18258 # Compiler flag to prevent dynamic linking.
18259 link_static_flag=$lt_lt_prog_compiler_static_RC
18260
18261 # Compiler flag to turn off builtin functions.
18262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18263
18264 # Compiler flag to allow reflexive dlopens.
18265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18266
18267 # Compiler flag to generate shared objects directly from archives.
18268 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18269
18270 # Compiler flag to generate thread-safe objects.
18271 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18272
18273 # Library versioning type.
18274 version_type=$version_type
18275
18276 # Format of library name prefix.
18277 libname_spec=$lt_libname_spec
18278
18279 # List of archive names.  First name is the real one, the rest are links.
18280 # The last name is the one that the linker finds with -lNAME.
18281 library_names_spec=$lt_library_names_spec
18282
18283 # The coded name of the library, if different from the real name.
18284 soname_spec=$lt_soname_spec
18285
18286 # Commands used to build and install an old-style archive.
18287 RANLIB=$lt_RANLIB
18288 old_archive_cmds=$lt_old_archive_cmds_RC
18289 old_postinstall_cmds=$lt_old_postinstall_cmds
18290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18291
18292 # Create an old-style archive from a shared archive.
18293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18294
18295 # Create a temporary old-style archive to link instead of a shared archive.
18296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18297
18298 # Commands used to build and install a shared archive.
18299 archive_cmds=$lt_archive_cmds_RC
18300 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18301 postinstall_cmds=$lt_postinstall_cmds
18302 postuninstall_cmds=$lt_postuninstall_cmds
18303
18304 # Commands used to build a loadable module (assumed same as above if empty)
18305 module_cmds=$lt_module_cmds_RC
18306 module_expsym_cmds=$lt_module_expsym_cmds_RC
18307
18308 # Commands to strip libraries.
18309 old_striplib=$lt_old_striplib
18310 striplib=$lt_striplib
18311
18312 # Dependencies to place before the objects being linked to create a
18313 # shared library.
18314 predep_objects=$lt_predep_objects_RC
18315
18316 # Dependencies to place after the objects being linked to create a
18317 # shared library.
18318 postdep_objects=$lt_postdep_objects_RC
18319
18320 # Dependencies to place before the objects being linked to create a
18321 # shared library.
18322 predeps=$lt_predeps_RC
18323
18324 # Dependencies to place after the objects being linked to create a
18325 # shared library.
18326 postdeps=$lt_postdeps_RC
18327
18328 # The library search path used internally by the compiler when linking
18329 # a shared library.
18330 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18331
18332 # Method to check whether dependent libraries are shared objects.
18333 deplibs_check_method=$lt_deplibs_check_method
18334
18335 # Command to use when deplibs_check_method == file_magic.
18336 file_magic_cmd=$lt_file_magic_cmd
18337
18338 # Flag that allows shared libraries with undefined symbols to be built.
18339 allow_undefined_flag=$lt_allow_undefined_flag_RC
18340
18341 # Flag that forces no undefined symbols.
18342 no_undefined_flag=$lt_no_undefined_flag_RC
18343
18344 # Commands used to finish a libtool library installation in a directory.
18345 finish_cmds=$lt_finish_cmds
18346
18347 # Same as above, but a single script fragment to be evaled but not shown.
18348 finish_eval=$lt_finish_eval
18349
18350 # Take the output of nm and produce a listing of raw symbols and C names.
18351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18352
18353 # Transform the output of nm in a proper C declaration
18354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18355
18356 # Transform the output of nm in a C name address pair
18357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18358
18359 # This is the shared library runtime path variable.
18360 runpath_var=$runpath_var
18361
18362 # This is the shared library path variable.
18363 shlibpath_var=$shlibpath_var
18364
18365 # Is shlibpath searched before the hard-coded library search path?
18366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18367
18368 # How to hardcode a shared library path into an executable.
18369 hardcode_action=$hardcode_action_RC
18370
18371 # Whether we should hardcode library paths into libraries.
18372 hardcode_into_libs=$hardcode_into_libs
18373
18374 # Flag to hardcode \$libdir into a binary during linking.
18375 # This must work even if \$libdir does not exist.
18376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18377
18378 # If ld is used when linking, flag to hardcode \$libdir into
18379 # a binary during linking. This must work even if \$libdir does
18380 # not exist.
18381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18382
18383 # Whether we need a single -rpath flag with a separated argument.
18384 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18385
18386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18387 # resulting binary.
18388 hardcode_direct=$hardcode_direct_RC
18389
18390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18391 # resulting binary.
18392 hardcode_minus_L=$hardcode_minus_L_RC
18393
18394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18395 # the resulting binary.
18396 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18397
18398 # Set to yes if building a shared library automatically hardcodes DIR into the library
18399 # and all subsequent libraries and executables linked against it.
18400 hardcode_automatic=$hardcode_automatic_RC
18401
18402 # Variables whose values should be saved in libtool wrapper scripts and
18403 # restored at relink time.
18404 variables_saved_for_relink="$variables_saved_for_relink"
18405
18406 # Whether libtool must link a program against all its dependency libraries.
18407 link_all_deplibs=$link_all_deplibs_RC
18408
18409 # Compile-time system search path for libraries
18410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18411
18412 # Run-time system search path for libraries
18413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18414
18415 # Fix the shell variable \$srcfile for the compiler.
18416 fix_srcfile_path="$fix_srcfile_path_RC"
18417
18418 # Set to yes if exported symbols are required.
18419 always_export_symbols=$always_export_symbols_RC
18420
18421 # The commands to list exported symbols.
18422 export_symbols_cmds=$lt_export_symbols_cmds_RC
18423
18424 # The commands to extract the exported symbol list from a shared archive.
18425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18426
18427 # Symbols that should not be listed in the preloaded symbols.
18428 exclude_expsyms=$lt_exclude_expsyms_RC
18429
18430 # Symbols that must always be exported.
18431 include_expsyms=$lt_include_expsyms_RC
18432
18433 # ### END LIBTOOL TAG CONFIG: $tagname
18434
18435 __EOF__
18436
18437
18438 else
18439   # If there is no Makefile yet, we rely on a make rule to execute
18440   # `config.status --recheck' to rerun these tests and create the
18441   # libtool script then.
18442   test -f Makefile && make "$ltmain"
18443 fi
18444
18445
18446 ac_ext=c
18447 ac_cpp='$CPP $CPPFLAGS'
18448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18451
18452 CC="$lt_save_CC"
18453
18454         ;;
18455
18456       *)
18457         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18458 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18459    { (exit 1); exit 1; }; }
18460         ;;
18461       esac
18462
18463       # Append the new tag name to the list of available tags.
18464       if test -n "$tagname" ; then
18465       available_tags="$available_tags $tagname"
18466     fi
18467     fi
18468   done
18469   IFS="$lt_save_ifs"
18470
18471   # Now substitute the updated list of available tags.
18472   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18473     mv "${ofile}T" "$ofile"
18474     chmod +x "$ofile"
18475   else
18476     rm -f "${ofile}T"
18477     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18478 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18479    { (exit 1); exit 1; }; }
18480   fi
18481 fi
18482
18483
18484
18485 # This can be used to rebuild libtool when needed
18486 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18487
18488 # Always use our own libtool.
18489 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18490
18491 # Prevent multiple expansion
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513 # Extract the first word of "pwd", so it can be a program name with args.
18514 set dummy pwd; ac_word=$2
18515 echo "$as_me:$LINENO: checking for $ac_word" >&5
18516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18517 if test "${ac_cv_path_RPWD+set}" = set; then
18518   echo $ECHO_N "(cached) $ECHO_C" >&6
18519 else
18520   case $RPWD in
18521   [\\/]* | ?:[\\/]*)
18522   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18523   ;;
18524   *)
18525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526 for as_dir in $PATH
18527 do
18528   IFS=$as_save_IFS
18529   test -z "$as_dir" && as_dir=.
18530   for ac_exec_ext in '' $ac_executable_extensions; do
18531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18532     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18534     break 2
18535   fi
18536 done
18537 done
18538
18539   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18540   ;;
18541 esac
18542 fi
18543 RPWD=$ac_cv_path_RPWD
18544
18545 if test -n "$RPWD"; then
18546   echo "$as_me:$LINENO: result: $RPWD" >&5
18547 echo "${ECHO_T}$RPWD" >&6
18548 else
18549   echo "$as_me:$LINENO: result: no" >&5
18550 echo "${ECHO_T}no" >&6
18551 fi
18552
18553 if test ${RPWD} = "false"
18554 then
18555         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18556 echo "$as_me: error: pwd required but not found" >&2;}
18557    { (exit 1); exit 1; }; }
18558 fi
18559
18560 # Extract the first word of "ar", so it can be a program name with args.
18561 set dummy ar; ac_word=$2
18562 echo "$as_me:$LINENO: checking for $ac_word" >&5
18563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18564 if test "${ac_cv_path_AR+set}" = set; then
18565   echo $ECHO_N "(cached) $ECHO_C" >&6
18566 else
18567   case $AR in
18568   [\\/]* | ?:[\\/]*)
18569   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18570   ;;
18571   *)
18572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18573 for as_dir in $PATH
18574 do
18575   IFS=$as_save_IFS
18576   test -z "$as_dir" && as_dir=.
18577   for ac_exec_ext in '' $ac_executable_extensions; do
18578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18579     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18581     break 2
18582   fi
18583 done
18584 done
18585
18586   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18587   ;;
18588 esac
18589 fi
18590 AR=$ac_cv_path_AR
18591
18592 if test -n "$AR"; then
18593   echo "$as_me:$LINENO: result: $AR" >&5
18594 echo "${ECHO_T}$AR" >&6
18595 else
18596   echo "$as_me:$LINENO: result: no" >&5
18597 echo "${ECHO_T}no" >&6
18598 fi
18599
18600 if test ${AR} = "false"
18601 then
18602         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18603 echo "$as_me: error: ar required but not found" >&2;}
18604    { (exit 1); exit 1; }; }
18605 fi
18606
18607 # Extract the first word of "sed", so it can be a program name with args.
18608 set dummy sed; ac_word=$2
18609 echo "$as_me:$LINENO: checking for $ac_word" >&5
18610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18611 if test "${ac_cv_path_SED+set}" = set; then
18612   echo $ECHO_N "(cached) $ECHO_C" >&6
18613 else
18614   case $SED in
18615   [\\/]* | ?:[\\/]*)
18616   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18617   ;;
18618   *)
18619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18620 for as_dir in $PATH
18621 do
18622   IFS=$as_save_IFS
18623   test -z "$as_dir" && as_dir=.
18624   for ac_exec_ext in '' $ac_executable_extensions; do
18625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18626     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18628     break 2
18629   fi
18630 done
18631 done
18632
18633   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18634   ;;
18635 esac
18636 fi
18637 SED=$ac_cv_path_SED
18638
18639 if test -n "$SED"; then
18640   echo "$as_me:$LINENO: result: $SED" >&5
18641 echo "${ECHO_T}$SED" >&6
18642 else
18643   echo "$as_me:$LINENO: result: no" >&5
18644 echo "${ECHO_T}no" >&6
18645 fi
18646
18647 if test ${SED} = "false"
18648 then
18649         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18650 echo "$as_me: error: sed required but not found" >&2;}
18651    { (exit 1); exit 1; }; }
18652 fi
18653
18654 # Extract the first word of "rm", so it can be a program name with args.
18655 set dummy rm; ac_word=$2
18656 echo "$as_me:$LINENO: checking for $ac_word" >&5
18657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18658 if test "${ac_cv_path_RM+set}" = set; then
18659   echo $ECHO_N "(cached) $ECHO_C" >&6
18660 else
18661   case $RM in
18662   [\\/]* | ?:[\\/]*)
18663   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18664   ;;
18665   *)
18666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18667 for as_dir in $PATH
18668 do
18669   IFS=$as_save_IFS
18670   test -z "$as_dir" && as_dir=.
18671   for ac_exec_ext in '' $ac_executable_extensions; do
18672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18673     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18675     break 2
18676   fi
18677 done
18678 done
18679
18680   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18681   ;;
18682 esac
18683 fi
18684 RM=$ac_cv_path_RM
18685
18686 if test -n "$RM"; then
18687   echo "$as_me:$LINENO: result: $RM" >&5
18688 echo "${ECHO_T}$RM" >&6
18689 else
18690   echo "$as_me:$LINENO: result: no" >&5
18691 echo "${ECHO_T}no" >&6
18692 fi
18693
18694 if test ${RM} = "false"
18695 then
18696         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18697 echo "$as_me: error: rm required but not found" >&2;}
18698    { (exit 1); exit 1; }; }
18699 fi
18700
18701 # Extract the first word of "echo", so it can be a program name with args.
18702 set dummy echo; ac_word=$2
18703 echo "$as_me:$LINENO: checking for $ac_word" >&5
18704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18705 if test "${ac_cv_path_ECHO+set}" = set; then
18706   echo $ECHO_N "(cached) $ECHO_C" >&6
18707 else
18708   case $ECHO in
18709   [\\/]* | ?:[\\/]*)
18710   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18711   ;;
18712   *)
18713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18714 for as_dir in $PATH
18715 do
18716   IFS=$as_save_IFS
18717   test -z "$as_dir" && as_dir=.
18718   for ac_exec_ext in '' $ac_executable_extensions; do
18719   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18720     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18722     break 2
18723   fi
18724 done
18725 done
18726
18727   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18728   ;;
18729 esac
18730 fi
18731 ECHO=$ac_cv_path_ECHO
18732
18733 if test -n "$ECHO"; then
18734   echo "$as_me:$LINENO: result: $ECHO" >&5
18735 echo "${ECHO_T}$ECHO" >&6
18736 else
18737   echo "$as_me:$LINENO: result: no" >&5
18738 echo "${ECHO_T}no" >&6
18739 fi
18740
18741 if test ${ECHO} = "false"
18742 then
18743         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18744 echo "$as_me: error: echo required but not found" >&2;}
18745    { (exit 1); exit 1; }; }
18746 fi
18747
18748 # Extract the first word of "mkdir", so it can be a program name with args.
18749 set dummy mkdir; ac_word=$2
18750 echo "$as_me:$LINENO: checking for $ac_word" >&5
18751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18752 if test "${ac_cv_path_MKDIR+set}" = set; then
18753   echo $ECHO_N "(cached) $ECHO_C" >&6
18754 else
18755   case $MKDIR in
18756   [\\/]* | ?:[\\/]*)
18757   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18758   ;;
18759   *)
18760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18761 for as_dir in $PATH
18762 do
18763   IFS=$as_save_IFS
18764   test -z "$as_dir" && as_dir=.
18765   for ac_exec_ext in '' $ac_executable_extensions; do
18766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18767     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18769     break 2
18770   fi
18771 done
18772 done
18773
18774   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18775   ;;
18776 esac
18777 fi
18778 MKDIR=$ac_cv_path_MKDIR
18779
18780 if test -n "$MKDIR"; then
18781   echo "$as_me:$LINENO: result: $MKDIR" >&5
18782 echo "${ECHO_T}$MKDIR" >&6
18783 else
18784   echo "$as_me:$LINENO: result: no" >&5
18785 echo "${ECHO_T}no" >&6
18786 fi
18787
18788 if test ${MKDIR} = "false"
18789 then
18790         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18791 echo "$as_me: error: mkdir required but not found" >&2;}
18792    { (exit 1); exit 1; }; }
18793 fi
18794
18795 # Extract the first word of "date", so it can be a program name with args.
18796 set dummy date; ac_word=$2
18797 echo "$as_me:$LINENO: checking for $ac_word" >&5
18798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18799 if test "${ac_cv_path_DATE+set}" = set; then
18800   echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802   case $DATE in
18803   [\\/]* | ?:[\\/]*)
18804   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18805   ;;
18806   *)
18807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808 for as_dir in $PATH
18809 do
18810   IFS=$as_save_IFS
18811   test -z "$as_dir" && as_dir=.
18812   for ac_exec_ext in '' $ac_executable_extensions; do
18813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18814     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18816     break 2
18817   fi
18818 done
18819 done
18820
18821   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18822   ;;
18823 esac
18824 fi
18825 DATE=$ac_cv_path_DATE
18826
18827 if test -n "$DATE"; then
18828   echo "$as_me:$LINENO: result: $DATE" >&5
18829 echo "${ECHO_T}$DATE" >&6
18830 else
18831   echo "$as_me:$LINENO: result: no" >&5
18832 echo "${ECHO_T}no" >&6
18833 fi
18834
18835 if test ${DATE} = "false"
18836 then
18837         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18838 echo "$as_me: error: date required but not found" >&2;}
18839    { (exit 1); exit 1; }; }
18840 fi
18841
18842 # Extract the first word of "mv", so it can be a program name with args.
18843 set dummy mv; ac_word=$2
18844 echo "$as_me:$LINENO: checking for $ac_word" >&5
18845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18846 if test "${ac_cv_path_MV+set}" = set; then
18847   echo $ECHO_N "(cached) $ECHO_C" >&6
18848 else
18849   case $MV in
18850   [\\/]* | ?:[\\/]*)
18851   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18852   ;;
18853   *)
18854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18855 for as_dir in $PATH
18856 do
18857   IFS=$as_save_IFS
18858   test -z "$as_dir" && as_dir=.
18859   for ac_exec_ext in '' $ac_executable_extensions; do
18860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18861     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18863     break 2
18864   fi
18865 done
18866 done
18867
18868   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18869   ;;
18870 esac
18871 fi
18872 MV=$ac_cv_path_MV
18873
18874 if test -n "$MV"; then
18875   echo "$as_me:$LINENO: result: $MV" >&5
18876 echo "${ECHO_T}$MV" >&6
18877 else
18878   echo "$as_me:$LINENO: result: no" >&5
18879 echo "${ECHO_T}no" >&6
18880 fi
18881
18882 if test ${MV} = "false"
18883 then
18884         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18885 echo "$as_me: error: mv required but not found" >&2;}
18886    { (exit 1); exit 1; }; }
18887 fi
18888
18889 # Extract the first word of "dot", so it can be a program name with args.
18890 set dummy dot; ac_word=$2
18891 echo "$as_me:$LINENO: checking for $ac_word" >&5
18892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18893 if test "${ac_cv_path_DOT+set}" = set; then
18894   echo $ECHO_N "(cached) $ECHO_C" >&6
18895 else
18896   case $DOT in
18897   [\\/]* | ?:[\\/]*)
18898   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18899   ;;
18900   *)
18901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18902 for as_dir in $PATH
18903 do
18904   IFS=$as_save_IFS
18905   test -z "$as_dir" && as_dir=.
18906   for ac_exec_ext in '' $ac_executable_extensions; do
18907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18908     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18910     break 2
18911   fi
18912 done
18913 done
18914
18915   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18916   ;;
18917 esac
18918 fi
18919 DOT=$ac_cv_path_DOT
18920
18921 if test -n "$DOT"; then
18922   echo "$as_me:$LINENO: result: $DOT" >&5
18923 echo "${ECHO_T}$DOT" >&6
18924 else
18925   echo "$as_me:$LINENO: result: no" >&5
18926 echo "${ECHO_T}no" >&6
18927 fi
18928
18929
18930 # Extract the first word of "etags", so it can be a program name with args.
18931 set dummy etags; ac_word=$2
18932 echo "$as_me:$LINENO: checking for $ac_word" >&5
18933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18934 if test "${ac_cv_path_ETAGS+set}" = set; then
18935   echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937   case $ETAGS in
18938   [\\/]* | ?:[\\/]*)
18939   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18940   ;;
18941   *)
18942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18943 for as_dir in $PATH
18944 do
18945   IFS=$as_save_IFS
18946   test -z "$as_dir" && as_dir=.
18947   for ac_exec_ext in '' $ac_executable_extensions; do
18948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18949     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18951     break 2
18952   fi
18953 done
18954 done
18955
18956   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18957   ;;
18958 esac
18959 fi
18960 ETAGS=$ac_cv_path_ETAGS
18961
18962 if test -n "$ETAGS"; then
18963   echo "$as_me:$LINENO: result: $ETAGS" >&5
18964 echo "${ECHO_T}$ETAGS" >&6
18965 else
18966   echo "$as_me:$LINENO: result: no" >&5
18967 echo "${ECHO_T}no" >&6
18968 fi
18969
18970
18971 # Extract the first word of "python", so it can be a program name with args.
18972 set dummy python; ac_word=$2
18973 echo "$as_me:$LINENO: checking for $ac_word" >&5
18974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18975 if test "${ac_cv_path_PYTHON+set}" = set; then
18976   echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978   case $PYTHON in
18979   [\\/]* | ?:[\\/]*)
18980   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18981   ;;
18982   *)
18983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18984 for as_dir in $PATH
18985 do
18986   IFS=$as_save_IFS
18987   test -z "$as_dir" && as_dir=.
18988   for ac_exec_ext in '' $ac_executable_extensions; do
18989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18990     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18992     break 2
18993   fi
18994 done
18995 done
18996
18997   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18998   ;;
18999 esac
19000 fi
19001 PYTHON=$ac_cv_path_PYTHON
19002
19003 if test -n "$PYTHON"; then
19004   echo "$as_me:$LINENO: result: $PYTHON" >&5
19005 echo "${ECHO_T}$PYTHON" >&6
19006 else
19007   echo "$as_me:$LINENO: result: no" >&5
19008 echo "${ECHO_T}no" >&6
19009 fi
19010
19011 if test ${PYTHON} = "false"
19012 then
19013         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19014 echo "$as_me: WARNING: python required but not found" >&2;}
19015 fi
19016
19017 # Extract the first word of "qmtest", so it can be a program name with args.
19018 set dummy qmtest; ac_word=$2
19019 echo "$as_me:$LINENO: checking for $ac_word" >&5
19020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19021 if test "${ac_cv_path_QMTEST+set}" = set; then
19022   echo $ECHO_N "(cached) $ECHO_C" >&6
19023 else
19024   case $QMTEST in
19025   [\\/]* | ?:[\\/]*)
19026   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19027   ;;
19028   *)
19029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19030 for as_dir in $PATH
19031 do
19032   IFS=$as_save_IFS
19033   test -z "$as_dir" && as_dir=.
19034   for ac_exec_ext in '' $ac_executable_extensions; do
19035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19036     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19038     break 2
19039   fi
19040 done
19041 done
19042
19043   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19044   ;;
19045 esac
19046 fi
19047 QMTEST=$ac_cv_path_QMTEST
19048
19049 if test -n "$QMTEST"; then
19050   echo "$as_me:$LINENO: result: $QMTEST" >&5
19051 echo "${ECHO_T}$QMTEST" >&6
19052 else
19053   echo "$as_me:$LINENO: result: no" >&5
19054 echo "${ECHO_T}no" >&6
19055 fi
19056
19057 if test ${QMTEST} = "false"
19058 then
19059         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19060 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19061 fi
19062
19063 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19064 pymajor=`echo $pyversion | cut -d. -f1`
19065 pyminor=`echo $pyversion | cut -d. -f2`
19066
19067 if test "$pymajor" -ge "2"
19068 then
19069         if test "$pymajor" -eq "2"
19070         then
19071                 if test "$pyminor" -lt "2"
19072                 then
19073                         { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
19074 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
19075                 fi
19076         fi
19077 else
19078         { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
19079 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
19080 fi
19081
19082
19083
19084
19085
19086 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19087 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19088 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19089   echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091   ac_check_lib_save_LIBS=$LIBS
19092 LIBS="-lelf  $LIBS"
19093 cat >conftest.$ac_ext <<_ACEOF
19094 #line $LINENO "configure"
19095 /* confdefs.h.  */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h.  */
19100
19101 /* Override any gcc2 internal prototype to avoid an error.  */
19102 #ifdef __cplusplus
19103 extern "C"
19104 #endif
19105 /* We use char because int might match the return type of a gcc2
19106    builtin and then its argument prototype would still apply.  */
19107 char elf_begin ();
19108 int
19109 main ()
19110 {
19111 elf_begin ();
19112   ;
19113   return 0;
19114 }
19115 _ACEOF
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19118   (eval $ac_link) 2>&5
19119   ac_status=$?
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); } &&
19122          { ac_try='test -s conftest$ac_exeext'
19123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124   (eval $ac_try) 2>&5
19125   ac_status=$?
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); }; }; then
19128   ac_cv_lib_elf_elf_begin=yes
19129 else
19130   echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133 ac_cv_lib_elf_elf_begin=no
19134 fi
19135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19136 LIBS=$ac_check_lib_save_LIBS
19137 fi
19138 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19139 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19140 if test $ac_cv_lib_elf_elf_begin = yes; then
19141   cat >>confdefs.h <<_ACEOF
19142 #define HAVE_LIBELF 1
19143 _ACEOF
19144
19145   LIBS="-lelf $LIBS"
19146
19147 fi
19148
19149
19150 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19151 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19152 if test "${ac_cv_search_dlopen+set}" = set; then
19153   echo $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19155   ac_func_search_save_LIBS=$LIBS
19156 ac_cv_search_dlopen=no
19157 cat >conftest.$ac_ext <<_ACEOF
19158 #line $LINENO "configure"
19159 /* confdefs.h.  */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h.  */
19164
19165 /* Override any gcc2 internal prototype to avoid an error.  */
19166 #ifdef __cplusplus
19167 extern "C"
19168 #endif
19169 /* We use char because int might match the return type of a gcc2
19170    builtin and then its argument prototype would still apply.  */
19171 char dlopen ();
19172 int
19173 main ()
19174 {
19175 dlopen ();
19176   ;
19177   return 0;
19178 }
19179 _ACEOF
19180 rm -f conftest.$ac_objext conftest$ac_exeext
19181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19182   (eval $ac_link) 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); } &&
19186          { ac_try='test -s conftest$ac_exeext'
19187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188   (eval $ac_try) 2>&5
19189   ac_status=$?
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); }; }; then
19192   ac_cv_search_dlopen="none required"
19193 else
19194   echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19196
19197 fi
19198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19199 if test "$ac_cv_search_dlopen" = no; then
19200   for ac_lib in dl; do
19201     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19202     cat >conftest.$ac_ext <<_ACEOF
19203 #line $LINENO "configure"
19204 /* confdefs.h.  */
19205 _ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h.  */
19209
19210 /* Override any gcc2 internal prototype to avoid an error.  */
19211 #ifdef __cplusplus
19212 extern "C"
19213 #endif
19214 /* We use char because int might match the return type of a gcc2
19215    builtin and then its argument prototype would still apply.  */
19216 char dlopen ();
19217 int
19218 main ()
19219 {
19220 dlopen ();
19221   ;
19222   return 0;
19223 }
19224 _ACEOF
19225 rm -f conftest.$ac_objext conftest$ac_exeext
19226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19227   (eval $ac_link) 2>&5
19228   ac_status=$?
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); } &&
19231          { ac_try='test -s conftest$ac_exeext'
19232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233   (eval $ac_try) 2>&5
19234   ac_status=$?
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); }; }; then
19237   ac_cv_search_dlopen="-l$ac_lib"
19238 break
19239 else
19240   echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 fi
19244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19245   done
19246 fi
19247 LIBS=$ac_func_search_save_LIBS
19248 fi
19249 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19250 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19251 if test "$ac_cv_search_dlopen" != no; then
19252   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19253
19254 cat >>confdefs.h <<\_ACEOF
19255 #define HAVE_DLOPEN 1
19256 _ACEOF
19257
19258 else
19259   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19260 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19261 fi
19262
19263
19264 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19265 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19266 if test "${ac_cv_search_mallinfo+set}" = set; then
19267   echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269   ac_func_search_save_LIBS=$LIBS
19270 ac_cv_search_mallinfo=no
19271 cat >conftest.$ac_ext <<_ACEOF
19272 #line $LINENO "configure"
19273 /* confdefs.h.  */
19274 _ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h.  */
19278
19279 /* Override any gcc2 internal prototype to avoid an error.  */
19280 #ifdef __cplusplus
19281 extern "C"
19282 #endif
19283 /* We use char because int might match the return type of a gcc2
19284    builtin and then its argument prototype would still apply.  */
19285 char mallinfo ();
19286 int
19287 main ()
19288 {
19289 mallinfo ();
19290   ;
19291   return 0;
19292 }
19293 _ACEOF
19294 rm -f conftest.$ac_objext conftest$ac_exeext
19295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19296   (eval $ac_link) 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } &&
19300          { ac_try='test -s conftest$ac_exeext'
19301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302   (eval $ac_try) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; }; then
19306   ac_cv_search_mallinfo="none required"
19307 else
19308   echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 fi
19312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19313 if test "$ac_cv_search_mallinfo" = no; then
19314   for ac_lib in malloc; do
19315     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19316     cat >conftest.$ac_ext <<_ACEOF
19317 #line $LINENO "configure"
19318 /* confdefs.h.  */
19319 _ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h.  */
19323
19324 /* Override any gcc2 internal prototype to avoid an error.  */
19325 #ifdef __cplusplus
19326 extern "C"
19327 #endif
19328 /* We use char because int might match the return type of a gcc2
19329    builtin and then its argument prototype would still apply.  */
19330 char mallinfo ();
19331 int
19332 main ()
19333 {
19334 mallinfo ();
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext conftest$ac_exeext
19340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19341   (eval $ac_link) 2>&5
19342   ac_status=$?
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); } &&
19345          { ac_try='test -s conftest$ac_exeext'
19346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347   (eval $ac_try) 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }; }; then
19351   ac_cv_search_mallinfo="-l$ac_lib"
19352 break
19353 else
19354   echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19356
19357 fi
19358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19359   done
19360 fi
19361 LIBS=$ac_func_search_save_LIBS
19362 fi
19363 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19364 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19365 if test "$ac_cv_search_mallinfo" != no; then
19366   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19367
19368 cat >>confdefs.h <<\_ACEOF
19369 #define HAVE_MALLINFO 1
19370 _ACEOF
19371
19372 fi
19373
19374
19375
19376 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19377 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19378 if test "${ac_cv_header_stdc+set}" = set; then
19379   echo $ECHO_N "(cached) $ECHO_C" >&6
19380 else
19381   cat >conftest.$ac_ext <<_ACEOF
19382 #line $LINENO "configure"
19383 /* confdefs.h.  */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h.  */
19388 #include <stdlib.h>
19389 #include <stdarg.h>
19390 #include <string.h>
19391 #include <float.h>
19392
19393 int
19394 main ()
19395 {
19396
19397   ;
19398   return 0;
19399 }
19400 _ACEOF
19401 rm -f conftest.$ac_objext
19402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19403   (eval $ac_compile) 2>&5
19404   ac_status=$?
19405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406   (exit $ac_status); } &&
19407          { ac_try='test -s conftest.$ac_objext'
19408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409   (eval $ac_try) 2>&5
19410   ac_status=$?
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); }; }; then
19413   ac_cv_header_stdc=yes
19414 else
19415   echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19417
19418 ac_cv_header_stdc=no
19419 fi
19420 rm -f conftest.$ac_objext conftest.$ac_ext
19421
19422 if test $ac_cv_header_stdc = yes; then
19423   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19424   cat >conftest.$ac_ext <<_ACEOF
19425 #line $LINENO "configure"
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431 #include <string.h>
19432
19433 _ACEOF
19434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19435   $EGREP "memchr" >/dev/null 2>&1; then
19436   :
19437 else
19438   ac_cv_header_stdc=no
19439 fi
19440 rm -f conftest*
19441
19442 fi
19443
19444 if test $ac_cv_header_stdc = yes; then
19445   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19446   cat >conftest.$ac_ext <<_ACEOF
19447 #line $LINENO "configure"
19448 /* confdefs.h.  */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h.  */
19453 #include <stdlib.h>
19454
19455 _ACEOF
19456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19457   $EGREP "free" >/dev/null 2>&1; then
19458   :
19459 else
19460   ac_cv_header_stdc=no
19461 fi
19462 rm -f conftest*
19463
19464 fi
19465
19466 if test $ac_cv_header_stdc = yes; then
19467   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19468   if test "$cross_compiling" = yes; then
19469   :
19470 else
19471   cat >conftest.$ac_ext <<_ACEOF
19472 #line $LINENO "configure"
19473 /* confdefs.h.  */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h.  */
19478 #include <ctype.h>
19479 #if ((' ' & 0x0FF) == 0x020)
19480 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19481 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19482 #else
19483 # define ISLOWER(c) \
19484                    (('a' <= (c) && (c) <= 'i') \
19485                      || ('j' <= (c) && (c) <= 'r') \
19486                      || ('s' <= (c) && (c) <= 'z'))
19487 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19488 #endif
19489
19490 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19491 int
19492 main ()
19493 {
19494   int i;
19495   for (i = 0; i < 256; i++)
19496     if (XOR (islower (i), ISLOWER (i))
19497         || toupper (i) != TOUPPER (i))
19498       exit(2);
19499   exit (0);
19500 }
19501 _ACEOF
19502 rm -f conftest$ac_exeext
19503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19504   (eval $ac_link) 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509   (eval $ac_try) 2>&5
19510   ac_status=$?
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); }; }; then
19513   :
19514 else
19515   echo "$as_me: program exited with status $ac_status" >&5
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519 ( exit $ac_status )
19520 ac_cv_header_stdc=no
19521 fi
19522 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19523 fi
19524 fi
19525 fi
19526 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19527 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19528 if test $ac_cv_header_stdc = yes; then
19529
19530 cat >>confdefs.h <<\_ACEOF
19531 #define STDC_HEADERS 1
19532 _ACEOF
19533
19534 fi
19535
19536 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19537 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19538 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19539   echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541   cat >conftest.$ac_ext <<_ACEOF
19542 #line $LINENO "configure"
19543 /* confdefs.h.  */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h.  */
19548 #include <sys/types.h>
19549 #include <sys/wait.h>
19550 #ifndef WEXITSTATUS
19551 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19552 #endif
19553 #ifndef WIFEXITED
19554 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19555 #endif
19556
19557 int
19558 main ()
19559 {
19560   int s;
19561   wait (&s);
19562   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19563   ;
19564   return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19569   (eval $ac_compile) 2>&5
19570   ac_status=$?
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); } &&
19573          { ac_try='test -s conftest.$ac_objext'
19574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575   (eval $ac_try) 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; }; then
19579   ac_cv_header_sys_wait_h=yes
19580 else
19581   echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584 ac_cv_header_sys_wait_h=no
19585 fi
19586 rm -f conftest.$ac_objext conftest.$ac_ext
19587 fi
19588 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19589 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19590 if test $ac_cv_header_sys_wait_h = yes; then
19591
19592 cat >>confdefs.h <<\_ACEOF
19593 #define HAVE_SYS_WAIT_H 1
19594 _ACEOF
19595
19596 fi
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19608 do
19609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19611   echo "$as_me:$LINENO: checking for $ac_header" >&5
19612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19614   echo $ECHO_N "(cached) $ECHO_C" >&6
19615 fi
19616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19618 else
19619   # Is the header compilable?
19620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19622 cat >conftest.$ac_ext <<_ACEOF
19623 #line $LINENO "configure"
19624 /* confdefs.h.  */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h.  */
19629 $ac_includes_default
19630 #include <$ac_header>
19631 _ACEOF
19632 rm -f conftest.$ac_objext
19633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634   (eval $ac_compile) 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } &&
19638          { ac_try='test -s conftest.$ac_objext'
19639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640   (eval $ac_try) 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }; }; then
19644   ac_header_compiler=yes
19645 else
19646   echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19648
19649 ac_header_compiler=no
19650 fi
19651 rm -f conftest.$ac_objext conftest.$ac_ext
19652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19653 echo "${ECHO_T}$ac_header_compiler" >&6
19654
19655 # Is the header present?
19656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19658 cat >conftest.$ac_ext <<_ACEOF
19659 #line $LINENO "configure"
19660 /* confdefs.h.  */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h.  */
19665 #include <$ac_header>
19666 _ACEOF
19667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19669   ac_status=$?
19670   grep -v '^ *+' conftest.er1 >conftest.err
19671   rm -f conftest.er1
19672   cat conftest.err >&5
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); } >/dev/null; then
19675   if test -s conftest.err; then
19676     ac_cpp_err=$ac_c_preproc_warn_flag
19677   else
19678     ac_cpp_err=
19679   fi
19680 else
19681   ac_cpp_err=yes
19682 fi
19683 if test -z "$ac_cpp_err"; then
19684   ac_header_preproc=yes
19685 else
19686   echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19688
19689   ac_header_preproc=no
19690 fi
19691 rm -f conftest.err conftest.$ac_ext
19692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19693 echo "${ECHO_T}$ac_header_preproc" >&6
19694
19695 # So?  What about this header?
19696 case $ac_header_compiler:$ac_header_preproc in
19697   yes:no )
19698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19702     (
19703       cat <<\_ASBOX
19704 ## ------------------------------------ ##
19705 ## Report this to bug-autoconf@gnu.org. ##
19706 ## ------------------------------------ ##
19707 _ASBOX
19708     ) |
19709       sed "s/^/$as_me: WARNING:     /" >&2
19710     ;;
19711   no:yes )
19712     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19714     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19718     (
19719       cat <<\_ASBOX
19720 ## ------------------------------------ ##
19721 ## Report this to bug-autoconf@gnu.org. ##
19722 ## ------------------------------------ ##
19723 _ASBOX
19724     ) |
19725       sed "s/^/$as_me: WARNING:     /" >&2
19726     ;;
19727 esac
19728 echo "$as_me:$LINENO: checking for $ac_header" >&5
19729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19731   echo $ECHO_N "(cached) $ECHO_C" >&6
19732 else
19733   eval "$as_ac_Header=$ac_header_preproc"
19734 fi
19735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19737
19738 fi
19739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19740   cat >>confdefs.h <<_ACEOF
19741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19742 _ACEOF
19743
19744 fi
19745
19746 done
19747
19748
19749
19750
19751
19752 for ac_header in malloc.h sys/mman.h sys/resource.h
19753 do
19754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19756   echo "$as_me:$LINENO: checking for $ac_header" >&5
19757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 fi
19761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19763 else
19764   # Is the header compilable?
19765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19767 cat >conftest.$ac_ext <<_ACEOF
19768 #line $LINENO "configure"
19769 /* confdefs.h.  */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h.  */
19774 $ac_includes_default
19775 #include <$ac_header>
19776 _ACEOF
19777 rm -f conftest.$ac_objext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19779   (eval $ac_compile) 2>&5
19780   ac_status=$?
19781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782   (exit $ac_status); } &&
19783          { ac_try='test -s conftest.$ac_objext'
19784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785   (eval $ac_try) 2>&5
19786   ac_status=$?
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); }; }; then
19789   ac_header_compiler=yes
19790 else
19791   echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19793
19794 ac_header_compiler=no
19795 fi
19796 rm -f conftest.$ac_objext conftest.$ac_ext
19797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19798 echo "${ECHO_T}$ac_header_compiler" >&6
19799
19800 # Is the header present?
19801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
19811 _ACEOF
19812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19814   ac_status=$?
19815   grep -v '^ *+' conftest.er1 >conftest.err
19816   rm -f conftest.er1
19817   cat conftest.err >&5
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); } >/dev/null; then
19820   if test -s conftest.err; then
19821     ac_cpp_err=$ac_c_preproc_warn_flag
19822   else
19823     ac_cpp_err=
19824   fi
19825 else
19826   ac_cpp_err=yes
19827 fi
19828 if test -z "$ac_cpp_err"; then
19829   ac_header_preproc=yes
19830 else
19831   echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19833
19834   ac_header_preproc=no
19835 fi
19836 rm -f conftest.err conftest.$ac_ext
19837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19838 echo "${ECHO_T}$ac_header_preproc" >&6
19839
19840 # So?  What about this header?
19841 case $ac_header_compiler:$ac_header_preproc in
19842   yes:no )
19843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19847     (
19848       cat <<\_ASBOX
19849 ## ------------------------------------ ##
19850 ## Report this to bug-autoconf@gnu.org. ##
19851 ## ------------------------------------ ##
19852 _ASBOX
19853     ) |
19854       sed "s/^/$as_me: WARNING:     /" >&2
19855     ;;
19856   no:yes )
19857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19859     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19863     (
19864       cat <<\_ASBOX
19865 ## ------------------------------------ ##
19866 ## Report this to bug-autoconf@gnu.org. ##
19867 ## ------------------------------------ ##
19868 _ASBOX
19869     ) |
19870       sed "s/^/$as_me: WARNING:     /" >&2
19871     ;;
19872 esac
19873 echo "$as_me:$LINENO: checking for $ac_header" >&5
19874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19876   echo $ECHO_N "(cached) $ECHO_C" >&6
19877 else
19878   eval "$as_ac_Header=$ac_header_preproc"
19879 fi
19880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19882
19883 fi
19884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19885   cat >>confdefs.h <<_ACEOF
19886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19887 _ACEOF
19888
19889 fi
19890
19891 done
19892
19893
19894
19895
19896 for ac_header in dlfcn.h link.h
19897 do
19898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19900   echo "$as_me:$LINENO: checking for $ac_header" >&5
19901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19903   echo $ECHO_N "(cached) $ECHO_C" >&6
19904 fi
19905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19907 else
19908   # Is the header compilable?
19909 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19911 cat >conftest.$ac_ext <<_ACEOF
19912 #line $LINENO "configure"
19913 /* confdefs.h.  */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h.  */
19918 $ac_includes_default
19919 #include <$ac_header>
19920 _ACEOF
19921 rm -f conftest.$ac_objext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923   (eval $ac_compile) 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); } &&
19927          { ac_try='test -s conftest.$ac_objext'
19928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929   (eval $ac_try) 2>&5
19930   ac_status=$?
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); }; }; then
19933   ac_header_compiler=yes
19934 else
19935   echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19937
19938 ac_header_compiler=no
19939 fi
19940 rm -f conftest.$ac_objext conftest.$ac_ext
19941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19942 echo "${ECHO_T}$ac_header_compiler" >&6
19943
19944 # Is the header present?
19945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19947 cat >conftest.$ac_ext <<_ACEOF
19948 #line $LINENO "configure"
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 #include <$ac_header>
19955 _ACEOF
19956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19958   ac_status=$?
19959   grep -v '^ *+' conftest.er1 >conftest.err
19960   rm -f conftest.er1
19961   cat conftest.err >&5
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); } >/dev/null; then
19964   if test -s conftest.err; then
19965     ac_cpp_err=$ac_c_preproc_warn_flag
19966   else
19967     ac_cpp_err=
19968   fi
19969 else
19970   ac_cpp_err=yes
19971 fi
19972 if test -z "$ac_cpp_err"; then
19973   ac_header_preproc=yes
19974 else
19975   echo "$as_me: failed program was:" >&5
19976 sed 's/^/| /' conftest.$ac_ext >&5
19977
19978   ac_header_preproc=no
19979 fi
19980 rm -f conftest.err conftest.$ac_ext
19981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19982 echo "${ECHO_T}$ac_header_preproc" >&6
19983
19984 # So?  What about this header?
19985 case $ac_header_compiler:$ac_header_preproc in
19986   yes:no )
19987     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19991     (
19992       cat <<\_ASBOX
19993 ## ------------------------------------ ##
19994 ## Report this to bug-autoconf@gnu.org. ##
19995 ## ------------------------------------ ##
19996 _ASBOX
19997     ) |
19998       sed "s/^/$as_me: WARNING:     /" >&2
19999     ;;
20000   no:yes )
20001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20003     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20007     (
20008       cat <<\_ASBOX
20009 ## ------------------------------------ ##
20010 ## Report this to bug-autoconf@gnu.org. ##
20011 ## ------------------------------------ ##
20012 _ASBOX
20013     ) |
20014       sed "s/^/$as_me: WARNING:     /" >&2
20015     ;;
20016 esac
20017 echo "$as_me:$LINENO: checking for $ac_header" >&5
20018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20020   echo $ECHO_N "(cached) $ECHO_C" >&6
20021 else
20022   eval "$as_ac_Header=$ac_header_preproc"
20023 fi
20024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20026
20027 fi
20028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20029   cat >>confdefs.h <<_ACEOF
20030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20031 _ACEOF
20032
20033 fi
20034
20035 done
20036
20037
20038
20039 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20040 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20041 if test "${ac_cv_c_const+set}" = set; then
20042   echo $ECHO_N "(cached) $ECHO_C" >&6
20043 else
20044   cat >conftest.$ac_ext <<_ACEOF
20045 #line $LINENO "configure"
20046 /* confdefs.h.  */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h.  */
20051
20052 int
20053 main ()
20054 {
20055 /* FIXME: Include the comments suggested by Paul. */
20056 #ifndef __cplusplus
20057   /* Ultrix mips cc rejects this.  */
20058   typedef int charset[2];
20059   const charset x;
20060   /* SunOS 4.1.1 cc rejects this.  */
20061   char const *const *ccp;
20062   char **p;
20063   /* NEC SVR4.0.2 mips cc rejects this.  */
20064   struct point {int x, y;};
20065   static struct point const zero = {0,0};
20066   /* AIX XL C 1.02.0.0 rejects this.
20067      It does not let you subtract one const X* pointer from another in
20068      an arm of an if-expression whose if-part is not a constant
20069      expression */
20070   const char *g = "string";
20071   ccp = &g + (g ? g-g : 0);
20072   /* HPUX 7.0 cc rejects these. */
20073   ++ccp;
20074   p = (char**) ccp;
20075   ccp = (char const *const *) p;
20076   { /* SCO 3.2v4 cc rejects this.  */
20077     char *t;
20078     char const *s = 0 ? (char *) 0 : (char const *) 0;
20079
20080     *t++ = 0;
20081   }
20082   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20083     int x[] = {25, 17};
20084     const int *foo = &x[0];
20085     ++foo;
20086   }
20087   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20088     typedef const int *iptr;
20089     iptr p = 0;
20090     ++p;
20091   }
20092   { /* AIX XL C 1.02.0.0 rejects this saying
20093        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20094     struct s { int j; const int *ap[3]; };
20095     struct s *b; b->j = 5;
20096   }
20097   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20098     const int foo = 10;
20099   }
20100 #endif
20101
20102   ;
20103   return 0;
20104 }
20105 _ACEOF
20106 rm -f conftest.$ac_objext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108   (eval $ac_compile) 2>&5
20109   ac_status=$?
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } &&
20112          { ac_try='test -s conftest.$ac_objext'
20113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114   (eval $ac_try) 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); }; }; then
20118   ac_cv_c_const=yes
20119 else
20120   echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123 ac_cv_c_const=no
20124 fi
20125 rm -f conftest.$ac_objext conftest.$ac_ext
20126 fi
20127 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20128 echo "${ECHO_T}$ac_cv_c_const" >&6
20129 if test $ac_cv_c_const = no; then
20130
20131 cat >>confdefs.h <<\_ACEOF
20132 #define const
20133 _ACEOF
20134
20135 fi
20136
20137 echo "$as_me:$LINENO: checking for inline" >&5
20138 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20139 if test "${ac_cv_c_inline+set}" = set; then
20140   echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142   ac_cv_c_inline=no
20143 for ac_kw in inline __inline__ __inline; do
20144   cat >conftest.$ac_ext <<_ACEOF
20145 #line $LINENO "configure"
20146 /* confdefs.h.  */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h.  */
20151 #ifndef __cplusplus
20152 typedef int foo_t;
20153 static $ac_kw foo_t static_foo () {return 0; }
20154 $ac_kw foo_t foo () {return 0; }
20155 #endif
20156
20157 _ACEOF
20158 rm -f conftest.$ac_objext
20159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20160   (eval $ac_compile) 2>&5
20161   ac_status=$?
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); } &&
20164          { ac_try='test -s conftest.$ac_objext'
20165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166   (eval $ac_try) 2>&5
20167   ac_status=$?
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); }; }; then
20170   ac_cv_c_inline=$ac_kw; break
20171 else
20172   echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175 fi
20176 rm -f conftest.$ac_objext conftest.$ac_ext
20177 done
20178
20179 fi
20180 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20181 echo "${ECHO_T}$ac_cv_c_inline" >&6
20182 case $ac_cv_c_inline in
20183   inline | yes) ;;
20184   no)
20185 cat >>confdefs.h <<\_ACEOF
20186 #define inline
20187 _ACEOF
20188  ;;
20189   *)  cat >>confdefs.h <<_ACEOF
20190 #define inline $ac_cv_c_inline
20191 _ACEOF
20192  ;;
20193 esac
20194
20195
20196 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20197 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20198 if test "${ac_cv_c_bigendian+set}" = set; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201   # See if sys/param.h defines the BYTE_ORDER macro.
20202 cat >conftest.$ac_ext <<_ACEOF
20203 #line $LINENO "configure"
20204 /* confdefs.h.  */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h.  */
20209 #include <sys/types.h>
20210 #include <sys/param.h>
20211
20212 int
20213 main ()
20214 {
20215 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20216  bogus endian macros
20217 #endif
20218
20219   ;
20220   return 0;
20221 }
20222 _ACEOF
20223 rm -f conftest.$ac_objext
20224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20225   (eval $ac_compile) 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); } &&
20229          { ac_try='test -s conftest.$ac_objext'
20230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231   (eval $ac_try) 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); }; }; then
20235   # It does; now see whether it defined to BIG_ENDIAN or not.
20236 cat >conftest.$ac_ext <<_ACEOF
20237 #line $LINENO "configure"
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243 #include <sys/types.h>
20244 #include <sys/param.h>
20245
20246 int
20247 main ()
20248 {
20249 #if BYTE_ORDER != BIG_ENDIAN
20250  not big endian
20251 #endif
20252
20253   ;
20254   return 0;
20255 }
20256 _ACEOF
20257 rm -f conftest.$ac_objext
20258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20259   (eval $ac_compile) 2>&5
20260   ac_status=$?
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); } &&
20263          { ac_try='test -s conftest.$ac_objext'
20264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265   (eval $ac_try) 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); }; }; then
20269   ac_cv_c_bigendian=yes
20270 else
20271   echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274 ac_cv_c_bigendian=no
20275 fi
20276 rm -f conftest.$ac_objext conftest.$ac_ext
20277 else
20278   echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20280
20281 # It does not; compile a test program.
20282 if test "$cross_compiling" = yes; then
20283   # try to guess the endianness by grepping values into an object file
20284   ac_cv_c_bigendian=unknown
20285   cat >conftest.$ac_ext <<_ACEOF
20286 #line $LINENO "configure"
20287 /* confdefs.h.  */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h.  */
20292 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20293 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20294 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20295 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20296 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20297 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20298 int
20299 main ()
20300 {
20301  _ascii (); _ebcdic ();
20302   ;
20303   return 0;
20304 }
20305 _ACEOF
20306 rm -f conftest.$ac_objext
20307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20308   (eval $ac_compile) 2>&5
20309   ac_status=$?
20310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311   (exit $ac_status); } &&
20312          { ac_try='test -s conftest.$ac_objext'
20313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314   (eval $ac_try) 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); }; }; then
20318   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20319   ac_cv_c_bigendian=yes
20320 fi
20321 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20322   if test "$ac_cv_c_bigendian" = unknown; then
20323     ac_cv_c_bigendian=no
20324   else
20325     # finding both strings is unlikely to happen, but who knows?
20326     ac_cv_c_bigendian=unknown
20327   fi
20328 fi
20329 else
20330   echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333 fi
20334 rm -f conftest.$ac_objext conftest.$ac_ext
20335 else
20336   cat >conftest.$ac_ext <<_ACEOF
20337 #line $LINENO "configure"
20338 /* confdefs.h.  */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h.  */
20343 int
20344 main ()
20345 {
20346   /* Are we little or big endian?  From Harbison&Steele.  */
20347   union
20348   {
20349     long l;
20350     char c[sizeof (long)];
20351   } u;
20352   u.l = 1;
20353   exit (u.c[sizeof (long) - 1] == 1);
20354 }
20355 _ACEOF
20356 rm -f conftest$ac_exeext
20357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20358   (eval $ac_link) 2>&5
20359   ac_status=$?
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363   (eval $ac_try) 2>&5
20364   ac_status=$?
20365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366   (exit $ac_status); }; }; then
20367   ac_cv_c_bigendian=no
20368 else
20369   echo "$as_me: program exited with status $ac_status" >&5
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20372
20373 ( exit $ac_status )
20374 ac_cv_c_bigendian=yes
20375 fi
20376 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20377 fi
20378 fi
20379 rm -f conftest.$ac_objext conftest.$ac_ext
20380 fi
20381 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20382 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20383 case $ac_cv_c_bigendian in
20384   yes)
20385
20386 cat >>confdefs.h <<\_ACEOF
20387 #define ENDIAN_BIG
20388 _ACEOF
20389  ;;
20390   no)
20391
20392 cat >>confdefs.h <<\_ACEOF
20393 #define ENDIAN_LITTLE
20394 _ACEOF
20395  ;;
20396   *)
20397     { { echo "$as_me:$LINENO: error: unknown endianness
20398 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20399 echo "$as_me: error: unknown endianness
20400 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20401    { (exit 1); exit 1; }; } ;;
20402 esac
20403
20404
20405 echo "$as_me:$LINENO: checking for pid_t" >&5
20406 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20407 if test "${ac_cv_type_pid_t+set}" = set; then
20408   echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410   cat >conftest.$ac_ext <<_ACEOF
20411 #line $LINENO "configure"
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417 $ac_includes_default
20418 int
20419 main ()
20420 {
20421 if ((pid_t *) 0)
20422   return 0;
20423 if (sizeof (pid_t))
20424   return 0;
20425   ;
20426   return 0;
20427 }
20428 _ACEOF
20429 rm -f conftest.$ac_objext
20430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431   (eval $ac_compile) 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); } &&
20435          { ac_try='test -s conftest.$ac_objext'
20436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437   (eval $ac_try) 2>&5
20438   ac_status=$?
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); }; }; then
20441   ac_cv_type_pid_t=yes
20442 else
20443   echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 ac_cv_type_pid_t=no
20447 fi
20448 rm -f conftest.$ac_objext conftest.$ac_ext
20449 fi
20450 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20451 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20452 if test $ac_cv_type_pid_t = yes; then
20453   :
20454 else
20455
20456 cat >>confdefs.h <<_ACEOF
20457 #define pid_t int
20458 _ACEOF
20459
20460 fi
20461
20462 echo "$as_me:$LINENO: checking for size_t" >&5
20463 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20464 if test "${ac_cv_type_size_t+set}" = set; then
20465   echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467   cat >conftest.$ac_ext <<_ACEOF
20468 #line $LINENO "configure"
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 $ac_includes_default
20475 int
20476 main ()
20477 {
20478 if ((size_t *) 0)
20479   return 0;
20480 if (sizeof (size_t))
20481   return 0;
20482   ;
20483   return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488   (eval $ac_compile) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); } &&
20492          { ac_try='test -s conftest.$ac_objext'
20493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494   (eval $ac_try) 2>&5
20495   ac_status=$?
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); }; }; then
20498   ac_cv_type_size_t=yes
20499 else
20500   echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 ac_cv_type_size_t=no
20504 fi
20505 rm -f conftest.$ac_objext conftest.$ac_ext
20506 fi
20507 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20508 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20509 if test $ac_cv_type_size_t = yes; then
20510   :
20511 else
20512
20513 cat >>confdefs.h <<_ACEOF
20514 #define size_t unsigned
20515 _ACEOF
20516
20517 fi
20518
20519 echo "$as_me:$LINENO: checking for int64_t" >&5
20520 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20521 if test "${ac_cv_type_int64_t+set}" = set; then
20522   echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20524   cat >conftest.$ac_ext <<_ACEOF
20525 #line $LINENO "configure"
20526 /* confdefs.h.  */
20527 _ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h.  */
20531 $ac_includes_default
20532 int
20533 main ()
20534 {
20535 if ((int64_t *) 0)
20536   return 0;
20537 if (sizeof (int64_t))
20538   return 0;
20539   ;
20540   return 0;
20541 }
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545   (eval $ac_compile) 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } &&
20549          { ac_try='test -s conftest.$ac_objext'
20550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551   (eval $ac_try) 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); }; }; then
20555   ac_cv_type_int64_t=yes
20556 else
20557   echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560 ac_cv_type_int64_t=no
20561 fi
20562 rm -f conftest.$ac_objext conftest.$ac_ext
20563 fi
20564 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20565 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20566 if test $ac_cv_type_int64_t = yes; then
20567
20568 cat >>confdefs.h <<_ACEOF
20569 #define HAVE_INT64_T 1
20570 _ACEOF
20571
20572
20573 else
20574   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20575 echo "$as_me: error: Type int64_t required but not found" >&2;}
20576    { (exit 1); exit 1; }; }
20577 fi
20578
20579 echo "$as_me:$LINENO: checking for uint64_t" >&5
20580 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20581 if test "${ac_cv_type_uint64_t+set}" = set; then
20582   echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584   cat >conftest.$ac_ext <<_ACEOF
20585 #line $LINENO "configure"
20586 /* confdefs.h.  */
20587 _ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h.  */
20591 $ac_includes_default
20592 int
20593 main ()
20594 {
20595 if ((uint64_t *) 0)
20596   return 0;
20597 if (sizeof (uint64_t))
20598   return 0;
20599   ;
20600   return 0;
20601 }
20602 _ACEOF
20603 rm -f conftest.$ac_objext
20604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20605   (eval $ac_compile) 2>&5
20606   ac_status=$?
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); } &&
20609          { ac_try='test -s conftest.$ac_objext'
20610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611   (eval $ac_try) 2>&5
20612   ac_status=$?
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); }; }; then
20615   ac_cv_type_uint64_t=yes
20616 else
20617   echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20619
20620 ac_cv_type_uint64_t=no
20621 fi
20622 rm -f conftest.$ac_objext conftest.$ac_ext
20623 fi
20624 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20625 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20626 if test $ac_cv_type_uint64_t = yes; then
20627
20628 cat >>confdefs.h <<_ACEOF
20629 #define HAVE_UINT64_T 1
20630 _ACEOF
20631
20632
20633 else
20634   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20635 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20636    { (exit 1); exit 1; }; }
20637 fi
20638
20639 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20640 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20641 if test "${ac_cv_header_time+set}" = set; then
20642   echo $ECHO_N "(cached) $ECHO_C" >&6
20643 else
20644   cat >conftest.$ac_ext <<_ACEOF
20645 #line $LINENO "configure"
20646 /* confdefs.h.  */
20647 _ACEOF
20648 cat confdefs.h >>conftest.$ac_ext
20649 cat >>conftest.$ac_ext <<_ACEOF
20650 /* end confdefs.h.  */
20651 #include <sys/types.h>
20652 #include <sys/time.h>
20653 #include <time.h>
20654
20655 int
20656 main ()
20657 {
20658 if ((struct tm *) 0)
20659 return 0;
20660   ;
20661   return 0;
20662 }
20663 _ACEOF
20664 rm -f conftest.$ac_objext
20665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20666   (eval $ac_compile) 2>&5
20667   ac_status=$?
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } &&
20670          { ac_try='test -s conftest.$ac_objext'
20671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672   (eval $ac_try) 2>&5
20673   ac_status=$?
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); }; }; then
20676   ac_cv_header_time=yes
20677 else
20678   echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20680
20681 ac_cv_header_time=no
20682 fi
20683 rm -f conftest.$ac_objext conftest.$ac_ext
20684 fi
20685 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20686 echo "${ECHO_T}$ac_cv_header_time" >&6
20687 if test $ac_cv_header_time = yes; then
20688
20689 cat >>confdefs.h <<\_ACEOF
20690 #define TIME_WITH_SYS_TIME 1
20691 _ACEOF
20692
20693 fi
20694
20695 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20696 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20697 if test "${ac_cv_struct_tm+set}" = set; then
20698   echo $ECHO_N "(cached) $ECHO_C" >&6
20699 else
20700   cat >conftest.$ac_ext <<_ACEOF
20701 #line $LINENO "configure"
20702 /* confdefs.h.  */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h.  */
20707 #include <sys/types.h>
20708 #include <time.h>
20709
20710 int
20711 main ()
20712 {
20713 struct tm *tp; tp->tm_sec;
20714   ;
20715   return 0;
20716 }
20717 _ACEOF
20718 rm -f conftest.$ac_objext
20719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20720   (eval $ac_compile) 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); } &&
20724          { ac_try='test -s conftest.$ac_objext'
20725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726   (eval $ac_try) 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); }; }; then
20730   ac_cv_struct_tm=time.h
20731 else
20732   echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735 ac_cv_struct_tm=sys/time.h
20736 fi
20737 rm -f conftest.$ac_objext conftest.$ac_ext
20738 fi
20739 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20740 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20741 if test $ac_cv_struct_tm = sys/time.h; then
20742
20743 cat >>confdefs.h <<\_ACEOF
20744 #define TM_IN_SYS_TIME 1
20745 _ACEOF
20746
20747 fi
20748
20749
20750
20751
20752
20753         ac_ext=c
20754 ac_cpp='$CPP $CPPFLAGS'
20755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20758
20759         if test "$cross_compiling" = yes; then
20760   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20761 See \`config.log' for more details." >&5
20762 echo "$as_me: error: cannot run test program while cross compiling
20763 See \`config.log' for more details." >&2;}
20764    { (exit 1); exit 1; }; }
20765 else
20766   cat >conftest.$ac_ext <<_ACEOF
20767 #line $LINENO "configure"
20768 /* confdefs.h.  */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h.  */
20773 #include <stdio.h>
20774                                  #include <stdlib.h>
20775 int
20776 main ()
20777 {
20778
20779                                  volatile double A, B;
20780                                  char Buffer[100];
20781                                  A = 1;
20782                                  A /= 10.0;
20783                                  sprintf(Buffer, "%a", A);
20784                                  B = atof(Buffer);
20785                                  if (A != B)
20786                                                          return (1);
20787                                  if (A != 0x1.999999999999ap-4)
20788                                                          return (1);
20789                                  return (0);
20790   ;
20791   return 0;
20792 }
20793 _ACEOF
20794 rm -f conftest$ac_exeext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20796   (eval $ac_link) 2>&5
20797   ac_status=$?
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801   (eval $ac_try) 2>&5
20802   ac_status=$?
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); }; }; then
20805   ac_c_printf_a=yes
20806 else
20807   echo "$as_me: program exited with status $ac_status" >&5
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20810
20811 ( exit $ac_status )
20812 ac_c_printf_a=no
20813 fi
20814 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20815 fi
20816         ac_ext=c
20817 ac_cpp='$CPP $CPPFLAGS'
20818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20821
20822         if test "$ac_c_printf_a" = "yes"; then
20823
20824 cat >>confdefs.h <<\_ACEOF
20825 #define HAVE_PRINTF_A 1
20826 _ACEOF
20827
20828         fi
20829
20830
20831 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20832 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20833 if test "${ac_cv_cxx_namespaces+set}" = set; then
20834   echo $ECHO_N "(cached) $ECHO_C" >&6
20835 else
20836
20837
20838  ac_ext=cc
20839 ac_cpp='$CXXCPP $CPPFLAGS'
20840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20843
20844  cat >conftest.$ac_ext <<_ACEOF
20845 #line $LINENO "configure"
20846 /* confdefs.h.  */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h.  */
20851 namespace Outer { namespace Inner { int i = 0; }}
20852 int
20853 main ()
20854 {
20855 using namespace Outer::Inner; return i;
20856   ;
20857   return 0;
20858 }
20859 _ACEOF
20860 rm -f conftest.$ac_objext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862   (eval $ac_compile) 2>&5
20863   ac_status=$?
20864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865   (exit $ac_status); } &&
20866          { ac_try='test -s conftest.$ac_objext'
20867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868   (eval $ac_try) 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); }; }; then
20872   ac_cv_cxx_namespaces=yes
20873 else
20874   echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20876
20877 ac_cv_cxx_namespaces=no
20878 fi
20879 rm -f conftest.$ac_objext conftest.$ac_ext
20880  ac_ext=c
20881 ac_cpp='$CPP $CPPFLAGS'
20882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20885
20886
20887 fi
20888 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20889 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20890 if test "$ac_cv_cxx_namespaces" = yes; then
20891
20892 cat >>confdefs.h <<\_ACEOF
20893 #define HAVE_NAMESPACES
20894 _ACEOF
20895
20896 fi
20897
20898 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20899 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20900 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20901   echo $ECHO_N "(cached) $ECHO_C" >&6
20902 else
20903
20904
20905
20906   ac_ext=cc
20907 ac_cpp='$CXXCPP $CPPFLAGS'
20908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20911
20912   cat >conftest.$ac_ext <<_ACEOF
20913 #line $LINENO "configure"
20914 /* confdefs.h.  */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h.  */
20919 #include <ext/hash_map>
20920 #ifdef HAVE_NAMESPACES
20921 using namespace std;
20922 #endif
20923 int
20924 main ()
20925 {
20926 hash_map<int, int> t;
20927   ;
20928   return 0;
20929 }
20930 _ACEOF
20931 rm -f conftest.$ac_objext
20932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20933   (eval $ac_compile) 2>&5
20934   ac_status=$?
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } &&
20937          { ac_try='test -s conftest.$ac_objext'
20938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939   (eval $ac_try) 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); }; }; then
20943   ac_cv_cxx_have_std_ext_hash_map=yes
20944 else
20945   echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948 ac_cv_cxx_have_std_ext_hash_map=no
20949 fi
20950 rm -f conftest.$ac_objext conftest.$ac_ext
20951   ac_ext=c
20952 ac_cpp='$CPP $CPPFLAGS'
20953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20956
20957 fi
20958 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20959 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20960  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
20961
20962 cat >>confdefs.h <<\_ACEOF
20963 #define HAVE_STD_EXT_HASH_MAP
20964 _ACEOF
20965
20966  fi
20967  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20968 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20969 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20970   echo $ECHO_N "(cached) $ECHO_C" >&6
20971 else
20972
20973
20974
20975   ac_ext=cc
20976 ac_cpp='$CXXCPP $CPPFLAGS'
20977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20980
20981   cat >conftest.$ac_ext <<_ACEOF
20982 #line $LINENO "configure"
20983 /* confdefs.h.  */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h.  */
20988 #include <ext/hash_map>
20989 #ifdef HAVE_NAMESPACES
20990 using namespace __gnu_cxx;
20991 #endif
20992 int
20993 main ()
20994 {
20995 hash_map<int,int> t;
20996   ;
20997   return 0;
20998 }
20999 _ACEOF
21000 rm -f conftest.$ac_objext
21001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21002   (eval $ac_compile) 2>&5
21003   ac_status=$?
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); } &&
21006          { ac_try='test -s conftest.$ac_objext'
21007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008   (eval $ac_try) 2>&5
21009   ac_status=$?
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); }; }; then
21012   ac_cv_cxx_have_gnu_ext_hash_map=yes
21013 else
21014   echo "$as_me: failed program was:" >&5
21015 sed 's/^/| /' conftest.$ac_ext >&5
21016
21017 ac_cv_cxx_have_gnu_ext_hash_map=no
21018 fi
21019 rm -f conftest.$ac_objext conftest.$ac_ext
21020   ac_ext=c
21021 ac_cpp='$CPP $CPPFLAGS'
21022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21025
21026 fi
21027 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21028 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21029  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
21030
21031 cat >>confdefs.h <<\_ACEOF
21032 #define HAVE_GNU_EXT_HASH_MAP
21033 _ACEOF
21034
21035  fi
21036  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21037 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21038 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21039   echo $ECHO_N "(cached) $ECHO_C" >&6
21040 else
21041
21042
21043
21044   ac_ext=cc
21045 ac_cpp='$CXXCPP $CPPFLAGS'
21046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21049
21050   cat >conftest.$ac_ext <<_ACEOF
21051 #line $LINENO "configure"
21052 /* confdefs.h.  */
21053 _ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h.  */
21057 #include <hash_map>
21058 int
21059 main ()
21060 {
21061 hash_map<int,int> t;
21062   ;
21063   return 0;
21064 }
21065 _ACEOF
21066 rm -f conftest.$ac_objext
21067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21068   (eval $ac_compile) 2>&5
21069   ac_status=$?
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); } &&
21072          { ac_try='test -s conftest.$ac_objext'
21073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074   (eval $ac_try) 2>&5
21075   ac_status=$?
21076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077   (exit $ac_status); }; }; then
21078   ac_cv_cxx_have_global_hash_map=yes
21079 else
21080   echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21082
21083 ac_cv_cxx_have_global_hash_map=no
21084 fi
21085 rm -f conftest.$ac_objext conftest.$ac_ext
21086   ac_ext=c
21087 ac_cpp='$CPP $CPPFLAGS'
21088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21091
21092 fi
21093 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21094 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21095  if test "$ac_cv_cxx_have_global_hash_map" = yes; then
21096
21097 cat >>confdefs.h <<\_ACEOF
21098 #define HAVE_GLOBAL_HASH_MAP
21099 _ACEOF
21100
21101  fi
21102 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21103 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21104 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21105   echo $ECHO_N "(cached) $ECHO_C" >&6
21106 else
21107
21108
21109
21110   ac_ext=cc
21111 ac_cpp='$CXXCPP $CPPFLAGS'
21112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21115
21116   cat >conftest.$ac_ext <<_ACEOF
21117 #line $LINENO "configure"
21118 /* confdefs.h.  */
21119 _ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h.  */
21123 #include <ext/hash_set>
21124 #ifdef HAVE_NAMESPACES
21125 using namespace std;
21126 #endif
21127 int
21128 main ()
21129 {
21130 hash_set<int> t;
21131   ;
21132   return 0;
21133 }
21134 _ACEOF
21135 rm -f conftest.$ac_objext
21136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21137   (eval $ac_compile) 2>&5
21138   ac_status=$?
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); } &&
21141          { ac_try='test -s conftest.$ac_objext'
21142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143   (eval $ac_try) 2>&5
21144   ac_status=$?
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); }; }; then
21147   ac_cv_cxx_have_std_ext_hash_set=yes
21148 else
21149   echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21151
21152 ac_cv_cxx_have_std_ext_hash_set=no
21153 fi
21154 rm -f conftest.$ac_objext conftest.$ac_ext
21155   ac_ext=c
21156 ac_cpp='$CPP $CPPFLAGS'
21157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21160
21161 fi
21162 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21163 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21164  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
21165
21166 cat >>confdefs.h <<\_ACEOF
21167 #define HAVE_STD_EXT_HASH_SET
21168 _ACEOF
21169
21170  fi
21171  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21172 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21173 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21174   echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176
21177
21178
21179   ac_ext=cc
21180 ac_cpp='$CXXCPP $CPPFLAGS'
21181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21184
21185   cat >conftest.$ac_ext <<_ACEOF
21186 #line $LINENO "configure"
21187 /* confdefs.h.  */
21188 _ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h.  */
21192 #include <ext/hash_set>
21193 #ifdef HAVE_NAMESPACES
21194 using namespace __gnu_cxx;
21195 #endif
21196 int
21197 main ()
21198 {
21199 hash_set<int> t;
21200   ;
21201   return 0;
21202 }
21203 _ACEOF
21204 rm -f conftest.$ac_objext
21205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21206   (eval $ac_compile) 2>&5
21207   ac_status=$?
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); } &&
21210          { ac_try='test -s conftest.$ac_objext'
21211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212   (eval $ac_try) 2>&5
21213   ac_status=$?
21214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215   (exit $ac_status); }; }; then
21216   ac_cv_cxx_have_gnu_ext_hash_set=yes
21217 else
21218   echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21220
21221 ac_cv_cxx_have_gnu_ext_hash_set=no
21222 fi
21223 rm -f conftest.$ac_objext conftest.$ac_ext
21224   ac_ext=c
21225 ac_cpp='$CPP $CPPFLAGS'
21226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21229
21230 fi
21231 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21232 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21233  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
21234
21235 cat >>confdefs.h <<\_ACEOF
21236 #define HAVE_GNU_EXT_HASH_SET
21237 _ACEOF
21238
21239  fi
21240  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21241 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21242 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21243   echo $ECHO_N "(cached) $ECHO_C" >&6
21244 else
21245
21246
21247
21248   ac_ext=cc
21249 ac_cpp='$CXXCPP $CPPFLAGS'
21250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21253
21254   cat >conftest.$ac_ext <<_ACEOF
21255 #line $LINENO "configure"
21256 /* confdefs.h.  */
21257 _ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h.  */
21261 #include <hash_set>
21262 int
21263 main ()
21264 {
21265 hash_set<int> t; return 0;
21266   ;
21267   return 0;
21268 }
21269 _ACEOF
21270 rm -f conftest.$ac_objext
21271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21272   (eval $ac_compile) 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } &&
21276          { ac_try='test -s conftest.$ac_objext'
21277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278   (eval $ac_try) 2>&5
21279   ac_status=$?
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); }; }; then
21282   ac_cv_cxx_have_global_hash_set=yes
21283 else
21284   echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287 ac_cv_cxx_have_global_hash_set=no
21288 fi
21289 rm -f conftest.$ac_objext conftest.$ac_ext
21290   ac_ext=c
21291 ac_cpp='$CPP $CPPFLAGS'
21292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21295
21296 fi
21297 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21298 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21299  if test "$ac_cv_cxx_have_global_hash_set" = yes; then
21300
21301 cat >>confdefs.h <<\_ACEOF
21302 #define HAVE_GLOBAL_HASH_SET
21303 _ACEOF
21304
21305  fi
21306 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21307 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21308 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21309   echo $ECHO_N "(cached) $ECHO_C" >&6
21310 else
21311
21312
21313
21314   ac_ext=cc
21315 ac_cpp='$CXXCPP $CPPFLAGS'
21316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21319
21320   cat >conftest.$ac_ext <<_ACEOF
21321 #line $LINENO "configure"
21322 /* confdefs.h.  */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h.  */
21327 #include <ext/slist>
21328 #ifdef HAVE_NAMESPACES
21329 using namespace std;
21330 #endif
21331 int
21332 main ()
21333 {
21334 slist<int> s; return 0;
21335   ;
21336   return 0;
21337 }
21338 _ACEOF
21339 rm -f conftest.$ac_objext
21340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21341   (eval $ac_compile) 2>&5
21342   ac_status=$?
21343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344   (exit $ac_status); } &&
21345          { ac_try='test -s conftest.$ac_objext'
21346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347   (eval $ac_try) 2>&5
21348   ac_status=$?
21349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); }; }; then
21351   ac_cv_cxx_have_ext_slist=std
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356 ac_cv_cxx_have_ext_slist=no
21357 fi
21358 rm -f conftest.$ac_objext conftest.$ac_ext
21359   cat >conftest.$ac_ext <<_ACEOF
21360 #line $LINENO "configure"
21361 /* confdefs.h.  */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h.  */
21366 #include <ext/slist>
21367 #ifdef HAVE_NAMESPACES
21368 using namespace __gnu_cxx;
21369 #endif
21370 int
21371 main ()
21372 {
21373 slist<int> s; return 0;
21374   ;
21375   return 0;
21376 }
21377 _ACEOF
21378 rm -f conftest.$ac_objext
21379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21380   (eval $ac_compile) 2>&5
21381   ac_status=$?
21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383   (exit $ac_status); } &&
21384          { ac_try='test -s conftest.$ac_objext'
21385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386   (eval $ac_try) 2>&5
21387   ac_status=$?
21388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389   (exit $ac_status); }; }; then
21390   ac_cv_cxx_have_ext_slist=gnu
21391 else
21392   echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21394
21395 ac_cv_cxx_have_ext_slist=no
21396 fi
21397 rm -f conftest.$ac_objext conftest.$ac_ext
21398
21399   ac_ext=c
21400 ac_cpp='$CPP $CPPFLAGS'
21401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21404
21405
21406 fi
21407 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21408 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21409 if test "$ac_cv_cxx_have_ext_slist" = std; then
21410
21411 cat >>confdefs.h <<\_ACEOF
21412 #define HAVE_EXT_SLIST std
21413 _ACEOF
21414
21415 fi
21416 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21417
21418 cat >>confdefs.h <<\_ACEOF
21419 #define HAVE_EXT_SLIST gnu
21420 _ACEOF
21421
21422 fi
21423
21424 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21425 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21426 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21427   echo $ECHO_N "(cached) $ECHO_C" >&6
21428 else
21429
21430
21431
21432   ac_ext=cc
21433 ac_cpp='$CXXCPP $CPPFLAGS'
21434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21437
21438   cat >conftest.$ac_ext <<_ACEOF
21439 #line $LINENO "configure"
21440 /* confdefs.h.  */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h.  */
21445 #include <iterator>
21446 #ifdef HAVE_NAMESPACES
21447 using namespace std;
21448 #endif
21449 int
21450 main ()
21451 {
21452 iterator<int,int,int> t; return 0;
21453   ;
21454   return 0;
21455 }
21456 _ACEOF
21457 rm -f conftest.$ac_objext
21458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21459   (eval $ac_compile) 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } &&
21463          { ac_try='test -s conftest.$ac_objext'
21464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465   (eval $ac_try) 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; }; then
21469   ac_cv_cxx_have_std_iterator=yes
21470 else
21471   echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474 ac_cv_cxx_have_std_iterator=no
21475 fi
21476 rm -f conftest.$ac_objext conftest.$ac_ext
21477   ac_ext=c
21478 ac_cpp='$CPP $CPPFLAGS'
21479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21482
21483
21484 fi
21485 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21486 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21487 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21488
21489 cat >>confdefs.h <<\_ACEOF
21490 #define HAVE_STD_ITERATOR
21491 _ACEOF
21492
21493 fi
21494
21495 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21496 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21497 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21498   echo $ECHO_N "(cached) $ECHO_C" >&6
21499 else
21500
21501
21502
21503   ac_ext=cc
21504 ac_cpp='$CXXCPP $CPPFLAGS'
21505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21508
21509   cat >conftest.$ac_ext <<_ACEOF
21510 #line $LINENO "configure"
21511 /* confdefs.h.  */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h.  */
21516 #include <iterator>
21517 #ifdef HAVE_NAMESPACES
21518 using namespace std;
21519 #endif
21520 int
21521 main ()
21522 {
21523 bidirectional_iterator<int,int> t; return 0;
21524   ;
21525   return 0;
21526 }
21527 _ACEOF
21528 rm -f conftest.$ac_objext
21529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21530   (eval $ac_compile) 2>&5
21531   ac_status=$?
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); } &&
21534          { ac_try='test -s conftest.$ac_objext'
21535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536   (eval $ac_try) 2>&5
21537   ac_status=$?
21538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539   (exit $ac_status); }; }; then
21540   ac_cv_cxx_have_bi_iterator=yes
21541 else
21542   echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21544
21545 ac_cv_cxx_have_bi_iterator=no
21546 fi
21547 rm -f conftest.$ac_objext conftest.$ac_ext
21548   ac_ext=c
21549 ac_cpp='$CPP $CPPFLAGS'
21550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21553
21554
21555 fi
21556 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21557 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21558 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21559
21560 cat >>confdefs.h <<\_ACEOF
21561 #define HAVE_BI_ITERATOR
21562 _ACEOF
21563
21564 fi
21565
21566 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21567 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21568 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571
21572
21573
21574   ac_ext=cc
21575 ac_cpp='$CXXCPP $CPPFLAGS'
21576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21579
21580   cat >conftest.$ac_ext <<_ACEOF
21581 #line $LINENO "configure"
21582 /* confdefs.h.  */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h.  */
21587 #include <iterator>
21588 #ifdef HAVE_NAMESPACES
21589 using namespace std;
21590 #endif
21591 int
21592 main ()
21593 {
21594 forward_iterator<int,int> t; return 0;
21595   ;
21596   return 0;
21597 }
21598 _ACEOF
21599 rm -f conftest.$ac_objext
21600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21601   (eval $ac_compile) 2>&5
21602   ac_status=$?
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); } &&
21605          { ac_try='test -s conftest.$ac_objext'
21606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607   (eval $ac_try) 2>&5
21608   ac_status=$?
21609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610   (exit $ac_status); }; }; then
21611   ac_cv_cxx_have_fwd_iterator=yes
21612 else
21613   echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616 ac_cv_cxx_have_fwd_iterator=no
21617 fi
21618 rm -f conftest.$ac_objext conftest.$ac_ext
21619   ac_ext=c
21620 ac_cpp='$CPP $CPPFLAGS'
21621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21624
21625
21626 fi
21627 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21628 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21629 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21630
21631 cat >>confdefs.h <<\_ACEOF
21632 #define HAVE_FWD_ITERATOR
21633 _ACEOF
21634
21635 fi
21636
21637
21638 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21639 # for constant arguments.  Useless!
21640 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21641 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21642 if test "${ac_cv_working_alloca_h+set}" = set; then
21643   echo $ECHO_N "(cached) $ECHO_C" >&6
21644 else
21645   cat >conftest.$ac_ext <<_ACEOF
21646 #line $LINENO "configure"
21647 /* confdefs.h.  */
21648 _ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h.  */
21652 #include <alloca.h>
21653 int
21654 main ()
21655 {
21656 char *p = (char *) alloca (2 * sizeof (int));
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21663   (eval $ac_link) 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); } &&
21667          { ac_try='test -s conftest$ac_exeext'
21668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669   (eval $ac_try) 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); }; }; then
21673   ac_cv_working_alloca_h=yes
21674 else
21675   echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21677
21678 ac_cv_working_alloca_h=no
21679 fi
21680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21681 fi
21682 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21683 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21684 if test $ac_cv_working_alloca_h = yes; then
21685
21686 cat >>confdefs.h <<\_ACEOF
21687 #define HAVE_ALLOCA_H 1
21688 _ACEOF
21689
21690 fi
21691
21692 echo "$as_me:$LINENO: checking for alloca" >&5
21693 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21694 if test "${ac_cv_func_alloca_works+set}" = set; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697   cat >conftest.$ac_ext <<_ACEOF
21698 #line $LINENO "configure"
21699 /* confdefs.h.  */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h.  */
21704 #ifdef __GNUC__
21705 # define alloca __builtin_alloca
21706 #else
21707 # ifdef _MSC_VER
21708 #  include <malloc.h>
21709 #  define alloca _alloca
21710 # else
21711 #  if HAVE_ALLOCA_H
21712 #   include <alloca.h>
21713 #  else
21714 #   ifdef _AIX
21715  #pragma alloca
21716 #   else
21717 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21718 char *alloca ();
21719 #    endif
21720 #   endif
21721 #  endif
21722 # endif
21723 #endif
21724
21725 int
21726 main ()
21727 {
21728 char *p = (char *) alloca (1);
21729   ;
21730   return 0;
21731 }
21732 _ACEOF
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21735   (eval $ac_link) 2>&5
21736   ac_status=$?
21737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); } &&
21739          { ac_try='test -s conftest$ac_exeext'
21740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741   (eval $ac_try) 2>&5
21742   ac_status=$?
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); }; }; then
21745   ac_cv_func_alloca_works=yes
21746 else
21747   echo "$as_me: failed program was:" >&5
21748 sed 's/^/| /' conftest.$ac_ext >&5
21749
21750 ac_cv_func_alloca_works=no
21751 fi
21752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21753 fi
21754 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21755 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21756
21757 if test $ac_cv_func_alloca_works = yes; then
21758
21759 cat >>confdefs.h <<\_ACEOF
21760 #define HAVE_ALLOCA 1
21761 _ACEOF
21762
21763 else
21764   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21765 # that cause trouble.  Some versions do not even contain alloca or
21766 # contain a buggy version.  If you still want to use their alloca,
21767 # use ar to extract alloca.o from them instead of compiling alloca.c.
21768
21769 ALLOCA=alloca.$ac_objext
21770
21771 cat >>confdefs.h <<\_ACEOF
21772 #define C_ALLOCA 1
21773 _ACEOF
21774
21775
21776 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21777 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21778 if test "${ac_cv_os_cray+set}" = set; then
21779   echo $ECHO_N "(cached) $ECHO_C" >&6
21780 else
21781   cat >conftest.$ac_ext <<_ACEOF
21782 #line $LINENO "configure"
21783 /* confdefs.h.  */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h.  */
21788 #if defined(CRAY) && ! defined(CRAY2)
21789 webecray
21790 #else
21791 wenotbecray
21792 #endif
21793
21794 _ACEOF
21795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21796   $EGREP "webecray" >/dev/null 2>&1; then
21797   ac_cv_os_cray=yes
21798 else
21799   ac_cv_os_cray=no
21800 fi
21801 rm -f conftest*
21802
21803 fi
21804 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21805 echo "${ECHO_T}$ac_cv_os_cray" >&6
21806 if test $ac_cv_os_cray = yes; then
21807   for ac_func in _getb67 GETB67 getb67; do
21808     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21809 echo "$as_me:$LINENO: checking for $ac_func" >&5
21810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21811 if eval "test \"\${$as_ac_var+set}\" = set"; then
21812   echo $ECHO_N "(cached) $ECHO_C" >&6
21813 else
21814   cat >conftest.$ac_ext <<_ACEOF
21815 #line $LINENO "configure"
21816 /* confdefs.h.  */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h.  */
21821 /* System header to define __stub macros and hopefully few prototypes,
21822     which can conflict with char $ac_func (); below.
21823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21824     <limits.h> exists even on freestanding compilers.  */
21825 #ifdef __STDC__
21826 # include <limits.h>
21827 #else
21828 # include <assert.h>
21829 #endif
21830 /* Override any gcc2 internal prototype to avoid an error.  */
21831 #ifdef __cplusplus
21832 extern "C"
21833 {
21834 #endif
21835 /* We use char because int might match the return type of a gcc2
21836    builtin and then its argument prototype would still apply.  */
21837 char $ac_func ();
21838 /* The GNU C library defines this for functions which it implements
21839     to always fail with ENOSYS.  Some functions are actually named
21840     something starting with __ and the normal name is an alias.  */
21841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21842 choke me
21843 #else
21844 char (*f) () = $ac_func;
21845 #endif
21846 #ifdef __cplusplus
21847 }
21848 #endif
21849
21850 int
21851 main ()
21852 {
21853 return f != $ac_func;
21854   ;
21855   return 0;
21856 }
21857 _ACEOF
21858 rm -f conftest.$ac_objext conftest$ac_exeext
21859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21860   (eval $ac_link) 2>&5
21861   ac_status=$?
21862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); } &&
21864          { ac_try='test -s conftest$ac_exeext'
21865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866   (eval $ac_try) 2>&5
21867   ac_status=$?
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); }; }; then
21870   eval "$as_ac_var=yes"
21871 else
21872   echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21874
21875 eval "$as_ac_var=no"
21876 fi
21877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21878 fi
21879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21881 if test `eval echo '${'$as_ac_var'}'` = yes; then
21882
21883 cat >>confdefs.h <<_ACEOF
21884 #define CRAY_STACKSEG_END $ac_func
21885 _ACEOF
21886
21887     break
21888 fi
21889
21890   done
21891 fi
21892
21893 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21894 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21895 if test "${ac_cv_c_stack_direction+set}" = set; then
21896   echo $ECHO_N "(cached) $ECHO_C" >&6
21897 else
21898   if test "$cross_compiling" = yes; then
21899   ac_cv_c_stack_direction=0
21900 else
21901   cat >conftest.$ac_ext <<_ACEOF
21902 #line $LINENO "configure"
21903 /* confdefs.h.  */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h.  */
21908 int
21909 find_stack_direction ()
21910 {
21911   static char *addr = 0;
21912   auto char dummy;
21913   if (addr == 0)
21914     {
21915       addr = &dummy;
21916       return find_stack_direction ();
21917     }
21918   else
21919     return (&dummy > addr) ? 1 : -1;
21920 }
21921
21922 int
21923 main ()
21924 {
21925   exit (find_stack_direction () < 0);
21926 }
21927 _ACEOF
21928 rm -f conftest$ac_exeext
21929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21930   (eval $ac_link) 2>&5
21931   ac_status=$?
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935   (eval $ac_try) 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); }; }; then
21939   ac_cv_c_stack_direction=1
21940 else
21941   echo "$as_me: program exited with status $ac_status" >&5
21942 echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21944
21945 ( exit $ac_status )
21946 ac_cv_c_stack_direction=-1
21947 fi
21948 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21949 fi
21950 fi
21951 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21952 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21953
21954 cat >>confdefs.h <<_ACEOF
21955 #define STACK_DIRECTION $ac_cv_c_stack_direction
21956 _ACEOF
21957
21958
21959 fi
21960
21961 if test $ac_cv_c_compiler_gnu = yes; then
21962     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21963 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21964 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21965   echo $ECHO_N "(cached) $ECHO_C" >&6
21966 else
21967     ac_pattern="Autoconf.*'x'"
21968   cat >conftest.$ac_ext <<_ACEOF
21969 #line $LINENO "configure"
21970 /* confdefs.h.  */
21971 _ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h.  */
21975 #include <sgtty.h>
21976 Autoconf TIOCGETP
21977 _ACEOF
21978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21979   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21980   ac_cv_prog_gcc_traditional=yes
21981 else
21982   ac_cv_prog_gcc_traditional=no
21983 fi
21984 rm -f conftest*
21985
21986
21987   if test $ac_cv_prog_gcc_traditional = no; then
21988     cat >conftest.$ac_ext <<_ACEOF
21989 #line $LINENO "configure"
21990 /* confdefs.h.  */
21991 _ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h.  */
21995 #include <termio.h>
21996 Autoconf TCGETA
21997 _ACEOF
21998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21999   $EGREP "$ac_pattern" >/dev/null 2>&1; then
22000   ac_cv_prog_gcc_traditional=yes
22001 fi
22002 rm -f conftest*
22003
22004   fi
22005 fi
22006 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22007 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
22008   if test $ac_cv_prog_gcc_traditional = yes; then
22009     CC="$CC -traditional"
22010   fi
22011 fi
22012
22013 echo "$as_me:$LINENO: checking for working memcmp" >&5
22014 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22015 if test "${ac_cv_func_memcmp_working+set}" = set; then
22016   echo $ECHO_N "(cached) $ECHO_C" >&6
22017 else
22018   if test "$cross_compiling" = yes; then
22019   ac_cv_func_memcmp_working=no
22020 else
22021   cat >conftest.$ac_ext <<_ACEOF
22022 #line $LINENO "configure"
22023 /* confdefs.h.  */
22024 _ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h.  */
22028
22029 int
22030 main ()
22031 {
22032
22033   /* Some versions of memcmp are not 8-bit clean.  */
22034   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22035   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22036     exit (1);
22037
22038   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22039      or more and with at least one buffer not starting on a 4-byte boundary.
22040      William Lewis provided this test program.   */
22041   {
22042     char foo[21];
22043     char bar[21];
22044     int i;
22045     for (i = 0; i < 4; i++)
22046       {
22047         char *a = foo + i;
22048         char *b = bar + i;
22049         strcpy (a, "--------01111111");
22050         strcpy (b, "--------10000000");
22051         if (memcmp (a, b, 16) >= 0)
22052           exit (1);
22053       }
22054     exit (0);
22055   }
22056
22057   ;
22058   return 0;
22059 }
22060 _ACEOF
22061 rm -f conftest$ac_exeext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22063   (eval $ac_link) 2>&5
22064   ac_status=$?
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068   (eval $ac_try) 2>&5
22069   ac_status=$?
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); }; }; then
22072   ac_cv_func_memcmp_working=yes
22073 else
22074   echo "$as_me: program exited with status $ac_status" >&5
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078 ( exit $ac_status )
22079 ac_cv_func_memcmp_working=no
22080 fi
22081 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22082 fi
22083 fi
22084 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22085 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22086 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22087
22088
22089
22090 for ac_header in stdlib.h unistd.h
22091 do
22092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22094   echo "$as_me:$LINENO: checking for $ac_header" >&5
22095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22097   echo $ECHO_N "(cached) $ECHO_C" >&6
22098 fi
22099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22101 else
22102   # Is the header compilable?
22103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22105 cat >conftest.$ac_ext <<_ACEOF
22106 #line $LINENO "configure"
22107 /* confdefs.h.  */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h.  */
22112 $ac_includes_default
22113 #include <$ac_header>
22114 _ACEOF
22115 rm -f conftest.$ac_objext
22116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22117   (eval $ac_compile) 2>&5
22118   ac_status=$?
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); } &&
22121          { ac_try='test -s conftest.$ac_objext'
22122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123   (eval $ac_try) 2>&5
22124   ac_status=$?
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); }; }; then
22127   ac_header_compiler=yes
22128 else
22129   echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22131
22132 ac_header_compiler=no
22133 fi
22134 rm -f conftest.$ac_objext conftest.$ac_ext
22135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22136 echo "${ECHO_T}$ac_header_compiler" >&6
22137
22138 # Is the header present?
22139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22141 cat >conftest.$ac_ext <<_ACEOF
22142 #line $LINENO "configure"
22143 /* confdefs.h.  */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h.  */
22148 #include <$ac_header>
22149 _ACEOF
22150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22151   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22152   ac_status=$?
22153   grep -v '^ *+' conftest.er1 >conftest.err
22154   rm -f conftest.er1
22155   cat conftest.err >&5
22156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157   (exit $ac_status); } >/dev/null; then
22158   if test -s conftest.err; then
22159     ac_cpp_err=$ac_c_preproc_warn_flag
22160   else
22161     ac_cpp_err=
22162   fi
22163 else
22164   ac_cpp_err=yes
22165 fi
22166 if test -z "$ac_cpp_err"; then
22167   ac_header_preproc=yes
22168 else
22169   echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22171
22172   ac_header_preproc=no
22173 fi
22174 rm -f conftest.err conftest.$ac_ext
22175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22176 echo "${ECHO_T}$ac_header_preproc" >&6
22177
22178 # So?  What about this header?
22179 case $ac_header_compiler:$ac_header_preproc in
22180   yes:no )
22181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22185     (
22186       cat <<\_ASBOX
22187 ## ------------------------------------ ##
22188 ## Report this to bug-autoconf@gnu.org. ##
22189 ## ------------------------------------ ##
22190 _ASBOX
22191     ) |
22192       sed "s/^/$as_me: WARNING:     /" >&2
22193     ;;
22194   no:yes )
22195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22197     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22201     (
22202       cat <<\_ASBOX
22203 ## ------------------------------------ ##
22204 ## Report this to bug-autoconf@gnu.org. ##
22205 ## ------------------------------------ ##
22206 _ASBOX
22207     ) |
22208       sed "s/^/$as_me: WARNING:     /" >&2
22209     ;;
22210 esac
22211 echo "$as_me:$LINENO: checking for $ac_header" >&5
22212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22214   echo $ECHO_N "(cached) $ECHO_C" >&6
22215 else
22216   eval "$as_ac_Header=$ac_header_preproc"
22217 fi
22218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22220
22221 fi
22222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22223   cat >>confdefs.h <<_ACEOF
22224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22225 _ACEOF
22226
22227 fi
22228
22229 done
22230
22231
22232 for ac_func in getpagesize
22233 do
22234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22235 echo "$as_me:$LINENO: checking for $ac_func" >&5
22236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22237 if eval "test \"\${$as_ac_var+set}\" = set"; then
22238   echo $ECHO_N "(cached) $ECHO_C" >&6
22239 else
22240   cat >conftest.$ac_ext <<_ACEOF
22241 #line $LINENO "configure"
22242 /* confdefs.h.  */
22243 _ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h.  */
22247 /* System header to define __stub macros and hopefully few prototypes,
22248     which can conflict with char $ac_func (); below.
22249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22250     <limits.h> exists even on freestanding compilers.  */
22251 #ifdef __STDC__
22252 # include <limits.h>
22253 #else
22254 # include <assert.h>
22255 #endif
22256 /* Override any gcc2 internal prototype to avoid an error.  */
22257 #ifdef __cplusplus
22258 extern "C"
22259 {
22260 #endif
22261 /* We use char because int might match the return type of a gcc2
22262    builtin and then its argument prototype would still apply.  */
22263 char $ac_func ();
22264 /* The GNU C library defines this for functions which it implements
22265     to always fail with ENOSYS.  Some functions are actually named
22266     something starting with __ and the normal name is an alias.  */
22267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22268 choke me
22269 #else
22270 char (*f) () = $ac_func;
22271 #endif
22272 #ifdef __cplusplus
22273 }
22274 #endif
22275
22276 int
22277 main ()
22278 {
22279 return f != $ac_func;
22280   ;
22281   return 0;
22282 }
22283 _ACEOF
22284 rm -f conftest.$ac_objext conftest$ac_exeext
22285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22286   (eval $ac_link) 2>&5
22287   ac_status=$?
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); } &&
22290          { ac_try='test -s conftest$ac_exeext'
22291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292   (eval $ac_try) 2>&5
22293   ac_status=$?
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); }; }; then
22296   eval "$as_ac_var=yes"
22297 else
22298   echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22300
22301 eval "$as_ac_var=no"
22302 fi
22303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22304 fi
22305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22307 if test `eval echo '${'$as_ac_var'}'` = yes; then
22308   cat >>confdefs.h <<_ACEOF
22309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22310 _ACEOF
22311
22312 fi
22313 done
22314
22315 echo "$as_me:$LINENO: checking for working mmap" >&5
22316 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22317 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22318   echo $ECHO_N "(cached) $ECHO_C" >&6
22319 else
22320   if test "$cross_compiling" = yes; then
22321   ac_cv_func_mmap_fixed_mapped=no
22322 else
22323   cat >conftest.$ac_ext <<_ACEOF
22324 #line $LINENO "configure"
22325 /* confdefs.h.  */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h.  */
22330 $ac_includes_default
22331 /* malloc might have been renamed as rpl_malloc. */
22332 #undef malloc
22333
22334 /* Thanks to Mike Haertel and Jim Avera for this test.
22335    Here is a matrix of mmap possibilities:
22336         mmap private not fixed
22337         mmap private fixed at somewhere currently unmapped
22338         mmap private fixed at somewhere already mapped
22339         mmap shared not fixed
22340         mmap shared fixed at somewhere currently unmapped
22341         mmap shared fixed at somewhere already mapped
22342    For private mappings, we should verify that changes cannot be read()
22343    back from the file, nor mmap's back from the file at a different
22344    address.  (There have been systems where private was not correctly
22345    implemented like the infamous i386 svr4.0, and systems where the
22346    VM page cache was not coherent with the file system buffer cache
22347    like early versions of FreeBSD and possibly contemporary NetBSD.)
22348    For shared mappings, we should conversely verify that changes get
22349    propagated back to all the places they're supposed to be.
22350
22351    Grep wants private fixed already mapped.
22352    The main things grep needs to know about mmap are:
22353    * does it exist and is it safe to write into the mmap'd area
22354    * how to use it (BSD variants)  */
22355
22356 #include <fcntl.h>
22357 #include <sys/mman.h>
22358
22359 #if !STDC_HEADERS && !HAVE_STDLIB_H
22360 char *malloc ();
22361 #endif
22362
22363 /* This mess was copied from the GNU getpagesize.h.  */
22364 #if !HAVE_GETPAGESIZE
22365 /* Assume that all systems that can run configure have sys/param.h.  */
22366 # if !HAVE_SYS_PARAM_H
22367 #  define HAVE_SYS_PARAM_H 1
22368 # endif
22369
22370 # ifdef _SC_PAGESIZE
22371 #  define getpagesize() sysconf(_SC_PAGESIZE)
22372 # else /* no _SC_PAGESIZE */
22373 #  if HAVE_SYS_PARAM_H
22374 #   include <sys/param.h>
22375 #   ifdef EXEC_PAGESIZE
22376 #    define getpagesize() EXEC_PAGESIZE
22377 #   else /* no EXEC_PAGESIZE */
22378 #    ifdef NBPG
22379 #     define getpagesize() NBPG * CLSIZE
22380 #     ifndef CLSIZE
22381 #      define CLSIZE 1
22382 #     endif /* no CLSIZE */
22383 #    else /* no NBPG */
22384 #     ifdef NBPC
22385 #      define getpagesize() NBPC
22386 #     else /* no NBPC */
22387 #      ifdef PAGESIZE
22388 #       define getpagesize() PAGESIZE
22389 #      endif /* PAGESIZE */
22390 #     endif /* no NBPC */
22391 #    endif /* no NBPG */
22392 #   endif /* no EXEC_PAGESIZE */
22393 #  else /* no HAVE_SYS_PARAM_H */
22394 #   define getpagesize() 8192   /* punt totally */
22395 #  endif /* no HAVE_SYS_PARAM_H */
22396 # endif /* no _SC_PAGESIZE */
22397
22398 #endif /* no HAVE_GETPAGESIZE */
22399
22400 int
22401 main ()
22402 {
22403   char *data, *data2, *data3;
22404   int i, pagesize;
22405   int fd;
22406
22407   pagesize = getpagesize ();
22408
22409   /* First, make a file with some known garbage in it. */
22410   data = (char *) malloc (pagesize);
22411   if (!data)
22412     exit (1);
22413   for (i = 0; i < pagesize; ++i)
22414     *(data + i) = rand ();
22415   umask (0);
22416   fd = creat ("conftest.mmap", 0600);
22417   if (fd < 0)
22418     exit (1);
22419   if (write (fd, data, pagesize) != pagesize)
22420     exit (1);
22421   close (fd);
22422
22423   /* Next, try to mmap the file at a fixed address which already has
22424      something else allocated at it.  If we can, also make sure that
22425      we see the same garbage.  */
22426   fd = open ("conftest.mmap", O_RDWR);
22427   if (fd < 0)
22428     exit (1);
22429   data2 = (char *) malloc (2 * pagesize);
22430   if (!data2)
22431     exit (1);
22432   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22433   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22434                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22435     exit (1);
22436   for (i = 0; i < pagesize; ++i)
22437     if (*(data + i) != *(data2 + i))
22438       exit (1);
22439
22440   /* Finally, make sure that changes to the mapped area do not
22441      percolate back to the file as seen by read().  (This is a bug on
22442      some variants of i386 svr4.0.)  */
22443   for (i = 0; i < pagesize; ++i)
22444     *(data2 + i) = *(data2 + i) + 1;
22445   data3 = (char *) malloc (pagesize);
22446   if (!data3)
22447     exit (1);
22448   if (read (fd, data3, pagesize) != pagesize)
22449     exit (1);
22450   for (i = 0; i < pagesize; ++i)
22451     if (*(data + i) != *(data3 + i))
22452       exit (1);
22453   close (fd);
22454   exit (0);
22455 }
22456 _ACEOF
22457 rm -f conftest$ac_exeext
22458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22459   (eval $ac_link) 2>&5
22460   ac_status=$?
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464   (eval $ac_try) 2>&5
22465   ac_status=$?
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); }; }; then
22468   ac_cv_func_mmap_fixed_mapped=yes
22469 else
22470   echo "$as_me: program exited with status $ac_status" >&5
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22473
22474 ( exit $ac_status )
22475 ac_cv_func_mmap_fixed_mapped=no
22476 fi
22477 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22478 fi
22479 fi
22480 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22481 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22482 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22483
22484 cat >>confdefs.h <<\_ACEOF
22485 #define HAVE_MMAP 1
22486 _ACEOF
22487
22488 fi
22489 rm -f conftest.mmap
22490
22491 echo "$as_me:$LINENO: checking for mmap of files" >&5
22492 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22493 if test "${ac_cv_func_mmap_file+set}" = set; then
22494   echo $ECHO_N "(cached) $ECHO_C" >&6
22495 else
22496
22497
22498   ac_ext=c
22499 ac_cpp='$CPP $CPPFLAGS'
22500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22503
22504   if test "$cross_compiling" = yes; then
22505   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22506 See \`config.log' for more details." >&5
22507 echo "$as_me: error: cannot run test program while cross compiling
22508 See \`config.log' for more details." >&2;}
22509    { (exit 1); exit 1; }; }
22510 else
22511   cat >conftest.$ac_ext <<_ACEOF
22512 #line $LINENO "configure"
22513 /* confdefs.h.  */
22514 _ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h.  */
22518
22519 #ifdef HAVE_SYS_TYPES_H
22520 #include <sys/types.h>
22521 #endif
22522
22523 #ifdef HAVE_SYS_MMAN_H
22524 #include <sys/mman.h>
22525 #endif
22526
22527 #ifdef HAVE_FCNTL_H
22528 #include <fcntl.h>
22529 #endif
22530
22531   int fd;
22532   int main () {
22533   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22534 _ACEOF
22535 rm -f conftest$ac_exeext
22536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22537   (eval $ac_link) 2>&5
22538   ac_status=$?
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542   (eval $ac_try) 2>&5
22543   ac_status=$?
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); }; }; then
22546   ac_cv_func_mmap_file=yes
22547 else
22548   echo "$as_me: program exited with status $ac_status" >&5
22549 echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22551
22552 ( exit $ac_status )
22553 ac_cv_func_mmap_file=no
22554 fi
22555 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22556 fi
22557   ac_ext=c
22558 ac_cpp='$CPP $CPPFLAGS'
22559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22562
22563
22564 fi
22565 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22566 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22567 if test "$ac_cv_func_mmap_file" = yes; then
22568
22569 cat >>confdefs.h <<\_ACEOF
22570 #define HAVE_MMAP_FILE
22571 _ACEOF
22572
22573    MMAP_FILE=yes
22574
22575 fi
22576
22577 if test ${ac_cv_func_mmap_file} = "no"
22578 then
22579         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22580 echo "$as_me: error: mmap() of files required but not found" >&2;}
22581    { (exit 1); exit 1; }; }
22582 fi
22583 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22584 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22585 if test "${ac_cv_header_mmap_anon+set}" = set; then
22586   echo $ECHO_N "(cached) $ECHO_C" >&6
22587 else
22588
22589
22590   ac_ext=c
22591 ac_cpp='$CPP $CPPFLAGS'
22592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22595
22596   cat >conftest.$ac_ext <<_ACEOF
22597 #line $LINENO "configure"
22598 /* confdefs.h.  */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h.  */
22603 #include <sys/mman.h>
22604   #include <unistd.h>
22605   #include <fcntl.h>
22606 int
22607 main ()
22608 {
22609 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22610   ;
22611   return 0;
22612 }
22613 _ACEOF
22614 rm -f conftest.$ac_objext
22615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22616   (eval $ac_compile) 2>&5
22617   ac_status=$?
22618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619   (exit $ac_status); } &&
22620          { ac_try='test -s conftest.$ac_objext'
22621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622   (eval $ac_try) 2>&5
22623   ac_status=$?
22624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625   (exit $ac_status); }; }; then
22626   ac_cv_header_mmap_anon=yes
22627 else
22628   echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22630
22631 ac_cv_header_mmap_anon=no
22632 fi
22633 rm -f conftest.$ac_objext conftest.$ac_ext
22634   ac_ext=c
22635 ac_cpp='$CPP $CPPFLAGS'
22636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22639
22640
22641 fi
22642 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22643 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22644 if test "$ac_cv_header_mmap_anon" = yes; then
22645
22646 cat >>confdefs.h <<\_ACEOF
22647 #define HAVE_MMAP_ANONYMOUS
22648 _ACEOF
22649
22650 fi
22651
22652 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22653 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22654 if test "${ac_cv_type_signal+set}" = set; then
22655   echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657   cat >conftest.$ac_ext <<_ACEOF
22658 #line $LINENO "configure"
22659 /* confdefs.h.  */
22660 _ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h.  */
22664 #include <sys/types.h>
22665 #include <signal.h>
22666 #ifdef signal
22667 # undef signal
22668 #endif
22669 #ifdef __cplusplus
22670 extern "C" void (*signal (int, void (*)(int)))(int);
22671 #else
22672 void (*signal ()) ();
22673 #endif
22674
22675 int
22676 main ()
22677 {
22678 int i;
22679   ;
22680   return 0;
22681 }
22682 _ACEOF
22683 rm -f conftest.$ac_objext
22684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22685   (eval $ac_compile) 2>&5
22686   ac_status=$?
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); } &&
22689          { ac_try='test -s conftest.$ac_objext'
22690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691   (eval $ac_try) 2>&5
22692   ac_status=$?
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); }; }; then
22695   ac_cv_type_signal=void
22696 else
22697   echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700 ac_cv_type_signal=int
22701 fi
22702 rm -f conftest.$ac_objext conftest.$ac_ext
22703 fi
22704 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22705 echo "${ECHO_T}$ac_cv_type_signal" >&6
22706
22707 cat >>confdefs.h <<_ACEOF
22708 #define RETSIGTYPE $ac_cv_type_signal
22709 _ACEOF
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22724 do
22725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22726 echo "$as_me:$LINENO: checking for $ac_func" >&5
22727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22728 if eval "test \"\${$as_ac_var+set}\" = set"; then
22729   echo $ECHO_N "(cached) $ECHO_C" >&6
22730 else
22731   cat >conftest.$ac_ext <<_ACEOF
22732 #line $LINENO "configure"
22733 /* confdefs.h.  */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h.  */
22738 /* System header to define __stub macros and hopefully few prototypes,
22739     which can conflict with char $ac_func (); below.
22740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22741     <limits.h> exists even on freestanding compilers.  */
22742 #ifdef __STDC__
22743 # include <limits.h>
22744 #else
22745 # include <assert.h>
22746 #endif
22747 /* Override any gcc2 internal prototype to avoid an error.  */
22748 #ifdef __cplusplus
22749 extern "C"
22750 {
22751 #endif
22752 /* We use char because int might match the return type of a gcc2
22753    builtin and then its argument prototype would still apply.  */
22754 char $ac_func ();
22755 /* The GNU C library defines this for functions which it implements
22756     to always fail with ENOSYS.  Some functions are actually named
22757     something starting with __ and the normal name is an alias.  */
22758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22759 choke me
22760 #else
22761 char (*f) () = $ac_func;
22762 #endif
22763 #ifdef __cplusplus
22764 }
22765 #endif
22766
22767 int
22768 main ()
22769 {
22770 return f != $ac_func;
22771   ;
22772   return 0;
22773 }
22774 _ACEOF
22775 rm -f conftest.$ac_objext conftest$ac_exeext
22776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22777   (eval $ac_link) 2>&5
22778   ac_status=$?
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); } &&
22781          { ac_try='test -s conftest$ac_exeext'
22782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783   (eval $ac_try) 2>&5
22784   ac_status=$?
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); }; }; then
22787   eval "$as_ac_var=yes"
22788 else
22789   echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791
22792 eval "$as_ac_var=no"
22793 fi
22794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22795 fi
22796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22798 if test `eval echo '${'$as_ac_var'}'` = yes; then
22799   cat >>confdefs.h <<_ACEOF
22800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22801 _ACEOF
22802
22803 fi
22804 done
22805
22806
22807
22808 echo "$as_me:$LINENO: checking for mmap" >&5
22809 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22810 if test "${ac_cv_func_mmap+set}" = set; then
22811   echo $ECHO_N "(cached) $ECHO_C" >&6
22812 else
22813   cat >conftest.$ac_ext <<_ACEOF
22814 #line $LINENO "configure"
22815 /* confdefs.h.  */
22816 _ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h.  */
22820 /* System header to define __stub macros and hopefully few prototypes,
22821     which can conflict with char mmap (); below.
22822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22823     <limits.h> exists even on freestanding compilers.  */
22824 #ifdef __STDC__
22825 # include <limits.h>
22826 #else
22827 # include <assert.h>
22828 #endif
22829 /* Override any gcc2 internal prototype to avoid an error.  */
22830 #ifdef __cplusplus
22831 extern "C"
22832 {
22833 #endif
22834 /* We use char because int might match the return type of a gcc2
22835    builtin and then its argument prototype would still apply.  */
22836 char mmap ();
22837 /* The GNU C library defines this for functions which it implements
22838     to always fail with ENOSYS.  Some functions are actually named
22839     something starting with __ and the normal name is an alias.  */
22840 #if defined (__stub_mmap) || defined (__stub___mmap)
22841 choke me
22842 #else
22843 char (*f) () = mmap;
22844 #endif
22845 #ifdef __cplusplus
22846 }
22847 #endif
22848
22849 int
22850 main ()
22851 {
22852 return f != mmap;
22853   ;
22854   return 0;
22855 }
22856 _ACEOF
22857 rm -f conftest.$ac_objext conftest$ac_exeext
22858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22859   (eval $ac_link) 2>&5
22860   ac_status=$?
22861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862   (exit $ac_status); } &&
22863          { ac_try='test -s conftest$ac_exeext'
22864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865   (eval $ac_try) 2>&5
22866   ac_status=$?
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); }; }; then
22869   ac_cv_func_mmap=yes
22870 else
22871   echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22873
22874 ac_cv_func_mmap=no
22875 fi
22876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22877 fi
22878 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22879 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22880 if test $ac_cv_func_mmap = yes; then
22881   :
22882 else
22883   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22884 echo "$as_me: error: Function mmap() required but not found" >&2;}
22885    { (exit 1); exit 1; }; }
22886 fi
22887
22888 echo "$as_me:$LINENO: checking for mprotect" >&5
22889 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22890 if test "${ac_cv_func_mprotect+set}" = set; then
22891   echo $ECHO_N "(cached) $ECHO_C" >&6
22892 else
22893   cat >conftest.$ac_ext <<_ACEOF
22894 #line $LINENO "configure"
22895 /* confdefs.h.  */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h.  */
22900 /* System header to define __stub macros and hopefully few prototypes,
22901     which can conflict with char mprotect (); below.
22902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22903     <limits.h> exists even on freestanding compilers.  */
22904 #ifdef __STDC__
22905 # include <limits.h>
22906 #else
22907 # include <assert.h>
22908 #endif
22909 /* Override any gcc2 internal prototype to avoid an error.  */
22910 #ifdef __cplusplus
22911 extern "C"
22912 {
22913 #endif
22914 /* We use char because int might match the return type of a gcc2
22915    builtin and then its argument prototype would still apply.  */
22916 char mprotect ();
22917 /* The GNU C library defines this for functions which it implements
22918     to always fail with ENOSYS.  Some functions are actually named
22919     something starting with __ and the normal name is an alias.  */
22920 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22921 choke me
22922 #else
22923 char (*f) () = mprotect;
22924 #endif
22925 #ifdef __cplusplus
22926 }
22927 #endif
22928
22929 int
22930 main ()
22931 {
22932 return f != mprotect;
22933   ;
22934   return 0;
22935 }
22936 _ACEOF
22937 rm -f conftest.$ac_objext conftest$ac_exeext
22938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22939   (eval $ac_link) 2>&5
22940   ac_status=$?
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); } &&
22943          { ac_try='test -s conftest$ac_exeext'
22944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945   (eval $ac_try) 2>&5
22946   ac_status=$?
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); }; }; then
22949   ac_cv_func_mprotect=yes
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954 ac_cv_func_mprotect=no
22955 fi
22956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22957 fi
22958 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22959 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22960 if test $ac_cv_func_mprotect = yes; then
22961   :
22962 else
22963   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22964 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22965    { (exit 1); exit 1; }; }
22966 fi
22967
22968
22969
22970 # Check whether --enable-purify or --disable-purify was given.
22971 if test "${enable_purify+set}" = set; then
22972   enableval="$enable_purify"
22973
22974 else
22975   enableval="no"
22976 fi;
22977 if test ${enableval} = "no"
22978 then
22979         ENABLE_PURIFY=
22980
22981 else
22982         ENABLE_PURIFY=ENABLE_PURIFY=1
22983
22984 fi
22985
22986 # Check whether --enable-optimized or --disable-optimized was given.
22987 if test "${enable_optimized+set}" = set; then
22988   enableval="$enable_optimized"
22989
22990 else
22991   enableval=no
22992 fi;
22993 if test ${enableval} = "no"
22994 then
22995         ENABLE_OPTIMIZED=
22996
22997 else
22998         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22999
23000 fi
23001
23002 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23003 if test "${enable_spec2000+set}" = set; then
23004   enableval="$enable_spec2000"
23005
23006 else
23007   enableval=no
23008 fi;
23009 if test ${enableval} = "no"
23010 then
23011         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
23012         then
23013                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23014
23015                 USE_SPEC=USE_SPEC=1
23016
23017         else
23018                 USE_SPEC=
23019
23020
23021         fi
23022 else
23023         if test ${enableval} = ""
23024         then
23025                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23026
23027         else
23028                 SPEC_ROOT=${enableval}
23029
23030         fi
23031         USE_SPEC=USE_SPEC=1
23032
23033 fi
23034
23035 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23036 if test "${enable_precompiled_bytecode+set}" = set; then
23037   enableval="$enable_precompiled_bytecode"
23038
23039 else
23040   enableval=no
23041 fi;
23042 if test ${enableval} = "no"
23043 then
23044         UPB=
23045
23046 else
23047         UPB=USE_PRECOMPILED_BYTECODE=1
23048
23049 fi
23050
23051
23052 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23053 if test "${enable_llc_diffs+set}" = set; then
23054   enableval="$enable_llc_diffs"
23055
23056 else
23057   enableval=yes
23058 fi;
23059 if test ${enableval} = "no"
23060 then
23061         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23062
23063 else
23064         DISABLE_LLC_DIFFS=
23065
23066 fi
23067
23068 # Check whether --enable-jit or --disable-jit was given.
23069 if test "${enable_jit+set}" = set; then
23070   enableval="$enable_jit"
23071
23072 else
23073   enableval=default
23074 fi;
23075
23076 if test ${enableval} = "no"
23077 then
23078         JIT=
23079
23080 else
23081         case $target in
23082                 *i*86*)
23083                         JIT=TARGET_HAS_JIT=1
23084
23085                         ;;
23086                 *sparc*)
23087                         JIT=TARGET_HAS_JIT=1
23088
23089                         ;;
23090                 *)
23091                         JIT=
23092
23093                         ;;
23094         esac
23095 fi
23096
23097
23098
23099 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23100 if test "${with_llvmgccdir+set}" = set; then
23101   withval="$with_llvmgccdir"
23102   LLVMGCCDIR=$withval
23103
23104 fi;
23105
23106 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23107 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23108 LLVM_GCC_CHECK=no
23109 if test -d "$LLVMGCCDIR"
23110 then
23111         if test -x "$LLVMGCCDIR/bin/gcc"
23112         then
23113                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23114         fi
23115 fi
23116 llvmgccwarn=no
23117 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23118 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23119 if test "$LLVM_GCC_CHECK" = "no"
23120 then
23121     llvmgccwarn=yes
23122 fi
23123
23124 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23125 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23126 LLVM_GCC_SANE=no
23127 if test -x "$LLVM_GCC_CHECK"
23128 then
23129         cp /dev/null conftest.c
23130     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23131         if test $? -eq 0
23132         then
23133                 LLVM_GCC_SANE=yes
23134         fi
23135         rm conftest.c
23136 fi
23137 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23138 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23139 if test "$LLVM_GCC_SANE" = "no"
23140 then
23141         llvmgccwarn=yes
23142 fi
23143
23144
23145 # Check whether --with-bcrepos or --without-bcrepos was given.
23146 if test "${with_bcrepos+set}" = set; then
23147   withval="$with_bcrepos"
23148   BCR=$withval
23149
23150 else
23151   BCR=/home/vadve/lattner/LLVMPrograms
23152
23153 fi;
23154
23155
23156 # Check whether --with-papi or --without-papi was given.
23157 if test "${with_papi+set}" = set; then
23158   withval="$with_papi"
23159   PAPIDIR=$withval
23160
23161 else
23162   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23163
23164 fi;
23165
23166
23167 # Check whether --with-purify or --without-purify was given.
23168 if test "${with_purify+set}" = set; then
23169   withval="$with_purify"
23170   PURIFY=$withval
23171
23172 fi;
23173
23174
23175           ac_config_files="$ac_config_files Makefile.config"
23176 cat >confcache <<\_ACEOF
23177 # This file is a shell script that caches the results of configure
23178 # tests run on this system so they can be shared between configure
23179 # scripts and configure runs, see configure's option --config-cache.
23180 # It is not useful on other systems.  If it contains results you don't
23181 # want to keep, you may remove or edit it.
23182 #
23183 # config.status only pays attention to the cache file if you give it
23184 # the --recheck option to rerun configure.
23185 #
23186 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23187 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23188 # following values.
23189
23190 _ACEOF
23191
23192 # The following way of writing the cache mishandles newlines in values,
23193 # but we know of no workaround that is simple, portable, and efficient.
23194 # So, don't put newlines in cache variables' values.
23195 # Ultrix sh set writes to stderr and can't be redirected directly,
23196 # and sets the high bit in the cache file unless we assign to the vars.
23197 {
23198   (set) 2>&1 |
23199     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23200     *ac_space=\ *)
23201       # `set' does not quote correctly, so add quotes (double-quote
23202       # substitution turns \\\\ into \\, and sed turns \\ into \).
23203       sed -n \
23204         "s/'/'\\\\''/g;
23205           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23206       ;;
23207     *)
23208       # `set' quotes correctly as required by POSIX, so do not add quotes.
23209       sed -n \
23210         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23211       ;;
23212     esac;
23213 } |
23214   sed '
23215      t clear
23216      : clear
23217      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23218      t end
23219      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23220      : end' >>confcache
23221 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23222   if test -w $cache_file; then
23223     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23224     cat confcache >$cache_file
23225   else
23226     echo "not updating unwritable cache $cache_file"
23227   fi
23228 fi
23229 rm -f confcache
23230
23231 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23232 # Let make expand exec_prefix.
23233 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23234
23235 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23236 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23237 # trailing colons and then remove the whole line if VPATH becomes empty
23238 # (actually we leave an empty line to preserve line numbers).
23239 if test "x$srcdir" = x.; then
23240   ac_vpsub='/^[         ]*VPATH[        ]*=/{
23241 s/:*\$(srcdir):*/:/;
23242 s/:*\${srcdir}:*/:/;
23243 s/:*@srcdir@:*/:/;
23244 s/^\([^=]*=[    ]*\):*/\1/;
23245 s/:*$//;
23246 s/^[^=]*=[      ]*$//;
23247 }'
23248 fi
23249
23250 DEFS=-DHAVE_CONFIG_H
23251
23252 ac_libobjs=
23253 ac_ltlibobjs=
23254 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23255   # 1. Remove the extension, and $U if already installed.
23256   ac_i=`echo "$ac_i" |
23257          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23258   # 2. Add them.
23259   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23260   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23261 done
23262 LIBOBJS=$ac_libobjs
23263
23264 LTLIBOBJS=$ac_ltlibobjs
23265
23266
23267
23268 : ${CONFIG_STATUS=./config.status}
23269 ac_clean_files_save=$ac_clean_files
23270 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23271 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23272 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23273 cat >$CONFIG_STATUS <<_ACEOF
23274 #! $SHELL
23275 # Generated by $as_me.
23276 # Run this file to recreate the current configuration.
23277 # Compiler output produced by configure, useful for debugging
23278 # configure, is in config.log if it exists.
23279
23280 debug=false
23281 ac_cs_recheck=false
23282 ac_cs_silent=false
23283 SHELL=\${CONFIG_SHELL-$SHELL}
23284 _ACEOF
23285
23286 cat >>$CONFIG_STATUS <<\_ACEOF
23287 ## --------------------- ##
23288 ## M4sh Initialization.  ##
23289 ## --------------------- ##
23290
23291 # Be Bourne compatible
23292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23293   emulate sh
23294   NULLCMD=:
23295   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23296   # is contrary to our usage.  Disable this feature.
23297   alias -g '${1+"$@"}'='"$@"'
23298 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23299   set -o posix
23300 fi
23301
23302 # Support unset when possible.
23303 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23304   as_unset=unset
23305 else
23306   as_unset=false
23307 fi
23308
23309
23310 # Work around bugs in pre-3.0 UWIN ksh.
23311 $as_unset ENV MAIL MAILPATH
23312 PS1='$ '
23313 PS2='> '
23314 PS4='+ '
23315
23316 # NLS nuisances.
23317 for as_var in \
23318   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23319   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23320   LC_TELEPHONE LC_TIME
23321 do
23322   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23323     eval $as_var=C; export $as_var
23324   else
23325     $as_unset $as_var
23326   fi
23327 done
23328
23329 # Required to use basename.
23330 if expr a : '\(a\)' >/dev/null 2>&1; then
23331   as_expr=expr
23332 else
23333   as_expr=false
23334 fi
23335
23336 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23337   as_basename=basename
23338 else
23339   as_basename=false
23340 fi
23341
23342
23343 # Name of the executable.
23344 as_me=`$as_basename "$0" ||
23345 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23346          X"$0" : 'X\(//\)$' \| \
23347          X"$0" : 'X\(/\)$' \| \
23348          .     : '\(.\)' 2>/dev/null ||
23349 echo X/"$0" |
23350     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23351           /^X\/\(\/\/\)$/{ s//\1/; q; }
23352           /^X\/\(\/\).*/{ s//\1/; q; }
23353           s/.*/./; q'`
23354
23355
23356 # PATH needs CR, and LINENO needs CR and PATH.
23357 # Avoid depending upon Character Ranges.
23358 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23359 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23360 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23361 as_cr_digits='0123456789'
23362 as_cr_alnum=$as_cr_Letters$as_cr_digits
23363
23364 # The user is always right.
23365 if test "${PATH_SEPARATOR+set}" != set; then
23366   echo "#! /bin/sh" >conf$$.sh
23367   echo  "exit 0"   >>conf$$.sh
23368   chmod +x conf$$.sh
23369   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23370     PATH_SEPARATOR=';'
23371   else
23372     PATH_SEPARATOR=:
23373   fi
23374   rm -f conf$$.sh
23375 fi
23376
23377
23378   as_lineno_1=$LINENO
23379   as_lineno_2=$LINENO
23380   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23381   test "x$as_lineno_1" != "x$as_lineno_2" &&
23382   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23383   # Find who we are.  Look in the path if we contain no path at all
23384   # relative or not.
23385   case $0 in
23386     *[\\/]* ) as_myself=$0 ;;
23387     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23388 for as_dir in $PATH
23389 do
23390   IFS=$as_save_IFS
23391   test -z "$as_dir" && as_dir=.
23392   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23393 done
23394
23395        ;;
23396   esac
23397   # We did not find ourselves, most probably we were run as `sh COMMAND'
23398   # in which case we are not to be found in the path.
23399   if test "x$as_myself" = x; then
23400     as_myself=$0
23401   fi
23402   if test ! -f "$as_myself"; then
23403     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23404 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23405    { (exit 1); exit 1; }; }
23406   fi
23407   case $CONFIG_SHELL in
23408   '')
23409     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23410 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23411 do
23412   IFS=$as_save_IFS
23413   test -z "$as_dir" && as_dir=.
23414   for as_base in sh bash ksh sh5; do
23415          case $as_dir in
23416          /*)
23417            if ("$as_dir/$as_base" -c '
23418   as_lineno_1=$LINENO
23419   as_lineno_2=$LINENO
23420   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23421   test "x$as_lineno_1" != "x$as_lineno_2" &&
23422   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23423              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23424              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23425              CONFIG_SHELL=$as_dir/$as_base
23426              export CONFIG_SHELL
23427              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23428            fi;;
23429          esac
23430        done
23431 done
23432 ;;
23433   esac
23434
23435   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23436   # uniformly replaced by the line number.  The first 'sed' inserts a
23437   # line-number line before each line; the second 'sed' does the real
23438   # work.  The second script uses 'N' to pair each line-number line
23439   # with the numbered line, and appends trailing '-' during
23440   # substitution so that $LINENO is not a special case at line end.
23441   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23442   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23443   sed '=' <$as_myself |
23444     sed '
23445       N
23446       s,$,-,
23447       : loop
23448       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23449       t loop
23450       s,-$,,
23451       s,^['$as_cr_digits']*\n,,
23452     ' >$as_me.lineno &&
23453   chmod +x $as_me.lineno ||
23454     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23455 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23456    { (exit 1); exit 1; }; }
23457
23458   # Don't try to exec as it changes $[0], causing all sort of problems
23459   # (the dirname of $[0] is not the place where we might find the
23460   # original and so on.  Autoconf is especially sensible to this).
23461   . ./$as_me.lineno
23462   # Exit status is that of the last command.
23463   exit
23464 }
23465
23466
23467 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23468   *c*,-n*) ECHO_N= ECHO_C='
23469 ' ECHO_T='      ' ;;
23470   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23471   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23472 esac
23473
23474 if expr a : '\(a\)' >/dev/null 2>&1; then
23475   as_expr=expr
23476 else
23477   as_expr=false
23478 fi
23479
23480 rm -f conf$$ conf$$.exe conf$$.file
23481 echo >conf$$.file
23482 if ln -s conf$$.file conf$$ 2>/dev/null; then
23483   # We could just check for DJGPP; but this test a) works b) is more generic
23484   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23485   if test -f conf$$.exe; then
23486     # Don't use ln at all; we don't have any links
23487     as_ln_s='cp -p'
23488   else
23489     as_ln_s='ln -s'
23490   fi
23491 elif ln conf$$.file conf$$ 2>/dev/null; then
23492   as_ln_s=ln
23493 else
23494   as_ln_s='cp -p'
23495 fi
23496 rm -f conf$$ conf$$.exe conf$$.file
23497
23498 if mkdir -p . 2>/dev/null; then
23499   as_mkdir_p=:
23500 else
23501   as_mkdir_p=false
23502 fi
23503
23504 as_executable_p="test -f"
23505
23506 # Sed expression to map a string onto a valid CPP name.
23507 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23508
23509 # Sed expression to map a string onto a valid variable name.
23510 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23511
23512
23513 # IFS
23514 # We need space, tab and new line, in precisely that order.
23515 as_nl='
23516 '
23517 IFS="   $as_nl"
23518
23519 # CDPATH.
23520 $as_unset CDPATH
23521
23522 exec 6>&1
23523
23524 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23525 # report actual input values of CONFIG_FILES etc. instead of their
23526 # values after options handling.  Logging --version etc. is OK.
23527 exec 5>>config.log
23528 {
23529   echo
23530   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23531 ## Running $as_me. ##
23532 _ASBOX
23533 } >&5
23534 cat >&5 <<_CSEOF
23535
23536 This file was extended by [LLVM] $as_me [1.0], which was
23537 generated by GNU Autoconf 2.57.  Invocation command line was
23538
23539   CONFIG_FILES    = $CONFIG_FILES
23540   CONFIG_HEADERS  = $CONFIG_HEADERS
23541   CONFIG_LINKS    = $CONFIG_LINKS
23542   CONFIG_COMMANDS = $CONFIG_COMMANDS
23543   $ $0 $@
23544
23545 _CSEOF
23546 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23547 echo >&5
23548 _ACEOF
23549
23550 # Files that config.status was made for.
23551 if test -n "$ac_config_files"; then
23552   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23553 fi
23554
23555 if test -n "$ac_config_headers"; then
23556   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23557 fi
23558
23559 if test -n "$ac_config_links"; then
23560   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23561 fi
23562
23563 if test -n "$ac_config_commands"; then
23564   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23565 fi
23566
23567 cat >>$CONFIG_STATUS <<\_ACEOF
23568
23569 ac_cs_usage="\
23570 \`$as_me' instantiates files from templates according to the
23571 current configuration.
23572
23573 Usage: $0 [OPTIONS] [FILE]...
23574
23575   -h, --help       print this help, then exit
23576   -V, --version    print version number, then exit
23577   -q, --quiet      do not print progress messages
23578   -d, --debug      don't remove temporary files
23579       --recheck    update $as_me by reconfiguring in the same conditions
23580   --file=FILE[:TEMPLATE]
23581                    instantiate the configuration file FILE
23582   --header=FILE[:TEMPLATE]
23583                    instantiate the configuration header FILE
23584
23585 Configuration files:
23586 $config_files
23587
23588 Configuration headers:
23589 $config_headers
23590
23591 Configuration commands:
23592 $config_commands
23593
23594 Report bugs to <bug-autoconf@gnu.org>."
23595 _ACEOF
23596
23597 cat >>$CONFIG_STATUS <<_ACEOF
23598 ac_cs_version="\\
23599 [LLVM] config.status [1.0]
23600 configured by $0, generated by GNU Autoconf 2.57,
23601   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23602
23603 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23604 Free Software Foundation, Inc.
23605 This config.status script is free software; the Free Software Foundation
23606 gives unlimited permission to copy, distribute and modify it."
23607 srcdir=$srcdir
23608 INSTALL="$INSTALL"
23609 _ACEOF
23610
23611 cat >>$CONFIG_STATUS <<\_ACEOF
23612 # If no file are specified by the user, then we need to provide default
23613 # value.  By we need to know if files were specified by the user.
23614 ac_need_defaults=:
23615 while test $# != 0
23616 do
23617   case $1 in
23618   --*=*)
23619     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23620     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23621     ac_shift=:
23622     ;;
23623   -*)
23624     ac_option=$1
23625     ac_optarg=$2
23626     ac_shift=shift
23627     ;;
23628   *) # This is not an option, so the user has probably given explicit
23629      # arguments.
23630      ac_option=$1
23631      ac_need_defaults=false;;
23632   esac
23633
23634   case $ac_option in
23635   # Handling of the options.
23636 _ACEOF
23637 cat >>$CONFIG_STATUS <<\_ACEOF
23638   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23639     ac_cs_recheck=: ;;
23640   --version | --vers* | -V )
23641     echo "$ac_cs_version"; exit 0 ;;
23642   --he | --h)
23643     # Conflict between --help and --header
23644     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23645 Try \`$0 --help' for more information." >&5
23646 echo "$as_me: error: ambiguous option: $1
23647 Try \`$0 --help' for more information." >&2;}
23648    { (exit 1); exit 1; }; };;
23649   --help | --hel | -h )
23650     echo "$ac_cs_usage"; exit 0 ;;
23651   --debug | --d* | -d )
23652     debug=: ;;
23653   --file | --fil | --fi | --f )
23654     $ac_shift
23655     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23656     ac_need_defaults=false;;
23657   --header | --heade | --head | --hea )
23658     $ac_shift
23659     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23660     ac_need_defaults=false;;
23661   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23662   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23663     ac_cs_silent=: ;;
23664
23665   # This is an error.
23666   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23667 Try \`$0 --help' for more information." >&5
23668 echo "$as_me: error: unrecognized option: $1
23669 Try \`$0 --help' for more information." >&2;}
23670    { (exit 1); exit 1; }; } ;;
23671
23672   *) ac_config_targets="$ac_config_targets $1" ;;
23673
23674   esac
23675   shift
23676 done
23677
23678 ac_configure_extra_args=
23679
23680 if $ac_cs_silent; then
23681   exec 6>/dev/null
23682   ac_configure_extra_args="$ac_configure_extra_args --silent"
23683 fi
23684
23685 _ACEOF
23686 cat >>$CONFIG_STATUS <<_ACEOF
23687 if \$ac_cs_recheck; then
23688   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23689   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23690 fi
23691
23692 _ACEOF
23693
23694 cat >>$CONFIG_STATUS <<_ACEOF
23695 #
23696 # INIT-COMMANDS section.
23697 #
23698
23699 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23700 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23701 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23702 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23703 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23704 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23705 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23706 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23707 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23708 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23709 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23710 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23711 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23712 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23713 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23714 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23715 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23716 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23717 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23718 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23719 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23720 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23721 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23722 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23723 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23724 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23725 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23726 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23727 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23728 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23729 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23730 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23731 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23732 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23733 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23734 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23735 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23736 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23737 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23738 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23739 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23740 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23741 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23742 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23743 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23744 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23745 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23746 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23747 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23748 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libprofile/Makefile`
23749 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23750 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23751 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23752 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23753 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23754 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23755 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23756 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23757 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23758 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23759 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23760 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23761 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23762 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23763 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23764 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23765 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23766 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23767 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23768 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23769 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23770 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23771 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23772 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23773 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
23774 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23775 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23776 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23777 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23778 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23779 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23780 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23781 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23782 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23783 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23784 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23785 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
23786 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23787 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23788 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23789 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23790 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23791 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23792 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23793 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23794 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23795 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23796 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23797 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23798 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23799 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/Makefile`
23800 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile`
23801 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23802 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23803 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23804 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23805 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23806 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23807 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23808 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23809 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23810 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23811 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23812 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23813 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23814 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23815 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23816 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23817 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23818 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23819 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23820 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23821 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23822 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23823 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23824 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23825 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23826 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23827 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23828 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23829 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23830 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23831 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23832 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23833 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23834 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23835 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23836 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23837 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23838 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23839 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23840 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23841 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23842 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23843 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23844 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23845 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23846 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23847 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23848 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23849 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23850 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23851 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23852 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23853 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23854 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23855 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23856 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23857 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23858 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23859 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23860 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23861 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23862 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23863 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23864 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23865 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23866 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23867 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23868 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23869 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23870 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23871 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23872 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23873 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-nm/Makefile`
23874 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-prof/Makefile`
23875 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23876 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23877 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23878 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23879 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23880 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23881 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23882 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23883 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23884 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23885
23886 _ACEOF
23887
23888
23889
23890 cat >>$CONFIG_STATUS <<\_ACEOF
23891 for ac_config_target in $ac_config_targets
23892 do
23893   case "$ac_config_target" in
23894   # Handling of arguments.
23895   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23896   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23897   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23898   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23899   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23900   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23901   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23902   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23903   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23904   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23905   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23906   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23907   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23908   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23909   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23910   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23911   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23912   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23913   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23914   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23915   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23916   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23917   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23918   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23919   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23920   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23921   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23922   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23923   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23924   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23925   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23926   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23927   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23928   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23929   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23930   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23931   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23932   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23933   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23934   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23935   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23936   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23937   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23938   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23939   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23940   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23941   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23942   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23943   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23944   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23945   "runtime/libprofile/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libprofile/Makefile" ;;
23946   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23947   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23948   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23949   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23950   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23951   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23952   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23953   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23954   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23955   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23956   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23957   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23958   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23959   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23960   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23961   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23962   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23963   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23964   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23965   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23966   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23967   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23968   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23969   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23970   "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
23971   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23972   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23973   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23974   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23975   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23976   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23977   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23978   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23979   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23980   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23981   "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23982   "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
23983   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23984   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23985   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23986   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23987   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23988   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23989   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23990   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23991   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23992   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23993   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23994   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23995   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23996   "test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ;;
23997   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ;;
23998   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23999   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24000   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24001   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24002   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24003   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24004   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24005   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24006   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24007   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24008   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24009   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24010   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24011   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
24012   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
24013   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
24014   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
24015   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
24016   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
24017   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
24018   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
24019   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
24020   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
24021   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
24022   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
24023   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
24024   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
24025   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
24026   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
24027   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
24028   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
24029   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
24030   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
24031   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
24032   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
24033   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
24034   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
24035   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
24036   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
24037   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
24038   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
24039   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
24040   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
24041   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
24042   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24043   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24044   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
24045   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
24046   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
24047   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
24048   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
24049   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
24050   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
24051   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
24052   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24053   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
24054   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
24055   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
24056   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
24057   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24058   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
24059   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
24060   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
24061   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
24062   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
24063   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
24064   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
24065   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
24066   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
24067   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
24068   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
24069   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
24070   "tools/llvm-nm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-nm/Makefile" ;;
24071   "tools/llvm-prof/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-prof/Makefile" ;;
24072   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
24073   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24074   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
24075   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
24076   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
24077   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24078   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
24079   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
24080   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
24081   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
24082   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24083   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24084 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24085    { (exit 1); exit 1; }; };;
24086   esac
24087 done
24088
24089 # If the user did not use the arguments to specify the items to instantiate,
24090 # then the envvar interface is used.  Set only those that are not.
24091 # We use the long form for the default assignment because of an extremely
24092 # bizarre bug on SunOS 4.1.3.
24093 if $ac_need_defaults; then
24094   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24095   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24096   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24097 fi
24098
24099 # Have a temporary directory for convenience.  Make it in the build tree
24100 # simply because there is no reason to put it here, and in addition,
24101 # creating and moving files from /tmp can sometimes cause problems.
24102 # Create a temporary directory, and hook for its removal unless debugging.
24103 $debug ||
24104 {
24105   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24106   trap '{ (exit 1); exit 1; }' 1 2 13 15
24107 }
24108
24109 # Create a (secure) tmp directory for tmp files.
24110
24111 {
24112   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24113   test -n "$tmp" && test -d "$tmp"
24114 }  ||
24115 {
24116   tmp=./confstat$$-$RANDOM
24117   (umask 077 && mkdir $tmp)
24118 } ||
24119 {
24120    echo "$me: cannot create a temporary directory in ." >&2
24121    { (exit 1); exit 1; }
24122 }
24123
24124 _ACEOF
24125
24126 cat >>$CONFIG_STATUS <<_ACEOF
24127
24128 #
24129 # CONFIG_FILES section.
24130 #
24131
24132 # No need to generate the scripts if there are no CONFIG_FILES.
24133 # This happens for instance when ./config.status config.h
24134 if test -n "\$CONFIG_FILES"; then
24135   # Protect against being on the right side of a sed subst in config.status.
24136   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24137    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24138 s,@SHELL@,$SHELL,;t t
24139 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24140 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24141 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24142 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24143 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24144 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24145 s,@exec_prefix@,$exec_prefix,;t t
24146 s,@prefix@,$prefix,;t t
24147 s,@program_transform_name@,$program_transform_name,;t t
24148 s,@bindir@,$bindir,;t t
24149 s,@sbindir@,$sbindir,;t t
24150 s,@libexecdir@,$libexecdir,;t t
24151 s,@datadir@,$datadir,;t t
24152 s,@sysconfdir@,$sysconfdir,;t t
24153 s,@sharedstatedir@,$sharedstatedir,;t t
24154 s,@localstatedir@,$localstatedir,;t t
24155 s,@libdir@,$libdir,;t t
24156 s,@includedir@,$includedir,;t t
24157 s,@oldincludedir@,$oldincludedir,;t t
24158 s,@infodir@,$infodir,;t t
24159 s,@mandir@,$mandir,;t t
24160 s,@build_alias@,$build_alias,;t t
24161 s,@host_alias@,$host_alias,;t t
24162 s,@target_alias@,$target_alias,;t t
24163 s,@DEFS@,$DEFS,;t t
24164 s,@ECHO_C@,$ECHO_C,;t t
24165 s,@ECHO_N@,$ECHO_N,;t t
24166 s,@ECHO_T@,$ECHO_T,;t t
24167 s,@LIBS@,$LIBS,;t t
24168 s,@subdirs@,$subdirs,;t t
24169 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24170 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24171 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24172 s,@build@,$build,;t t
24173 s,@build_cpu@,$build_cpu,;t t
24174 s,@build_vendor@,$build_vendor,;t t
24175 s,@build_os@,$build_os,;t t
24176 s,@host@,$host,;t t
24177 s,@host_cpu@,$host_cpu,;t t
24178 s,@host_vendor@,$host_vendor,;t t
24179 s,@host_os@,$host_os,;t t
24180 s,@target@,$target,;t t
24181 s,@target_cpu@,$target_cpu,;t t
24182 s,@target_vendor@,$target_vendor,;t t
24183 s,@target_os@,$target_os,;t t
24184 s,@OS@,$OS,;t t
24185 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24186 s,@ARCH@,$ARCH,;t t
24187 s,@CXX@,$CXX,;t t
24188 s,@CXXFLAGS@,$CXXFLAGS,;t t
24189 s,@LDFLAGS@,$LDFLAGS,;t t
24190 s,@CPPFLAGS@,$CPPFLAGS,;t t
24191 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24192 s,@EXEEXT@,$EXEEXT,;t t
24193 s,@OBJEXT@,$OBJEXT,;t t
24194 s,@CC@,$CC,;t t
24195 s,@CFLAGS@,$CFLAGS,;t t
24196 s,@ac_ct_CC@,$ac_ct_CC,;t t
24197 s,@CPP@,$CPP,;t t
24198 s,@ifGNUmake@,$ifGNUmake,;t t
24199 s,@LEX@,$LEX,;t t
24200 s,@LEXLIB@,$LEXLIB,;t t
24201 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24202 s,@YACC@,$YACC,;t t
24203 s,@EGREP@,$EGREP,;t t
24204 s,@LN_S@,$LN_S,;t t
24205 s,@ECHO@,$ECHO,;t t
24206 s,@AR@,$AR,;t t
24207 s,@ac_ct_AR@,$ac_ct_AR,;t t
24208 s,@RANLIB@,$RANLIB,;t t
24209 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24210 s,@STRIP@,$STRIP,;t t
24211 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24212 s,@CXXCPP@,$CXXCPP,;t t
24213 s,@F77@,$F77,;t t
24214 s,@FFLAGS@,$FFLAGS,;t t
24215 s,@ac_ct_F77@,$ac_ct_F77,;t t
24216 s,@LIBTOOL@,$LIBTOOL,;t t
24217 s,@RPWD@,$RPWD,;t t
24218 s,@SED@,$SED,;t t
24219 s,@RM@,$RM,;t t
24220 s,@MKDIR@,$MKDIR,;t t
24221 s,@DATE@,$DATE,;t t
24222 s,@MV@,$MV,;t t
24223 s,@DOT@,$DOT,;t t
24224 s,@ETAGS@,$ETAGS,;t t
24225 s,@PYTHON@,$PYTHON,;t t
24226 s,@QMTEST@,$QMTEST,;t t
24227 s,@ALLOCA@,$ALLOCA,;t t
24228 s,@LIBOBJS@,$LIBOBJS,;t t
24229 s,@MMAP_FILE@,$MMAP_FILE,;t t
24230 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
24231 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24232 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
24233 s,@USE_SPEC@,$USE_SPEC,;t t
24234 s,@UPB@,$UPB,;t t
24235 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24236 s,@JIT@,$JIT,;t t
24237 s,@BCR@,$BCR,;t t
24238 s,@PAPIDIR@,$PAPIDIR,;t t
24239 s,@PURIFY@,$PURIFY,;t t
24240 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24241 CEOF
24242
24243 _ACEOF
24244
24245   cat >>$CONFIG_STATUS <<\_ACEOF
24246   # Split the substitutions into bite-sized pieces for seds with
24247   # small command number limits, like on Digital OSF/1 and HP-UX.
24248   ac_max_sed_lines=48
24249   ac_sed_frag=1 # Number of current file.
24250   ac_beg=1 # First line for current file.
24251   ac_end=$ac_max_sed_lines # Line after last line for current file.
24252   ac_more_lines=:
24253   ac_sed_cmds=
24254   while $ac_more_lines; do
24255     if test $ac_beg -gt 1; then
24256       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24257     else
24258       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24259     fi
24260     if test ! -s $tmp/subs.frag; then
24261       ac_more_lines=false
24262     else
24263       # The purpose of the label and of the branching condition is to
24264       # speed up the sed processing (if there are no `@' at all, there
24265       # is no need to browse any of the substitutions).
24266       # These are the two extra sed commands mentioned above.
24267       (echo ':t
24268   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24269       if test -z "$ac_sed_cmds"; then
24270         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24271       else
24272         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24273       fi
24274       ac_sed_frag=`expr $ac_sed_frag + 1`
24275       ac_beg=$ac_end
24276       ac_end=`expr $ac_end + $ac_max_sed_lines`
24277     fi
24278   done
24279   if test -z "$ac_sed_cmds"; then
24280     ac_sed_cmds=cat
24281   fi
24282 fi # test -n "$CONFIG_FILES"
24283
24284 _ACEOF
24285 cat >>$CONFIG_STATUS <<\_ACEOF
24286 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24287   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24288   case $ac_file in
24289   - | *:- | *:-:* ) # input from stdin
24290         cat >$tmp/stdin
24291         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24292         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24293   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24294         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24295   * )   ac_file_in=$ac_file.in ;;
24296   esac
24297
24298   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24299   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24301          X"$ac_file" : 'X\(//\)[^/]' \| \
24302          X"$ac_file" : 'X\(//\)$' \| \
24303          X"$ac_file" : 'X\(/\)' \| \
24304          .     : '\(.\)' 2>/dev/null ||
24305 echo X"$ac_file" |
24306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24308           /^X\(\/\/\)$/{ s//\1/; q; }
24309           /^X\(\/\).*/{ s//\1/; q; }
24310           s/.*/./; q'`
24311   { if $as_mkdir_p; then
24312     mkdir -p "$ac_dir"
24313   else
24314     as_dir="$ac_dir"
24315     as_dirs=
24316     while test ! -d "$as_dir"; do
24317       as_dirs="$as_dir $as_dirs"
24318       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24320          X"$as_dir" : 'X\(//\)[^/]' \| \
24321          X"$as_dir" : 'X\(//\)$' \| \
24322          X"$as_dir" : 'X\(/\)' \| \
24323          .     : '\(.\)' 2>/dev/null ||
24324 echo X"$as_dir" |
24325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24326           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24327           /^X\(\/\/\)$/{ s//\1/; q; }
24328           /^X\(\/\).*/{ s//\1/; q; }
24329           s/.*/./; q'`
24330     done
24331     test ! -n "$as_dirs" || mkdir $as_dirs
24332   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24333 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24334    { (exit 1); exit 1; }; }; }
24335
24336   ac_builddir=.
24337
24338 if test "$ac_dir" != .; then
24339   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24340   # A "../" for each directory in $ac_dir_suffix.
24341   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24342 else
24343   ac_dir_suffix= ac_top_builddir=
24344 fi
24345
24346 case $srcdir in
24347   .)  # No --srcdir option.  We are building in place.
24348     ac_srcdir=.
24349     if test -z "$ac_top_builddir"; then
24350        ac_top_srcdir=.
24351     else
24352        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24353     fi ;;
24354   [\\/]* | ?:[\\/]* )  # Absolute path.
24355     ac_srcdir=$srcdir$ac_dir_suffix;
24356     ac_top_srcdir=$srcdir ;;
24357   *) # Relative path.
24358     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24359     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24360 esac
24361 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24362 # absolute.
24363 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24364 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24365 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24366 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24367
24368
24369   case $INSTALL in
24370   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24371   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24372   esac
24373
24374   if test x"$ac_file" != x-; then
24375     { echo "$as_me:$LINENO: creating $ac_file" >&5
24376 echo "$as_me: creating $ac_file" >&6;}
24377     rm -f "$ac_file"
24378   fi
24379   # Let's still pretend it is `configure' which instantiates (i.e., don't
24380   # use $as_me), people would be surprised to read:
24381   #    /* config.h.  Generated by config.status.  */
24382   if test x"$ac_file" = x-; then
24383     configure_input=
24384   else
24385     configure_input="$ac_file.  "
24386   fi
24387   configure_input=$configure_input"Generated from `echo $ac_file_in |
24388                                      sed 's,.*/,,'` by configure."
24389
24390   # First look for the input files in the build tree, otherwise in the
24391   # src tree.
24392   ac_file_inputs=`IFS=:
24393     for f in $ac_file_in; do
24394       case $f in
24395       -) echo $tmp/stdin ;;
24396       [\\/$]*)
24397          # Absolute (can't be DOS-style, as IFS=:)
24398          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24399 echo "$as_me: error: cannot find input file: $f" >&2;}
24400    { (exit 1); exit 1; }; }
24401          echo $f;;
24402       *) # Relative
24403          if test -f "$f"; then
24404            # Build tree
24405            echo $f
24406          elif test -f "$srcdir/$f"; then
24407            # Source tree
24408            echo $srcdir/$f
24409          else
24410            # /dev/null tree
24411            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24412 echo "$as_me: error: cannot find input file: $f" >&2;}
24413    { (exit 1); exit 1; }; }
24414          fi;;
24415       esac
24416     done` || { (exit 1); exit 1; }
24417 _ACEOF
24418 cat >>$CONFIG_STATUS <<_ACEOF
24419   sed "$ac_vpsub
24420 $extrasub
24421 _ACEOF
24422 cat >>$CONFIG_STATUS <<\_ACEOF
24423 :t
24424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24425 s,@configure_input@,$configure_input,;t t
24426 s,@srcdir@,$ac_srcdir,;t t
24427 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24428 s,@top_srcdir@,$ac_top_srcdir,;t t
24429 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24430 s,@builddir@,$ac_builddir,;t t
24431 s,@abs_builddir@,$ac_abs_builddir,;t t
24432 s,@top_builddir@,$ac_top_builddir,;t t
24433 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24434 s,@INSTALL@,$ac_INSTALL,;t t
24435 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24436   rm -f $tmp/stdin
24437   if test x"$ac_file" != x-; then
24438     mv $tmp/out $ac_file
24439   else
24440     cat $tmp/out
24441     rm -f $tmp/out
24442   fi
24443
24444 done
24445 _ACEOF
24446 cat >>$CONFIG_STATUS <<\_ACEOF
24447
24448 #
24449 # CONFIG_HEADER section.
24450 #
24451
24452 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24453 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24454 #
24455 # ac_d sets the value in "#define NAME VALUE" lines.
24456 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24457 ac_dB='[        ].*$,\1#\2'
24458 ac_dC=' '
24459 ac_dD=',;t'
24460 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24461 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24462 ac_uB='$,\1#\2define\3'
24463 ac_uC=' '
24464 ac_uD=',;t'
24465
24466 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24467   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24468   case $ac_file in
24469   - | *:- | *:-:* ) # input from stdin
24470         cat >$tmp/stdin
24471         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24472         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24473   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24474         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24475   * )   ac_file_in=$ac_file.in ;;
24476   esac
24477
24478   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24479 echo "$as_me: creating $ac_file" >&6;}
24480
24481   # First look for the input files in the build tree, otherwise in the
24482   # src tree.
24483   ac_file_inputs=`IFS=:
24484     for f in $ac_file_in; do
24485       case $f in
24486       -) echo $tmp/stdin ;;
24487       [\\/$]*)
24488          # Absolute (can't be DOS-style, as IFS=:)
24489          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24490 echo "$as_me: error: cannot find input file: $f" >&2;}
24491    { (exit 1); exit 1; }; }
24492          echo $f;;
24493       *) # Relative
24494          if test -f "$f"; then
24495            # Build tree
24496            echo $f
24497          elif test -f "$srcdir/$f"; then
24498            # Source tree
24499            echo $srcdir/$f
24500          else
24501            # /dev/null tree
24502            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24503 echo "$as_me: error: cannot find input file: $f" >&2;}
24504    { (exit 1); exit 1; }; }
24505          fi;;
24506       esac
24507     done` || { (exit 1); exit 1; }
24508   # Remove the trailing spaces.
24509   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24510
24511 _ACEOF
24512
24513 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24514 # `conftest.undefs', that substitutes the proper values into
24515 # config.h.in to produce config.h.  The first handles `#define'
24516 # templates, and the second `#undef' templates.
24517 # And first: Protect against being on the right side of a sed subst in
24518 # config.status.  Protect against being in an unquoted here document
24519 # in config.status.
24520 rm -f conftest.defines conftest.undefs
24521 # Using a here document instead of a string reduces the quoting nightmare.
24522 # Putting comments in sed scripts is not portable.
24523 #
24524 # `end' is used to avoid that the second main sed command (meant for
24525 # 0-ary CPP macros) applies to n-ary macro definitions.
24526 # See the Autoconf documentation for `clear'.
24527 cat >confdef2sed.sed <<\_ACEOF
24528 s/[\\&,]/\\&/g
24529 s,[\\$`],\\&,g
24530 t clear
24531 : clear
24532 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24533 t end
24534 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24535 : end
24536 _ACEOF
24537 # If some macros were called several times there might be several times
24538 # the same #defines, which is useless.  Nevertheless, we may not want to
24539 # sort them, since we want the *last* AC-DEFINE to be honored.
24540 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24541 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24542 rm -f confdef2sed.sed
24543
24544 # This sed command replaces #undef with comments.  This is necessary, for
24545 # example, in the case of _POSIX_SOURCE, which is predefined and required
24546 # on some systems where configure will not decide to define it.
24547 cat >>conftest.undefs <<\_ACEOF
24548 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24549 _ACEOF
24550
24551 # Break up conftest.defines because some shells have a limit on the size
24552 # of here documents, and old seds have small limits too (100 cmds).
24553 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24554 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24555 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24556 echo '  :' >>$CONFIG_STATUS
24557 rm -f conftest.tail
24558 while grep . conftest.defines >/dev/null
24559 do
24560   # Write a limited-size here document to $tmp/defines.sed.
24561   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24562   # Speed up: don't consider the non `#define' lines.
24563   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24564   # Work around the forget-to-reset-the-flag bug.
24565   echo 't clr' >>$CONFIG_STATUS
24566   echo ': clr' >>$CONFIG_STATUS
24567   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24568   echo 'CEOF
24569   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24570   rm -f $tmp/in
24571   mv $tmp/out $tmp/in
24572 ' >>$CONFIG_STATUS
24573   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24574   rm -f conftest.defines
24575   mv conftest.tail conftest.defines
24576 done
24577 rm -f conftest.defines
24578 echo '  fi # grep' >>$CONFIG_STATUS
24579 echo >>$CONFIG_STATUS
24580
24581 # Break up conftest.undefs because some shells have a limit on the size
24582 # of here documents, and old seds have small limits too (100 cmds).
24583 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24584 rm -f conftest.tail
24585 while grep . conftest.undefs >/dev/null
24586 do
24587   # Write a limited-size here document to $tmp/undefs.sed.
24588   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24589   # Speed up: don't consider the non `#undef'
24590   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24591   # Work around the forget-to-reset-the-flag bug.
24592   echo 't clr' >>$CONFIG_STATUS
24593   echo ': clr' >>$CONFIG_STATUS
24594   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24595   echo 'CEOF
24596   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24597   rm -f $tmp/in
24598   mv $tmp/out $tmp/in
24599 ' >>$CONFIG_STATUS
24600   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24601   rm -f conftest.undefs
24602   mv conftest.tail conftest.undefs
24603 done
24604 rm -f conftest.undefs
24605
24606 cat >>$CONFIG_STATUS <<\_ACEOF
24607   # Let's still pretend it is `configure' which instantiates (i.e., don't
24608   # use $as_me), people would be surprised to read:
24609   #    /* config.h.  Generated by config.status.  */
24610   if test x"$ac_file" = x-; then
24611     echo "/* Generated by configure.  */" >$tmp/config.h
24612   else
24613     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24614   fi
24615   cat $tmp/in >>$tmp/config.h
24616   rm -f $tmp/in
24617   if test x"$ac_file" != x-; then
24618     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24619       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24620 echo "$as_me: $ac_file is unchanged" >&6;}
24621     else
24622       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24624          X"$ac_file" : 'X\(//\)[^/]' \| \
24625          X"$ac_file" : 'X\(//\)$' \| \
24626          X"$ac_file" : 'X\(/\)' \| \
24627          .     : '\(.\)' 2>/dev/null ||
24628 echo X"$ac_file" |
24629     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24630           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24631           /^X\(\/\/\)$/{ s//\1/; q; }
24632           /^X\(\/\).*/{ s//\1/; q; }
24633           s/.*/./; q'`
24634       { if $as_mkdir_p; then
24635     mkdir -p "$ac_dir"
24636   else
24637     as_dir="$ac_dir"
24638     as_dirs=
24639     while test ! -d "$as_dir"; do
24640       as_dirs="$as_dir $as_dirs"
24641       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24643          X"$as_dir" : 'X\(//\)[^/]' \| \
24644          X"$as_dir" : 'X\(//\)$' \| \
24645          X"$as_dir" : 'X\(/\)' \| \
24646          .     : '\(.\)' 2>/dev/null ||
24647 echo X"$as_dir" |
24648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24649           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24650           /^X\(\/\/\)$/{ s//\1/; q; }
24651           /^X\(\/\).*/{ s//\1/; q; }
24652           s/.*/./; q'`
24653     done
24654     test ! -n "$as_dirs" || mkdir $as_dirs
24655   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24657    { (exit 1); exit 1; }; }; }
24658
24659       rm -f $ac_file
24660       mv $tmp/config.h $ac_file
24661     fi
24662   else
24663     cat $tmp/config.h
24664     rm -f $tmp/config.h
24665   fi
24666 done
24667 _ACEOF
24668 cat >>$CONFIG_STATUS <<\_ACEOF
24669
24670 #
24671 # CONFIG_COMMANDS section.
24672 #
24673 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24674   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24675   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24676   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24677 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24678          X"$ac_dest" : 'X\(//\)[^/]' \| \
24679          X"$ac_dest" : 'X\(//\)$' \| \
24680          X"$ac_dest" : 'X\(/\)' \| \
24681          .     : '\(.\)' 2>/dev/null ||
24682 echo X"$ac_dest" |
24683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24684           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24685           /^X\(\/\/\)$/{ s//\1/; q; }
24686           /^X\(\/\).*/{ s//\1/; q; }
24687           s/.*/./; q'`
24688   ac_builddir=.
24689
24690 if test "$ac_dir" != .; then
24691   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24692   # A "../" for each directory in $ac_dir_suffix.
24693   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24694 else
24695   ac_dir_suffix= ac_top_builddir=
24696 fi
24697
24698 case $srcdir in
24699   .)  # No --srcdir option.  We are building in place.
24700     ac_srcdir=.
24701     if test -z "$ac_top_builddir"; then
24702        ac_top_srcdir=.
24703     else
24704        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24705     fi ;;
24706   [\\/]* | ?:[\\/]* )  # Absolute path.
24707     ac_srcdir=$srcdir$ac_dir_suffix;
24708     ac_top_srcdir=$srcdir ;;
24709   *) # Relative path.
24710     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24711     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24712 esac
24713 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24714 # absolute.
24715 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24716 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24717 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24718 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24719
24720
24721   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24722 echo "$as_me: executing $ac_dest commands" >&6;}
24723   case $ac_dest in
24724     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24725     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24726     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24727     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24728     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24729     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24730     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24731     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24732     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24733     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24734     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24735     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24736     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24737     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24738     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24739     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24740     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24741     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24742     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24743     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24744     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24745     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24746     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24747     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24748     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24749     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24750     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24751     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24752     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24753     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24754     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24755     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24756     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24757     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24758     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24759     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24760     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24761     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24762     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24763     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24764     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24765     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24766     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24767     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24768     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24769     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24770     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24771     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24772     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24773     runtime/libprofile/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libprofile/Makefile runtime/libprofile/Makefile ;;
24774     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24775     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24776     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24777     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24778     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24779     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24780     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24781     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24782     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24783     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24784     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24785     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24786     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24787     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24788     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24789     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24790     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24791     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24792     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24793     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24794     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24795     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24796     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 ;;
24797     test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
24798     test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/177.mesa/Makefile test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ;;
24799     test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
24800     test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
24801     test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
24802     test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
24803     test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
24804     test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
24805     test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
24806     test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
24807     test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
24808     test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
24809     test/Programs/External/SPEC/CINT2000/252.eon/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/252.eon/Makefile test/Programs/External/SPEC/CINT2000/252.eon/Makefile ;;
24810     test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ;;
24811     test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
24812     test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
24813     test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
24814     test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
24815     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24816     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24817     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24818     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24819     test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
24820     test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24821     test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
24822     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24823     test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24824     test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ;;
24825     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ;;
24826     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 ;;
24827     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 ;;
24828     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 ;;
24829     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 ;;
24830     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 ;;
24831     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 ;;
24832     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 ;;
24833     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 ;;
24834     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 ;;
24835     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 ;;
24836     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 ;;
24837     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 ;;
24838     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 ;;
24839     test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24840     test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24841     test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24842     test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24843     test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24844     test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24845     test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24846     test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24847     test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24848     test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24849     test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24850     test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24851     test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24852     test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24853     test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24854     test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24855     test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24856     test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24857     test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24858     test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24859     test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24860     test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
24861     test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
24862     test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24863     test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24864     test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24865     test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24866     test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24867     test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
24868     test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
24869     test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
24870     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24871     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24872     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24873     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24874     test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24875     test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24876     test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24877     test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
24878     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24879     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24880     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 ;;
24881     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24882     test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24883     test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
24884     test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
24885     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24886     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24887     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24888     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24889     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24890     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24891     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24892     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24893     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24894     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24895     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24896     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24897     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24898     tools/llvm-nm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-nm/Makefile tools/llvm-nm/Makefile ;;
24899     tools/llvm-prof/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-prof/Makefile tools/llvm-prof/Makefile ;;
24900     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24901     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24902     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24903     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24904     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24905     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24906     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24907     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24908     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24909     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24910   esac
24911 done
24912 _ACEOF
24913
24914 cat >>$CONFIG_STATUS <<\_ACEOF
24915
24916 { (exit 0); exit 0; }
24917 _ACEOF
24918 chmod +x $CONFIG_STATUS
24919 ac_clean_files=$ac_clean_files_save
24920
24921
24922 # configure is writing to config.log, and then calls config.status.
24923 # config.status does its own redirection, appending to config.log.
24924 # Unfortunately, on DOS this fails, as config.log is still kept open
24925 # by configure, so config.status won't be able to write to it; its
24926 # output is simply discarded.  So we exec the FD to /dev/null,
24927 # effectively closing config.log, so it can be properly (re)opened and
24928 # appended to by config.status.  When coming back to configure, we
24929 # need to make the FD available again.
24930 if test "$no_create" != yes; then
24931   ac_cs_success=:
24932   ac_config_status_args=
24933   test "$silent" = yes &&
24934     ac_config_status_args="$ac_config_status_args --quiet"
24935   exec 5>/dev/null
24936   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24937   exec 5>>config.log
24938   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24939   # would make configure fail if this is the last instruction.
24940   $ac_cs_success || { (exit 1); exit 1; }
24941 fi
24942
24943 #
24944 # CONFIG_SUBDIRS section.
24945 #
24946 if test "$no_recursion" != yes; then
24947
24948   # Remove --cache-file and --srcdir arguments so they do not pile up.
24949   ac_sub_configure_args=
24950   ac_prev=
24951   for ac_arg in $ac_configure_args; do
24952     if test -n "$ac_prev"; then
24953       ac_prev=
24954       continue
24955     fi
24956     case $ac_arg in
24957     -cache-file | --cache-file | --cache-fil | --cache-fi \
24958     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24959       ac_prev=cache_file ;;
24960     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24961     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24962     | --c=*)
24963       ;;
24964     --config-cache | -C)
24965       ;;
24966     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24967       ac_prev=srcdir ;;
24968     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24969       ;;
24970     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24971       ac_prev=prefix ;;
24972     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24973       ;;
24974     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24975     esac
24976   done
24977
24978   # Always prepend --prefix to ensure using the same prefix
24979   # in subdir configurations.
24980   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24981
24982   ac_popdir=`pwd`
24983   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24984
24985     # Do not complain, so a configure script can configure whichever
24986     # parts of a large source tree are present.
24987     test -d $srcdir/$ac_dir || continue
24988
24989     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24990 echo "$as_me: configuring in $ac_dir" >&6;}
24991     { if $as_mkdir_p; then
24992     mkdir -p "$ac_dir"
24993   else
24994     as_dir="$ac_dir"
24995     as_dirs=
24996     while test ! -d "$as_dir"; do
24997       as_dirs="$as_dir $as_dirs"
24998       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24999 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25000          X"$as_dir" : 'X\(//\)[^/]' \| \
25001          X"$as_dir" : 'X\(//\)$' \| \
25002          X"$as_dir" : 'X\(/\)' \| \
25003          .     : '\(.\)' 2>/dev/null ||
25004 echo X"$as_dir" |
25005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25006           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25007           /^X\(\/\/\)$/{ s//\1/; q; }
25008           /^X\(\/\).*/{ s//\1/; q; }
25009           s/.*/./; q'`
25010     done
25011     test ! -n "$as_dirs" || mkdir $as_dirs
25012   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25013 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25014    { (exit 1); exit 1; }; }; }
25015
25016     ac_builddir=.
25017
25018 if test "$ac_dir" != .; then
25019   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25020   # A "../" for each directory in $ac_dir_suffix.
25021   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25022 else
25023   ac_dir_suffix= ac_top_builddir=
25024 fi
25025
25026 case $srcdir in
25027   .)  # No --srcdir option.  We are building in place.
25028     ac_srcdir=.
25029     if test -z "$ac_top_builddir"; then
25030        ac_top_srcdir=.
25031     else
25032        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25033     fi ;;
25034   [\\/]* | ?:[\\/]* )  # Absolute path.
25035     ac_srcdir=$srcdir$ac_dir_suffix;
25036     ac_top_srcdir=$srcdir ;;
25037   *) # Relative path.
25038     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25039     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25040 esac
25041 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25042 # absolute.
25043 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25044 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25045 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25046 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25047
25048
25049     cd $ac_dir
25050
25051     # Check for guested configure; otherwise get Cygnus style configure.
25052     if test -f $ac_srcdir/configure.gnu; then
25053       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25054     elif test -f $ac_srcdir/configure; then
25055       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25056     elif test -f $ac_srcdir/configure.in; then
25057       ac_sub_configure=$ac_configure
25058     else
25059       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25060 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25061       ac_sub_configure=
25062     fi
25063
25064     # The recursion is here.
25065     if test -n "$ac_sub_configure"; then
25066       # Make the cache file name correct relative to the subdirectory.
25067       case $cache_file in
25068       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25069       *) # Relative path.
25070         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25071       esac
25072
25073       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25074 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25075       # The eval makes quoting arguments work.
25076       eval $ac_sub_configure $ac_sub_configure_args \
25077            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25078         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25079 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25080    { (exit 1); exit 1; }; }
25081     fi
25082
25083     cd $ac_popdir
25084   done
25085 fi
25086
25087
25088 if test $llvmgccwarn = yes
25089 then
25090         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25091 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25092         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25093 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25094         { echo "$as_me:$LINENO: WARNING: ***** " >&5
25095 echo "$as_me: WARNING: ***** " >&2;}
25096         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25097 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25098         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25099 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25100         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25101 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25102 fi