Added links to the C and C++ frontends.
[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/reopt"
430 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_unique_file=""Makefile.config.in""
469 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 USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR PURIFY LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CC_set=${CC+set}
927 ac_env_CC_value=$CC
928 ac_cv_env_CC_set=${CC+set}
929 ac_cv_env_CC_value=$CC
930 ac_env_CFLAGS_set=${CFLAGS+set}
931 ac_env_CFLAGS_value=$CFLAGS
932 ac_cv_env_CFLAGS_set=${CFLAGS+set}
933 ac_cv_env_CFLAGS_value=$CFLAGS
934 ac_env_CPP_set=${CPP+set}
935 ac_env_CPP_value=$CPP
936 ac_cv_env_CPP_set=${CPP+set}
937 ac_cv_env_CPP_value=$CPP
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 System types:
1012   --build=BUILD     configure for building on BUILD [guessed]
1013   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014   --target=TARGET   configure for building compilers for TARGET [HOST]
1015 _ACEOF
1016 fi
1017
1018 if test -n "$ac_init_help"; then
1019   case $ac_init_help in
1020      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1021    esac
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --enable-shared[=PKGS]
1028                           build shared libraries [default=yes]
1029   --enable-static[=PKGS]
1030                           build static libraries [default=yes]
1031   --enable-fast-install[=PKGS]
1032                           optimize for fast installation [default=yes]
1033   --disable-libtool-lock  avoid locking (might break parallel builds)
1034   --enable-purify         Compile with purify (default is NO)
1035   --enable-optimized      Compile with optimizations enabled (default is NO)
1036   --enable-spec           Compile SPEC benchmarks (default is NO)
1037   --enable-precompiled_bytecode
1038                           Use pre-compiled bytecode (default is NO)
1039   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-spec             Location of SPEC benchmarks
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/reopt
1525 then
1526
1527
1528 subdirs="$subdirs projects/reopt"
1529
1530 fi
1531
1532 if test -d ${srcdir}/projects/poolalloc
1533 then
1534
1535
1536 subdirs="$subdirs projects/poolalloc"
1537
1538 fi
1539
1540           ac_config_headers="$ac_config_headers include/Config/config.h"
1541
1542           ac_config_commands="$ac_config_commands Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands Makefile.common"
1546
1547
1548           ac_config_commands="$ac_config_commands Makefile.rules"
1549
1550
1551           ac_config_commands="$ac_config_commands lib/Makefile"
1552
1553
1554           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1555
1556
1557           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1558
1559
1560           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1561
1562
1563           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1564
1565
1566           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1567
1568
1569           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1570
1571
1572           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1573
1574
1575           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1579
1580
1581           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1597
1598
1599           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands runtime/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1660
1661
1662           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1672
1673
1674           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1675
1676
1677           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1678
1679
1680           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1681
1682
1683           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Makefile"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Makefile.tests"
1690
1691
1692           ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1717
1718
1719           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1720
1721
1722           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1723
1724
1725           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1726
1727
1728           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1729
1730
1731           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1732
1733
1734           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1735
1736
1737           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1738
1739
1740           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1741
1742
1743           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1744
1745
1746           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1747
1748
1749           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1750
1751
1752           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1753
1754
1755           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1756
1757
1758           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1759
1760
1761           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1762
1763
1764           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1765
1766
1767           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1768
1769
1770           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1771
1772
1773           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1774
1775
1776           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1777
1778
1779           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1780
1781
1782           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1783
1784
1785           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1786
1787
1788           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1789
1790
1791           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1792
1793
1794           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1795
1796
1797           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1798
1799
1800           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1801
1802
1803           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1804
1805
1806           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1807
1808
1809           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1810
1811
1812           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1813
1814
1815           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1816
1817
1818           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1819
1820
1821           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1822
1823
1824           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1825
1826
1827           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1828
1829
1830           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1831
1832
1833           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1834
1835
1836           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1837
1838
1839           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1840
1841
1842           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1843
1844
1845           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1846
1847
1848           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1849
1850
1851           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1852
1853
1854           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1855
1856
1857           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1858
1859
1860           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1861
1862
1863           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1864
1865
1866           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1867
1868
1869           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1870
1871
1872           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1873
1874
1875           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1876
1877
1878           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1879
1880
1881           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1882
1883
1884           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1885
1886
1887           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1888
1889
1890           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1891
1892
1893           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1894
1895
1896           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1897
1898
1899           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1900
1901
1902           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1903
1904
1905           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1906
1907
1908           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1909
1910
1911           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1912
1913
1914           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1915
1916
1917           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1918
1919
1920           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1921
1922
1923           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1924
1925
1926           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1927
1928
1929           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1930
1931
1932           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1933
1934
1935           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1936
1937
1938           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1939
1940
1941           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1942
1943
1944           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1945
1946
1947           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1948
1949
1950           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1951
1952
1953           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1954
1955
1956           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1957
1958
1959           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1960
1961
1962           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1963
1964
1965           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1966
1967
1968           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1969
1970
1971           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1972
1973
1974           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1975
1976
1977           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1978
1979
1980           ac_config_commands="$ac_config_commands tools/Makefile"
1981
1982
1983           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1984
1985
1986           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1987
1988
1989           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1990
1991
1992           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1993
1994
1995           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1996
1997
1998           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1999
2000
2001           ac_config_commands="$ac_config_commands tools/llee/Makefile"
2002
2003
2004           ac_config_commands="$ac_config_commands tools/lli/Makefile"
2005
2006
2007           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2008
2009
2010           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2011
2012
2013           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2014
2015
2016           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2017
2018
2019           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2020
2021
2022           ac_config_commands="$ac_config_commands www/docs/Makefile"
2023
2024
2025           ac_config_commands="$ac_config_commands projects/Makefile"
2026
2027
2028           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2029
2030
2031           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2032
2033
2034           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2035
2036
2037           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2038
2039
2040           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2041
2042
2043           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2044
2045
2046           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2047
2048
2049           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2050
2051
2052           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2053
2054
2055           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2056
2057
2058           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2059
2060
2061           ac_config_commands="$ac_config_commands support/Makefile"
2062
2063
2064           ac_config_commands="$ac_config_commands support/lib/Makefile"
2065
2066
2067           ac_config_commands="$ac_config_commands support/lib/Support/Makefile"
2068
2069
2070           ac_config_commands="$ac_config_commands support/tools/Makefile"
2071
2072
2073           ac_config_commands="$ac_config_commands support/tools/Burg/Makefile"
2074
2075
2076           ac_config_commands="$ac_config_commands support/tools/Burg/Doc/Makefile"
2077
2078
2079           ac_config_commands="$ac_config_commands support/tools/TableGen/Makefile"
2080
2081
2082
2083
2084 # Find a good install program.  We prefer a C program (faster),
2085 # so one script is as good as another.  But avoid the broken or
2086 # incompatible versions:
2087 # SysV /etc/install, /usr/sbin/install
2088 # SunOS /usr/etc/install
2089 # IRIX /sbin/install
2090 # AIX /bin/install
2091 # AmigaOS /C/install, which installs bootblocks on floppy discs
2092 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2093 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2094 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2095 # ./install, which can be erroneously created by make from ./install.sh.
2096 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2097 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2098 if test -z "$INSTALL"; then
2099 if test "${ac_cv_path_install+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   # Account for people who put trailing slashes in PATH elements.
2108 case $as_dir/ in
2109   ./ | .// | /cC/* | \
2110   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2111   /usr/ucb/* ) ;;
2112   *)
2113     # OSF1 and SCO ODT 3.0 have their own names for install.
2114     # Don't use installbsd from OSF since it installs stuff as root
2115     # by default.
2116     for ac_prog in ginstall scoinst install; do
2117       for ac_exec_ext in '' $ac_executable_extensions; do
2118         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2119           if test $ac_prog = install &&
2120             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2121             # AIX install.  It has an incompatible calling convention.
2122             :
2123           elif test $ac_prog = install &&
2124             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2125             # program-specific install script used by HP pwplus--don't use.
2126             :
2127           else
2128             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2129             break 3
2130           fi
2131         fi
2132       done
2133     done
2134     ;;
2135 esac
2136 done
2137
2138
2139 fi
2140   if test "${ac_cv_path_install+set}" = set; then
2141     INSTALL=$ac_cv_path_install
2142   else
2143     # As a last resort, use the slow shell script.  We don't cache a
2144     # path for INSTALL within a source directory, because that will
2145     # break other packages using the cache if that directory is
2146     # removed, or if the path is relative.
2147     INSTALL=$ac_install_sh
2148   fi
2149 fi
2150 echo "$as_me:$LINENO: result: $INSTALL" >&5
2151 echo "${ECHO_T}$INSTALL" >&6
2152
2153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2154 # It thinks the first close brace ends the variable substitution.
2155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2156
2157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2158
2159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2160
2161
2162 # Make sure we can run config.sub.
2163 $ac_config_sub sun4 >/dev/null 2>&1 ||
2164   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2165 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2166    { (exit 1); exit 1; }; }
2167
2168 echo "$as_me:$LINENO: checking build system type" >&5
2169 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2170 if test "${ac_cv_build+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   ac_cv_build_alias=$build_alias
2174 test -z "$ac_cv_build_alias" &&
2175   ac_cv_build_alias=`$ac_config_guess`
2176 test -z "$ac_cv_build_alias" &&
2177   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2178 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2179    { (exit 1); exit 1; }; }
2180 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2181   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2182 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2183    { (exit 1); exit 1; }; }
2184
2185 fi
2186 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2187 echo "${ECHO_T}$ac_cv_build" >&6
2188 build=$ac_cv_build
2189 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2190 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2191 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2192
2193
2194 echo "$as_me:$LINENO: checking host system type" >&5
2195 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2196 if test "${ac_cv_host+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   ac_cv_host_alias=$host_alias
2200 test -z "$ac_cv_host_alias" &&
2201   ac_cv_host_alias=$ac_cv_build_alias
2202 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2203   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2204 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2205    { (exit 1); exit 1; }; }
2206
2207 fi
2208 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2209 echo "${ECHO_T}$ac_cv_host" >&6
2210 host=$ac_cv_host
2211 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2212 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2213 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2214
2215
2216 echo "$as_me:$LINENO: checking target system type" >&5
2217 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2218 if test "${ac_cv_target+set}" = set; then
2219   echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221   ac_cv_target_alias=$target_alias
2222 test "x$ac_cv_target_alias" = "x" &&
2223   ac_cv_target_alias=$ac_cv_host_alias
2224 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2225   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2226 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2227    { (exit 1); exit 1; }; }
2228
2229 fi
2230 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2231 echo "${ECHO_T}$ac_cv_target" >&6
2232 target=$ac_cv_target
2233 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2234 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2235 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2236
2237
2238 # The aliases save the names the user supplied, while $host etc.
2239 # will get canonicalized.
2240 test -n "$target_alias" &&
2241   test "$program_prefix$program_suffix$program_transform_name" = \
2242     NONENONEs,x,x, &&
2243   program_prefix=${target_alias}-
2244
2245 case $build in
2246         *i*86*)  OS=Linux
2247
2248                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2249
2250                  ;;
2251
2252         *sparc*) OS=SunOS
2253
2254                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2255
2256                  ;;
2257
2258         *)       OS=Unknown
2259
2260                  ;;
2261 esac
2262
2263 case $target in
2264         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2265
2266                           ;;
2267 esac
2268
2269 case $target in
2270         *i*86*)           ARCH=x86
2271
2272                           ;;
2273         *sparc*solaris*)  ARCH=Sparc
2274
2275                           ;;
2276 esac
2277
2278
2279 ac_ext=cc
2280 ac_cpp='$CXXCPP $CPPFLAGS'
2281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2284 if test -n "$ac_tool_prefix"; then
2285   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2286   do
2287     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2289 echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291 if test "${ac_cv_prog_CXX+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   if test -n "$CXX"; then
2295   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   for ac_exec_ext in '' $ac_executable_extensions; do
2303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306     break 2
2307   fi
2308 done
2309 done
2310
2311 fi
2312 fi
2313 CXX=$ac_cv_prog_CXX
2314 if test -n "$CXX"; then
2315   echo "$as_me:$LINENO: result: $CXX" >&5
2316 echo "${ECHO_T}$CXX" >&6
2317 else
2318   echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6
2320 fi
2321
2322     test -n "$CXX" && break
2323   done
2324 fi
2325 if test -z "$CXX"; then
2326   ac_ct_CXX=$CXX
2327   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2328 do
2329   # Extract the first word of "$ac_prog", so it can be a program name with args.
2330 set dummy $ac_prog; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   if test -n "$ac_ct_CXX"; then
2337   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344   for ac_exec_ext in '' $ac_executable_extensions; do
2345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346     ac_cv_prog_ac_ct_CXX="$ac_prog"
2347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348     break 2
2349   fi
2350 done
2351 done
2352
2353 fi
2354 fi
2355 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2356 if test -n "$ac_ct_CXX"; then
2357   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2358 echo "${ECHO_T}$ac_ct_CXX" >&6
2359 else
2360   echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6
2362 fi
2363
2364   test -n "$ac_ct_CXX" && break
2365 done
2366 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2367
2368   CXX=$ac_ct_CXX
2369 fi
2370
2371
2372 # Provide some information about the compiler.
2373 echo "$as_me:$LINENO:" \
2374      "checking for C++ compiler version" >&5
2375 ac_compiler=`set X $ac_compile; echo $2`
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2377   (eval $ac_compiler --version </dev/null >&5) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2382   (eval $ac_compiler -v </dev/null >&5) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }
2386 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2387   (eval $ac_compiler -V </dev/null >&5) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }
2391
2392 cat >conftest.$ac_ext <<_ACEOF
2393 #line $LINENO "configure"
2394 /* confdefs.h.  */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h.  */
2399
2400 int
2401 main ()
2402 {
2403
2404   ;
2405   return 0;
2406 }
2407 _ACEOF
2408 ac_clean_files_save=$ac_clean_files
2409 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2410 # Try to create an executable without -o first, disregard a.out.
2411 # It will help us diagnose broken compilers, and finding out an intuition
2412 # of exeext.
2413 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2414 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2415 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2416 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2417   (eval $ac_link_default) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; then
2421   # Find the output, starting from the most likely.  This scheme is
2422 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2423 # resort.
2424
2425 # Be careful to initialize this variable, since it used to be cached.
2426 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2427 ac_cv_exeext=
2428 # b.out is created by i960 compilers.
2429 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2430 do
2431   test -f "$ac_file" || continue
2432   case $ac_file in
2433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2434         ;;
2435     conftest.$ac_ext )
2436         # This is the source file.
2437         ;;
2438     [ab].out )
2439         # We found the default executable, but exeext='' is most
2440         # certainly right.
2441         break;;
2442     *.* )
2443         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444         # FIXME: I believe we export ac_cv_exeext for Libtool,
2445         # but it would be cool to find out if it's true.  Does anybody
2446         # maintain Libtool? --akim.
2447         export ac_cv_exeext
2448         break;;
2449     * )
2450         break;;
2451   esac
2452 done
2453 else
2454   echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: C++ compiler cannot create executables
2460 See \`config.log' for more details." >&2;}
2461    { (exit 77); exit 77; }; }
2462 fi
2463
2464 ac_exeext=$ac_cv_exeext
2465 echo "$as_me:$LINENO: result: $ac_file" >&5
2466 echo "${ECHO_T}$ac_file" >&6
2467
2468 # Check the compiler produces executables we can run.  If not, either
2469 # the compiler is broken, or we cross compile.
2470 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2471 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2473 # If not cross compiling, check that we can run a simple program.
2474 if test "$cross_compiling" != yes; then
2475   if { ac_try='./$ac_file'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; }; then
2481     cross_compiling=no
2482   else
2483     if test "$cross_compiling" = maybe; then
2484         cross_compiling=yes
2485     else
2486         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2487 If you meant to cross compile, use \`--host'.
2488 See \`config.log' for more details." >&5
2489 echo "$as_me: error: cannot run C++ compiled programs.
2490 If you meant to cross compile, use \`--host'.
2491 See \`config.log' for more details." >&2;}
2492    { (exit 1); exit 1; }; }
2493     fi
2494   fi
2495 fi
2496 echo "$as_me:$LINENO: result: yes" >&5
2497 echo "${ECHO_T}yes" >&6
2498
2499 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2500 ac_clean_files=$ac_clean_files_save
2501 # Check the compiler produces executables we can run.  If not, either
2502 # the compiler is broken, or we cross compile.
2503 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2504 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2505 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2506 echo "${ECHO_T}$cross_compiling" >&6
2507
2508 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2509 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2511   (eval $ac_link) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; then
2515   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2516 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2517 # work properly (i.e., refer to `conftest.exe'), while it won't with
2518 # `rm'.
2519 for ac_file in conftest.exe conftest conftest.*; do
2520   test -f "$ac_file" || continue
2521   case $ac_file in
2522     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2523     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524           export ac_cv_exeext
2525           break;;
2526     * ) break;;
2527   esac
2528 done
2529 else
2530   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&2;}
2534    { (exit 1); exit 1; }; }
2535 fi
2536
2537 rm -f conftest$ac_cv_exeext
2538 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539 echo "${ECHO_T}$ac_cv_exeext" >&6
2540
2541 rm -f conftest.$ac_ext
2542 EXEEXT=$ac_cv_exeext
2543 ac_exeext=$EXEEXT
2544 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2546 if test "${ac_cv_objext+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   cat >conftest.$ac_ext <<_ACEOF
2550 #line $LINENO "configure"
2551 /* confdefs.h.  */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h.  */
2556
2557 int
2558 main ()
2559 {
2560
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 rm -f conftest.o conftest.obj
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567   (eval $ac_compile) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; then
2571   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2572   case $ac_file in
2573     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2574     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2575        break;;
2576   esac
2577 done
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2583 See \`config.log' for more details." >&5
2584 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2585 See \`config.log' for more details." >&2;}
2586    { (exit 1); exit 1; }; }
2587 fi
2588
2589 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2590 fi
2591 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2592 echo "${ECHO_T}$ac_cv_objext" >&6
2593 OBJEXT=$ac_cv_objext
2594 ac_objext=$OBJEXT
2595 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2596 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2597 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   cat >conftest.$ac_ext <<_ACEOF
2601 #line $LINENO "configure"
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607
2608 int
2609 main ()
2610 {
2611 #ifndef __GNUC__
2612        choke me
2613 #endif
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621   (eval $ac_compile) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; }; then
2631   ac_compiler_gnu=yes
2632 else
2633   echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636 ac_compiler_gnu=no
2637 fi
2638 rm -f conftest.$ac_objext conftest.$ac_ext
2639 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2640
2641 fi
2642 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2643 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2644 GXX=`test $ac_compiler_gnu = yes && echo yes`
2645 ac_test_CXXFLAGS=${CXXFLAGS+set}
2646 ac_save_CXXFLAGS=$CXXFLAGS
2647 CXXFLAGS="-g"
2648 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2649 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2650 if test "${ac_cv_prog_cxx_g+set}" = set; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   cat >conftest.$ac_ext <<_ACEOF
2654 #line $LINENO "configure"
2655 /* confdefs.h.  */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h.  */
2660
2661 int
2662 main ()
2663 {
2664
2665   ;
2666   return 0;
2667 }
2668 _ACEOF
2669 rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671   (eval $ac_compile) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -s conftest.$ac_objext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   ac_cv_prog_cxx_g=yes
2682 else
2683   echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 ac_cv_prog_cxx_g=no
2687 fi
2688 rm -f conftest.$ac_objext conftest.$ac_ext
2689 fi
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2691 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2692 if test "$ac_test_CXXFLAGS" = set; then
2693   CXXFLAGS=$ac_save_CXXFLAGS
2694 elif test $ac_cv_prog_cxx_g = yes; then
2695   if test "$GXX" = yes; then
2696     CXXFLAGS="-g -O2"
2697   else
2698     CXXFLAGS="-g"
2699   fi
2700 else
2701   if test "$GXX" = yes; then
2702     CXXFLAGS="-O2"
2703   else
2704     CXXFLAGS=
2705   fi
2706 fi
2707 for ac_declaration in \
2708    ''\
2709    '#include <stdlib.h>' \
2710    'extern "C" void std::exit (int) throw (); using std::exit;' \
2711    'extern "C" void std::exit (int); using std::exit;' \
2712    'extern "C" void exit (int) throw ();' \
2713    'extern "C" void exit (int);' \
2714    'void exit (int);'
2715 do
2716   cat >conftest.$ac_ext <<_ACEOF
2717 #line $LINENO "configure"
2718 /* confdefs.h.  */
2719 _ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h.  */
2723 #include <stdlib.h>
2724 $ac_declaration
2725 int
2726 main ()
2727 {
2728 exit (42);
2729   ;
2730   return 0;
2731 }
2732 _ACEOF
2733 rm -f conftest.$ac_objext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735   (eval $ac_compile) 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); } &&
2739          { ac_try='test -s conftest.$ac_objext'
2740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; }; then
2745   :
2746 else
2747   echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 continue
2751 fi
2752 rm -f conftest.$ac_objext conftest.$ac_ext
2753   cat >conftest.$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760 $ac_declaration
2761 int
2762 main ()
2763 {
2764 exit (42);
2765   ;
2766   return 0;
2767 }
2768 _ACEOF
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771   (eval $ac_compile) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); } &&
2775          { ac_try='test -s conftest.$ac_objext'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; }; then
2781   break
2782 else
2783   echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 fi
2787 rm -f conftest.$ac_objext conftest.$ac_ext
2788 done
2789 rm -f conftest*
2790 if test -n "$ac_declaration"; then
2791   echo '#ifdef __cplusplus' >>confdefs.h
2792   echo $ac_declaration      >>confdefs.h
2793   echo '#endif'             >>confdefs.h
2794 fi
2795
2796 ac_ext=c
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801
2802 ac_ext=c
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807 if test -n "$ac_tool_prefix"; then
2808   for ac_prog in gcc
2809   do
2810     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812 echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814 if test "${ac_cv_prog_CC+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   if test -n "$CC"; then
2818   ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825   for ac_exec_ext in '' $ac_executable_extensions; do
2826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832 done
2833
2834 fi
2835 fi
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838   echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6
2840 else
2841   echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2843 fi
2844
2845     test -n "$CC" && break
2846   done
2847 fi
2848 if test -z "$CC"; then
2849   ac_ct_CC=$CC
2850   for ac_prog in gcc
2851 do
2852   # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2857   echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859   if test -n "$ac_ct_CC"; then
2860   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865   IFS=$as_save_IFS
2866   test -z "$as_dir" && as_dir=.
2867   for ac_exec_ext in '' $ac_executable_extensions; do
2868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869     ac_cv_prog_ac_ct_CC="$ac_prog"
2870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871     break 2
2872   fi
2873 done
2874 done
2875
2876 fi
2877 fi
2878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2879 if test -n "$ac_ct_CC"; then
2880   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2881 echo "${ECHO_T}$ac_ct_CC" >&6
2882 else
2883   echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2885 fi
2886
2887   test -n "$ac_ct_CC" && break
2888 done
2889
2890   CC=$ac_ct_CC
2891 fi
2892
2893
2894 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: no acceptable C compiler found in \$PATH
2897 See \`config.log' for more details." >&2;}
2898    { (exit 1); exit 1; }; }
2899
2900 # Provide some information about the compiler.
2901 echo "$as_me:$LINENO:" \
2902      "checking for C compiler version" >&5
2903 ac_compiler=`set X $ac_compile; echo $2`
2904 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2905   (eval $ac_compiler --version </dev/null >&5) 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }
2909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2910   (eval $ac_compiler -v </dev/null >&5) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }
2914 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2915   (eval $ac_compiler -V </dev/null >&5) 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }
2919
2920 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2922 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932
2933 int
2934 main ()
2935 {
2936 #ifndef __GNUC__
2937        choke me
2938 #endif
2939
2940   ;
2941   return 0;
2942 }
2943 _ACEOF
2944 rm -f conftest.$ac_objext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2946   (eval $ac_compile) 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); } &&
2950          { ac_try='test -s conftest.$ac_objext'
2951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952   (eval $ac_try) 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; }; then
2956   ac_compiler_gnu=yes
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961 ac_compiler_gnu=no
2962 fi
2963 rm -f conftest.$ac_objext conftest.$ac_ext
2964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2965
2966 fi
2967 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2968 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2969 GCC=`test $ac_compiler_gnu = yes && echo yes`
2970 ac_test_CFLAGS=${CFLAGS+set}
2971 ac_save_CFLAGS=$CFLAGS
2972 CFLAGS="-g"
2973 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2974 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2975 if test "${ac_cv_prog_cc_g+set}" = set; then
2976   echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978   cat >conftest.$ac_ext <<_ACEOF
2979 #line $LINENO "configure"
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985
2986 int
2987 main ()
2988 {
2989
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996   (eval $ac_compile) 2>&5
2997   ac_status=$?
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); } &&
3000          { ac_try='test -s conftest.$ac_objext'
3001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002   (eval $ac_try) 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); }; }; then
3006   ac_cv_prog_cc_g=yes
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011 ac_cv_prog_cc_g=no
3012 fi
3013 rm -f conftest.$ac_objext conftest.$ac_ext
3014 fi
3015 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3017 if test "$ac_test_CFLAGS" = set; then
3018   CFLAGS=$ac_save_CFLAGS
3019 elif test $ac_cv_prog_cc_g = yes; then
3020   if test "$GCC" = yes; then
3021     CFLAGS="-g -O2"
3022   else
3023     CFLAGS="-g"
3024   fi
3025 else
3026   if test "$GCC" = yes; then
3027     CFLAGS="-O2"
3028   else
3029     CFLAGS=
3030   fi
3031 fi
3032 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3033 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3034 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   ac_cv_prog_cc_stdc=no
3038 ac_save_CC=$CC
3039 cat >conftest.$ac_ext <<_ACEOF
3040 #line $LINENO "configure"
3041 /* confdefs.h.  */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h.  */
3046 #include <stdarg.h>
3047 #include <stdio.h>
3048 #include <sys/types.h>
3049 #include <sys/stat.h>
3050 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3051 struct buf { int x; };
3052 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3053 static char *e (p, i)
3054      char **p;
3055      int i;
3056 {
3057   return p[i];
3058 }
3059 static char *f (char * (*g) (char **, int), char **p, ...)
3060 {
3061   char *s;
3062   va_list v;
3063   va_start (v,p);
3064   s = g (p, va_arg (v,int));
3065   va_end (v);
3066   return s;
3067 }
3068 int test (int i, double x);
3069 struct s1 {int (*f) (int a);};
3070 struct s2 {int (*f) (double a);};
3071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3072 int argc;
3073 char **argv;
3074 int
3075 main ()
3076 {
3077 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 # Don't try gcc -ansi; that turns off useful extensions and
3083 # breaks some systems' header files.
3084 # AIX                   -qlanglvl=ansi
3085 # Ultrix and OSF/1      -std1
3086 # HP-UX 10.20 and later -Ae
3087 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3088 # SVR4                  -Xc -D__EXTENSIONS__
3089 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3090 do
3091   CC="$ac_save_CC $ac_arg"
3092   rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094   (eval $ac_compile) 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } &&
3098          { ac_try='test -s conftest.$ac_objext'
3099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100   (eval $ac_try) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   ac_cv_prog_cc_stdc=$ac_arg
3105 break
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 fi
3111 rm -f conftest.$ac_objext
3112 done
3113 rm -f conftest.$ac_ext conftest.$ac_objext
3114 CC=$ac_save_CC
3115
3116 fi
3117
3118 case "x$ac_cv_prog_cc_stdc" in
3119   x|xno)
3120     echo "$as_me:$LINENO: result: none needed" >&5
3121 echo "${ECHO_T}none needed" >&6 ;;
3122   *)
3123     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3124 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3125     CC="$CC $ac_cv_prog_cc_stdc" ;;
3126 esac
3127
3128 # Some people use a C++ compiler to compile C.  Since we use `exit',
3129 # in C++ we need to declare it.  In case someone uses the same compiler
3130 # for both compiling C and C++ we need to have the C++ compiler decide
3131 # the declaration of exit, since it's the most demanding environment.
3132 cat >conftest.$ac_ext <<_ACEOF
3133 #ifndef __cplusplus
3134   choke me
3135 #endif
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139   (eval $ac_compile) 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } &&
3143          { ac_try='test -s conftest.$ac_objext'
3144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145   (eval $ac_try) 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; }; then
3149   for ac_declaration in \
3150    ''\
3151    '#include <stdlib.h>' \
3152    'extern "C" void std::exit (int) throw (); using std::exit;' \
3153    'extern "C" void std::exit (int); using std::exit;' \
3154    'extern "C" void exit (int) throw ();' \
3155    'extern "C" void exit (int);' \
3156    'void exit (int);'
3157 do
3158   cat >conftest.$ac_ext <<_ACEOF
3159 #line $LINENO "configure"
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 #include <stdlib.h>
3166 $ac_declaration
3167 int
3168 main ()
3169 {
3170 exit (42);
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3177   (eval $ac_compile) 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } &&
3181          { ac_try='test -s conftest.$ac_objext'
3182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183   (eval $ac_try) 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; }; then
3187   :
3188 else
3189   echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192 continue
3193 fi
3194 rm -f conftest.$ac_objext conftest.$ac_ext
3195   cat >conftest.$ac_ext <<_ACEOF
3196 #line $LINENO "configure"
3197 /* confdefs.h.  */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h.  */
3202 $ac_declaration
3203 int
3204 main ()
3205 {
3206 exit (42);
3207   ;
3208   return 0;
3209 }
3210 _ACEOF
3211 rm -f conftest.$ac_objext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213   (eval $ac_compile) 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); } &&
3217          { ac_try='test -s conftest.$ac_objext'
3218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219   (eval $ac_try) 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); }; }; then
3223   break
3224 else
3225   echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3227
3228 fi
3229 rm -f conftest.$ac_objext conftest.$ac_ext
3230 done
3231 rm -f conftest*
3232 if test -n "$ac_declaration"; then
3233   echo '#ifdef __cplusplus' >>confdefs.h
3234   echo $ac_declaration      >>confdefs.h
3235   echo '#endif'             >>confdefs.h
3236 fi
3237
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 fi
3243 rm -f conftest.$ac_objext conftest.$ac_ext
3244 ac_ext=c
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249
3250 ac_ext=c
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3256 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3257 # On Suns, sometimes $CPP names a directory.
3258 if test -n "$CPP" && test -d "$CPP"; then
3259   CPP=
3260 fi
3261 if test -z "$CPP"; then
3262   if test "${ac_cv_prog_CPP+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265       # Double quotes because CPP needs to be expanded
3266     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3267     do
3268       ac_preproc_ok=false
3269 for ac_c_preproc_warn_flag in '' yes
3270 do
3271   # Use a header file that comes with gcc, so configuring glibc
3272   # with a fresh cross-compiler works.
3273   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274   # <limits.h> exists even on freestanding compilers.
3275   # On the NeXT, cc -E runs the code through the compiler's parser,
3276   # not just through cpp. "Syntax error" is here to catch this case.
3277   cat >conftest.$ac_ext <<_ACEOF
3278 #line $LINENO "configure"
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #ifdef __STDC__
3285 # include <limits.h>
3286 #else
3287 # include <assert.h>
3288 #endif
3289                      Syntax error
3290 _ACEOF
3291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293   ac_status=$?
3294   grep -v '^ *+' conftest.er1 >conftest.err
3295   rm -f conftest.er1
3296   cat conftest.err >&5
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } >/dev/null; then
3299   if test -s conftest.err; then
3300     ac_cpp_err=$ac_c_preproc_warn_flag
3301   else
3302     ac_cpp_err=
3303   fi
3304 else
3305   ac_cpp_err=yes
3306 fi
3307 if test -z "$ac_cpp_err"; then
3308   :
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313   # Broken: fails on valid input.
3314 continue
3315 fi
3316 rm -f conftest.err conftest.$ac_ext
3317
3318   # OK, works on sane cases.  Now check whether non-existent headers
3319   # can be detected and how.
3320   cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327 #include <ac_nonexistent.h>
3328 _ACEOF
3329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331   ac_status=$?
3332   grep -v '^ *+' conftest.er1 >conftest.err
3333   rm -f conftest.er1
3334   cat conftest.err >&5
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); } >/dev/null; then
3337   if test -s conftest.err; then
3338     ac_cpp_err=$ac_c_preproc_warn_flag
3339   else
3340     ac_cpp_err=
3341   fi
3342 else
3343   ac_cpp_err=yes
3344 fi
3345 if test -z "$ac_cpp_err"; then
3346   # Broken: success on invalid input.
3347 continue
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352   # Passes both tests.
3353 ac_preproc_ok=:
3354 break
3355 fi
3356 rm -f conftest.err conftest.$ac_ext
3357
3358 done
3359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360 rm -f conftest.err conftest.$ac_ext
3361 if $ac_preproc_ok; then
3362   break
3363 fi
3364
3365     done
3366     ac_cv_prog_CPP=$CPP
3367
3368 fi
3369   CPP=$ac_cv_prog_CPP
3370 else
3371   ac_cv_prog_CPP=$CPP
3372 fi
3373 echo "$as_me:$LINENO: result: $CPP" >&5
3374 echo "${ECHO_T}$CPP" >&6
3375 ac_preproc_ok=false
3376 for ac_c_preproc_warn_flag in '' yes
3377 do
3378   # Use a header file that comes with gcc, so configuring glibc
3379   # with a fresh cross-compiler works.
3380   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381   # <limits.h> exists even on freestanding compilers.
3382   # On the NeXT, cc -E runs the code through the compiler's parser,
3383   # not just through cpp. "Syntax error" is here to catch this case.
3384   cat >conftest.$ac_ext <<_ACEOF
3385 #line $LINENO "configure"
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391 #ifdef __STDC__
3392 # include <limits.h>
3393 #else
3394 # include <assert.h>
3395 #endif
3396                      Syntax error
3397 _ACEOF
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } >/dev/null; then
3406   if test -s conftest.err; then
3407     ac_cpp_err=$ac_c_preproc_warn_flag
3408   else
3409     ac_cpp_err=
3410   fi
3411 else
3412   ac_cpp_err=yes
3413 fi
3414 if test -z "$ac_cpp_err"; then
3415   :
3416 else
3417   echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420   # Broken: fails on valid input.
3421 continue
3422 fi
3423 rm -f conftest.err conftest.$ac_ext
3424
3425   # OK, works on sane cases.  Now check whether non-existent headers
3426   # can be detected and how.
3427   cat >conftest.$ac_ext <<_ACEOF
3428 #line $LINENO "configure"
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434 #include <ac_nonexistent.h>
3435 _ACEOF
3436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3438   ac_status=$?
3439   grep -v '^ *+' conftest.er1 >conftest.err
3440   rm -f conftest.er1
3441   cat conftest.err >&5
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); } >/dev/null; then
3444   if test -s conftest.err; then
3445     ac_cpp_err=$ac_c_preproc_warn_flag
3446   else
3447     ac_cpp_err=
3448   fi
3449 else
3450   ac_cpp_err=yes
3451 fi
3452 if test -z "$ac_cpp_err"; then
3453   # Broken: success on invalid input.
3454 continue
3455 else
3456   echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459   # Passes both tests.
3460 ac_preproc_ok=:
3461 break
3462 fi
3463 rm -f conftest.err conftest.$ac_ext
3464
3465 done
3466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467 rm -f conftest.err conftest.$ac_ext
3468 if $ac_preproc_ok; then
3469   :
3470 else
3471   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3472 See \`config.log' for more details." >&5
3473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3474 See \`config.log' for more details." >&2;}
3475    { (exit 1); exit 1; }; }
3476 fi
3477
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484
3485 if test "$GCC" != "yes"
3486 then
3487         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3488 echo "$as_me: error: gcc required but not found" >&2;}
3489    { (exit 1); exit 1; }; }
3490 fi
3491
3492 if test "$GXX" != "yes"
3493 then
3494         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3495 echo "$as_me: error: g++ required but not found" >&2;}
3496    { (exit 1); exit 1; }; }
3497 fi
3498
3499 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3500 if test "$gccmajor" -lt "3"
3501 then
3502         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3503 echo "$as_me: error: gcc 3.x required" >&2;}
3504    { (exit 1); exit 1; }; }
3505 fi
3506
3507  echo "$as_me:$LINENO: checking for GNU make" >&5
3508 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3509 if test "${_cv_gnu_make_command+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   _cv_gnu_make_command='' ;
3513                 for a in "$MAKE" make gmake gnumake ; do
3514                         if test -z "$a" ; then continue ; fi ;
3515                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3516                                 _cv_gnu_make_command=$a ;
3517                                 break;
3518                         fi
3519                 done ;
3520
3521 fi
3522 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3523 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3524         if test  "x$_cv_gnu_make_command" != "x"  ; then
3525                 ifGNUmake='' ;
3526         else
3527                 ifGNUmake='#' ;
3528                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3529 echo "${ECHO_T}\"Not found\"" >&6;
3530         fi
3531
3532
3533 if test -z "$_cv_gnu_make_command"
3534 then
3535         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3536 echo "$as_me: error: GNU Make required but not found" >&2;}
3537    { (exit 1); exit 1; }; }
3538 fi
3539
3540
3541 echo "$as_me:$LINENO: checking " >&5
3542 echo $ECHO_N "checking ... $ECHO_C" >&6
3543 if test "${ac_cv_has_flex+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   for ac_prog in flex lex
3547 do
3548   # Extract the first word of "$ac_prog", so it can be a program name with args.
3549 set dummy $ac_prog; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_prog_LEX+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   if test -n "$LEX"; then
3556   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561   IFS=$as_save_IFS
3562   test -z "$as_dir" && as_dir=.
3563   for ac_exec_ext in '' $ac_executable_extensions; do
3564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565     ac_cv_prog_LEX="$ac_prog"
3566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567     break 2
3568   fi
3569 done
3570 done
3571
3572 fi
3573 fi
3574 LEX=$ac_cv_prog_LEX
3575 if test -n "$LEX"; then
3576   echo "$as_me:$LINENO: result: $LEX" >&5
3577 echo "${ECHO_T}$LEX" >&6
3578 else
3579   echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6
3581 fi
3582
3583   test -n "$LEX" && break
3584 done
3585 test -n "$LEX" || LEX=":"
3586
3587 if test -z "$LEXLIB"
3588 then
3589   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3590 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3591 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   ac_check_lib_save_LIBS=$LIBS
3595 LIBS="-lfl  $LIBS"
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line $LINENO "configure"
3598 /* confdefs.h.  */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h.  */
3603
3604 /* Override any gcc2 internal prototype to avoid an error.  */
3605 #ifdef __cplusplus
3606 extern "C"
3607 #endif
3608 /* We use char because int might match the return type of a gcc2
3609    builtin and then its argument prototype would still apply.  */
3610 char yywrap ();
3611 int
3612 main ()
3613 {
3614 yywrap ();
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 rm -f conftest.$ac_objext conftest$ac_exeext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3621   (eval $ac_link) 2>&5
3622   ac_status=$?
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); } &&
3625          { ac_try='test -s conftest$ac_exeext'
3626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627   (eval $ac_try) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; }; then
3631   ac_cv_lib_fl_yywrap=yes
3632 else
3633   echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 ac_cv_lib_fl_yywrap=no
3637 fi
3638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3639 LIBS=$ac_check_lib_save_LIBS
3640 fi
3641 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3642 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3643 if test $ac_cv_lib_fl_yywrap = yes; then
3644   LEXLIB="-lfl"
3645 else
3646   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3647 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3648 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   ac_check_lib_save_LIBS=$LIBS
3652 LIBS="-ll  $LIBS"
3653 cat >conftest.$ac_ext <<_ACEOF
3654 #line $LINENO "configure"
3655 /* confdefs.h.  */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h.  */
3660
3661 /* Override any gcc2 internal prototype to avoid an error.  */
3662 #ifdef __cplusplus
3663 extern "C"
3664 #endif
3665 /* We use char because int might match the return type of a gcc2
3666    builtin and then its argument prototype would still apply.  */
3667 char yywrap ();
3668 int
3669 main ()
3670 {
3671 yywrap ();
3672   ;
3673   return 0;
3674 }
3675 _ACEOF
3676 rm -f conftest.$ac_objext conftest$ac_exeext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3678   (eval $ac_link) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } &&
3682          { ac_try='test -s conftest$ac_exeext'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; }; then
3688   ac_cv_lib_l_yywrap=yes
3689 else
3690   echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 ac_cv_lib_l_yywrap=no
3694 fi
3695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3696 LIBS=$ac_check_lib_save_LIBS
3697 fi
3698 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3699 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3700 if test $ac_cv_lib_l_yywrap = yes; then
3701   LEXLIB="-ll"
3702 fi
3703
3704 fi
3705
3706 fi
3707
3708 if test "x$LEX" != "x:"; then
3709   echo "$as_me:$LINENO: checking lex output file root" >&5
3710 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3711 if test "${ac_cv_prog_lex_root+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   # The minimal lex program is just a single line: %%.  But some broken lexes
3715 # (Solaris, I think it was) want two %% lines, so accommodate them.
3716 cat >conftest.l <<_ACEOF
3717 %%
3718 %%
3719 _ACEOF
3720 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3721   (eval $LEX conftest.l) 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }
3725 if test -f lex.yy.c; then
3726   ac_cv_prog_lex_root=lex.yy
3727 elif test -f lexyy.c; then
3728   ac_cv_prog_lex_root=lexyy
3729 else
3730   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3731 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3732    { (exit 1); exit 1; }; }
3733 fi
3734 fi
3735 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3736 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3737 rm -f conftest.l
3738 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3739
3740 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3741 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3742 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   # POSIX says lex can declare yytext either as a pointer or an array; the
3746 # default is implementation-dependent. Figure out which it is, since
3747 # not all implementations provide the %pointer and %array declarations.
3748 ac_cv_prog_lex_yytext_pointer=no
3749 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3750 ac_save_LIBS=$LIBS
3751 LIBS="$LIBS $LEXLIB"
3752 cat >conftest.$ac_ext <<_ACEOF
3753 `cat $LEX_OUTPUT_ROOT.c`
3754 _ACEOF
3755 rm -f conftest.$ac_objext conftest$ac_exeext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3757   (eval $ac_link) 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); } &&
3761          { ac_try='test -s conftest$ac_exeext'
3762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763   (eval $ac_try) 2>&5
3764   ac_status=$?
3765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); }; }; then
3767   ac_cv_prog_lex_yytext_pointer=yes
3768 else
3769   echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772 fi
3773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3774 LIBS=$ac_save_LIBS
3775 rm -f "${LEX_OUTPUT_ROOT}.c"
3776
3777 fi
3778 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3779 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3780 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3781
3782 cat >>confdefs.h <<\_ACEOF
3783 #define YYTEXT_POINTER 1
3784 _ACEOF
3785
3786 fi
3787
3788 fi
3789
3790 fi
3791 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3792 echo "${ECHO_T}$ac_cv_has_flex" >&6
3793 if test "$LEX" != "flex"; then
3794   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3795 echo "$as_me: error: flex not found but required" >&2;}
3796    { (exit 1); exit 1; }; }
3797 fi
3798
3799 echo "$as_me:$LINENO: checking " >&5
3800 echo $ECHO_N "checking ... $ECHO_C" >&6
3801 if test "${ac_cv_has_bison+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   for ac_prog in 'bison -y' byacc
3805 do
3806   # Extract the first word of "$ac_prog", so it can be a program name with args.
3807 set dummy $ac_prog; ac_word=$2
3808 echo "$as_me:$LINENO: checking for $ac_word" >&5
3809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3810 if test "${ac_cv_prog_YACC+set}" = set; then
3811   echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813   if test -n "$YACC"; then
3814   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3815 else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3818 do
3819   IFS=$as_save_IFS
3820   test -z "$as_dir" && as_dir=.
3821   for ac_exec_ext in '' $ac_executable_extensions; do
3822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823     ac_cv_prog_YACC="$ac_prog"
3824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825     break 2
3826   fi
3827 done
3828 done
3829
3830 fi
3831 fi
3832 YACC=$ac_cv_prog_YACC
3833 if test -n "$YACC"; then
3834   echo "$as_me:$LINENO: result: $YACC" >&5
3835 echo "${ECHO_T}$YACC" >&6
3836 else
3837   echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3839 fi
3840
3841   test -n "$YACC" && break
3842 done
3843 test -n "$YACC" || YACC="yacc"
3844
3845
3846 fi
3847 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3848 echo "${ECHO_T}$ac_cv_has_bison" >&6
3849 if test "$YACC" != "bison -y"; then
3850   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3851 echo "$as_me: error: bison not found but required" >&2;}
3852    { (exit 1); exit 1; }; }
3853 else
3854   YACC=bison
3855
3856 fi
3857
3858
3859 # Check whether --enable-shared or --disable-shared was given.
3860 if test "${enable_shared+set}" = set; then
3861   enableval="$enable_shared"
3862   p=${PACKAGE-default}
3863     case $enableval in
3864     yes) enable_shared=yes ;;
3865     no) enable_shared=no ;;
3866     *)
3867       enable_shared=no
3868       # Look at the argument we got.  We use all the common list separators.
3869       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3870       for pkg in $enableval; do
3871         IFS="$lt_save_ifs"
3872         if test "X$pkg" = "X$p"; then
3873           enable_shared=yes
3874         fi
3875       done
3876       IFS="$lt_save_ifs"
3877       ;;
3878     esac
3879 else
3880   enable_shared=yes
3881 fi;
3882
3883 # Check whether --enable-static or --disable-static was given.
3884 if test "${enable_static+set}" = set; then
3885   enableval="$enable_static"
3886   p=${PACKAGE-default}
3887     case $enableval in
3888     yes) enable_static=yes ;;
3889     no) enable_static=no ;;
3890     *)
3891      enable_static=no
3892       # Look at the argument we got.  We use all the common list separators.
3893       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3894       for pkg in $enableval; do
3895         IFS="$lt_save_ifs"
3896         if test "X$pkg" = "X$p"; then
3897           enable_static=yes
3898         fi
3899       done
3900       IFS="$lt_save_ifs"
3901       ;;
3902     esac
3903 else
3904   enable_static=yes
3905 fi;
3906
3907 # Check whether --enable-fast-install or --disable-fast-install was given.
3908 if test "${enable_fast_install+set}" = set; then
3909   enableval="$enable_fast_install"
3910   p=${PACKAGE-default}
3911     case $enableval in
3912     yes) enable_fast_install=yes ;;
3913     no) enable_fast_install=no ;;
3914     *)
3915       enable_fast_install=no
3916       # Look at the argument we got.  We use all the common list separators.
3917       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3918       for pkg in $enableval; do
3919         IFS="$lt_save_ifs"
3920         if test "X$pkg" = "X$p"; then
3921           enable_fast_install=yes
3922         fi
3923       done
3924       IFS="$lt_save_ifs"
3925       ;;
3926     esac
3927 else
3928   enable_fast_install=yes
3929 fi;
3930
3931 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3932 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3933 if test "${lt_cv_path_SED+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   # Loop through the user's path and test for sed and gsed.
3937 # Then use that list of sed's as ones to test for truncation.
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3940 do
3941   IFS=$as_save_IFS
3942   test -z "$as_dir" && as_dir=.
3943   for lt_ac_prog in sed gsed; do
3944     for ac_exec_ext in '' $ac_executable_extensions; do
3945       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3946         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3947       fi
3948     done
3949   done
3950 done
3951 lt_ac_max=0
3952 lt_ac_count=0
3953 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3954 # along with /bin/sed that truncates output.
3955 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3956   test ! -f $lt_ac_sed && break
3957   cat /dev/null > conftest.in
3958   lt_ac_count=0
3959   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3960   # Check for GNU sed and select it if it is found.
3961   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3962     lt_cv_path_SED=$lt_ac_sed
3963     break
3964   fi
3965   while true; do
3966     cat conftest.in conftest.in >conftest.tmp
3967     mv conftest.tmp conftest.in
3968     cp conftest.in conftest.nl
3969     echo >>conftest.nl
3970     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3971     cmp -s conftest.out conftest.nl || break
3972     # 10000 chars as input seems more than enough
3973     test $lt_ac_count -gt 10 && break
3974     lt_ac_count=`expr $lt_ac_count + 1`
3975     if test $lt_ac_count -gt $lt_ac_max; then
3976       lt_ac_max=$lt_ac_count
3977       lt_cv_path_SED=$lt_ac_sed
3978     fi
3979   done
3980 done
3981 SED=$lt_cv_path_SED
3982
3983 fi
3984
3985 echo "$as_me:$LINENO: result: $SED" >&5
3986 echo "${ECHO_T}$SED" >&6
3987
3988 echo "$as_me:$LINENO: checking for egrep" >&5
3989 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3990 if test "${ac_cv_prog_egrep+set}" = set; then
3991   echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3994     then ac_cv_prog_egrep='grep -E'
3995     else ac_cv_prog_egrep='egrep'
3996     fi
3997 fi
3998 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3999 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4000  EGREP=$ac_cv_prog_egrep
4001
4002
4003
4004 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4005 if test "${with_gnu_ld+set}" = set; then
4006   withval="$with_gnu_ld"
4007   test "$withval" = no || with_gnu_ld=yes
4008 else
4009   with_gnu_ld=no
4010 fi;
4011 ac_prog=ld
4012 if test "$GCC" = yes; then
4013   # Check if gcc -print-prog-name=ld gives a path.
4014   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4015 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4016   case $host in
4017   *-*-mingw*)
4018     # gcc leaves a trailing carriage return which upsets mingw
4019     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4020   *)
4021     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4022   esac
4023   case $ac_prog in
4024     # Accept absolute paths.
4025     [\\/]* | ?:[\\/]*)
4026       re_direlt='/[^/][^/]*/\.\./'
4027       # Canonicalize the path of ld
4028       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4029       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4030         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4031       done
4032       test -z "$LD" && LD="$ac_prog"
4033       ;;
4034   "")
4035     # If it fails, then pretend we aren't using GCC.
4036     ac_prog=ld
4037     ;;
4038   *)
4039     # If it is relative, then search for the first ld in PATH.
4040     with_gnu_ld=unknown
4041     ;;
4042   esac
4043 elif test "$with_gnu_ld" = yes; then
4044   echo "$as_me:$LINENO: checking for GNU ld" >&5
4045 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4046 else
4047   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4048 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4049 fi
4050 if test "${lt_cv_path_LD+set}" = set; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053   if test -z "$LD"; then
4054   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4055   for ac_dir in $PATH; do
4056     IFS="$lt_save_ifs"
4057     test -z "$ac_dir" && ac_dir=.
4058     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4059       lt_cv_path_LD="$ac_dir/$ac_prog"
4060       # Check to see if the program is GNU ld.  I'd rather use --version,
4061       # but apparently some GNU ld's only accept -v.
4062       # Break only if it was the GNU/non-GNU ld that we prefer.
4063       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4064       *GNU* | *'with BFD'*)
4065         test "$with_gnu_ld" != no && break
4066         ;;
4067       *)
4068         test "$with_gnu_ld" != yes && break
4069         ;;
4070       esac
4071     fi
4072   done
4073   IFS="$lt_save_ifs"
4074 else
4075   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4076 fi
4077 fi
4078
4079 LD="$lt_cv_path_LD"
4080 if test -n "$LD"; then
4081   echo "$as_me:$LINENO: result: $LD" >&5
4082 echo "${ECHO_T}$LD" >&6
4083 else
4084   echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6
4086 fi
4087 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4088 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4089    { (exit 1); exit 1; }; }
4090 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4091 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4092 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4096 case `"$LD" -v 2>&1 </dev/null` in
4097 *GNU* | *'with BFD'*)
4098   lt_cv_prog_gnu_ld=yes
4099   ;;
4100 *)
4101   lt_cv_prog_gnu_ld=no
4102   ;;
4103 esac
4104 fi
4105 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4106 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4107 with_gnu_ld=$lt_cv_prog_gnu_ld
4108
4109
4110 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4111 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4112 if test "${lt_cv_ld_reload_flag+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   lt_cv_ld_reload_flag='-r'
4116 fi
4117 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4118 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4119 reload_flag=$lt_cv_ld_reload_flag
4120 case $reload_flag in
4121 "" | " "*) ;;
4122 *) reload_flag=" $reload_flag" ;;
4123 esac
4124 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4125
4126 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4127 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4128 if test "${lt_cv_path_NM+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   if test -n "$NM"; then
4132   # Let the user override the test.
4133   lt_cv_path_NM="$NM"
4134 else
4135   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4136   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4137     IFS="$lt_save_ifs"
4138     test -z "$ac_dir" && ac_dir=.
4139     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4140     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4141       # Check to see if the nm accepts a BSD-compat flag.
4142       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4143       #   nm: unknown option "B" ignored
4144       # Tru64's nm complains that /dev/null is an invalid object file
4145       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4146       */dev/null* | *'Invalid file or object type'*)
4147         lt_cv_path_NM="$tmp_nm -B"
4148         break
4149         ;;
4150       *)
4151         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4152         */dev/null*)
4153           lt_cv_path_NM="$tmp_nm -p"
4154           break
4155           ;;
4156         *)
4157           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4158           continue # so that we can try to find one that supports BSD flags
4159           ;;
4160         esac
4161       esac
4162     fi
4163   done
4164   IFS="$lt_save_ifs"
4165   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4166 fi
4167 fi
4168 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4169 echo "${ECHO_T}$lt_cv_path_NM" >&6
4170 NM="$lt_cv_path_NM"
4171
4172 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4173 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4174 LN_S=$as_ln_s
4175 if test "$LN_S" = "ln -s"; then
4176   echo "$as_me:$LINENO: result: yes" >&5
4177 echo "${ECHO_T}yes" >&6
4178 else
4179   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4180 echo "${ECHO_T}no, using $LN_S" >&6
4181 fi
4182
4183 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4184 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4185 if test "${lt_cv_deplibs_check_method+set}" = set; then
4186   echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188   lt_cv_file_magic_cmd='$MAGIC_CMD'
4189 lt_cv_file_magic_test_file=
4190 lt_cv_deplibs_check_method='unknown'
4191 # Need to set the preceding variable on all platforms that support
4192 # interlibrary dependencies.
4193 # 'none' -- dependencies not supported.
4194 # `unknown' -- same as none, but documents that we really don't know.
4195 # 'pass_all' -- all dependencies passed with no checks.
4196 # 'test_compile' -- check by making test program.
4197 # 'file_magic [[regex]]' -- check by looking for files in library path
4198 # which responds to the $file_magic_cmd with a given extended regex.
4199 # If you have `file' or equivalent on your system and you're not sure
4200 # whether `pass_all' will *always* work, you probably want this one.
4201
4202 case $host_os in
4203 aix4* | aix5*)
4204   lt_cv_deplibs_check_method=pass_all
4205   ;;
4206
4207 beos*)
4208   lt_cv_deplibs_check_method=pass_all
4209   ;;
4210
4211 bsdi4*)
4212   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4213   lt_cv_file_magic_cmd='/usr/bin/file -L'
4214   lt_cv_file_magic_test_file=/shlib/libc.so
4215   ;;
4216
4217 cygwin* | mingw* | pw32*)
4218   # win32_libid is a shell function defined in ltmain.sh
4219   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4220   lt_cv_file_magic_cmd='win32_libid'
4221   ;;
4222
4223 darwin* | rhapsody*)
4224   # this will be overwritten by pass_all, but leave it in just in case
4225   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4226   lt_cv_file_magic_cmd='/usr/bin/file -L'
4227   case "$host_os" in
4228   rhapsody* | darwin1.[012])
4229     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4230     ;;
4231   *) # Darwin 1.3 on
4232     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4233     ;;
4234   esac
4235   lt_cv_deplibs_check_method=pass_all
4236   ;;
4237
4238 freebsd*)
4239   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4240     case $host_cpu in
4241     i*86 )
4242       # Not sure whether the presence of OpenBSD here was a mistake.
4243       # Let's accept both of them until this is cleared up.
4244       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4245       lt_cv_file_magic_cmd=/usr/bin/file
4246       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4247       ;;
4248     esac
4249   else
4250     lt_cv_deplibs_check_method=pass_all
4251   fi
4252   ;;
4253
4254 gnu*)
4255   lt_cv_deplibs_check_method=pass_all
4256   ;;
4257
4258 hpux10.20* | hpux11*)
4259   lt_cv_file_magic_cmd=/usr/bin/file
4260   case "$host_cpu" in
4261   ia64*)
4262     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4263     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4264     ;;
4265   hppa*64*)
4266     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]'
4267     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4268     ;;
4269   *)
4270     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4271     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4272     ;;
4273   esac
4274   ;;
4275
4276 irix5* | irix6* | nonstopux*)
4277   case $host_os in
4278   irix5* | nonstopux*)
4279     # this will be overridden with pass_all, but let us keep it just in case
4280     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4281     ;;
4282   *)
4283     case $LD in
4284     *-32|*"-32 ") libmagic=32-bit;;
4285     *-n32|*"-n32 ") libmagic=N32;;
4286     *-64|*"-64 ") libmagic=64-bit;;
4287     *) libmagic=never-match;;
4288     esac
4289     # this will be overridden with pass_all, but let us keep it just in case
4290     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4291     ;;
4292   esac
4293   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4294   lt_cv_deplibs_check_method=pass_all
4295   ;;
4296
4297 # This must be Linux ELF.
4298 linux*)
4299   case $host_cpu in
4300   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4301     lt_cv_deplibs_check_method=pass_all ;;
4302   *)
4303     # glibc up to 2.1.1 does not perform some relocations on ARM
4304     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4305   esac
4306   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4307   ;;
4308
4309 netbsd*)
4310   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4311     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4312   else
4313     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4314   fi
4315   ;;
4316
4317 newos6*)
4318   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4319   lt_cv_file_magic_cmd=/usr/bin/file
4320   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4321   ;;
4322
4323 nto-qnx)
4324   lt_cv_deplibs_check_method=unknown
4325   ;;
4326
4327 openbsd*)
4328   lt_cv_file_magic_cmd=/usr/bin/file
4329   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4330   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4331     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4332   else
4333     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4334   fi
4335   ;;
4336
4337 osf3* | osf4* | osf5*)
4338   # this will be overridden with pass_all, but let us keep it just in case
4339   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4340   lt_cv_file_magic_test_file=/shlib/libc.so
4341   lt_cv_deplibs_check_method=pass_all
4342   ;;
4343
4344 sco3.2v5*)
4345   lt_cv_deplibs_check_method=pass_all
4346   ;;
4347
4348 solaris*)
4349   lt_cv_deplibs_check_method=pass_all
4350   lt_cv_file_magic_test_file=/lib/libc.so
4351   ;;
4352
4353 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4354   case $host_vendor in
4355   motorola)
4356     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]'
4357     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4358     ;;
4359   ncr)
4360     lt_cv_deplibs_check_method=pass_all
4361     ;;
4362   sequent)
4363     lt_cv_file_magic_cmd='/bin/file'
4364     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4365     ;;
4366   sni)
4367     lt_cv_file_magic_cmd='/bin/file'
4368     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4369     lt_cv_file_magic_test_file=/lib/libc.so
4370     ;;
4371   siemens)
4372     lt_cv_deplibs_check_method=pass_all
4373     ;;
4374   esac
4375   ;;
4376
4377 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4378   lt_cv_deplibs_check_method=pass_all
4379   ;;
4380 esac
4381
4382 fi
4383 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4384 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4385 file_magic_cmd=$lt_cv_file_magic_cmd
4386 deplibs_check_method=$lt_cv_deplibs_check_method
4387 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4388
4389
4390
4391
4392 # If no C compiler was specified, use CC.
4393 LTCC=${LTCC-"$CC"}
4394
4395 # Allow CC to be a program name with arguments.
4396 compiler=$CC
4397
4398 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4399 if test "${enable_libtool_lock+set}" = set; then
4400   enableval="$enable_libtool_lock"
4401
4402 fi;
4403 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4404
4405 # Some flags need to be propagated to the compiler or linker for good
4406 # libtool support.
4407 case $host in
4408 ia64-*-hpux*)
4409   # Find out which ABI we are using.
4410   echo 'int i;' > conftest.$ac_ext
4411   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412   (eval $ac_compile) 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; then
4416     case `/usr/bin/file conftest.$ac_objext` in
4417     *ELF-32*)
4418       HPUX_IA64_MODE="32"
4419       ;;
4420     *ELF-64*)
4421       HPUX_IA64_MODE="64"
4422       ;;
4423     esac
4424   fi
4425   rm -rf conftest*
4426   ;;
4427 *-*-irix6*)
4428   # Find out which ABI we are using.
4429   echo '#line 4429 "configure"' > conftest.$ac_ext
4430   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431   (eval $ac_compile) 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); }; then
4435    if test "$lt_cv_prog_gnu_ld" = yes; then
4436     case `/usr/bin/file conftest.$ac_objext` in
4437     *32-bit*)
4438       LD="${LD-ld} -melf32bsmip"
4439       ;;
4440     *N32*)
4441       LD="${LD-ld} -melf32bmipn32"
4442       ;;
4443     *64-bit*)
4444       LD="${LD-ld} -melf64bmip"
4445       ;;
4446     esac
4447    else
4448     case `/usr/bin/file conftest.$ac_objext` in
4449     *32-bit*)
4450       LD="${LD-ld} -32"
4451       ;;
4452     *N32*)
4453       LD="${LD-ld} -n32"
4454       ;;
4455     *64-bit*)
4456       LD="${LD-ld} -64"
4457       ;;
4458     esac
4459    fi
4460   fi
4461   rm -rf conftest*
4462   ;;
4463
4464 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4465   # Find out which ABI we are using.
4466   echo 'int i;' > conftest.$ac_ext
4467   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468   (eval $ac_compile) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; then
4472     case "`/usr/bin/file conftest.o`" in
4473     *32-bit*)
4474       case $host in
4475         x86_64-*linux*)
4476           LD="${LD-ld} -m elf_i386"
4477           ;;
4478         ppc64-*linux*)
4479           LD="${LD-ld} -m elf32ppclinux"
4480           ;;
4481         s390x-*linux*)
4482           LD="${LD-ld} -m elf_s390"
4483           ;;
4484         sparc64-*linux*)
4485           LD="${LD-ld} -m elf32_sparc"
4486           ;;
4487       esac
4488       ;;
4489     *64-bit*)
4490       case $host in
4491         x86_64-*linux*)
4492           LD="${LD-ld} -m elf_x86_64"
4493           ;;
4494         ppc*-*linux*|powerpc*-*linux*)
4495           LD="${LD-ld} -m elf64ppc"
4496           ;;
4497         s390*-*linux*)
4498           LD="${LD-ld} -m elf64_s390"
4499           ;;
4500         sparc*-*linux*)
4501           LD="${LD-ld} -m elf64_sparc"
4502           ;;
4503       esac
4504       ;;
4505     esac
4506   fi
4507   rm -rf conftest*
4508   ;;
4509
4510 *-*-sco3.2v5*)
4511   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4512   SAVE_CFLAGS="$CFLAGS"
4513   CFLAGS="$CFLAGS -belf"
4514   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4515 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4516 if test "${lt_cv_cc_needs_belf+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   ac_ext=c
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524
4525      cat >conftest.$ac_ext <<_ACEOF
4526 #line $LINENO "configure"
4527 /* confdefs.h.  */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h.  */
4532
4533 int
4534 main ()
4535 {
4536
4537   ;
4538   return 0;
4539 }
4540 _ACEOF
4541 rm -f conftest.$ac_objext conftest$ac_exeext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4543   (eval $ac_link) 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } &&
4547          { ac_try='test -s conftest$ac_exeext'
4548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549   (eval $ac_try) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; }; then
4553   lt_cv_cc_needs_belf=yes
4554 else
4555   echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 lt_cv_cc_needs_belf=no
4559 fi
4560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4561      ac_ext=c
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567 fi
4568 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4569 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4570   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4571     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4572     CFLAGS="$SAVE_CFLAGS"
4573   fi
4574   ;;
4575
4576 esac
4577
4578 need_locks="$enable_libtool_lock"
4579
4580
4581
4582 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4584 if test "${ac_cv_header_stdc+set}" = set; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587   cat >conftest.$ac_ext <<_ACEOF
4588 #line $LINENO "configure"
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594 #include <stdlib.h>
4595 #include <stdarg.h>
4596 #include <string.h>
4597 #include <float.h>
4598
4599 int
4600 main ()
4601 {
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609   (eval $ac_compile) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); } &&
4613          { ac_try='test -s conftest.$ac_objext'
4614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615   (eval $ac_try) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; }; then
4619   ac_cv_header_stdc=yes
4620 else
4621   echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 ac_cv_header_stdc=no
4625 fi
4626 rm -f conftest.$ac_objext conftest.$ac_ext
4627
4628 if test $ac_cv_header_stdc = yes; then
4629   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4630   cat >conftest.$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4632 /* confdefs.h.  */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h.  */
4637 #include <string.h>
4638
4639 _ACEOF
4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641   $EGREP "memchr" >/dev/null 2>&1; then
4642   :
4643 else
4644   ac_cv_header_stdc=no
4645 fi
4646 rm -f conftest*
4647
4648 fi
4649
4650 if test $ac_cv_header_stdc = yes; then
4651   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4652   cat >conftest.$ac_ext <<_ACEOF
4653 #line $LINENO "configure"
4654 /* confdefs.h.  */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h.  */
4659 #include <stdlib.h>
4660
4661 _ACEOF
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663   $EGREP "free" >/dev/null 2>&1; then
4664   :
4665 else
4666   ac_cv_header_stdc=no
4667 fi
4668 rm -f conftest*
4669
4670 fi
4671
4672 if test $ac_cv_header_stdc = yes; then
4673   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4674   if test "$cross_compiling" = yes; then
4675   :
4676 else
4677   cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4679 /* confdefs.h.  */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h.  */
4684 #include <ctype.h>
4685 #if ((' ' & 0x0FF) == 0x020)
4686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4688 #else
4689 # define ISLOWER(c) \
4690                    (('a' <= (c) && (c) <= 'i') \
4691                      || ('j' <= (c) && (c) <= 'r') \
4692                      || ('s' <= (c) && (c) <= 'z'))
4693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4694 #endif
4695
4696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4697 int
4698 main ()
4699 {
4700   int i;
4701   for (i = 0; i < 256; i++)
4702     if (XOR (islower (i), ISLOWER (i))
4703         || toupper (i) != TOUPPER (i))
4704       exit(2);
4705   exit (0);
4706 }
4707 _ACEOF
4708 rm -f conftest$ac_exeext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710   (eval $ac_link) 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715   (eval $ac_try) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; }; then
4719   :
4720 else
4721   echo "$as_me: program exited with status $ac_status" >&5
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4724
4725 ( exit $ac_status )
4726 ac_cv_header_stdc=no
4727 fi
4728 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4729 fi
4730 fi
4731 fi
4732 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4733 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4734 if test $ac_cv_header_stdc = yes; then
4735
4736 cat >>confdefs.h <<\_ACEOF
4737 #define STDC_HEADERS 1
4738 _ACEOF
4739
4740 fi
4741
4742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4753                   inttypes.h stdint.h unistd.h
4754 do
4755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756 echo "$as_me:$LINENO: checking for $ac_header" >&5
4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   cat >conftest.$ac_ext <<_ACEOF
4762 #line $LINENO "configure"
4763 /* confdefs.h.  */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h.  */
4768 $ac_includes_default
4769
4770 #include <$ac_header>
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774   (eval $ac_compile) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } &&
4778          { ac_try='test -s conftest.$ac_objext'
4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780   (eval $ac_try) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); }; }; then
4784   eval "$as_ac_Header=yes"
4785 else
4786   echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 eval "$as_ac_Header=no"
4790 fi
4791 rm -f conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4796   cat >>confdefs.h <<_ACEOF
4797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4798 _ACEOF
4799
4800 fi
4801
4802 done
4803
4804
4805
4806 for ac_header in dlfcn.h
4807 do
4808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4810   echo "$as_me:$LINENO: checking for $ac_header" >&5
4811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4813   echo $ECHO_N "(cached) $ECHO_C" >&6
4814 fi
4815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4817 else
4818   # Is the header compilable?
4819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4821 cat >conftest.$ac_ext <<_ACEOF
4822 #line $LINENO "configure"
4823 /* confdefs.h.  */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h.  */
4828 $ac_includes_default
4829 #include <$ac_header>
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833   (eval $ac_compile) 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } &&
4837          { ac_try='test -s conftest.$ac_objext'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; }; then
4843   ac_header_compiler=yes
4844 else
4845   echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848 ac_header_compiler=no
4849 fi
4850 rm -f conftest.$ac_objext conftest.$ac_ext
4851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4852 echo "${ECHO_T}$ac_header_compiler" >&6
4853
4854 # Is the header present?
4855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4857 cat >conftest.$ac_ext <<_ACEOF
4858 #line $LINENO "configure"
4859 /* confdefs.h.  */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h.  */
4864 #include <$ac_header>
4865 _ACEOF
4866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } >/dev/null; then
4874   if test -s conftest.err; then
4875     ac_cpp_err=$ac_c_preproc_warn_flag
4876   else
4877     ac_cpp_err=
4878   fi
4879 else
4880   ac_cpp_err=yes
4881 fi
4882 if test -z "$ac_cpp_err"; then
4883   ac_header_preproc=yes
4884 else
4885   echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4887
4888   ac_header_preproc=no
4889 fi
4890 rm -f conftest.err conftest.$ac_ext
4891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4892 echo "${ECHO_T}$ac_header_preproc" >&6
4893
4894 # So?  What about this header?
4895 case $ac_header_compiler:$ac_header_preproc in
4896   yes:no )
4897     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4901     (
4902       cat <<\_ASBOX
4903 ## ------------------------------------ ##
4904 ## Report this to bug-autoconf@gnu.org. ##
4905 ## ------------------------------------ ##
4906 _ASBOX
4907     ) |
4908       sed "s/^/$as_me: WARNING:     /" >&2
4909     ;;
4910   no:yes )
4911     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4913     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4917     (
4918       cat <<\_ASBOX
4919 ## ------------------------------------ ##
4920 ## Report this to bug-autoconf@gnu.org. ##
4921 ## ------------------------------------ ##
4922 _ASBOX
4923     ) |
4924       sed "s/^/$as_me: WARNING:     /" >&2
4925     ;;
4926 esac
4927 echo "$as_me:$LINENO: checking for $ac_header" >&5
4928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4930   echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932   eval "$as_ac_Header=$ac_header_preproc"
4933 fi
4934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4936
4937 fi
4938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4939   cat >>confdefs.h <<_ACEOF
4940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4941 _ACEOF
4942
4943 fi
4944
4945 done
4946
4947 ac_ext=cc
4948 ac_cpp='$CXXCPP $CPPFLAGS'
4949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4952 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4953 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4954 if test -z "$CXXCPP"; then
4955   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4956   echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958       # Double quotes because CXXCPP needs to be expanded
4959     for CXXCPP in "$CXX -E" "/lib/cpp"
4960     do
4961       ac_preproc_ok=false
4962 for ac_cxx_preproc_warn_flag in '' yes
4963 do
4964   # Use a header file that comes with gcc, so configuring glibc
4965   # with a fresh cross-compiler works.
4966   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967   # <limits.h> exists even on freestanding compilers.
4968   # On the NeXT, cc -E runs the code through the compiler's parser,
4969   # not just through cpp. "Syntax error" is here to catch this case.
4970   cat >conftest.$ac_ext <<_ACEOF
4971 #line $LINENO "configure"
4972 /* confdefs.h.  */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h.  */
4977 #ifdef __STDC__
4978 # include <limits.h>
4979 #else
4980 # include <assert.h>
4981 #endif
4982                      Syntax error
4983 _ACEOF
4984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4985   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4986   ac_status=$?
4987   grep -v '^ *+' conftest.er1 >conftest.err
4988   rm -f conftest.er1
4989   cat conftest.err >&5
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); } >/dev/null; then
4992   if test -s conftest.err; then
4993     ac_cpp_err=$ac_cxx_preproc_warn_flag
4994   else
4995     ac_cpp_err=
4996   fi
4997 else
4998   ac_cpp_err=yes
4999 fi
5000 if test -z "$ac_cpp_err"; then
5001   :
5002 else
5003   echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006   # Broken: fails on valid input.
5007 continue
5008 fi
5009 rm -f conftest.err conftest.$ac_ext
5010
5011   # OK, works on sane cases.  Now check whether non-existent headers
5012   # can be detected and how.
5013   cat >conftest.$ac_ext <<_ACEOF
5014 #line $LINENO "configure"
5015 /* confdefs.h.  */
5016 _ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h.  */
5020 #include <ac_nonexistent.h>
5021 _ACEOF
5022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5024   ac_status=$?
5025   grep -v '^ *+' conftest.er1 >conftest.err
5026   rm -f conftest.er1
5027   cat conftest.err >&5
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); } >/dev/null; then
5030   if test -s conftest.err; then
5031     ac_cpp_err=$ac_cxx_preproc_warn_flag
5032   else
5033     ac_cpp_err=
5034   fi
5035 else
5036   ac_cpp_err=yes
5037 fi
5038 if test -z "$ac_cpp_err"; then
5039   # Broken: success on invalid input.
5040 continue
5041 else
5042   echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5044
5045   # Passes both tests.
5046 ac_preproc_ok=:
5047 break
5048 fi
5049 rm -f conftest.err conftest.$ac_ext
5050
5051 done
5052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5053 rm -f conftest.err conftest.$ac_ext
5054 if $ac_preproc_ok; then
5055   break
5056 fi
5057
5058     done
5059     ac_cv_prog_CXXCPP=$CXXCPP
5060
5061 fi
5062   CXXCPP=$ac_cv_prog_CXXCPP
5063 else
5064   ac_cv_prog_CXXCPP=$CXXCPP
5065 fi
5066 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5067 echo "${ECHO_T}$CXXCPP" >&6
5068 ac_preproc_ok=false
5069 for ac_cxx_preproc_warn_flag in '' yes
5070 do
5071   # Use a header file that comes with gcc, so configuring glibc
5072   # with a fresh cross-compiler works.
5073   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074   # <limits.h> exists even on freestanding compilers.
5075   # On the NeXT, cc -E runs the code through the compiler's parser,
5076   # not just through cpp. "Syntax error" is here to catch this case.
5077   cat >conftest.$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5079 /* confdefs.h.  */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h.  */
5084 #ifdef __STDC__
5085 # include <limits.h>
5086 #else
5087 # include <assert.h>
5088 #endif
5089                      Syntax error
5090 _ACEOF
5091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093   ac_status=$?
5094   grep -v '^ *+' conftest.er1 >conftest.err
5095   rm -f conftest.er1
5096   cat conftest.err >&5
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } >/dev/null; then
5099   if test -s conftest.err; then
5100     ac_cpp_err=$ac_cxx_preproc_warn_flag
5101   else
5102     ac_cpp_err=
5103   fi
5104 else
5105   ac_cpp_err=yes
5106 fi
5107 if test -z "$ac_cpp_err"; then
5108   :
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113   # Broken: fails on valid input.
5114 continue
5115 fi
5116 rm -f conftest.err conftest.$ac_ext
5117
5118   # OK, works on sane cases.  Now check whether non-existent headers
5119   # can be detected and how.
5120   cat >conftest.$ac_ext <<_ACEOF
5121 #line $LINENO "configure"
5122 /* confdefs.h.  */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h.  */
5127 #include <ac_nonexistent.h>
5128 _ACEOF
5129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131   ac_status=$?
5132   grep -v '^ *+' conftest.er1 >conftest.err
5133   rm -f conftest.er1
5134   cat conftest.err >&5
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } >/dev/null; then
5137   if test -s conftest.err; then
5138     ac_cpp_err=$ac_cxx_preproc_warn_flag
5139   else
5140     ac_cpp_err=
5141   fi
5142 else
5143   ac_cpp_err=yes
5144 fi
5145 if test -z "$ac_cpp_err"; then
5146   # Broken: success on invalid input.
5147 continue
5148 else
5149   echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152   # Passes both tests.
5153 ac_preproc_ok=:
5154 break
5155 fi
5156 rm -f conftest.err conftest.$ac_ext
5157
5158 done
5159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5160 rm -f conftest.err conftest.$ac_ext
5161 if $ac_preproc_ok; then
5162   :
5163 else
5164   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5165 See \`config.log' for more details." >&5
5166 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5167 See \`config.log' for more details." >&2;}
5168    { (exit 1); exit 1; }; }
5169 fi
5170
5171 ac_ext=cc
5172 ac_cpp='$CXXCPP $CPPFLAGS'
5173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5176
5177
5178 ac_ext=f
5179 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5180 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5182 if test -n "$ac_tool_prefix"; then
5183   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5184   do
5185     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_prog_F77+set}" = set; then
5190   echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192   if test -n "$F77"; then
5193   ac_cv_prog_F77="$F77" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198   IFS=$as_save_IFS
5199   test -z "$as_dir" && as_dir=.
5200   for ac_exec_ext in '' $ac_executable_extensions; do
5201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204     break 2
5205   fi
5206 done
5207 done
5208
5209 fi
5210 fi
5211 F77=$ac_cv_prog_F77
5212 if test -n "$F77"; then
5213   echo "$as_me:$LINENO: result: $F77" >&5
5214 echo "${ECHO_T}$F77" >&6
5215 else
5216   echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5218 fi
5219
5220     test -n "$F77" && break
5221   done
5222 fi
5223 if test -z "$F77"; then
5224   ac_ct_F77=$F77
5225   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5226 do
5227   # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 echo "$as_me:$LINENO: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5231 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   if test -n "$ac_ct_F77"; then
5235   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240   IFS=$as_save_IFS
5241   test -z "$as_dir" && as_dir=.
5242   for ac_exec_ext in '' $ac_executable_extensions; do
5243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244     ac_cv_prog_ac_ct_F77="$ac_prog"
5245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246     break 2
5247   fi
5248 done
5249 done
5250
5251 fi
5252 fi
5253 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5254 if test -n "$ac_ct_F77"; then
5255   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5256 echo "${ECHO_T}$ac_ct_F77" >&6
5257 else
5258   echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5260 fi
5261
5262   test -n "$ac_ct_F77" && break
5263 done
5264
5265   F77=$ac_ct_F77
5266 fi
5267
5268
5269 # Provide some information about the compiler.
5270 echo "$as_me:5270:" \
5271      "checking for Fortran 77 compiler version" >&5
5272 ac_compiler=`set X $ac_compile; echo $2`
5273 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5274   (eval $ac_compiler --version </dev/null >&5) 2>&5
5275   ac_status=$?
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); }
5278 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5279   (eval $ac_compiler -v </dev/null >&5) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }
5283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5284   (eval $ac_compiler -V </dev/null >&5) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }
5288
5289 # If we don't use `.F' as extension, the preprocessor is not run on the
5290 # input file.
5291 ac_save_ext=$ac_ext
5292 ac_ext=F
5293 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5294 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5295 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   cat >conftest.$ac_ext <<_ACEOF
5299       program main
5300 #ifndef __GNUC__
5301        choke me
5302 #endif
5303
5304       end
5305 _ACEOF
5306 rm -f conftest.$ac_objext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5308   (eval $ac_compile) 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } &&
5312          { ac_try='test -s conftest.$ac_objext'
5313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314   (eval $ac_try) 2>&5
5315   ac_status=$?
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); }; }; then
5318   ac_compiler_gnu=yes
5319 else
5320   echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323 ac_compiler_gnu=no
5324 fi
5325 rm -f conftest.$ac_objext conftest.$ac_ext
5326 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5327
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5330 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5331 ac_ext=$ac_save_ext
5332 G77=`test $ac_compiler_gnu = yes && echo yes`
5333 ac_test_FFLAGS=${FFLAGS+set}
5334 ac_save_FFLAGS=$FFLAGS
5335 FFLAGS=
5336 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5337 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5338 if test "${ac_cv_prog_f77_g+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   FFLAGS=-g
5342 cat >conftest.$ac_ext <<_ACEOF
5343       program main
5344
5345       end
5346 _ACEOF
5347 rm -f conftest.$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349   (eval $ac_compile) 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); } &&
5353          { ac_try='test -s conftest.$ac_objext'
5354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355   (eval $ac_try) 2>&5
5356   ac_status=$?
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); }; }; then
5359   ac_cv_prog_f77_g=yes
5360 else
5361   echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5363
5364 ac_cv_prog_f77_g=no
5365 fi
5366 rm -f conftest.$ac_objext conftest.$ac_ext
5367
5368 fi
5369 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5370 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5371 if test "$ac_test_FFLAGS" = set; then
5372   FFLAGS=$ac_save_FFLAGS
5373 elif test $ac_cv_prog_f77_g = yes; then
5374   if test "$G77" = yes; then
5375     FFLAGS="-g -O2"
5376   else
5377     FFLAGS="-g"
5378   fi
5379 else
5380   if test "$G77" = yes; then
5381     FFLAGS="-O2"
5382   else
5383     FFLAGS=
5384   fi
5385 fi
5386 ac_ext=c
5387 ac_cpp='$CPP $CPPFLAGS'
5388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391
5392
5393
5394 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5395
5396 # find the maximum length of command line arguments
5397 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5398 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5399 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402     i=0
5403   testring="ABCD"
5404
5405   case $build_os in
5406   msdosdjgpp*)
5407     # On DJGPP, this test can blow up pretty badly due to problems in libc
5408     # (any single argument exceeding 2000 bytes causes a buffer overrun
5409     # during glob expansion).  Even if it were fixed, the result of this
5410     # check would be larger than it should be.
5411     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5412     ;;
5413
5414   gnu*)
5415     # Under GNU Hurd, this test is not required because there is
5416     # no limit to the length of command line arguments.
5417     # Libtool will interpret -1 as no limit whatsoever
5418     lt_cv_sys_max_cmd_len=-1;
5419     ;;
5420
5421   cygwin* | mingw*)
5422     # On Win9x/ME, this test blows up -- it succeeds, but takes
5423     # about 5 minutes as the teststring grows exponentially.
5424     # Worse, since 9x/ME are not pre-emptively multitasking,
5425     # you end up with a "frozen" computer, even though with patience
5426     # the test eventually succeeds (with a max line length of 256k).
5427     # Instead, let's just punt: use the minimum linelength reported by
5428     # all of the supported platforms: 8192 (on NT/2K/XP).
5429     lt_cv_sys_max_cmd_len=8192;
5430     ;;
5431
5432  *)
5433     # If test is not a shell built-in, we'll probably end up computing a
5434     # maximum length that is only half of the actual maximum length, but
5435     # we can't tell.
5436     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5437                = "XX$testring") >/dev/null 2>&1 &&
5438             new_result=`expr "X$testring" : ".*" 2>&1` &&
5439             lt_cv_sys_max_cmd_len=$new_result &&
5440             test $i != 17 # 1/2 MB should be enough
5441     do
5442       i=`expr $i + 1`
5443       testring=$testring$testring
5444     done
5445     testring=
5446     # Add a significant safety factor because C++ compilers can tack on massive
5447     # amounts of additional arguments before passing them to the linker.
5448     # It appears as though 1/2 is a usable value.
5449     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5450     ;;
5451   esac
5452
5453 fi
5454
5455 if test -n $lt_cv_sys_max_cmd_len ; then
5456   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5457 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5458 else
5459   echo "$as_me:$LINENO: result: none" >&5
5460 echo "${ECHO_T}none" >&6
5461 fi
5462
5463
5464
5465
5466 # Check for command to grab the raw symbol name followed by C symbol from nm.
5467 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472
5473 # These are sane defaults that work on at least a few old systems.
5474 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5475
5476 # Character class describing NM global symbol codes.
5477 symcode='[BCDEGRST]'
5478
5479 # Regexp to match symbols that can be accessed directly from C.
5480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5481
5482 # Transform the above into a raw symbol and a C symbol.
5483 symxfrm='\1 \2\3 \3'
5484
5485 # Transform an extracted symbol line into a proper C declaration
5486 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5487
5488 # Transform an extracted symbol line into symbol name and symbol address
5489 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'"
5490
5491 # Define system-specific variables.
5492 case $host_os in
5493 aix*)
5494   symcode='[BCDT]'
5495   ;;
5496 cygwin* | mingw* | pw32*)
5497   symcode='[ABCDGISTW]'
5498   ;;
5499 hpux*) # Its linker distinguishes data from code symbols
5500   if test "$host_cpu" = ia64; then
5501     symcode='[ABCDEGRST]'
5502   fi
5503   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5504   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'"
5505   ;;
5506 irix* | nonstopux*)
5507   symcode='[BCDEGRST]'
5508   ;;
5509 osf*)
5510   symcode='[BCDEGQRST]'
5511   ;;
5512 solaris* | sysv5*)
5513   symcode='[BDT]'
5514   ;;
5515 sysv4)
5516   symcode='[DFNSTU]'
5517   ;;
5518 esac
5519
5520 # Handle CRLF in mingw tool chain
5521 opt_cr=
5522 case $build_os in
5523 mingw*)
5524   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5525   ;;
5526 esac
5527
5528 # If we're using GNU nm, then use its standard symbol codes.
5529 case `$NM -V 2>&1` in
5530 *GNU* | *'with BFD'*)
5531   symcode='[ABCDGISTW]' ;;
5532 esac
5533
5534 # Try without a prefix undercore, then with it.
5535 for ac_symprfx in "" "_"; do
5536
5537   # Write the raw and C identifiers.
5538   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5539
5540   # Check to see that the pipe works correctly.
5541   pipe_works=no
5542
5543   rm -f conftest*
5544   cat > conftest.$ac_ext <<EOF
5545 #ifdef __cplusplus
5546 extern "C" {
5547 #endif
5548 char nm_test_var;
5549 void nm_test_func(){}
5550 #ifdef __cplusplus
5551 }
5552 #endif
5553 int main(){nm_test_var='a';nm_test_func();return(0);}
5554 EOF
5555
5556   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557   (eval $ac_compile) 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; then
5561     # Now try to grab the symbols.
5562     nlist=conftest.nm
5563     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5564   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5565   ac_status=$?
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); } && test -s "$nlist"; then
5568       # Try sorting and uniquifying the output.
5569       if sort "$nlist" | uniq > "$nlist"T; then
5570         mv -f "$nlist"T "$nlist"
5571       else
5572         rm -f "$nlist"T
5573       fi
5574
5575       # Make sure that we snagged all the symbols we need.
5576       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5577         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5578           cat <<EOF > conftest.$ac_ext
5579 #ifdef __cplusplus
5580 extern "C" {
5581 #endif
5582
5583 EOF
5584           # Now generate the symbol file.
5585           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5586
5587           cat <<EOF >> conftest.$ac_ext
5588 #if defined (__STDC__) && __STDC__
5589 # define lt_ptr_t void *
5590 #else
5591 # define lt_ptr_t char *
5592 # define const
5593 #endif
5594
5595 /* The mapping between symbol names and symbols. */
5596 const struct {
5597   const char *name;
5598   lt_ptr_t address;
5599 }
5600 lt_preloaded_symbols[] =
5601 {
5602 EOF
5603           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5604           cat <<\EOF >> conftest.$ac_ext
5605   {0, (lt_ptr_t) 0}
5606 };
5607
5608 #ifdef __cplusplus
5609 }
5610 #endif
5611 EOF
5612           # Now try linking the two files.
5613           mv conftest.$ac_objext conftstm.$ac_objext
5614           lt_save_LIBS="$LIBS"
5615           lt_save_CFLAGS="$CFLAGS"
5616           LIBS="conftstm.$ac_objext"
5617           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5618           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5619   (eval $ac_link) 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5623             pipe_works=yes
5624           fi
5625           LIBS="$lt_save_LIBS"
5626           CFLAGS="$lt_save_CFLAGS"
5627         else
5628           echo "cannot find nm_test_func in $nlist" >&5
5629         fi
5630       else
5631         echo "cannot find nm_test_var in $nlist" >&5
5632       fi
5633     else
5634       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5635     fi
5636   else
5637     echo "$progname: failed program was:" >&5
5638     cat conftest.$ac_ext >&5
5639   fi
5640   rm -f conftest* conftst*
5641
5642   # Do not use the global_symbol_pipe unless it works.
5643   if test "$pipe_works" = yes; then
5644     break
5645   else
5646     lt_cv_sys_global_symbol_pipe=
5647   fi
5648 done
5649
5650 fi
5651
5652 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5653   lt_cv_sys_global_symbol_to_cdecl=
5654 fi
5655 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5656   echo "$as_me:$LINENO: result: failed" >&5
5657 echo "${ECHO_T}failed" >&6
5658 else
5659   echo "$as_me:$LINENO: result: ok" >&5
5660 echo "${ECHO_T}ok" >&6
5661 fi
5662
5663 echo "$as_me:$LINENO: checking for objdir" >&5
5664 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5665 if test "${lt_cv_objdir+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   rm -f .libs 2>/dev/null
5669 mkdir .libs 2>/dev/null
5670 if test -d .libs; then
5671   lt_cv_objdir=.libs
5672 else
5673   # MS-DOS does not allow filenames that begin with a dot.
5674   lt_cv_objdir=_libs
5675 fi
5676 rmdir .libs 2>/dev/null
5677 fi
5678 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5679 echo "${ECHO_T}$lt_cv_objdir" >&6
5680 objdir=$lt_cv_objdir
5681
5682
5683
5684
5685
5686 case $host_os in
5687 aix3*)
5688   # AIX sometimes has problems with the GCC collect2 program.  For some
5689   # reason, if we set the COLLECT_NAMES environment variable, the problems
5690   # vanish in a puff of smoke.
5691   if test "X${COLLECT_NAMES+set}" != Xset; then
5692     COLLECT_NAMES=
5693     export COLLECT_NAMES
5694   fi
5695   ;;
5696 esac
5697
5698 # Sed substitution that helps us do robust quoting.  It backslashifies
5699 # metacharacters that are still active within double-quoted strings.
5700 Xsed='sed -e s/^X//'
5701 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5702
5703 # Same as above, but do not quote variable references.
5704 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5705
5706 # Sed substitution to delay expansion of an escaped shell variable in a
5707 # double_quote_subst'ed string.
5708 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5709
5710 # Sed substitution to avoid accidental globbing in evaled expressions
5711 no_glob_subst='s/\*/\\\*/g'
5712
5713 # Constants:
5714 rm="rm -f"
5715
5716 # Global variables:
5717 default_ofile=mklib
5718 can_build_shared=yes
5719
5720 # All known linkers require a `.a' archive for static linking (except M$VC,
5721 # which needs '.lib').
5722 libext=a
5723 ltmain="$ac_aux_dir/ltmain.sh"
5724 ofile="$default_ofile"
5725 with_gnu_ld="$lt_cv_prog_gnu_ld"
5726
5727 if test -n "$ac_tool_prefix"; then
5728   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}ar; ac_word=$2
5730 echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732 if test "${ac_cv_prog_AR+set}" = set; then
5733   echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735   if test -n "$AR"; then
5736   ac_cv_prog_AR="$AR" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743   for ac_exec_ext in '' $ac_executable_extensions; do
5744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_prog_AR="${ac_tool_prefix}ar"
5746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750 done
5751
5752 fi
5753 fi
5754 AR=$ac_cv_prog_AR
5755 if test -n "$AR"; then
5756   echo "$as_me:$LINENO: result: $AR" >&5
5757 echo "${ECHO_T}$AR" >&6
5758 else
5759   echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5761 fi
5762
5763 fi
5764 if test -z "$ac_cv_prog_AR"; then
5765   ac_ct_AR=$AR
5766   # Extract the first word of "ar", so it can be a program name with args.
5767 set dummy ar; ac_word=$2
5768 echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   if test -n "$ac_ct_AR"; then
5774   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781   for ac_exec_ext in '' $ac_executable_extensions; do
5782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783     ac_cv_prog_ac_ct_AR="ar"
5784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788 done
5789
5790   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5791 fi
5792 fi
5793 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5794 if test -n "$ac_ct_AR"; then
5795   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5796 echo "${ECHO_T}$ac_ct_AR" >&6
5797 else
5798   echo "$as_me:$LINENO: result: no" >&5
5799 echo "${ECHO_T}no" >&6
5800 fi
5801
5802   AR=$ac_ct_AR
5803 else
5804   AR="$ac_cv_prog_AR"
5805 fi
5806
5807 if test -n "$ac_tool_prefix"; then
5808   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5810 echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812 if test "${ac_cv_prog_RANLIB+set}" = set; then
5813   echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815   if test -n "$RANLIB"; then
5816   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823   for ac_exec_ext in '' $ac_executable_extensions; do
5824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830 done
5831
5832 fi
5833 fi
5834 RANLIB=$ac_cv_prog_RANLIB
5835 if test -n "$RANLIB"; then
5836   echo "$as_me:$LINENO: result: $RANLIB" >&5
5837 echo "${ECHO_T}$RANLIB" >&6
5838 else
5839   echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5841 fi
5842
5843 fi
5844 if test -z "$ac_cv_prog_RANLIB"; then
5845   ac_ct_RANLIB=$RANLIB
5846   # Extract the first word of "ranlib", so it can be a program name with args.
5847 set dummy ranlib; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   if test -n "$ac_ct_RANLIB"; then
5854   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861   for ac_exec_ext in '' $ac_executable_extensions; do
5862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863     ac_cv_prog_ac_ct_RANLIB="ranlib"
5864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868 done
5869
5870   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5871 fi
5872 fi
5873 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5874 if test -n "$ac_ct_RANLIB"; then
5875   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5876 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5877 else
5878   echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880 fi
5881
5882   RANLIB=$ac_ct_RANLIB
5883 else
5884   RANLIB="$ac_cv_prog_RANLIB"
5885 fi
5886
5887 if test -n "$ac_tool_prefix"; then
5888   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5889 set dummy ${ac_tool_prefix}strip; ac_word=$2
5890 echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892 if test "${ac_cv_prog_STRIP+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   if test -n "$STRIP"; then
5896   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901   IFS=$as_save_IFS
5902   test -z "$as_dir" && as_dir=.
5903   for ac_exec_ext in '' $ac_executable_extensions; do
5904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907     break 2
5908   fi
5909 done
5910 done
5911
5912 fi
5913 fi
5914 STRIP=$ac_cv_prog_STRIP
5915 if test -n "$STRIP"; then
5916   echo "$as_me:$LINENO: result: $STRIP" >&5
5917 echo "${ECHO_T}$STRIP" >&6
5918 else
5919   echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5921 fi
5922
5923 fi
5924 if test -z "$ac_cv_prog_STRIP"; then
5925   ac_ct_STRIP=$STRIP
5926   # Extract the first word of "strip", so it can be a program name with args.
5927 set dummy strip; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   if test -n "$ac_ct_STRIP"; then
5934   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941   for ac_exec_ext in '' $ac_executable_extensions; do
5942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943     ac_cv_prog_ac_ct_STRIP="strip"
5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948 done
5949
5950   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5951 fi
5952 fi
5953 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5954 if test -n "$ac_ct_STRIP"; then
5955   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5956 echo "${ECHO_T}$ac_ct_STRIP" >&6
5957 else
5958   echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960 fi
5961
5962   STRIP=$ac_ct_STRIP
5963 else
5964   STRIP="$ac_cv_prog_STRIP"
5965 fi
5966
5967
5968 old_CC="$CC"
5969 old_CFLAGS="$CFLAGS"
5970
5971 # Set sane defaults for various variables
5972 test -z "$AR" && AR=ar
5973 test -z "$AR_FLAGS" && AR_FLAGS=cru
5974 test -z "$AS" && AS=as
5975 test -z "$CC" && CC=cc
5976 test -z "$LTCC" && LTCC=$CC
5977 test -z "$DLLTOOL" && DLLTOOL=dlltool
5978 test -z "$LD" && LD=ld
5979 test -z "$LN_S" && LN_S="ln -s"
5980 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5981 test -z "$NM" && NM=nm
5982 test -z "$SED" && SED=sed
5983 test -z "$OBJDUMP" && OBJDUMP=objdump
5984 test -z "$RANLIB" && RANLIB=:
5985 test -z "$STRIP" && STRIP=:
5986 test -z "$ac_objext" && ac_objext=o
5987
5988 # Determine commands to create old-style static archives.
5989 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5990 old_postinstall_cmds='chmod 644 $oldlib'
5991 old_postuninstall_cmds=
5992
5993 if test -n "$RANLIB"; then
5994   case $host_os in
5995   openbsd*)
5996     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5997     ;;
5998   *)
5999     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6000     ;;
6001   esac
6002   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6003 fi
6004
6005 # Only perform the check for file, if the check method requires it
6006 case $deplibs_check_method in
6007 file_magic*)
6008   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6009     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6010 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6011 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   case $MAGIC_CMD in
6015 [\\/*] |  ?:[\\/]*)
6016   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6017   ;;
6018 *)
6019   lt_save_MAGIC_CMD="$MAGIC_CMD"
6020   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6021   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6022   for ac_dir in $ac_dummy; do
6023     IFS="$lt_save_ifs"
6024     test -z "$ac_dir" && ac_dir=.
6025     if test -f $ac_dir/${ac_tool_prefix}file; then
6026       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6027       if test -n "$file_magic_test_file"; then
6028         case $deplibs_check_method in
6029         "file_magic "*)
6030           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6031           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6032           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6033             $EGREP "$file_magic_regex" > /dev/null; then
6034             :
6035           else
6036             cat <<EOF 1>&2
6037
6038 *** Warning: the command libtool uses to detect shared libraries,
6039 *** $file_magic_cmd, produces output that libtool cannot recognize.
6040 *** The result is that libtool may fail to recognize shared libraries
6041 *** as such.  This will affect the creation of libtool libraries that
6042 *** depend on shared libraries, but programs linked with such libtool
6043 *** libraries will work regardless of this problem.  Nevertheless, you
6044 *** may want to report the problem to your system manager and/or to
6045 *** bug-libtool@gnu.org
6046
6047 EOF
6048           fi ;;
6049         esac
6050       fi
6051       break
6052     fi
6053   done
6054   IFS="$lt_save_ifs"
6055   MAGIC_CMD="$lt_save_MAGIC_CMD"
6056   ;;
6057 esac
6058 fi
6059
6060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6061 if test -n "$MAGIC_CMD"; then
6062   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6063 echo "${ECHO_T}$MAGIC_CMD" >&6
6064 else
6065   echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6
6067 fi
6068
6069 if test -z "$lt_cv_path_MAGIC_CMD"; then
6070   if test -n "$ac_tool_prefix"; then
6071     echo "$as_me:$LINENO: checking for file" >&5
6072 echo $ECHO_N "checking for file... $ECHO_C" >&6
6073 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6074   echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076   case $MAGIC_CMD in
6077 [\\/*] |  ?:[\\/]*)
6078   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6079   ;;
6080 *)
6081   lt_save_MAGIC_CMD="$MAGIC_CMD"
6082   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6083   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6084   for ac_dir in $ac_dummy; do
6085     IFS="$lt_save_ifs"
6086     test -z "$ac_dir" && ac_dir=.
6087     if test -f $ac_dir/file; then
6088       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6089       if test -n "$file_magic_test_file"; then
6090         case $deplibs_check_method in
6091         "file_magic "*)
6092           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6093           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6094           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6095             $EGREP "$file_magic_regex" > /dev/null; then
6096             :
6097           else
6098             cat <<EOF 1>&2
6099
6100 *** Warning: the command libtool uses to detect shared libraries,
6101 *** $file_magic_cmd, produces output that libtool cannot recognize.
6102 *** The result is that libtool may fail to recognize shared libraries
6103 *** as such.  This will affect the creation of libtool libraries that
6104 *** depend on shared libraries, but programs linked with such libtool
6105 *** libraries will work regardless of this problem.  Nevertheless, you
6106 *** may want to report the problem to your system manager and/or to
6107 *** bug-libtool@gnu.org
6108
6109 EOF
6110           fi ;;
6111         esac
6112       fi
6113       break
6114     fi
6115   done
6116   IFS="$lt_save_ifs"
6117   MAGIC_CMD="$lt_save_MAGIC_CMD"
6118   ;;
6119 esac
6120 fi
6121
6122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6123 if test -n "$MAGIC_CMD"; then
6124   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6125 echo "${ECHO_T}$MAGIC_CMD" >&6
6126 else
6127   echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6
6129 fi
6130
6131   else
6132     MAGIC_CMD=:
6133   fi
6134 fi
6135
6136   fi
6137   ;;
6138 esac
6139
6140 enable_dlopen=no
6141 enable_win32_dll=no
6142
6143 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6144 if test "${enable_libtool_lock+set}" = set; then
6145   enableval="$enable_libtool_lock"
6146
6147 fi;
6148 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6149
6150
6151 # Check whether --with-pic or --without-pic was given.
6152 if test "${with_pic+set}" = set; then
6153   withval="$with_pic"
6154   pic_mode="$withval"
6155 else
6156   pic_mode=default
6157 fi;
6158 test -z "$pic_mode" && pic_mode=default
6159
6160 # Use C for the default configuration in the libtool script
6161 tagname=
6162 lt_save_CC="$CC"
6163 ac_ext=c
6164 ac_cpp='$CPP $CPPFLAGS'
6165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6168
6169
6170 # Source file extension for C test sources.
6171 ac_ext=c
6172
6173 # Object file extension for compiled C test sources.
6174 objext=o
6175 objext=$objext
6176
6177 # Code to be used in simple compile tests
6178 lt_simple_compile_test_code="int some_variable = 0;\n"
6179
6180 # Code to be used in simple link tests
6181 lt_simple_link_test_code='int main(){return(0);}\n'
6182
6183
6184 # If no C compiler was specified, use CC.
6185 LTCC=${LTCC-"$CC"}
6186
6187 # Allow CC to be a program name with arguments.
6188 compiler=$CC
6189
6190
6191 #
6192 # Check for any special shared library compilation flags.
6193 #
6194 lt_prog_cc_shlib=
6195 if test "$GCC" = no; then
6196   case $host_os in
6197   sco3.2v5*)
6198     lt_prog_cc_shlib='-belf'
6199     ;;
6200   esac
6201 fi
6202 if test -n "$lt_prog_cc_shlib"; then
6203   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6204 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6205   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6206   else
6207     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6208 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6209     lt_cv_prog_cc_can_build_shared=no
6210   fi
6211 fi
6212
6213
6214 #
6215 # Check to make sure the static flag actually works.
6216 #
6217 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6218 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6219 if test "${lt_prog_compiler_static_works+set}" = set; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   lt_prog_compiler_static_works=no
6223    save_LDFLAGS="$LDFLAGS"
6224    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6225    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6226    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6227      # The compiler can only warn and ignore the option if not recognized
6228      # So say no if there are warnings
6229      if test -s conftest.err; then
6230        # Append any errors to the config.log.
6231        cat conftest.err 1>&5
6232      else
6233        lt_prog_compiler_static_works=yes
6234      fi
6235    fi
6236    $rm conftest*
6237    LDFLAGS="$save_LDFLAGS"
6238
6239 fi
6240 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6241 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6242
6243 if test x"$lt_prog_compiler_static_works" = xyes; then
6244     :
6245 else
6246     lt_prog_compiler_static=
6247 fi
6248
6249
6250
6251 ## CAVEAT EMPTOR:
6252 ## There is no encapsulation within the following macros, do not change
6253 ## the running order or otherwise move them around unless you know exactly
6254 ## what you are doing...
6255
6256 lt_prog_compiler_no_builtin_flag=
6257
6258 if test "$GCC" = yes; then
6259   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6260
6261   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6262 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6263 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   lt_cv_prog_compiler_rtti_exceptions=no
6267   ac_outfile=conftest.$ac_objext
6268    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6269    lt_compiler_flag="-fno-rtti -fno-exceptions"
6270    # Insert the option either (1) after the last *FLAGS variable, or
6271    # (2) before a word containing "conftest.", or (3) at the end.
6272    # Note that $ac_compile itself does not contain backslashes and begins
6273    # with a dollar sign (not a hyphen), so the echo should work correctly.
6274    # The option is referenced via a variable to avoid confusing sed.
6275    lt_compile=`echo "$ac_compile" | $SED \
6276    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6277    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6278    -e 's:$: $lt_compiler_flag:'`
6279    (eval echo "\"\$as_me:6279: $lt_compile\"" >&5)
6280    (eval "$lt_compile" 2>conftest.err)
6281    ac_status=$?
6282    cat conftest.err >&5
6283    echo "$as_me:6283: \$? = $ac_status" >&5
6284    if (exit $ac_status) && test -s "$ac_outfile"; then
6285      # The compiler can only warn and ignore the option if not recognized
6286      # So say no if there are warnings
6287      if test ! -s conftest.err; then
6288        lt_cv_prog_compiler_rtti_exceptions=yes
6289      fi
6290    fi
6291    $rm conftest*
6292
6293 fi
6294 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6295 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6296
6297 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6298     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6299 else
6300     :
6301 fi
6302
6303 fi
6304
6305 lt_prog_compiler_wl=
6306 lt_prog_compiler_pic=
6307 lt_prog_compiler_static=
6308
6309 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6311
6312   if test "$GCC" = yes; then
6313     lt_prog_compiler_wl='-Wl,'
6314     lt_prog_compiler_static='-static'
6315
6316     case $host_os in
6317       aix*)
6318       # All AIX code is PIC.
6319       if test "$host_cpu" = ia64; then
6320         # AIX 5 now supports IA64 processor
6321         lt_prog_compiler_static='-Bstatic'
6322       fi
6323       ;;
6324
6325     amigaos*)
6326       # FIXME: we need at least 68020 code to build shared libraries, but
6327       # adding the `-m68020' flag to GCC prevents building anything better,
6328       # like `-m68040'.
6329       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6330       ;;
6331
6332     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6333       # PIC is the default for these OSes.
6334       ;;
6335
6336     mingw* | pw32* | os2*)
6337       # This hack is so that the source file can tell whether it is being
6338       # built for inclusion in a dll (and should export symbols for example).
6339       lt_prog_compiler_pic='-DDLL_EXPORT'
6340       ;;
6341
6342     darwin* | rhapsody*)
6343       # PIC is the default on this platform
6344       # Common symbols not allowed in MH_DYLIB files
6345       lt_prog_compiler_pic='-fno-common'
6346       ;;
6347
6348     msdosdjgpp*)
6349       # Just because we use GCC doesn't mean we suddenly get shared libraries
6350       # on systems that don't support them.
6351       lt_prog_compiler_can_build_shared=no
6352       enable_shared=no
6353       ;;
6354
6355     sysv4*MP*)
6356       if test -d /usr/nec; then
6357         lt_prog_compiler_pic=-Kconform_pic
6358       fi
6359       ;;
6360
6361     hpux*)
6362       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6363       # not for PA HP-UX.
6364       case "$host_cpu" in
6365       hppa*64*|ia64*)
6366         # +Z the default
6367         ;;
6368       *)
6369         lt_prog_compiler_pic='-fPIC'
6370         ;;
6371       esac
6372       ;;
6373
6374     *)
6375       lt_prog_compiler_pic='-fPIC'
6376       ;;
6377     esac
6378   else
6379     # PORTME Check for flag to pass linker flags through the system compiler.
6380     case $host_os in
6381     aix*)
6382       lt_prog_compiler_wl='-Wl,'
6383       if test "$host_cpu" = ia64; then
6384         # AIX 5 now supports IA64 processor
6385         lt_prog_compiler_static='-Bstatic'
6386       else
6387         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6388       fi
6389       ;;
6390
6391     mingw* | pw32* | os2*)
6392       # This hack is so that the source file can tell whether it is being
6393       # built for inclusion in a dll (and should export symbols for example).
6394       lt_prog_compiler_pic='-DDLL_EXPORT'
6395       ;;
6396
6397     hpux9* | hpux10* | hpux11*)
6398       lt_prog_compiler_wl='-Wl,'
6399       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6400       # not for PA HP-UX.
6401       case "$host_cpu" in
6402       hppa*64*|ia64*)
6403         # +Z the default
6404         ;;
6405       *)
6406         lt_prog_compiler_pic='+Z'
6407         ;;
6408       esac
6409       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6410       lt_prog_compiler_static='${wl}-a ${wl}archive'
6411       ;;
6412
6413     irix5* | irix6* | nonstopux*)
6414       lt_prog_compiler_wl='-Wl,'
6415       # PIC (with -KPIC) is the default.
6416       lt_prog_compiler_static='-non_shared'
6417       ;;
6418
6419     newsos6)
6420       lt_prog_compiler_pic='-KPIC'
6421       lt_prog_compiler_static='-Bstatic'
6422       ;;
6423
6424     linux*)
6425       case $CC in
6426       icc|ecc)
6427         lt_prog_compiler_wl='-Wl,'
6428         lt_prog_compiler_pic='-KPIC'
6429         lt_prog_compiler_static='-static'
6430         ;;
6431       ccc)
6432         lt_prog_compiler_wl='-Wl,'
6433         # All Alpha code is PIC.
6434         lt_prog_compiler_static='-non_shared'
6435         ;;
6436       esac
6437       ;;
6438
6439     osf3* | osf4* | osf5*)
6440       lt_prog_compiler_wl='-Wl,'
6441       # All OSF/1 code is PIC.
6442       lt_prog_compiler_static='-non_shared'
6443       ;;
6444
6445     sco3.2v5*)
6446       lt_prog_compiler_pic='-Kpic'
6447       lt_prog_compiler_static='-dn'
6448       ;;
6449
6450     solaris*)
6451       lt_prog_compiler_wl='-Wl,'
6452       lt_prog_compiler_pic='-KPIC'
6453       lt_prog_compiler_static='-Bstatic'
6454       ;;
6455
6456     sunos4*)
6457       lt_prog_compiler_wl='-Qoption ld '
6458       lt_prog_compiler_pic='-PIC'
6459       lt_prog_compiler_static='-Bstatic'
6460       ;;
6461
6462     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6463       lt_prog_compiler_wl='-Wl,'
6464       lt_prog_compiler_pic='-KPIC'
6465       lt_prog_compiler_static='-Bstatic'
6466       ;;
6467
6468     sysv4*MP*)
6469       if test -d /usr/nec ;then
6470         lt_prog_compiler_pic='-Kconform_pic'
6471         lt_prog_compiler_static='-Bstatic'
6472       fi
6473       ;;
6474
6475     uts4*)
6476       lt_prog_compiler_pic='-pic'
6477       lt_prog_compiler_static='-Bstatic'
6478       ;;
6479
6480     *)
6481       lt_prog_compiler_can_build_shared=no
6482       ;;
6483     esac
6484   fi
6485
6486 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6487 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6488
6489 #
6490 # Check to make sure the PIC flag actually works.
6491 #
6492 if test -n "$lt_prog_compiler_pic"; then
6493   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6494 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6495 if test "${lt_prog_compiler_pic_works+set}" = set; then
6496   echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498   lt_prog_compiler_pic_works=no
6499   ac_outfile=conftest.$ac_objext
6500    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6501    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6502    # Insert the option either (1) after the last *FLAGS variable, or
6503    # (2) before a word containing "conftest.", or (3) at the end.
6504    # Note that $ac_compile itself does not contain backslashes and begins
6505    # with a dollar sign (not a hyphen), so the echo should work correctly.
6506    # The option is referenced via a variable to avoid confusing sed.
6507    lt_compile=`echo "$ac_compile" | $SED \
6508    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6510    -e 's:$: $lt_compiler_flag:'`
6511    (eval echo "\"\$as_me:6511: $lt_compile\"" >&5)
6512    (eval "$lt_compile" 2>conftest.err)
6513    ac_status=$?
6514    cat conftest.err >&5
6515    echo "$as_me:6515: \$? = $ac_status" >&5
6516    if (exit $ac_status) && test -s "$ac_outfile"; then
6517      # The compiler can only warn and ignore the option if not recognized
6518      # So say no if there are warnings
6519      if test ! -s conftest.err; then
6520        lt_prog_compiler_pic_works=yes
6521      fi
6522    fi
6523    $rm conftest*
6524
6525 fi
6526 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6527 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6528
6529 if test x"$lt_prog_compiler_pic_works" = xyes; then
6530     case $lt_prog_compiler_pic in
6531      "" | " "*) ;;
6532      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6533      esac
6534 else
6535     lt_prog_compiler_pic=
6536      lt_prog_compiler_can_build_shared=no
6537 fi
6538
6539 fi
6540 case "$host_os" in
6541   # For platforms which do not support PIC, -DPIC is meaningless:
6542   *djgpp*)
6543     lt_prog_compiler_pic=
6544     ;;
6545   *)
6546     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6547     ;;
6548 esac
6549
6550 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6551 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6552 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   lt_cv_prog_compiler_c_o=no
6556    $rm -r conftest 2>/dev/null
6557    mkdir conftest
6558    cd conftest
6559    mkdir out
6560    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6561
6562    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6563    # that will create temporary files in the current directory regardless of
6564    # the output directory.  Thus, making CWD read-only will cause this test
6565    # to fail, enabling locking or at least warning the user not to do parallel
6566    # builds.
6567    chmod -w .
6568
6569    lt_compiler_flag="-o out/conftest2.$ac_objext"
6570    # Insert the option either (1) after the last *FLAGS variable, or
6571    # (2) before a word containing "conftest.", or (3) at the end.
6572    # Note that $ac_compile itself does not contain backslashes and begins
6573    # with a dollar sign (not a hyphen), so the echo should work correctly.
6574    lt_compile=`echo "$ac_compile" | $SED \
6575    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6576    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6577    -e 's:$: $lt_compiler_flag:'`
6578    (eval echo "\"\$as_me:6578: $lt_compile\"" >&5)
6579    (eval "$lt_compile" 2>out/conftest.err)
6580    ac_status=$?
6581    cat out/conftest.err >&5
6582    echo "$as_me:6582: \$? = $ac_status" >&5
6583    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6584    then
6585      # The compiler can only warn and ignore the option if not recognized
6586      # So say no if there are warnings
6587      if test ! -s out/conftest.err; then
6588        lt_cv_prog_compiler_c_o=yes
6589      fi
6590    fi
6591    chmod u+w .
6592    $rm conftest* out/*
6593    rmdir out
6594    cd ..
6595    rmdir conftest
6596    $rm conftest*
6597
6598 fi
6599 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6600 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6601
6602
6603 hard_links="nottested"
6604 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6605   # do not overwrite the value of need_locks provided by the user
6606   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6607 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6608   hard_links=yes
6609   $rm conftest*
6610   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6611   touch conftest.a
6612   ln conftest.a conftest.b 2>&5 || hard_links=no
6613   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6614   echo "$as_me:$LINENO: result: $hard_links" >&5
6615 echo "${ECHO_T}$hard_links" >&6
6616   if test "$hard_links" = no; then
6617     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6618 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6619     need_locks=warn
6620   fi
6621 else
6622   need_locks=no
6623 fi
6624
6625 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6626 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6627
6628   runpath_var=
6629   allow_undefined_flag=
6630   enable_shared_with_static_runtimes=no
6631   archive_cmds=
6632   archive_expsym_cmds=
6633   old_archive_From_new_cmds=
6634   old_archive_from_expsyms_cmds=
6635   export_dynamic_flag_spec=
6636   whole_archive_flag_spec=
6637   thread_safe_flag_spec=
6638   hardcode_libdir_flag_spec=
6639   hardcode_libdir_flag_spec_ld=
6640   hardcode_libdir_separator=
6641   hardcode_direct=no
6642   hardcode_minus_L=no
6643   hardcode_shlibpath_var=unsupported
6644   link_all_deplibs=unknown
6645   hardcode_automatic=no
6646   module_cmds=
6647   module_expsym_cmds=
6648   always_export_symbols=no
6649   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6650   # include_expsyms should be a list of space-separated symbols to be *always*
6651   # included in the symbol list
6652   include_expsyms=
6653   # exclude_expsyms can be an extended regexp of symbols to exclude
6654   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6655   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6656   # as well as any symbol that contains `d'.
6657   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6658   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6659   # platforms (ab)use it in PIC code, but their linkers get confused if
6660   # the symbol is explicitly referenced.  Since portable code cannot
6661   # rely on this symbol name, it's probably fine to never include it in
6662   # preloaded symbol tables.
6663   extract_expsyms_cmds=
6664
6665   case $host_os in
6666   cygwin* | mingw* | pw32*)
6667     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6668     # When not using gcc, we currently assume that we are using
6669     # Microsoft Visual C++.
6670     if test "$GCC" != yes; then
6671       with_gnu_ld=no
6672     fi
6673     ;;
6674   openbsd*)
6675     with_gnu_ld=no
6676     ;;
6677   esac
6678
6679   ld_shlibs=yes
6680   if test "$with_gnu_ld" = yes; then
6681     # If archive_cmds runs LD, not CC, wlarc should be empty
6682     wlarc='${wl}'
6683
6684     # See if GNU ld supports shared libraries.
6685     case $host_os in
6686     aix3* | aix4* | aix5*)
6687       # On AIX/PPC, the GNU linker is very broken
6688       if test "$host_cpu" != ia64; then
6689         ld_shlibs=no
6690         cat <<EOF 1>&2
6691
6692 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6693 *** to be unable to reliably create shared libraries on AIX.
6694 *** Therefore, libtool is disabling shared libraries support.  If you
6695 *** really care for shared libraries, you may want to modify your PATH
6696 *** so that a non-GNU linker is found, and then restart.
6697
6698 EOF
6699       fi
6700       ;;
6701
6702     amigaos*)
6703       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)'
6704       hardcode_libdir_flag_spec='-L$libdir'
6705       hardcode_minus_L=yes
6706
6707       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6708       # that the semantics of dynamic libraries on AmigaOS, at least up
6709       # to version 4, is to share data among multiple programs linked
6710       # with the same dynamic library.  Since this doesn't match the
6711       # behavior of shared libraries on other platforms, we can't use
6712       # them.
6713       ld_shlibs=no
6714       ;;
6715
6716     beos*)
6717       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6718         allow_undefined_flag=unsupported
6719         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6720         # support --undefined.  This deserves some investigation.  FIXME
6721         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6722       else
6723         ld_shlibs=no
6724       fi
6725       ;;
6726
6727     cygwin* | mingw* | pw32*)
6728       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6729       # as there is no search path for DLLs.
6730       hardcode_libdir_flag_spec='-L$libdir'
6731       allow_undefined_flag=unsupported
6732       always_export_symbols=no
6733       enable_shared_with_static_runtimes=yes
6734       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6735
6736       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6737         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6738         # If the export-symbols file already is a .def file (1st line
6739         # is EXPORTS), use it as is; otherwise, prepend...
6740         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6741           cp $export_symbols $output_objdir/$soname.def;
6742         else
6743           echo EXPORTS > $output_objdir/$soname.def;
6744           cat $export_symbols >> $output_objdir/$soname.def;
6745         fi~
6746         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6747       else
6748         ld_shlibs=no
6749       fi
6750       ;;
6751
6752     netbsd*)
6753       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6754         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6755         wlarc=
6756       else
6757         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759       fi
6760       ;;
6761
6762     solaris* | sysv5*)
6763       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6764         ld_shlibs=no
6765         cat <<EOF 1>&2
6766
6767 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6768 *** create shared libraries on Solaris systems.  Therefore, libtool
6769 *** is disabling shared libraries support.  We urge you to upgrade GNU
6770 *** binutils to release 2.9.1 or newer.  Another option is to modify
6771 *** your PATH or compiler configuration so that the native linker is
6772 *** used, and then restart.
6773
6774 EOF
6775       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6776         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6778       else
6779         ld_shlibs=no
6780       fi
6781       ;;
6782
6783     sunos4*)
6784       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6785       wlarc=
6786       hardcode_direct=yes
6787       hardcode_shlibpath_var=no
6788       ;;
6789
6790     *)
6791       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6792         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6793         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6794       else
6795         ld_shlibs=no
6796       fi
6797       ;;
6798     esac
6799
6800     if test "$ld_shlibs" = yes; then
6801       runpath_var=LD_RUN_PATH
6802       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6803       export_dynamic_flag_spec='${wl}--export-dynamic'
6804       # ancient GNU ld didn't support --whole-archive et. al.
6805       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6806         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6807       else
6808         whole_archive_flag_spec=
6809       fi
6810     fi
6811   else
6812     # PORTME fill in a description of your system's linker (not GNU ld)
6813     case $host_os in
6814     aix3*)
6815       allow_undefined_flag=unsupported
6816       always_export_symbols=yes
6817       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'
6818       # Note: this linker hardcodes the directories in LIBPATH if there
6819       # are no directories specified by -L.
6820       hardcode_minus_L=yes
6821       if test "$GCC" = yes && test -z "$link_static_flag"; then
6822         # Neither direct hardcoding nor static linking is supported with a
6823         # broken collect2.
6824         hardcode_direct=unsupported
6825       fi
6826       ;;
6827
6828     aix4* | aix5*)
6829       if test "$host_cpu" = ia64; then
6830         # On IA64, the linker does run time linking by default, so we don't
6831         # have to do anything special.
6832         aix_use_runtimelinking=no
6833         exp_sym_flag='-Bexport'
6834         no_entry_flag=""
6835       else
6836         # If we're using GNU nm, then we don't want the "-C" option.
6837         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6838         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6839           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'
6840         else
6841           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'
6842         fi
6843         aix_use_runtimelinking=no
6844
6845         # Test if we are trying to use run time linking or normal
6846         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6847         # need to do runtime linking.
6848         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6849           for ld_flag in $LDFLAGS; do
6850           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6851             aix_use_runtimelinking=yes
6852             break
6853           fi
6854           done
6855         esac
6856
6857         exp_sym_flag='-bexport'
6858         no_entry_flag='-bnoentry'
6859       fi
6860
6861       # When large executables or shared objects are built, AIX ld can
6862       # have problems creating the table of contents.  If linking a library
6863       # or program results in "error TOC overflow" add -mminimal-toc to
6864       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6865       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6866
6867       archive_cmds=''
6868       hardcode_direct=yes
6869       hardcode_libdir_separator=':'
6870       link_all_deplibs=yes
6871
6872       if test "$GCC" = yes; then
6873         case $host_os in aix4.012|aix4.012.*)
6874         # We only want to do this on AIX 4.2 and lower, the check
6875         # below for broken collect2 doesn't work under 4.3+
6876           collect2name=`${CC} -print-prog-name=collect2`
6877           if test -f "$collect2name" && \
6878            strings "$collect2name" | grep resolve_lib_name >/dev/null
6879           then
6880           # We have reworked collect2
6881           hardcode_direct=yes
6882           else
6883           # We have old collect2
6884           hardcode_direct=unsupported
6885           # It fails to find uninstalled libraries when the uninstalled
6886           # path is not listed in the libpath.  Setting hardcode_minus_L
6887           # to unsupported forces relinking
6888           hardcode_minus_L=yes
6889           hardcode_libdir_flag_spec='-L$libdir'
6890           hardcode_libdir_separator=
6891           fi
6892         esac
6893         shared_flag='-shared'
6894       else
6895         # not using gcc
6896         if test "$host_cpu" = ia64; then
6897         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6898         # chokes on -Wl,-G. The following line is correct:
6899           shared_flag='-G'
6900         else
6901         if test "$aix_use_runtimelinking" = yes; then
6902             shared_flag='${wl}-G'
6903           else
6904             shared_flag='${wl}-bM:SRE'
6905         fi
6906         fi
6907       fi
6908
6909       # It seems that -bexpall does not export symbols beginning with
6910       # underscore (_), so it is better to generate a list of symbols to export.
6911       always_export_symbols=yes
6912       if test "$aix_use_runtimelinking" = yes; then
6913         # Warning - without using the other runtime loading flags (-brtl),
6914         # -berok will link without error, but may produce a broken library.
6915         allow_undefined_flag='-berok'
6916        # Determine the default libpath from the value encoded in an empty executable.
6917        cat >conftest.$ac_ext <<_ACEOF
6918 #line $LINENO "configure"
6919 /* confdefs.h.  */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h.  */
6924
6925 int
6926 main ()
6927 {
6928
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935   (eval $ac_link) 2>&5
6936   ac_status=$?
6937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938   (exit $ac_status); } &&
6939          { ac_try='test -s conftest$ac_exeext'
6940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941   (eval $ac_try) 2>&5
6942   ac_status=$?
6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944   (exit $ac_status); }; }; then
6945
6946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6947 }'`
6948 # Check for a 64-bit object if we didn't find anything.
6949 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; }
6950 }'`; fi
6951 else
6952   echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6954
6955 fi
6956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6958
6959        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6960         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"
6961        else
6962         if test "$host_cpu" = ia64; then
6963           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6964           allow_undefined_flag="-z nodefs"
6965           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"
6966         else
6967          # Determine the default libpath from the value encoded in an empty executable.
6968          cat >conftest.$ac_ext <<_ACEOF
6969 #line $LINENO "configure"
6970 /* confdefs.h.  */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h.  */
6975
6976 int
6977 main ()
6978 {
6979
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext conftest$ac_exeext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6986   (eval $ac_link) 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } &&
6990          { ac_try='test -s conftest$ac_exeext'
6991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992   (eval $ac_try) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); }; }; then
6996
6997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6998 }'`
6999 # Check for a 64-bit object if we didn't find anything.
7000 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; }
7001 }'`; fi
7002 else
7003   echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7005
7006 fi
7007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7009
7010          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7011           # Warning - without using the other run time loading flags,
7012           # -berok will link without error, but may produce a broken library.
7013           no_undefined_flag=' ${wl}-bernotok'
7014           allow_undefined_flag=' ${wl}-berok'
7015           # -bexpall does not export symbols beginning with underscore (_)
7016           always_export_symbols=yes
7017           # Exported symbols can be pulled into shared objects from archives
7018           whole_archive_flag_spec=' '
7019           archive_cmds_need_lc=yes
7020           # This is similar to how AIX traditionally builds it's shared libraries.
7021           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'
7022         fi
7023       fi
7024       ;;
7025
7026     amigaos*)
7027       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)'
7028       hardcode_libdir_flag_spec='-L$libdir'
7029       hardcode_minus_L=yes
7030       # see comment about different semantics on the GNU ld section
7031       ld_shlibs=no
7032       ;;
7033
7034     bsdi4*)
7035       export_dynamic_flag_spec=-rdynamic
7036       ;;
7037
7038     cygwin* | mingw* | pw32*)
7039       # When not using gcc, we currently assume that we are using
7040       # Microsoft Visual C++.
7041       # hardcode_libdir_flag_spec is actually meaningless, as there is
7042       # no search path for DLLs.
7043       hardcode_libdir_flag_spec=' '
7044       allow_undefined_flag=unsupported
7045       # Tell ltmain to make .lib files, not .a files.
7046       libext=lib
7047       # Tell ltmain to make .dll files, not .so files.
7048       shrext=".dll"
7049       # FIXME: Setting linknames here is a bad hack.
7050       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7051       # The linker will automatically build a .lib file if we build a DLL.
7052       old_archive_From_new_cmds='true'
7053       # FIXME: Should let the user specify the lib program.
7054       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7055       fix_srcfile_path='`cygpath -w "$srcfile"`'
7056       enable_shared_with_static_runtimes=yes
7057       ;;
7058
7059     darwin* | rhapsody*)
7060     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7061       archive_cmds_need_lc=no
7062       case "$host_os" in
7063       rhapsody* | darwin1.[012])
7064         allow_undefined_flag='-undefined suppress'
7065         ;;
7066       *) # Darwin 1.3 on
7067         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7068         ;;
7069       esac
7070       # FIXME: Relying on posixy $() will cause problems for
7071       #        cross-compilation, but unfortunately the echo tests do not
7072       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7073       #        `"' quotes if we put them in here... so don't!
7074         lt_int_apple_cc_single_mod=no
7075         output_verbose_link_cmd='echo'
7076         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7077           lt_int_apple_cc_single_mod=yes
7078         fi
7079         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7080           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7081         else
7082         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'
7083       fi
7084       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7085       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7086         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7087           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}'
7088         else
7089           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}'
7090         fi
7091           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}'
7092       hardcode_direct=no
7093       hardcode_automatic=yes
7094       hardcode_shlibpath_var=unsupported
7095       whole_archive_flag_spec='-all_load $convenience'
7096       link_all_deplibs=yes
7097     fi
7098       ;;
7099
7100     dgux*)
7101       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7102       hardcode_libdir_flag_spec='-L$libdir'
7103       hardcode_shlibpath_var=no
7104       ;;
7105
7106     freebsd1*)
7107       ld_shlibs=no
7108       ;;
7109
7110     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7111     # support.  Future versions do this automatically, but an explicit c++rt0.o
7112     # does not break anything, and helps significantly (at the cost of a little
7113     # extra space).
7114     freebsd2.2*)
7115       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7116       hardcode_libdir_flag_spec='-R$libdir'
7117       hardcode_direct=yes
7118       hardcode_shlibpath_var=no
7119       ;;
7120
7121     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7122     freebsd2*)
7123       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7124       hardcode_direct=yes
7125       hardcode_minus_L=yes
7126       hardcode_shlibpath_var=no
7127       ;;
7128
7129     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7130     freebsd*)
7131       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7132       hardcode_libdir_flag_spec='-R$libdir'
7133       hardcode_direct=yes
7134       hardcode_shlibpath_var=no
7135       ;;
7136
7137     hpux9*)
7138       if test "$GCC" = yes; then
7139         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'
7140       else
7141         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'
7142       fi
7143       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7144       hardcode_libdir_separator=:
7145       hardcode_direct=yes
7146
7147       # hardcode_minus_L: Not really in the search PATH,
7148       # but as the default location of the library.
7149       hardcode_minus_L=yes
7150       export_dynamic_flag_spec='${wl}-E'
7151       ;;
7152
7153     hpux10* | hpux11*)
7154       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7155         case "$host_cpu" in
7156         hppa*64*|ia64*)
7157           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7158           ;;
7159         *)
7160           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7161           ;;
7162         esac
7163       else
7164         case "$host_cpu" in
7165         hppa*64*|ia64*)
7166           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7167           ;;
7168         *)
7169           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7170           ;;
7171         esac
7172       fi
7173       if test "$with_gnu_ld" = no; then
7174         case "$host_cpu" in
7175         hppa*64*)
7176           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7177           hardcode_libdir_flag_spec_ld='+b $libdir'
7178           hardcode_libdir_separator=:
7179           hardcode_direct=no
7180           hardcode_shlibpath_var=no
7181           ;;
7182         ia64*)
7183           hardcode_libdir_flag_spec='-L$libdir'
7184           hardcode_direct=no
7185           hardcode_shlibpath_var=no
7186
7187           # hardcode_minus_L: Not really in the search PATH,
7188           # but as the default location of the library.
7189           hardcode_minus_L=yes
7190           ;;
7191         *)
7192           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7193           hardcode_libdir_separator=:
7194           hardcode_direct=yes
7195           export_dynamic_flag_spec='${wl}-E'
7196
7197           # hardcode_minus_L: Not really in the search PATH,
7198           # but as the default location of the library.
7199           hardcode_minus_L=yes
7200           ;;
7201         esac
7202       fi
7203       ;;
7204
7205     irix5* | irix6* | nonstopux*)
7206       if test "$GCC" = yes; then
7207         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'
7208       else
7209         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'
7210         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7211       fi
7212       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7213       hardcode_libdir_separator=:
7214       link_all_deplibs=yes
7215       ;;
7216
7217     netbsd*)
7218       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7219         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7220       else
7221         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7222       fi
7223       hardcode_libdir_flag_spec='-R$libdir'
7224       hardcode_direct=yes
7225       hardcode_shlibpath_var=no
7226       ;;
7227
7228     newsos6)
7229       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7230       hardcode_direct=yes
7231       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7232       hardcode_libdir_separator=:
7233       hardcode_shlibpath_var=no
7234       ;;
7235
7236     openbsd*)
7237       hardcode_direct=yes
7238       hardcode_shlibpath_var=no
7239       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7240         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7241         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7242         export_dynamic_flag_spec='${wl}-E'
7243       else
7244        case $host_os in
7245          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7246            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7247            hardcode_libdir_flag_spec='-R$libdir'
7248            ;;
7249          *)
7250            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7251            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7252            ;;
7253        esac
7254       fi
7255       ;;
7256
7257     os2*)
7258       hardcode_libdir_flag_spec='-L$libdir'
7259       hardcode_minus_L=yes
7260       allow_undefined_flag=unsupported
7261       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'
7262       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7263       ;;
7264
7265     osf3*)
7266       if test "$GCC" = yes; then
7267         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7268         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'
7269       else
7270         allow_undefined_flag=' -expect_unresolved \*'
7271         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'
7272       fi
7273       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7274       hardcode_libdir_separator=:
7275       ;;
7276
7277     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7278       if test "$GCC" = yes; then
7279         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7280         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'
7281         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7282       else
7283         allow_undefined_flag=' -expect_unresolved \*'
7284         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'
7285         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7286         $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'
7287
7288         # Both c and cxx compiler support -rpath directly
7289         hardcode_libdir_flag_spec='-rpath $libdir'
7290       fi
7291       hardcode_libdir_separator=:
7292       ;;
7293
7294     sco3.2v5*)
7295       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7296       hardcode_shlibpath_var=no
7297       export_dynamic_flag_spec='${wl}-Bexport'
7298       runpath_var=LD_RUN_PATH
7299       hardcode_runpath_var=yes
7300       ;;
7301
7302     solaris*)
7303       no_undefined_flag=' -z text'
7304       if test "$GCC" = yes; then
7305         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7306         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7307           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7308       else
7309         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7310         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7311         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7312       fi
7313       hardcode_libdir_flag_spec='-R$libdir'
7314       hardcode_shlibpath_var=no
7315       case $host_os in
7316       solaris2.[0-5] | solaris2.[0-5].*) ;;
7317       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7318         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7319       esac
7320       link_all_deplibs=yes
7321       ;;
7322
7323     sunos4*)
7324       if test "x$host_vendor" = xsequent; then
7325         # Use $CC to link under sequent, because it throws in some extra .o
7326         # files that make .init and .fini sections work.
7327         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7328       else
7329         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7330       fi
7331       hardcode_libdir_flag_spec='-L$libdir'
7332       hardcode_direct=yes
7333       hardcode_minus_L=yes
7334       hardcode_shlibpath_var=no
7335       ;;
7336
7337     sysv4)
7338       case $host_vendor in
7339         sni)
7340           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7341           hardcode_direct=yes # is this really true???
7342         ;;
7343         siemens)
7344           ## LD is ld it makes a PLAMLIB
7345           ## CC just makes a GrossModule.
7346           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7347           reload_cmds='$CC -r -o $output$reload_objs'
7348           hardcode_direct=no
7349         ;;
7350         motorola)
7351           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7352           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7353         ;;
7354       esac
7355       runpath_var='LD_RUN_PATH'
7356       hardcode_shlibpath_var=no
7357       ;;
7358
7359     sysv4.3*)
7360       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7361       hardcode_shlibpath_var=no
7362       export_dynamic_flag_spec='-Bexport'
7363       ;;
7364
7365     sysv4*MP*)
7366       if test -d /usr/nec; then
7367         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368         hardcode_shlibpath_var=no
7369         runpath_var=LD_RUN_PATH
7370         hardcode_runpath_var=yes
7371         ld_shlibs=yes
7372       fi
7373       ;;
7374
7375     sysv4.2uw2*)
7376       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7377       hardcode_direct=yes
7378       hardcode_minus_L=no
7379       hardcode_shlibpath_var=no
7380       hardcode_runpath_var=yes
7381       runpath_var=LD_RUN_PATH
7382       ;;
7383
7384    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7385       no_undefined_flag='${wl}-z ${wl}text'
7386       if test "$GCC" = yes; then
7387         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7388       else
7389         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7390       fi
7391       runpath_var='LD_RUN_PATH'
7392       hardcode_shlibpath_var=no
7393       ;;
7394
7395     sysv5*)
7396       no_undefined_flag=' -z text'
7397       # $CC -shared without GNU ld will not create a library from C++
7398       # object files and a static libstdc++, better avoid it by now
7399       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7401                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7402       hardcode_libdir_flag_spec=
7403       hardcode_shlibpath_var=no
7404       runpath_var='LD_RUN_PATH'
7405       ;;
7406
7407     uts4*)
7408       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7409       hardcode_libdir_flag_spec='-L$libdir'
7410       hardcode_shlibpath_var=no
7411       ;;
7412
7413     *)
7414       ld_shlibs=no
7415       ;;
7416     esac
7417   fi
7418
7419 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7420 echo "${ECHO_T}$ld_shlibs" >&6
7421 test "$ld_shlibs" = no && can_build_shared=no
7422
7423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7424 if test "$GCC" = yes; then
7425   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7426 fi
7427
7428 #
7429 # Do we need to explicitly link libc?
7430 #
7431 case "x$archive_cmds_need_lc" in
7432 x|xyes)
7433   # Assume -lc should be added
7434   archive_cmds_need_lc=yes
7435
7436   if test "$enable_shared" = yes && test "$GCC" = yes; then
7437     case $archive_cmds in
7438     *'~'*)
7439       # FIXME: we may have to deal with multi-command sequences.
7440       ;;
7441     '$CC '*)
7442       # Test whether the compiler implicitly links with -lc since on some
7443       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7444       # to ld, don't add -lc before -lgcc.
7445       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7446 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7447       $rm conftest*
7448       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7449
7450       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451   (eval $ac_compile) 2>&5
7452   ac_status=$?
7453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454   (exit $ac_status); } 2>conftest.err; then
7455         soname=conftest
7456         lib=conftest
7457         libobjs=conftest.$ac_objext
7458         deplibs=
7459         wl=$lt_prog_compiler_wl
7460         compiler_flags=-v
7461         linker_flags=-v
7462         verstring=
7463         output_objdir=.
7464         libname=conftest
7465         lt_save_allow_undefined_flag=$allow_undefined_flag
7466         allow_undefined_flag=
7467         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7468   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7469   ac_status=$?
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); }
7472         then
7473           archive_cmds_need_lc=no
7474         else
7475           archive_cmds_need_lc=yes
7476         fi
7477         allow_undefined_flag=$lt_save_allow_undefined_flag
7478       else
7479         cat conftest.err 1>&5
7480       fi
7481       $rm conftest*
7482       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7483 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7484       ;;
7485     esac
7486   fi
7487   ;;
7488 esac
7489
7490 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7491 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7492 hardcode_action=
7493 if test -n "$hardcode_libdir_flag_spec" || \
7494    test -n "$runpath_var " || \
7495    test "X$hardcode_automatic"="Xyes" ; then
7496
7497   # We can hardcode non-existant directories.
7498   if test "$hardcode_direct" != no &&
7499      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7500      # have to relink, otherwise we might link with an installed library
7501      # when we should be linking with a yet-to-be-installed one
7502      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7503      test "$hardcode_minus_L" != no; then
7504     # Linking always hardcodes the temporary library directory.
7505     hardcode_action=relink
7506   else
7507     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7508     hardcode_action=immediate
7509   fi
7510 else
7511   # We cannot hardcode anything, or else we can only hardcode existing
7512   # directories.
7513   hardcode_action=unsupported
7514 fi
7515 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7516 echo "${ECHO_T}$hardcode_action" >&6
7517
7518 if test "$hardcode_action" = relink; then
7519   # Fast installation is not supported
7520   enable_fast_install=no
7521 elif test "$shlibpath_overrides_runpath" = yes ||
7522      test "$enable_shared" = no; then
7523   # Fast installation is not necessary
7524   enable_fast_install=needless
7525 fi
7526
7527 striplib=
7528 old_striplib=
7529 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7530 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7531 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7532   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7533   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7534   echo "$as_me:$LINENO: result: yes" >&5
7535 echo "${ECHO_T}yes" >&6
7536 else
7537 # FIXME - insert some real tests, host_os isn't really good enough
7538   case $host_os in
7539    darwin*)
7540        if test -n "$STRIP" ; then
7541          striplib="$STRIP -x"
7542          echo "$as_me:$LINENO: result: yes" >&5
7543 echo "${ECHO_T}yes" >&6
7544        else
7545   echo "$as_me:$LINENO: result: no" >&5
7546 echo "${ECHO_T}no" >&6
7547 fi
7548        ;;
7549    *)
7550   echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6
7552     ;;
7553   esac
7554 fi
7555
7556 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7557 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7558 library_names_spec=
7559 libname_spec='lib$name'
7560 soname_spec=
7561 shrext=".so"
7562 postinstall_cmds=
7563 postuninstall_cmds=
7564 finish_cmds=
7565 finish_eval=
7566 shlibpath_var=
7567 shlibpath_overrides_runpath=unknown
7568 version_type=none
7569 dynamic_linker="$host_os ld.so"
7570 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7571 if test "$GCC" = yes; then
7572   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7573   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7574     # if the path contains ";" then we assume it to be the separator
7575     # otherwise default to the standard path separator (i.e. ":") - it is
7576     # assumed that no part of a normal pathname contains ";" but that should
7577     # okay in the real world where ";" in dirpaths is itself problematic.
7578     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7579   else
7580     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7581   fi
7582 else
7583   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7584 fi
7585 need_lib_prefix=unknown
7586 hardcode_into_libs=no
7587
7588 # when you set need_version to no, make sure it does not cause -set_version
7589 # flags to be left without arguments
7590 need_version=unknown
7591
7592 case $host_os in
7593 aix3*)
7594   version_type=linux
7595   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7596   shlibpath_var=LIBPATH
7597
7598   # AIX 3 has no versioning support, so we append a major version to the name.
7599   soname_spec='${libname}${release}${shared_ext}$major'
7600   ;;
7601
7602 aix4* | aix5*)
7603   version_type=linux
7604   need_lib_prefix=no
7605   need_version=no
7606   hardcode_into_libs=yes
7607   if test "$host_cpu" = ia64; then
7608     # AIX 5 supports IA64
7609     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7610     shlibpath_var=LD_LIBRARY_PATH
7611   else
7612     # With GCC up to 2.95.x, collect2 would create an import file
7613     # for dependence libraries.  The import file would start with
7614     # the line `#! .'.  This would cause the generated library to
7615     # depend on `.', always an invalid library.  This was fixed in
7616     # development snapshots of GCC prior to 3.0.
7617     case $host_os in
7618       aix4 | aix4.[01] | aix4.[01].*)
7619       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7620            echo ' yes '
7621            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7622         :
7623       else
7624         can_build_shared=no
7625       fi
7626       ;;
7627     esac
7628     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7629     # soname into executable. Probably we can add versioning support to
7630     # collect2, so additional links can be useful in future.
7631     if test "$aix_use_runtimelinking" = yes; then
7632       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7633       # instead of lib<name>.a to let people know that these are not
7634       # typical AIX shared libraries.
7635       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7636     else
7637       # We preserve .a as extension for shared libraries through AIX4.2
7638       # and later when we are not doing run time linking.
7639       library_names_spec='${libname}${release}.a $libname.a'
7640       soname_spec='${libname}${release}${shared_ext}$major'
7641     fi
7642     shlibpath_var=LIBPATH
7643   fi
7644   ;;
7645
7646 amigaos*)
7647   library_names_spec='$libname.ixlibrary $libname.a'
7648   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7649   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'
7650   ;;
7651
7652 beos*)
7653   library_names_spec='${libname}${shared_ext}'
7654   dynamic_linker="$host_os ld.so"
7655   shlibpath_var=LIBRARY_PATH
7656   ;;
7657
7658 bsdi4*)
7659   version_type=linux
7660   need_version=no
7661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7662   soname_spec='${libname}${release}${shared_ext}$major'
7663   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7664   shlibpath_var=LD_LIBRARY_PATH
7665   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7666   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7667   # the default ld.so.conf also contains /usr/contrib/lib and
7668   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7669   # libtool to hard-code these into programs
7670   ;;
7671
7672 cygwin* | mingw* | pw32*)
7673   version_type=windows
7674   shrext=".dll"
7675   need_version=no
7676   need_lib_prefix=no
7677
7678   case $GCC,$host_os in
7679   yes,cygwin* | yes,mingw* | yes,pw32*)
7680     library_names_spec='$libname.dll.a'
7681     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7682     postinstall_cmds='base_file=`basename \${file}`~
7683       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7684       dldir=$destdir/`dirname \$dlpath`~
7685       test -d \$dldir || mkdir -p \$dldir~
7686       $install_prog $dir/$dlname \$dldir/$dlname'
7687     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7688       dlpath=$dir/\$dldll~
7689        $rm \$dlpath'
7690     shlibpath_overrides_runpath=yes
7691
7692     case $host_os in
7693     cygwin*)
7694       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7695       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7696       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7697       ;;
7698     mingw*)
7699       # MinGW DLLs use traditional 'lib' prefix
7700       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7701       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7702       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7703         # It is most probably a Windows format PATH printed by
7704         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7705         # path with ; separators, and with drive letters. We can handle the
7706         # drive letters (cygwin fileutils understands them), so leave them,
7707         # especially as we might pass files found there to a mingw objdump,
7708         # which wouldn't understand a cygwinified path. Ahh.
7709         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7710       else
7711         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7712       fi
7713       ;;
7714     pw32*)
7715       # pw32 DLLs use 'pw' prefix rather than 'lib'
7716       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7717       ;;
7718     esac
7719     ;;
7720
7721   *)
7722     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7723     ;;
7724   esac
7725   dynamic_linker='Win32 ld.exe'
7726   # FIXME: first we should search . and the directory the executable is in
7727   shlibpath_var=PATH
7728   ;;
7729
7730 darwin* | rhapsody*)
7731   dynamic_linker="$host_os dyld"
7732   version_type=darwin
7733   need_lib_prefix=no
7734   need_version=no
7735   # FIXME: Relying on posixy $() will cause problems for
7736   #        cross-compilation, but unfortunately the echo tests do not
7737   #        yet detect zsh echo's removal of \ escapes.
7738   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7739   soname_spec='${libname}${release}${major}$shared_ext'
7740   shlibpath_overrides_runpath=yes
7741   shlibpath_var=DYLD_LIBRARY_PATH
7742   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7743   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7744   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7745   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"`
7746   fi
7747   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7748   ;;
7749
7750 dgux*)
7751   version_type=linux
7752   need_lib_prefix=no
7753   need_version=no
7754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7755   soname_spec='${libname}${release}${shared_ext}$major'
7756   shlibpath_var=LD_LIBRARY_PATH
7757   ;;
7758
7759 freebsd1*)
7760   dynamic_linker=no
7761   ;;
7762
7763 freebsd*)
7764   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7765   version_type=freebsd-$objformat
7766   case $version_type in
7767     freebsd-elf*)
7768       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7769       need_version=no
7770       need_lib_prefix=no
7771       ;;
7772     freebsd-*)
7773       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7774       need_version=yes
7775       ;;
7776   esac
7777   shlibpath_var=LD_LIBRARY_PATH
7778   case $host_os in
7779   freebsd2*)
7780     shlibpath_overrides_runpath=yes
7781     ;;
7782   freebsd3.01* | freebsdelf3.01*)
7783     shlibpath_overrides_runpath=yes
7784     hardcode_into_libs=yes
7785     ;;
7786   *) # from 3.2 on
7787     shlibpath_overrides_runpath=no
7788     hardcode_into_libs=yes
7789     ;;
7790   esac
7791   ;;
7792
7793 gnu*)
7794   version_type=linux
7795   need_lib_prefix=no
7796   need_version=no
7797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7798   soname_spec='${libname}${release}${shared_ext}$major'
7799   shlibpath_var=LD_LIBRARY_PATH
7800   hardcode_into_libs=yes
7801   ;;
7802
7803 hpux9* | hpux10* | hpux11*)
7804   # Give a soname corresponding to the major version so that dld.sl refuses to
7805   # link against other versions.
7806   version_type=sunos
7807   need_lib_prefix=no
7808   need_version=no
7809   case "$host_cpu" in
7810   ia64*)
7811     shrext='.so'
7812     hardcode_into_libs=yes
7813     dynamic_linker="$host_os dld.so"
7814     shlibpath_var=LD_LIBRARY_PATH
7815     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7817     soname_spec='${libname}${release}${shared_ext}$major'
7818     if test "X$HPUX_IA64_MODE" = X32; then
7819       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7820     else
7821       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7822     fi
7823     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7824     ;;
7825    hppa*64*)
7826      shrext='.sl'
7827      hardcode_into_libs=yes
7828      dynamic_linker="$host_os dld.sl"
7829      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7830      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7831      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7832      soname_spec='${libname}${release}${shared_ext}$major'
7833      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7834      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7835      ;;
7836    *)
7837     shrext='.sl'
7838     dynamic_linker="$host_os dld.sl"
7839     shlibpath_var=SHLIB_PATH
7840     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7842     soname_spec='${libname}${release}${shared_ext}$major'
7843     ;;
7844   esac
7845   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7846   postinstall_cmds='chmod 555 $lib'
7847   ;;
7848
7849 irix5* | irix6* | nonstopux*)
7850   case $host_os in
7851     nonstopux*) version_type=nonstopux ;;
7852     *)
7853         if test "$lt_cv_prog_gnu_ld" = yes; then
7854                 version_type=linux
7855         else
7856                 version_type=irix
7857         fi ;;
7858   esac
7859   need_lib_prefix=no
7860   need_version=no
7861   soname_spec='${libname}${release}${shared_ext}$major'
7862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7863   case $host_os in
7864   irix5* | nonstopux*)
7865     libsuff= shlibsuff=
7866     ;;
7867   *)
7868     case $LD in # libtool.m4 will add one of these switches to LD
7869     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7870       libsuff= shlibsuff= libmagic=32-bit;;
7871     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7872       libsuff=32 shlibsuff=N32 libmagic=N32;;
7873     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7874       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7875     *) libsuff= shlibsuff= libmagic=never-match;;
7876     esac
7877     ;;
7878   esac
7879   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7880   shlibpath_overrides_runpath=no
7881   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7882   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7883   hardcode_into_libs=yes
7884   ;;
7885
7886 # No shared lib support for Linux oldld, aout, or coff.
7887 linux*oldld* | linux*aout* | linux*coff*)
7888   dynamic_linker=no
7889   ;;
7890
7891 # This must be Linux ELF.
7892 linux*)
7893   version_type=linux
7894   need_lib_prefix=no
7895   need_version=no
7896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897   soname_spec='${libname}${release}${shared_ext}$major'
7898   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7899   shlibpath_var=LD_LIBRARY_PATH
7900   shlibpath_overrides_runpath=no
7901   # This implies no fast_install, which is unacceptable.
7902   # Some rework will be needed to allow for fast_install
7903   # before this can be enabled.
7904   hardcode_into_libs=yes
7905
7906   # We used to test for /lib/ld.so.1 and disable shared libraries on
7907   # powerpc, because MkLinux only supported shared libraries with the
7908   # GNU dynamic linker.  Since this was broken with cross compilers,
7909   # most powerpc-linux boxes support dynamic linking these days and
7910   # people can always --disable-shared, the test was removed, and we
7911   # assume the GNU/Linux dynamic linker is in use.
7912   dynamic_linker='GNU/Linux ld.so'
7913   ;;
7914
7915 netbsd*)
7916   version_type=sunos
7917   need_lib_prefix=no
7918   need_version=no
7919   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7921     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7922     dynamic_linker='NetBSD (a.out) ld.so'
7923   else
7924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7925     soname_spec='${libname}${release}${shared_ext}$major'
7926     dynamic_linker='NetBSD ld.elf_so'
7927   fi
7928   shlibpath_var=LD_LIBRARY_PATH
7929   shlibpath_overrides_runpath=yes
7930   hardcode_into_libs=yes
7931   ;;
7932
7933 newsos6)
7934   version_type=linux
7935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7936   shlibpath_var=LD_LIBRARY_PATH
7937   shlibpath_overrides_runpath=yes
7938   ;;
7939
7940 nto-qnx)
7941   version_type=linux
7942   need_lib_prefix=no
7943   need_version=no
7944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7945   soname_spec='${libname}${release}${shared_ext}$major'
7946   shlibpath_var=LD_LIBRARY_PATH
7947   shlibpath_overrides_runpath=yes
7948   ;;
7949
7950 openbsd*)
7951   version_type=sunos
7952   need_lib_prefix=no
7953   need_version=no
7954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7955   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7956   shlibpath_var=LD_LIBRARY_PATH
7957   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7958     case $host_os in
7959       openbsd2.[89] | openbsd2.[89].*)
7960         shlibpath_overrides_runpath=no
7961         ;;
7962       *)
7963         shlibpath_overrides_runpath=yes
7964         ;;
7965       esac
7966   else
7967     shlibpath_overrides_runpath=yes
7968   fi
7969   ;;
7970
7971 os2*)
7972   libname_spec='$name'
7973   shrext=".dll"
7974   need_lib_prefix=no
7975   library_names_spec='$libname${shared_ext} $libname.a'
7976   dynamic_linker='OS/2 ld.exe'
7977   shlibpath_var=LIBPATH
7978   ;;
7979
7980 osf3* | osf4* | osf5*)
7981   version_type=osf
7982   need_lib_prefix=no
7983   need_version=no
7984   soname_spec='${libname}${release}${shared_ext}$major'
7985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7986   shlibpath_var=LD_LIBRARY_PATH
7987   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7988   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7989   ;;
7990
7991 sco3.2v5*)
7992   version_type=osf
7993   soname_spec='${libname}${release}${shared_ext}$major'
7994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7995   shlibpath_var=LD_LIBRARY_PATH
7996   ;;
7997
7998 solaris*)
7999   version_type=linux
8000   need_lib_prefix=no
8001   need_version=no
8002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8003   soname_spec='${libname}${release}${shared_ext}$major'
8004   shlibpath_var=LD_LIBRARY_PATH
8005   shlibpath_overrides_runpath=yes
8006   hardcode_into_libs=yes
8007   # ldd complains unless libraries are executable
8008   postinstall_cmds='chmod +x $lib'
8009   ;;
8010
8011 sunos4*)
8012   version_type=sunos
8013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8014   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8015   shlibpath_var=LD_LIBRARY_PATH
8016   shlibpath_overrides_runpath=yes
8017   if test "$with_gnu_ld" = yes; then
8018     need_lib_prefix=no
8019   fi
8020   need_version=yes
8021   ;;
8022
8023 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8024   version_type=linux
8025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8026   soname_spec='${libname}${release}${shared_ext}$major'
8027   shlibpath_var=LD_LIBRARY_PATH
8028   case $host_vendor in
8029     sni)
8030       shlibpath_overrides_runpath=no
8031       need_lib_prefix=no
8032       export_dynamic_flag_spec='${wl}-Blargedynsym'
8033       runpath_var=LD_RUN_PATH
8034       ;;
8035     siemens)
8036       need_lib_prefix=no
8037       ;;
8038     motorola)
8039       need_lib_prefix=no
8040       need_version=no
8041       shlibpath_overrides_runpath=no
8042       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8043       ;;
8044   esac
8045   ;;
8046
8047 sysv4*MP*)
8048   if test -d /usr/nec ;then
8049     version_type=linux
8050     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8051     soname_spec='$libname${shared_ext}.$major'
8052     shlibpath_var=LD_LIBRARY_PATH
8053   fi
8054   ;;
8055
8056 uts4*)
8057   version_type=linux
8058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8059   soname_spec='${libname}${release}${shared_ext}$major'
8060   shlibpath_var=LD_LIBRARY_PATH
8061   ;;
8062
8063 *)
8064   dynamic_linker=no
8065   ;;
8066 esac
8067 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8068 echo "${ECHO_T}$dynamic_linker" >&6
8069 test "$dynamic_linker" = no && can_build_shared=no
8070
8071 if test "x$enable_dlopen" != xyes; then
8072   enable_dlopen=unknown
8073   enable_dlopen_self=unknown
8074   enable_dlopen_self_static=unknown
8075 else
8076   lt_cv_dlopen=no
8077   lt_cv_dlopen_libs=
8078
8079   case $host_os in
8080   beos*)
8081     lt_cv_dlopen="load_add_on"
8082     lt_cv_dlopen_libs=
8083     lt_cv_dlopen_self=yes
8084     ;;
8085
8086   mingw* | pw32*)
8087     lt_cv_dlopen="LoadLibrary"
8088     lt_cv_dlopen_libs=
8089    ;;
8090
8091   cygwin*)
8092     lt_cv_dlopen="dlopen"
8093     lt_cv_dlopen_libs=
8094    ;;
8095
8096   darwin*)
8097   # if libdl is installed we need to link against it
8098     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8099 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8100 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   ac_check_lib_save_LIBS=$LIBS
8104 LIBS="-ldl  $LIBS"
8105 cat >conftest.$ac_ext <<_ACEOF
8106 #line $LINENO "configure"
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112
8113 /* Override any gcc2 internal prototype to avoid an error.  */
8114 #ifdef __cplusplus
8115 extern "C"
8116 #endif
8117 /* We use char because int might match the return type of a gcc2
8118    builtin and then its argument prototype would still apply.  */
8119 char dlopen ();
8120 int
8121 main ()
8122 {
8123 dlopen ();
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130   (eval $ac_link) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } &&
8134          { ac_try='test -s conftest$ac_exeext'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   ac_cv_lib_dl_dlopen=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 ac_cv_lib_dl_dlopen=no
8146 fi
8147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8148 LIBS=$ac_check_lib_save_LIBS
8149 fi
8150 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8151 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8152 if test $ac_cv_lib_dl_dlopen = yes; then
8153   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8154 else
8155
8156     lt_cv_dlopen="dyld"
8157     lt_cv_dlopen_libs=
8158     lt_cv_dlopen_self=yes
8159
8160 fi
8161
8162    ;;
8163
8164   *)
8165     echo "$as_me:$LINENO: checking for shl_load" >&5
8166 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8167 if test "${ac_cv_func_shl_load+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   cat >conftest.$ac_ext <<_ACEOF
8171 #line $LINENO "configure"
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 /* System header to define __stub macros and hopefully few prototypes,
8178     which can conflict with char shl_load (); below.
8179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8180     <limits.h> exists even on freestanding compilers.  */
8181 #ifdef __STDC__
8182 # include <limits.h>
8183 #else
8184 # include <assert.h>
8185 #endif
8186 /* Override any gcc2 internal prototype to avoid an error.  */
8187 #ifdef __cplusplus
8188 extern "C"
8189 {
8190 #endif
8191 /* We use char because int might match the return type of a gcc2
8192    builtin and then its argument prototype would still apply.  */
8193 char shl_load ();
8194 /* The GNU C library defines this for functions which it implements
8195     to always fail with ENOSYS.  Some functions are actually named
8196     something starting with __ and the normal name is an alias.  */
8197 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8198 choke me
8199 #else
8200 char (*f) () = shl_load;
8201 #endif
8202 #ifdef __cplusplus
8203 }
8204 #endif
8205
8206 int
8207 main ()
8208 {
8209 return f != shl_load;
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216   (eval $ac_link) 2>&5
8217   ac_status=$?
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } &&
8220          { ac_try='test -s conftest$ac_exeext'
8221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222   (eval $ac_try) 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; }; then
8226   ac_cv_func_shl_load=yes
8227 else
8228   echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 ac_cv_func_shl_load=no
8232 fi
8233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8234 fi
8235 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8236 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8237 if test $ac_cv_func_shl_load = yes; then
8238   lt_cv_dlopen="shl_load"
8239 else
8240   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8241 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8242 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   ac_check_lib_save_LIBS=$LIBS
8246 LIBS="-ldld  $LIBS"
8247 cat >conftest.$ac_ext <<_ACEOF
8248 #line $LINENO "configure"
8249 /* confdefs.h.  */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h.  */
8254
8255 /* Override any gcc2 internal prototype to avoid an error.  */
8256 #ifdef __cplusplus
8257 extern "C"
8258 #endif
8259 /* We use char because int might match the return type of a gcc2
8260    builtin and then its argument prototype would still apply.  */
8261 char shl_load ();
8262 int
8263 main ()
8264 {
8265 shl_load ();
8266   ;
8267   return 0;
8268 }
8269 _ACEOF
8270 rm -f conftest.$ac_objext conftest$ac_exeext
8271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8272   (eval $ac_link) 2>&5
8273   ac_status=$?
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } &&
8276          { ac_try='test -s conftest$ac_exeext'
8277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278   (eval $ac_try) 2>&5
8279   ac_status=$?
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); }; }; then
8282   ac_cv_lib_dld_shl_load=yes
8283 else
8284   echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8286
8287 ac_cv_lib_dld_shl_load=no
8288 fi
8289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8290 LIBS=$ac_check_lib_save_LIBS
8291 fi
8292 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8293 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8294 if test $ac_cv_lib_dld_shl_load = yes; then
8295   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8296 else
8297   echo "$as_me:$LINENO: checking for dlopen" >&5
8298 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8299 if test "${ac_cv_func_dlopen+set}" = set; then
8300   echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302   cat >conftest.$ac_ext <<_ACEOF
8303 #line $LINENO "configure"
8304 /* confdefs.h.  */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h.  */
8309 /* System header to define __stub macros and hopefully few prototypes,
8310     which can conflict with char dlopen (); below.
8311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8312     <limits.h> exists even on freestanding compilers.  */
8313 #ifdef __STDC__
8314 # include <limits.h>
8315 #else
8316 # include <assert.h>
8317 #endif
8318 /* Override any gcc2 internal prototype to avoid an error.  */
8319 #ifdef __cplusplus
8320 extern "C"
8321 {
8322 #endif
8323 /* We use char because int might match the return type of a gcc2
8324    builtin and then its argument prototype would still apply.  */
8325 char dlopen ();
8326 /* The GNU C library defines this for functions which it implements
8327     to always fail with ENOSYS.  Some functions are actually named
8328     something starting with __ and the normal name is an alias.  */
8329 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8330 choke me
8331 #else
8332 char (*f) () = dlopen;
8333 #endif
8334 #ifdef __cplusplus
8335 }
8336 #endif
8337
8338 int
8339 main ()
8340 {
8341 return f != dlopen;
8342   ;
8343   return 0;
8344 }
8345 _ACEOF
8346 rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8348   (eval $ac_link) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -s conftest$ac_exeext'
8353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354   (eval $ac_try) 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); }; }; then
8358   ac_cv_func_dlopen=yes
8359 else
8360   echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8362
8363 ac_cv_func_dlopen=no
8364 fi
8365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8366 fi
8367 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8368 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8369 if test $ac_cv_func_dlopen = yes; then
8370   lt_cv_dlopen="dlopen"
8371 else
8372   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8373 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8374 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8375   echo $ECHO_N "(cached) $ECHO_C" >&6
8376 else
8377   ac_check_lib_save_LIBS=$LIBS
8378 LIBS="-ldl  $LIBS"
8379 cat >conftest.$ac_ext <<_ACEOF
8380 #line $LINENO "configure"
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8386
8387 /* Override any gcc2 internal prototype to avoid an error.  */
8388 #ifdef __cplusplus
8389 extern "C"
8390 #endif
8391 /* We use char because int might match the return type of a gcc2
8392    builtin and then its argument prototype would still apply.  */
8393 char dlopen ();
8394 int
8395 main ()
8396 {
8397 dlopen ();
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404   (eval $ac_link) 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); } &&
8408          { ac_try='test -s conftest$ac_exeext'
8409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410   (eval $ac_try) 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }; }; then
8414   ac_cv_lib_dl_dlopen=yes
8415 else
8416   echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8418
8419 ac_cv_lib_dl_dlopen=no
8420 fi
8421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8422 LIBS=$ac_check_lib_save_LIBS
8423 fi
8424 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8425 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8426 if test $ac_cv_lib_dl_dlopen = yes; then
8427   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8428 else
8429   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8430 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8431 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8432   echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434   ac_check_lib_save_LIBS=$LIBS
8435 LIBS="-lsvld  $LIBS"
8436 cat >conftest.$ac_ext <<_ACEOF
8437 #line $LINENO "configure"
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8443
8444 /* Override any gcc2 internal prototype to avoid an error.  */
8445 #ifdef __cplusplus
8446 extern "C"
8447 #endif
8448 /* We use char because int might match the return type of a gcc2
8449    builtin and then its argument prototype would still apply.  */
8450 char dlopen ();
8451 int
8452 main ()
8453 {
8454 dlopen ();
8455   ;
8456   return 0;
8457 }
8458 _ACEOF
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461   (eval $ac_link) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } &&
8465          { ac_try='test -s conftest$ac_exeext'
8466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467   (eval $ac_try) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; }; then
8471   ac_cv_lib_svld_dlopen=yes
8472 else
8473   echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 ac_cv_lib_svld_dlopen=no
8477 fi
8478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8479 LIBS=$ac_check_lib_save_LIBS
8480 fi
8481 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8482 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8483 if test $ac_cv_lib_svld_dlopen = yes; then
8484   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8485 else
8486   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8487 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8488 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8489   echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491   ac_check_lib_save_LIBS=$LIBS
8492 LIBS="-ldld  $LIBS"
8493 cat >conftest.$ac_ext <<_ACEOF
8494 #line $LINENO "configure"
8495 /* confdefs.h.  */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h.  */
8500
8501 /* Override any gcc2 internal prototype to avoid an error.  */
8502 #ifdef __cplusplus
8503 extern "C"
8504 #endif
8505 /* We use char because int might match the return type of a gcc2
8506    builtin and then its argument prototype would still apply.  */
8507 char dld_link ();
8508 int
8509 main ()
8510 {
8511 dld_link ();
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518   (eval $ac_link) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); } &&
8522          { ac_try='test -s conftest$ac_exeext'
8523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524   (eval $ac_try) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); }; }; then
8528   ac_cv_lib_dld_dld_link=yes
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533 ac_cv_lib_dld_dld_link=no
8534 fi
8535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8536 LIBS=$ac_check_lib_save_LIBS
8537 fi
8538 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8539 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8540 if test $ac_cv_lib_dld_dld_link = yes; then
8541   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8542 fi
8543
8544
8545 fi
8546
8547
8548 fi
8549
8550
8551 fi
8552
8553
8554 fi
8555
8556
8557 fi
8558
8559     ;;
8560   esac
8561
8562   if test "x$lt_cv_dlopen" != xno; then
8563     enable_dlopen=yes
8564   else
8565     enable_dlopen=no
8566   fi
8567
8568   case $lt_cv_dlopen in
8569   dlopen)
8570     save_CPPFLAGS="$CPPFLAGS"
8571     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8572
8573     save_LDFLAGS="$LDFLAGS"
8574     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8575
8576     save_LIBS="$LIBS"
8577     LIBS="$lt_cv_dlopen_libs $LIBS"
8578
8579     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8580 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8581 if test "${lt_cv_dlopen_self+set}" = set; then
8582   echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584           if test "$cross_compiling" = yes; then :
8585   lt_cv_dlopen_self=cross
8586 else
8587   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8588   lt_status=$lt_dlunknown
8589   cat > conftest.$ac_ext <<EOF
8590 #line 8590 "configure"
8591 #include "confdefs.h"
8592
8593 #if HAVE_DLFCN_H
8594 #include <dlfcn.h>
8595 #endif
8596
8597 #include <stdio.h>
8598
8599 #ifdef RTLD_GLOBAL
8600 #  define LT_DLGLOBAL           RTLD_GLOBAL
8601 #else
8602 #  ifdef DL_GLOBAL
8603 #    define LT_DLGLOBAL         DL_GLOBAL
8604 #  else
8605 #    define LT_DLGLOBAL         0
8606 #  endif
8607 #endif
8608
8609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8610    find out it does not work in some platform. */
8611 #ifndef LT_DLLAZY_OR_NOW
8612 #  ifdef RTLD_LAZY
8613 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8614 #  else
8615 #    ifdef DL_LAZY
8616 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8617 #    else
8618 #      ifdef RTLD_NOW
8619 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8620 #      else
8621 #        ifdef DL_NOW
8622 #          define LT_DLLAZY_OR_NOW      DL_NOW
8623 #        else
8624 #          define LT_DLLAZY_OR_NOW      0
8625 #        endif
8626 #      endif
8627 #    endif
8628 #  endif
8629 #endif
8630
8631 #ifdef __cplusplus
8632 extern "C" void exit (int);
8633 #endif
8634
8635 void fnord() { int i=42;}
8636 int main ()
8637 {
8638   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8639   int status = $lt_dlunknown;
8640
8641   if (self)
8642     {
8643       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8644       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8645       /* dlclose (self); */
8646     }
8647
8648     exit (status);
8649 }
8650 EOF
8651   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8652   (eval $ac_link) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8656     (./conftest; exit; ) 2>/dev/null
8657     lt_status=$?
8658     case x$lt_status in
8659       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8660       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8661       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8662     esac
8663   else :
8664     # compilation failed
8665     lt_cv_dlopen_self=no
8666   fi
8667 fi
8668 rm -fr conftest*
8669
8670
8671 fi
8672 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8673 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8674
8675     if test "x$lt_cv_dlopen_self" = xyes; then
8676       LDFLAGS="$LDFLAGS $link_static_flag"
8677       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8678 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8679 if test "${lt_cv_dlopen_self_static+set}" = set; then
8680   echo $ECHO_N "(cached) $ECHO_C" >&6
8681 else
8682           if test "$cross_compiling" = yes; then :
8683   lt_cv_dlopen_self_static=cross
8684 else
8685   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8686   lt_status=$lt_dlunknown
8687   cat > conftest.$ac_ext <<EOF
8688 #line 8688 "configure"
8689 #include "confdefs.h"
8690
8691 #if HAVE_DLFCN_H
8692 #include <dlfcn.h>
8693 #endif
8694
8695 #include <stdio.h>
8696
8697 #ifdef RTLD_GLOBAL
8698 #  define LT_DLGLOBAL           RTLD_GLOBAL
8699 #else
8700 #  ifdef DL_GLOBAL
8701 #    define LT_DLGLOBAL         DL_GLOBAL
8702 #  else
8703 #    define LT_DLGLOBAL         0
8704 #  endif
8705 #endif
8706
8707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8708    find out it does not work in some platform. */
8709 #ifndef LT_DLLAZY_OR_NOW
8710 #  ifdef RTLD_LAZY
8711 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8712 #  else
8713 #    ifdef DL_LAZY
8714 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8715 #    else
8716 #      ifdef RTLD_NOW
8717 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8718 #      else
8719 #        ifdef DL_NOW
8720 #          define LT_DLLAZY_OR_NOW      DL_NOW
8721 #        else
8722 #          define LT_DLLAZY_OR_NOW      0
8723 #        endif
8724 #      endif
8725 #    endif
8726 #  endif
8727 #endif
8728
8729 #ifdef __cplusplus
8730 extern "C" void exit (int);
8731 #endif
8732
8733 void fnord() { int i=42;}
8734 int main ()
8735 {
8736   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8737   int status = $lt_dlunknown;
8738
8739   if (self)
8740     {
8741       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8742       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8743       /* dlclose (self); */
8744     }
8745
8746     exit (status);
8747 }
8748 EOF
8749   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8750   (eval $ac_link) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8754     (./conftest; exit; ) 2>/dev/null
8755     lt_status=$?
8756     case x$lt_status in
8757       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8758       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8759       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8760     esac
8761   else :
8762     # compilation failed
8763     lt_cv_dlopen_self_static=no
8764   fi
8765 fi
8766 rm -fr conftest*
8767
8768
8769 fi
8770 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8771 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8772     fi
8773
8774     CPPFLAGS="$save_CPPFLAGS"
8775     LDFLAGS="$save_LDFLAGS"
8776     LIBS="$save_LIBS"
8777     ;;
8778   esac
8779
8780   case $lt_cv_dlopen_self in
8781   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8782   *) enable_dlopen_self=unknown ;;
8783   esac
8784
8785   case $lt_cv_dlopen_self_static in
8786   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8787   *) enable_dlopen_self_static=unknown ;;
8788   esac
8789 fi
8790
8791
8792 # Report which librarie types wil actually be built
8793 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8794 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8795 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8796 echo "${ECHO_T}$can_build_shared" >&6
8797
8798 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8799 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8800 test "$can_build_shared" = "no" && enable_shared=no
8801
8802 # On AIX, shared libraries and static libraries use the same namespace, and
8803 # are all built from PIC.
8804 case "$host_os" in
8805 aix3*)
8806   test "$enable_shared" = yes && enable_static=no
8807   if test -n "$RANLIB"; then
8808     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8809     postinstall_cmds='$RANLIB $lib'
8810   fi
8811   ;;
8812
8813 aix4*)
8814   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8815     test "$enable_shared" = yes && enable_static=no
8816   fi
8817   ;;
8818   darwin* | rhapsody*)
8819   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8820     archive_cmds_need_lc=no
8821     case "$host_os" in
8822     rhapsody* | darwin1.[012])
8823       allow_undefined_flag='-undefined suppress'
8824       ;;
8825     *) # Darwin 1.3 on
8826       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8827       ;;
8828     esac
8829     # FIXME: Relying on posixy $() will cause problems for
8830     #        cross-compilation, but unfortunately the echo tests do not
8831     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8832     #          `"' quotes if we put them in here... so don't!
8833                 output_verbose_link_cmd='echo'
8834     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8835     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8836     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8837                   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}'
8838                   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}'
8839     hardcode_direct=no
8840     hardcode_automatic=yes
8841     hardcode_shlibpath_var=unsupported
8842     whole_archive_flag_spec='-all_load $convenience'
8843     link_all_deplibs=yes
8844     fi
8845     ;;
8846 esac
8847 echo "$as_me:$LINENO: result: $enable_shared" >&5
8848 echo "${ECHO_T}$enable_shared" >&6
8849
8850 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8851 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8852 # Make sure either enable_shared or enable_static is yes.
8853 test "$enable_shared" = yes || enable_static=yes
8854 echo "$as_me:$LINENO: result: $enable_static" >&5
8855 echo "${ECHO_T}$enable_static" >&6
8856
8857 # The else clause should only fire when bootstrapping the
8858 # libtool distribution, otherwise you forgot to ship ltmain.sh
8859 # with your package, and you will get complaints that there are
8860 # no rules to generate ltmain.sh.
8861 if test -f "$ltmain"; then
8862   # See if we are running on zsh, and set the options which allow our commands through
8863   # without removal of \ escapes.
8864   if test -n "${ZSH_VERSION+set}" ; then
8865     setopt NO_GLOB_SUBST
8866   fi
8867   # Now quote all the things that may contain metacharacters while being
8868   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8869   # variables and quote the copies for generation of the libtool script.
8870   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8871     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8872     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8873     deplibs_check_method reload_flag reload_cmds need_locks \
8874     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8875     lt_cv_sys_global_symbol_to_c_name_address \
8876     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8877     old_postinstall_cmds old_postuninstall_cmds \
8878     compiler \
8879     CC \
8880     LD \
8881     lt_prog_compiler_wl \
8882     lt_prog_compiler_pic \
8883     lt_prog_compiler_static \
8884     lt_prog_compiler_no_builtin_flag \
8885     export_dynamic_flag_spec \
8886     thread_safe_flag_spec \
8887     whole_archive_flag_spec \
8888     enable_shared_with_static_runtimes \
8889     old_archive_cmds \
8890     old_archive_from_new_cmds \
8891     predep_objects \
8892     postdep_objects \
8893     predeps \
8894     postdeps \
8895     compiler_lib_search_path \
8896     archive_cmds \
8897     archive_expsym_cmds \
8898     postinstall_cmds \
8899     postuninstall_cmds \
8900     old_archive_from_expsyms_cmds \
8901     allow_undefined_flag \
8902     no_undefined_flag \
8903     export_symbols_cmds \
8904     hardcode_libdir_flag_spec \
8905     hardcode_libdir_flag_spec_ld \
8906     hardcode_libdir_separator \
8907     hardcode_automatic \
8908     module_cmds \
8909     module_expsym_cmds \
8910     lt_cv_prog_compiler_c_o \
8911     exclude_expsyms \
8912     include_expsyms; do
8913
8914     case $var in
8915     old_archive_cmds | \
8916     old_archive_from_new_cmds | \
8917     archive_cmds | \
8918     archive_expsym_cmds | \
8919     module_cmds | \
8920     module_expsym_cmds | \
8921     old_archive_from_expsyms_cmds | \
8922     export_symbols_cmds | \
8923     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8924     postinstall_cmds | postuninstall_cmds | \
8925     old_postinstall_cmds | old_postuninstall_cmds | \
8926     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8927       # Double-quote double-evaled strings.
8928       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8929       ;;
8930     *)
8931       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8932       ;;
8933     esac
8934   done
8935
8936   case $lt_echo in
8937   *'\$0 --fallback-echo"')
8938     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8939     ;;
8940   esac
8941
8942 cfgfile="${ofile}T"
8943   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8944   $rm -f "$cfgfile"
8945   { echo "$as_me:$LINENO: creating $ofile" >&5
8946 echo "$as_me: creating $ofile" >&6;}
8947
8948   cat <<__EOF__ >> "$cfgfile"
8949 #! $SHELL
8950
8951 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8952 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8953 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8954 #
8955 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8956 # Free Software Foundation, Inc.
8957 #
8958 # This file is part of GNU Libtool:
8959 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8960 #
8961 # This program is free software; you can redistribute it and/or modify
8962 # it under the terms of the GNU General Public License as published by
8963 # the Free Software Foundation; either version 2 of the License, or
8964 # (at your option) any later version.
8965 #
8966 # This program is distributed in the hope that it will be useful, but
8967 # WITHOUT ANY WARRANTY; without even the implied warranty of
8968 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8969 # General Public License for more details.
8970 #
8971 # You should have received a copy of the GNU General Public License
8972 # along with this program; if not, write to the Free Software
8973 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8974 #
8975 # As a special exception to the GNU General Public License, if you
8976 # distribute this file as part of a program that contains a
8977 # configuration script generated by Autoconf, you may include it under
8978 # the same distribution terms that you use for the rest of that program.
8979
8980 # A sed program that does not truncate output.
8981 SED=$lt_SED
8982
8983 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8984 Xsed="$SED -e s/^X//"
8985
8986 # The HP-UX ksh and POSIX shell print the target directory to stdout
8987 # if CDPATH is set.
8988 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8989
8990 # The names of the tagged configurations supported by this script.
8991 available_tags=
8992
8993 # ### BEGIN LIBTOOL CONFIG
8994
8995 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8996
8997 # Shell to use when invoking shell scripts.
8998 SHELL=$lt_SHELL
8999
9000 # Whether or not to build shared libraries.
9001 build_libtool_libs=$enable_shared
9002
9003 # Whether or not to build static libraries.
9004 build_old_libs=$enable_static
9005
9006 # Whether or not to add -lc for building shared libraries.
9007 build_libtool_need_lc=$archive_cmds_need_lc
9008
9009 # Whether or not to disallow shared libs when runtime libs are static
9010 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9011
9012 # Whether or not to optimize for fast installation.
9013 fast_install=$enable_fast_install
9014
9015 # The host system.
9016 host_alias=$host_alias
9017 host=$host
9018
9019 # An echo program that does not interpret backslashes.
9020 echo=$lt_echo
9021
9022 # The archiver.
9023 AR=$lt_AR
9024 AR_FLAGS=$lt_AR_FLAGS
9025
9026 # A C compiler.
9027 LTCC=$lt_LTCC
9028
9029 # A language-specific compiler.
9030 CC=$lt_compiler
9031
9032 # Is the compiler the GNU C compiler?
9033 with_gcc=$GCC
9034
9035 # An ERE matcher.
9036 EGREP=$lt_EGREP
9037
9038 # The linker used to build libraries.
9039 LD=$lt_LD
9040
9041 # Whether we need hard or soft links.
9042 LN_S=$lt_LN_S
9043
9044 # A BSD-compatible nm program.
9045 NM=$lt_NM
9046
9047 # A symbol stripping program
9048 STRIP=$STRIP
9049
9050 # Used to examine libraries when file_magic_cmd begins "file"
9051 MAGIC_CMD=$MAGIC_CMD
9052
9053 # Used on cygwin: DLL creation program.
9054 DLLTOOL="$DLLTOOL"
9055
9056 # Used on cygwin: object dumper.
9057 OBJDUMP="$OBJDUMP"
9058
9059 # Used on cygwin: assembler.
9060 AS="$AS"
9061
9062 # The name of the directory that contains temporary libtool files.
9063 objdir=$objdir
9064
9065 # How to create reloadable object files.
9066 reload_flag=$lt_reload_flag
9067 reload_cmds=$lt_reload_cmds
9068
9069 # How to pass a linker flag through the compiler.
9070 wl=$lt_lt_prog_compiler_wl
9071
9072 # Object file suffix (normally "o").
9073 objext="$ac_objext"
9074
9075 # Old archive suffix (normally "a").
9076 libext="$libext"
9077
9078 # Shared library suffix (normally ".so").
9079 shrext='$shrext'
9080
9081 # Executable file suffix (normally "").
9082 exeext="$exeext"
9083
9084 # Additional compiler flags for building library objects.
9085 pic_flag=$lt_lt_prog_compiler_pic
9086 pic_mode=$pic_mode
9087
9088 # What is the maximum length of a command?
9089 max_cmd_len=$lt_cv_sys_max_cmd_len
9090
9091 # Does compiler simultaneously support -c and -o options?
9092 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9093
9094 # Must we lock files when doing compilation ?
9095 need_locks=$lt_need_locks
9096
9097 # Do we need the lib prefix for modules?
9098 need_lib_prefix=$need_lib_prefix
9099
9100 # Do we need a version for libraries?
9101 need_version=$need_version
9102
9103 # Whether dlopen is supported.
9104 dlopen_support=$enable_dlopen
9105
9106 # Whether dlopen of programs is supported.
9107 dlopen_self=$enable_dlopen_self
9108
9109 # Whether dlopen of statically linked programs is supported.
9110 dlopen_self_static=$enable_dlopen_self_static
9111
9112 # Compiler flag to prevent dynamic linking.
9113 link_static_flag=$lt_lt_prog_compiler_static
9114
9115 # Compiler flag to turn off builtin functions.
9116 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9117
9118 # Compiler flag to allow reflexive dlopens.
9119 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9120
9121 # Compiler flag to generate shared objects directly from archives.
9122 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9123
9124 # Compiler flag to generate thread-safe objects.
9125 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9126
9127 # Library versioning type.
9128 version_type=$version_type
9129
9130 # Format of library name prefix.
9131 libname_spec=$lt_libname_spec
9132
9133 # List of archive names.  First name is the real one, the rest are links.
9134 # The last name is the one that the linker finds with -lNAME.
9135 library_names_spec=$lt_library_names_spec
9136
9137 # The coded name of the library, if different from the real name.
9138 soname_spec=$lt_soname_spec
9139
9140 # Commands used to build and install an old-style archive.
9141 RANLIB=$lt_RANLIB
9142 old_archive_cmds=$lt_old_archive_cmds
9143 old_postinstall_cmds=$lt_old_postinstall_cmds
9144 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9145
9146 # Create an old-style archive from a shared archive.
9147 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9148
9149 # Create a temporary old-style archive to link instead of a shared archive.
9150 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9151
9152 # Commands used to build and install a shared archive.
9153 archive_cmds=$lt_archive_cmds
9154 archive_expsym_cmds=$lt_archive_expsym_cmds
9155 postinstall_cmds=$lt_postinstall_cmds
9156 postuninstall_cmds=$lt_postuninstall_cmds
9157
9158 # Commands used to build a loadable module (assumed same as above if empty)
9159 module_cmds=$lt_module_cmds
9160 module_expsym_cmds=$lt_module_expsym_cmds
9161
9162 # Commands to strip libraries.
9163 old_striplib=$lt_old_striplib
9164 striplib=$lt_striplib
9165
9166 # Dependencies to place before the objects being linked to create a
9167 # shared library.
9168 predep_objects=$lt_predep_objects
9169
9170 # Dependencies to place after the objects being linked to create a
9171 # shared library.
9172 postdep_objects=$lt_postdep_objects
9173
9174 # Dependencies to place before the objects being linked to create a
9175 # shared library.
9176 predeps=$lt_predeps
9177
9178 # Dependencies to place after the objects being linked to create a
9179 # shared library.
9180 postdeps=$lt_postdeps
9181
9182 # The library search path used internally by the compiler when linking
9183 # a shared library.
9184 compiler_lib_search_path=$lt_compiler_lib_search_path
9185
9186 # Method to check whether dependent libraries are shared objects.
9187 deplibs_check_method=$lt_deplibs_check_method
9188
9189 # Command to use when deplibs_check_method == file_magic.
9190 file_magic_cmd=$lt_file_magic_cmd
9191
9192 # Flag that allows shared libraries with undefined symbols to be built.
9193 allow_undefined_flag=$lt_allow_undefined_flag
9194
9195 # Flag that forces no undefined symbols.
9196 no_undefined_flag=$lt_no_undefined_flag
9197
9198 # Commands used to finish a libtool library installation in a directory.
9199 finish_cmds=$lt_finish_cmds
9200
9201 # Same as above, but a single script fragment to be evaled but not shown.
9202 finish_eval=$lt_finish_eval
9203
9204 # Take the output of nm and produce a listing of raw symbols and C names.
9205 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9206
9207 # Transform the output of nm in a proper C declaration
9208 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9209
9210 # Transform the output of nm in a C name address pair
9211 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9212
9213 # This is the shared library runtime path variable.
9214 runpath_var=$runpath_var
9215
9216 # This is the shared library path variable.
9217 shlibpath_var=$shlibpath_var
9218
9219 # Is shlibpath searched before the hard-coded library search path?
9220 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9221
9222 # How to hardcode a shared library path into an executable.
9223 hardcode_action=$hardcode_action
9224
9225 # Whether we should hardcode library paths into libraries.
9226 hardcode_into_libs=$hardcode_into_libs
9227
9228 # Flag to hardcode \$libdir into a binary during linking.
9229 # This must work even if \$libdir does not exist.
9230 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9231
9232 # If ld is used when linking, flag to hardcode \$libdir into
9233 # a binary during linking. This must work even if \$libdir does
9234 # not exist.
9235 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9236
9237 # Whether we need a single -rpath flag with a separated argument.
9238 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9239
9240 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9241 # resulting binary.
9242 hardcode_direct=$hardcode_direct
9243
9244 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9245 # resulting binary.
9246 hardcode_minus_L=$hardcode_minus_L
9247
9248 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9249 # the resulting binary.
9250 hardcode_shlibpath_var=$hardcode_shlibpath_var
9251
9252 # Set to yes if building a shared library automatically hardcodes DIR into the library
9253 # and all subsequent libraries and executables linked against it.
9254 hardcode_automatic=$hardcode_automatic
9255
9256 # Variables whose values should be saved in libtool wrapper scripts and
9257 # restored at relink time.
9258 variables_saved_for_relink="$variables_saved_for_relink"
9259
9260 # Whether libtool must link a program against all its dependency libraries.
9261 link_all_deplibs=$link_all_deplibs
9262
9263 # Compile-time system search path for libraries
9264 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9265
9266 # Run-time system search path for libraries
9267 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9268
9269 # Fix the shell variable \$srcfile for the compiler.
9270 fix_srcfile_path="$fix_srcfile_path"
9271
9272 # Set to yes if exported symbols are required.
9273 always_export_symbols=$always_export_symbols
9274
9275 # The commands to list exported symbols.
9276 export_symbols_cmds=$lt_export_symbols_cmds
9277
9278 # The commands to extract the exported symbol list from a shared archive.
9279 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9280
9281 # Symbols that should not be listed in the preloaded symbols.
9282 exclude_expsyms=$lt_exclude_expsyms
9283
9284 # Symbols that must always be exported.
9285 include_expsyms=$lt_include_expsyms
9286
9287 # ### END LIBTOOL CONFIG
9288
9289 __EOF__
9290
9291
9292   case $host_os in
9293   aix3*)
9294     cat <<\EOF >> "$cfgfile"
9295
9296 # AIX sometimes has problems with the GCC collect2 program.  For some
9297 # reason, if we set the COLLECT_NAMES environment variable, the problems
9298 # vanish in a puff of smoke.
9299 if test "X${COLLECT_NAMES+set}" != Xset; then
9300   COLLECT_NAMES=
9301   export COLLECT_NAMES
9302 fi
9303 EOF
9304     ;;
9305   esac
9306
9307   # We use sed instead of cat because bash on DJGPP gets confused if
9308   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9309   # text mode, it properly converts lines to CR/LF.  This bash problem
9310   # is reportedly fixed, but why not run on old versions too?
9311   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9312
9313   mv -f "$cfgfile" "$ofile" || \
9314     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9315   chmod +x "$ofile"
9316
9317 else
9318   # If there is no Makefile yet, we rely on a make rule to execute
9319   # `config.status --recheck' to rerun these tests and create the
9320   # libtool script then.
9321   test -f Makefile && make "$ltmain"
9322 fi
9323
9324
9325 ac_ext=c
9326 ac_cpp='$CPP $CPPFLAGS'
9327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9330
9331 CC="$lt_save_CC"
9332
9333
9334 # Check whether --with-tags or --without-tags was given.
9335 if test "${with_tags+set}" = set; then
9336   withval="$with_tags"
9337   tagnames="$withval"
9338 fi;
9339
9340 if test -f "$ltmain" && test -n "$tagnames"; then
9341   if test ! -f "${ofile}"; then
9342     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9343 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9344   fi
9345
9346   if test -z "$LTCC"; then
9347     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9348     if test -z "$LTCC"; then
9349       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9350 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9351     else
9352       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9353 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9354     fi
9355   fi
9356
9357   # Extract list of available tagged configurations in $ofile.
9358   # Note that this assumes the entire list is on one line.
9359   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9360
9361   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9362   for tagname in $tagnames; do
9363     IFS="$lt_save_ifs"
9364     # Check whether tagname contains only valid characters
9365     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9366     "") ;;
9367     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9368 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9369    { (exit 1); exit 1; }; }
9370         ;;
9371     esac
9372
9373     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9374     then
9375       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9376 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9377    { (exit 1); exit 1; }; }
9378     fi
9379
9380     # Update the list of available tags.
9381     if test -n "$tagname"; then
9382       echo appending configuration tag \"$tagname\" to $ofile
9383
9384       case $tagname in
9385       CXX)
9386         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9387           ac_ext=cc
9388 ac_cpp='$CXXCPP $CPPFLAGS'
9389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9392
9393
9394
9395
9396 archive_cmds_need_lc_CXX=no
9397 allow_undefined_flag_CXX=
9398 always_export_symbols_CXX=no
9399 archive_expsym_cmds_CXX=
9400 export_dynamic_flag_spec_CXX=
9401 hardcode_direct_CXX=no
9402 hardcode_libdir_flag_spec_CXX=
9403 hardcode_libdir_flag_spec_ld_CXX=
9404 hardcode_libdir_separator_CXX=
9405 hardcode_minus_L_CXX=no
9406 hardcode_automatic_CXX=no
9407 module_cmds_CXX=
9408 module_expsym_cmds_CXX=
9409 link_all_deplibs_CXX=unknown
9410 old_archive_cmds_CXX=$old_archive_cmds
9411 no_undefined_flag_CXX=
9412 whole_archive_flag_spec_CXX=
9413 enable_shared_with_static_runtimes_CXX=no
9414
9415 # Dependencies to place before and after the object being linked:
9416 predep_objects_CXX=
9417 postdep_objects_CXX=
9418 predeps_CXX=
9419 postdeps_CXX=
9420 compiler_lib_search_path_CXX=
9421
9422 # Source file extension for C++ test sources.
9423 ac_ext=cc
9424
9425 # Object file extension for compiled C++ test sources.
9426 objext=o
9427 objext_CXX=$objext
9428
9429 # Code to be used in simple compile tests
9430 lt_simple_compile_test_code="int some_variable = 0;\n"
9431
9432 # Code to be used in simple link tests
9433 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9434
9435 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9436
9437 # If no C compiler was specified, use CC.
9438 LTCC=${LTCC-"$CC"}
9439
9440 # Allow CC to be a program name with arguments.
9441 compiler=$CC
9442
9443
9444 # Allow CC to be a program name with arguments.
9445 lt_save_CC=$CC
9446 lt_save_LD=$LD
9447 lt_save_GCC=$GCC
9448 GCC=$GXX
9449 lt_save_with_gnu_ld=$with_gnu_ld
9450 lt_save_path_LD=$lt_cv_path_LD
9451 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9452   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9453 else
9454   unset lt_cv_prog_gnu_ld
9455 fi
9456 if test -n "${lt_cv_path_LDCXX+set}"; then
9457   lt_cv_path_LD=$lt_cv_path_LDCXX
9458 else
9459   unset lt_cv_path_LD
9460 fi
9461 test -z "${LDCXX+set}" || LD=$LDCXX
9462 CC=${CXX-"c++"}
9463 compiler=$CC
9464 compiler_CXX=$CC
9465 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9466
9467 # We don't want -fno-exception wen compiling C++ code, so set the
9468 # no_builtin_flag separately
9469 if test "$GXX" = yes; then
9470   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9471 else
9472   lt_prog_compiler_no_builtin_flag_CXX=
9473 fi
9474
9475 if test "$GXX" = yes; then
9476   # Set up default GNU C++ configuration
9477
9478
9479 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9480 if test "${with_gnu_ld+set}" = set; then
9481   withval="$with_gnu_ld"
9482   test "$withval" = no || with_gnu_ld=yes
9483 else
9484   with_gnu_ld=no
9485 fi;
9486 ac_prog=ld
9487 if test "$GCC" = yes; then
9488   # Check if gcc -print-prog-name=ld gives a path.
9489   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9490 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9491   case $host in
9492   *-*-mingw*)
9493     # gcc leaves a trailing carriage return which upsets mingw
9494     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9495   *)
9496     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9497   esac
9498   case $ac_prog in
9499     # Accept absolute paths.
9500     [\\/]* | ?:[\\/]*)
9501       re_direlt='/[^/][^/]*/\.\./'
9502       # Canonicalize the path of ld
9503       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9504       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9505         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9506       done
9507       test -z "$LD" && LD="$ac_prog"
9508       ;;
9509   "")
9510     # If it fails, then pretend we aren't using GCC.
9511     ac_prog=ld
9512     ;;
9513   *)
9514     # If it is relative, then search for the first ld in PATH.
9515     with_gnu_ld=unknown
9516     ;;
9517   esac
9518 elif test "$with_gnu_ld" = yes; then
9519   echo "$as_me:$LINENO: checking for GNU ld" >&5
9520 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9521 else
9522   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9523 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9524 fi
9525 if test "${lt_cv_path_LD+set}" = set; then
9526   echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528   if test -z "$LD"; then
9529   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9530   for ac_dir in $PATH; do
9531     IFS="$lt_save_ifs"
9532     test -z "$ac_dir" && ac_dir=.
9533     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9534       lt_cv_path_LD="$ac_dir/$ac_prog"
9535       # Check to see if the program is GNU ld.  I'd rather use --version,
9536       # but apparently some GNU ld's only accept -v.
9537       # Break only if it was the GNU/non-GNU ld that we prefer.
9538       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9539       *GNU* | *'with BFD'*)
9540         test "$with_gnu_ld" != no && break
9541         ;;
9542       *)
9543         test "$with_gnu_ld" != yes && break
9544         ;;
9545       esac
9546     fi
9547   done
9548   IFS="$lt_save_ifs"
9549 else
9550   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9551 fi
9552 fi
9553
9554 LD="$lt_cv_path_LD"
9555 if test -n "$LD"; then
9556   echo "$as_me:$LINENO: result: $LD" >&5
9557 echo "${ECHO_T}$LD" >&6
9558 else
9559   echo "$as_me:$LINENO: result: no" >&5
9560 echo "${ECHO_T}no" >&6
9561 fi
9562 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9563 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9564    { (exit 1); exit 1; }; }
9565 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9566 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9567 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9568   echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9571 case `"$LD" -v 2>&1 </dev/null` in
9572 *GNU* | *'with BFD'*)
9573   lt_cv_prog_gnu_ld=yes
9574   ;;
9575 *)
9576   lt_cv_prog_gnu_ld=no
9577   ;;
9578 esac
9579 fi
9580 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9581 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9582 with_gnu_ld=$lt_cv_prog_gnu_ld
9583
9584
9585
9586   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9587   # archiving commands below assume that GNU ld is being used.
9588   if test "$with_gnu_ld" = yes; then
9589     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9590     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'
9591
9592     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9593     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9594
9595     # If archive_cmds runs LD, not CC, wlarc should be empty
9596     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9597     #     investigate it a little bit more. (MM)
9598     wlarc='${wl}'
9599
9600     # ancient GNU ld didn't support --whole-archive et. al.
9601     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9602         grep 'no-whole-archive' > /dev/null; then
9603       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9604     else
9605       whole_archive_flag_spec_CXX=
9606     fi
9607   else
9608     with_gnu_ld=no
9609     wlarc=
9610
9611     # A generic and very simple default shared library creation
9612     # command for GNU C++ for the case where it uses the native
9613     # linker, instead of GNU ld.  If possible, this setting should
9614     # overridden to take advantage of the native linker features on
9615     # the platform it is being used on.
9616     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9617   fi
9618
9619   # Commands to make compiler produce verbose output that lists
9620   # what "hidden" libraries, object files and flags are used when
9621   # linking a shared library.
9622   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9623
9624 else
9625   GXX=no
9626   with_gnu_ld=no
9627   wlarc=
9628 fi
9629
9630 # PORTME: fill in a description of your system's C++ link characteristics
9631 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9632 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9633 ld_shlibs_CXX=yes
9634 case $host_os in
9635   aix3*)
9636     # FIXME: insert proper C++ library support
9637     ld_shlibs_CXX=no
9638     ;;
9639   aix4* | aix5*)
9640     if test "$host_cpu" = ia64; then
9641       # On IA64, the linker does run time linking by default, so we don't
9642       # have to do anything special.
9643       aix_use_runtimelinking=no
9644       exp_sym_flag='-Bexport'
9645       no_entry_flag=""
9646     else
9647       aix_use_runtimelinking=no
9648
9649       # Test if we are trying to use run time linking or normal
9650       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9651       # need to do runtime linking.
9652       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9653         for ld_flag in $LDFLAGS; do
9654           case $ld_flag in
9655           *-brtl*)
9656             aix_use_runtimelinking=yes
9657             break
9658             ;;
9659           esac
9660         done
9661       esac
9662
9663       exp_sym_flag='-bexport'
9664       no_entry_flag='-bnoentry'
9665     fi
9666
9667     # When large executables or shared objects are built, AIX ld can
9668     # have problems creating the table of contents.  If linking a library
9669     # or program results in "error TOC overflow" add -mminimal-toc to
9670     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9671     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9672
9673     archive_cmds_CXX=''
9674     hardcode_direct_CXX=yes
9675     hardcode_libdir_separator_CXX=':'
9676     link_all_deplibs_CXX=yes
9677
9678     if test "$GXX" = yes; then
9679       case $host_os in aix4.012|aix4.012.*)
9680       # We only want to do this on AIX 4.2 and lower, the check
9681       # below for broken collect2 doesn't work under 4.3+
9682         collect2name=`${CC} -print-prog-name=collect2`
9683         if test -f "$collect2name" && \
9684            strings "$collect2name" | grep resolve_lib_name >/dev/null
9685         then
9686           # We have reworked collect2
9687           hardcode_direct_CXX=yes
9688         else
9689           # We have old collect2
9690           hardcode_direct_CXX=unsupported
9691           # It fails to find uninstalled libraries when the uninstalled
9692           # path is not listed in the libpath.  Setting hardcode_minus_L
9693           # to unsupported forces relinking
9694           hardcode_minus_L_CXX=yes
9695           hardcode_libdir_flag_spec_CXX='-L$libdir'
9696           hardcode_libdir_separator_CXX=
9697         fi
9698       esac
9699       shared_flag='-shared'
9700     else
9701       # not using gcc
9702       if test "$host_cpu" = ia64; then
9703         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9704         # chokes on -Wl,-G. The following line is correct:
9705         shared_flag='-G'
9706       else
9707         if test "$aix_use_runtimelinking" = yes; then
9708           shared_flag='${wl}-G'
9709         else
9710           shared_flag='${wl}-bM:SRE'
9711         fi
9712       fi
9713     fi
9714
9715     # It seems that -bexpall does not export symbols beginning with
9716     # underscore (_), so it is better to generate a list of symbols to export.
9717     always_export_symbols_CXX=yes
9718     if test "$aix_use_runtimelinking" = yes; then
9719       # Warning - without using the other runtime loading flags (-brtl),
9720       # -berok will link without error, but may produce a broken library.
9721       allow_undefined_flag_CXX='-berok'
9722       # Determine the default libpath from the value encoded in an empty executable.
9723       cat >conftest.$ac_ext <<_ACEOF
9724 #line $LINENO "configure"
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730
9731 int
9732 main ()
9733 {
9734
9735   ;
9736   return 0;
9737 }
9738 _ACEOF
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741   (eval $ac_link) 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); } &&
9745          { ac_try='test -s conftest$ac_exeext'
9746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747   (eval $ac_try) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; }; then
9751
9752 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9753 }'`
9754 # Check for a 64-bit object if we didn't find anything.
9755 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; }
9756 }'`; fi
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761 fi
9762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9764
9765       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9766
9767       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"
9768      else
9769       if test "$host_cpu" = ia64; then
9770         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9771         allow_undefined_flag_CXX="-z nodefs"
9772         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"
9773       else
9774         # Determine the default libpath from the value encoded in an empty executable.
9775         cat >conftest.$ac_ext <<_ACEOF
9776 #line $LINENO "configure"
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782
9783 int
9784 main ()
9785 {
9786
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9793   (eval $ac_link) 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); } &&
9797          { ac_try='test -s conftest$ac_exeext'
9798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799   (eval $ac_try) 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; }; then
9803
9804 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9805 }'`
9806 # Check for a 64-bit object if we didn't find anything.
9807 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9808 }'`; fi
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813 fi
9814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9816
9817         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9818         # Warning - without using the other run time loading flags,
9819         # -berok will link without error, but may produce a broken library.
9820         no_undefined_flag_CXX=' ${wl}-bernotok'
9821         allow_undefined_flag_CXX=' ${wl}-berok'
9822         # -bexpall does not export symbols beginning with underscore (_)
9823         always_export_symbols_CXX=yes
9824         # Exported symbols can be pulled into shared objects from archives
9825         whole_archive_flag_spec_CXX=' '
9826         archive_cmds_need_lc_CXX=yes
9827         # This is similar to how AIX traditionally builds it's shared libraries.
9828         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'
9829       fi
9830     fi
9831     ;;
9832   chorus*)
9833     case $cc_basename in
9834       *)
9835         # FIXME: insert proper C++ library support
9836         ld_shlibs_CXX=no
9837         ;;
9838     esac
9839     ;;
9840
9841   cygwin* | mingw* | pw32*)
9842     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9843     # as there is no search path for DLLs.
9844     hardcode_libdir_flag_spec_CXX='-L$libdir'
9845     allow_undefined_flag_CXX=unsupported
9846     always_export_symbols_CXX=no
9847     enable_shared_with_static_runtimes_CXX=yes
9848
9849     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9850       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'
9851       # If the export-symbols file already is a .def file (1st line
9852       # is EXPORTS), use it as is; otherwise, prepend...
9853       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9854         cp $export_symbols $output_objdir/$soname.def;
9855       else
9856         echo EXPORTS > $output_objdir/$soname.def;
9857         cat $export_symbols >> $output_objdir/$soname.def;
9858       fi~
9859       $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'
9860     else
9861       ld_shlibs_CXX=no
9862     fi
9863   ;;
9864
9865   darwin* | rhapsody*)
9866    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9867     archive_cmds_need_lc_CXX=no
9868     case "$host_os" in
9869     rhapsody* | darwin1.[012])
9870       allow_undefined_flag_CXX='-undefined suppress'
9871       ;;
9872     *) # Darwin 1.3 on
9873       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9874       ;;
9875     esac
9876         lt_int_apple_cc_single_mod=no
9877         output_verbose_link_cmd='echo'
9878         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9879           lt_int_apple_cc_single_mod=yes
9880         fi
9881         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9882           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9883         else
9884         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'
9885       fi
9886       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9887
9888     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9889       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9890         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}'
9891       else
9892         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}'
9893       fi
9894         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}'
9895     hardcode_direct_CXX=no
9896     hardcode_automatic_CXX=yes
9897     hardcode_shlibpath_var_CXX=unsupported
9898     whole_archive_flag_spec_CXX='-all_load $convenience'
9899     link_all_deplibs_CXX=yes
9900    fi
9901     ;;
9902
9903   dgux*)
9904     case $cc_basename in
9905       ec++)
9906         # FIXME: insert proper C++ library support
9907         ld_shlibs_CXX=no
9908         ;;
9909       ghcx)
9910         # Green Hills C++ Compiler
9911         # FIXME: insert proper C++ library support
9912         ld_shlibs_CXX=no
9913         ;;
9914       *)
9915         # FIXME: insert proper C++ library support
9916         ld_shlibs_CXX=no
9917         ;;
9918     esac
9919     ;;
9920   freebsd12*)
9921     # C++ shared libraries reported to be fairly broken before switch to ELF
9922     ld_shlibs_CXX=no
9923     ;;
9924   freebsd-elf*)
9925     archive_cmds_need_lc_CXX=no
9926     ;;
9927   freebsd*)
9928     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9929     # conventions
9930     ld_shlibs_CXX=yes
9931     ;;
9932   gnu*)
9933     ;;
9934   hpux9*)
9935     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9936     hardcode_libdir_separator_CXX=:
9937     export_dynamic_flag_spec_CXX='${wl}-E'
9938     hardcode_direct_CXX=yes
9939     hardcode_minus_L_CXX=yes # Not in the search PATH,
9940                                 # but as the default
9941                                 # location of the library.
9942
9943     case $cc_basename in
9944     CC)
9945       # FIXME: insert proper C++ library support
9946       ld_shlibs_CXX=no
9947       ;;
9948     aCC)
9949       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'
9950       # Commands to make compiler produce verbose output that lists
9951       # what "hidden" libraries, object files and flags are used when
9952       # linking a shared library.
9953       #
9954       # There doesn't appear to be a way to prevent this compiler from
9955       # explicitly linking system object files so we need to strip them
9956       # from the output so that they don't get included in the library
9957       # dependencies.
9958       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'
9959       ;;
9960     *)
9961       if test "$GXX" = yes; then
9962         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'
9963       else
9964         # FIXME: insert proper C++ library support
9965         ld_shlibs_CXX=no
9966       fi
9967       ;;
9968     esac
9969     ;;
9970   hpux10*|hpux11*)
9971     if test $with_gnu_ld = no; then
9972       case "$host_cpu" in
9973       hppa*64*)
9974         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9975         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9976         hardcode_libdir_separator_CXX=:
9977         ;;
9978       ia64*)
9979         hardcode_libdir_flag_spec_CXX='-L$libdir'
9980         ;;
9981       *)
9982         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9983         hardcode_libdir_separator_CXX=:
9984         export_dynamic_flag_spec_CXX='${wl}-E'
9985         ;;
9986       esac
9987     fi
9988     case "$host_cpu" in
9989     hppa*64*)
9990       hardcode_direct_CXX=no
9991       hardcode_shlibpath_var_CXX=no
9992       ;;
9993     ia64*)
9994       hardcode_direct_CXX=no
9995       hardcode_shlibpath_var_CXX=no
9996       hardcode_minus_L_CXX=yes # Not in the search PATH,
9997                                               # but as the default
9998                                               # location of the library.
9999       ;;
10000     *)
10001       hardcode_direct_CXX=yes
10002       hardcode_minus_L_CXX=yes # Not in the search PATH,
10003                                               # but as the default
10004                                               # location of the library.
10005       ;;
10006     esac
10007
10008     case $cc_basename in
10009       CC)
10010         # FIXME: insert proper C++ library support
10011         ld_shlibs_CXX=no
10012         ;;
10013       aCC)
10014         case "$host_cpu" in
10015         hppa*64*|ia64*)
10016           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10017           ;;
10018         *)
10019           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10020           ;;
10021         esac
10022         # Commands to make compiler produce verbose output that lists
10023         # what "hidden" libraries, object files and flags are used when
10024         # linking a shared library.
10025         #
10026         # There doesn't appear to be a way to prevent this compiler from
10027         # explicitly linking system object files so we need to strip them
10028         # from the output so that they don't get included in the library
10029         # dependencies.
10030         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'
10031         ;;
10032       *)
10033         if test "$GXX" = yes; then
10034           if test $with_gnu_ld = no; then
10035             case "$host_cpu" in
10036             ia64*|hppa*64*)
10037               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10038               ;;
10039             *)
10040               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'
10041               ;;
10042             esac
10043           fi
10044         else
10045           # FIXME: insert proper C++ library support
10046           ld_shlibs_CXX=no
10047         fi
10048         ;;
10049     esac
10050     ;;
10051   irix5* | irix6*)
10052     case $cc_basename in
10053       CC)
10054         # SGI C++
10055         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'
10056
10057         # Archives containing C++ object files must be created using
10058         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10059         # necessary to make sure instantiated templates are included
10060         # in the archive.
10061         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10062         ;;
10063       *)
10064         if test "$GXX" = yes; then
10065           if test "$with_gnu_ld" = no; then
10066             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'
10067           else
10068             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'
10069           fi
10070         fi
10071         link_all_deplibs_CXX=yes
10072         ;;
10073     esac
10074     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10075     hardcode_libdir_separator_CXX=:
10076     ;;
10077   linux*)
10078     case $cc_basename in
10079       KCC)
10080         # Kuck and Associates, Inc. (KAI) C++ Compiler
10081
10082         # KCC will only create a shared library if the output file
10083         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10084         # to its proper name (with version) after linking.
10085         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'
10086         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'
10087         # Commands to make compiler produce verbose output that lists
10088         # what "hidden" libraries, object files and flags are used when
10089         # linking a shared library.
10090         #
10091         # There doesn't appear to be a way to prevent this compiler from
10092         # explicitly linking system object files so we need to strip them
10093         # from the output so that they don't get included in the library
10094         # dependencies.
10095         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'
10096
10097         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10098         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10099
10100         # Archives containing C++ object files must be created using
10101         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10102         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10103         ;;
10104       icpc)
10105         # Intel C++
10106         with_gnu_ld=yes
10107         archive_cmds_need_lc_CXX=no
10108         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109         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'
10110         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10111         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10112         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10113         ;;
10114       cxx)
10115         # Compaq C++
10116         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10117         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'
10118
10119         runpath_var=LD_RUN_PATH
10120         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10121         hardcode_libdir_separator_CXX=:
10122
10123         # Commands to make compiler produce verbose output that lists
10124         # what "hidden" libraries, object files and flags are used when
10125         # linking a shared library.
10126         #
10127         # There doesn't appear to be a way to prevent this compiler from
10128         # explicitly linking system object files so we need to strip them
10129         # from the output so that they don't get included in the library
10130         # dependencies.
10131         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'
10132         ;;
10133     esac
10134     ;;
10135   lynxos*)
10136     # FIXME: insert proper C++ library support
10137     ld_shlibs_CXX=no
10138     ;;
10139   m88k*)
10140     # FIXME: insert proper C++ library support
10141     ld_shlibs_CXX=no
10142     ;;
10143   mvs*)
10144     case $cc_basename in
10145       cxx)
10146         # FIXME: insert proper C++ library support
10147         ld_shlibs_CXX=no
10148         ;;
10149       *)
10150         # FIXME: insert proper C++ library support
10151         ld_shlibs_CXX=no
10152         ;;
10153     esac
10154     ;;
10155   netbsd*)
10156     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10157       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10158       wlarc=
10159       hardcode_libdir_flag_spec_CXX='-R$libdir'
10160       hardcode_direct_CXX=yes
10161       hardcode_shlibpath_var_CXX=no
10162     fi
10163     # Workaround some broken pre-1.5 toolchains
10164     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10165     ;;
10166   osf3*)
10167     case $cc_basename in
10168       KCC)
10169         # Kuck and Associates, Inc. (KAI) C++ Compiler
10170
10171         # KCC will only create a shared library if the output file
10172         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10173         # to its proper name (with version) after linking.
10174         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'
10175
10176         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10177         hardcode_libdir_separator_CXX=:
10178
10179         # Archives containing C++ object files must be created using
10180         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10181         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10182
10183         ;;
10184       RCC)
10185         # Rational C++ 2.4.1
10186         # FIXME: insert proper C++ library support
10187         ld_shlibs_CXX=no
10188         ;;
10189       cxx)
10190         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10191         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'
10192
10193         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10194         hardcode_libdir_separator_CXX=:
10195
10196         # Commands to make compiler produce verbose output that lists
10197         # what "hidden" libraries, object files and flags are used when
10198         # linking a shared library.
10199         #
10200         # There doesn't appear to be a way to prevent this compiler from
10201         # explicitly linking system object files so we need to strip them
10202         # from the output so that they don't get included in the library
10203         # dependencies.
10204         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'
10205         ;;
10206       *)
10207         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10208           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10209           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'
10210
10211           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10212           hardcode_libdir_separator_CXX=:
10213
10214           # Commands to make compiler produce verbose output that lists
10215           # what "hidden" libraries, object files and flags are used when
10216           # linking a shared library.
10217           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10218
10219         else
10220           # FIXME: insert proper C++ library support
10221           ld_shlibs_CXX=no
10222         fi
10223         ;;
10224     esac
10225     ;;
10226   osf4* | osf5*)
10227     case $cc_basename in
10228       KCC)
10229         # Kuck and Associates, Inc. (KAI) C++ Compiler
10230
10231         # KCC will only create a shared library if the output file
10232         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10233         # to its proper name (with version) after linking.
10234         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'
10235
10236         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10237         hardcode_libdir_separator_CXX=:
10238
10239         # Archives containing C++ object files must be created using
10240         # the KAI C++ compiler.
10241         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10242         ;;
10243       RCC)
10244         # Rational C++ 2.4.1
10245         # FIXME: insert proper C++ library support
10246         ld_shlibs_CXX=no
10247         ;;
10248       cxx)
10249         allow_undefined_flag_CXX=' -expect_unresolved \*'
10250         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'
10251         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10252           echo "-hidden">> $lib.exp~
10253           $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~
10254           $rm $lib.exp'
10255
10256         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10257         hardcode_libdir_separator_CXX=:
10258
10259         # Commands to make compiler produce verbose output that lists
10260         # what "hidden" libraries, object files and flags are used when
10261         # linking a shared library.
10262         #
10263         # There doesn't appear to be a way to prevent this compiler from
10264         # explicitly linking system object files so we need to strip them
10265         # from the output so that they don't get included in the library
10266         # dependencies.
10267         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'
10268         ;;
10269       *)
10270         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10271           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10272          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'
10273
10274           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10275           hardcode_libdir_separator_CXX=:
10276
10277           # Commands to make compiler produce verbose output that lists
10278           # what "hidden" libraries, object files and flags are used when
10279           # linking a shared library.
10280           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10281
10282         else
10283           # FIXME: insert proper C++ library support
10284           ld_shlibs_CXX=no
10285         fi
10286         ;;
10287     esac
10288     ;;
10289   psos*)
10290     # FIXME: insert proper C++ library support
10291     ld_shlibs_CXX=no
10292     ;;
10293   sco*)
10294     archive_cmds_need_lc_CXX=no
10295     case $cc_basename in
10296       CC)
10297         # FIXME: insert proper C++ library support
10298         ld_shlibs_CXX=no
10299         ;;
10300       *)
10301         # FIXME: insert proper C++ library support
10302         ld_shlibs_CXX=no
10303         ;;
10304     esac
10305     ;;
10306   sunos4*)
10307     case $cc_basename in
10308       CC)
10309         # Sun C++ 4.x
10310         # FIXME: insert proper C++ library support
10311         ld_shlibs_CXX=no
10312         ;;
10313       lcc)
10314         # Lucid
10315         # FIXME: insert proper C++ library support
10316         ld_shlibs_CXX=no
10317         ;;
10318       *)
10319         # FIXME: insert proper C++ library support
10320         ld_shlibs_CXX=no
10321         ;;
10322     esac
10323     ;;
10324   solaris*)
10325     case $cc_basename in
10326       CC)
10327         # Sun C++ 4.2, 5.x and Centerline C++
10328         no_undefined_flag_CXX=' -zdefs'
10329         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10330         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10331         $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'
10332
10333         hardcode_libdir_flag_spec_CXX='-R$libdir'
10334         hardcode_shlibpath_var_CXX=no
10335         case $host_os in
10336           solaris2.0-5 | solaris2.0-5.*) ;;
10337           *)
10338             # The C++ compiler is used as linker so we must use $wl
10339             # flag to pass the commands to the underlying system
10340             # linker.
10341             # Supported since Solaris 2.6 (maybe 2.5.1?)
10342             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10343             ;;
10344         esac
10345         link_all_deplibs_CXX=yes
10346
10347         # Commands to make compiler produce verbose output that lists
10348         # what "hidden" libraries, object files and flags are used when
10349         # linking a shared library.
10350         #
10351         # There doesn't appear to be a way to prevent this compiler from
10352         # explicitly linking system object files so we need to strip them
10353         # from the output so that they don't get included in the library
10354         # dependencies.
10355         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'
10356
10357         # Archives containing C++ object files must be created using
10358         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10359         # necessary to make sure instantiated templates are included
10360         # in the archive.
10361         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10362         ;;
10363       gcx)
10364         # Green Hills C++ Compiler
10365         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10366
10367         # The C++ compiler must be used to create the archive.
10368         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10369         ;;
10370       *)
10371         # GNU C++ compiler with Solaris linker
10372         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10373           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10374           if $CC --version | grep -v '^2\.7' > /dev/null; then
10375             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10376             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10377                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
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             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10383           else
10384             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10385             # platform.
10386             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10387             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10388                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10389
10390             # Commands to make compiler produce verbose output that lists
10391             # what "hidden" libraries, object files and flags are used when
10392             # linking a shared library.
10393             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10394           fi
10395
10396           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10397         fi
10398         ;;
10399     esac
10400     ;;
10401   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10402     archive_cmds_need_lc_CXX=no
10403     ;;
10404   tandem*)
10405     case $cc_basename in
10406       NCC)
10407         # NonStop-UX NCC 3.20
10408         # FIXME: insert proper C++ library support
10409         ld_shlibs_CXX=no
10410         ;;
10411       *)
10412         # FIXME: insert proper C++ library support
10413         ld_shlibs_CXX=no
10414         ;;
10415     esac
10416     ;;
10417   vxworks*)
10418     # FIXME: insert proper C++ library support
10419     ld_shlibs_CXX=no
10420     ;;
10421   *)
10422     # FIXME: insert proper C++ library support
10423     ld_shlibs_CXX=no
10424     ;;
10425 esac
10426 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10427 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10428 test "$ld_shlibs_CXX" = no && can_build_shared=no
10429
10430 GCC_CXX="$GXX"
10431 LD_CXX="$LD"
10432
10433 ## CAVEAT EMPTOR:
10434 ## There is no encapsulation within the following macros, do not change
10435 ## the running order or otherwise move them around unless you know exactly
10436 ## what you are doing...
10437
10438 cat > conftest.$ac_ext <<EOF
10439 class Foo
10440 {
10441 public:
10442   Foo (void) { a = 0; }
10443 private:
10444   int a;
10445 };
10446 EOF
10447
10448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449   (eval $ac_compile) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; then
10453   # Parse the compiler output and extract the necessary
10454   # objects, libraries and library flags.
10455
10456   # Sentinel used to keep track of whether or not we are before
10457   # the conftest object file.
10458   pre_test_object_deps_done=no
10459
10460   # The `*' in the case matches for architectures that use `case' in
10461   # $output_verbose_cmd can trigger glob expansion during the loop
10462   # eval without this substitution.
10463   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10464
10465   for p in `eval $output_verbose_link_cmd`; do
10466     case $p in
10467
10468     -L* | -R* | -l*)
10469        # Some compilers place space between "-{L,R}" and the path.
10470        # Remove the space.
10471        if test $p = "-L" \
10472           || test $p = "-R"; then
10473          prev=$p
10474          continue
10475        else
10476          prev=
10477        fi
10478
10479        if test "$pre_test_object_deps_done" = no; then
10480          case $p in
10481          -L* | -R*)
10482            # Internal compiler library paths should come after those
10483            # provided the user.  The postdeps already come after the
10484            # user supplied libs so there is no need to process them.
10485            if test -z "$compiler_lib_search_path_CXX"; then
10486              compiler_lib_search_path_CXX="${prev}${p}"
10487            else
10488              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10489            fi
10490            ;;
10491          # The "-l" case would never come before the object being
10492          # linked, so don't bother handling this case.
10493          esac
10494        else
10495          if test -z "$postdeps_CXX"; then
10496            postdeps_CXX="${prev}${p}"
10497          else
10498            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10499          fi
10500        fi
10501        ;;
10502
10503     *.$objext)
10504        # This assumes that the test object file only shows up
10505        # once in the compiler output.
10506        if test "$p" = "conftest.$objext"; then
10507          pre_test_object_deps_done=yes
10508          continue
10509        fi
10510
10511        if test "$pre_test_object_deps_done" = no; then
10512          if test -z "$predep_objects_CXX"; then
10513            predep_objects_CXX="$p"
10514          else
10515            predep_objects_CXX="$predep_objects_CXX $p"
10516          fi
10517        else
10518          if test -z "$postdep_objects_CXX"; then
10519            postdep_objects_CXX="$p"
10520          else
10521            postdep_objects_CXX="$postdep_objects_CXX $p"
10522          fi
10523        fi
10524        ;;
10525
10526     *) ;; # Ignore the rest.
10527
10528     esac
10529   done
10530
10531   # Clean up.
10532   rm -f a.out a.exe
10533 else
10534   echo "libtool.m4: error: problem compiling CXX test program"
10535 fi
10536
10537 $rm -f confest.$objext
10538
10539 case " $postdeps_CXX " in
10540 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10541 esac
10542
10543 lt_prog_compiler_wl_CXX=
10544 lt_prog_compiler_pic_CXX=
10545 lt_prog_compiler_static_CXX=
10546
10547 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10548 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10549
10550   # C++ specific cases for pic, static, wl, etc.
10551   if test "$GXX" = yes; then
10552     lt_prog_compiler_wl_CXX='-Wl,'
10553     lt_prog_compiler_static_CXX='-static'
10554
10555     case $host_os in
10556     aix*)
10557       # All AIX code is PIC.
10558       if test "$host_cpu" = ia64; then
10559         # AIX 5 now supports IA64 processor
10560         lt_prog_compiler_static_CXX='-Bstatic'
10561       fi
10562       ;;
10563     amigaos*)
10564       # FIXME: we need at least 68020 code to build shared libraries, but
10565       # adding the `-m68020' flag to GCC prevents building anything better,
10566       # like `-m68040'.
10567       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10568       ;;
10569     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10570       # PIC is the default for these OSes.
10571       ;;
10572     mingw* | os2* | pw32*)
10573       # This hack is so that the source file can tell whether it is being
10574       # built for inclusion in a dll (and should export symbols for example).
10575       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10576       ;;
10577     darwin* | rhapsody*)
10578       # PIC is the default on this platform
10579       # Common symbols not allowed in MH_DYLIB files
10580       lt_prog_compiler_pic_CXX='-fno-common'
10581       ;;
10582     *djgpp*)
10583       # DJGPP does not support shared libraries at all
10584       lt_prog_compiler_pic_CXX=
10585       ;;
10586     sysv4*MP*)
10587       if test -d /usr/nec; then
10588         lt_prog_compiler_pic_CXX=-Kconform_pic
10589       fi
10590       ;;
10591     hpux*)
10592       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10593       # not for PA HP-UX.
10594       case "$host_cpu" in
10595       hppa*64*|ia64*)
10596         ;;
10597       *)
10598         lt_prog_compiler_pic_CXX='-fPIC'
10599         ;;
10600       esac
10601       ;;
10602     *)
10603       lt_prog_compiler_pic_CXX='-fPIC'
10604       ;;
10605     esac
10606   else
10607     case $host_os in
10608       aix4* | aix5*)
10609         # All AIX code is PIC.
10610         if test "$host_cpu" = ia64; then
10611           # AIX 5 now supports IA64 processor
10612           lt_prog_compiler_static_CXX='-Bstatic'
10613         else
10614           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10615         fi
10616         ;;
10617       chorus*)
10618         case $cc_basename in
10619         cxch68)
10620           # Green Hills C++ Compiler
10621           # _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"
10622           ;;
10623         esac
10624         ;;
10625       dgux*)
10626         case $cc_basename in
10627           ec++)
10628             lt_prog_compiler_pic_CXX='-KPIC'
10629             ;;
10630           ghcx)
10631             # Green Hills C++ Compiler
10632             lt_prog_compiler_pic_CXX='-pic'
10633             ;;
10634           *)
10635             ;;
10636         esac
10637         ;;
10638       freebsd*)
10639         # FreeBSD uses GNU C++
10640         ;;
10641       hpux9* | hpux10* | hpux11*)
10642         case $cc_basename in
10643           CC)
10644             lt_prog_compiler_wl_CXX='-Wl,'
10645             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10646             if test "$host_cpu" != ia64; then
10647               lt_prog_compiler_pic_CXX='+Z'
10648             fi
10649             ;;
10650           aCC)
10651             lt_prog_compiler_wl_CXX='-Wl,'
10652             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10653             case "$host_cpu" in
10654             hppa*64*|ia64*)
10655               # +Z the default
10656               ;;
10657             *)
10658               lt_prog_compiler_pic_CXX='+Z'
10659               ;;
10660             esac
10661             ;;
10662           *)
10663             ;;
10664         esac
10665         ;;
10666       irix5* | irix6* | nonstopux*)
10667         case $cc_basename in
10668           CC)
10669             lt_prog_compiler_wl_CXX='-Wl,'
10670             lt_prog_compiler_static_CXX='-non_shared'
10671             # CC pic flag -KPIC is the default.
10672             ;;
10673           *)
10674             ;;
10675         esac
10676         ;;
10677       linux*)
10678         case $cc_basename in
10679           KCC)
10680             # KAI C++ Compiler
10681             lt_prog_compiler_wl_CXX='--backend -Wl,'
10682             lt_prog_compiler_pic_CXX='-fPIC'
10683             ;;
10684           icpc)
10685             # Intel C++
10686             lt_prog_compiler_wl_CXX='-Wl,'
10687             lt_prog_compiler_pic_CXX='-KPIC'
10688             lt_prog_compiler_static_CXX='-static'
10689             ;;
10690           cxx)
10691             # Compaq C++
10692             # Make sure the PIC flag is empty.  It appears that all Alpha
10693             # Linux and Compaq Tru64 Unix objects are PIC.
10694             lt_prog_compiler_pic_CXX=
10695             lt_prog_compiler_static_CXX='-non_shared'
10696             ;;
10697           *)
10698             ;;
10699         esac
10700         ;;
10701       lynxos*)
10702         ;;
10703       m88k*)
10704         ;;
10705       mvs*)
10706         case $cc_basename in
10707           cxx)
10708             lt_prog_compiler_pic_CXX='-W c,exportall'
10709             ;;
10710           *)
10711             ;;
10712         esac
10713         ;;
10714       netbsd*)
10715         ;;
10716       osf3* | osf4* | osf5*)
10717         case $cc_basename in
10718           KCC)
10719             lt_prog_compiler_wl_CXX='--backend -Wl,'
10720             ;;
10721           RCC)
10722             # Rational C++ 2.4.1
10723             lt_prog_compiler_pic_CXX='-pic'
10724             ;;
10725           cxx)
10726             # Digital/Compaq C++
10727             lt_prog_compiler_wl_CXX='-Wl,'
10728             # Make sure the PIC flag is empty.  It appears that all Alpha
10729             # Linux and Compaq Tru64 Unix objects are PIC.
10730             lt_prog_compiler_pic_CXX=
10731             lt_prog_compiler_static_CXX='-non_shared'
10732             ;;
10733           *)
10734             ;;
10735         esac
10736         ;;
10737       psos*)
10738         ;;
10739       sco*)
10740         case $cc_basename in
10741           CC)
10742             lt_prog_compiler_pic_CXX='-fPIC'
10743             ;;
10744           *)
10745             ;;
10746         esac
10747         ;;
10748       solaris*)
10749         case $cc_basename in
10750           CC)
10751             # Sun C++ 4.2, 5.x and Centerline C++
10752             lt_prog_compiler_pic_CXX='-KPIC'
10753             lt_prog_compiler_static_CXX='-Bstatic'
10754             lt_prog_compiler_wl_CXX='-Qoption ld '
10755             ;;
10756           gcx)
10757             # Green Hills C++ Compiler
10758             lt_prog_compiler_pic_CXX='-PIC'
10759             ;;
10760           *)
10761             ;;
10762         esac
10763         ;;
10764       sunos4*)
10765         case $cc_basename in
10766           CC)
10767             # Sun C++ 4.x
10768             lt_prog_compiler_pic_CXX='-pic'
10769             lt_prog_compiler_static_CXX='-Bstatic'
10770             ;;
10771           lcc)
10772             # Lucid
10773             lt_prog_compiler_pic_CXX='-pic'
10774             ;;
10775           *)
10776             ;;
10777         esac
10778         ;;
10779       tandem*)
10780         case $cc_basename in
10781           NCC)
10782             # NonStop-UX NCC 3.20
10783             lt_prog_compiler_pic_CXX='-KPIC'
10784             ;;
10785           *)
10786             ;;
10787         esac
10788         ;;
10789       unixware*)
10790         ;;
10791       vxworks*)
10792         ;;
10793       *)
10794         lt_prog_compiler_can_build_shared_CXX=no
10795         ;;
10796     esac
10797   fi
10798
10799 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10800 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10801
10802 #
10803 # Check to make sure the PIC flag actually works.
10804 #
10805 if test -n "$lt_prog_compiler_pic_CXX"; then
10806   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10807 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10808 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   lt_prog_compiler_pic_works_CXX=no
10812   ac_outfile=conftest.$ac_objext
10813    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10814    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10815    # Insert the option either (1) after the last *FLAGS variable, or
10816    # (2) before a word containing "conftest.", or (3) at the end.
10817    # Note that $ac_compile itself does not contain backslashes and begins
10818    # with a dollar sign (not a hyphen), so the echo should work correctly.
10819    # The option is referenced via a variable to avoid confusing sed.
10820    lt_compile=`echo "$ac_compile" | $SED \
10821    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10823    -e 's:$: $lt_compiler_flag:'`
10824    (eval echo "\"\$as_me:10824: $lt_compile\"" >&5)
10825    (eval "$lt_compile" 2>conftest.err)
10826    ac_status=$?
10827    cat conftest.err >&5
10828    echo "$as_me:10828: \$? = $ac_status" >&5
10829    if (exit $ac_status) && test -s "$ac_outfile"; then
10830      # The compiler can only warn and ignore the option if not recognized
10831      # So say no if there are warnings
10832      if test ! -s conftest.err; then
10833        lt_prog_compiler_pic_works_CXX=yes
10834      fi
10835    fi
10836    $rm conftest*
10837
10838 fi
10839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10840 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10841
10842 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10843     case $lt_prog_compiler_pic_CXX in
10844      "" | " "*) ;;
10845      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10846      esac
10847 else
10848     lt_prog_compiler_pic_CXX=
10849      lt_prog_compiler_can_build_shared_CXX=no
10850 fi
10851
10852 fi
10853 case "$host_os" in
10854   # For platforms which do not support PIC, -DPIC is meaningless:
10855   *djgpp*)
10856     lt_prog_compiler_pic_CXX=
10857     ;;
10858   *)
10859     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10860     ;;
10861 esac
10862
10863 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10865 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10866   echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868   lt_cv_prog_compiler_c_o_CXX=no
10869    $rm -r conftest 2>/dev/null
10870    mkdir conftest
10871    cd conftest
10872    mkdir out
10873    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10874
10875    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10876    # that will create temporary files in the current directory regardless of
10877    # the output directory.  Thus, making CWD read-only will cause this test
10878    # to fail, enabling locking or at least warning the user not to do parallel
10879    # builds.
10880    chmod -w .
10881
10882    lt_compiler_flag="-o out/conftest2.$ac_objext"
10883    # Insert the option either (1) after the last *FLAGS variable, or
10884    # (2) before a word containing "conftest.", or (3) at the end.
10885    # Note that $ac_compile itself does not contain backslashes and begins
10886    # with a dollar sign (not a hyphen), so the echo should work correctly.
10887    lt_compile=`echo "$ac_compile" | $SED \
10888    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10890    -e 's:$: $lt_compiler_flag:'`
10891    (eval echo "\"\$as_me:10891: $lt_compile\"" >&5)
10892    (eval "$lt_compile" 2>out/conftest.err)
10893    ac_status=$?
10894    cat out/conftest.err >&5
10895    echo "$as_me:10895: \$? = $ac_status" >&5
10896    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10897    then
10898      # The compiler can only warn and ignore the option if not recognized
10899      # So say no if there are warnings
10900      if test ! -s out/conftest.err; then
10901        lt_cv_prog_compiler_c_o_CXX=yes
10902      fi
10903    fi
10904    chmod u+w .
10905    $rm conftest* out/*
10906    rmdir out
10907    cd ..
10908    rmdir conftest
10909    $rm conftest*
10910
10911 fi
10912 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10913 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10914
10915
10916 hard_links="nottested"
10917 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10918   # do not overwrite the value of need_locks provided by the user
10919   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10920 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10921   hard_links=yes
10922   $rm conftest*
10923   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10924   touch conftest.a
10925   ln conftest.a conftest.b 2>&5 || hard_links=no
10926   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10927   echo "$as_me:$LINENO: result: $hard_links" >&5
10928 echo "${ECHO_T}$hard_links" >&6
10929   if test "$hard_links" = no; then
10930     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10931 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10932     need_locks=warn
10933   fi
10934 else
10935   need_locks=no
10936 fi
10937
10938 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10940
10941   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10942   case $host_os in
10943   aix4* | aix5*)
10944     # If we're using GNU nm, then we don't want the "-C" option.
10945     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10946     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10947       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'
10948     else
10949       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'
10950     fi
10951     ;;
10952   pw32*)
10953     export_symbols_cmds_CXX="$ltdll_cmds"
10954   ;;
10955   cygwin* | mingw*)
10956     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10957   ;;
10958   *)
10959     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10960   ;;
10961   esac
10962
10963 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10964 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10965 test "$ld_shlibs_CXX" = no && can_build_shared=no
10966
10967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10968 if test "$GCC" = yes; then
10969   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10970 fi
10971
10972 #
10973 # Do we need to explicitly link libc?
10974 #
10975 case "x$archive_cmds_need_lc_CXX" in
10976 x|xyes)
10977   # Assume -lc should be added
10978   archive_cmds_need_lc_CXX=yes
10979
10980   if test "$enable_shared" = yes && test "$GCC" = yes; then
10981     case $archive_cmds_CXX in
10982     *'~'*)
10983       # FIXME: we may have to deal with multi-command sequences.
10984       ;;
10985     '$CC '*)
10986       # Test whether the compiler implicitly links with -lc since on some
10987       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10988       # to ld, don't add -lc before -lgcc.
10989       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10991       $rm conftest*
10992       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10993
10994       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10995   (eval $ac_compile) 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } 2>conftest.err; then
10999         soname=conftest
11000         lib=conftest
11001         libobjs=conftest.$ac_objext
11002         deplibs=
11003         wl=$lt_prog_compiler_wl_CXX
11004         compiler_flags=-v
11005         linker_flags=-v
11006         verstring=
11007         output_objdir=.
11008         libname=conftest
11009         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11010         allow_undefined_flag_CXX=
11011         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11012   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11013   ac_status=$?
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); }
11016         then
11017           archive_cmds_need_lc_CXX=no
11018         else
11019           archive_cmds_need_lc_CXX=yes
11020         fi
11021         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11022       else
11023         cat conftest.err 1>&5
11024       fi
11025       $rm conftest*
11026       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11027 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11028       ;;
11029     esac
11030   fi
11031   ;;
11032 esac
11033
11034 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11035 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11036 hardcode_action_CXX=
11037 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11038    test -n "$runpath_var CXX" || \
11039    test "X$hardcode_automatic_CXX"="Xyes" ; then
11040
11041   # We can hardcode non-existant directories.
11042   if test "$hardcode_direct_CXX" != no &&
11043      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11044      # have to relink, otherwise we might link with an installed library
11045      # when we should be linking with a yet-to-be-installed one
11046      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11047      test "$hardcode_minus_L_CXX" != no; then
11048     # Linking always hardcodes the temporary library directory.
11049     hardcode_action_CXX=relink
11050   else
11051     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11052     hardcode_action_CXX=immediate
11053   fi
11054 else
11055   # We cannot hardcode anything, or else we can only hardcode existing
11056   # directories.
11057   hardcode_action_CXX=unsupported
11058 fi
11059 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11060 echo "${ECHO_T}$hardcode_action_CXX" >&6
11061
11062 if test "$hardcode_action_CXX" = relink; then
11063   # Fast installation is not supported
11064   enable_fast_install=no
11065 elif test "$shlibpath_overrides_runpath" = yes ||
11066      test "$enable_shared" = no; then
11067   # Fast installation is not necessary
11068   enable_fast_install=needless
11069 fi
11070
11071 striplib=
11072 old_striplib=
11073 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11074 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11075 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11076   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11077   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11078   echo "$as_me:$LINENO: result: yes" >&5
11079 echo "${ECHO_T}yes" >&6
11080 else
11081 # FIXME - insert some real tests, host_os isn't really good enough
11082   case $host_os in
11083    darwin*)
11084        if test -n "$STRIP" ; then
11085          striplib="$STRIP -x"
11086          echo "$as_me:$LINENO: result: yes" >&5
11087 echo "${ECHO_T}yes" >&6
11088        else
11089   echo "$as_me:$LINENO: result: no" >&5
11090 echo "${ECHO_T}no" >&6
11091 fi
11092        ;;
11093    *)
11094   echo "$as_me:$LINENO: result: no" >&5
11095 echo "${ECHO_T}no" >&6
11096     ;;
11097   esac
11098 fi
11099
11100 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11101 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11102 library_names_spec=
11103 libname_spec='lib$name'
11104 soname_spec=
11105 shrext=".so"
11106 postinstall_cmds=
11107 postuninstall_cmds=
11108 finish_cmds=
11109 finish_eval=
11110 shlibpath_var=
11111 shlibpath_overrides_runpath=unknown
11112 version_type=none
11113 dynamic_linker="$host_os ld.so"
11114 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11115 if test "$GCC" = yes; then
11116   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11117   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11118     # if the path contains ";" then we assume it to be the separator
11119     # otherwise default to the standard path separator (i.e. ":") - it is
11120     # assumed that no part of a normal pathname contains ";" but that should
11121     # okay in the real world where ";" in dirpaths is itself problematic.
11122     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11123   else
11124     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11125   fi
11126 else
11127   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11128 fi
11129 need_lib_prefix=unknown
11130 hardcode_into_libs=no
11131
11132 # when you set need_version to no, make sure it does not cause -set_version
11133 # flags to be left without arguments
11134 need_version=unknown
11135
11136 case $host_os in
11137 aix3*)
11138   version_type=linux
11139   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11140   shlibpath_var=LIBPATH
11141
11142   # AIX 3 has no versioning support, so we append a major version to the name.
11143   soname_spec='${libname}${release}${shared_ext}$major'
11144   ;;
11145
11146 aix4* | aix5*)
11147   version_type=linux
11148   need_lib_prefix=no
11149   need_version=no
11150   hardcode_into_libs=yes
11151   if test "$host_cpu" = ia64; then
11152     # AIX 5 supports IA64
11153     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11154     shlibpath_var=LD_LIBRARY_PATH
11155   else
11156     # With GCC up to 2.95.x, collect2 would create an import file
11157     # for dependence libraries.  The import file would start with
11158     # the line `#! .'.  This would cause the generated library to
11159     # depend on `.', always an invalid library.  This was fixed in
11160     # development snapshots of GCC prior to 3.0.
11161     case $host_os in
11162       aix4 | aix4.[01] | aix4.[01].*)
11163       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11164            echo ' yes '
11165            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11166         :
11167       else
11168         can_build_shared=no
11169       fi
11170       ;;
11171     esac
11172     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11173     # soname into executable. Probably we can add versioning support to
11174     # collect2, so additional links can be useful in future.
11175     if test "$aix_use_runtimelinking" = yes; then
11176       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11177       # instead of lib<name>.a to let people know that these are not
11178       # typical AIX shared libraries.
11179       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180     else
11181       # We preserve .a as extension for shared libraries through AIX4.2
11182       # and later when we are not doing run time linking.
11183       library_names_spec='${libname}${release}.a $libname.a'
11184       soname_spec='${libname}${release}${shared_ext}$major'
11185     fi
11186     shlibpath_var=LIBPATH
11187   fi
11188   ;;
11189
11190 amigaos*)
11191   library_names_spec='$libname.ixlibrary $libname.a'
11192   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11193   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'
11194   ;;
11195
11196 beos*)
11197   library_names_spec='${libname}${shared_ext}'
11198   dynamic_linker="$host_os ld.so"
11199   shlibpath_var=LIBRARY_PATH
11200   ;;
11201
11202 bsdi4*)
11203   version_type=linux
11204   need_version=no
11205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206   soname_spec='${libname}${release}${shared_ext}$major'
11207   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11208   shlibpath_var=LD_LIBRARY_PATH
11209   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11210   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11211   # the default ld.so.conf also contains /usr/contrib/lib and
11212   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11213   # libtool to hard-code these into programs
11214   ;;
11215
11216 cygwin* | mingw* | pw32*)
11217   version_type=windows
11218   shrext=".dll"
11219   need_version=no
11220   need_lib_prefix=no
11221
11222   case $GCC,$host_os in
11223   yes,cygwin* | yes,mingw* | yes,pw32*)
11224     library_names_spec='$libname.dll.a'
11225     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11226     postinstall_cmds='base_file=`basename \${file}`~
11227       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11228       dldir=$destdir/`dirname \$dlpath`~
11229       test -d \$dldir || mkdir -p \$dldir~
11230       $install_prog $dir/$dlname \$dldir/$dlname'
11231     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11232       dlpath=$dir/\$dldll~
11233        $rm \$dlpath'
11234     shlibpath_overrides_runpath=yes
11235
11236     case $host_os in
11237     cygwin*)
11238       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11239       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11240       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11241       ;;
11242     mingw*)
11243       # MinGW DLLs use traditional 'lib' prefix
11244       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11245       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11246       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11247         # It is most probably a Windows format PATH printed by
11248         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11249         # path with ; separators, and with drive letters. We can handle the
11250         # drive letters (cygwin fileutils understands them), so leave them,
11251         # especially as we might pass files found there to a mingw objdump,
11252         # which wouldn't understand a cygwinified path. Ahh.
11253         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11254       else
11255         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11256       fi
11257       ;;
11258     pw32*)
11259       # pw32 DLLs use 'pw' prefix rather than 'lib'
11260       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11261       ;;
11262     esac
11263     ;;
11264
11265   *)
11266     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11267     ;;
11268   esac
11269   dynamic_linker='Win32 ld.exe'
11270   # FIXME: first we should search . and the directory the executable is in
11271   shlibpath_var=PATH
11272   ;;
11273
11274 darwin* | rhapsody*)
11275   dynamic_linker="$host_os dyld"
11276   version_type=darwin
11277   need_lib_prefix=no
11278   need_version=no
11279   # FIXME: Relying on posixy $() will cause problems for
11280   #        cross-compilation, but unfortunately the echo tests do not
11281   #        yet detect zsh echo's removal of \ escapes.
11282   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11283   soname_spec='${libname}${release}${major}$shared_ext'
11284   shlibpath_overrides_runpath=yes
11285   shlibpath_var=DYLD_LIBRARY_PATH
11286   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11287   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11288   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11289   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"`
11290   fi
11291   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11292   ;;
11293
11294 dgux*)
11295   version_type=linux
11296   need_lib_prefix=no
11297   need_version=no
11298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11299   soname_spec='${libname}${release}${shared_ext}$major'
11300   shlibpath_var=LD_LIBRARY_PATH
11301   ;;
11302
11303 freebsd1*)
11304   dynamic_linker=no
11305   ;;
11306
11307 freebsd*)
11308   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11309   version_type=freebsd-$objformat
11310   case $version_type in
11311     freebsd-elf*)
11312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11313       need_version=no
11314       need_lib_prefix=no
11315       ;;
11316     freebsd-*)
11317       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11318       need_version=yes
11319       ;;
11320   esac
11321   shlibpath_var=LD_LIBRARY_PATH
11322   case $host_os in
11323   freebsd2*)
11324     shlibpath_overrides_runpath=yes
11325     ;;
11326   freebsd3.01* | freebsdelf3.01*)
11327     shlibpath_overrides_runpath=yes
11328     hardcode_into_libs=yes
11329     ;;
11330   *) # from 3.2 on
11331     shlibpath_overrides_runpath=no
11332     hardcode_into_libs=yes
11333     ;;
11334   esac
11335   ;;
11336
11337 gnu*)
11338   version_type=linux
11339   need_lib_prefix=no
11340   need_version=no
11341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11342   soname_spec='${libname}${release}${shared_ext}$major'
11343   shlibpath_var=LD_LIBRARY_PATH
11344   hardcode_into_libs=yes
11345   ;;
11346
11347 hpux9* | hpux10* | hpux11*)
11348   # Give a soname corresponding to the major version so that dld.sl refuses to
11349   # link against other versions.
11350   version_type=sunos
11351   need_lib_prefix=no
11352   need_version=no
11353   case "$host_cpu" in
11354   ia64*)
11355     shrext='.so'
11356     hardcode_into_libs=yes
11357     dynamic_linker="$host_os dld.so"
11358     shlibpath_var=LD_LIBRARY_PATH
11359     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361     soname_spec='${libname}${release}${shared_ext}$major'
11362     if test "X$HPUX_IA64_MODE" = X32; then
11363       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11364     else
11365       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11366     fi
11367     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11368     ;;
11369    hppa*64*)
11370      shrext='.sl'
11371      hardcode_into_libs=yes
11372      dynamic_linker="$host_os dld.sl"
11373      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11374      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11375      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376      soname_spec='${libname}${release}${shared_ext}$major'
11377      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11378      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11379      ;;
11380    *)
11381     shrext='.sl'
11382     dynamic_linker="$host_os dld.sl"
11383     shlibpath_var=SHLIB_PATH
11384     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11385     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386     soname_spec='${libname}${release}${shared_ext}$major'
11387     ;;
11388   esac
11389   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11390   postinstall_cmds='chmod 555 $lib'
11391   ;;
11392
11393 irix5* | irix6* | nonstopux*)
11394   case $host_os in
11395     nonstopux*) version_type=nonstopux ;;
11396     *)
11397         if test "$lt_cv_prog_gnu_ld" = yes; then
11398                 version_type=linux
11399         else
11400                 version_type=irix
11401         fi ;;
11402   esac
11403   need_lib_prefix=no
11404   need_version=no
11405   soname_spec='${libname}${release}${shared_ext}$major'
11406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11407   case $host_os in
11408   irix5* | nonstopux*)
11409     libsuff= shlibsuff=
11410     ;;
11411   *)
11412     case $LD in # libtool.m4 will add one of these switches to LD
11413     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11414       libsuff= shlibsuff= libmagic=32-bit;;
11415     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11416       libsuff=32 shlibsuff=N32 libmagic=N32;;
11417     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11418       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11419     *) libsuff= shlibsuff= libmagic=never-match;;
11420     esac
11421     ;;
11422   esac
11423   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11424   shlibpath_overrides_runpath=no
11425   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11426   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11427   hardcode_into_libs=yes
11428   ;;
11429
11430 # No shared lib support for Linux oldld, aout, or coff.
11431 linux*oldld* | linux*aout* | linux*coff*)
11432   dynamic_linker=no
11433   ;;
11434
11435 # This must be Linux ELF.
11436 linux*)
11437   version_type=linux
11438   need_lib_prefix=no
11439   need_version=no
11440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11441   soname_spec='${libname}${release}${shared_ext}$major'
11442   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11443   shlibpath_var=LD_LIBRARY_PATH
11444   shlibpath_overrides_runpath=no
11445   # This implies no fast_install, which is unacceptable.
11446   # Some rework will be needed to allow for fast_install
11447   # before this can be enabled.
11448   hardcode_into_libs=yes
11449
11450   # We used to test for /lib/ld.so.1 and disable shared libraries on
11451   # powerpc, because MkLinux only supported shared libraries with the
11452   # GNU dynamic linker.  Since this was broken with cross compilers,
11453   # most powerpc-linux boxes support dynamic linking these days and
11454   # people can always --disable-shared, the test was removed, and we
11455   # assume the GNU/Linux dynamic linker is in use.
11456   dynamic_linker='GNU/Linux ld.so'
11457   ;;
11458
11459 netbsd*)
11460   version_type=sunos
11461   need_lib_prefix=no
11462   need_version=no
11463   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11465     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11466     dynamic_linker='NetBSD (a.out) ld.so'
11467   else
11468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11469     soname_spec='${libname}${release}${shared_ext}$major'
11470     dynamic_linker='NetBSD ld.elf_so'
11471   fi
11472   shlibpath_var=LD_LIBRARY_PATH
11473   shlibpath_overrides_runpath=yes
11474   hardcode_into_libs=yes
11475   ;;
11476
11477 newsos6)
11478   version_type=linux
11479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480   shlibpath_var=LD_LIBRARY_PATH
11481   shlibpath_overrides_runpath=yes
11482   ;;
11483
11484 nto-qnx)
11485   version_type=linux
11486   need_lib_prefix=no
11487   need_version=no
11488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489   soname_spec='${libname}${release}${shared_ext}$major'
11490   shlibpath_var=LD_LIBRARY_PATH
11491   shlibpath_overrides_runpath=yes
11492   ;;
11493
11494 openbsd*)
11495   version_type=sunos
11496   need_lib_prefix=no
11497   need_version=no
11498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11499   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11500   shlibpath_var=LD_LIBRARY_PATH
11501   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11502     case $host_os in
11503       openbsd2.[89] | openbsd2.[89].*)
11504         shlibpath_overrides_runpath=no
11505         ;;
11506       *)
11507         shlibpath_overrides_runpath=yes
11508         ;;
11509       esac
11510   else
11511     shlibpath_overrides_runpath=yes
11512   fi
11513   ;;
11514
11515 os2*)
11516   libname_spec='$name'
11517   shrext=".dll"
11518   need_lib_prefix=no
11519   library_names_spec='$libname${shared_ext} $libname.a'
11520   dynamic_linker='OS/2 ld.exe'
11521   shlibpath_var=LIBPATH
11522   ;;
11523
11524 osf3* | osf4* | osf5*)
11525   version_type=osf
11526   need_lib_prefix=no
11527   need_version=no
11528   soname_spec='${libname}${release}${shared_ext}$major'
11529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530   shlibpath_var=LD_LIBRARY_PATH
11531   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11532   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11533   ;;
11534
11535 sco3.2v5*)
11536   version_type=osf
11537   soname_spec='${libname}${release}${shared_ext}$major'
11538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539   shlibpath_var=LD_LIBRARY_PATH
11540   ;;
11541
11542 solaris*)
11543   version_type=linux
11544   need_lib_prefix=no
11545   need_version=no
11546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547   soname_spec='${libname}${release}${shared_ext}$major'
11548   shlibpath_var=LD_LIBRARY_PATH
11549   shlibpath_overrides_runpath=yes
11550   hardcode_into_libs=yes
11551   # ldd complains unless libraries are executable
11552   postinstall_cmds='chmod +x $lib'
11553   ;;
11554
11555 sunos4*)
11556   version_type=sunos
11557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11558   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11559   shlibpath_var=LD_LIBRARY_PATH
11560   shlibpath_overrides_runpath=yes
11561   if test "$with_gnu_ld" = yes; then
11562     need_lib_prefix=no
11563   fi
11564   need_version=yes
11565   ;;
11566
11567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11568   version_type=linux
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570   soname_spec='${libname}${release}${shared_ext}$major'
11571   shlibpath_var=LD_LIBRARY_PATH
11572   case $host_vendor in
11573     sni)
11574       shlibpath_overrides_runpath=no
11575       need_lib_prefix=no
11576       export_dynamic_flag_spec='${wl}-Blargedynsym'
11577       runpath_var=LD_RUN_PATH
11578       ;;
11579     siemens)
11580       need_lib_prefix=no
11581       ;;
11582     motorola)
11583       need_lib_prefix=no
11584       need_version=no
11585       shlibpath_overrides_runpath=no
11586       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11587       ;;
11588   esac
11589   ;;
11590
11591 sysv4*MP*)
11592   if test -d /usr/nec ;then
11593     version_type=linux
11594     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11595     soname_spec='$libname${shared_ext}.$major'
11596     shlibpath_var=LD_LIBRARY_PATH
11597   fi
11598   ;;
11599
11600 uts4*)
11601   version_type=linux
11602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11603   soname_spec='${libname}${release}${shared_ext}$major'
11604   shlibpath_var=LD_LIBRARY_PATH
11605   ;;
11606
11607 *)
11608   dynamic_linker=no
11609   ;;
11610 esac
11611 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11612 echo "${ECHO_T}$dynamic_linker" >&6
11613 test "$dynamic_linker" = no && can_build_shared=no
11614
11615 if test "x$enable_dlopen" != xyes; then
11616   enable_dlopen=unknown
11617   enable_dlopen_self=unknown
11618   enable_dlopen_self_static=unknown
11619 else
11620   lt_cv_dlopen=no
11621   lt_cv_dlopen_libs=
11622
11623   case $host_os in
11624   beos*)
11625     lt_cv_dlopen="load_add_on"
11626     lt_cv_dlopen_libs=
11627     lt_cv_dlopen_self=yes
11628     ;;
11629
11630   mingw* | pw32*)
11631     lt_cv_dlopen="LoadLibrary"
11632     lt_cv_dlopen_libs=
11633    ;;
11634
11635   cygwin*)
11636     lt_cv_dlopen="dlopen"
11637     lt_cv_dlopen_libs=
11638    ;;
11639
11640   darwin*)
11641   # if libdl is installed we need to link against it
11642     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11643 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11644 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11645   echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647   ac_check_lib_save_LIBS=$LIBS
11648 LIBS="-ldl  $LIBS"
11649 cat >conftest.$ac_ext <<_ACEOF
11650 #line $LINENO "configure"
11651 /* confdefs.h.  */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h.  */
11656
11657 /* Override any gcc2 internal prototype to avoid an error.  */
11658 #ifdef __cplusplus
11659 extern "C"
11660 #endif
11661 /* We use char because int might match the return type of a gcc2
11662    builtin and then its argument prototype would still apply.  */
11663 char dlopen ();
11664 int
11665 main ()
11666 {
11667 dlopen ();
11668   ;
11669   return 0;
11670 }
11671 _ACEOF
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674   (eval $ac_link) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } &&
11678          { ac_try='test -s conftest$ac_exeext'
11679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680   (eval $ac_try) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; }; then
11684   ac_cv_lib_dl_dlopen=yes
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689 ac_cv_lib_dl_dlopen=no
11690 fi
11691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11692 LIBS=$ac_check_lib_save_LIBS
11693 fi
11694 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11695 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11696 if test $ac_cv_lib_dl_dlopen = yes; then
11697   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11698 else
11699
11700     lt_cv_dlopen="dyld"
11701     lt_cv_dlopen_libs=
11702     lt_cv_dlopen_self=yes
11703
11704 fi
11705
11706    ;;
11707
11708   *)
11709     echo "$as_me:$LINENO: checking for shl_load" >&5
11710 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11711 if test "${ac_cv_func_shl_load+set}" = set; then
11712   echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714   cat >conftest.$ac_ext <<_ACEOF
11715 #line $LINENO "configure"
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721 /* System header to define __stub macros and hopefully few prototypes,
11722     which can conflict with char shl_load (); below.
11723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724     <limits.h> exists even on freestanding compilers.  */
11725 #ifdef __STDC__
11726 # include <limits.h>
11727 #else
11728 # include <assert.h>
11729 #endif
11730 /* Override any gcc2 internal prototype to avoid an error.  */
11731 #ifdef __cplusplus
11732 extern "C"
11733 {
11734 #endif
11735 /* We use char because int might match the return type of a gcc2
11736    builtin and then its argument prototype would still apply.  */
11737 char shl_load ();
11738 /* The GNU C library defines this for functions which it implements
11739     to always fail with ENOSYS.  Some functions are actually named
11740     something starting with __ and the normal name is an alias.  */
11741 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11742 choke me
11743 #else
11744 char (*f) () = shl_load;
11745 #endif
11746 #ifdef __cplusplus
11747 }
11748 #endif
11749
11750 int
11751 main ()
11752 {
11753 return f != shl_load;
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760   (eval $ac_link) 2>&5
11761   ac_status=$?
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); } &&
11764          { ac_try='test -s conftest$ac_exeext'
11765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766   (eval $ac_try) 2>&5
11767   ac_status=$?
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); }; }; then
11770   ac_cv_func_shl_load=yes
11771 else
11772   echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11774
11775 ac_cv_func_shl_load=no
11776 fi
11777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11778 fi
11779 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11780 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11781 if test $ac_cv_func_shl_load = yes; then
11782   lt_cv_dlopen="shl_load"
11783 else
11784   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11785 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11786 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11787   echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789   ac_check_lib_save_LIBS=$LIBS
11790 LIBS="-ldld  $LIBS"
11791 cat >conftest.$ac_ext <<_ACEOF
11792 #line $LINENO "configure"
11793 /* confdefs.h.  */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h.  */
11798
11799 /* Override any gcc2 internal prototype to avoid an error.  */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 /* We use char because int might match the return type of a gcc2
11804    builtin and then its argument prototype would still apply.  */
11805 char shl_load ();
11806 int
11807 main ()
11808 {
11809 shl_load ();
11810   ;
11811   return 0;
11812 }
11813 _ACEOF
11814 rm -f conftest.$ac_objext conftest$ac_exeext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11816   (eval $ac_link) 2>&5
11817   ac_status=$?
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); } &&
11820          { ac_try='test -s conftest$ac_exeext'
11821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822   (eval $ac_try) 2>&5
11823   ac_status=$?
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); }; }; then
11826   ac_cv_lib_dld_shl_load=yes
11827 else
11828   echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831 ac_cv_lib_dld_shl_load=no
11832 fi
11833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11834 LIBS=$ac_check_lib_save_LIBS
11835 fi
11836 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11837 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11838 if test $ac_cv_lib_dld_shl_load = yes; then
11839   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11840 else
11841   echo "$as_me:$LINENO: checking for dlopen" >&5
11842 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11843 if test "${ac_cv_func_dlopen+set}" = set; then
11844   echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846   cat >conftest.$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11848 /* confdefs.h.  */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h.  */
11853 /* System header to define __stub macros and hopefully few prototypes,
11854     which can conflict with char dlopen (); below.
11855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11856     <limits.h> exists even on freestanding compilers.  */
11857 #ifdef __STDC__
11858 # include <limits.h>
11859 #else
11860 # include <assert.h>
11861 #endif
11862 /* Override any gcc2 internal prototype to avoid an error.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 {
11866 #endif
11867 /* We use char because int might match the return type of a gcc2
11868    builtin and then its argument prototype would still apply.  */
11869 char dlopen ();
11870 /* The GNU C library defines this for functions which it implements
11871     to always fail with ENOSYS.  Some functions are actually named
11872     something starting with __ and the normal name is an alias.  */
11873 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11874 choke me
11875 #else
11876 char (*f) () = dlopen;
11877 #endif
11878 #ifdef __cplusplus
11879 }
11880 #endif
11881
11882 int
11883 main ()
11884 {
11885 return f != dlopen;
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 rm -f conftest.$ac_objext conftest$ac_exeext
11891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11892   (eval $ac_link) 2>&5
11893   ac_status=$?
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); } &&
11896          { ac_try='test -s conftest$ac_exeext'
11897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898   (eval $ac_try) 2>&5
11899   ac_status=$?
11900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901   (exit $ac_status); }; }; then
11902   ac_cv_func_dlopen=yes
11903 else
11904   echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11906
11907 ac_cv_func_dlopen=no
11908 fi
11909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11910 fi
11911 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11912 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11913 if test $ac_cv_func_dlopen = yes; then
11914   lt_cv_dlopen="dlopen"
11915 else
11916   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11917 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11918 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   ac_check_lib_save_LIBS=$LIBS
11922 LIBS="-ldl  $LIBS"
11923 cat >conftest.$ac_ext <<_ACEOF
11924 #line $LINENO "configure"
11925 /* confdefs.h.  */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h.  */
11930
11931 /* Override any gcc2 internal prototype to avoid an error.  */
11932 #ifdef __cplusplus
11933 extern "C"
11934 #endif
11935 /* We use char because int might match the return type of a gcc2
11936    builtin and then its argument prototype would still apply.  */
11937 char dlopen ();
11938 int
11939 main ()
11940 {
11941 dlopen ();
11942   ;
11943   return 0;
11944 }
11945 _ACEOF
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11948   (eval $ac_link) 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); } &&
11952          { ac_try='test -s conftest$ac_exeext'
11953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954   (eval $ac_try) 2>&5
11955   ac_status=$?
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); }; }; then
11958   ac_cv_lib_dl_dlopen=yes
11959 else
11960   echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11962
11963 ac_cv_lib_dl_dlopen=no
11964 fi
11965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11967 fi
11968 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11970 if test $ac_cv_lib_dl_dlopen = yes; then
11971   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11972 else
11973   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11974 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11975 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978   ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-lsvld  $LIBS"
11980 cat >conftest.$ac_ext <<_ACEOF
11981 #line $LINENO "configure"
11982 /* confdefs.h.  */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h.  */
11987
11988 /* Override any gcc2 internal prototype to avoid an error.  */
11989 #ifdef __cplusplus
11990 extern "C"
11991 #endif
11992 /* We use char because int might match the return type of a gcc2
11993    builtin and then its argument prototype would still apply.  */
11994 char dlopen ();
11995 int
11996 main ()
11997 {
11998 dlopen ();
11999   ;
12000   return 0;
12001 }
12002 _ACEOF
12003 rm -f conftest.$ac_objext conftest$ac_exeext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005   (eval $ac_link) 2>&5
12006   ac_status=$?
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); } &&
12009          { ac_try='test -s conftest$ac_exeext'
12010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011   (eval $ac_try) 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); }; }; then
12015   ac_cv_lib_svld_dlopen=yes
12016 else
12017   echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12019
12020 ac_cv_lib_svld_dlopen=no
12021 fi
12022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12024 fi
12025 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12026 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12027 if test $ac_cv_lib_svld_dlopen = yes; then
12028   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12029 else
12030   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12031 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12032 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12033   echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035   ac_check_lib_save_LIBS=$LIBS
12036 LIBS="-ldld  $LIBS"
12037 cat >conftest.$ac_ext <<_ACEOF
12038 #line $LINENO "configure"
12039 /* confdefs.h.  */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h.  */
12044
12045 /* Override any gcc2 internal prototype to avoid an error.  */
12046 #ifdef __cplusplus
12047 extern "C"
12048 #endif
12049 /* We use char because int might match the return type of a gcc2
12050    builtin and then its argument prototype would still apply.  */
12051 char dld_link ();
12052 int
12053 main ()
12054 {
12055 dld_link ();
12056   ;
12057   return 0;
12058 }
12059 _ACEOF
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062   (eval $ac_link) 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } &&
12066          { ac_try='test -s conftest$ac_exeext'
12067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068   (eval $ac_try) 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; }; then
12072   ac_cv_lib_dld_dld_link=yes
12073 else
12074   echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12076
12077 ac_cv_lib_dld_dld_link=no
12078 fi
12079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12080 LIBS=$ac_check_lib_save_LIBS
12081 fi
12082 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12083 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12084 if test $ac_cv_lib_dld_dld_link = yes; then
12085   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12086 fi
12087
12088
12089 fi
12090
12091
12092 fi
12093
12094
12095 fi
12096
12097
12098 fi
12099
12100
12101 fi
12102
12103     ;;
12104   esac
12105
12106   if test "x$lt_cv_dlopen" != xno; then
12107     enable_dlopen=yes
12108   else
12109     enable_dlopen=no
12110   fi
12111
12112   case $lt_cv_dlopen in
12113   dlopen)
12114     save_CPPFLAGS="$CPPFLAGS"
12115     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12116
12117     save_LDFLAGS="$LDFLAGS"
12118     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12119
12120     save_LIBS="$LIBS"
12121     LIBS="$lt_cv_dlopen_libs $LIBS"
12122
12123     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12124 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12125 if test "${lt_cv_dlopen_self+set}" = set; then
12126   echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128           if test "$cross_compiling" = yes; then :
12129   lt_cv_dlopen_self=cross
12130 else
12131   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12132   lt_status=$lt_dlunknown
12133   cat > conftest.$ac_ext <<EOF
12134 #line 12134 "configure"
12135 #include "confdefs.h"
12136
12137 #if HAVE_DLFCN_H
12138 #include <dlfcn.h>
12139 #endif
12140
12141 #include <stdio.h>
12142
12143 #ifdef RTLD_GLOBAL
12144 #  define LT_DLGLOBAL           RTLD_GLOBAL
12145 #else
12146 #  ifdef DL_GLOBAL
12147 #    define LT_DLGLOBAL         DL_GLOBAL
12148 #  else
12149 #    define LT_DLGLOBAL         0
12150 #  endif
12151 #endif
12152
12153 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12154    find out it does not work in some platform. */
12155 #ifndef LT_DLLAZY_OR_NOW
12156 #  ifdef RTLD_LAZY
12157 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12158 #  else
12159 #    ifdef DL_LAZY
12160 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12161 #    else
12162 #      ifdef RTLD_NOW
12163 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12164 #      else
12165 #        ifdef DL_NOW
12166 #          define LT_DLLAZY_OR_NOW      DL_NOW
12167 #        else
12168 #          define LT_DLLAZY_OR_NOW      0
12169 #        endif
12170 #      endif
12171 #    endif
12172 #  endif
12173 #endif
12174
12175 #ifdef __cplusplus
12176 extern "C" void exit (int);
12177 #endif
12178
12179 void fnord() { int i=42;}
12180 int main ()
12181 {
12182   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12183   int status = $lt_dlunknown;
12184
12185   if (self)
12186     {
12187       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12188       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12189       /* dlclose (self); */
12190     }
12191
12192     exit (status);
12193 }
12194 EOF
12195   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196   (eval $ac_link) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12200     (./conftest; exit; ) 2>/dev/null
12201     lt_status=$?
12202     case x$lt_status in
12203       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12204       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12205       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12206     esac
12207   else :
12208     # compilation failed
12209     lt_cv_dlopen_self=no
12210   fi
12211 fi
12212 rm -fr conftest*
12213
12214
12215 fi
12216 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12217 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12218
12219     if test "x$lt_cv_dlopen_self" = xyes; then
12220       LDFLAGS="$LDFLAGS $link_static_flag"
12221       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12222 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12223 if test "${lt_cv_dlopen_self_static+set}" = set; then
12224   echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226           if test "$cross_compiling" = yes; then :
12227   lt_cv_dlopen_self_static=cross
12228 else
12229   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12230   lt_status=$lt_dlunknown
12231   cat > conftest.$ac_ext <<EOF
12232 #line 12232 "configure"
12233 #include "confdefs.h"
12234
12235 #if HAVE_DLFCN_H
12236 #include <dlfcn.h>
12237 #endif
12238
12239 #include <stdio.h>
12240
12241 #ifdef RTLD_GLOBAL
12242 #  define LT_DLGLOBAL           RTLD_GLOBAL
12243 #else
12244 #  ifdef DL_GLOBAL
12245 #    define LT_DLGLOBAL         DL_GLOBAL
12246 #  else
12247 #    define LT_DLGLOBAL         0
12248 #  endif
12249 #endif
12250
12251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12252    find out it does not work in some platform. */
12253 #ifndef LT_DLLAZY_OR_NOW
12254 #  ifdef RTLD_LAZY
12255 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12256 #  else
12257 #    ifdef DL_LAZY
12258 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12259 #    else
12260 #      ifdef RTLD_NOW
12261 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12262 #      else
12263 #        ifdef DL_NOW
12264 #          define LT_DLLAZY_OR_NOW      DL_NOW
12265 #        else
12266 #          define LT_DLLAZY_OR_NOW      0
12267 #        endif
12268 #      endif
12269 #    endif
12270 #  endif
12271 #endif
12272
12273 #ifdef __cplusplus
12274 extern "C" void exit (int);
12275 #endif
12276
12277 void fnord() { int i=42;}
12278 int main ()
12279 {
12280   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12281   int status = $lt_dlunknown;
12282
12283   if (self)
12284     {
12285       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12286       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12287       /* dlclose (self); */
12288     }
12289
12290     exit (status);
12291 }
12292 EOF
12293   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12294   (eval $ac_link) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12298     (./conftest; exit; ) 2>/dev/null
12299     lt_status=$?
12300     case x$lt_status in
12301       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12302       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12303       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12304     esac
12305   else :
12306     # compilation failed
12307     lt_cv_dlopen_self_static=no
12308   fi
12309 fi
12310 rm -fr conftest*
12311
12312
12313 fi
12314 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12315 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12316     fi
12317
12318     CPPFLAGS="$save_CPPFLAGS"
12319     LDFLAGS="$save_LDFLAGS"
12320     LIBS="$save_LIBS"
12321     ;;
12322   esac
12323
12324   case $lt_cv_dlopen_self in
12325   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12326   *) enable_dlopen_self=unknown ;;
12327   esac
12328
12329   case $lt_cv_dlopen_self_static in
12330   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12331   *) enable_dlopen_self_static=unknown ;;
12332   esac
12333 fi
12334
12335
12336 # The else clause should only fire when bootstrapping the
12337 # libtool distribution, otherwise you forgot to ship ltmain.sh
12338 # with your package, and you will get complaints that there are
12339 # no rules to generate ltmain.sh.
12340 if test -f "$ltmain"; then
12341   # See if we are running on zsh, and set the options which allow our commands through
12342   # without removal of \ escapes.
12343   if test -n "${ZSH_VERSION+set}" ; then
12344     setopt NO_GLOB_SUBST
12345   fi
12346   # Now quote all the things that may contain metacharacters while being
12347   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12348   # variables and quote the copies for generation of the libtool script.
12349   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12350     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12351     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12352     deplibs_check_method reload_flag reload_cmds need_locks \
12353     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12354     lt_cv_sys_global_symbol_to_c_name_address \
12355     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12356     old_postinstall_cmds old_postuninstall_cmds \
12357     compiler_CXX \
12358     CC_CXX \
12359     LD_CXX \
12360     lt_prog_compiler_wl_CXX \
12361     lt_prog_compiler_pic_CXX \
12362     lt_prog_compiler_static_CXX \
12363     lt_prog_compiler_no_builtin_flag_CXX \
12364     export_dynamic_flag_spec_CXX \
12365     thread_safe_flag_spec_CXX \
12366     whole_archive_flag_spec_CXX \
12367     enable_shared_with_static_runtimes_CXX \
12368     old_archive_cmds_CXX \
12369     old_archive_from_new_cmds_CXX \
12370     predep_objects_CXX \
12371     postdep_objects_CXX \
12372     predeps_CXX \
12373     postdeps_CXX \
12374     compiler_lib_search_path_CXX \
12375     archive_cmds_CXX \
12376     archive_expsym_cmds_CXX \
12377     postinstall_cmds_CXX \
12378     postuninstall_cmds_CXX \
12379     old_archive_from_expsyms_cmds_CXX \
12380     allow_undefined_flag_CXX \
12381     no_undefined_flag_CXX \
12382     export_symbols_cmds_CXX \
12383     hardcode_libdir_flag_spec_CXX \
12384     hardcode_libdir_flag_spec_ld_CXX \
12385     hardcode_libdir_separator_CXX \
12386     hardcode_automatic_CXX \
12387     module_cmds_CXX \
12388     module_expsym_cmds_CXX \
12389     lt_cv_prog_compiler_c_o_CXX \
12390     exclude_expsyms_CXX \
12391     include_expsyms_CXX; do
12392
12393     case $var in
12394     old_archive_cmds_CXX | \
12395     old_archive_from_new_cmds_CXX | \
12396     archive_cmds_CXX | \
12397     archive_expsym_cmds_CXX | \
12398     module_cmds_CXX | \
12399     module_expsym_cmds_CXX | \
12400     old_archive_from_expsyms_cmds_CXX | \
12401     export_symbols_cmds_CXX | \
12402     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12403     postinstall_cmds | postuninstall_cmds | \
12404     old_postinstall_cmds | old_postuninstall_cmds | \
12405     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12406       # Double-quote double-evaled strings.
12407       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12408       ;;
12409     *)
12410       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12411       ;;
12412     esac
12413   done
12414
12415   case $lt_echo in
12416   *'\$0 --fallback-echo"')
12417     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12418     ;;
12419   esac
12420
12421 cfgfile="$ofile"
12422
12423   cat <<__EOF__ >> "$cfgfile"
12424 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12425
12426 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12427
12428 # Shell to use when invoking shell scripts.
12429 SHELL=$lt_SHELL
12430
12431 # Whether or not to build shared libraries.
12432 build_libtool_libs=$enable_shared
12433
12434 # Whether or not to build static libraries.
12435 build_old_libs=$enable_static
12436
12437 # Whether or not to add -lc for building shared libraries.
12438 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12439
12440 # Whether or not to disallow shared libs when runtime libs are static
12441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12442
12443 # Whether or not to optimize for fast installation.
12444 fast_install=$enable_fast_install
12445
12446 # The host system.
12447 host_alias=$host_alias
12448 host=$host
12449
12450 # An echo program that does not interpret backslashes.
12451 echo=$lt_echo
12452
12453 # The archiver.
12454 AR=$lt_AR
12455 AR_FLAGS=$lt_AR_FLAGS
12456
12457 # A C compiler.
12458 LTCC=$lt_LTCC
12459
12460 # A language-specific compiler.
12461 CC=$lt_compiler_CXX
12462
12463 # Is the compiler the GNU C compiler?
12464 with_gcc=$GCC_CXX
12465
12466 # An ERE matcher.
12467 EGREP=$lt_EGREP
12468
12469 # The linker used to build libraries.
12470 LD=$lt_LD_CXX
12471
12472 # Whether we need hard or soft links.
12473 LN_S=$lt_LN_S
12474
12475 # A BSD-compatible nm program.
12476 NM=$lt_NM
12477
12478 # A symbol stripping program
12479 STRIP=$STRIP
12480
12481 # Used to examine libraries when file_magic_cmd begins "file"
12482 MAGIC_CMD=$MAGIC_CMD
12483
12484 # Used on cygwin: DLL creation program.
12485 DLLTOOL="$DLLTOOL"
12486
12487 # Used on cygwin: object dumper.
12488 OBJDUMP="$OBJDUMP"
12489
12490 # Used on cygwin: assembler.
12491 AS="$AS"
12492
12493 # The name of the directory that contains temporary libtool files.
12494 objdir=$objdir
12495
12496 # How to create reloadable object files.
12497 reload_flag=$lt_reload_flag
12498 reload_cmds=$lt_reload_cmds
12499
12500 # How to pass a linker flag through the compiler.
12501 wl=$lt_lt_prog_compiler_wl_CXX
12502
12503 # Object file suffix (normally "o").
12504 objext="$ac_objext"
12505
12506 # Old archive suffix (normally "a").
12507 libext="$libext"
12508
12509 # Shared library suffix (normally ".so").
12510 shrext='$shrext'
12511
12512 # Executable file suffix (normally "").
12513 exeext="$exeext"
12514
12515 # Additional compiler flags for building library objects.
12516 pic_flag=$lt_lt_prog_compiler_pic_CXX
12517 pic_mode=$pic_mode
12518
12519 # What is the maximum length of a command?
12520 max_cmd_len=$lt_cv_sys_max_cmd_len
12521
12522 # Does compiler simultaneously support -c and -o options?
12523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12524
12525 # Must we lock files when doing compilation ?
12526 need_locks=$lt_need_locks
12527
12528 # Do we need the lib prefix for modules?
12529 need_lib_prefix=$need_lib_prefix
12530
12531 # Do we need a version for libraries?
12532 need_version=$need_version
12533
12534 # Whether dlopen is supported.
12535 dlopen_support=$enable_dlopen
12536
12537 # Whether dlopen of programs is supported.
12538 dlopen_self=$enable_dlopen_self
12539
12540 # Whether dlopen of statically linked programs is supported.
12541 dlopen_self_static=$enable_dlopen_self_static
12542
12543 # Compiler flag to prevent dynamic linking.
12544 link_static_flag=$lt_lt_prog_compiler_static_CXX
12545
12546 # Compiler flag to turn off builtin functions.
12547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12548
12549 # Compiler flag to allow reflexive dlopens.
12550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12551
12552 # Compiler flag to generate shared objects directly from archives.
12553 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12554
12555 # Compiler flag to generate thread-safe objects.
12556 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12557
12558 # Library versioning type.
12559 version_type=$version_type
12560
12561 # Format of library name prefix.
12562 libname_spec=$lt_libname_spec
12563
12564 # List of archive names.  First name is the real one, the rest are links.
12565 # The last name is the one that the linker finds with -lNAME.
12566 library_names_spec=$lt_library_names_spec
12567
12568 # The coded name of the library, if different from the real name.
12569 soname_spec=$lt_soname_spec
12570
12571 # Commands used to build and install an old-style archive.
12572 RANLIB=$lt_RANLIB
12573 old_archive_cmds=$lt_old_archive_cmds_CXX
12574 old_postinstall_cmds=$lt_old_postinstall_cmds
12575 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12576
12577 # Create an old-style archive from a shared archive.
12578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12579
12580 # Create a temporary old-style archive to link instead of a shared archive.
12581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12582
12583 # Commands used to build and install a shared archive.
12584 archive_cmds=$lt_archive_cmds_CXX
12585 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12586 postinstall_cmds=$lt_postinstall_cmds
12587 postuninstall_cmds=$lt_postuninstall_cmds
12588
12589 # Commands used to build a loadable module (assumed same as above if empty)
12590 module_cmds=$lt_module_cmds_CXX
12591 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12592
12593 # Commands to strip libraries.
12594 old_striplib=$lt_old_striplib
12595 striplib=$lt_striplib
12596
12597 # Dependencies to place before the objects being linked to create a
12598 # shared library.
12599 predep_objects=$lt_predep_objects_CXX
12600
12601 # Dependencies to place after the objects being linked to create a
12602 # shared library.
12603 postdep_objects=$lt_postdep_objects_CXX
12604
12605 # Dependencies to place before the objects being linked to create a
12606 # shared library.
12607 predeps=$lt_predeps_CXX
12608
12609 # Dependencies to place after the objects being linked to create a
12610 # shared library.
12611 postdeps=$lt_postdeps_CXX
12612
12613 # The library search path used internally by the compiler when linking
12614 # a shared library.
12615 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12616
12617 # Method to check whether dependent libraries are shared objects.
12618 deplibs_check_method=$lt_deplibs_check_method
12619
12620 # Command to use when deplibs_check_method == file_magic.
12621 file_magic_cmd=$lt_file_magic_cmd
12622
12623 # Flag that allows shared libraries with undefined symbols to be built.
12624 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12625
12626 # Flag that forces no undefined symbols.
12627 no_undefined_flag=$lt_no_undefined_flag_CXX
12628
12629 # Commands used to finish a libtool library installation in a directory.
12630 finish_cmds=$lt_finish_cmds
12631
12632 # Same as above, but a single script fragment to be evaled but not shown.
12633 finish_eval=$lt_finish_eval
12634
12635 # Take the output of nm and produce a listing of raw symbols and C names.
12636 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12637
12638 # Transform the output of nm in a proper C declaration
12639 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12640
12641 # Transform the output of nm in a C name address pair
12642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12643
12644 # This is the shared library runtime path variable.
12645 runpath_var=$runpath_var
12646
12647 # This is the shared library path variable.
12648 shlibpath_var=$shlibpath_var
12649
12650 # Is shlibpath searched before the hard-coded library search path?
12651 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12652
12653 # How to hardcode a shared library path into an executable.
12654 hardcode_action=$hardcode_action_CXX
12655
12656 # Whether we should hardcode library paths into libraries.
12657 hardcode_into_libs=$hardcode_into_libs
12658
12659 # Flag to hardcode \$libdir into a binary during linking.
12660 # This must work even if \$libdir does not exist.
12661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12662
12663 # If ld is used when linking, flag to hardcode \$libdir into
12664 # a binary during linking. This must work even if \$libdir does
12665 # not exist.
12666 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12667
12668 # Whether we need a single -rpath flag with a separated argument.
12669 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12670
12671 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12672 # resulting binary.
12673 hardcode_direct=$hardcode_direct_CXX
12674
12675 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12676 # resulting binary.
12677 hardcode_minus_L=$hardcode_minus_L_CXX
12678
12679 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12680 # the resulting binary.
12681 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12682
12683 # Set to yes if building a shared library automatically hardcodes DIR into the library
12684 # and all subsequent libraries and executables linked against it.
12685 hardcode_automatic=$hardcode_automatic_CXX
12686
12687 # Variables whose values should be saved in libtool wrapper scripts and
12688 # restored at relink time.
12689 variables_saved_for_relink="$variables_saved_for_relink"
12690
12691 # Whether libtool must link a program against all its dependency libraries.
12692 link_all_deplibs=$link_all_deplibs_CXX
12693
12694 # Compile-time system search path for libraries
12695 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12696
12697 # Run-time system search path for libraries
12698 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12699
12700 # Fix the shell variable \$srcfile for the compiler.
12701 fix_srcfile_path="$fix_srcfile_path_CXX"
12702
12703 # Set to yes if exported symbols are required.
12704 always_export_symbols=$always_export_symbols_CXX
12705
12706 # The commands to list exported symbols.
12707 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12708
12709 # The commands to extract the exported symbol list from a shared archive.
12710 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12711
12712 # Symbols that should not be listed in the preloaded symbols.
12713 exclude_expsyms=$lt_exclude_expsyms_CXX
12714
12715 # Symbols that must always be exported.
12716 include_expsyms=$lt_include_expsyms_CXX
12717
12718 # ### END LIBTOOL TAG CONFIG: $tagname
12719
12720 __EOF__
12721
12722
12723 else
12724   # If there is no Makefile yet, we rely on a make rule to execute
12725   # `config.status --recheck' to rerun these tests and create the
12726   # libtool script then.
12727   test -f Makefile && make "$ltmain"
12728 fi
12729
12730
12731 ac_ext=c
12732 ac_cpp='$CPP $CPPFLAGS'
12733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12736
12737 CC=$lt_save_CC
12738 LDCXX=$LD
12739 LD=$lt_save_LD
12740 GCC=$lt_save_GCC
12741 with_gnu_ldcxx=$with_gnu_ld
12742 with_gnu_ld=$lt_save_with_gnu_ld
12743 lt_cv_path_LDCXX=$lt_cv_path_LD
12744 lt_cv_path_LD=$lt_save_path_LD
12745 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12746 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12747
12748         else
12749           tagname=""
12750         fi
12751         ;;
12752
12753       F77)
12754         if test -n "$F77" && test "X$F77" != "Xno"; then
12755
12756 ac_ext=f
12757 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12758 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12759 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12760
12761
12762 archive_cmds_need_lc_F77=no
12763 allow_undefined_flag_F77=
12764 always_export_symbols_F77=no
12765 archive_expsym_cmds_F77=
12766 export_dynamic_flag_spec_F77=
12767 hardcode_direct_F77=no
12768 hardcode_libdir_flag_spec_F77=
12769 hardcode_libdir_flag_spec_ld_F77=
12770 hardcode_libdir_separator_F77=
12771 hardcode_minus_L_F77=no
12772 hardcode_automatic_F77=no
12773 module_cmds_F77=
12774 module_expsym_cmds_F77=
12775 link_all_deplibs_F77=unknown
12776 old_archive_cmds_F77=$old_archive_cmds
12777 no_undefined_flag_F77=
12778 whole_archive_flag_spec_F77=
12779 enable_shared_with_static_runtimes_F77=no
12780
12781 # Source file extension for f77 test sources.
12782 ac_ext=f
12783
12784 # Object file extension for compiled f77 test sources.
12785 objext=o
12786 objext_F77=$objext
12787
12788 # Code to be used in simple compile tests
12789 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12790
12791 # Code to be used in simple link tests
12792 lt_simple_link_test_code="      program t\n      end\n"
12793
12794 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12795
12796 # If no C compiler was specified, use CC.
12797 LTCC=${LTCC-"$CC"}
12798
12799 # Allow CC to be a program name with arguments.
12800 compiler=$CC
12801
12802
12803 # Allow CC to be a program name with arguments.
12804 lt_save_CC="$CC"
12805 CC=${F77-"f77"}
12806 compiler=$CC
12807 compiler_F77=$CC
12808 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12809
12810 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12811 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12812 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12813 echo "${ECHO_T}$can_build_shared" >&6
12814
12815 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12816 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12817 test "$can_build_shared" = "no" && enable_shared=no
12818
12819 # On AIX, shared libraries and static libraries use the same namespace, and
12820 # are all built from PIC.
12821 case "$host_os" in
12822 aix3*)
12823   test "$enable_shared" = yes && enable_static=no
12824   if test -n "$RANLIB"; then
12825     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12826     postinstall_cmds='$RANLIB $lib'
12827   fi
12828   ;;
12829 aix4*)
12830   test "$enable_shared" = yes && enable_static=no
12831   ;;
12832 esac
12833 echo "$as_me:$LINENO: result: $enable_shared" >&5
12834 echo "${ECHO_T}$enable_shared" >&6
12835
12836 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12837 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12838 # Make sure either enable_shared or enable_static is yes.
12839 test "$enable_shared" = yes || enable_static=yes
12840 echo "$as_me:$LINENO: result: $enable_static" >&5
12841 echo "${ECHO_T}$enable_static" >&6
12842
12843 test "$ld_shlibs_F77" = no && can_build_shared=no
12844
12845 GCC_F77="$G77"
12846 LD_F77="$LD"
12847
12848 lt_prog_compiler_wl_F77=
12849 lt_prog_compiler_pic_F77=
12850 lt_prog_compiler_static_F77=
12851
12852 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12853 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12854
12855   if test "$GCC" = yes; then
12856     lt_prog_compiler_wl_F77='-Wl,'
12857     lt_prog_compiler_static_F77='-static'
12858
12859     case $host_os in
12860       aix*)
12861       # All AIX code is PIC.
12862       if test "$host_cpu" = ia64; then
12863         # AIX 5 now supports IA64 processor
12864         lt_prog_compiler_static_F77='-Bstatic'
12865       fi
12866       ;;
12867
12868     amigaos*)
12869       # FIXME: we need at least 68020 code to build shared libraries, but
12870       # adding the `-m68020' flag to GCC prevents building anything better,
12871       # like `-m68040'.
12872       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12873       ;;
12874
12875     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12876       # PIC is the default for these OSes.
12877       ;;
12878
12879     mingw* | pw32* | os2*)
12880       # This hack is so that the source file can tell whether it is being
12881       # built for inclusion in a dll (and should export symbols for example).
12882       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12883       ;;
12884
12885     darwin* | rhapsody*)
12886       # PIC is the default on this platform
12887       # Common symbols not allowed in MH_DYLIB files
12888       lt_prog_compiler_pic_F77='-fno-common'
12889       ;;
12890
12891     msdosdjgpp*)
12892       # Just because we use GCC doesn't mean we suddenly get shared libraries
12893       # on systems that don't support them.
12894       lt_prog_compiler_can_build_shared_F77=no
12895       enable_shared=no
12896       ;;
12897
12898     sysv4*MP*)
12899       if test -d /usr/nec; then
12900         lt_prog_compiler_pic_F77=-Kconform_pic
12901       fi
12902       ;;
12903
12904     hpux*)
12905       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12906       # not for PA HP-UX.
12907       case "$host_cpu" in
12908       hppa*64*|ia64*)
12909         # +Z the default
12910         ;;
12911       *)
12912         lt_prog_compiler_pic_F77='-fPIC'
12913         ;;
12914       esac
12915       ;;
12916
12917     *)
12918       lt_prog_compiler_pic_F77='-fPIC'
12919       ;;
12920     esac
12921   else
12922     # PORTME Check for flag to pass linker flags through the system compiler.
12923     case $host_os in
12924     aix*)
12925       lt_prog_compiler_wl_F77='-Wl,'
12926       if test "$host_cpu" = ia64; then
12927         # AIX 5 now supports IA64 processor
12928         lt_prog_compiler_static_F77='-Bstatic'
12929       else
12930         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12931       fi
12932       ;;
12933
12934     mingw* | pw32* | os2*)
12935       # This hack is so that the source file can tell whether it is being
12936       # built for inclusion in a dll (and should export symbols for example).
12937       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12938       ;;
12939
12940     hpux9* | hpux10* | hpux11*)
12941       lt_prog_compiler_wl_F77='-Wl,'
12942       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12943       # not for PA HP-UX.
12944       case "$host_cpu" in
12945       hppa*64*|ia64*)
12946         # +Z the default
12947         ;;
12948       *)
12949         lt_prog_compiler_pic_F77='+Z'
12950         ;;
12951       esac
12952       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12953       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12954       ;;
12955
12956     irix5* | irix6* | nonstopux*)
12957       lt_prog_compiler_wl_F77='-Wl,'
12958       # PIC (with -KPIC) is the default.
12959       lt_prog_compiler_static_F77='-non_shared'
12960       ;;
12961
12962     newsos6)
12963       lt_prog_compiler_pic_F77='-KPIC'
12964       lt_prog_compiler_static_F77='-Bstatic'
12965       ;;
12966
12967     linux*)
12968       case $CC in
12969       icc|ecc)
12970         lt_prog_compiler_wl_F77='-Wl,'
12971         lt_prog_compiler_pic_F77='-KPIC'
12972         lt_prog_compiler_static_F77='-static'
12973         ;;
12974       ccc)
12975         lt_prog_compiler_wl_F77='-Wl,'
12976         # All Alpha code is PIC.
12977         lt_prog_compiler_static_F77='-non_shared'
12978         ;;
12979       esac
12980       ;;
12981
12982     osf3* | osf4* | osf5*)
12983       lt_prog_compiler_wl_F77='-Wl,'
12984       # All OSF/1 code is PIC.
12985       lt_prog_compiler_static_F77='-non_shared'
12986       ;;
12987
12988     sco3.2v5*)
12989       lt_prog_compiler_pic_F77='-Kpic'
12990       lt_prog_compiler_static_F77='-dn'
12991       ;;
12992
12993     solaris*)
12994       lt_prog_compiler_wl_F77='-Wl,'
12995       lt_prog_compiler_pic_F77='-KPIC'
12996       lt_prog_compiler_static_F77='-Bstatic'
12997       ;;
12998
12999     sunos4*)
13000       lt_prog_compiler_wl_F77='-Qoption ld '
13001       lt_prog_compiler_pic_F77='-PIC'
13002       lt_prog_compiler_static_F77='-Bstatic'
13003       ;;
13004
13005     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13006       lt_prog_compiler_wl_F77='-Wl,'
13007       lt_prog_compiler_pic_F77='-KPIC'
13008       lt_prog_compiler_static_F77='-Bstatic'
13009       ;;
13010
13011     sysv4*MP*)
13012       if test -d /usr/nec ;then
13013         lt_prog_compiler_pic_F77='-Kconform_pic'
13014         lt_prog_compiler_static_F77='-Bstatic'
13015       fi
13016       ;;
13017
13018     uts4*)
13019       lt_prog_compiler_pic_F77='-pic'
13020       lt_prog_compiler_static_F77='-Bstatic'
13021       ;;
13022
13023     *)
13024       lt_prog_compiler_can_build_shared_F77=no
13025       ;;
13026     esac
13027   fi
13028
13029 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13030 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13031
13032 #
13033 # Check to make sure the PIC flag actually works.
13034 #
13035 if test -n "$lt_prog_compiler_pic_F77"; then
13036   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13037 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13038 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13039   echo $ECHO_N "(cached) $ECHO_C" >&6
13040 else
13041   lt_prog_compiler_pic_works_F77=no
13042   ac_outfile=conftest.$ac_objext
13043    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13044    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13045    # Insert the option either (1) after the last *FLAGS variable, or
13046    # (2) before a word containing "conftest.", or (3) at the end.
13047    # Note that $ac_compile itself does not contain backslashes and begins
13048    # with a dollar sign (not a hyphen), so the echo should work correctly.
13049    # The option is referenced via a variable to avoid confusing sed.
13050    lt_compile=`echo "$ac_compile" | $SED \
13051    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13052    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13053    -e 's:$: $lt_compiler_flag:'`
13054    (eval echo "\"\$as_me:13054: $lt_compile\"" >&5)
13055    (eval "$lt_compile" 2>conftest.err)
13056    ac_status=$?
13057    cat conftest.err >&5
13058    echo "$as_me:13058: \$? = $ac_status" >&5
13059    if (exit $ac_status) && test -s "$ac_outfile"; then
13060      # The compiler can only warn and ignore the option if not recognized
13061      # So say no if there are warnings
13062      if test ! -s conftest.err; then
13063        lt_prog_compiler_pic_works_F77=yes
13064      fi
13065    fi
13066    $rm conftest*
13067
13068 fi
13069 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13070 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13071
13072 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13073     case $lt_prog_compiler_pic_F77 in
13074      "" | " "*) ;;
13075      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13076      esac
13077 else
13078     lt_prog_compiler_pic_F77=
13079      lt_prog_compiler_can_build_shared_F77=no
13080 fi
13081
13082 fi
13083 case "$host_os" in
13084   # For platforms which do not support PIC, -DPIC is meaningless:
13085   *djgpp*)
13086     lt_prog_compiler_pic_F77=
13087     ;;
13088   *)
13089     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13090     ;;
13091 esac
13092
13093 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13094 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13095 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13096   echo $ECHO_N "(cached) $ECHO_C" >&6
13097 else
13098   lt_cv_prog_compiler_c_o_F77=no
13099    $rm -r conftest 2>/dev/null
13100    mkdir conftest
13101    cd conftest
13102    mkdir out
13103    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13104
13105    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13106    # that will create temporary files in the current directory regardless of
13107    # the output directory.  Thus, making CWD read-only will cause this test
13108    # to fail, enabling locking or at least warning the user not to do parallel
13109    # builds.
13110    chmod -w .
13111
13112    lt_compiler_flag="-o out/conftest2.$ac_objext"
13113    # Insert the option either (1) after the last *FLAGS variable, or
13114    # (2) before a word containing "conftest.", or (3) at the end.
13115    # Note that $ac_compile itself does not contain backslashes and begins
13116    # with a dollar sign (not a hyphen), so the echo should work correctly.
13117    lt_compile=`echo "$ac_compile" | $SED \
13118    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13120    -e 's:$: $lt_compiler_flag:'`
13121    (eval echo "\"\$as_me:13121: $lt_compile\"" >&5)
13122    (eval "$lt_compile" 2>out/conftest.err)
13123    ac_status=$?
13124    cat out/conftest.err >&5
13125    echo "$as_me:13125: \$? = $ac_status" >&5
13126    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13127    then
13128      # The compiler can only warn and ignore the option if not recognized
13129      # So say no if there are warnings
13130      if test ! -s out/conftest.err; then
13131        lt_cv_prog_compiler_c_o_F77=yes
13132      fi
13133    fi
13134    chmod u+w .
13135    $rm conftest* out/*
13136    rmdir out
13137    cd ..
13138    rmdir conftest
13139    $rm conftest*
13140
13141 fi
13142 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13143 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13144
13145
13146 hard_links="nottested"
13147 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13148   # do not overwrite the value of need_locks provided by the user
13149   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13150 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13151   hard_links=yes
13152   $rm conftest*
13153   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13154   touch conftest.a
13155   ln conftest.a conftest.b 2>&5 || hard_links=no
13156   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13157   echo "$as_me:$LINENO: result: $hard_links" >&5
13158 echo "${ECHO_T}$hard_links" >&6
13159   if test "$hard_links" = no; then
13160     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13161 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13162     need_locks=warn
13163   fi
13164 else
13165   need_locks=no
13166 fi
13167
13168 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13169 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13170
13171   runpath_var=
13172   allow_undefined_flag_F77=
13173   enable_shared_with_static_runtimes_F77=no
13174   archive_cmds_F77=
13175   archive_expsym_cmds_F77=
13176   old_archive_From_new_cmds_F77=
13177   old_archive_from_expsyms_cmds_F77=
13178   export_dynamic_flag_spec_F77=
13179   whole_archive_flag_spec_F77=
13180   thread_safe_flag_spec_F77=
13181   hardcode_libdir_flag_spec_F77=
13182   hardcode_libdir_flag_spec_ld_F77=
13183   hardcode_libdir_separator_F77=
13184   hardcode_direct_F77=no
13185   hardcode_minus_L_F77=no
13186   hardcode_shlibpath_var_F77=unsupported
13187   link_all_deplibs_F77=unknown
13188   hardcode_automatic_F77=no
13189   module_cmds_F77=
13190   module_expsym_cmds_F77=
13191   always_export_symbols_F77=no
13192   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13193   # include_expsyms should be a list of space-separated symbols to be *always*
13194   # included in the symbol list
13195   include_expsyms_F77=
13196   # exclude_expsyms can be an extended regexp of symbols to exclude
13197   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13198   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13199   # as well as any symbol that contains `d'.
13200   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13201   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13202   # platforms (ab)use it in PIC code, but their linkers get confused if
13203   # the symbol is explicitly referenced.  Since portable code cannot
13204   # rely on this symbol name, it's probably fine to never include it in
13205   # preloaded symbol tables.
13206   extract_expsyms_cmds=
13207
13208   case $host_os in
13209   cygwin* | mingw* | pw32*)
13210     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13211     # When not using gcc, we currently assume that we are using
13212     # Microsoft Visual C++.
13213     if test "$GCC" != yes; then
13214       with_gnu_ld=no
13215     fi
13216     ;;
13217   openbsd*)
13218     with_gnu_ld=no
13219     ;;
13220   esac
13221
13222   ld_shlibs_F77=yes
13223   if test "$with_gnu_ld" = yes; then
13224     # If archive_cmds runs LD, not CC, wlarc should be empty
13225     wlarc='${wl}'
13226
13227     # See if GNU ld supports shared libraries.
13228     case $host_os in
13229     aix3* | aix4* | aix5*)
13230       # On AIX/PPC, the GNU linker is very broken
13231       if test "$host_cpu" != ia64; then
13232         ld_shlibs_F77=no
13233         cat <<EOF 1>&2
13234
13235 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13236 *** to be unable to reliably create shared libraries on AIX.
13237 *** Therefore, libtool is disabling shared libraries support.  If you
13238 *** really care for shared libraries, you may want to modify your PATH
13239 *** so that a non-GNU linker is found, and then restart.
13240
13241 EOF
13242       fi
13243       ;;
13244
13245     amigaos*)
13246       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)'
13247       hardcode_libdir_flag_spec_F77='-L$libdir'
13248       hardcode_minus_L_F77=yes
13249
13250       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13251       # that the semantics of dynamic libraries on AmigaOS, at least up
13252       # to version 4, is to share data among multiple programs linked
13253       # with the same dynamic library.  Since this doesn't match the
13254       # behavior of shared libraries on other platforms, we can't use
13255       # them.
13256       ld_shlibs_F77=no
13257       ;;
13258
13259     beos*)
13260       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13261         allow_undefined_flag_F77=unsupported
13262         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13263         # support --undefined.  This deserves some investigation.  FIXME
13264         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13265       else
13266         ld_shlibs_F77=no
13267       fi
13268       ;;
13269
13270     cygwin* | mingw* | pw32*)
13271       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13272       # as there is no search path for DLLs.
13273       hardcode_libdir_flag_spec_F77='-L$libdir'
13274       allow_undefined_flag_F77=unsupported
13275       always_export_symbols_F77=no
13276       enable_shared_with_static_runtimes_F77=yes
13277       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13278
13279       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13280         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13281         # If the export-symbols file already is a .def file (1st line
13282         # is EXPORTS), use it as is; otherwise, prepend...
13283         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13284           cp $export_symbols $output_objdir/$soname.def;
13285         else
13286           echo EXPORTS > $output_objdir/$soname.def;
13287           cat $export_symbols >> $output_objdir/$soname.def;
13288         fi~
13289         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13290       else
13291         ld_shlibs=no
13292       fi
13293       ;;
13294
13295     netbsd*)
13296       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13297         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13298         wlarc=
13299       else
13300         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13302       fi
13303       ;;
13304
13305     solaris* | sysv5*)
13306       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13307         ld_shlibs_F77=no
13308         cat <<EOF 1>&2
13309
13310 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13311 *** create shared libraries on Solaris systems.  Therefore, libtool
13312 *** is disabling shared libraries support.  We urge you to upgrade GNU
13313 *** binutils to release 2.9.1 or newer.  Another option is to modify
13314 *** your PATH or compiler configuration so that the native linker is
13315 *** used, and then restart.
13316
13317 EOF
13318       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13319         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13320         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13321       else
13322         ld_shlibs_F77=no
13323       fi
13324       ;;
13325
13326     sunos4*)
13327       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13328       wlarc=
13329       hardcode_direct_F77=yes
13330       hardcode_shlibpath_var_F77=no
13331       ;;
13332
13333     *)
13334       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13335         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13336         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13337       else
13338         ld_shlibs_F77=no
13339       fi
13340       ;;
13341     esac
13342
13343     if test "$ld_shlibs_F77" = yes; then
13344       runpath_var=LD_RUN_PATH
13345       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13346       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13347       # ancient GNU ld didn't support --whole-archive et. al.
13348       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13349         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13350       else
13351         whole_archive_flag_spec_F77=
13352       fi
13353     fi
13354   else
13355     # PORTME fill in a description of your system's linker (not GNU ld)
13356     case $host_os in
13357     aix3*)
13358       allow_undefined_flag_F77=unsupported
13359       always_export_symbols_F77=yes
13360       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'
13361       # Note: this linker hardcodes the directories in LIBPATH if there
13362       # are no directories specified by -L.
13363       hardcode_minus_L_F77=yes
13364       if test "$GCC" = yes && test -z "$link_static_flag"; then
13365         # Neither direct hardcoding nor static linking is supported with a
13366         # broken collect2.
13367         hardcode_direct_F77=unsupported
13368       fi
13369       ;;
13370
13371     aix4* | aix5*)
13372       if test "$host_cpu" = ia64; then
13373         # On IA64, the linker does run time linking by default, so we don't
13374         # have to do anything special.
13375         aix_use_runtimelinking=no
13376         exp_sym_flag='-Bexport'
13377         no_entry_flag=""
13378       else
13379         # If we're using GNU nm, then we don't want the "-C" option.
13380         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13381         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13382           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'
13383         else
13384           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'
13385         fi
13386         aix_use_runtimelinking=no
13387
13388         # Test if we are trying to use run time linking or normal
13389         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13390         # need to do runtime linking.
13391         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13392           for ld_flag in $LDFLAGS; do
13393           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13394             aix_use_runtimelinking=yes
13395             break
13396           fi
13397           done
13398         esac
13399
13400         exp_sym_flag='-bexport'
13401         no_entry_flag='-bnoentry'
13402       fi
13403
13404       # When large executables or shared objects are built, AIX ld can
13405       # have problems creating the table of contents.  If linking a library
13406       # or program results in "error TOC overflow" add -mminimal-toc to
13407       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13408       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13409
13410       archive_cmds_F77=''
13411       hardcode_direct_F77=yes
13412       hardcode_libdir_separator_F77=':'
13413       link_all_deplibs_F77=yes
13414
13415       if test "$GCC" = yes; then
13416         case $host_os in aix4.012|aix4.012.*)
13417         # We only want to do this on AIX 4.2 and lower, the check
13418         # below for broken collect2 doesn't work under 4.3+
13419           collect2name=`${CC} -print-prog-name=collect2`
13420           if test -f "$collect2name" && \
13421            strings "$collect2name" | grep resolve_lib_name >/dev/null
13422           then
13423           # We have reworked collect2
13424           hardcode_direct_F77=yes
13425           else
13426           # We have old collect2
13427           hardcode_direct_F77=unsupported
13428           # It fails to find uninstalled libraries when the uninstalled
13429           # path is not listed in the libpath.  Setting hardcode_minus_L
13430           # to unsupported forces relinking
13431           hardcode_minus_L_F77=yes
13432           hardcode_libdir_flag_spec_F77='-L$libdir'
13433           hardcode_libdir_separator_F77=
13434           fi
13435         esac
13436         shared_flag='-shared'
13437       else
13438         # not using gcc
13439         if test "$host_cpu" = ia64; then
13440         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13441         # chokes on -Wl,-G. The following line is correct:
13442           shared_flag='-G'
13443         else
13444         if test "$aix_use_runtimelinking" = yes; then
13445             shared_flag='${wl}-G'
13446           else
13447             shared_flag='${wl}-bM:SRE'
13448         fi
13449         fi
13450       fi
13451
13452       # It seems that -bexpall does not export symbols beginning with
13453       # underscore (_), so it is better to generate a list of symbols to export.
13454       always_export_symbols_F77=yes
13455       if test "$aix_use_runtimelinking" = yes; then
13456         # Warning - without using the other runtime loading flags (-brtl),
13457         # -berok will link without error, but may produce a broken library.
13458         allow_undefined_flag_F77='-berok'
13459        # Determine the default libpath from the value encoded in an empty executable.
13460        cat >conftest.$ac_ext <<_ACEOF
13461       program main
13462
13463       end
13464 _ACEOF
13465 rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13467   (eval $ac_link) 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } &&
13471          { ac_try='test -s conftest$ac_exeext'
13472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473   (eval $ac_try) 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); }; }; then
13477
13478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13479 }'`
13480 # Check for a 64-bit object if we didn't find anything.
13481 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; }
13482 }'`; fi
13483 else
13484   echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13486
13487 fi
13488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13490
13491        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13492         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"
13493        else
13494         if test "$host_cpu" = ia64; then
13495           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13496           allow_undefined_flag_F77="-z nodefs"
13497           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"
13498         else
13499          # Determine the default libpath from the value encoded in an empty executable.
13500          cat >conftest.$ac_ext <<_ACEOF
13501       program main
13502
13503       end
13504 _ACEOF
13505 rm -f conftest.$ac_objext conftest$ac_exeext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13507   (eval $ac_link) 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); } &&
13511          { ac_try='test -s conftest$ac_exeext'
13512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513   (eval $ac_try) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; }; then
13517
13518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13519 }'`
13520 # Check for a 64-bit object if we didn't find anything.
13521 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; }
13522 }'`; fi
13523 else
13524   echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 fi
13528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13529 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13530
13531          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13532           # Warning - without using the other run time loading flags,
13533           # -berok will link without error, but may produce a broken library.
13534           no_undefined_flag_F77=' ${wl}-bernotok'
13535           allow_undefined_flag_F77=' ${wl}-berok'
13536           # -bexpall does not export symbols beginning with underscore (_)
13537           always_export_symbols_F77=yes
13538           # Exported symbols can be pulled into shared objects from archives
13539           whole_archive_flag_spec_F77=' '
13540           archive_cmds_need_lc_F77=yes
13541           # This is similar to how AIX traditionally builds it's shared libraries.
13542           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'
13543         fi
13544       fi
13545       ;;
13546
13547     amigaos*)
13548       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)'
13549       hardcode_libdir_flag_spec_F77='-L$libdir'
13550       hardcode_minus_L_F77=yes
13551       # see comment about different semantics on the GNU ld section
13552       ld_shlibs_F77=no
13553       ;;
13554
13555     bsdi4*)
13556       export_dynamic_flag_spec_F77=-rdynamic
13557       ;;
13558
13559     cygwin* | mingw* | pw32*)
13560       # When not using gcc, we currently assume that we are using
13561       # Microsoft Visual C++.
13562       # hardcode_libdir_flag_spec is actually meaningless, as there is
13563       # no search path for DLLs.
13564       hardcode_libdir_flag_spec_F77=' '
13565       allow_undefined_flag_F77=unsupported
13566       # Tell ltmain to make .lib files, not .a files.
13567       libext=lib
13568       # Tell ltmain to make .dll files, not .so files.
13569       shrext=".dll"
13570       # FIXME: Setting linknames here is a bad hack.
13571       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13572       # The linker will automatically build a .lib file if we build a DLL.
13573       old_archive_From_new_cmds_F77='true'
13574       # FIXME: Should let the user specify the lib program.
13575       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13576       fix_srcfile_path='`cygpath -w "$srcfile"`'
13577       enable_shared_with_static_runtimes_F77=yes
13578       ;;
13579
13580     darwin* | rhapsody*)
13581     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13582       archive_cmds_need_lc_F77=no
13583       case "$host_os" in
13584       rhapsody* | darwin1.[012])
13585         allow_undefined_flag_F77='-undefined suppress'
13586         ;;
13587       *) # Darwin 1.3 on
13588         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13589         ;;
13590       esac
13591       # FIXME: Relying on posixy $() will cause problems for
13592       #        cross-compilation, but unfortunately the echo tests do not
13593       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13594       #        `"' quotes if we put them in here... so don't!
13595         lt_int_apple_cc_single_mod=no
13596         output_verbose_link_cmd='echo'
13597         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13598           lt_int_apple_cc_single_mod=yes
13599         fi
13600         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13601           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13602         else
13603         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'
13604       fi
13605       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13606       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13607         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13608           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}'
13609         else
13610           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}'
13611         fi
13612           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}'
13613       hardcode_direct_F77=no
13614       hardcode_automatic_F77=yes
13615       hardcode_shlibpath_var_F77=unsupported
13616       whole_archive_flag_spec_F77='-all_load $convenience'
13617       link_all_deplibs_F77=yes
13618     fi
13619       ;;
13620
13621     dgux*)
13622       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13623       hardcode_libdir_flag_spec_F77='-L$libdir'
13624       hardcode_shlibpath_var_F77=no
13625       ;;
13626
13627     freebsd1*)
13628       ld_shlibs_F77=no
13629       ;;
13630
13631     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13632     # support.  Future versions do this automatically, but an explicit c++rt0.o
13633     # does not break anything, and helps significantly (at the cost of a little
13634     # extra space).
13635     freebsd2.2*)
13636       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13637       hardcode_libdir_flag_spec_F77='-R$libdir'
13638       hardcode_direct_F77=yes
13639       hardcode_shlibpath_var_F77=no
13640       ;;
13641
13642     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13643     freebsd2*)
13644       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13645       hardcode_direct_F77=yes
13646       hardcode_minus_L_F77=yes
13647       hardcode_shlibpath_var_F77=no
13648       ;;
13649
13650     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13651     freebsd*)
13652       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13653       hardcode_libdir_flag_spec_F77='-R$libdir'
13654       hardcode_direct_F77=yes
13655       hardcode_shlibpath_var_F77=no
13656       ;;
13657
13658     hpux9*)
13659       if test "$GCC" = yes; then
13660         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'
13661       else
13662         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'
13663       fi
13664       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13665       hardcode_libdir_separator_F77=:
13666       hardcode_direct_F77=yes
13667
13668       # hardcode_minus_L: Not really in the search PATH,
13669       # but as the default location of the library.
13670       hardcode_minus_L_F77=yes
13671       export_dynamic_flag_spec_F77='${wl}-E'
13672       ;;
13673
13674     hpux10* | hpux11*)
13675       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13676         case "$host_cpu" in
13677         hppa*64*|ia64*)
13678           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13679           ;;
13680         *)
13681           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13682           ;;
13683         esac
13684       else
13685         case "$host_cpu" in
13686         hppa*64*|ia64*)
13687           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13688           ;;
13689         *)
13690           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13691           ;;
13692         esac
13693       fi
13694       if test "$with_gnu_ld" = no; then
13695         case "$host_cpu" in
13696         hppa*64*)
13697           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13698           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13699           hardcode_libdir_separator_F77=:
13700           hardcode_direct_F77=no
13701           hardcode_shlibpath_var_F77=no
13702           ;;
13703         ia64*)
13704           hardcode_libdir_flag_spec_F77='-L$libdir'
13705           hardcode_direct_F77=no
13706           hardcode_shlibpath_var_F77=no
13707
13708           # hardcode_minus_L: Not really in the search PATH,
13709           # but as the default location of the library.
13710           hardcode_minus_L_F77=yes
13711           ;;
13712         *)
13713           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13714           hardcode_libdir_separator_F77=:
13715           hardcode_direct_F77=yes
13716           export_dynamic_flag_spec_F77='${wl}-E'
13717
13718           # hardcode_minus_L: Not really in the search PATH,
13719           # but as the default location of the library.
13720           hardcode_minus_L_F77=yes
13721           ;;
13722         esac
13723       fi
13724       ;;
13725
13726     irix5* | irix6* | nonstopux*)
13727       if test "$GCC" = yes; then
13728         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'
13729       else
13730         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'
13731         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13732       fi
13733       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13734       hardcode_libdir_separator_F77=:
13735       link_all_deplibs_F77=yes
13736       ;;
13737
13738     netbsd*)
13739       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13740         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13741       else
13742         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13743       fi
13744       hardcode_libdir_flag_spec_F77='-R$libdir'
13745       hardcode_direct_F77=yes
13746       hardcode_shlibpath_var_F77=no
13747       ;;
13748
13749     newsos6)
13750       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13751       hardcode_direct_F77=yes
13752       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13753       hardcode_libdir_separator_F77=:
13754       hardcode_shlibpath_var_F77=no
13755       ;;
13756
13757     openbsd*)
13758       hardcode_direct_F77=yes
13759       hardcode_shlibpath_var_F77=no
13760       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13761         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13762         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13763         export_dynamic_flag_spec_F77='${wl}-E'
13764       else
13765        case $host_os in
13766          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13767            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13768            hardcode_libdir_flag_spec_F77='-R$libdir'
13769            ;;
13770          *)
13771            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13772            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13773            ;;
13774        esac
13775       fi
13776       ;;
13777
13778     os2*)
13779       hardcode_libdir_flag_spec_F77='-L$libdir'
13780       hardcode_minus_L_F77=yes
13781       allow_undefined_flag_F77=unsupported
13782       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'
13783       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13784       ;;
13785
13786     osf3*)
13787       if test "$GCC" = yes; then
13788         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13789         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'
13790       else
13791         allow_undefined_flag_F77=' -expect_unresolved \*'
13792         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'
13793       fi
13794       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13795       hardcode_libdir_separator_F77=:
13796       ;;
13797
13798     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13799       if test "$GCC" = yes; then
13800         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13801         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'
13802         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13803       else
13804         allow_undefined_flag_F77=' -expect_unresolved \*'
13805         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'
13806         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~
13807         $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'
13808
13809         # Both c and cxx compiler support -rpath directly
13810         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13811       fi
13812       hardcode_libdir_separator_F77=:
13813       ;;
13814
13815     sco3.2v5*)
13816       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13817       hardcode_shlibpath_var_F77=no
13818       export_dynamic_flag_spec_F77='${wl}-Bexport'
13819       runpath_var=LD_RUN_PATH
13820       hardcode_runpath_var=yes
13821       ;;
13822
13823     solaris*)
13824       no_undefined_flag_F77=' -z text'
13825       if test "$GCC" = yes; then
13826         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13827         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13828           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13829       else
13830         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13831         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13832         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13833       fi
13834       hardcode_libdir_flag_spec_F77='-R$libdir'
13835       hardcode_shlibpath_var_F77=no
13836       case $host_os in
13837       solaris2.[0-5] | solaris2.[0-5].*) ;;
13838       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13839         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13840       esac
13841       link_all_deplibs_F77=yes
13842       ;;
13843
13844     sunos4*)
13845       if test "x$host_vendor" = xsequent; then
13846         # Use $CC to link under sequent, because it throws in some extra .o
13847         # files that make .init and .fini sections work.
13848         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13849       else
13850         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13851       fi
13852       hardcode_libdir_flag_spec_F77='-L$libdir'
13853       hardcode_direct_F77=yes
13854       hardcode_minus_L_F77=yes
13855       hardcode_shlibpath_var_F77=no
13856       ;;
13857
13858     sysv4)
13859       case $host_vendor in
13860         sni)
13861           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13862           hardcode_direct_F77=yes # is this really true???
13863         ;;
13864         siemens)
13865           ## LD is ld it makes a PLAMLIB
13866           ## CC just makes a GrossModule.
13867           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13868           reload_cmds_F77='$CC -r -o $output$reload_objs'
13869           hardcode_direct_F77=no
13870         ;;
13871         motorola)
13872           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13873           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13874         ;;
13875       esac
13876       runpath_var='LD_RUN_PATH'
13877       hardcode_shlibpath_var_F77=no
13878       ;;
13879
13880     sysv4.3*)
13881       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13882       hardcode_shlibpath_var_F77=no
13883       export_dynamic_flag_spec_F77='-Bexport'
13884       ;;
13885
13886     sysv4*MP*)
13887       if test -d /usr/nec; then
13888         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13889         hardcode_shlibpath_var_F77=no
13890         runpath_var=LD_RUN_PATH
13891         hardcode_runpath_var=yes
13892         ld_shlibs_F77=yes
13893       fi
13894       ;;
13895
13896     sysv4.2uw2*)
13897       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13898       hardcode_direct_F77=yes
13899       hardcode_minus_L_F77=no
13900       hardcode_shlibpath_var_F77=no
13901       hardcode_runpath_var=yes
13902       runpath_var=LD_RUN_PATH
13903       ;;
13904
13905    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13906       no_undefined_flag_F77='${wl}-z ${wl}text'
13907       if test "$GCC" = yes; then
13908         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13909       else
13910         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13911       fi
13912       runpath_var='LD_RUN_PATH'
13913       hardcode_shlibpath_var_F77=no
13914       ;;
13915
13916     sysv5*)
13917       no_undefined_flag_F77=' -z text'
13918       # $CC -shared without GNU ld will not create a library from C++
13919       # object files and a static libstdc++, better avoid it by now
13920       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13921       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13922                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13923       hardcode_libdir_flag_spec_F77=
13924       hardcode_shlibpath_var_F77=no
13925       runpath_var='LD_RUN_PATH'
13926       ;;
13927
13928     uts4*)
13929       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13930       hardcode_libdir_flag_spec_F77='-L$libdir'
13931       hardcode_shlibpath_var_F77=no
13932       ;;
13933
13934     *)
13935       ld_shlibs_F77=no
13936       ;;
13937     esac
13938   fi
13939
13940 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13941 echo "${ECHO_T}$ld_shlibs_F77" >&6
13942 test "$ld_shlibs_F77" = no && can_build_shared=no
13943
13944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13945 if test "$GCC" = yes; then
13946   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13947 fi
13948
13949 #
13950 # Do we need to explicitly link libc?
13951 #
13952 case "x$archive_cmds_need_lc_F77" in
13953 x|xyes)
13954   # Assume -lc should be added
13955   archive_cmds_need_lc_F77=yes
13956
13957   if test "$enable_shared" = yes && test "$GCC" = yes; then
13958     case $archive_cmds_F77 in
13959     *'~'*)
13960       # FIXME: we may have to deal with multi-command sequences.
13961       ;;
13962     '$CC '*)
13963       # Test whether the compiler implicitly links with -lc since on some
13964       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13965       # to ld, don't add -lc before -lgcc.
13966       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13967 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13968       $rm conftest*
13969       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13970
13971       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13972   (eval $ac_compile) 2>&5
13973   ac_status=$?
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); } 2>conftest.err; then
13976         soname=conftest
13977         lib=conftest
13978         libobjs=conftest.$ac_objext
13979         deplibs=
13980         wl=$lt_prog_compiler_wl_F77
13981         compiler_flags=-v
13982         linker_flags=-v
13983         verstring=
13984         output_objdir=.
13985         libname=conftest
13986         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13987         allow_undefined_flag_F77=
13988         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13989   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13990   ac_status=$?
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }
13993         then
13994           archive_cmds_need_lc_F77=no
13995         else
13996           archive_cmds_need_lc_F77=yes
13997         fi
13998         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13999       else
14000         cat conftest.err 1>&5
14001       fi
14002       $rm conftest*
14003       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14004 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14005       ;;
14006     esac
14007   fi
14008   ;;
14009 esac
14010
14011 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14012 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14013 hardcode_action_F77=
14014 if test -n "$hardcode_libdir_flag_spec_F77" || \
14015    test -n "$runpath_var F77" || \
14016    test "X$hardcode_automatic_F77"="Xyes" ; then
14017
14018   # We can hardcode non-existant directories.
14019   if test "$hardcode_direct_F77" != no &&
14020      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14021      # have to relink, otherwise we might link with an installed library
14022      # when we should be linking with a yet-to-be-installed one
14023      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14024      test "$hardcode_minus_L_F77" != no; then
14025     # Linking always hardcodes the temporary library directory.
14026     hardcode_action_F77=relink
14027   else
14028     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14029     hardcode_action_F77=immediate
14030   fi
14031 else
14032   # We cannot hardcode anything, or else we can only hardcode existing
14033   # directories.
14034   hardcode_action_F77=unsupported
14035 fi
14036 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14037 echo "${ECHO_T}$hardcode_action_F77" >&6
14038
14039 if test "$hardcode_action_F77" = relink; then
14040   # Fast installation is not supported
14041   enable_fast_install=no
14042 elif test "$shlibpath_overrides_runpath" = yes ||
14043      test "$enable_shared" = no; then
14044   # Fast installation is not necessary
14045   enable_fast_install=needless
14046 fi
14047
14048 striplib=
14049 old_striplib=
14050 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14051 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14052 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14053   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14054   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14055   echo "$as_me:$LINENO: result: yes" >&5
14056 echo "${ECHO_T}yes" >&6
14057 else
14058 # FIXME - insert some real tests, host_os isn't really good enough
14059   case $host_os in
14060    darwin*)
14061        if test -n "$STRIP" ; then
14062          striplib="$STRIP -x"
14063          echo "$as_me:$LINENO: result: yes" >&5
14064 echo "${ECHO_T}yes" >&6
14065        else
14066   echo "$as_me:$LINENO: result: no" >&5
14067 echo "${ECHO_T}no" >&6
14068 fi
14069        ;;
14070    *)
14071   echo "$as_me:$LINENO: result: no" >&5
14072 echo "${ECHO_T}no" >&6
14073     ;;
14074   esac
14075 fi
14076
14077 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14078 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14079 library_names_spec=
14080 libname_spec='lib$name'
14081 soname_spec=
14082 shrext=".so"
14083 postinstall_cmds=
14084 postuninstall_cmds=
14085 finish_cmds=
14086 finish_eval=
14087 shlibpath_var=
14088 shlibpath_overrides_runpath=unknown
14089 version_type=none
14090 dynamic_linker="$host_os ld.so"
14091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14092 if test "$GCC" = yes; then
14093   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14094   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14095     # if the path contains ";" then we assume it to be the separator
14096     # otherwise default to the standard path separator (i.e. ":") - it is
14097     # assumed that no part of a normal pathname contains ";" but that should
14098     # okay in the real world where ";" in dirpaths is itself problematic.
14099     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14100   else
14101     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14102   fi
14103 else
14104   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14105 fi
14106 need_lib_prefix=unknown
14107 hardcode_into_libs=no
14108
14109 # when you set need_version to no, make sure it does not cause -set_version
14110 # flags to be left without arguments
14111 need_version=unknown
14112
14113 case $host_os in
14114 aix3*)
14115   version_type=linux
14116   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14117   shlibpath_var=LIBPATH
14118
14119   # AIX 3 has no versioning support, so we append a major version to the name.
14120   soname_spec='${libname}${release}${shared_ext}$major'
14121   ;;
14122
14123 aix4* | aix5*)
14124   version_type=linux
14125   need_lib_prefix=no
14126   need_version=no
14127   hardcode_into_libs=yes
14128   if test "$host_cpu" = ia64; then
14129     # AIX 5 supports IA64
14130     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14131     shlibpath_var=LD_LIBRARY_PATH
14132   else
14133     # With GCC up to 2.95.x, collect2 would create an import file
14134     # for dependence libraries.  The import file would start with
14135     # the line `#! .'.  This would cause the generated library to
14136     # depend on `.', always an invalid library.  This was fixed in
14137     # development snapshots of GCC prior to 3.0.
14138     case $host_os in
14139       aix4 | aix4.[01] | aix4.[01].*)
14140       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14141            echo ' yes '
14142            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14143         :
14144       else
14145         can_build_shared=no
14146       fi
14147       ;;
14148     esac
14149     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14150     # soname into executable. Probably we can add versioning support to
14151     # collect2, so additional links can be useful in future.
14152     if test "$aix_use_runtimelinking" = yes; then
14153       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14154       # instead of lib<name>.a to let people know that these are not
14155       # typical AIX shared libraries.
14156       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14157     else
14158       # We preserve .a as extension for shared libraries through AIX4.2
14159       # and later when we are not doing run time linking.
14160       library_names_spec='${libname}${release}.a $libname.a'
14161       soname_spec='${libname}${release}${shared_ext}$major'
14162     fi
14163     shlibpath_var=LIBPATH
14164   fi
14165   ;;
14166
14167 amigaos*)
14168   library_names_spec='$libname.ixlibrary $libname.a'
14169   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14170   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'
14171   ;;
14172
14173 beos*)
14174   library_names_spec='${libname}${shared_ext}'
14175   dynamic_linker="$host_os ld.so"
14176   shlibpath_var=LIBRARY_PATH
14177   ;;
14178
14179 bsdi4*)
14180   version_type=linux
14181   need_version=no
14182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183   soname_spec='${libname}${release}${shared_ext}$major'
14184   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14185   shlibpath_var=LD_LIBRARY_PATH
14186   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14187   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14188   # the default ld.so.conf also contains /usr/contrib/lib and
14189   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14190   # libtool to hard-code these into programs
14191   ;;
14192
14193 cygwin* | mingw* | pw32*)
14194   version_type=windows
14195   shrext=".dll"
14196   need_version=no
14197   need_lib_prefix=no
14198
14199   case $GCC,$host_os in
14200   yes,cygwin* | yes,mingw* | yes,pw32*)
14201     library_names_spec='$libname.dll.a'
14202     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14203     postinstall_cmds='base_file=`basename \${file}`~
14204       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14205       dldir=$destdir/`dirname \$dlpath`~
14206       test -d \$dldir || mkdir -p \$dldir~
14207       $install_prog $dir/$dlname \$dldir/$dlname'
14208     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14209       dlpath=$dir/\$dldll~
14210        $rm \$dlpath'
14211     shlibpath_overrides_runpath=yes
14212
14213     case $host_os in
14214     cygwin*)
14215       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14216       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14217       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14218       ;;
14219     mingw*)
14220       # MinGW DLLs use traditional 'lib' prefix
14221       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14222       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14223       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14224         # It is most probably a Windows format PATH printed by
14225         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14226         # path with ; separators, and with drive letters. We can handle the
14227         # drive letters (cygwin fileutils understands them), so leave them,
14228         # especially as we might pass files found there to a mingw objdump,
14229         # which wouldn't understand a cygwinified path. Ahh.
14230         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14231       else
14232         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14233       fi
14234       ;;
14235     pw32*)
14236       # pw32 DLLs use 'pw' prefix rather than 'lib'
14237       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14238       ;;
14239     esac
14240     ;;
14241
14242   *)
14243     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14244     ;;
14245   esac
14246   dynamic_linker='Win32 ld.exe'
14247   # FIXME: first we should search . and the directory the executable is in
14248   shlibpath_var=PATH
14249   ;;
14250
14251 darwin* | rhapsody*)
14252   dynamic_linker="$host_os dyld"
14253   version_type=darwin
14254   need_lib_prefix=no
14255   need_version=no
14256   # FIXME: Relying on posixy $() will cause problems for
14257   #        cross-compilation, but unfortunately the echo tests do not
14258   #        yet detect zsh echo's removal of \ escapes.
14259   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14260   soname_spec='${libname}${release}${major}$shared_ext'
14261   shlibpath_overrides_runpath=yes
14262   shlibpath_var=DYLD_LIBRARY_PATH
14263   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14264   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14265   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14266   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"`
14267   fi
14268   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14269   ;;
14270
14271 dgux*)
14272   version_type=linux
14273   need_lib_prefix=no
14274   need_version=no
14275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14276   soname_spec='${libname}${release}${shared_ext}$major'
14277   shlibpath_var=LD_LIBRARY_PATH
14278   ;;
14279
14280 freebsd1*)
14281   dynamic_linker=no
14282   ;;
14283
14284 freebsd*)
14285   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14286   version_type=freebsd-$objformat
14287   case $version_type in
14288     freebsd-elf*)
14289       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14290       need_version=no
14291       need_lib_prefix=no
14292       ;;
14293     freebsd-*)
14294       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14295       need_version=yes
14296       ;;
14297   esac
14298   shlibpath_var=LD_LIBRARY_PATH
14299   case $host_os in
14300   freebsd2*)
14301     shlibpath_overrides_runpath=yes
14302     ;;
14303   freebsd3.01* | freebsdelf3.01*)
14304     shlibpath_overrides_runpath=yes
14305     hardcode_into_libs=yes
14306     ;;
14307   *) # from 3.2 on
14308     shlibpath_overrides_runpath=no
14309     hardcode_into_libs=yes
14310     ;;
14311   esac
14312   ;;
14313
14314 gnu*)
14315   version_type=linux
14316   need_lib_prefix=no
14317   need_version=no
14318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14319   soname_spec='${libname}${release}${shared_ext}$major'
14320   shlibpath_var=LD_LIBRARY_PATH
14321   hardcode_into_libs=yes
14322   ;;
14323
14324 hpux9* | hpux10* | hpux11*)
14325   # Give a soname corresponding to the major version so that dld.sl refuses to
14326   # link against other versions.
14327   version_type=sunos
14328   need_lib_prefix=no
14329   need_version=no
14330   case "$host_cpu" in
14331   ia64*)
14332     shrext='.so'
14333     hardcode_into_libs=yes
14334     dynamic_linker="$host_os dld.so"
14335     shlibpath_var=LD_LIBRARY_PATH
14336     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338     soname_spec='${libname}${release}${shared_ext}$major'
14339     if test "X$HPUX_IA64_MODE" = X32; then
14340       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14341     else
14342       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14343     fi
14344     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14345     ;;
14346    hppa*64*)
14347      shrext='.sl'
14348      hardcode_into_libs=yes
14349      dynamic_linker="$host_os dld.sl"
14350      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14351      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14352      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14353      soname_spec='${libname}${release}${shared_ext}$major'
14354      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14355      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14356      ;;
14357    *)
14358     shrext='.sl'
14359     dynamic_linker="$host_os dld.sl"
14360     shlibpath_var=SHLIB_PATH
14361     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14363     soname_spec='${libname}${release}${shared_ext}$major'
14364     ;;
14365   esac
14366   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14367   postinstall_cmds='chmod 555 $lib'
14368   ;;
14369
14370 irix5* | irix6* | nonstopux*)
14371   case $host_os in
14372     nonstopux*) version_type=nonstopux ;;
14373     *)
14374         if test "$lt_cv_prog_gnu_ld" = yes; then
14375                 version_type=linux
14376         else
14377                 version_type=irix
14378         fi ;;
14379   esac
14380   need_lib_prefix=no
14381   need_version=no
14382   soname_spec='${libname}${release}${shared_ext}$major'
14383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14384   case $host_os in
14385   irix5* | nonstopux*)
14386     libsuff= shlibsuff=
14387     ;;
14388   *)
14389     case $LD in # libtool.m4 will add one of these switches to LD
14390     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14391       libsuff= shlibsuff= libmagic=32-bit;;
14392     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14393       libsuff=32 shlibsuff=N32 libmagic=N32;;
14394     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14395       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14396     *) libsuff= shlibsuff= libmagic=never-match;;
14397     esac
14398     ;;
14399   esac
14400   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14401   shlibpath_overrides_runpath=no
14402   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14403   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14404   hardcode_into_libs=yes
14405   ;;
14406
14407 # No shared lib support for Linux oldld, aout, or coff.
14408 linux*oldld* | linux*aout* | linux*coff*)
14409   dynamic_linker=no
14410   ;;
14411
14412 # This must be Linux ELF.
14413 linux*)
14414   version_type=linux
14415   need_lib_prefix=no
14416   need_version=no
14417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14418   soname_spec='${libname}${release}${shared_ext}$major'
14419   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14420   shlibpath_var=LD_LIBRARY_PATH
14421   shlibpath_overrides_runpath=no
14422   # This implies no fast_install, which is unacceptable.
14423   # Some rework will be needed to allow for fast_install
14424   # before this can be enabled.
14425   hardcode_into_libs=yes
14426
14427   # We used to test for /lib/ld.so.1 and disable shared libraries on
14428   # powerpc, because MkLinux only supported shared libraries with the
14429   # GNU dynamic linker.  Since this was broken with cross compilers,
14430   # most powerpc-linux boxes support dynamic linking these days and
14431   # people can always --disable-shared, the test was removed, and we
14432   # assume the GNU/Linux dynamic linker is in use.
14433   dynamic_linker='GNU/Linux ld.so'
14434   ;;
14435
14436 netbsd*)
14437   version_type=sunos
14438   need_lib_prefix=no
14439   need_version=no
14440   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14442     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14443     dynamic_linker='NetBSD (a.out) ld.so'
14444   else
14445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14446     soname_spec='${libname}${release}${shared_ext}$major'
14447     dynamic_linker='NetBSD ld.elf_so'
14448   fi
14449   shlibpath_var=LD_LIBRARY_PATH
14450   shlibpath_overrides_runpath=yes
14451   hardcode_into_libs=yes
14452   ;;
14453
14454 newsos6)
14455   version_type=linux
14456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457   shlibpath_var=LD_LIBRARY_PATH
14458   shlibpath_overrides_runpath=yes
14459   ;;
14460
14461 nto-qnx)
14462   version_type=linux
14463   need_lib_prefix=no
14464   need_version=no
14465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466   soname_spec='${libname}${release}${shared_ext}$major'
14467   shlibpath_var=LD_LIBRARY_PATH
14468   shlibpath_overrides_runpath=yes
14469   ;;
14470
14471 openbsd*)
14472   version_type=sunos
14473   need_lib_prefix=no
14474   need_version=no
14475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14476   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14477   shlibpath_var=LD_LIBRARY_PATH
14478   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14479     case $host_os in
14480       openbsd2.[89] | openbsd2.[89].*)
14481         shlibpath_overrides_runpath=no
14482         ;;
14483       *)
14484         shlibpath_overrides_runpath=yes
14485         ;;
14486       esac
14487   else
14488     shlibpath_overrides_runpath=yes
14489   fi
14490   ;;
14491
14492 os2*)
14493   libname_spec='$name'
14494   shrext=".dll"
14495   need_lib_prefix=no
14496   library_names_spec='$libname${shared_ext} $libname.a'
14497   dynamic_linker='OS/2 ld.exe'
14498   shlibpath_var=LIBPATH
14499   ;;
14500
14501 osf3* | osf4* | osf5*)
14502   version_type=osf
14503   need_lib_prefix=no
14504   need_version=no
14505   soname_spec='${libname}${release}${shared_ext}$major'
14506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507   shlibpath_var=LD_LIBRARY_PATH
14508   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14509   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14510   ;;
14511
14512 sco3.2v5*)
14513   version_type=osf
14514   soname_spec='${libname}${release}${shared_ext}$major'
14515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516   shlibpath_var=LD_LIBRARY_PATH
14517   ;;
14518
14519 solaris*)
14520   version_type=linux
14521   need_lib_prefix=no
14522   need_version=no
14523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524   soname_spec='${libname}${release}${shared_ext}$major'
14525   shlibpath_var=LD_LIBRARY_PATH
14526   shlibpath_overrides_runpath=yes
14527   hardcode_into_libs=yes
14528   # ldd complains unless libraries are executable
14529   postinstall_cmds='chmod +x $lib'
14530   ;;
14531
14532 sunos4*)
14533   version_type=sunos
14534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14535   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14536   shlibpath_var=LD_LIBRARY_PATH
14537   shlibpath_overrides_runpath=yes
14538   if test "$with_gnu_ld" = yes; then
14539     need_lib_prefix=no
14540   fi
14541   need_version=yes
14542   ;;
14543
14544 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14545   version_type=linux
14546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547   soname_spec='${libname}${release}${shared_ext}$major'
14548   shlibpath_var=LD_LIBRARY_PATH
14549   case $host_vendor in
14550     sni)
14551       shlibpath_overrides_runpath=no
14552       need_lib_prefix=no
14553       export_dynamic_flag_spec='${wl}-Blargedynsym'
14554       runpath_var=LD_RUN_PATH
14555       ;;
14556     siemens)
14557       need_lib_prefix=no
14558       ;;
14559     motorola)
14560       need_lib_prefix=no
14561       need_version=no
14562       shlibpath_overrides_runpath=no
14563       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14564       ;;
14565   esac
14566   ;;
14567
14568 sysv4*MP*)
14569   if test -d /usr/nec ;then
14570     version_type=linux
14571     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14572     soname_spec='$libname${shared_ext}.$major'
14573     shlibpath_var=LD_LIBRARY_PATH
14574   fi
14575   ;;
14576
14577 uts4*)
14578   version_type=linux
14579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580   soname_spec='${libname}${release}${shared_ext}$major'
14581   shlibpath_var=LD_LIBRARY_PATH
14582   ;;
14583
14584 *)
14585   dynamic_linker=no
14586   ;;
14587 esac
14588 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14589 echo "${ECHO_T}$dynamic_linker" >&6
14590 test "$dynamic_linker" = no && can_build_shared=no
14591
14592
14593 # The else clause should only fire when bootstrapping the
14594 # libtool distribution, otherwise you forgot to ship ltmain.sh
14595 # with your package, and you will get complaints that there are
14596 # no rules to generate ltmain.sh.
14597 if test -f "$ltmain"; then
14598   # See if we are running on zsh, and set the options which allow our commands through
14599   # without removal of \ escapes.
14600   if test -n "${ZSH_VERSION+set}" ; then
14601     setopt NO_GLOB_SUBST
14602   fi
14603   # Now quote all the things that may contain metacharacters while being
14604   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14605   # variables and quote the copies for generation of the libtool script.
14606   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14607     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14608     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14609     deplibs_check_method reload_flag reload_cmds need_locks \
14610     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14611     lt_cv_sys_global_symbol_to_c_name_address \
14612     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14613     old_postinstall_cmds old_postuninstall_cmds \
14614     compiler_F77 \
14615     CC_F77 \
14616     LD_F77 \
14617     lt_prog_compiler_wl_F77 \
14618     lt_prog_compiler_pic_F77 \
14619     lt_prog_compiler_static_F77 \
14620     lt_prog_compiler_no_builtin_flag_F77 \
14621     export_dynamic_flag_spec_F77 \
14622     thread_safe_flag_spec_F77 \
14623     whole_archive_flag_spec_F77 \
14624     enable_shared_with_static_runtimes_F77 \
14625     old_archive_cmds_F77 \
14626     old_archive_from_new_cmds_F77 \
14627     predep_objects_F77 \
14628     postdep_objects_F77 \
14629     predeps_F77 \
14630     postdeps_F77 \
14631     compiler_lib_search_path_F77 \
14632     archive_cmds_F77 \
14633     archive_expsym_cmds_F77 \
14634     postinstall_cmds_F77 \
14635     postuninstall_cmds_F77 \
14636     old_archive_from_expsyms_cmds_F77 \
14637     allow_undefined_flag_F77 \
14638     no_undefined_flag_F77 \
14639     export_symbols_cmds_F77 \
14640     hardcode_libdir_flag_spec_F77 \
14641     hardcode_libdir_flag_spec_ld_F77 \
14642     hardcode_libdir_separator_F77 \
14643     hardcode_automatic_F77 \
14644     module_cmds_F77 \
14645     module_expsym_cmds_F77 \
14646     lt_cv_prog_compiler_c_o_F77 \
14647     exclude_expsyms_F77 \
14648     include_expsyms_F77; do
14649
14650     case $var in
14651     old_archive_cmds_F77 | \
14652     old_archive_from_new_cmds_F77 | \
14653     archive_cmds_F77 | \
14654     archive_expsym_cmds_F77 | \
14655     module_cmds_F77 | \
14656     module_expsym_cmds_F77 | \
14657     old_archive_from_expsyms_cmds_F77 | \
14658     export_symbols_cmds_F77 | \
14659     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14660     postinstall_cmds | postuninstall_cmds | \
14661     old_postinstall_cmds | old_postuninstall_cmds | \
14662     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14663       # Double-quote double-evaled strings.
14664       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14665       ;;
14666     *)
14667       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14668       ;;
14669     esac
14670   done
14671
14672   case $lt_echo in
14673   *'\$0 --fallback-echo"')
14674     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14675     ;;
14676   esac
14677
14678 cfgfile="$ofile"
14679
14680   cat <<__EOF__ >> "$cfgfile"
14681 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14682
14683 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14684
14685 # Shell to use when invoking shell scripts.
14686 SHELL=$lt_SHELL
14687
14688 # Whether or not to build shared libraries.
14689 build_libtool_libs=$enable_shared
14690
14691 # Whether or not to build static libraries.
14692 build_old_libs=$enable_static
14693
14694 # Whether or not to add -lc for building shared libraries.
14695 build_libtool_need_lc=$archive_cmds_need_lc_F77
14696
14697 # Whether or not to disallow shared libs when runtime libs are static
14698 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14699
14700 # Whether or not to optimize for fast installation.
14701 fast_install=$enable_fast_install
14702
14703 # The host system.
14704 host_alias=$host_alias
14705 host=$host
14706
14707 # An echo program that does not interpret backslashes.
14708 echo=$lt_echo
14709
14710 # The archiver.
14711 AR=$lt_AR
14712 AR_FLAGS=$lt_AR_FLAGS
14713
14714 # A C compiler.
14715 LTCC=$lt_LTCC
14716
14717 # A language-specific compiler.
14718 CC=$lt_compiler_F77
14719
14720 # Is the compiler the GNU C compiler?
14721 with_gcc=$GCC_F77
14722
14723 # An ERE matcher.
14724 EGREP=$lt_EGREP
14725
14726 # The linker used to build libraries.
14727 LD=$lt_LD_F77
14728
14729 # Whether we need hard or soft links.
14730 LN_S=$lt_LN_S
14731
14732 # A BSD-compatible nm program.
14733 NM=$lt_NM
14734
14735 # A symbol stripping program
14736 STRIP=$STRIP
14737
14738 # Used to examine libraries when file_magic_cmd begins "file"
14739 MAGIC_CMD=$MAGIC_CMD
14740
14741 # Used on cygwin: DLL creation program.
14742 DLLTOOL="$DLLTOOL"
14743
14744 # Used on cygwin: object dumper.
14745 OBJDUMP="$OBJDUMP"
14746
14747 # Used on cygwin: assembler.
14748 AS="$AS"
14749
14750 # The name of the directory that contains temporary libtool files.
14751 objdir=$objdir
14752
14753 # How to create reloadable object files.
14754 reload_flag=$lt_reload_flag
14755 reload_cmds=$lt_reload_cmds
14756
14757 # How to pass a linker flag through the compiler.
14758 wl=$lt_lt_prog_compiler_wl_F77
14759
14760 # Object file suffix (normally "o").
14761 objext="$ac_objext"
14762
14763 # Old archive suffix (normally "a").
14764 libext="$libext"
14765
14766 # Shared library suffix (normally ".so").
14767 shrext='$shrext'
14768
14769 # Executable file suffix (normally "").
14770 exeext="$exeext"
14771
14772 # Additional compiler flags for building library objects.
14773 pic_flag=$lt_lt_prog_compiler_pic_F77
14774 pic_mode=$pic_mode
14775
14776 # What is the maximum length of a command?
14777 max_cmd_len=$lt_cv_sys_max_cmd_len
14778
14779 # Does compiler simultaneously support -c and -o options?
14780 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14781
14782 # Must we lock files when doing compilation ?
14783 need_locks=$lt_need_locks
14784
14785 # Do we need the lib prefix for modules?
14786 need_lib_prefix=$need_lib_prefix
14787
14788 # Do we need a version for libraries?
14789 need_version=$need_version
14790
14791 # Whether dlopen is supported.
14792 dlopen_support=$enable_dlopen
14793
14794 # Whether dlopen of programs is supported.
14795 dlopen_self=$enable_dlopen_self
14796
14797 # Whether dlopen of statically linked programs is supported.
14798 dlopen_self_static=$enable_dlopen_self_static
14799
14800 # Compiler flag to prevent dynamic linking.
14801 link_static_flag=$lt_lt_prog_compiler_static_F77
14802
14803 # Compiler flag to turn off builtin functions.
14804 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14805
14806 # Compiler flag to allow reflexive dlopens.
14807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14808
14809 # Compiler flag to generate shared objects directly from archives.
14810 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14811
14812 # Compiler flag to generate thread-safe objects.
14813 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14814
14815 # Library versioning type.
14816 version_type=$version_type
14817
14818 # Format of library name prefix.
14819 libname_spec=$lt_libname_spec
14820
14821 # List of archive names.  First name is the real one, the rest are links.
14822 # The last name is the one that the linker finds with -lNAME.
14823 library_names_spec=$lt_library_names_spec
14824
14825 # The coded name of the library, if different from the real name.
14826 soname_spec=$lt_soname_spec
14827
14828 # Commands used to build and install an old-style archive.
14829 RANLIB=$lt_RANLIB
14830 old_archive_cmds=$lt_old_archive_cmds_F77
14831 old_postinstall_cmds=$lt_old_postinstall_cmds
14832 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14833
14834 # Create an old-style archive from a shared archive.
14835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14836
14837 # Create a temporary old-style archive to link instead of a shared archive.
14838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14839
14840 # Commands used to build and install a shared archive.
14841 archive_cmds=$lt_archive_cmds_F77
14842 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14843 postinstall_cmds=$lt_postinstall_cmds
14844 postuninstall_cmds=$lt_postuninstall_cmds
14845
14846 # Commands used to build a loadable module (assumed same as above if empty)
14847 module_cmds=$lt_module_cmds_F77
14848 module_expsym_cmds=$lt_module_expsym_cmds_F77
14849
14850 # Commands to strip libraries.
14851 old_striplib=$lt_old_striplib
14852 striplib=$lt_striplib
14853
14854 # Dependencies to place before the objects being linked to create a
14855 # shared library.
14856 predep_objects=$lt_predep_objects_F77
14857
14858 # Dependencies to place after the objects being linked to create a
14859 # shared library.
14860 postdep_objects=$lt_postdep_objects_F77
14861
14862 # Dependencies to place before the objects being linked to create a
14863 # shared library.
14864 predeps=$lt_predeps_F77
14865
14866 # Dependencies to place after the objects being linked to create a
14867 # shared library.
14868 postdeps=$lt_postdeps_F77
14869
14870 # The library search path used internally by the compiler when linking
14871 # a shared library.
14872 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14873
14874 # Method to check whether dependent libraries are shared objects.
14875 deplibs_check_method=$lt_deplibs_check_method
14876
14877 # Command to use when deplibs_check_method == file_magic.
14878 file_magic_cmd=$lt_file_magic_cmd
14879
14880 # Flag that allows shared libraries with undefined symbols to be built.
14881 allow_undefined_flag=$lt_allow_undefined_flag_F77
14882
14883 # Flag that forces no undefined symbols.
14884 no_undefined_flag=$lt_no_undefined_flag_F77
14885
14886 # Commands used to finish a libtool library installation in a directory.
14887 finish_cmds=$lt_finish_cmds
14888
14889 # Same as above, but a single script fragment to be evaled but not shown.
14890 finish_eval=$lt_finish_eval
14891
14892 # Take the output of nm and produce a listing of raw symbols and C names.
14893 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14894
14895 # Transform the output of nm in a proper C declaration
14896 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14897
14898 # Transform the output of nm in a C name address pair
14899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14900
14901 # This is the shared library runtime path variable.
14902 runpath_var=$runpath_var
14903
14904 # This is the shared library path variable.
14905 shlibpath_var=$shlibpath_var
14906
14907 # Is shlibpath searched before the hard-coded library search path?
14908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14909
14910 # How to hardcode a shared library path into an executable.
14911 hardcode_action=$hardcode_action_F77
14912
14913 # Whether we should hardcode library paths into libraries.
14914 hardcode_into_libs=$hardcode_into_libs
14915
14916 # Flag to hardcode \$libdir into a binary during linking.
14917 # This must work even if \$libdir does not exist.
14918 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14919
14920 # If ld is used when linking, flag to hardcode \$libdir into
14921 # a binary during linking. This must work even if \$libdir does
14922 # not exist.
14923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14924
14925 # Whether we need a single -rpath flag with a separated argument.
14926 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14927
14928 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14929 # resulting binary.
14930 hardcode_direct=$hardcode_direct_F77
14931
14932 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14933 # resulting binary.
14934 hardcode_minus_L=$hardcode_minus_L_F77
14935
14936 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14937 # the resulting binary.
14938 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14939
14940 # Set to yes if building a shared library automatically hardcodes DIR into the library
14941 # and all subsequent libraries and executables linked against it.
14942 hardcode_automatic=$hardcode_automatic_F77
14943
14944 # Variables whose values should be saved in libtool wrapper scripts and
14945 # restored at relink time.
14946 variables_saved_for_relink="$variables_saved_for_relink"
14947
14948 # Whether libtool must link a program against all its dependency libraries.
14949 link_all_deplibs=$link_all_deplibs_F77
14950
14951 # Compile-time system search path for libraries
14952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14953
14954 # Run-time system search path for libraries
14955 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14956
14957 # Fix the shell variable \$srcfile for the compiler.
14958 fix_srcfile_path="$fix_srcfile_path_F77"
14959
14960 # Set to yes if exported symbols are required.
14961 always_export_symbols=$always_export_symbols_F77
14962
14963 # The commands to list exported symbols.
14964 export_symbols_cmds=$lt_export_symbols_cmds_F77
14965
14966 # The commands to extract the exported symbol list from a shared archive.
14967 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14968
14969 # Symbols that should not be listed in the preloaded symbols.
14970 exclude_expsyms=$lt_exclude_expsyms_F77
14971
14972 # Symbols that must always be exported.
14973 include_expsyms=$lt_include_expsyms_F77
14974
14975 # ### END LIBTOOL TAG CONFIG: $tagname
14976
14977 __EOF__
14978
14979
14980 else
14981   # If there is no Makefile yet, we rely on a make rule to execute
14982   # `config.status --recheck' to rerun these tests and create the
14983   # libtool script then.
14984   test -f Makefile && make "$ltmain"
14985 fi
14986
14987
14988 ac_ext=c
14989 ac_cpp='$CPP $CPPFLAGS'
14990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14993
14994 CC="$lt_save_CC"
14995
14996         else
14997           tagname=""
14998         fi
14999         ;;
15000
15001       GCJ)
15002         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15003
15004
15005
15006 # Source file extension for Java test sources.
15007 ac_ext=java
15008
15009 # Object file extension for compiled Java test sources.
15010 objext=o
15011 objext_GCJ=$objext
15012
15013 # Code to be used in simple compile tests
15014 lt_simple_compile_test_code="class foo {}\n"
15015
15016 # Code to be used in simple link tests
15017 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15018
15019 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15020
15021 # If no C compiler was specified, use CC.
15022 LTCC=${LTCC-"$CC"}
15023
15024 # Allow CC to be a program name with arguments.
15025 compiler=$CC
15026
15027
15028 # Allow CC to be a program name with arguments.
15029 lt_save_CC="$CC"
15030 CC=${GCJ-"gcj"}
15031 compiler=$CC
15032 compiler_GCJ=$CC
15033
15034 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15035 archive_cmds_need_lc_GCJ=no
15036
15037 ## CAVEAT EMPTOR:
15038 ## There is no encapsulation within the following macros, do not change
15039 ## the running order or otherwise move them around unless you know exactly
15040 ## what you are doing...
15041
15042 lt_prog_compiler_no_builtin_flag_GCJ=
15043
15044 if test "$GCC" = yes; then
15045   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15046
15047   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15048 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15049 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052   lt_cv_prog_compiler_rtti_exceptions=no
15053   ac_outfile=conftest.$ac_objext
15054    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15055    lt_compiler_flag="-fno-rtti -fno-exceptions"
15056    # Insert the option either (1) after the last *FLAGS variable, or
15057    # (2) before a word containing "conftest.", or (3) at the end.
15058    # Note that $ac_compile itself does not contain backslashes and begins
15059    # with a dollar sign (not a hyphen), so the echo should work correctly.
15060    # The option is referenced via a variable to avoid confusing sed.
15061    lt_compile=`echo "$ac_compile" | $SED \
15062    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15063    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15064    -e 's:$: $lt_compiler_flag:'`
15065    (eval echo "\"\$as_me:15065: $lt_compile\"" >&5)
15066    (eval "$lt_compile" 2>conftest.err)
15067    ac_status=$?
15068    cat conftest.err >&5
15069    echo "$as_me:15069: \$? = $ac_status" >&5
15070    if (exit $ac_status) && test -s "$ac_outfile"; then
15071      # The compiler can only warn and ignore the option if not recognized
15072      # So say no if there are warnings
15073      if test ! -s conftest.err; then
15074        lt_cv_prog_compiler_rtti_exceptions=yes
15075      fi
15076    fi
15077    $rm conftest*
15078
15079 fi
15080 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15081 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15082
15083 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15084     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15085 else
15086     :
15087 fi
15088
15089 fi
15090
15091 lt_prog_compiler_wl_GCJ=
15092 lt_prog_compiler_pic_GCJ=
15093 lt_prog_compiler_static_GCJ=
15094
15095 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15096 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15097
15098   if test "$GCC" = yes; then
15099     lt_prog_compiler_wl_GCJ='-Wl,'
15100     lt_prog_compiler_static_GCJ='-static'
15101
15102     case $host_os in
15103       aix*)
15104       # All AIX code is PIC.
15105       if test "$host_cpu" = ia64; then
15106         # AIX 5 now supports IA64 processor
15107         lt_prog_compiler_static_GCJ='-Bstatic'
15108       fi
15109       ;;
15110
15111     amigaos*)
15112       # FIXME: we need at least 68020 code to build shared libraries, but
15113       # adding the `-m68020' flag to GCC prevents building anything better,
15114       # like `-m68040'.
15115       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15116       ;;
15117
15118     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15119       # PIC is the default for these OSes.
15120       ;;
15121
15122     mingw* | pw32* | os2*)
15123       # This hack is so that the source file can tell whether it is being
15124       # built for inclusion in a dll (and should export symbols for example).
15125       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15126       ;;
15127
15128     darwin* | rhapsody*)
15129       # PIC is the default on this platform
15130       # Common symbols not allowed in MH_DYLIB files
15131       lt_prog_compiler_pic_GCJ='-fno-common'
15132       ;;
15133
15134     msdosdjgpp*)
15135       # Just because we use GCC doesn't mean we suddenly get shared libraries
15136       # on systems that don't support them.
15137       lt_prog_compiler_can_build_shared_GCJ=no
15138       enable_shared=no
15139       ;;
15140
15141     sysv4*MP*)
15142       if test -d /usr/nec; then
15143         lt_prog_compiler_pic_GCJ=-Kconform_pic
15144       fi
15145       ;;
15146
15147     hpux*)
15148       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15149       # not for PA HP-UX.
15150       case "$host_cpu" in
15151       hppa*64*|ia64*)
15152         # +Z the default
15153         ;;
15154       *)
15155         lt_prog_compiler_pic_GCJ='-fPIC'
15156         ;;
15157       esac
15158       ;;
15159
15160     *)
15161       lt_prog_compiler_pic_GCJ='-fPIC'
15162       ;;
15163     esac
15164   else
15165     # PORTME Check for flag to pass linker flags through the system compiler.
15166     case $host_os in
15167     aix*)
15168       lt_prog_compiler_wl_GCJ='-Wl,'
15169       if test "$host_cpu" = ia64; then
15170         # AIX 5 now supports IA64 processor
15171         lt_prog_compiler_static_GCJ='-Bstatic'
15172       else
15173         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15174       fi
15175       ;;
15176
15177     mingw* | pw32* | os2*)
15178       # This hack is so that the source file can tell whether it is being
15179       # built for inclusion in a dll (and should export symbols for example).
15180       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15181       ;;
15182
15183     hpux9* | hpux10* | hpux11*)
15184       lt_prog_compiler_wl_GCJ='-Wl,'
15185       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15186       # not for PA HP-UX.
15187       case "$host_cpu" in
15188       hppa*64*|ia64*)
15189         # +Z the default
15190         ;;
15191       *)
15192         lt_prog_compiler_pic_GCJ='+Z'
15193         ;;
15194       esac
15195       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15196       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15197       ;;
15198
15199     irix5* | irix6* | nonstopux*)
15200       lt_prog_compiler_wl_GCJ='-Wl,'
15201       # PIC (with -KPIC) is the default.
15202       lt_prog_compiler_static_GCJ='-non_shared'
15203       ;;
15204
15205     newsos6)
15206       lt_prog_compiler_pic_GCJ='-KPIC'
15207       lt_prog_compiler_static_GCJ='-Bstatic'
15208       ;;
15209
15210     linux*)
15211       case $CC in
15212       icc|ecc)
15213         lt_prog_compiler_wl_GCJ='-Wl,'
15214         lt_prog_compiler_pic_GCJ='-KPIC'
15215         lt_prog_compiler_static_GCJ='-static'
15216         ;;
15217       ccc)
15218         lt_prog_compiler_wl_GCJ='-Wl,'
15219         # All Alpha code is PIC.
15220         lt_prog_compiler_static_GCJ='-non_shared'
15221         ;;
15222       esac
15223       ;;
15224
15225     osf3* | osf4* | osf5*)
15226       lt_prog_compiler_wl_GCJ='-Wl,'
15227       # All OSF/1 code is PIC.
15228       lt_prog_compiler_static_GCJ='-non_shared'
15229       ;;
15230
15231     sco3.2v5*)
15232       lt_prog_compiler_pic_GCJ='-Kpic'
15233       lt_prog_compiler_static_GCJ='-dn'
15234       ;;
15235
15236     solaris*)
15237       lt_prog_compiler_wl_GCJ='-Wl,'
15238       lt_prog_compiler_pic_GCJ='-KPIC'
15239       lt_prog_compiler_static_GCJ='-Bstatic'
15240       ;;
15241
15242     sunos4*)
15243       lt_prog_compiler_wl_GCJ='-Qoption ld '
15244       lt_prog_compiler_pic_GCJ='-PIC'
15245       lt_prog_compiler_static_GCJ='-Bstatic'
15246       ;;
15247
15248     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15249       lt_prog_compiler_wl_GCJ='-Wl,'
15250       lt_prog_compiler_pic_GCJ='-KPIC'
15251       lt_prog_compiler_static_GCJ='-Bstatic'
15252       ;;
15253
15254     sysv4*MP*)
15255       if test -d /usr/nec ;then
15256         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15257         lt_prog_compiler_static_GCJ='-Bstatic'
15258       fi
15259       ;;
15260
15261     uts4*)
15262       lt_prog_compiler_pic_GCJ='-pic'
15263       lt_prog_compiler_static_GCJ='-Bstatic'
15264       ;;
15265
15266     *)
15267       lt_prog_compiler_can_build_shared_GCJ=no
15268       ;;
15269     esac
15270   fi
15271
15272 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15273 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15274
15275 #
15276 # Check to make sure the PIC flag actually works.
15277 #
15278 if test -n "$lt_prog_compiler_pic_GCJ"; then
15279   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15280 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15281 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15282   echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284   lt_prog_compiler_pic_works_GCJ=no
15285   ac_outfile=conftest.$ac_objext
15286    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15287    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15288    # Insert the option either (1) after the last *FLAGS variable, or
15289    # (2) before a word containing "conftest.", or (3) at the end.
15290    # Note that $ac_compile itself does not contain backslashes and begins
15291    # with a dollar sign (not a hyphen), so the echo should work correctly.
15292    # The option is referenced via a variable to avoid confusing sed.
15293    lt_compile=`echo "$ac_compile" | $SED \
15294    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15295    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15296    -e 's:$: $lt_compiler_flag:'`
15297    (eval echo "\"\$as_me:15297: $lt_compile\"" >&5)
15298    (eval "$lt_compile" 2>conftest.err)
15299    ac_status=$?
15300    cat conftest.err >&5
15301    echo "$as_me:15301: \$? = $ac_status" >&5
15302    if (exit $ac_status) && test -s "$ac_outfile"; then
15303      # The compiler can only warn and ignore the option if not recognized
15304      # So say no if there are warnings
15305      if test ! -s conftest.err; then
15306        lt_prog_compiler_pic_works_GCJ=yes
15307      fi
15308    fi
15309    $rm conftest*
15310
15311 fi
15312 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15313 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15314
15315 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15316     case $lt_prog_compiler_pic_GCJ in
15317      "" | " "*) ;;
15318      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15319      esac
15320 else
15321     lt_prog_compiler_pic_GCJ=
15322      lt_prog_compiler_can_build_shared_GCJ=no
15323 fi
15324
15325 fi
15326 case "$host_os" in
15327   # For platforms which do not support PIC, -DPIC is meaningless:
15328   *djgpp*)
15329     lt_prog_compiler_pic_GCJ=
15330     ;;
15331   *)
15332     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15333     ;;
15334 esac
15335
15336 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15337 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15338 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15339   echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341   lt_cv_prog_compiler_c_o_GCJ=no
15342    $rm -r conftest 2>/dev/null
15343    mkdir conftest
15344    cd conftest
15345    mkdir out
15346    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15347
15348    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15349    # that will create temporary files in the current directory regardless of
15350    # the output directory.  Thus, making CWD read-only will cause this test
15351    # to fail, enabling locking or at least warning the user not to do parallel
15352    # builds.
15353    chmod -w .
15354
15355    lt_compiler_flag="-o out/conftest2.$ac_objext"
15356    # Insert the option either (1) after the last *FLAGS variable, or
15357    # (2) before a word containing "conftest.", or (3) at the end.
15358    # Note that $ac_compile itself does not contain backslashes and begins
15359    # with a dollar sign (not a hyphen), so the echo should work correctly.
15360    lt_compile=`echo "$ac_compile" | $SED \
15361    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15362    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15363    -e 's:$: $lt_compiler_flag:'`
15364    (eval echo "\"\$as_me:15364: $lt_compile\"" >&5)
15365    (eval "$lt_compile" 2>out/conftest.err)
15366    ac_status=$?
15367    cat out/conftest.err >&5
15368    echo "$as_me:15368: \$? = $ac_status" >&5
15369    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15370    then
15371      # The compiler can only warn and ignore the option if not recognized
15372      # So say no if there are warnings
15373      if test ! -s out/conftest.err; then
15374        lt_cv_prog_compiler_c_o_GCJ=yes
15375      fi
15376    fi
15377    chmod u+w .
15378    $rm conftest* out/*
15379    rmdir out
15380    cd ..
15381    rmdir conftest
15382    $rm conftest*
15383
15384 fi
15385 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15386 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15387
15388
15389 hard_links="nottested"
15390 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15391   # do not overwrite the value of need_locks provided by the user
15392   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15393 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15394   hard_links=yes
15395   $rm conftest*
15396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15397   touch conftest.a
15398   ln conftest.a conftest.b 2>&5 || hard_links=no
15399   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15400   echo "$as_me:$LINENO: result: $hard_links" >&5
15401 echo "${ECHO_T}$hard_links" >&6
15402   if test "$hard_links" = no; then
15403     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15404 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15405     need_locks=warn
15406   fi
15407 else
15408   need_locks=no
15409 fi
15410
15411 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15412 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15413
15414   runpath_var=
15415   allow_undefined_flag_GCJ=
15416   enable_shared_with_static_runtimes_GCJ=no
15417   archive_cmds_GCJ=
15418   archive_expsym_cmds_GCJ=
15419   old_archive_From_new_cmds_GCJ=
15420   old_archive_from_expsyms_cmds_GCJ=
15421   export_dynamic_flag_spec_GCJ=
15422   whole_archive_flag_spec_GCJ=
15423   thread_safe_flag_spec_GCJ=
15424   hardcode_libdir_flag_spec_GCJ=
15425   hardcode_libdir_flag_spec_ld_GCJ=
15426   hardcode_libdir_separator_GCJ=
15427   hardcode_direct_GCJ=no
15428   hardcode_minus_L_GCJ=no
15429   hardcode_shlibpath_var_GCJ=unsupported
15430   link_all_deplibs_GCJ=unknown
15431   hardcode_automatic_GCJ=no
15432   module_cmds_GCJ=
15433   module_expsym_cmds_GCJ=
15434   always_export_symbols_GCJ=no
15435   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15436   # include_expsyms should be a list of space-separated symbols to be *always*
15437   # included in the symbol list
15438   include_expsyms_GCJ=
15439   # exclude_expsyms can be an extended regexp of symbols to exclude
15440   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15441   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15442   # as well as any symbol that contains `d'.
15443   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15444   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15445   # platforms (ab)use it in PIC code, but their linkers get confused if
15446   # the symbol is explicitly referenced.  Since portable code cannot
15447   # rely on this symbol name, it's probably fine to never include it in
15448   # preloaded symbol tables.
15449   extract_expsyms_cmds=
15450
15451   case $host_os in
15452   cygwin* | mingw* | pw32*)
15453     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15454     # When not using gcc, we currently assume that we are using
15455     # Microsoft Visual C++.
15456     if test "$GCC" != yes; then
15457       with_gnu_ld=no
15458     fi
15459     ;;
15460   openbsd*)
15461     with_gnu_ld=no
15462     ;;
15463   esac
15464
15465   ld_shlibs_GCJ=yes
15466   if test "$with_gnu_ld" = yes; then
15467     # If archive_cmds runs LD, not CC, wlarc should be empty
15468     wlarc='${wl}'
15469
15470     # See if GNU ld supports shared libraries.
15471     case $host_os in
15472     aix3* | aix4* | aix5*)
15473       # On AIX/PPC, the GNU linker is very broken
15474       if test "$host_cpu" != ia64; then
15475         ld_shlibs_GCJ=no
15476         cat <<EOF 1>&2
15477
15478 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15479 *** to be unable to reliably create shared libraries on AIX.
15480 *** Therefore, libtool is disabling shared libraries support.  If you
15481 *** really care for shared libraries, you may want to modify your PATH
15482 *** so that a non-GNU linker is found, and then restart.
15483
15484 EOF
15485       fi
15486       ;;
15487
15488     amigaos*)
15489       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)'
15490       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15491       hardcode_minus_L_GCJ=yes
15492
15493       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15494       # that the semantics of dynamic libraries on AmigaOS, at least up
15495       # to version 4, is to share data among multiple programs linked
15496       # with the same dynamic library.  Since this doesn't match the
15497       # behavior of shared libraries on other platforms, we can't use
15498       # them.
15499       ld_shlibs_GCJ=no
15500       ;;
15501
15502     beos*)
15503       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15504         allow_undefined_flag_GCJ=unsupported
15505         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15506         # support --undefined.  This deserves some investigation.  FIXME
15507         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15508       else
15509         ld_shlibs_GCJ=no
15510       fi
15511       ;;
15512
15513     cygwin* | mingw* | pw32*)
15514       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15515       # as there is no search path for DLLs.
15516       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15517       allow_undefined_flag_GCJ=unsupported
15518       always_export_symbols_GCJ=no
15519       enable_shared_with_static_runtimes_GCJ=yes
15520       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15521
15522       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15523         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15524         # If the export-symbols file already is a .def file (1st line
15525         # is EXPORTS), use it as is; otherwise, prepend...
15526         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15527           cp $export_symbols $output_objdir/$soname.def;
15528         else
15529           echo EXPORTS > $output_objdir/$soname.def;
15530           cat $export_symbols >> $output_objdir/$soname.def;
15531         fi~
15532         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15533       else
15534         ld_shlibs=no
15535       fi
15536       ;;
15537
15538     netbsd*)
15539       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15540         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15541         wlarc=
15542       else
15543         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15544         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15545       fi
15546       ;;
15547
15548     solaris* | sysv5*)
15549       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15550         ld_shlibs_GCJ=no
15551         cat <<EOF 1>&2
15552
15553 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15554 *** create shared libraries on Solaris systems.  Therefore, libtool
15555 *** is disabling shared libraries support.  We urge you to upgrade GNU
15556 *** binutils to release 2.9.1 or newer.  Another option is to modify
15557 *** your PATH or compiler configuration so that the native linker is
15558 *** used, and then restart.
15559
15560 EOF
15561       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15562         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15563         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15564       else
15565         ld_shlibs_GCJ=no
15566       fi
15567       ;;
15568
15569     sunos4*)
15570       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15571       wlarc=
15572       hardcode_direct_GCJ=yes
15573       hardcode_shlibpath_var_GCJ=no
15574       ;;
15575
15576     *)
15577       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15578         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15579         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15580       else
15581         ld_shlibs_GCJ=no
15582       fi
15583       ;;
15584     esac
15585
15586     if test "$ld_shlibs_GCJ" = yes; then
15587       runpath_var=LD_RUN_PATH
15588       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15589       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15590       # ancient GNU ld didn't support --whole-archive et. al.
15591       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15592         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15593       else
15594         whole_archive_flag_spec_GCJ=
15595       fi
15596     fi
15597   else
15598     # PORTME fill in a description of your system's linker (not GNU ld)
15599     case $host_os in
15600     aix3*)
15601       allow_undefined_flag_GCJ=unsupported
15602       always_export_symbols_GCJ=yes
15603       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'
15604       # Note: this linker hardcodes the directories in LIBPATH if there
15605       # are no directories specified by -L.
15606       hardcode_minus_L_GCJ=yes
15607       if test "$GCC" = yes && test -z "$link_static_flag"; then
15608         # Neither direct hardcoding nor static linking is supported with a
15609         # broken collect2.
15610         hardcode_direct_GCJ=unsupported
15611       fi
15612       ;;
15613
15614     aix4* | aix5*)
15615       if test "$host_cpu" = ia64; then
15616         # On IA64, the linker does run time linking by default, so we don't
15617         # have to do anything special.
15618         aix_use_runtimelinking=no
15619         exp_sym_flag='-Bexport'
15620         no_entry_flag=""
15621       else
15622         # If we're using GNU nm, then we don't want the "-C" option.
15623         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15624         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15625           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'
15626         else
15627           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'
15628         fi
15629         aix_use_runtimelinking=no
15630
15631         # Test if we are trying to use run time linking or normal
15632         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15633         # need to do runtime linking.
15634         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15635           for ld_flag in $LDFLAGS; do
15636           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15637             aix_use_runtimelinking=yes
15638             break
15639           fi
15640           done
15641         esac
15642
15643         exp_sym_flag='-bexport'
15644         no_entry_flag='-bnoentry'
15645       fi
15646
15647       # When large executables or shared objects are built, AIX ld can
15648       # have problems creating the table of contents.  If linking a library
15649       # or program results in "error TOC overflow" add -mminimal-toc to
15650       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15651       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15652
15653       archive_cmds_GCJ=''
15654       hardcode_direct_GCJ=yes
15655       hardcode_libdir_separator_GCJ=':'
15656       link_all_deplibs_GCJ=yes
15657
15658       if test "$GCC" = yes; then
15659         case $host_os in aix4.012|aix4.012.*)
15660         # We only want to do this on AIX 4.2 and lower, the check
15661         # below for broken collect2 doesn't work under 4.3+
15662           collect2name=`${CC} -print-prog-name=collect2`
15663           if test -f "$collect2name" && \
15664            strings "$collect2name" | grep resolve_lib_name >/dev/null
15665           then
15666           # We have reworked collect2
15667           hardcode_direct_GCJ=yes
15668           else
15669           # We have old collect2
15670           hardcode_direct_GCJ=unsupported
15671           # It fails to find uninstalled libraries when the uninstalled
15672           # path is not listed in the libpath.  Setting hardcode_minus_L
15673           # to unsupported forces relinking
15674           hardcode_minus_L_GCJ=yes
15675           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15676           hardcode_libdir_separator_GCJ=
15677           fi
15678         esac
15679         shared_flag='-shared'
15680       else
15681         # not using gcc
15682         if test "$host_cpu" = ia64; then
15683         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15684         # chokes on -Wl,-G. The following line is correct:
15685           shared_flag='-G'
15686         else
15687         if test "$aix_use_runtimelinking" = yes; then
15688             shared_flag='${wl}-G'
15689           else
15690             shared_flag='${wl}-bM:SRE'
15691         fi
15692         fi
15693       fi
15694
15695       # It seems that -bexpall does not export symbols beginning with
15696       # underscore (_), so it is better to generate a list of symbols to export.
15697       always_export_symbols_GCJ=yes
15698       if test "$aix_use_runtimelinking" = yes; then
15699         # Warning - without using the other runtime loading flags (-brtl),
15700         # -berok will link without error, but may produce a broken library.
15701         allow_undefined_flag_GCJ='-berok'
15702        # Determine the default libpath from the value encoded in an empty executable.
15703        cat >conftest.$ac_ext <<_ACEOF
15704 #line $LINENO "configure"
15705 /* confdefs.h.  */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h.  */
15710
15711 int
15712 main ()
15713 {
15714
15715   ;
15716   return 0;
15717 }
15718 _ACEOF
15719 rm -f conftest.$ac_objext conftest$ac_exeext
15720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15721   (eval $ac_link) 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); } &&
15725          { ac_try='test -s conftest$ac_exeext'
15726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727   (eval $ac_try) 2>&5
15728   ac_status=$?
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); }; }; then
15731
15732 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15733 }'`
15734 # Check for a 64-bit object if we didn't find anything.
15735 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; }
15736 }'`; fi
15737 else
15738   echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 fi
15742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15744
15745        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15746         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"
15747        else
15748         if test "$host_cpu" = ia64; then
15749           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15750           allow_undefined_flag_GCJ="-z nodefs"
15751           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"
15752         else
15753          # Determine the default libpath from the value encoded in an empty executable.
15754          cat >conftest.$ac_ext <<_ACEOF
15755 #line $LINENO "configure"
15756 /* confdefs.h.  */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h.  */
15761
15762 int
15763 main ()
15764 {
15765
15766   ;
15767   return 0;
15768 }
15769 _ACEOF
15770 rm -f conftest.$ac_objext conftest$ac_exeext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15772   (eval $ac_link) 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } &&
15776          { ac_try='test -s conftest$ac_exeext'
15777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778   (eval $ac_try) 2>&5
15779   ac_status=$?
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); }; }; then
15782
15783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15784 }'`
15785 # Check for a 64-bit object if we didn't find anything.
15786 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; }
15787 }'`; fi
15788 else
15789   echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15791
15792 fi
15793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15794 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15795
15796          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15797           # Warning - without using the other run time loading flags,
15798           # -berok will link without error, but may produce a broken library.
15799           no_undefined_flag_GCJ=' ${wl}-bernotok'
15800           allow_undefined_flag_GCJ=' ${wl}-berok'
15801           # -bexpall does not export symbols beginning with underscore (_)
15802           always_export_symbols_GCJ=yes
15803           # Exported symbols can be pulled into shared objects from archives
15804           whole_archive_flag_spec_GCJ=' '
15805           archive_cmds_need_lc_GCJ=yes
15806           # This is similar to how AIX traditionally builds it's shared libraries.
15807           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'
15808         fi
15809       fi
15810       ;;
15811
15812     amigaos*)
15813       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)'
15814       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15815       hardcode_minus_L_GCJ=yes
15816       # see comment about different semantics on the GNU ld section
15817       ld_shlibs_GCJ=no
15818       ;;
15819
15820     bsdi4*)
15821       export_dynamic_flag_spec_GCJ=-rdynamic
15822       ;;
15823
15824     cygwin* | mingw* | pw32*)
15825       # When not using gcc, we currently assume that we are using
15826       # Microsoft Visual C++.
15827       # hardcode_libdir_flag_spec is actually meaningless, as there is
15828       # no search path for DLLs.
15829       hardcode_libdir_flag_spec_GCJ=' '
15830       allow_undefined_flag_GCJ=unsupported
15831       # Tell ltmain to make .lib files, not .a files.
15832       libext=lib
15833       # Tell ltmain to make .dll files, not .so files.
15834       shrext=".dll"
15835       # FIXME: Setting linknames here is a bad hack.
15836       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15837       # The linker will automatically build a .lib file if we build a DLL.
15838       old_archive_From_new_cmds_GCJ='true'
15839       # FIXME: Should let the user specify the lib program.
15840       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15841       fix_srcfile_path='`cygpath -w "$srcfile"`'
15842       enable_shared_with_static_runtimes_GCJ=yes
15843       ;;
15844
15845     darwin* | rhapsody*)
15846     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15847       archive_cmds_need_lc_GCJ=no
15848       case "$host_os" in
15849       rhapsody* | darwin1.[012])
15850         allow_undefined_flag_GCJ='-undefined suppress'
15851         ;;
15852       *) # Darwin 1.3 on
15853         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15854         ;;
15855       esac
15856       # FIXME: Relying on posixy $() will cause problems for
15857       #        cross-compilation, but unfortunately the echo tests do not
15858       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15859       #        `"' quotes if we put them in here... so don't!
15860         lt_int_apple_cc_single_mod=no
15861         output_verbose_link_cmd='echo'
15862         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15863           lt_int_apple_cc_single_mod=yes
15864         fi
15865         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15866           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15867         else
15868         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'
15869       fi
15870       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15871       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15872         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15873           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}'
15874         else
15875           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}'
15876         fi
15877           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}'
15878       hardcode_direct_GCJ=no
15879       hardcode_automatic_GCJ=yes
15880       hardcode_shlibpath_var_GCJ=unsupported
15881       whole_archive_flag_spec_GCJ='-all_load $convenience'
15882       link_all_deplibs_GCJ=yes
15883     fi
15884       ;;
15885
15886     dgux*)
15887       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15889       hardcode_shlibpath_var_GCJ=no
15890       ;;
15891
15892     freebsd1*)
15893       ld_shlibs_GCJ=no
15894       ;;
15895
15896     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15897     # support.  Future versions do this automatically, but an explicit c++rt0.o
15898     # does not break anything, and helps significantly (at the cost of a little
15899     # extra space).
15900     freebsd2.2*)
15901       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15902       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15903       hardcode_direct_GCJ=yes
15904       hardcode_shlibpath_var_GCJ=no
15905       ;;
15906
15907     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15908     freebsd2*)
15909       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15910       hardcode_direct_GCJ=yes
15911       hardcode_minus_L_GCJ=yes
15912       hardcode_shlibpath_var_GCJ=no
15913       ;;
15914
15915     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15916     freebsd*)
15917       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15918       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15919       hardcode_direct_GCJ=yes
15920       hardcode_shlibpath_var_GCJ=no
15921       ;;
15922
15923     hpux9*)
15924       if test "$GCC" = yes; then
15925         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'
15926       else
15927         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'
15928       fi
15929       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15930       hardcode_libdir_separator_GCJ=:
15931       hardcode_direct_GCJ=yes
15932
15933       # hardcode_minus_L: Not really in the search PATH,
15934       # but as the default location of the library.
15935       hardcode_minus_L_GCJ=yes
15936       export_dynamic_flag_spec_GCJ='${wl}-E'
15937       ;;
15938
15939     hpux10* | hpux11*)
15940       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15941         case "$host_cpu" in
15942         hppa*64*|ia64*)
15943           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15944           ;;
15945         *)
15946           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15947           ;;
15948         esac
15949       else
15950         case "$host_cpu" in
15951         hppa*64*|ia64*)
15952           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15953           ;;
15954         *)
15955           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15956           ;;
15957         esac
15958       fi
15959       if test "$with_gnu_ld" = no; then
15960         case "$host_cpu" in
15961         hppa*64*)
15962           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15963           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15964           hardcode_libdir_separator_GCJ=:
15965           hardcode_direct_GCJ=no
15966           hardcode_shlibpath_var_GCJ=no
15967           ;;
15968         ia64*)
15969           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15970           hardcode_direct_GCJ=no
15971           hardcode_shlibpath_var_GCJ=no
15972
15973           # hardcode_minus_L: Not really in the search PATH,
15974           # but as the default location of the library.
15975           hardcode_minus_L_GCJ=yes
15976           ;;
15977         *)
15978           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15979           hardcode_libdir_separator_GCJ=:
15980           hardcode_direct_GCJ=yes
15981           export_dynamic_flag_spec_GCJ='${wl}-E'
15982
15983           # hardcode_minus_L: Not really in the search PATH,
15984           # but as the default location of the library.
15985           hardcode_minus_L_GCJ=yes
15986           ;;
15987         esac
15988       fi
15989       ;;
15990
15991     irix5* | irix6* | nonstopux*)
15992       if test "$GCC" = yes; then
15993         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'
15994       else
15995         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'
15996         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15997       fi
15998       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15999       hardcode_libdir_separator_GCJ=:
16000       link_all_deplibs_GCJ=yes
16001       ;;
16002
16003     netbsd*)
16004       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16005         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16006       else
16007         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16008       fi
16009       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16010       hardcode_direct_GCJ=yes
16011       hardcode_shlibpath_var_GCJ=no
16012       ;;
16013
16014     newsos6)
16015       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16016       hardcode_direct_GCJ=yes
16017       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16018       hardcode_libdir_separator_GCJ=:
16019       hardcode_shlibpath_var_GCJ=no
16020       ;;
16021
16022     openbsd*)
16023       hardcode_direct_GCJ=yes
16024       hardcode_shlibpath_var_GCJ=no
16025       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16026         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16027         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16028         export_dynamic_flag_spec_GCJ='${wl}-E'
16029       else
16030        case $host_os in
16031          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16032            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16033            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16034            ;;
16035          *)
16036            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16037            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16038            ;;
16039        esac
16040       fi
16041       ;;
16042
16043     os2*)
16044       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16045       hardcode_minus_L_GCJ=yes
16046       allow_undefined_flag_GCJ=unsupported
16047       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'
16048       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16049       ;;
16050
16051     osf3*)
16052       if test "$GCC" = yes; then
16053         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16054         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'
16055       else
16056         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16057         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'
16058       fi
16059       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16060       hardcode_libdir_separator_GCJ=:
16061       ;;
16062
16063     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16064       if test "$GCC" = yes; then
16065         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16066         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'
16067         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16068       else
16069         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16070         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'
16071         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~
16072         $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'
16073
16074         # Both c and cxx compiler support -rpath directly
16075         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16076       fi
16077       hardcode_libdir_separator_GCJ=:
16078       ;;
16079
16080     sco3.2v5*)
16081       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16082       hardcode_shlibpath_var_GCJ=no
16083       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16084       runpath_var=LD_RUN_PATH
16085       hardcode_runpath_var=yes
16086       ;;
16087
16088     solaris*)
16089       no_undefined_flag_GCJ=' -z text'
16090       if test "$GCC" = yes; then
16091         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16092         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16093           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16094       else
16095         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16096         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16097         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16098       fi
16099       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16100       hardcode_shlibpath_var_GCJ=no
16101       case $host_os in
16102       solaris2.[0-5] | solaris2.[0-5].*) ;;
16103       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16104         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16105       esac
16106       link_all_deplibs_GCJ=yes
16107       ;;
16108
16109     sunos4*)
16110       if test "x$host_vendor" = xsequent; then
16111         # Use $CC to link under sequent, because it throws in some extra .o
16112         # files that make .init and .fini sections work.
16113         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16114       else
16115         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16116       fi
16117       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16118       hardcode_direct_GCJ=yes
16119       hardcode_minus_L_GCJ=yes
16120       hardcode_shlibpath_var_GCJ=no
16121       ;;
16122
16123     sysv4)
16124       case $host_vendor in
16125         sni)
16126           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16127           hardcode_direct_GCJ=yes # is this really true???
16128         ;;
16129         siemens)
16130           ## LD is ld it makes a PLAMLIB
16131           ## CC just makes a GrossModule.
16132           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16133           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16134           hardcode_direct_GCJ=no
16135         ;;
16136         motorola)
16137           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16138           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16139         ;;
16140       esac
16141       runpath_var='LD_RUN_PATH'
16142       hardcode_shlibpath_var_GCJ=no
16143       ;;
16144
16145     sysv4.3*)
16146       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16147       hardcode_shlibpath_var_GCJ=no
16148       export_dynamic_flag_spec_GCJ='-Bexport'
16149       ;;
16150
16151     sysv4*MP*)
16152       if test -d /usr/nec; then
16153         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16154         hardcode_shlibpath_var_GCJ=no
16155         runpath_var=LD_RUN_PATH
16156         hardcode_runpath_var=yes
16157         ld_shlibs_GCJ=yes
16158       fi
16159       ;;
16160
16161     sysv4.2uw2*)
16162       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16163       hardcode_direct_GCJ=yes
16164       hardcode_minus_L_GCJ=no
16165       hardcode_shlibpath_var_GCJ=no
16166       hardcode_runpath_var=yes
16167       runpath_var=LD_RUN_PATH
16168       ;;
16169
16170    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16171       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16172       if test "$GCC" = yes; then
16173         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16174       else
16175         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16176       fi
16177       runpath_var='LD_RUN_PATH'
16178       hardcode_shlibpath_var_GCJ=no
16179       ;;
16180
16181     sysv5*)
16182       no_undefined_flag_GCJ=' -z text'
16183       # $CC -shared without GNU ld will not create a library from C++
16184       # object files and a static libstdc++, better avoid it by now
16185       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16187                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16188       hardcode_libdir_flag_spec_GCJ=
16189       hardcode_shlibpath_var_GCJ=no
16190       runpath_var='LD_RUN_PATH'
16191       ;;
16192
16193     uts4*)
16194       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16195       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16196       hardcode_shlibpath_var_GCJ=no
16197       ;;
16198
16199     *)
16200       ld_shlibs_GCJ=no
16201       ;;
16202     esac
16203   fi
16204
16205 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16206 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16207 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16208
16209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16210 if test "$GCC" = yes; then
16211   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16212 fi
16213
16214 #
16215 # Do we need to explicitly link libc?
16216 #
16217 case "x$archive_cmds_need_lc_GCJ" in
16218 x|xyes)
16219   # Assume -lc should be added
16220   archive_cmds_need_lc_GCJ=yes
16221
16222   if test "$enable_shared" = yes && test "$GCC" = yes; then
16223     case $archive_cmds_GCJ in
16224     *'~'*)
16225       # FIXME: we may have to deal with multi-command sequences.
16226       ;;
16227     '$CC '*)
16228       # Test whether the compiler implicitly links with -lc since on some
16229       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16230       # to ld, don't add -lc before -lgcc.
16231       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16232 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16233       $rm conftest*
16234       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16235
16236       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16237   (eval $ac_compile) 2>&5
16238   ac_status=$?
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); } 2>conftest.err; then
16241         soname=conftest
16242         lib=conftest
16243         libobjs=conftest.$ac_objext
16244         deplibs=
16245         wl=$lt_prog_compiler_wl_GCJ
16246         compiler_flags=-v
16247         linker_flags=-v
16248         verstring=
16249         output_objdir=.
16250         libname=conftest
16251         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16252         allow_undefined_flag_GCJ=
16253         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16254   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); }
16258         then
16259           archive_cmds_need_lc_GCJ=no
16260         else
16261           archive_cmds_need_lc_GCJ=yes
16262         fi
16263         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16264       else
16265         cat conftest.err 1>&5
16266       fi
16267       $rm conftest*
16268       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16269 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16270       ;;
16271     esac
16272   fi
16273   ;;
16274 esac
16275
16276 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16277 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16278 hardcode_action_GCJ=
16279 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16280    test -n "$runpath_var GCJ" || \
16281    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16282
16283   # We can hardcode non-existant directories.
16284   if test "$hardcode_direct_GCJ" != no &&
16285      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16286      # have to relink, otherwise we might link with an installed library
16287      # when we should be linking with a yet-to-be-installed one
16288      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16289      test "$hardcode_minus_L_GCJ" != no; then
16290     # Linking always hardcodes the temporary library directory.
16291     hardcode_action_GCJ=relink
16292   else
16293     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16294     hardcode_action_GCJ=immediate
16295   fi
16296 else
16297   # We cannot hardcode anything, or else we can only hardcode existing
16298   # directories.
16299   hardcode_action_GCJ=unsupported
16300 fi
16301 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16302 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16303
16304 if test "$hardcode_action_GCJ" = relink; then
16305   # Fast installation is not supported
16306   enable_fast_install=no
16307 elif test "$shlibpath_overrides_runpath" = yes ||
16308      test "$enable_shared" = no; then
16309   # Fast installation is not necessary
16310   enable_fast_install=needless
16311 fi
16312
16313 striplib=
16314 old_striplib=
16315 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16316 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16317 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16318   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16319   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16320   echo "$as_me:$LINENO: result: yes" >&5
16321 echo "${ECHO_T}yes" >&6
16322 else
16323 # FIXME - insert some real tests, host_os isn't really good enough
16324   case $host_os in
16325    darwin*)
16326        if test -n "$STRIP" ; then
16327          striplib="$STRIP -x"
16328          echo "$as_me:$LINENO: result: yes" >&5
16329 echo "${ECHO_T}yes" >&6
16330        else
16331   echo "$as_me:$LINENO: result: no" >&5
16332 echo "${ECHO_T}no" >&6
16333 fi
16334        ;;
16335    *)
16336   echo "$as_me:$LINENO: result: no" >&5
16337 echo "${ECHO_T}no" >&6
16338     ;;
16339   esac
16340 fi
16341
16342 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16343 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16344 library_names_spec=
16345 libname_spec='lib$name'
16346 soname_spec=
16347 shrext=".so"
16348 postinstall_cmds=
16349 postuninstall_cmds=
16350 finish_cmds=
16351 finish_eval=
16352 shlibpath_var=
16353 shlibpath_overrides_runpath=unknown
16354 version_type=none
16355 dynamic_linker="$host_os ld.so"
16356 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16357 if test "$GCC" = yes; then
16358   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16359   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16360     # if the path contains ";" then we assume it to be the separator
16361     # otherwise default to the standard path separator (i.e. ":") - it is
16362     # assumed that no part of a normal pathname contains ";" but that should
16363     # okay in the real world where ";" in dirpaths is itself problematic.
16364     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16365   else
16366     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16367   fi
16368 else
16369   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16370 fi
16371 need_lib_prefix=unknown
16372 hardcode_into_libs=no
16373
16374 # when you set need_version to no, make sure it does not cause -set_version
16375 # flags to be left without arguments
16376 need_version=unknown
16377
16378 case $host_os in
16379 aix3*)
16380   version_type=linux
16381   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16382   shlibpath_var=LIBPATH
16383
16384   # AIX 3 has no versioning support, so we append a major version to the name.
16385   soname_spec='${libname}${release}${shared_ext}$major'
16386   ;;
16387
16388 aix4* | aix5*)
16389   version_type=linux
16390   need_lib_prefix=no
16391   need_version=no
16392   hardcode_into_libs=yes
16393   if test "$host_cpu" = ia64; then
16394     # AIX 5 supports IA64
16395     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16396     shlibpath_var=LD_LIBRARY_PATH
16397   else
16398     # With GCC up to 2.95.x, collect2 would create an import file
16399     # for dependence libraries.  The import file would start with
16400     # the line `#! .'.  This would cause the generated library to
16401     # depend on `.', always an invalid library.  This was fixed in
16402     # development snapshots of GCC prior to 3.0.
16403     case $host_os in
16404       aix4 | aix4.[01] | aix4.[01].*)
16405       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16406            echo ' yes '
16407            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16408         :
16409       else
16410         can_build_shared=no
16411       fi
16412       ;;
16413     esac
16414     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16415     # soname into executable. Probably we can add versioning support to
16416     # collect2, so additional links can be useful in future.
16417     if test "$aix_use_runtimelinking" = yes; then
16418       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16419       # instead of lib<name>.a to let people know that these are not
16420       # typical AIX shared libraries.
16421       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422     else
16423       # We preserve .a as extension for shared libraries through AIX4.2
16424       # and later when we are not doing run time linking.
16425       library_names_spec='${libname}${release}.a $libname.a'
16426       soname_spec='${libname}${release}${shared_ext}$major'
16427     fi
16428     shlibpath_var=LIBPATH
16429   fi
16430   ;;
16431
16432 amigaos*)
16433   library_names_spec='$libname.ixlibrary $libname.a'
16434   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16435   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'
16436   ;;
16437
16438 beos*)
16439   library_names_spec='${libname}${shared_ext}'
16440   dynamic_linker="$host_os ld.so"
16441   shlibpath_var=LIBRARY_PATH
16442   ;;
16443
16444 bsdi4*)
16445   version_type=linux
16446   need_version=no
16447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448   soname_spec='${libname}${release}${shared_ext}$major'
16449   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16450   shlibpath_var=LD_LIBRARY_PATH
16451   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16452   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16453   # the default ld.so.conf also contains /usr/contrib/lib and
16454   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16455   # libtool to hard-code these into programs
16456   ;;
16457
16458 cygwin* | mingw* | pw32*)
16459   version_type=windows
16460   shrext=".dll"
16461   need_version=no
16462   need_lib_prefix=no
16463
16464   case $GCC,$host_os in
16465   yes,cygwin* | yes,mingw* | yes,pw32*)
16466     library_names_spec='$libname.dll.a'
16467     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16468     postinstall_cmds='base_file=`basename \${file}`~
16469       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16470       dldir=$destdir/`dirname \$dlpath`~
16471       test -d \$dldir || mkdir -p \$dldir~
16472       $install_prog $dir/$dlname \$dldir/$dlname'
16473     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16474       dlpath=$dir/\$dldll~
16475        $rm \$dlpath'
16476     shlibpath_overrides_runpath=yes
16477
16478     case $host_os in
16479     cygwin*)
16480       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16481       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16482       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16483       ;;
16484     mingw*)
16485       # MinGW DLLs use traditional 'lib' prefix
16486       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16487       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16488       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16489         # It is most probably a Windows format PATH printed by
16490         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16491         # path with ; separators, and with drive letters. We can handle the
16492         # drive letters (cygwin fileutils understands them), so leave them,
16493         # especially as we might pass files found there to a mingw objdump,
16494         # which wouldn't understand a cygwinified path. Ahh.
16495         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16496       else
16497         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16498       fi
16499       ;;
16500     pw32*)
16501       # pw32 DLLs use 'pw' prefix rather than 'lib'
16502       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16503       ;;
16504     esac
16505     ;;
16506
16507   *)
16508     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16509     ;;
16510   esac
16511   dynamic_linker='Win32 ld.exe'
16512   # FIXME: first we should search . and the directory the executable is in
16513   shlibpath_var=PATH
16514   ;;
16515
16516 darwin* | rhapsody*)
16517   dynamic_linker="$host_os dyld"
16518   version_type=darwin
16519   need_lib_prefix=no
16520   need_version=no
16521   # FIXME: Relying on posixy $() will cause problems for
16522   #        cross-compilation, but unfortunately the echo tests do not
16523   #        yet detect zsh echo's removal of \ escapes.
16524   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16525   soname_spec='${libname}${release}${major}$shared_ext'
16526   shlibpath_overrides_runpath=yes
16527   shlibpath_var=DYLD_LIBRARY_PATH
16528   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16529   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16530   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16531   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"`
16532   fi
16533   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16534   ;;
16535
16536 dgux*)
16537   version_type=linux
16538   need_lib_prefix=no
16539   need_version=no
16540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16541   soname_spec='${libname}${release}${shared_ext}$major'
16542   shlibpath_var=LD_LIBRARY_PATH
16543   ;;
16544
16545 freebsd1*)
16546   dynamic_linker=no
16547   ;;
16548
16549 freebsd*)
16550   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16551   version_type=freebsd-$objformat
16552   case $version_type in
16553     freebsd-elf*)
16554       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16555       need_version=no
16556       need_lib_prefix=no
16557       ;;
16558     freebsd-*)
16559       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16560       need_version=yes
16561       ;;
16562   esac
16563   shlibpath_var=LD_LIBRARY_PATH
16564   case $host_os in
16565   freebsd2*)
16566     shlibpath_overrides_runpath=yes
16567     ;;
16568   freebsd3.01* | freebsdelf3.01*)
16569     shlibpath_overrides_runpath=yes
16570     hardcode_into_libs=yes
16571     ;;
16572   *) # from 3.2 on
16573     shlibpath_overrides_runpath=no
16574     hardcode_into_libs=yes
16575     ;;
16576   esac
16577   ;;
16578
16579 gnu*)
16580   version_type=linux
16581   need_lib_prefix=no
16582   need_version=no
16583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16584   soname_spec='${libname}${release}${shared_ext}$major'
16585   shlibpath_var=LD_LIBRARY_PATH
16586   hardcode_into_libs=yes
16587   ;;
16588
16589 hpux9* | hpux10* | hpux11*)
16590   # Give a soname corresponding to the major version so that dld.sl refuses to
16591   # link against other versions.
16592   version_type=sunos
16593   need_lib_prefix=no
16594   need_version=no
16595   case "$host_cpu" in
16596   ia64*)
16597     shrext='.so'
16598     hardcode_into_libs=yes
16599     dynamic_linker="$host_os dld.so"
16600     shlibpath_var=LD_LIBRARY_PATH
16601     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603     soname_spec='${libname}${release}${shared_ext}$major'
16604     if test "X$HPUX_IA64_MODE" = X32; then
16605       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16606     else
16607       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16608     fi
16609     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16610     ;;
16611    hppa*64*)
16612      shrext='.sl'
16613      hardcode_into_libs=yes
16614      dynamic_linker="$host_os dld.sl"
16615      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16616      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16617      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16618      soname_spec='${libname}${release}${shared_ext}$major'
16619      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16620      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16621      ;;
16622    *)
16623     shrext='.sl'
16624     dynamic_linker="$host_os dld.sl"
16625     shlibpath_var=SHLIB_PATH
16626     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628     soname_spec='${libname}${release}${shared_ext}$major'
16629     ;;
16630   esac
16631   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16632   postinstall_cmds='chmod 555 $lib'
16633   ;;
16634
16635 irix5* | irix6* | nonstopux*)
16636   case $host_os in
16637     nonstopux*) version_type=nonstopux ;;
16638     *)
16639         if test "$lt_cv_prog_gnu_ld" = yes; then
16640                 version_type=linux
16641         else
16642                 version_type=irix
16643         fi ;;
16644   esac
16645   need_lib_prefix=no
16646   need_version=no
16647   soname_spec='${libname}${release}${shared_ext}$major'
16648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16649   case $host_os in
16650   irix5* | nonstopux*)
16651     libsuff= shlibsuff=
16652     ;;
16653   *)
16654     case $LD in # libtool.m4 will add one of these switches to LD
16655     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16656       libsuff= shlibsuff= libmagic=32-bit;;
16657     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16658       libsuff=32 shlibsuff=N32 libmagic=N32;;
16659     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16660       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16661     *) libsuff= shlibsuff= libmagic=never-match;;
16662     esac
16663     ;;
16664   esac
16665   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16666   shlibpath_overrides_runpath=no
16667   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16668   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16669   hardcode_into_libs=yes
16670   ;;
16671
16672 # No shared lib support for Linux oldld, aout, or coff.
16673 linux*oldld* | linux*aout* | linux*coff*)
16674   dynamic_linker=no
16675   ;;
16676
16677 # This must be Linux ELF.
16678 linux*)
16679   version_type=linux
16680   need_lib_prefix=no
16681   need_version=no
16682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16683   soname_spec='${libname}${release}${shared_ext}$major'
16684   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16685   shlibpath_var=LD_LIBRARY_PATH
16686   shlibpath_overrides_runpath=no
16687   # This implies no fast_install, which is unacceptable.
16688   # Some rework will be needed to allow for fast_install
16689   # before this can be enabled.
16690   hardcode_into_libs=yes
16691
16692   # We used to test for /lib/ld.so.1 and disable shared libraries on
16693   # powerpc, because MkLinux only supported shared libraries with the
16694   # GNU dynamic linker.  Since this was broken with cross compilers,
16695   # most powerpc-linux boxes support dynamic linking these days and
16696   # people can always --disable-shared, the test was removed, and we
16697   # assume the GNU/Linux dynamic linker is in use.
16698   dynamic_linker='GNU/Linux ld.so'
16699   ;;
16700
16701 netbsd*)
16702   version_type=sunos
16703   need_lib_prefix=no
16704   need_version=no
16705   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16707     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16708     dynamic_linker='NetBSD (a.out) ld.so'
16709   else
16710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16711     soname_spec='${libname}${release}${shared_ext}$major'
16712     dynamic_linker='NetBSD ld.elf_so'
16713   fi
16714   shlibpath_var=LD_LIBRARY_PATH
16715   shlibpath_overrides_runpath=yes
16716   hardcode_into_libs=yes
16717   ;;
16718
16719 newsos6)
16720   version_type=linux
16721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16722   shlibpath_var=LD_LIBRARY_PATH
16723   shlibpath_overrides_runpath=yes
16724   ;;
16725
16726 nto-qnx)
16727   version_type=linux
16728   need_lib_prefix=no
16729   need_version=no
16730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16731   soname_spec='${libname}${release}${shared_ext}$major'
16732   shlibpath_var=LD_LIBRARY_PATH
16733   shlibpath_overrides_runpath=yes
16734   ;;
16735
16736 openbsd*)
16737   version_type=sunos
16738   need_lib_prefix=no
16739   need_version=no
16740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16741   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16742   shlibpath_var=LD_LIBRARY_PATH
16743   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16744     case $host_os in
16745       openbsd2.[89] | openbsd2.[89].*)
16746         shlibpath_overrides_runpath=no
16747         ;;
16748       *)
16749         shlibpath_overrides_runpath=yes
16750         ;;
16751       esac
16752   else
16753     shlibpath_overrides_runpath=yes
16754   fi
16755   ;;
16756
16757 os2*)
16758   libname_spec='$name'
16759   shrext=".dll"
16760   need_lib_prefix=no
16761   library_names_spec='$libname${shared_ext} $libname.a'
16762   dynamic_linker='OS/2 ld.exe'
16763   shlibpath_var=LIBPATH
16764   ;;
16765
16766 osf3* | osf4* | osf5*)
16767   version_type=osf
16768   need_lib_prefix=no
16769   need_version=no
16770   soname_spec='${libname}${release}${shared_ext}$major'
16771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772   shlibpath_var=LD_LIBRARY_PATH
16773   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16774   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16775   ;;
16776
16777 sco3.2v5*)
16778   version_type=osf
16779   soname_spec='${libname}${release}${shared_ext}$major'
16780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781   shlibpath_var=LD_LIBRARY_PATH
16782   ;;
16783
16784 solaris*)
16785   version_type=linux
16786   need_lib_prefix=no
16787   need_version=no
16788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16789   soname_spec='${libname}${release}${shared_ext}$major'
16790   shlibpath_var=LD_LIBRARY_PATH
16791   shlibpath_overrides_runpath=yes
16792   hardcode_into_libs=yes
16793   # ldd complains unless libraries are executable
16794   postinstall_cmds='chmod +x $lib'
16795   ;;
16796
16797 sunos4*)
16798   version_type=sunos
16799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16800   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16801   shlibpath_var=LD_LIBRARY_PATH
16802   shlibpath_overrides_runpath=yes
16803   if test "$with_gnu_ld" = yes; then
16804     need_lib_prefix=no
16805   fi
16806   need_version=yes
16807   ;;
16808
16809 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16810   version_type=linux
16811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812   soname_spec='${libname}${release}${shared_ext}$major'
16813   shlibpath_var=LD_LIBRARY_PATH
16814   case $host_vendor in
16815     sni)
16816       shlibpath_overrides_runpath=no
16817       need_lib_prefix=no
16818       export_dynamic_flag_spec='${wl}-Blargedynsym'
16819       runpath_var=LD_RUN_PATH
16820       ;;
16821     siemens)
16822       need_lib_prefix=no
16823       ;;
16824     motorola)
16825       need_lib_prefix=no
16826       need_version=no
16827       shlibpath_overrides_runpath=no
16828       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16829       ;;
16830   esac
16831   ;;
16832
16833 sysv4*MP*)
16834   if test -d /usr/nec ;then
16835     version_type=linux
16836     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16837     soname_spec='$libname${shared_ext}.$major'
16838     shlibpath_var=LD_LIBRARY_PATH
16839   fi
16840   ;;
16841
16842 uts4*)
16843   version_type=linux
16844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16845   soname_spec='${libname}${release}${shared_ext}$major'
16846   shlibpath_var=LD_LIBRARY_PATH
16847   ;;
16848
16849 *)
16850   dynamic_linker=no
16851   ;;
16852 esac
16853 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16854 echo "${ECHO_T}$dynamic_linker" >&6
16855 test "$dynamic_linker" = no && can_build_shared=no
16856
16857 if test "x$enable_dlopen" != xyes; then
16858   enable_dlopen=unknown
16859   enable_dlopen_self=unknown
16860   enable_dlopen_self_static=unknown
16861 else
16862   lt_cv_dlopen=no
16863   lt_cv_dlopen_libs=
16864
16865   case $host_os in
16866   beos*)
16867     lt_cv_dlopen="load_add_on"
16868     lt_cv_dlopen_libs=
16869     lt_cv_dlopen_self=yes
16870     ;;
16871
16872   mingw* | pw32*)
16873     lt_cv_dlopen="LoadLibrary"
16874     lt_cv_dlopen_libs=
16875    ;;
16876
16877   cygwin*)
16878     lt_cv_dlopen="dlopen"
16879     lt_cv_dlopen_libs=
16880    ;;
16881
16882   darwin*)
16883   # if libdl is installed we need to link against it
16884     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16885 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16886 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16887   echo $ECHO_N "(cached) $ECHO_C" >&6
16888 else
16889   ac_check_lib_save_LIBS=$LIBS
16890 LIBS="-ldl  $LIBS"
16891 cat >conftest.$ac_ext <<_ACEOF
16892 #line $LINENO "configure"
16893 /* confdefs.h.  */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h.  */
16898
16899 /* Override any gcc2 internal prototype to avoid an error.  */
16900 #ifdef __cplusplus
16901 extern "C"
16902 #endif
16903 /* We use char because int might match the return type of a gcc2
16904    builtin and then its argument prototype would still apply.  */
16905 char dlopen ();
16906 int
16907 main ()
16908 {
16909 dlopen ();
16910   ;
16911   return 0;
16912 }
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16916   (eval $ac_link) 2>&5
16917   ac_status=$?
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); } &&
16920          { ac_try='test -s conftest$ac_exeext'
16921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922   (eval $ac_try) 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); }; }; then
16926   ac_cv_lib_dl_dlopen=yes
16927 else
16928   echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16930
16931 ac_cv_lib_dl_dlopen=no
16932 fi
16933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16934 LIBS=$ac_check_lib_save_LIBS
16935 fi
16936 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16937 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16938 if test $ac_cv_lib_dl_dlopen = yes; then
16939   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16940 else
16941
16942     lt_cv_dlopen="dyld"
16943     lt_cv_dlopen_libs=
16944     lt_cv_dlopen_self=yes
16945
16946 fi
16947
16948    ;;
16949
16950   *)
16951     echo "$as_me:$LINENO: checking for shl_load" >&5
16952 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16953 if test "${ac_cv_func_shl_load+set}" = set; then
16954   echo $ECHO_N "(cached) $ECHO_C" >&6
16955 else
16956   cat >conftest.$ac_ext <<_ACEOF
16957 #line $LINENO "configure"
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963 /* System header to define __stub macros and hopefully few prototypes,
16964     which can conflict with char shl_load (); below.
16965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16966     <limits.h> exists even on freestanding compilers.  */
16967 #ifdef __STDC__
16968 # include <limits.h>
16969 #else
16970 # include <assert.h>
16971 #endif
16972 /* Override any gcc2 internal prototype to avoid an error.  */
16973 #ifdef __cplusplus
16974 extern "C"
16975 {
16976 #endif
16977 /* We use char because int might match the return type of a gcc2
16978    builtin and then its argument prototype would still apply.  */
16979 char shl_load ();
16980 /* The GNU C library defines this for functions which it implements
16981     to always fail with ENOSYS.  Some functions are actually named
16982     something starting with __ and the normal name is an alias.  */
16983 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16984 choke me
16985 #else
16986 char (*f) () = shl_load;
16987 #endif
16988 #ifdef __cplusplus
16989 }
16990 #endif
16991
16992 int
16993 main ()
16994 {
16995 return f != shl_load;
16996   ;
16997   return 0;
16998 }
16999 _ACEOF
17000 rm -f conftest.$ac_objext conftest$ac_exeext
17001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17002   (eval $ac_link) 2>&5
17003   ac_status=$?
17004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005   (exit $ac_status); } &&
17006          { ac_try='test -s conftest$ac_exeext'
17007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008   (eval $ac_try) 2>&5
17009   ac_status=$?
17010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011   (exit $ac_status); }; }; then
17012   ac_cv_func_shl_load=yes
17013 else
17014   echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17016
17017 ac_cv_func_shl_load=no
17018 fi
17019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17020 fi
17021 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17022 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17023 if test $ac_cv_func_shl_load = yes; then
17024   lt_cv_dlopen="shl_load"
17025 else
17026   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17027 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17028 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17029   echo $ECHO_N "(cached) $ECHO_C" >&6
17030 else
17031   ac_check_lib_save_LIBS=$LIBS
17032 LIBS="-ldld  $LIBS"
17033 cat >conftest.$ac_ext <<_ACEOF
17034 #line $LINENO "configure"
17035 /* confdefs.h.  */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h.  */
17040
17041 /* Override any gcc2 internal prototype to avoid an error.  */
17042 #ifdef __cplusplus
17043 extern "C"
17044 #endif
17045 /* We use char because int might match the return type of a gcc2
17046    builtin and then its argument prototype would still apply.  */
17047 char shl_load ();
17048 int
17049 main ()
17050 {
17051 shl_load ();
17052   ;
17053   return 0;
17054 }
17055 _ACEOF
17056 rm -f conftest.$ac_objext conftest$ac_exeext
17057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17058   (eval $ac_link) 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); } &&
17062          { ac_try='test -s conftest$ac_exeext'
17063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064   (eval $ac_try) 2>&5
17065   ac_status=$?
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); }; }; then
17068   ac_cv_lib_dld_shl_load=yes
17069 else
17070   echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17072
17073 ac_cv_lib_dld_shl_load=no
17074 fi
17075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17076 LIBS=$ac_check_lib_save_LIBS
17077 fi
17078 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17079 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17080 if test $ac_cv_lib_dld_shl_load = yes; then
17081   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17082 else
17083   echo "$as_me:$LINENO: checking for dlopen" >&5
17084 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17085 if test "${ac_cv_func_dlopen+set}" = set; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088   cat >conftest.$ac_ext <<_ACEOF
17089 #line $LINENO "configure"
17090 /* confdefs.h.  */
17091 _ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h.  */
17095 /* System header to define __stub macros and hopefully few prototypes,
17096     which can conflict with char dlopen (); below.
17097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17098     <limits.h> exists even on freestanding compilers.  */
17099 #ifdef __STDC__
17100 # include <limits.h>
17101 #else
17102 # include <assert.h>
17103 #endif
17104 /* Override any gcc2 internal prototype to avoid an error.  */
17105 #ifdef __cplusplus
17106 extern "C"
17107 {
17108 #endif
17109 /* We use char because int might match the return type of a gcc2
17110    builtin and then its argument prototype would still apply.  */
17111 char dlopen ();
17112 /* The GNU C library defines this for functions which it implements
17113     to always fail with ENOSYS.  Some functions are actually named
17114     something starting with __ and the normal name is an alias.  */
17115 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17116 choke me
17117 #else
17118 char (*f) () = dlopen;
17119 #endif
17120 #ifdef __cplusplus
17121 }
17122 #endif
17123
17124 int
17125 main ()
17126 {
17127 return f != dlopen;
17128   ;
17129   return 0;
17130 }
17131 _ACEOF
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134   (eval $ac_link) 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } &&
17138          { ac_try='test -s conftest$ac_exeext'
17139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140   (eval $ac_try) 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); }; }; then
17144   ac_cv_func_dlopen=yes
17145 else
17146   echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17148
17149 ac_cv_func_dlopen=no
17150 fi
17151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17152 fi
17153 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17154 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17155 if test $ac_cv_func_dlopen = yes; then
17156   lt_cv_dlopen="dlopen"
17157 else
17158   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17159 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17160 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163   ac_check_lib_save_LIBS=$LIBS
17164 LIBS="-ldl  $LIBS"
17165 cat >conftest.$ac_ext <<_ACEOF
17166 #line $LINENO "configure"
17167 /* confdefs.h.  */
17168 _ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h.  */
17172
17173 /* Override any gcc2 internal prototype to avoid an error.  */
17174 #ifdef __cplusplus
17175 extern "C"
17176 #endif
17177 /* We use char because int might match the return type of a gcc2
17178    builtin and then its argument prototype would still apply.  */
17179 char dlopen ();
17180 int
17181 main ()
17182 {
17183 dlopen ();
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17190   (eval $ac_link) 2>&5
17191   ac_status=$?
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } &&
17194          { ac_try='test -s conftest$ac_exeext'
17195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196   (eval $ac_try) 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; }; then
17200   ac_cv_lib_dl_dlopen=yes
17201 else
17202   echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205 ac_cv_lib_dl_dlopen=no
17206 fi
17207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17208 LIBS=$ac_check_lib_save_LIBS
17209 fi
17210 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17211 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17212 if test $ac_cv_lib_dl_dlopen = yes; then
17213   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17214 else
17215   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17216 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17217 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17218   echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220   ac_check_lib_save_LIBS=$LIBS
17221 LIBS="-lsvld  $LIBS"
17222 cat >conftest.$ac_ext <<_ACEOF
17223 #line $LINENO "configure"
17224 /* confdefs.h.  */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h.  */
17229
17230 /* Override any gcc2 internal prototype to avoid an error.  */
17231 #ifdef __cplusplus
17232 extern "C"
17233 #endif
17234 /* We use char because int might match the return type of a gcc2
17235    builtin and then its argument prototype would still apply.  */
17236 char dlopen ();
17237 int
17238 main ()
17239 {
17240 dlopen ();
17241   ;
17242   return 0;
17243 }
17244 _ACEOF
17245 rm -f conftest.$ac_objext conftest$ac_exeext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17247   (eval $ac_link) 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); } &&
17251          { ac_try='test -s conftest$ac_exeext'
17252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253   (eval $ac_try) 2>&5
17254   ac_status=$?
17255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256   (exit $ac_status); }; }; then
17257   ac_cv_lib_svld_dlopen=yes
17258 else
17259   echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17261
17262 ac_cv_lib_svld_dlopen=no
17263 fi
17264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17265 LIBS=$ac_check_lib_save_LIBS
17266 fi
17267 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17268 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17269 if test $ac_cv_lib_svld_dlopen = yes; then
17270   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17271 else
17272   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17273 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17274 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17275   echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277   ac_check_lib_save_LIBS=$LIBS
17278 LIBS="-ldld  $LIBS"
17279 cat >conftest.$ac_ext <<_ACEOF
17280 #line $LINENO "configure"
17281 /* confdefs.h.  */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h.  */
17286
17287 /* Override any gcc2 internal prototype to avoid an error.  */
17288 #ifdef __cplusplus
17289 extern "C"
17290 #endif
17291 /* We use char because int might match the return type of a gcc2
17292    builtin and then its argument prototype would still apply.  */
17293 char dld_link ();
17294 int
17295 main ()
17296 {
17297 dld_link ();
17298   ;
17299   return 0;
17300 }
17301 _ACEOF
17302 rm -f conftest.$ac_objext conftest$ac_exeext
17303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17304   (eval $ac_link) 2>&5
17305   ac_status=$?
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); } &&
17308          { ac_try='test -s conftest$ac_exeext'
17309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310   (eval $ac_try) 2>&5
17311   ac_status=$?
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); }; }; then
17314   ac_cv_lib_dld_dld_link=yes
17315 else
17316   echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17318
17319 ac_cv_lib_dld_dld_link=no
17320 fi
17321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17322 LIBS=$ac_check_lib_save_LIBS
17323 fi
17324 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17325 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17326 if test $ac_cv_lib_dld_dld_link = yes; then
17327   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17328 fi
17329
17330
17331 fi
17332
17333
17334 fi
17335
17336
17337 fi
17338
17339
17340 fi
17341
17342
17343 fi
17344
17345     ;;
17346   esac
17347
17348   if test "x$lt_cv_dlopen" != xno; then
17349     enable_dlopen=yes
17350   else
17351     enable_dlopen=no
17352   fi
17353
17354   case $lt_cv_dlopen in
17355   dlopen)
17356     save_CPPFLAGS="$CPPFLAGS"
17357     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17358
17359     save_LDFLAGS="$LDFLAGS"
17360     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17361
17362     save_LIBS="$LIBS"
17363     LIBS="$lt_cv_dlopen_libs $LIBS"
17364
17365     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17366 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17367 if test "${lt_cv_dlopen_self+set}" = set; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370           if test "$cross_compiling" = yes; then :
17371   lt_cv_dlopen_self=cross
17372 else
17373   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17374   lt_status=$lt_dlunknown
17375   cat > conftest.$ac_ext <<EOF
17376 #line 17376 "configure"
17377 #include "confdefs.h"
17378
17379 #if HAVE_DLFCN_H
17380 #include <dlfcn.h>
17381 #endif
17382
17383 #include <stdio.h>
17384
17385 #ifdef RTLD_GLOBAL
17386 #  define LT_DLGLOBAL           RTLD_GLOBAL
17387 #else
17388 #  ifdef DL_GLOBAL
17389 #    define LT_DLGLOBAL         DL_GLOBAL
17390 #  else
17391 #    define LT_DLGLOBAL         0
17392 #  endif
17393 #endif
17394
17395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17396    find out it does not work in some platform. */
17397 #ifndef LT_DLLAZY_OR_NOW
17398 #  ifdef RTLD_LAZY
17399 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17400 #  else
17401 #    ifdef DL_LAZY
17402 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17403 #    else
17404 #      ifdef RTLD_NOW
17405 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17406 #      else
17407 #        ifdef DL_NOW
17408 #          define LT_DLLAZY_OR_NOW      DL_NOW
17409 #        else
17410 #          define LT_DLLAZY_OR_NOW      0
17411 #        endif
17412 #      endif
17413 #    endif
17414 #  endif
17415 #endif
17416
17417 #ifdef __cplusplus
17418 extern "C" void exit (int);
17419 #endif
17420
17421 void fnord() { int i=42;}
17422 int main ()
17423 {
17424   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17425   int status = $lt_dlunknown;
17426
17427   if (self)
17428     {
17429       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17430       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17431       /* dlclose (self); */
17432     }
17433
17434     exit (status);
17435 }
17436 EOF
17437   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17438   (eval $ac_link) 2>&5
17439   ac_status=$?
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17442     (./conftest; exit; ) 2>/dev/null
17443     lt_status=$?
17444     case x$lt_status in
17445       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17446       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17447       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17448     esac
17449   else :
17450     # compilation failed
17451     lt_cv_dlopen_self=no
17452   fi
17453 fi
17454 rm -fr conftest*
17455
17456
17457 fi
17458 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17459 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17460
17461     if test "x$lt_cv_dlopen_self" = xyes; then
17462       LDFLAGS="$LDFLAGS $link_static_flag"
17463       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17464 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17465 if test "${lt_cv_dlopen_self_static+set}" = set; then
17466   echo $ECHO_N "(cached) $ECHO_C" >&6
17467 else
17468           if test "$cross_compiling" = yes; then :
17469   lt_cv_dlopen_self_static=cross
17470 else
17471   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17472   lt_status=$lt_dlunknown
17473   cat > conftest.$ac_ext <<EOF
17474 #line 17474 "configure"
17475 #include "confdefs.h"
17476
17477 #if HAVE_DLFCN_H
17478 #include <dlfcn.h>
17479 #endif
17480
17481 #include <stdio.h>
17482
17483 #ifdef RTLD_GLOBAL
17484 #  define LT_DLGLOBAL           RTLD_GLOBAL
17485 #else
17486 #  ifdef DL_GLOBAL
17487 #    define LT_DLGLOBAL         DL_GLOBAL
17488 #  else
17489 #    define LT_DLGLOBAL         0
17490 #  endif
17491 #endif
17492
17493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17494    find out it does not work in some platform. */
17495 #ifndef LT_DLLAZY_OR_NOW
17496 #  ifdef RTLD_LAZY
17497 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17498 #  else
17499 #    ifdef DL_LAZY
17500 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17501 #    else
17502 #      ifdef RTLD_NOW
17503 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17504 #      else
17505 #        ifdef DL_NOW
17506 #          define LT_DLLAZY_OR_NOW      DL_NOW
17507 #        else
17508 #          define LT_DLLAZY_OR_NOW      0
17509 #        endif
17510 #      endif
17511 #    endif
17512 #  endif
17513 #endif
17514
17515 #ifdef __cplusplus
17516 extern "C" void exit (int);
17517 #endif
17518
17519 void fnord() { int i=42;}
17520 int main ()
17521 {
17522   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17523   int status = $lt_dlunknown;
17524
17525   if (self)
17526     {
17527       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17528       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17529       /* dlclose (self); */
17530     }
17531
17532     exit (status);
17533 }
17534 EOF
17535   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17536   (eval $ac_link) 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17540     (./conftest; exit; ) 2>/dev/null
17541     lt_status=$?
17542     case x$lt_status in
17543       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17544       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17545       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17546     esac
17547   else :
17548     # compilation failed
17549     lt_cv_dlopen_self_static=no
17550   fi
17551 fi
17552 rm -fr conftest*
17553
17554
17555 fi
17556 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17557 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17558     fi
17559
17560     CPPFLAGS="$save_CPPFLAGS"
17561     LDFLAGS="$save_LDFLAGS"
17562     LIBS="$save_LIBS"
17563     ;;
17564   esac
17565
17566   case $lt_cv_dlopen_self in
17567   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17568   *) enable_dlopen_self=unknown ;;
17569   esac
17570
17571   case $lt_cv_dlopen_self_static in
17572   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17573   *) enable_dlopen_self_static=unknown ;;
17574   esac
17575 fi
17576
17577
17578 # The else clause should only fire when bootstrapping the
17579 # libtool distribution, otherwise you forgot to ship ltmain.sh
17580 # with your package, and you will get complaints that there are
17581 # no rules to generate ltmain.sh.
17582 if test -f "$ltmain"; then
17583   # See if we are running on zsh, and set the options which allow our commands through
17584   # without removal of \ escapes.
17585   if test -n "${ZSH_VERSION+set}" ; then
17586     setopt NO_GLOB_SUBST
17587   fi
17588   # Now quote all the things that may contain metacharacters while being
17589   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17590   # variables and quote the copies for generation of the libtool script.
17591   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17592     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17593     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17594     deplibs_check_method reload_flag reload_cmds need_locks \
17595     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17596     lt_cv_sys_global_symbol_to_c_name_address \
17597     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17598     old_postinstall_cmds old_postuninstall_cmds \
17599     compiler_GCJ \
17600     CC_GCJ \
17601     LD_GCJ \
17602     lt_prog_compiler_wl_GCJ \
17603     lt_prog_compiler_pic_GCJ \
17604     lt_prog_compiler_static_GCJ \
17605     lt_prog_compiler_no_builtin_flag_GCJ \
17606     export_dynamic_flag_spec_GCJ \
17607     thread_safe_flag_spec_GCJ \
17608     whole_archive_flag_spec_GCJ \
17609     enable_shared_with_static_runtimes_GCJ \
17610     old_archive_cmds_GCJ \
17611     old_archive_from_new_cmds_GCJ \
17612     predep_objects_GCJ \
17613     postdep_objects_GCJ \
17614     predeps_GCJ \
17615     postdeps_GCJ \
17616     compiler_lib_search_path_GCJ \
17617     archive_cmds_GCJ \
17618     archive_expsym_cmds_GCJ \
17619     postinstall_cmds_GCJ \
17620     postuninstall_cmds_GCJ \
17621     old_archive_from_expsyms_cmds_GCJ \
17622     allow_undefined_flag_GCJ \
17623     no_undefined_flag_GCJ \
17624     export_symbols_cmds_GCJ \
17625     hardcode_libdir_flag_spec_GCJ \
17626     hardcode_libdir_flag_spec_ld_GCJ \
17627     hardcode_libdir_separator_GCJ \
17628     hardcode_automatic_GCJ \
17629     module_cmds_GCJ \
17630     module_expsym_cmds_GCJ \
17631     lt_cv_prog_compiler_c_o_GCJ \
17632     exclude_expsyms_GCJ \
17633     include_expsyms_GCJ; do
17634
17635     case $var in
17636     old_archive_cmds_GCJ | \
17637     old_archive_from_new_cmds_GCJ | \
17638     archive_cmds_GCJ | \
17639     archive_expsym_cmds_GCJ | \
17640     module_cmds_GCJ | \
17641     module_expsym_cmds_GCJ | \
17642     old_archive_from_expsyms_cmds_GCJ | \
17643     export_symbols_cmds_GCJ | \
17644     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17645     postinstall_cmds | postuninstall_cmds | \
17646     old_postinstall_cmds | old_postuninstall_cmds | \
17647     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17648       # Double-quote double-evaled strings.
17649       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17650       ;;
17651     *)
17652       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17653       ;;
17654     esac
17655   done
17656
17657   case $lt_echo in
17658   *'\$0 --fallback-echo"')
17659     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17660     ;;
17661   esac
17662
17663 cfgfile="$ofile"
17664
17665   cat <<__EOF__ >> "$cfgfile"
17666 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17667
17668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17669
17670 # Shell to use when invoking shell scripts.
17671 SHELL=$lt_SHELL
17672
17673 # Whether or not to build shared libraries.
17674 build_libtool_libs=$enable_shared
17675
17676 # Whether or not to build static libraries.
17677 build_old_libs=$enable_static
17678
17679 # Whether or not to add -lc for building shared libraries.
17680 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17681
17682 # Whether or not to disallow shared libs when runtime libs are static
17683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17684
17685 # Whether or not to optimize for fast installation.
17686 fast_install=$enable_fast_install
17687
17688 # The host system.
17689 host_alias=$host_alias
17690 host=$host
17691
17692 # An echo program that does not interpret backslashes.
17693 echo=$lt_echo
17694
17695 # The archiver.
17696 AR=$lt_AR
17697 AR_FLAGS=$lt_AR_FLAGS
17698
17699 # A C compiler.
17700 LTCC=$lt_LTCC
17701
17702 # A language-specific compiler.
17703 CC=$lt_compiler_GCJ
17704
17705 # Is the compiler the GNU C compiler?
17706 with_gcc=$GCC_GCJ
17707
17708 # An ERE matcher.
17709 EGREP=$lt_EGREP
17710
17711 # The linker used to build libraries.
17712 LD=$lt_LD_GCJ
17713
17714 # Whether we need hard or soft links.
17715 LN_S=$lt_LN_S
17716
17717 # A BSD-compatible nm program.
17718 NM=$lt_NM
17719
17720 # A symbol stripping program
17721 STRIP=$STRIP
17722
17723 # Used to examine libraries when file_magic_cmd begins "file"
17724 MAGIC_CMD=$MAGIC_CMD
17725
17726 # Used on cygwin: DLL creation program.
17727 DLLTOOL="$DLLTOOL"
17728
17729 # Used on cygwin: object dumper.
17730 OBJDUMP="$OBJDUMP"
17731
17732 # Used on cygwin: assembler.
17733 AS="$AS"
17734
17735 # The name of the directory that contains temporary libtool files.
17736 objdir=$objdir
17737
17738 # How to create reloadable object files.
17739 reload_flag=$lt_reload_flag
17740 reload_cmds=$lt_reload_cmds
17741
17742 # How to pass a linker flag through the compiler.
17743 wl=$lt_lt_prog_compiler_wl_GCJ
17744
17745 # Object file suffix (normally "o").
17746 objext="$ac_objext"
17747
17748 # Old archive suffix (normally "a").
17749 libext="$libext"
17750
17751 # Shared library suffix (normally ".so").
17752 shrext='$shrext'
17753
17754 # Executable file suffix (normally "").
17755 exeext="$exeext"
17756
17757 # Additional compiler flags for building library objects.
17758 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17759 pic_mode=$pic_mode
17760
17761 # What is the maximum length of a command?
17762 max_cmd_len=$lt_cv_sys_max_cmd_len
17763
17764 # Does compiler simultaneously support -c and -o options?
17765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17766
17767 # Must we lock files when doing compilation ?
17768 need_locks=$lt_need_locks
17769
17770 # Do we need the lib prefix for modules?
17771 need_lib_prefix=$need_lib_prefix
17772
17773 # Do we need a version for libraries?
17774 need_version=$need_version
17775
17776 # Whether dlopen is supported.
17777 dlopen_support=$enable_dlopen
17778
17779 # Whether dlopen of programs is supported.
17780 dlopen_self=$enable_dlopen_self
17781
17782 # Whether dlopen of statically linked programs is supported.
17783 dlopen_self_static=$enable_dlopen_self_static
17784
17785 # Compiler flag to prevent dynamic linking.
17786 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17787
17788 # Compiler flag to turn off builtin functions.
17789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17790
17791 # Compiler flag to allow reflexive dlopens.
17792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17793
17794 # Compiler flag to generate shared objects directly from archives.
17795 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17796
17797 # Compiler flag to generate thread-safe objects.
17798 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17799
17800 # Library versioning type.
17801 version_type=$version_type
17802
17803 # Format of library name prefix.
17804 libname_spec=$lt_libname_spec
17805
17806 # List of archive names.  First name is the real one, the rest are links.
17807 # The last name is the one that the linker finds with -lNAME.
17808 library_names_spec=$lt_library_names_spec
17809
17810 # The coded name of the library, if different from the real name.
17811 soname_spec=$lt_soname_spec
17812
17813 # Commands used to build and install an old-style archive.
17814 RANLIB=$lt_RANLIB
17815 old_archive_cmds=$lt_old_archive_cmds_GCJ
17816 old_postinstall_cmds=$lt_old_postinstall_cmds
17817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17818
17819 # Create an old-style archive from a shared archive.
17820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17821
17822 # Create a temporary old-style archive to link instead of a shared archive.
17823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17824
17825 # Commands used to build and install a shared archive.
17826 archive_cmds=$lt_archive_cmds_GCJ
17827 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17828 postinstall_cmds=$lt_postinstall_cmds
17829 postuninstall_cmds=$lt_postuninstall_cmds
17830
17831 # Commands used to build a loadable module (assumed same as above if empty)
17832 module_cmds=$lt_module_cmds_GCJ
17833 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17834
17835 # Commands to strip libraries.
17836 old_striplib=$lt_old_striplib
17837 striplib=$lt_striplib
17838
17839 # Dependencies to place before the objects being linked to create a
17840 # shared library.
17841 predep_objects=$lt_predep_objects_GCJ
17842
17843 # Dependencies to place after the objects being linked to create a
17844 # shared library.
17845 postdep_objects=$lt_postdep_objects_GCJ
17846
17847 # Dependencies to place before the objects being linked to create a
17848 # shared library.
17849 predeps=$lt_predeps_GCJ
17850
17851 # Dependencies to place after the objects being linked to create a
17852 # shared library.
17853 postdeps=$lt_postdeps_GCJ
17854
17855 # The library search path used internally by the compiler when linking
17856 # a shared library.
17857 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17858
17859 # Method to check whether dependent libraries are shared objects.
17860 deplibs_check_method=$lt_deplibs_check_method
17861
17862 # Command to use when deplibs_check_method == file_magic.
17863 file_magic_cmd=$lt_file_magic_cmd
17864
17865 # Flag that allows shared libraries with undefined symbols to be built.
17866 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17867
17868 # Flag that forces no undefined symbols.
17869 no_undefined_flag=$lt_no_undefined_flag_GCJ
17870
17871 # Commands used to finish a libtool library installation in a directory.
17872 finish_cmds=$lt_finish_cmds
17873
17874 # Same as above, but a single script fragment to be evaled but not shown.
17875 finish_eval=$lt_finish_eval
17876
17877 # Take the output of nm and produce a listing of raw symbols and C names.
17878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17879
17880 # Transform the output of nm in a proper C declaration
17881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17882
17883 # Transform the output of nm in a C name address pair
17884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17885
17886 # This is the shared library runtime path variable.
17887 runpath_var=$runpath_var
17888
17889 # This is the shared library path variable.
17890 shlibpath_var=$shlibpath_var
17891
17892 # Is shlibpath searched before the hard-coded library search path?
17893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17894
17895 # How to hardcode a shared library path into an executable.
17896 hardcode_action=$hardcode_action_GCJ
17897
17898 # Whether we should hardcode library paths into libraries.
17899 hardcode_into_libs=$hardcode_into_libs
17900
17901 # Flag to hardcode \$libdir into a binary during linking.
17902 # This must work even if \$libdir does not exist.
17903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17904
17905 # If ld is used when linking, flag to hardcode \$libdir into
17906 # a binary during linking. This must work even if \$libdir does
17907 # not exist.
17908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17909
17910 # Whether we need a single -rpath flag with a separated argument.
17911 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17912
17913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17914 # resulting binary.
17915 hardcode_direct=$hardcode_direct_GCJ
17916
17917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17918 # resulting binary.
17919 hardcode_minus_L=$hardcode_minus_L_GCJ
17920
17921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17922 # the resulting binary.
17923 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17924
17925 # Set to yes if building a shared library automatically hardcodes DIR into the library
17926 # and all subsequent libraries and executables linked against it.
17927 hardcode_automatic=$hardcode_automatic_GCJ
17928
17929 # Variables whose values should be saved in libtool wrapper scripts and
17930 # restored at relink time.
17931 variables_saved_for_relink="$variables_saved_for_relink"
17932
17933 # Whether libtool must link a program against all its dependency libraries.
17934 link_all_deplibs=$link_all_deplibs_GCJ
17935
17936 # Compile-time system search path for libraries
17937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17938
17939 # Run-time system search path for libraries
17940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17941
17942 # Fix the shell variable \$srcfile for the compiler.
17943 fix_srcfile_path="$fix_srcfile_path_GCJ"
17944
17945 # Set to yes if exported symbols are required.
17946 always_export_symbols=$always_export_symbols_GCJ
17947
17948 # The commands to list exported symbols.
17949 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17950
17951 # The commands to extract the exported symbol list from a shared archive.
17952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17953
17954 # Symbols that should not be listed in the preloaded symbols.
17955 exclude_expsyms=$lt_exclude_expsyms_GCJ
17956
17957 # Symbols that must always be exported.
17958 include_expsyms=$lt_include_expsyms_GCJ
17959
17960 # ### END LIBTOOL TAG CONFIG: $tagname
17961
17962 __EOF__
17963
17964
17965 else
17966   # If there is no Makefile yet, we rely on a make rule to execute
17967   # `config.status --recheck' to rerun these tests and create the
17968   # libtool script then.
17969   test -f Makefile && make "$ltmain"
17970 fi
17971
17972
17973 ac_ext=c
17974 ac_cpp='$CPP $CPPFLAGS'
17975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17978
17979 CC="$lt_save_CC"
17980
17981         else
17982           tagname=""
17983         fi
17984         ;;
17985
17986       RC)
17987
17988
17989
17990 # Source file extension for RC test sources.
17991 ac_ext=rc
17992
17993 # Object file extension for compiled RC test sources.
17994 objext=o
17995 objext_RC=$objext
17996
17997 # Code to be used in simple compile tests
17998 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17999
18000 # Code to be used in simple link tests
18001 lt_simple_link_test_code="$lt_simple_compile_test_code"
18002
18003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18004
18005 # If no C compiler was specified, use CC.
18006 LTCC=${LTCC-"$CC"}
18007
18008 # Allow CC to be a program name with arguments.
18009 compiler=$CC
18010
18011
18012 # Allow CC to be a program name with arguments.
18013 lt_save_CC="$CC"
18014 CC=${RC-"windres"}
18015 compiler=$CC
18016 compiler_RC=$CC
18017 lt_cv_prog_compiler_c_o_RC=yes
18018
18019 # The else clause should only fire when bootstrapping the
18020 # libtool distribution, otherwise you forgot to ship ltmain.sh
18021 # with your package, and you will get complaints that there are
18022 # no rules to generate ltmain.sh.
18023 if test -f "$ltmain"; then
18024   # See if we are running on zsh, and set the options which allow our commands through
18025   # without removal of \ escapes.
18026   if test -n "${ZSH_VERSION+set}" ; then
18027     setopt NO_GLOB_SUBST
18028   fi
18029   # Now quote all the things that may contain metacharacters while being
18030   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18031   # variables and quote the copies for generation of the libtool script.
18032   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18033     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18034     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18035     deplibs_check_method reload_flag reload_cmds need_locks \
18036     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18037     lt_cv_sys_global_symbol_to_c_name_address \
18038     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18039     old_postinstall_cmds old_postuninstall_cmds \
18040     compiler_RC \
18041     CC_RC \
18042     LD_RC \
18043     lt_prog_compiler_wl_RC \
18044     lt_prog_compiler_pic_RC \
18045     lt_prog_compiler_static_RC \
18046     lt_prog_compiler_no_builtin_flag_RC \
18047     export_dynamic_flag_spec_RC \
18048     thread_safe_flag_spec_RC \
18049     whole_archive_flag_spec_RC \
18050     enable_shared_with_static_runtimes_RC \
18051     old_archive_cmds_RC \
18052     old_archive_from_new_cmds_RC \
18053     predep_objects_RC \
18054     postdep_objects_RC \
18055     predeps_RC \
18056     postdeps_RC \
18057     compiler_lib_search_path_RC \
18058     archive_cmds_RC \
18059     archive_expsym_cmds_RC \
18060     postinstall_cmds_RC \
18061     postuninstall_cmds_RC \
18062     old_archive_from_expsyms_cmds_RC \
18063     allow_undefined_flag_RC \
18064     no_undefined_flag_RC \
18065     export_symbols_cmds_RC \
18066     hardcode_libdir_flag_spec_RC \
18067     hardcode_libdir_flag_spec_ld_RC \
18068     hardcode_libdir_separator_RC \
18069     hardcode_automatic_RC \
18070     module_cmds_RC \
18071     module_expsym_cmds_RC \
18072     lt_cv_prog_compiler_c_o_RC \
18073     exclude_expsyms_RC \
18074     include_expsyms_RC; do
18075
18076     case $var in
18077     old_archive_cmds_RC | \
18078     old_archive_from_new_cmds_RC | \
18079     archive_cmds_RC | \
18080     archive_expsym_cmds_RC | \
18081     module_cmds_RC | \
18082     module_expsym_cmds_RC | \
18083     old_archive_from_expsyms_cmds_RC | \
18084     export_symbols_cmds_RC | \
18085     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18086     postinstall_cmds | postuninstall_cmds | \
18087     old_postinstall_cmds | old_postuninstall_cmds | \
18088     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18089       # Double-quote double-evaled strings.
18090       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18091       ;;
18092     *)
18093       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18094       ;;
18095     esac
18096   done
18097
18098   case $lt_echo in
18099   *'\$0 --fallback-echo"')
18100     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18101     ;;
18102   esac
18103
18104 cfgfile="$ofile"
18105
18106   cat <<__EOF__ >> "$cfgfile"
18107 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18108
18109 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18110
18111 # Shell to use when invoking shell scripts.
18112 SHELL=$lt_SHELL
18113
18114 # Whether or not to build shared libraries.
18115 build_libtool_libs=$enable_shared
18116
18117 # Whether or not to build static libraries.
18118 build_old_libs=$enable_static
18119
18120 # Whether or not to add -lc for building shared libraries.
18121 build_libtool_need_lc=$archive_cmds_need_lc_RC
18122
18123 # Whether or not to disallow shared libs when runtime libs are static
18124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18125
18126 # Whether or not to optimize for fast installation.
18127 fast_install=$enable_fast_install
18128
18129 # The host system.
18130 host_alias=$host_alias
18131 host=$host
18132
18133 # An echo program that does not interpret backslashes.
18134 echo=$lt_echo
18135
18136 # The archiver.
18137 AR=$lt_AR
18138 AR_FLAGS=$lt_AR_FLAGS
18139
18140 # A C compiler.
18141 LTCC=$lt_LTCC
18142
18143 # A language-specific compiler.
18144 CC=$lt_compiler_RC
18145
18146 # Is the compiler the GNU C compiler?
18147 with_gcc=$GCC_RC
18148
18149 # An ERE matcher.
18150 EGREP=$lt_EGREP
18151
18152 # The linker used to build libraries.
18153 LD=$lt_LD_RC
18154
18155 # Whether we need hard or soft links.
18156 LN_S=$lt_LN_S
18157
18158 # A BSD-compatible nm program.
18159 NM=$lt_NM
18160
18161 # A symbol stripping program
18162 STRIP=$STRIP
18163
18164 # Used to examine libraries when file_magic_cmd begins "file"
18165 MAGIC_CMD=$MAGIC_CMD
18166
18167 # Used on cygwin: DLL creation program.
18168 DLLTOOL="$DLLTOOL"
18169
18170 # Used on cygwin: object dumper.
18171 OBJDUMP="$OBJDUMP"
18172
18173 # Used on cygwin: assembler.
18174 AS="$AS"
18175
18176 # The name of the directory that contains temporary libtool files.
18177 objdir=$objdir
18178
18179 # How to create reloadable object files.
18180 reload_flag=$lt_reload_flag
18181 reload_cmds=$lt_reload_cmds
18182
18183 # How to pass a linker flag through the compiler.
18184 wl=$lt_lt_prog_compiler_wl_RC
18185
18186 # Object file suffix (normally "o").
18187 objext="$ac_objext"
18188
18189 # Old archive suffix (normally "a").
18190 libext="$libext"
18191
18192 # Shared library suffix (normally ".so").
18193 shrext='$shrext'
18194
18195 # Executable file suffix (normally "").
18196 exeext="$exeext"
18197
18198 # Additional compiler flags for building library objects.
18199 pic_flag=$lt_lt_prog_compiler_pic_RC
18200 pic_mode=$pic_mode
18201
18202 # What is the maximum length of a command?
18203 max_cmd_len=$lt_cv_sys_max_cmd_len
18204
18205 # Does compiler simultaneously support -c and -o options?
18206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18207
18208 # Must we lock files when doing compilation ?
18209 need_locks=$lt_need_locks
18210
18211 # Do we need the lib prefix for modules?
18212 need_lib_prefix=$need_lib_prefix
18213
18214 # Do we need a version for libraries?
18215 need_version=$need_version
18216
18217 # Whether dlopen is supported.
18218 dlopen_support=$enable_dlopen
18219
18220 # Whether dlopen of programs is supported.
18221 dlopen_self=$enable_dlopen_self
18222
18223 # Whether dlopen of statically linked programs is supported.
18224 dlopen_self_static=$enable_dlopen_self_static
18225
18226 # Compiler flag to prevent dynamic linking.
18227 link_static_flag=$lt_lt_prog_compiler_static_RC
18228
18229 # Compiler flag to turn off builtin functions.
18230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18231
18232 # Compiler flag to allow reflexive dlopens.
18233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18234
18235 # Compiler flag to generate shared objects directly from archives.
18236 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18237
18238 # Compiler flag to generate thread-safe objects.
18239 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18240
18241 # Library versioning type.
18242 version_type=$version_type
18243
18244 # Format of library name prefix.
18245 libname_spec=$lt_libname_spec
18246
18247 # List of archive names.  First name is the real one, the rest are links.
18248 # The last name is the one that the linker finds with -lNAME.
18249 library_names_spec=$lt_library_names_spec
18250
18251 # The coded name of the library, if different from the real name.
18252 soname_spec=$lt_soname_spec
18253
18254 # Commands used to build and install an old-style archive.
18255 RANLIB=$lt_RANLIB
18256 old_archive_cmds=$lt_old_archive_cmds_RC
18257 old_postinstall_cmds=$lt_old_postinstall_cmds
18258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18259
18260 # Create an old-style archive from a shared archive.
18261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18262
18263 # Create a temporary old-style archive to link instead of a shared archive.
18264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18265
18266 # Commands used to build and install a shared archive.
18267 archive_cmds=$lt_archive_cmds_RC
18268 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18269 postinstall_cmds=$lt_postinstall_cmds
18270 postuninstall_cmds=$lt_postuninstall_cmds
18271
18272 # Commands used to build a loadable module (assumed same as above if empty)
18273 module_cmds=$lt_module_cmds_RC
18274 module_expsym_cmds=$lt_module_expsym_cmds_RC
18275
18276 # Commands to strip libraries.
18277 old_striplib=$lt_old_striplib
18278 striplib=$lt_striplib
18279
18280 # Dependencies to place before the objects being linked to create a
18281 # shared library.
18282 predep_objects=$lt_predep_objects_RC
18283
18284 # Dependencies to place after the objects being linked to create a
18285 # shared library.
18286 postdep_objects=$lt_postdep_objects_RC
18287
18288 # Dependencies to place before the objects being linked to create a
18289 # shared library.
18290 predeps=$lt_predeps_RC
18291
18292 # Dependencies to place after the objects being linked to create a
18293 # shared library.
18294 postdeps=$lt_postdeps_RC
18295
18296 # The library search path used internally by the compiler when linking
18297 # a shared library.
18298 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18299
18300 # Method to check whether dependent libraries are shared objects.
18301 deplibs_check_method=$lt_deplibs_check_method
18302
18303 # Command to use when deplibs_check_method == file_magic.
18304 file_magic_cmd=$lt_file_magic_cmd
18305
18306 # Flag that allows shared libraries with undefined symbols to be built.
18307 allow_undefined_flag=$lt_allow_undefined_flag_RC
18308
18309 # Flag that forces no undefined symbols.
18310 no_undefined_flag=$lt_no_undefined_flag_RC
18311
18312 # Commands used to finish a libtool library installation in a directory.
18313 finish_cmds=$lt_finish_cmds
18314
18315 # Same as above, but a single script fragment to be evaled but not shown.
18316 finish_eval=$lt_finish_eval
18317
18318 # Take the output of nm and produce a listing of raw symbols and C names.
18319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18320
18321 # Transform the output of nm in a proper C declaration
18322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18323
18324 # Transform the output of nm in a C name address pair
18325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18326
18327 # This is the shared library runtime path variable.
18328 runpath_var=$runpath_var
18329
18330 # This is the shared library path variable.
18331 shlibpath_var=$shlibpath_var
18332
18333 # Is shlibpath searched before the hard-coded library search path?
18334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18335
18336 # How to hardcode a shared library path into an executable.
18337 hardcode_action=$hardcode_action_RC
18338
18339 # Whether we should hardcode library paths into libraries.
18340 hardcode_into_libs=$hardcode_into_libs
18341
18342 # Flag to hardcode \$libdir into a binary during linking.
18343 # This must work even if \$libdir does not exist.
18344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18345
18346 # If ld is used when linking, flag to hardcode \$libdir into
18347 # a binary during linking. This must work even if \$libdir does
18348 # not exist.
18349 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18350
18351 # Whether we need a single -rpath flag with a separated argument.
18352 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18353
18354 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18355 # resulting binary.
18356 hardcode_direct=$hardcode_direct_RC
18357
18358 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18359 # resulting binary.
18360 hardcode_minus_L=$hardcode_minus_L_RC
18361
18362 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18363 # the resulting binary.
18364 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18365
18366 # Set to yes if building a shared library automatically hardcodes DIR into the library
18367 # and all subsequent libraries and executables linked against it.
18368 hardcode_automatic=$hardcode_automatic_RC
18369
18370 # Variables whose values should be saved in libtool wrapper scripts and
18371 # restored at relink time.
18372 variables_saved_for_relink="$variables_saved_for_relink"
18373
18374 # Whether libtool must link a program against all its dependency libraries.
18375 link_all_deplibs=$link_all_deplibs_RC
18376
18377 # Compile-time system search path for libraries
18378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18379
18380 # Run-time system search path for libraries
18381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18382
18383 # Fix the shell variable \$srcfile for the compiler.
18384 fix_srcfile_path="$fix_srcfile_path_RC"
18385
18386 # Set to yes if exported symbols are required.
18387 always_export_symbols=$always_export_symbols_RC
18388
18389 # The commands to list exported symbols.
18390 export_symbols_cmds=$lt_export_symbols_cmds_RC
18391
18392 # The commands to extract the exported symbol list from a shared archive.
18393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18394
18395 # Symbols that should not be listed in the preloaded symbols.
18396 exclude_expsyms=$lt_exclude_expsyms_RC
18397
18398 # Symbols that must always be exported.
18399 include_expsyms=$lt_include_expsyms_RC
18400
18401 # ### END LIBTOOL TAG CONFIG: $tagname
18402
18403 __EOF__
18404
18405
18406 else
18407   # If there is no Makefile yet, we rely on a make rule to execute
18408   # `config.status --recheck' to rerun these tests and create the
18409   # libtool script then.
18410   test -f Makefile && make "$ltmain"
18411 fi
18412
18413
18414 ac_ext=c
18415 ac_cpp='$CPP $CPPFLAGS'
18416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18419
18420 CC="$lt_save_CC"
18421
18422         ;;
18423
18424       *)
18425         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18426 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18427    { (exit 1); exit 1; }; }
18428         ;;
18429       esac
18430
18431       # Append the new tag name to the list of available tags.
18432       if test -n "$tagname" ; then
18433       available_tags="$available_tags $tagname"
18434     fi
18435     fi
18436   done
18437   IFS="$lt_save_ifs"
18438
18439   # Now substitute the updated list of available tags.
18440   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18441     mv "${ofile}T" "$ofile"
18442     chmod +x "$ofile"
18443   else
18444     rm -f "${ofile}T"
18445     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18446 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18447    { (exit 1); exit 1; }; }
18448   fi
18449 fi
18450
18451
18452
18453 # This can be used to rebuild libtool when needed
18454 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18455
18456 # Always use our own libtool.
18457 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18458
18459 # Prevent multiple expansion
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481 # Extract the first word of "pwd", so it can be a program name with args.
18482 set dummy pwd; ac_word=$2
18483 echo "$as_me:$LINENO: checking for $ac_word" >&5
18484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18485 if test "${ac_cv_path_RPWD+set}" = set; then
18486   echo $ECHO_N "(cached) $ECHO_C" >&6
18487 else
18488   case $RPWD in
18489   [\\/]* | ?:[\\/]*)
18490   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18491   ;;
18492   *)
18493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18494 for as_dir in $PATH
18495 do
18496   IFS=$as_save_IFS
18497   test -z "$as_dir" && as_dir=.
18498   for ac_exec_ext in '' $ac_executable_extensions; do
18499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18500     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18502     break 2
18503   fi
18504 done
18505 done
18506
18507   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18508   ;;
18509 esac
18510 fi
18511 RPWD=$ac_cv_path_RPWD
18512
18513 if test -n "$RPWD"; then
18514   echo "$as_me:$LINENO: result: $RPWD" >&5
18515 echo "${ECHO_T}$RPWD" >&6
18516 else
18517   echo "$as_me:$LINENO: result: no" >&5
18518 echo "${ECHO_T}no" >&6
18519 fi
18520
18521 if test ${RPWD} = "false"
18522 then
18523         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18524 echo "$as_me: error: pwd required but not found" >&2;}
18525    { (exit 1); exit 1; }; }
18526 fi
18527
18528 # Extract the first word of "ar", so it can be a program name with args.
18529 set dummy ar; ac_word=$2
18530 echo "$as_me:$LINENO: checking for $ac_word" >&5
18531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18532 if test "${ac_cv_path_AR+set}" = set; then
18533   echo $ECHO_N "(cached) $ECHO_C" >&6
18534 else
18535   case $AR in
18536   [\\/]* | ?:[\\/]*)
18537   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18538   ;;
18539   *)
18540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18541 for as_dir in $PATH
18542 do
18543   IFS=$as_save_IFS
18544   test -z "$as_dir" && as_dir=.
18545   for ac_exec_ext in '' $ac_executable_extensions; do
18546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18547     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18549     break 2
18550   fi
18551 done
18552 done
18553
18554   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18555   ;;
18556 esac
18557 fi
18558 AR=$ac_cv_path_AR
18559
18560 if test -n "$AR"; then
18561   echo "$as_me:$LINENO: result: $AR" >&5
18562 echo "${ECHO_T}$AR" >&6
18563 else
18564   echo "$as_me:$LINENO: result: no" >&5
18565 echo "${ECHO_T}no" >&6
18566 fi
18567
18568 if test ${AR} = "false"
18569 then
18570         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18571 echo "$as_me: error: ar required but not found" >&2;}
18572    { (exit 1); exit 1; }; }
18573 fi
18574
18575 # Extract the first word of "sed", so it can be a program name with args.
18576 set dummy sed; ac_word=$2
18577 echo "$as_me:$LINENO: checking for $ac_word" >&5
18578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18579 if test "${ac_cv_path_SED+set}" = set; then
18580   echo $ECHO_N "(cached) $ECHO_C" >&6
18581 else
18582   case $SED in
18583   [\\/]* | ?:[\\/]*)
18584   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18585   ;;
18586   *)
18587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18588 for as_dir in $PATH
18589 do
18590   IFS=$as_save_IFS
18591   test -z "$as_dir" && as_dir=.
18592   for ac_exec_ext in '' $ac_executable_extensions; do
18593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18594     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18596     break 2
18597   fi
18598 done
18599 done
18600
18601   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18602   ;;
18603 esac
18604 fi
18605 SED=$ac_cv_path_SED
18606
18607 if test -n "$SED"; then
18608   echo "$as_me:$LINENO: result: $SED" >&5
18609 echo "${ECHO_T}$SED" >&6
18610 else
18611   echo "$as_me:$LINENO: result: no" >&5
18612 echo "${ECHO_T}no" >&6
18613 fi
18614
18615 if test ${SED} = "false"
18616 then
18617         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18618 echo "$as_me: error: sed required but not found" >&2;}
18619    { (exit 1); exit 1; }; }
18620 fi
18621
18622 # Extract the first word of "rm", so it can be a program name with args.
18623 set dummy rm; ac_word=$2
18624 echo "$as_me:$LINENO: checking for $ac_word" >&5
18625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18626 if test "${ac_cv_path_RM+set}" = set; then
18627   echo $ECHO_N "(cached) $ECHO_C" >&6
18628 else
18629   case $RM in
18630   [\\/]* | ?:[\\/]*)
18631   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18632   ;;
18633   *)
18634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18635 for as_dir in $PATH
18636 do
18637   IFS=$as_save_IFS
18638   test -z "$as_dir" && as_dir=.
18639   for ac_exec_ext in '' $ac_executable_extensions; do
18640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18641     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18643     break 2
18644   fi
18645 done
18646 done
18647
18648   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18649   ;;
18650 esac
18651 fi
18652 RM=$ac_cv_path_RM
18653
18654 if test -n "$RM"; then
18655   echo "$as_me:$LINENO: result: $RM" >&5
18656 echo "${ECHO_T}$RM" >&6
18657 else
18658   echo "$as_me:$LINENO: result: no" >&5
18659 echo "${ECHO_T}no" >&6
18660 fi
18661
18662 if test ${RM} = "false"
18663 then
18664         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18665 echo "$as_me: error: rm required but not found" >&2;}
18666    { (exit 1); exit 1; }; }
18667 fi
18668
18669 # Extract the first word of "echo", so it can be a program name with args.
18670 set dummy echo; ac_word=$2
18671 echo "$as_me:$LINENO: checking for $ac_word" >&5
18672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18673 if test "${ac_cv_path_ECHO+set}" = set; then
18674   echo $ECHO_N "(cached) $ECHO_C" >&6
18675 else
18676   case $ECHO in
18677   [\\/]* | ?:[\\/]*)
18678   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18679   ;;
18680   *)
18681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18682 for as_dir in $PATH
18683 do
18684   IFS=$as_save_IFS
18685   test -z "$as_dir" && as_dir=.
18686   for ac_exec_ext in '' $ac_executable_extensions; do
18687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18688     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18690     break 2
18691   fi
18692 done
18693 done
18694
18695   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18696   ;;
18697 esac
18698 fi
18699 ECHO=$ac_cv_path_ECHO
18700
18701 if test -n "$ECHO"; then
18702   echo "$as_me:$LINENO: result: $ECHO" >&5
18703 echo "${ECHO_T}$ECHO" >&6
18704 else
18705   echo "$as_me:$LINENO: result: no" >&5
18706 echo "${ECHO_T}no" >&6
18707 fi
18708
18709 if test ${ECHO} = "false"
18710 then
18711         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18712 echo "$as_me: error: echo required but not found" >&2;}
18713    { (exit 1); exit 1; }; }
18714 fi
18715
18716 # Extract the first word of "mkdir", so it can be a program name with args.
18717 set dummy mkdir; ac_word=$2
18718 echo "$as_me:$LINENO: checking for $ac_word" >&5
18719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18720 if test "${ac_cv_path_MKDIR+set}" = set; then
18721   echo $ECHO_N "(cached) $ECHO_C" >&6
18722 else
18723   case $MKDIR in
18724   [\\/]* | ?:[\\/]*)
18725   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18726   ;;
18727   *)
18728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18729 for as_dir in $PATH
18730 do
18731   IFS=$as_save_IFS
18732   test -z "$as_dir" && as_dir=.
18733   for ac_exec_ext in '' $ac_executable_extensions; do
18734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18735     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18737     break 2
18738   fi
18739 done
18740 done
18741
18742   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18743   ;;
18744 esac
18745 fi
18746 MKDIR=$ac_cv_path_MKDIR
18747
18748 if test -n "$MKDIR"; then
18749   echo "$as_me:$LINENO: result: $MKDIR" >&5
18750 echo "${ECHO_T}$MKDIR" >&6
18751 else
18752   echo "$as_me:$LINENO: result: no" >&5
18753 echo "${ECHO_T}no" >&6
18754 fi
18755
18756 if test ${MKDIR} = "false"
18757 then
18758         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18759 echo "$as_me: error: mkdir required but not found" >&2;}
18760    { (exit 1); exit 1; }; }
18761 fi
18762
18763 # Extract the first word of "date", so it can be a program name with args.
18764 set dummy date; ac_word=$2
18765 echo "$as_me:$LINENO: checking for $ac_word" >&5
18766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18767 if test "${ac_cv_path_DATE+set}" = set; then
18768   echo $ECHO_N "(cached) $ECHO_C" >&6
18769 else
18770   case $DATE in
18771   [\\/]* | ?:[\\/]*)
18772   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18773   ;;
18774   *)
18775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18776 for as_dir in $PATH
18777 do
18778   IFS=$as_save_IFS
18779   test -z "$as_dir" && as_dir=.
18780   for ac_exec_ext in '' $ac_executable_extensions; do
18781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18782     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18784     break 2
18785   fi
18786 done
18787 done
18788
18789   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18790   ;;
18791 esac
18792 fi
18793 DATE=$ac_cv_path_DATE
18794
18795 if test -n "$DATE"; then
18796   echo "$as_me:$LINENO: result: $DATE" >&5
18797 echo "${ECHO_T}$DATE" >&6
18798 else
18799   echo "$as_me:$LINENO: result: no" >&5
18800 echo "${ECHO_T}no" >&6
18801 fi
18802
18803 if test ${DATE} = "false"
18804 then
18805         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18806 echo "$as_me: error: date required but not found" >&2;}
18807    { (exit 1); exit 1; }; }
18808 fi
18809
18810 # Extract the first word of "mv", so it can be a program name with args.
18811 set dummy mv; ac_word=$2
18812 echo "$as_me:$LINENO: checking for $ac_word" >&5
18813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18814 if test "${ac_cv_path_MV+set}" = set; then
18815   echo $ECHO_N "(cached) $ECHO_C" >&6
18816 else
18817   case $MV in
18818   [\\/]* | ?:[\\/]*)
18819   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18820   ;;
18821   *)
18822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823 for as_dir in $PATH
18824 do
18825   IFS=$as_save_IFS
18826   test -z "$as_dir" && as_dir=.
18827   for ac_exec_ext in '' $ac_executable_extensions; do
18828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18829     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18831     break 2
18832   fi
18833 done
18834 done
18835
18836   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18837   ;;
18838 esac
18839 fi
18840 MV=$ac_cv_path_MV
18841
18842 if test -n "$MV"; then
18843   echo "$as_me:$LINENO: result: $MV" >&5
18844 echo "${ECHO_T}$MV" >&6
18845 else
18846   echo "$as_me:$LINENO: result: no" >&5
18847 echo "${ECHO_T}no" >&6
18848 fi
18849
18850 if test ${MV} = "false"
18851 then
18852         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18853 echo "$as_me: error: mv required but not found" >&2;}
18854    { (exit 1); exit 1; }; }
18855 fi
18856
18857 # Extract the first word of "dot", so it can be a program name with args.
18858 set dummy dot; ac_word=$2
18859 echo "$as_me:$LINENO: checking for $ac_word" >&5
18860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18861 if test "${ac_cv_path_DOT+set}" = set; then
18862   echo $ECHO_N "(cached) $ECHO_C" >&6
18863 else
18864   case $DOT in
18865   [\\/]* | ?:[\\/]*)
18866   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18867   ;;
18868   *)
18869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18870 for as_dir in $PATH
18871 do
18872   IFS=$as_save_IFS
18873   test -z "$as_dir" && as_dir=.
18874   for ac_exec_ext in '' $ac_executable_extensions; do
18875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18876     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18878     break 2
18879   fi
18880 done
18881 done
18882
18883   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18884   ;;
18885 esac
18886 fi
18887 DOT=$ac_cv_path_DOT
18888
18889 if test -n "$DOT"; then
18890   echo "$as_me:$LINENO: result: $DOT" >&5
18891 echo "${ECHO_T}$DOT" >&6
18892 else
18893   echo "$as_me:$LINENO: result: no" >&5
18894 echo "${ECHO_T}no" >&6
18895 fi
18896
18897
18898 # Extract the first word of "etags", so it can be a program name with args.
18899 set dummy etags; ac_word=$2
18900 echo "$as_me:$LINENO: checking for $ac_word" >&5
18901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18902 if test "${ac_cv_path_ETAGS+set}" = set; then
18903   echo $ECHO_N "(cached) $ECHO_C" >&6
18904 else
18905   case $ETAGS in
18906   [\\/]* | ?:[\\/]*)
18907   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18908   ;;
18909   *)
18910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18911 for as_dir in $PATH
18912 do
18913   IFS=$as_save_IFS
18914   test -z "$as_dir" && as_dir=.
18915   for ac_exec_ext in '' $ac_executable_extensions; do
18916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18917     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18919     break 2
18920   fi
18921 done
18922 done
18923
18924   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18925   ;;
18926 esac
18927 fi
18928 ETAGS=$ac_cv_path_ETAGS
18929
18930 if test -n "$ETAGS"; then
18931   echo "$as_me:$LINENO: result: $ETAGS" >&5
18932 echo "${ECHO_T}$ETAGS" >&6
18933 else
18934   echo "$as_me:$LINENO: result: no" >&5
18935 echo "${ECHO_T}no" >&6
18936 fi
18937
18938
18939 # Extract the first word of "python", so it can be a program name with args.
18940 set dummy python; ac_word=$2
18941 echo "$as_me:$LINENO: checking for $ac_word" >&5
18942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18943 if test "${ac_cv_path_PYTHON+set}" = set; then
18944   echo $ECHO_N "(cached) $ECHO_C" >&6
18945 else
18946   case $PYTHON in
18947   [\\/]* | ?:[\\/]*)
18948   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18949   ;;
18950   *)
18951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18952 for as_dir in $PATH
18953 do
18954   IFS=$as_save_IFS
18955   test -z "$as_dir" && as_dir=.
18956   for ac_exec_ext in '' $ac_executable_extensions; do
18957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18958     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18960     break 2
18961   fi
18962 done
18963 done
18964
18965   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18966   ;;
18967 esac
18968 fi
18969 PYTHON=$ac_cv_path_PYTHON
18970
18971 if test -n "$PYTHON"; then
18972   echo "$as_me:$LINENO: result: $PYTHON" >&5
18973 echo "${ECHO_T}$PYTHON" >&6
18974 else
18975   echo "$as_me:$LINENO: result: no" >&5
18976 echo "${ECHO_T}no" >&6
18977 fi
18978
18979 if test ${PYTHON} = "false"
18980 then
18981         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18982 echo "$as_me: WARNING: python required but not found" >&2;}
18983 fi
18984
18985 # Extract the first word of "qmtest", so it can be a program name with args.
18986 set dummy qmtest; ac_word=$2
18987 echo "$as_me:$LINENO: checking for $ac_word" >&5
18988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18989 if test "${ac_cv_path_QMTEST+set}" = set; then
18990   echo $ECHO_N "(cached) $ECHO_C" >&6
18991 else
18992   case $QMTEST in
18993   [\\/]* | ?:[\\/]*)
18994   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18995   ;;
18996   *)
18997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18998 for as_dir in $PATH
18999 do
19000   IFS=$as_save_IFS
19001   test -z "$as_dir" && as_dir=.
19002   for ac_exec_ext in '' $ac_executable_extensions; do
19003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19004     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19006     break 2
19007   fi
19008 done
19009 done
19010
19011   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19012   ;;
19013 esac
19014 fi
19015 QMTEST=$ac_cv_path_QMTEST
19016
19017 if test -n "$QMTEST"; then
19018   echo "$as_me:$LINENO: result: $QMTEST" >&5
19019 echo "${ECHO_T}$QMTEST" >&6
19020 else
19021   echo "$as_me:$LINENO: result: no" >&5
19022 echo "${ECHO_T}no" >&6
19023 fi
19024
19025 if test ${QMTEST} = "false"
19026 then
19027         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19028 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19029 fi
19030
19031 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19032 pymajor=`echo $pyversion | cut -d. -f1`
19033 pyminor=`echo $pyversion | cut -d. -f2`
19034
19035 if test "$pymajor" -ge "2"
19036 then
19037         if test "$pymajor" -eq "2"
19038         then
19039                 if test "$pyminor" -lt "2"
19040                 then
19041                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19042 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19043    { (exit 1); exit 1; }; }
19044                 fi
19045         fi
19046 else
19047         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19048 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19049    { (exit 1); exit 1; }; }
19050 fi
19051
19052
19053
19054
19055
19056 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19057 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19058 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   ac_check_lib_save_LIBS=$LIBS
19062 LIBS="-lelf  $LIBS"
19063 cat >conftest.$ac_ext <<_ACEOF
19064 #line $LINENO "configure"
19065 /* confdefs.h.  */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h.  */
19070
19071 /* Override any gcc2 internal prototype to avoid an error.  */
19072 #ifdef __cplusplus
19073 extern "C"
19074 #endif
19075 /* We use char because int might match the return type of a gcc2
19076    builtin and then its argument prototype would still apply.  */
19077 char elf_begin ();
19078 int
19079 main ()
19080 {
19081 elf_begin ();
19082   ;
19083   return 0;
19084 }
19085 _ACEOF
19086 rm -f conftest.$ac_objext conftest$ac_exeext
19087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19088   (eval $ac_link) 2>&5
19089   ac_status=$?
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); } &&
19092          { ac_try='test -s conftest$ac_exeext'
19093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094   (eval $ac_try) 2>&5
19095   ac_status=$?
19096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097   (exit $ac_status); }; }; then
19098   ac_cv_lib_elf_elf_begin=yes
19099 else
19100   echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19102
19103 ac_cv_lib_elf_elf_begin=no
19104 fi
19105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19106 LIBS=$ac_check_lib_save_LIBS
19107 fi
19108 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19109 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19110 if test $ac_cv_lib_elf_elf_begin = yes; then
19111   cat >>confdefs.h <<_ACEOF
19112 #define HAVE_LIBELF 1
19113 _ACEOF
19114
19115   LIBS="-lelf $LIBS"
19116
19117 fi
19118
19119
19120 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19121 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19122 if test "${ac_cv_search_dlopen+set}" = set; then
19123   echo $ECHO_N "(cached) $ECHO_C" >&6
19124 else
19125   ac_func_search_save_LIBS=$LIBS
19126 ac_cv_search_dlopen=no
19127 cat >conftest.$ac_ext <<_ACEOF
19128 #line $LINENO "configure"
19129 /* confdefs.h.  */
19130 _ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h.  */
19134
19135 /* Override any gcc2 internal prototype to avoid an error.  */
19136 #ifdef __cplusplus
19137 extern "C"
19138 #endif
19139 /* We use char because int might match the return type of a gcc2
19140    builtin and then its argument prototype would still apply.  */
19141 char dlopen ();
19142 int
19143 main ()
19144 {
19145 dlopen ();
19146   ;
19147   return 0;
19148 }
19149 _ACEOF
19150 rm -f conftest.$ac_objext conftest$ac_exeext
19151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19152   (eval $ac_link) 2>&5
19153   ac_status=$?
19154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155   (exit $ac_status); } &&
19156          { ac_try='test -s conftest$ac_exeext'
19157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158   (eval $ac_try) 2>&5
19159   ac_status=$?
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); }; }; then
19162   ac_cv_search_dlopen="none required"
19163 else
19164   echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19166
19167 fi
19168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19169 if test "$ac_cv_search_dlopen" = no; then
19170   for ac_lib in dl; do
19171     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19172     cat >conftest.$ac_ext <<_ACEOF
19173 #line $LINENO "configure"
19174 /* confdefs.h.  */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h.  */
19179
19180 /* Override any gcc2 internal prototype to avoid an error.  */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 /* We use char because int might match the return type of a gcc2
19185    builtin and then its argument prototype would still apply.  */
19186 char dlopen ();
19187 int
19188 main ()
19189 {
19190 dlopen ();
19191   ;
19192   return 0;
19193 }
19194 _ACEOF
19195 rm -f conftest.$ac_objext conftest$ac_exeext
19196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19197   (eval $ac_link) 2>&5
19198   ac_status=$?
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); } &&
19201          { ac_try='test -s conftest$ac_exeext'
19202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203   (eval $ac_try) 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; }; then
19207   ac_cv_search_dlopen="-l$ac_lib"
19208 break
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213 fi
19214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19215   done
19216 fi
19217 LIBS=$ac_func_search_save_LIBS
19218 fi
19219 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19220 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19221 if test "$ac_cv_search_dlopen" != no; then
19222   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19223
19224 else
19225   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19226 echo "$as_me: error: dlopen() required but not found" >&2;}
19227    { (exit 1); exit 1; }; }
19228 fi
19229
19230
19231 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19232 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19233 if test "${ac_cv_search_mallinfo+set}" = set; then
19234   echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236   ac_func_search_save_LIBS=$LIBS
19237 ac_cv_search_mallinfo=no
19238 cat >conftest.$ac_ext <<_ACEOF
19239 #line $LINENO "configure"
19240 /* confdefs.h.  */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h.  */
19245
19246 /* Override any gcc2 internal prototype to avoid an error.  */
19247 #ifdef __cplusplus
19248 extern "C"
19249 #endif
19250 /* We use char because int might match the return type of a gcc2
19251    builtin and then its argument prototype would still apply.  */
19252 char mallinfo ();
19253 int
19254 main ()
19255 {
19256 mallinfo ();
19257   ;
19258   return 0;
19259 }
19260 _ACEOF
19261 rm -f conftest.$ac_objext conftest$ac_exeext
19262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19263   (eval $ac_link) 2>&5
19264   ac_status=$?
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } &&
19267          { ac_try='test -s conftest$ac_exeext'
19268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269   (eval $ac_try) 2>&5
19270   ac_status=$?
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); }; }; then
19273   ac_cv_search_mallinfo="none required"
19274 else
19275   echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19277
19278 fi
19279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19280 if test "$ac_cv_search_mallinfo" = no; then
19281   for ac_lib in malloc; do
19282     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19283     cat >conftest.$ac_ext <<_ACEOF
19284 #line $LINENO "configure"
19285 /* confdefs.h.  */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h.  */
19290
19291 /* Override any gcc2 internal prototype to avoid an error.  */
19292 #ifdef __cplusplus
19293 extern "C"
19294 #endif
19295 /* We use char because int might match the return type of a gcc2
19296    builtin and then its argument prototype would still apply.  */
19297 char mallinfo ();
19298 int
19299 main ()
19300 {
19301 mallinfo ();
19302   ;
19303   return 0;
19304 }
19305 _ACEOF
19306 rm -f conftest.$ac_objext conftest$ac_exeext
19307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19308   (eval $ac_link) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); } &&
19312          { ac_try='test -s conftest$ac_exeext'
19313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314   (eval $ac_try) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; }; then
19318   ac_cv_search_mallinfo="-l$ac_lib"
19319 break
19320 else
19321   echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 fi
19325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19326   done
19327 fi
19328 LIBS=$ac_func_search_save_LIBS
19329 fi
19330 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19331 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19332 if test "$ac_cv_search_mallinfo" != no; then
19333   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19334   cat >>confdefs.h <<\_ACEOF
19335 #define HAVE_MALLINFO 1
19336 _ACEOF
19337
19338 fi
19339
19340
19341
19342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19344 if test "${ac_cv_header_stdc+set}" = set; then
19345   echo $ECHO_N "(cached) $ECHO_C" >&6
19346 else
19347   cat >conftest.$ac_ext <<_ACEOF
19348 #line $LINENO "configure"
19349 /* confdefs.h.  */
19350 _ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h.  */
19354 #include <stdlib.h>
19355 #include <stdarg.h>
19356 #include <string.h>
19357 #include <float.h>
19358
19359 int
19360 main ()
19361 {
19362
19363   ;
19364   return 0;
19365 }
19366 _ACEOF
19367 rm -f conftest.$ac_objext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369   (eval $ac_compile) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } &&
19373          { ac_try='test -s conftest.$ac_objext'
19374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375   (eval $ac_try) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; }; then
19379   ac_cv_header_stdc=yes
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_cv_header_stdc=no
19385 fi
19386 rm -f conftest.$ac_objext conftest.$ac_ext
19387
19388 if test $ac_cv_header_stdc = yes; then
19389   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19390   cat >conftest.$ac_ext <<_ACEOF
19391 #line $LINENO "configure"
19392 /* confdefs.h.  */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h.  */
19397 #include <string.h>
19398
19399 _ACEOF
19400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19401   $EGREP "memchr" >/dev/null 2>&1; then
19402   :
19403 else
19404   ac_cv_header_stdc=no
19405 fi
19406 rm -f conftest*
19407
19408 fi
19409
19410 if test $ac_cv_header_stdc = yes; then
19411   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19412   cat >conftest.$ac_ext <<_ACEOF
19413 #line $LINENO "configure"
19414 /* confdefs.h.  */
19415 _ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h.  */
19419 #include <stdlib.h>
19420
19421 _ACEOF
19422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19423   $EGREP "free" >/dev/null 2>&1; then
19424   :
19425 else
19426   ac_cv_header_stdc=no
19427 fi
19428 rm -f conftest*
19429
19430 fi
19431
19432 if test $ac_cv_header_stdc = yes; then
19433   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19434   if test "$cross_compiling" = yes; then
19435   :
19436 else
19437   cat >conftest.$ac_ext <<_ACEOF
19438 #line $LINENO "configure"
19439 /* confdefs.h.  */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h.  */
19444 #include <ctype.h>
19445 #if ((' ' & 0x0FF) == 0x020)
19446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19448 #else
19449 # define ISLOWER(c) \
19450                    (('a' <= (c) && (c) <= 'i') \
19451                      || ('j' <= (c) && (c) <= 'r') \
19452                      || ('s' <= (c) && (c) <= 'z'))
19453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19454 #endif
19455
19456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19457 int
19458 main ()
19459 {
19460   int i;
19461   for (i = 0; i < 256; i++)
19462     if (XOR (islower (i), ISLOWER (i))
19463         || toupper (i) != TOUPPER (i))
19464       exit(2);
19465   exit (0);
19466 }
19467 _ACEOF
19468 rm -f conftest$ac_exeext
19469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19470   (eval $ac_link) 2>&5
19471   ac_status=$?
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475   (eval $ac_try) 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }; }; then
19479   :
19480 else
19481   echo "$as_me: program exited with status $ac_status" >&5
19482 echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19484
19485 ( exit $ac_status )
19486 ac_cv_header_stdc=no
19487 fi
19488 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19489 fi
19490 fi
19491 fi
19492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19494 if test $ac_cv_header_stdc = yes; then
19495
19496 cat >>confdefs.h <<\_ACEOF
19497 #define STDC_HEADERS 1
19498 _ACEOF
19499
19500 fi
19501
19502 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19503 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19504 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   cat >conftest.$ac_ext <<_ACEOF
19508 #line $LINENO "configure"
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514 #include <sys/types.h>
19515 #include <sys/wait.h>
19516 #ifndef WEXITSTATUS
19517 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19518 #endif
19519 #ifndef WIFEXITED
19520 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19521 #endif
19522
19523 int
19524 main ()
19525 {
19526   int s;
19527   wait (&s);
19528   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext
19534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19535   (eval $ac_compile) 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); } &&
19539          { ac_try='test -s conftest.$ac_objext'
19540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541   (eval $ac_try) 2>&5
19542   ac_status=$?
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); }; }; then
19545   ac_cv_header_sys_wait_h=yes
19546 else
19547   echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19549
19550 ac_cv_header_sys_wait_h=no
19551 fi
19552 rm -f conftest.$ac_objext conftest.$ac_ext
19553 fi
19554 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19555 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19556 if test $ac_cv_header_sys_wait_h = yes; then
19557
19558 cat >>confdefs.h <<\_ACEOF
19559 #define HAVE_SYS_WAIT_H 1
19560 _ACEOF
19561
19562 fi
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19574 do
19575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19577   echo "$as_me:$LINENO: checking for $ac_header" >&5
19578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19580   echo $ECHO_N "(cached) $ECHO_C" >&6
19581 fi
19582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19584 else
19585   # Is the header compilable?
19586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19588 cat >conftest.$ac_ext <<_ACEOF
19589 #line $LINENO "configure"
19590 /* confdefs.h.  */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h.  */
19595 $ac_includes_default
19596 #include <$ac_header>
19597 _ACEOF
19598 rm -f conftest.$ac_objext
19599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19600   (eval $ac_compile) 2>&5
19601   ac_status=$?
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); } &&
19604          { ac_try='test -s conftest.$ac_objext'
19605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606   (eval $ac_try) 2>&5
19607   ac_status=$?
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); }; }; then
19610   ac_header_compiler=yes
19611 else
19612   echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19614
19615 ac_header_compiler=no
19616 fi
19617 rm -f conftest.$ac_objext conftest.$ac_ext
19618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19619 echo "${ECHO_T}$ac_header_compiler" >&6
19620
19621 # Is the header present?
19622 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19624 cat >conftest.$ac_ext <<_ACEOF
19625 #line $LINENO "configure"
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 #include <$ac_header>
19632 _ACEOF
19633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19634   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19635   ac_status=$?
19636   grep -v '^ *+' conftest.er1 >conftest.err
19637   rm -f conftest.er1
19638   cat conftest.err >&5
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); } >/dev/null; then
19641   if test -s conftest.err; then
19642     ac_cpp_err=$ac_c_preproc_warn_flag
19643   else
19644     ac_cpp_err=
19645   fi
19646 else
19647   ac_cpp_err=yes
19648 fi
19649 if test -z "$ac_cpp_err"; then
19650   ac_header_preproc=yes
19651 else
19652   echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655   ac_header_preproc=no
19656 fi
19657 rm -f conftest.err conftest.$ac_ext
19658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19659 echo "${ECHO_T}$ac_header_preproc" >&6
19660
19661 # So?  What about this header?
19662 case $ac_header_compiler:$ac_header_preproc in
19663   yes:no )
19664     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19668     (
19669       cat <<\_ASBOX
19670 ## ------------------------------------ ##
19671 ## Report this to bug-autoconf@gnu.org. ##
19672 ## ------------------------------------ ##
19673 _ASBOX
19674     ) |
19675       sed "s/^/$as_me: WARNING:     /" >&2
19676     ;;
19677   no:yes )
19678     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19680     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19684     (
19685       cat <<\_ASBOX
19686 ## ------------------------------------ ##
19687 ## Report this to bug-autoconf@gnu.org. ##
19688 ## ------------------------------------ ##
19689 _ASBOX
19690     ) |
19691       sed "s/^/$as_me: WARNING:     /" >&2
19692     ;;
19693 esac
19694 echo "$as_me:$LINENO: checking for $ac_header" >&5
19695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19697   echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699   eval "$as_ac_Header=$ac_header_preproc"
19700 fi
19701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19703
19704 fi
19705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19706   cat >>confdefs.h <<_ACEOF
19707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19708 _ACEOF
19709
19710 fi
19711
19712 done
19713
19714
19715
19716
19717
19718
19719 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19720 do
19721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723   echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726   echo $ECHO_N "(cached) $ECHO_C" >&6
19727 fi
19728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19730 else
19731   # Is the header compilable?
19732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19734 cat >conftest.$ac_ext <<_ACEOF
19735 #line $LINENO "configure"
19736 /* confdefs.h.  */
19737 _ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h.  */
19741 $ac_includes_default
19742 #include <$ac_header>
19743 _ACEOF
19744 rm -f conftest.$ac_objext
19745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19746   (eval $ac_compile) 2>&5
19747   ac_status=$?
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } &&
19750          { ac_try='test -s conftest.$ac_objext'
19751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752   (eval $ac_try) 2>&5
19753   ac_status=$?
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); }; }; then
19756   ac_header_compiler=yes
19757 else
19758   echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761 ac_header_compiler=no
19762 fi
19763 rm -f conftest.$ac_objext conftest.$ac_ext
19764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19765 echo "${ECHO_T}$ac_header_compiler" >&6
19766
19767 # Is the header present?
19768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19770 cat >conftest.$ac_ext <<_ACEOF
19771 #line $LINENO "configure"
19772 /* confdefs.h.  */
19773 _ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h.  */
19777 #include <$ac_header>
19778 _ACEOF
19779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19780   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19781   ac_status=$?
19782   grep -v '^ *+' conftest.er1 >conftest.err
19783   rm -f conftest.er1
19784   cat conftest.err >&5
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); } >/dev/null; then
19787   if test -s conftest.err; then
19788     ac_cpp_err=$ac_c_preproc_warn_flag
19789   else
19790     ac_cpp_err=
19791   fi
19792 else
19793   ac_cpp_err=yes
19794 fi
19795 if test -z "$ac_cpp_err"; then
19796   ac_header_preproc=yes
19797 else
19798   echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801   ac_header_preproc=no
19802 fi
19803 rm -f conftest.err conftest.$ac_ext
19804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19805 echo "${ECHO_T}$ac_header_preproc" >&6
19806
19807 # So?  What about this header?
19808 case $ac_header_compiler:$ac_header_preproc in
19809   yes:no )
19810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19814     (
19815       cat <<\_ASBOX
19816 ## ------------------------------------ ##
19817 ## Report this to bug-autoconf@gnu.org. ##
19818 ## ------------------------------------ ##
19819 _ASBOX
19820     ) |
19821       sed "s/^/$as_me: WARNING:     /" >&2
19822     ;;
19823   no:yes )
19824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19826     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19830     (
19831       cat <<\_ASBOX
19832 ## ------------------------------------ ##
19833 ## Report this to bug-autoconf@gnu.org. ##
19834 ## ------------------------------------ ##
19835 _ASBOX
19836     ) |
19837       sed "s/^/$as_me: WARNING:     /" >&2
19838     ;;
19839 esac
19840 echo "$as_me:$LINENO: checking for $ac_header" >&5
19841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19843   echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19845   eval "$as_ac_Header=$ac_header_preproc"
19846 fi
19847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19849
19850 fi
19851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19852   cat >>confdefs.h <<_ACEOF
19853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19854 _ACEOF
19855
19856 fi
19857
19858 done
19859
19860
19861
19862
19863 for ac_header in dlfcn.h link.h
19864 do
19865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19867   echo "$as_me:$LINENO: checking for $ac_header" >&5
19868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19870   echo $ECHO_N "(cached) $ECHO_C" >&6
19871 fi
19872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19874 else
19875   # Is the header compilable?
19876 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19878 cat >conftest.$ac_ext <<_ACEOF
19879 #line $LINENO "configure"
19880 /* confdefs.h.  */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h.  */
19885 $ac_includes_default
19886 #include <$ac_header>
19887 _ACEOF
19888 rm -f conftest.$ac_objext
19889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19890   (eval $ac_compile) 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); } &&
19894          { ac_try='test -s conftest.$ac_objext'
19895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896   (eval $ac_try) 2>&5
19897   ac_status=$?
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); }; }; then
19900   ac_header_compiler=yes
19901 else
19902   echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905 ac_header_compiler=no
19906 fi
19907 rm -f conftest.$ac_objext conftest.$ac_ext
19908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19909 echo "${ECHO_T}$ac_header_compiler" >&6
19910
19911 # Is the header present?
19912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19914 cat >conftest.$ac_ext <<_ACEOF
19915 #line $LINENO "configure"
19916 /* confdefs.h.  */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h.  */
19921 #include <$ac_header>
19922 _ACEOF
19923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19925   ac_status=$?
19926   grep -v '^ *+' conftest.er1 >conftest.err
19927   rm -f conftest.er1
19928   cat conftest.err >&5
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); } >/dev/null; then
19931   if test -s conftest.err; then
19932     ac_cpp_err=$ac_c_preproc_warn_flag
19933   else
19934     ac_cpp_err=
19935   fi
19936 else
19937   ac_cpp_err=yes
19938 fi
19939 if test -z "$ac_cpp_err"; then
19940   ac_header_preproc=yes
19941 else
19942   echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19944
19945   ac_header_preproc=no
19946 fi
19947 rm -f conftest.err conftest.$ac_ext
19948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19949 echo "${ECHO_T}$ac_header_preproc" >&6
19950
19951 # So?  What about this header?
19952 case $ac_header_compiler:$ac_header_preproc in
19953   yes:no )
19954     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19956     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19958     (
19959       cat <<\_ASBOX
19960 ## ------------------------------------ ##
19961 ## Report this to bug-autoconf@gnu.org. ##
19962 ## ------------------------------------ ##
19963 _ASBOX
19964     ) |
19965       sed "s/^/$as_me: WARNING:     /" >&2
19966     ;;
19967   no:yes )
19968     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19970     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19974     (
19975       cat <<\_ASBOX
19976 ## ------------------------------------ ##
19977 ## Report this to bug-autoconf@gnu.org. ##
19978 ## ------------------------------------ ##
19979 _ASBOX
19980     ) |
19981       sed "s/^/$as_me: WARNING:     /" >&2
19982     ;;
19983 esac
19984 echo "$as_me:$LINENO: checking for $ac_header" >&5
19985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19987   echo $ECHO_N "(cached) $ECHO_C" >&6
19988 else
19989   eval "$as_ac_Header=$ac_header_preproc"
19990 fi
19991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19993
19994 fi
19995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19996   cat >>confdefs.h <<_ACEOF
19997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19998 _ACEOF
19999
20000 fi
20001
20002 done
20003
20004
20005
20006 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20007 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20008 if test "${ac_cv_c_const+set}" = set; then
20009   echo $ECHO_N "(cached) $ECHO_C" >&6
20010 else
20011   cat >conftest.$ac_ext <<_ACEOF
20012 #line $LINENO "configure"
20013 /* confdefs.h.  */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h.  */
20018
20019 int
20020 main ()
20021 {
20022 /* FIXME: Include the comments suggested by Paul. */
20023 #ifndef __cplusplus
20024   /* Ultrix mips cc rejects this.  */
20025   typedef int charset[2];
20026   const charset x;
20027   /* SunOS 4.1.1 cc rejects this.  */
20028   char const *const *ccp;
20029   char **p;
20030   /* NEC SVR4.0.2 mips cc rejects this.  */
20031   struct point {int x, y;};
20032   static struct point const zero = {0,0};
20033   /* AIX XL C 1.02.0.0 rejects this.
20034      It does not let you subtract one const X* pointer from another in
20035      an arm of an if-expression whose if-part is not a constant
20036      expression */
20037   const char *g = "string";
20038   ccp = &g + (g ? g-g : 0);
20039   /* HPUX 7.0 cc rejects these. */
20040   ++ccp;
20041   p = (char**) ccp;
20042   ccp = (char const *const *) p;
20043   { /* SCO 3.2v4 cc rejects this.  */
20044     char *t;
20045     char const *s = 0 ? (char *) 0 : (char const *) 0;
20046
20047     *t++ = 0;
20048   }
20049   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20050     int x[] = {25, 17};
20051     const int *foo = &x[0];
20052     ++foo;
20053   }
20054   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20055     typedef const int *iptr;
20056     iptr p = 0;
20057     ++p;
20058   }
20059   { /* AIX XL C 1.02.0.0 rejects this saying
20060        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20061     struct s { int j; const int *ap[3]; };
20062     struct s *b; b->j = 5;
20063   }
20064   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20065     const int foo = 10;
20066   }
20067 #endif
20068
20069   ;
20070   return 0;
20071 }
20072 _ACEOF
20073 rm -f conftest.$ac_objext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20075   (eval $ac_compile) 2>&5
20076   ac_status=$?
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); } &&
20079          { ac_try='test -s conftest.$ac_objext'
20080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081   (eval $ac_try) 2>&5
20082   ac_status=$?
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); }; }; then
20085   ac_cv_c_const=yes
20086 else
20087   echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20089
20090 ac_cv_c_const=no
20091 fi
20092 rm -f conftest.$ac_objext conftest.$ac_ext
20093 fi
20094 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20095 echo "${ECHO_T}$ac_cv_c_const" >&6
20096 if test $ac_cv_c_const = no; then
20097
20098 cat >>confdefs.h <<\_ACEOF
20099 #define const
20100 _ACEOF
20101
20102 fi
20103
20104 echo "$as_me:$LINENO: checking for inline" >&5
20105 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20106 if test "${ac_cv_c_inline+set}" = set; then
20107   echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109   ac_cv_c_inline=no
20110 for ac_kw in inline __inline__ __inline; do
20111   cat >conftest.$ac_ext <<_ACEOF
20112 #line $LINENO "configure"
20113 /* confdefs.h.  */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h.  */
20118 #ifndef __cplusplus
20119 typedef int foo_t;
20120 static $ac_kw foo_t static_foo () {return 0; }
20121 $ac_kw foo_t foo () {return 0; }
20122 #endif
20123
20124 _ACEOF
20125 rm -f conftest.$ac_objext
20126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20127   (eval $ac_compile) 2>&5
20128   ac_status=$?
20129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130   (exit $ac_status); } &&
20131          { ac_try='test -s conftest.$ac_objext'
20132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133   (eval $ac_try) 2>&5
20134   ac_status=$?
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); }; }; then
20137   ac_cv_c_inline=$ac_kw; break
20138 else
20139   echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20141
20142 fi
20143 rm -f conftest.$ac_objext conftest.$ac_ext
20144 done
20145
20146 fi
20147 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20148 echo "${ECHO_T}$ac_cv_c_inline" >&6
20149 case $ac_cv_c_inline in
20150   inline | yes) ;;
20151   no)
20152 cat >>confdefs.h <<\_ACEOF
20153 #define inline
20154 _ACEOF
20155  ;;
20156   *)  cat >>confdefs.h <<_ACEOF
20157 #define inline $ac_cv_c_inline
20158 _ACEOF
20159  ;;
20160 esac
20161
20162
20163 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20164 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20165 if test "${ac_cv_c_bigendian+set}" = set; then
20166   echo $ECHO_N "(cached) $ECHO_C" >&6
20167 else
20168   # See if sys/param.h defines the BYTE_ORDER macro.
20169 cat >conftest.$ac_ext <<_ACEOF
20170 #line $LINENO "configure"
20171 /* confdefs.h.  */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h.  */
20176 #include <sys/types.h>
20177 #include <sys/param.h>
20178
20179 int
20180 main ()
20181 {
20182 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20183  bogus endian macros
20184 #endif
20185
20186   ;
20187   return 0;
20188 }
20189 _ACEOF
20190 rm -f conftest.$ac_objext
20191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192   (eval $ac_compile) 2>&5
20193   ac_status=$?
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } &&
20196          { ac_try='test -s conftest.$ac_objext'
20197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198   (eval $ac_try) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; }; then
20202   # It does; now see whether it defined to BIG_ENDIAN or not.
20203 cat >conftest.$ac_ext <<_ACEOF
20204 #line $LINENO "configure"
20205 /* confdefs.h.  */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h.  */
20210 #include <sys/types.h>
20211 #include <sys/param.h>
20212
20213 int
20214 main ()
20215 {
20216 #if BYTE_ORDER != BIG_ENDIAN
20217  not big endian
20218 #endif
20219
20220   ;
20221   return 0;
20222 }
20223 _ACEOF
20224 rm -f conftest.$ac_objext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226   (eval $ac_compile) 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } &&
20230          { ac_try='test -s conftest.$ac_objext'
20231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232   (eval $ac_try) 2>&5
20233   ac_status=$?
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); }; }; then
20236   ac_cv_c_bigendian=yes
20237 else
20238   echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20240
20241 ac_cv_c_bigendian=no
20242 fi
20243 rm -f conftest.$ac_objext conftest.$ac_ext
20244 else
20245   echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 # It does not; compile a test program.
20249 if test "$cross_compiling" = yes; then
20250   # try to guess the endianness by grepping values into an object file
20251   ac_cv_c_bigendian=unknown
20252   cat >conftest.$ac_ext <<_ACEOF
20253 #line $LINENO "configure"
20254 /* confdefs.h.  */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h.  */
20259 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20260 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20261 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20262 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20263 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20264 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20265 int
20266 main ()
20267 {
20268  _ascii (); _ebcdic ();
20269   ;
20270   return 0;
20271 }
20272 _ACEOF
20273 rm -f conftest.$ac_objext
20274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20275   (eval $ac_compile) 2>&5
20276   ac_status=$?
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); } &&
20279          { ac_try='test -s conftest.$ac_objext'
20280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281   (eval $ac_try) 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); }; }; then
20285   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20286   ac_cv_c_bigendian=yes
20287 fi
20288 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20289   if test "$ac_cv_c_bigendian" = unknown; then
20290     ac_cv_c_bigendian=no
20291   else
20292     # finding both strings is unlikely to happen, but who knows?
20293     ac_cv_c_bigendian=unknown
20294   fi
20295 fi
20296 else
20297   echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300 fi
20301 rm -f conftest.$ac_objext conftest.$ac_ext
20302 else
20303   cat >conftest.$ac_ext <<_ACEOF
20304 #line $LINENO "configure"
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310 int
20311 main ()
20312 {
20313   /* Are we little or big endian?  From Harbison&Steele.  */
20314   union
20315   {
20316     long l;
20317     char c[sizeof (long)];
20318   } u;
20319   u.l = 1;
20320   exit (u.c[sizeof (long) - 1] == 1);
20321 }
20322 _ACEOF
20323 rm -f conftest$ac_exeext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325   (eval $ac_link) 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330   (eval $ac_try) 2>&5
20331   ac_status=$?
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); }; }; then
20334   ac_cv_c_bigendian=no
20335 else
20336   echo "$as_me: program exited with status $ac_status" >&5
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340 ( exit $ac_status )
20341 ac_cv_c_bigendian=yes
20342 fi
20343 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20344 fi
20345 fi
20346 rm -f conftest.$ac_objext conftest.$ac_ext
20347 fi
20348 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20349 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20350 case $ac_cv_c_bigendian in
20351   yes)
20352     cat >>confdefs.h <<\_ACEOF
20353 #define ENDIAN_BIG 1
20354 _ACEOF
20355  ;;
20356   no)
20357     cat >>confdefs.h <<\_ACEOF
20358 #define ENDIAN_LITTLE 1
20359 _ACEOF
20360  ;;
20361   *)
20362     { { echo "$as_me:$LINENO: error: unknown endianness
20363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20364 echo "$as_me: error: unknown endianness
20365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20366    { (exit 1); exit 1; }; } ;;
20367 esac
20368
20369
20370 echo "$as_me:$LINENO: checking for pid_t" >&5
20371 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20372 if test "${ac_cv_type_pid_t+set}" = set; then
20373   echo $ECHO_N "(cached) $ECHO_C" >&6
20374 else
20375   cat >conftest.$ac_ext <<_ACEOF
20376 #line $LINENO "configure"
20377 /* confdefs.h.  */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h.  */
20382 $ac_includes_default
20383 int
20384 main ()
20385 {
20386 if ((pid_t *) 0)
20387   return 0;
20388 if (sizeof (pid_t))
20389   return 0;
20390   ;
20391   return 0;
20392 }
20393 _ACEOF
20394 rm -f conftest.$ac_objext
20395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20396   (eval $ac_compile) 2>&5
20397   ac_status=$?
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); } &&
20400          { ac_try='test -s conftest.$ac_objext'
20401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402   (eval $ac_try) 2>&5
20403   ac_status=$?
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); }; }; then
20406   ac_cv_type_pid_t=yes
20407 else
20408   echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20410
20411 ac_cv_type_pid_t=no
20412 fi
20413 rm -f conftest.$ac_objext conftest.$ac_ext
20414 fi
20415 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20416 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20417 if test $ac_cv_type_pid_t = yes; then
20418   :
20419 else
20420
20421 cat >>confdefs.h <<_ACEOF
20422 #define pid_t int
20423 _ACEOF
20424
20425 fi
20426
20427 echo "$as_me:$LINENO: checking for size_t" >&5
20428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20429 if test "${ac_cv_type_size_t+set}" = set; then
20430   echo $ECHO_N "(cached) $ECHO_C" >&6
20431 else
20432   cat >conftest.$ac_ext <<_ACEOF
20433 #line $LINENO "configure"
20434 /* confdefs.h.  */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h.  */
20439 $ac_includes_default
20440 int
20441 main ()
20442 {
20443 if ((size_t *) 0)
20444   return 0;
20445 if (sizeof (size_t))
20446   return 0;
20447   ;
20448   return 0;
20449 }
20450 _ACEOF
20451 rm -f conftest.$ac_objext
20452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20453   (eval $ac_compile) 2>&5
20454   ac_status=$?
20455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456   (exit $ac_status); } &&
20457          { ac_try='test -s conftest.$ac_objext'
20458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459   (eval $ac_try) 2>&5
20460   ac_status=$?
20461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462   (exit $ac_status); }; }; then
20463   ac_cv_type_size_t=yes
20464 else
20465   echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.$ac_ext >&5
20467
20468 ac_cv_type_size_t=no
20469 fi
20470 rm -f conftest.$ac_objext conftest.$ac_ext
20471 fi
20472 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20473 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20474 if test $ac_cv_type_size_t = yes; then
20475   :
20476 else
20477
20478 cat >>confdefs.h <<_ACEOF
20479 #define size_t unsigned
20480 _ACEOF
20481
20482 fi
20483
20484 echo "$as_me:$LINENO: checking for int64_t" >&5
20485 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20486 if test "${ac_cv_type_int64_t+set}" = set; then
20487   echo $ECHO_N "(cached) $ECHO_C" >&6
20488 else
20489   cat >conftest.$ac_ext <<_ACEOF
20490 #line $LINENO "configure"
20491 /* confdefs.h.  */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h.  */
20496 $ac_includes_default
20497 int
20498 main ()
20499 {
20500 if ((int64_t *) 0)
20501   return 0;
20502 if (sizeof (int64_t))
20503   return 0;
20504   ;
20505   return 0;
20506 }
20507 _ACEOF
20508 rm -f conftest.$ac_objext
20509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20510   (eval $ac_compile) 2>&5
20511   ac_status=$?
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); } &&
20514          { ac_try='test -s conftest.$ac_objext'
20515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516   (eval $ac_try) 2>&5
20517   ac_status=$?
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); }; }; then
20520   ac_cv_type_int64_t=yes
20521 else
20522   echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20524
20525 ac_cv_type_int64_t=no
20526 fi
20527 rm -f conftest.$ac_objext conftest.$ac_ext
20528 fi
20529 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20530 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20531 if test $ac_cv_type_int64_t = yes; then
20532
20533 cat >>confdefs.h <<_ACEOF
20534 #define HAVE_INT64_T 1
20535 _ACEOF
20536
20537
20538 else
20539   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20540 echo "$as_me: error: Type int64_t required but not found" >&2;}
20541    { (exit 1); exit 1; }; }
20542 fi
20543
20544 echo "$as_me:$LINENO: checking for uint64_t" >&5
20545 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20546 if test "${ac_cv_type_uint64_t+set}" = set; then
20547   echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549   cat >conftest.$ac_ext <<_ACEOF
20550 #line $LINENO "configure"
20551 /* confdefs.h.  */
20552 _ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h.  */
20556 $ac_includes_default
20557 int
20558 main ()
20559 {
20560 if ((uint64_t *) 0)
20561   return 0;
20562 if (sizeof (uint64_t))
20563   return 0;
20564   ;
20565   return 0;
20566 }
20567 _ACEOF
20568 rm -f conftest.$ac_objext
20569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20570   (eval $ac_compile) 2>&5
20571   ac_status=$?
20572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573   (exit $ac_status); } &&
20574          { ac_try='test -s conftest.$ac_objext'
20575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576   (eval $ac_try) 2>&5
20577   ac_status=$?
20578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); }; }; then
20580   ac_cv_type_uint64_t=yes
20581 else
20582   echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20584
20585 ac_cv_type_uint64_t=no
20586 fi
20587 rm -f conftest.$ac_objext conftest.$ac_ext
20588 fi
20589 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20590 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20591 if test $ac_cv_type_uint64_t = yes; then
20592
20593 cat >>confdefs.h <<_ACEOF
20594 #define HAVE_UINT64_T 1
20595 _ACEOF
20596
20597
20598 else
20599   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20600 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20601    { (exit 1); exit 1; }; }
20602 fi
20603
20604 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20605 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20606 if test "${ac_cv_header_time+set}" = set; then
20607   echo $ECHO_N "(cached) $ECHO_C" >&6
20608 else
20609   cat >conftest.$ac_ext <<_ACEOF
20610 #line $LINENO "configure"
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616 #include <sys/types.h>
20617 #include <sys/time.h>
20618 #include <time.h>
20619
20620 int
20621 main ()
20622 {
20623 if ((struct tm *) 0)
20624 return 0;
20625   ;
20626   return 0;
20627 }
20628 _ACEOF
20629 rm -f conftest.$ac_objext
20630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20631   (eval $ac_compile) 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); } &&
20635          { ac_try='test -s conftest.$ac_objext'
20636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637   (eval $ac_try) 2>&5
20638   ac_status=$?
20639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640   (exit $ac_status); }; }; then
20641   ac_cv_header_time=yes
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646 ac_cv_header_time=no
20647 fi
20648 rm -f conftest.$ac_objext conftest.$ac_ext
20649 fi
20650 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20651 echo "${ECHO_T}$ac_cv_header_time" >&6
20652 if test $ac_cv_header_time = yes; then
20653
20654 cat >>confdefs.h <<\_ACEOF
20655 #define TIME_WITH_SYS_TIME 1
20656 _ACEOF
20657
20658 fi
20659
20660 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20661 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20662 if test "${ac_cv_struct_tm+set}" = set; then
20663   echo $ECHO_N "(cached) $ECHO_C" >&6
20664 else
20665   cat >conftest.$ac_ext <<_ACEOF
20666 #line $LINENO "configure"
20667 /* confdefs.h.  */
20668 _ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h.  */
20672 #include <sys/types.h>
20673 #include <time.h>
20674
20675 int
20676 main ()
20677 {
20678 struct tm *tp; tp->tm_sec;
20679   ;
20680   return 0;
20681 }
20682 _ACEOF
20683 rm -f conftest.$ac_objext
20684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20685   (eval $ac_compile) 2>&5
20686   ac_status=$?
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); } &&
20689          { ac_try='test -s conftest.$ac_objext'
20690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691   (eval $ac_try) 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); }; }; then
20695   ac_cv_struct_tm=time.h
20696 else
20697   echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20699
20700 ac_cv_struct_tm=sys/time.h
20701 fi
20702 rm -f conftest.$ac_objext conftest.$ac_ext
20703 fi
20704 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20705 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20706 if test $ac_cv_struct_tm = sys/time.h; then
20707
20708 cat >>confdefs.h <<\_ACEOF
20709 #define TM_IN_SYS_TIME 1
20710 _ACEOF
20711
20712 fi
20713
20714
20715 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20716 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20717 if test "${ac_cv_cxx_namespaces+set}" = set; then
20718   echo $ECHO_N "(cached) $ECHO_C" >&6
20719 else
20720
20721
20722  ac_ext=cc
20723 ac_cpp='$CXXCPP $CPPFLAGS'
20724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20727
20728  cat >conftest.$ac_ext <<_ACEOF
20729 #line $LINENO "configure"
20730 /* confdefs.h.  */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h.  */
20735 namespace Outer { namespace Inner { int i = 0; }}
20736 int
20737 main ()
20738 {
20739 using namespace Outer::Inner; return i;
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 rm -f conftest.$ac_objext
20745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20746   (eval $ac_compile) 2>&5
20747   ac_status=$?
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); } &&
20750          { ac_try='test -s conftest.$ac_objext'
20751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752   (eval $ac_try) 2>&5
20753   ac_status=$?
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); }; }; then
20756   ac_cv_cxx_namespaces=yes
20757 else
20758   echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20760
20761 ac_cv_cxx_namespaces=no
20762 fi
20763 rm -f conftest.$ac_objext conftest.$ac_ext
20764  ac_ext=c
20765 ac_cpp='$CPP $CPPFLAGS'
20766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20769
20770
20771 fi
20772 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20773 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20774 if test "$ac_cv_cxx_namespaces" = yes; then
20775
20776 cat >>confdefs.h <<\_ACEOF
20777 #define HAVE_NAMESPACES
20778 _ACEOF
20779
20780 fi
20781
20782 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20783 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20784 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20785   echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787
20788
20789
20790   ac_ext=cc
20791 ac_cpp='$CXXCPP $CPPFLAGS'
20792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20795
20796   cat >conftest.$ac_ext <<_ACEOF
20797 #line $LINENO "configure"
20798 /* confdefs.h.  */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h.  */
20803 #include <ext/hash_map>
20804 #ifdef HAVE_NAMESPACES
20805 using namespace std;
20806 #endif
20807 int
20808 main ()
20809 {
20810 hash_map<int, int> t; return 0;
20811   ;
20812   return 0;
20813 }
20814 _ACEOF
20815 rm -f conftest.$ac_objext
20816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20817   (eval $ac_compile) 2>&5
20818   ac_status=$?
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); } &&
20821          { ac_try='test -s conftest.$ac_objext'
20822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823   (eval $ac_try) 2>&5
20824   ac_status=$?
20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); }; }; then
20827   ac_cv_cxx_have_ext_hash_map=std
20828 else
20829   echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832 ac_cv_cxx_have_ext_hash_map=no
20833 fi
20834 rm -f conftest.$ac_objext conftest.$ac_ext
20835   cat >conftest.$ac_ext <<_ACEOF
20836 #line $LINENO "configure"
20837 /* confdefs.h.  */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h.  */
20842 #include <ext/hash_map>
20843 #ifdef HAVE_NAMESPACES
20844 using namespace __gnu_cxx;
20845 #endif
20846 int
20847 main ()
20848 {
20849 hash_map<int, int> t; return 0;
20850   ;
20851   return 0;
20852 }
20853 _ACEOF
20854 rm -f conftest.$ac_objext
20855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856   (eval $ac_compile) 2>&5
20857   ac_status=$?
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); } &&
20860          { ac_try='test -s conftest.$ac_objext'
20861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862   (eval $ac_try) 2>&5
20863   ac_status=$?
20864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865   (exit $ac_status); }; }; then
20866   ac_cv_cxx_have_ext_hash_map=gnu
20867 else
20868   echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871 ac_cv_cxx_have_ext_hash_map=no
20872 fi
20873 rm -f conftest.$ac_objext conftest.$ac_ext
20874   ac_ext=c
20875 ac_cpp='$CPP $CPPFLAGS'
20876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20879
20880
20881 fi
20882 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20883 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20884 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20885
20886 cat >>confdefs.h <<\_ACEOF
20887 #define HAVE_STD_EXT_HASH_MAP
20888 _ACEOF
20889
20890 fi
20891 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20892
20893 cat >>confdefs.h <<\_ACEOF
20894 #define HAVE_GNU_EXT_HASH_MAP
20895 _ACEOF
20896
20897 fi
20898
20899 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20900 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20901 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20902   echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20904
20905
20906
20907   ac_ext=cc
20908 ac_cpp='$CXXCPP $CPPFLAGS'
20909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20912
20913   cat >conftest.$ac_ext <<_ACEOF
20914 #line $LINENO "configure"
20915 /* confdefs.h.  */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h.  */
20920 #include <ext/hash_set>
20921 #ifdef HAVE_NAMESPACES
20922 using namespace std;
20923 #endif
20924 int
20925 main ()
20926 {
20927 hash_set<int> t; return 0;
20928   ;
20929   return 0;
20930 }
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20934   (eval $ac_compile) 2>&5
20935   ac_status=$?
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); } &&
20938          { ac_try='test -s conftest.$ac_objext'
20939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940   (eval $ac_try) 2>&5
20941   ac_status=$?
20942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943   (exit $ac_status); }; }; then
20944   ac_cv_cxx_have_ext_hash_set=std
20945 else
20946   echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949 ac_cv_cxx_have_ext_hash_set=no
20950 fi
20951 rm -f conftest.$ac_objext conftest.$ac_ext
20952   cat >conftest.$ac_ext <<_ACEOF
20953 #line $LINENO "configure"
20954 /* confdefs.h.  */
20955 _ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h.  */
20959 #include <ext/hash_set>
20960 #ifdef HAVE_NAMESPACES
20961 using namespace __gnu_cxx;
20962 #endif
20963 int
20964 main ()
20965 {
20966 hash_set<int> t; return 0;
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest.$ac_objext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973   (eval $ac_compile) 2>&5
20974   ac_status=$?
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -s conftest.$ac_objext'
20978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979   (eval $ac_try) 2>&5
20980   ac_status=$?
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); }; }; then
20983   ac_cv_cxx_have_ext_hash_set=gnu
20984 else
20985   echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988 ac_cv_cxx_have_ext_hash_set=no
20989 fi
20990 rm -f conftest.$ac_objext conftest.$ac_ext
20991   ac_ext=c
20992 ac_cpp='$CPP $CPPFLAGS'
20993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20996
20997
20998 fi
20999 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21000 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21001 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21002
21003 cat >>confdefs.h <<\_ACEOF
21004 #define HAVE_STD_EXT_HASH_SET
21005 _ACEOF
21006
21007 fi
21008 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21009
21010 cat >>confdefs.h <<\_ACEOF
21011 #define HAVE_GNU_EXT_HASH_SET
21012 _ACEOF
21013
21014 fi
21015
21016 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21017 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21018 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21019   echo $ECHO_N "(cached) $ECHO_C" >&6
21020 else
21021
21022
21023
21024   ac_ext=cc
21025 ac_cpp='$CXXCPP $CPPFLAGS'
21026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21029
21030   cat >conftest.$ac_ext <<_ACEOF
21031 #line $LINENO "configure"
21032 /* confdefs.h.  */
21033 _ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h.  */
21037 #include <ext/slist>
21038 #ifdef HAVE_NAMESPACES
21039 using namespace std;
21040 #endif
21041 int
21042 main ()
21043 {
21044 slist<int> s; return 0;
21045   ;
21046   return 0;
21047 }
21048 _ACEOF
21049 rm -f conftest.$ac_objext
21050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21051   (eval $ac_compile) 2>&5
21052   ac_status=$?
21053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054   (exit $ac_status); } &&
21055          { ac_try='test -s conftest.$ac_objext'
21056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057   (eval $ac_try) 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); }; }; then
21061   ac_cv_cxx_have_ext_slist=std
21062 else
21063   echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21065
21066 ac_cv_cxx_have_ext_slist=no
21067 fi
21068 rm -f conftest.$ac_objext conftest.$ac_ext
21069   cat >conftest.$ac_ext <<_ACEOF
21070 #line $LINENO "configure"
21071 /* confdefs.h.  */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h.  */
21076 #include <ext/slist>
21077 #ifdef HAVE_NAMESPACES
21078 using namespace __gnu_cxx;
21079 #endif
21080 int
21081 main ()
21082 {
21083 slist<int> s; return 0;
21084   ;
21085   return 0;
21086 }
21087 _ACEOF
21088 rm -f conftest.$ac_objext
21089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21090   (eval $ac_compile) 2>&5
21091   ac_status=$?
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); } &&
21094          { ac_try='test -s conftest.$ac_objext'
21095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096   (eval $ac_try) 2>&5
21097   ac_status=$?
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); }; }; then
21100   ac_cv_cxx_have_ext_slist=gnu
21101 else
21102   echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21104
21105 ac_cv_cxx_have_ext_slist=no
21106 fi
21107 rm -f conftest.$ac_objext conftest.$ac_ext
21108
21109   ac_ext=c
21110 ac_cpp='$CPP $CPPFLAGS'
21111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21114
21115
21116 fi
21117 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21118 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21119 if test "$ac_cv_cxx_have_ext_slist" = std; then
21120
21121 cat >>confdefs.h <<\_ACEOF
21122 #define HAVE_EXT_SLIST std
21123 _ACEOF
21124
21125 fi
21126 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21127
21128 cat >>confdefs.h <<\_ACEOF
21129 #define HAVE_EXT_SLIST gnu
21130 _ACEOF
21131
21132 fi
21133
21134 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21135 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21136 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21137   echo $ECHO_N "(cached) $ECHO_C" >&6
21138 else
21139
21140
21141
21142   ac_ext=cc
21143 ac_cpp='$CXXCPP $CPPFLAGS'
21144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21147
21148   cat >conftest.$ac_ext <<_ACEOF
21149 #line $LINENO "configure"
21150 /* confdefs.h.  */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h.  */
21155 #include <iterator>
21156 #ifdef HAVE_NAMESPACES
21157 using namespace std;
21158 #endif
21159 int
21160 main ()
21161 {
21162 iterator<int,int,int> t; return 0;
21163   ;
21164   return 0;
21165 }
21166 _ACEOF
21167 rm -f conftest.$ac_objext
21168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21169   (eval $ac_compile) 2>&5
21170   ac_status=$?
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); } &&
21173          { ac_try='test -s conftest.$ac_objext'
21174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175   (eval $ac_try) 2>&5
21176   ac_status=$?
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); }; }; then
21179   ac_cv_cxx_have_std_iterator=yes
21180 else
21181   echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21183
21184 ac_cv_cxx_have_std_iterator=no
21185 fi
21186 rm -f conftest.$ac_objext conftest.$ac_ext
21187   ac_ext=c
21188 ac_cpp='$CPP $CPPFLAGS'
21189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21192
21193
21194 fi
21195 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21196 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21197 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21198
21199 cat >>confdefs.h <<\_ACEOF
21200 #define HAVE_STD_ITERATOR
21201 _ACEOF
21202
21203 fi
21204
21205 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21206 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21207 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21208   echo $ECHO_N "(cached) $ECHO_C" >&6
21209 else
21210
21211
21212
21213   ac_ext=cc
21214 ac_cpp='$CXXCPP $CPPFLAGS'
21215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21218
21219   cat >conftest.$ac_ext <<_ACEOF
21220 #line $LINENO "configure"
21221 /* confdefs.h.  */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h.  */
21226 #include <iterator>
21227 #ifdef HAVE_NAMESPACES
21228 using namespace std;
21229 #endif
21230 int
21231 main ()
21232 {
21233 bidirectional_iterator<int,int> t; return 0;
21234   ;
21235   return 0;
21236 }
21237 _ACEOF
21238 rm -f conftest.$ac_objext
21239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21240   (eval $ac_compile) 2>&5
21241   ac_status=$?
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); } &&
21244          { ac_try='test -s conftest.$ac_objext'
21245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246   (eval $ac_try) 2>&5
21247   ac_status=$?
21248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249   (exit $ac_status); }; }; then
21250   ac_cv_cxx_have_bi_iterator=yes
21251 else
21252   echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21254
21255 ac_cv_cxx_have_bi_iterator=no
21256 fi
21257 rm -f conftest.$ac_objext conftest.$ac_ext
21258   ac_ext=c
21259 ac_cpp='$CPP $CPPFLAGS'
21260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21263
21264
21265 fi
21266 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21267 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21268 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21269
21270 cat >>confdefs.h <<\_ACEOF
21271 #define HAVE_BI_ITERATOR
21272 _ACEOF
21273
21274 fi
21275
21276 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21277 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21278 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21279   echo $ECHO_N "(cached) $ECHO_C" >&6
21280 else
21281
21282
21283
21284   ac_ext=cc
21285 ac_cpp='$CXXCPP $CPPFLAGS'
21286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21289
21290   cat >conftest.$ac_ext <<_ACEOF
21291 #line $LINENO "configure"
21292 /* confdefs.h.  */
21293 _ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h.  */
21297 #include <iterator>
21298 #ifdef HAVE_NAMESPACES
21299 using namespace std;
21300 #endif
21301 int
21302 main ()
21303 {
21304 forward_iterator<int,int> t; return 0;
21305   ;
21306   return 0;
21307 }
21308 _ACEOF
21309 rm -f conftest.$ac_objext
21310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21311   (eval $ac_compile) 2>&5
21312   ac_status=$?
21313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314   (exit $ac_status); } &&
21315          { ac_try='test -s conftest.$ac_objext'
21316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317   (eval $ac_try) 2>&5
21318   ac_status=$?
21319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320   (exit $ac_status); }; }; then
21321   ac_cv_cxx_have_fwd_iterator=yes
21322 else
21323   echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21325
21326 ac_cv_cxx_have_fwd_iterator=no
21327 fi
21328 rm -f conftest.$ac_objext conftest.$ac_ext
21329   ac_ext=c
21330 ac_cpp='$CPP $CPPFLAGS'
21331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21334
21335
21336 fi
21337 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21338 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21339 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21340
21341 cat >>confdefs.h <<\_ACEOF
21342 #define HAVE_FWD_ITERATOR
21343 _ACEOF
21344
21345 fi
21346
21347
21348 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21349 # for constant arguments.  Useless!
21350 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21351 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21352 if test "${ac_cv_working_alloca_h+set}" = set; then
21353   echo $ECHO_N "(cached) $ECHO_C" >&6
21354 else
21355   cat >conftest.$ac_ext <<_ACEOF
21356 #line $LINENO "configure"
21357 /* confdefs.h.  */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h.  */
21362 #include <alloca.h>
21363 int
21364 main ()
21365 {
21366 char *p = (char *) alloca (2 * sizeof (int));
21367   ;
21368   return 0;
21369 }
21370 _ACEOF
21371 rm -f conftest.$ac_objext conftest$ac_exeext
21372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21373   (eval $ac_link) 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); } &&
21377          { ac_try='test -s conftest$ac_exeext'
21378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379   (eval $ac_try) 2>&5
21380   ac_status=$?
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); }; }; then
21383   ac_cv_working_alloca_h=yes
21384 else
21385   echo "$as_me: failed program was:" >&5
21386 sed 's/^/| /' conftest.$ac_ext >&5
21387
21388 ac_cv_working_alloca_h=no
21389 fi
21390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21391 fi
21392 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21393 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21394 if test $ac_cv_working_alloca_h = yes; then
21395
21396 cat >>confdefs.h <<\_ACEOF
21397 #define HAVE_ALLOCA_H 1
21398 _ACEOF
21399
21400 fi
21401
21402 echo "$as_me:$LINENO: checking for alloca" >&5
21403 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21404 if test "${ac_cv_func_alloca_works+set}" = set; then
21405   echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407   cat >conftest.$ac_ext <<_ACEOF
21408 #line $LINENO "configure"
21409 /* confdefs.h.  */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h.  */
21414 #ifdef __GNUC__
21415 # define alloca __builtin_alloca
21416 #else
21417 # ifdef _MSC_VER
21418 #  include <malloc.h>
21419 #  define alloca _alloca
21420 # else
21421 #  if HAVE_ALLOCA_H
21422 #   include <alloca.h>
21423 #  else
21424 #   ifdef _AIX
21425  #pragma alloca
21426 #   else
21427 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21428 char *alloca ();
21429 #    endif
21430 #   endif
21431 #  endif
21432 # endif
21433 #endif
21434
21435 int
21436 main ()
21437 {
21438 char *p = (char *) alloca (1);
21439   ;
21440   return 0;
21441 }
21442 _ACEOF
21443 rm -f conftest.$ac_objext conftest$ac_exeext
21444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21445   (eval $ac_link) 2>&5
21446   ac_status=$?
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); } &&
21449          { ac_try='test -s conftest$ac_exeext'
21450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451   (eval $ac_try) 2>&5
21452   ac_status=$?
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); }; }; then
21455   ac_cv_func_alloca_works=yes
21456 else
21457   echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21459
21460 ac_cv_func_alloca_works=no
21461 fi
21462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21463 fi
21464 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21465 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21466
21467 if test $ac_cv_func_alloca_works = yes; then
21468
21469 cat >>confdefs.h <<\_ACEOF
21470 #define HAVE_ALLOCA 1
21471 _ACEOF
21472
21473 else
21474   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21475 # that cause trouble.  Some versions do not even contain alloca or
21476 # contain a buggy version.  If you still want to use their alloca,
21477 # use ar to extract alloca.o from them instead of compiling alloca.c.
21478
21479 ALLOCA=alloca.$ac_objext
21480
21481 cat >>confdefs.h <<\_ACEOF
21482 #define C_ALLOCA 1
21483 _ACEOF
21484
21485
21486 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21487 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21488 if test "${ac_cv_os_cray+set}" = set; then
21489   echo $ECHO_N "(cached) $ECHO_C" >&6
21490 else
21491   cat >conftest.$ac_ext <<_ACEOF
21492 #line $LINENO "configure"
21493 /* confdefs.h.  */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h.  */
21498 #if defined(CRAY) && ! defined(CRAY2)
21499 webecray
21500 #else
21501 wenotbecray
21502 #endif
21503
21504 _ACEOF
21505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21506   $EGREP "webecray" >/dev/null 2>&1; then
21507   ac_cv_os_cray=yes
21508 else
21509   ac_cv_os_cray=no
21510 fi
21511 rm -f conftest*
21512
21513 fi
21514 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21515 echo "${ECHO_T}$ac_cv_os_cray" >&6
21516 if test $ac_cv_os_cray = yes; then
21517   for ac_func in _getb67 GETB67 getb67; do
21518     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21519 echo "$as_me:$LINENO: checking for $ac_func" >&5
21520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21521 if eval "test \"\${$as_ac_var+set}\" = set"; then
21522   echo $ECHO_N "(cached) $ECHO_C" >&6
21523 else
21524   cat >conftest.$ac_ext <<_ACEOF
21525 #line $LINENO "configure"
21526 /* confdefs.h.  */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h.  */
21531 /* System header to define __stub macros and hopefully few prototypes,
21532     which can conflict with char $ac_func (); below.
21533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21534     <limits.h> exists even on freestanding compilers.  */
21535 #ifdef __STDC__
21536 # include <limits.h>
21537 #else
21538 # include <assert.h>
21539 #endif
21540 /* Override any gcc2 internal prototype to avoid an error.  */
21541 #ifdef __cplusplus
21542 extern "C"
21543 {
21544 #endif
21545 /* We use char because int might match the return type of a gcc2
21546    builtin and then its argument prototype would still apply.  */
21547 char $ac_func ();
21548 /* The GNU C library defines this for functions which it implements
21549     to always fail with ENOSYS.  Some functions are actually named
21550     something starting with __ and the normal name is an alias.  */
21551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21552 choke me
21553 #else
21554 char (*f) () = $ac_func;
21555 #endif
21556 #ifdef __cplusplus
21557 }
21558 #endif
21559
21560 int
21561 main ()
21562 {
21563 return f != $ac_func;
21564   ;
21565   return 0;
21566 }
21567 _ACEOF
21568 rm -f conftest.$ac_objext conftest$ac_exeext
21569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21570   (eval $ac_link) 2>&5
21571   ac_status=$?
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); } &&
21574          { ac_try='test -s conftest$ac_exeext'
21575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576   (eval $ac_try) 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); }; }; then
21580   eval "$as_ac_var=yes"
21581 else
21582   echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585 eval "$as_ac_var=no"
21586 fi
21587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21588 fi
21589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21591 if test `eval echo '${'$as_ac_var'}'` = yes; then
21592
21593 cat >>confdefs.h <<_ACEOF
21594 #define CRAY_STACKSEG_END $ac_func
21595 _ACEOF
21596
21597     break
21598 fi
21599
21600   done
21601 fi
21602
21603 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21604 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21605 if test "${ac_cv_c_stack_direction+set}" = set; then
21606   echo $ECHO_N "(cached) $ECHO_C" >&6
21607 else
21608   if test "$cross_compiling" = yes; then
21609   ac_cv_c_stack_direction=0
21610 else
21611   cat >conftest.$ac_ext <<_ACEOF
21612 #line $LINENO "configure"
21613 /* confdefs.h.  */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h.  */
21618 int
21619 find_stack_direction ()
21620 {
21621   static char *addr = 0;
21622   auto char dummy;
21623   if (addr == 0)
21624     {
21625       addr = &dummy;
21626       return find_stack_direction ();
21627     }
21628   else
21629     return (&dummy > addr) ? 1 : -1;
21630 }
21631
21632 int
21633 main ()
21634 {
21635   exit (find_stack_direction () < 0);
21636 }
21637 _ACEOF
21638 rm -f conftest$ac_exeext
21639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21640   (eval $ac_link) 2>&5
21641   ac_status=$?
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645   (eval $ac_try) 2>&5
21646   ac_status=$?
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); }; }; then
21649   ac_cv_c_stack_direction=1
21650 else
21651   echo "$as_me: program exited with status $ac_status" >&5
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 ( exit $ac_status )
21656 ac_cv_c_stack_direction=-1
21657 fi
21658 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21659 fi
21660 fi
21661 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21662 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21663
21664 cat >>confdefs.h <<_ACEOF
21665 #define STACK_DIRECTION $ac_cv_c_stack_direction
21666 _ACEOF
21667
21668
21669 fi
21670
21671 if test $ac_cv_c_compiler_gnu = yes; then
21672     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21673 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21674 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21675   echo $ECHO_N "(cached) $ECHO_C" >&6
21676 else
21677     ac_pattern="Autoconf.*'x'"
21678   cat >conftest.$ac_ext <<_ACEOF
21679 #line $LINENO "configure"
21680 /* confdefs.h.  */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h.  */
21685 #include <sgtty.h>
21686 Autoconf TIOCGETP
21687 _ACEOF
21688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21689   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21690   ac_cv_prog_gcc_traditional=yes
21691 else
21692   ac_cv_prog_gcc_traditional=no
21693 fi
21694 rm -f conftest*
21695
21696
21697   if test $ac_cv_prog_gcc_traditional = no; then
21698     cat >conftest.$ac_ext <<_ACEOF
21699 #line $LINENO "configure"
21700 /* confdefs.h.  */
21701 _ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h.  */
21705 #include <termio.h>
21706 Autoconf TCGETA
21707 _ACEOF
21708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21709   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21710   ac_cv_prog_gcc_traditional=yes
21711 fi
21712 rm -f conftest*
21713
21714   fi
21715 fi
21716 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21717 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21718   if test $ac_cv_prog_gcc_traditional = yes; then
21719     CC="$CC -traditional"
21720   fi
21721 fi
21722
21723 echo "$as_me:$LINENO: checking for working memcmp" >&5
21724 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21725 if test "${ac_cv_func_memcmp_working+set}" = set; then
21726   echo $ECHO_N "(cached) $ECHO_C" >&6
21727 else
21728   if test "$cross_compiling" = yes; then
21729   ac_cv_func_memcmp_working=no
21730 else
21731   cat >conftest.$ac_ext <<_ACEOF
21732 #line $LINENO "configure"
21733 /* confdefs.h.  */
21734 _ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h.  */
21738
21739 int
21740 main ()
21741 {
21742
21743   /* Some versions of memcmp are not 8-bit clean.  */
21744   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21745   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21746     exit (1);
21747
21748   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21749      or more and with at least one buffer not starting on a 4-byte boundary.
21750      William Lewis provided this test program.   */
21751   {
21752     char foo[21];
21753     char bar[21];
21754     int i;
21755     for (i = 0; i < 4; i++)
21756       {
21757         char *a = foo + i;
21758         char *b = bar + i;
21759         strcpy (a, "--------01111111");
21760         strcpy (b, "--------10000000");
21761         if (memcmp (a, b, 16) >= 0)
21762           exit (1);
21763       }
21764     exit (0);
21765   }
21766
21767   ;
21768   return 0;
21769 }
21770 _ACEOF
21771 rm -f conftest$ac_exeext
21772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21773   (eval $ac_link) 2>&5
21774   ac_status=$?
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778   (eval $ac_try) 2>&5
21779   ac_status=$?
21780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781   (exit $ac_status); }; }; then
21782   ac_cv_func_memcmp_working=yes
21783 else
21784   echo "$as_me: program exited with status $ac_status" >&5
21785 echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21787
21788 ( exit $ac_status )
21789 ac_cv_func_memcmp_working=no
21790 fi
21791 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21792 fi
21793 fi
21794 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21795 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21796 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21797
21798
21799
21800 for ac_header in stdlib.h unistd.h
21801 do
21802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21804   echo "$as_me:$LINENO: checking for $ac_header" >&5
21805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21807   echo $ECHO_N "(cached) $ECHO_C" >&6
21808 fi
21809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21811 else
21812   # Is the header compilable?
21813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21815 cat >conftest.$ac_ext <<_ACEOF
21816 #line $LINENO "configure"
21817 /* confdefs.h.  */
21818 _ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h.  */
21822 $ac_includes_default
21823 #include <$ac_header>
21824 _ACEOF
21825 rm -f conftest.$ac_objext
21826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21827   (eval $ac_compile) 2>&5
21828   ac_status=$?
21829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830   (exit $ac_status); } &&
21831          { ac_try='test -s conftest.$ac_objext'
21832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21833   (eval $ac_try) 2>&5
21834   ac_status=$?
21835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836   (exit $ac_status); }; }; then
21837   ac_header_compiler=yes
21838 else
21839   echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21841
21842 ac_header_compiler=no
21843 fi
21844 rm -f conftest.$ac_objext conftest.$ac_ext
21845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21846 echo "${ECHO_T}$ac_header_compiler" >&6
21847
21848 # Is the header present?
21849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21851 cat >conftest.$ac_ext <<_ACEOF
21852 #line $LINENO "configure"
21853 /* confdefs.h.  */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h.  */
21858 #include <$ac_header>
21859 _ACEOF
21860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21861   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21862   ac_status=$?
21863   grep -v '^ *+' conftest.er1 >conftest.err
21864   rm -f conftest.er1
21865   cat conftest.err >&5
21866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867   (exit $ac_status); } >/dev/null; then
21868   if test -s conftest.err; then
21869     ac_cpp_err=$ac_c_preproc_warn_flag
21870   else
21871     ac_cpp_err=
21872   fi
21873 else
21874   ac_cpp_err=yes
21875 fi
21876 if test -z "$ac_cpp_err"; then
21877   ac_header_preproc=yes
21878 else
21879   echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21881
21882   ac_header_preproc=no
21883 fi
21884 rm -f conftest.err conftest.$ac_ext
21885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21886 echo "${ECHO_T}$ac_header_preproc" >&6
21887
21888 # So?  What about this header?
21889 case $ac_header_compiler:$ac_header_preproc in
21890   yes:no )
21891     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21895     (
21896       cat <<\_ASBOX
21897 ## ------------------------------------ ##
21898 ## Report this to bug-autoconf@gnu.org. ##
21899 ## ------------------------------------ ##
21900 _ASBOX
21901     ) |
21902       sed "s/^/$as_me: WARNING:     /" >&2
21903     ;;
21904   no:yes )
21905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21907     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21911     (
21912       cat <<\_ASBOX
21913 ## ------------------------------------ ##
21914 ## Report this to bug-autoconf@gnu.org. ##
21915 ## ------------------------------------ ##
21916 _ASBOX
21917     ) |
21918       sed "s/^/$as_me: WARNING:     /" >&2
21919     ;;
21920 esac
21921 echo "$as_me:$LINENO: checking for $ac_header" >&5
21922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21924   echo $ECHO_N "(cached) $ECHO_C" >&6
21925 else
21926   eval "$as_ac_Header=$ac_header_preproc"
21927 fi
21928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21930
21931 fi
21932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21933   cat >>confdefs.h <<_ACEOF
21934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21935 _ACEOF
21936
21937 fi
21938
21939 done
21940
21941
21942 for ac_func in getpagesize
21943 do
21944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21945 echo "$as_me:$LINENO: checking for $ac_func" >&5
21946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21947 if eval "test \"\${$as_ac_var+set}\" = set"; then
21948   echo $ECHO_N "(cached) $ECHO_C" >&6
21949 else
21950   cat >conftest.$ac_ext <<_ACEOF
21951 #line $LINENO "configure"
21952 /* confdefs.h.  */
21953 _ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h.  */
21957 /* System header to define __stub macros and hopefully few prototypes,
21958     which can conflict with char $ac_func (); below.
21959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21960     <limits.h> exists even on freestanding compilers.  */
21961 #ifdef __STDC__
21962 # include <limits.h>
21963 #else
21964 # include <assert.h>
21965 #endif
21966 /* Override any gcc2 internal prototype to avoid an error.  */
21967 #ifdef __cplusplus
21968 extern "C"
21969 {
21970 #endif
21971 /* We use char because int might match the return type of a gcc2
21972    builtin and then its argument prototype would still apply.  */
21973 char $ac_func ();
21974 /* The GNU C library defines this for functions which it implements
21975     to always fail with ENOSYS.  Some functions are actually named
21976     something starting with __ and the normal name is an alias.  */
21977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21978 choke me
21979 #else
21980 char (*f) () = $ac_func;
21981 #endif
21982 #ifdef __cplusplus
21983 }
21984 #endif
21985
21986 int
21987 main ()
21988 {
21989 return f != $ac_func;
21990   ;
21991   return 0;
21992 }
21993 _ACEOF
21994 rm -f conftest.$ac_objext conftest$ac_exeext
21995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21996   (eval $ac_link) 2>&5
21997   ac_status=$?
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } &&
22000          { ac_try='test -s conftest$ac_exeext'
22001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002   (eval $ac_try) 2>&5
22003   ac_status=$?
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); }; }; then
22006   eval "$as_ac_var=yes"
22007 else
22008   echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22010
22011 eval "$as_ac_var=no"
22012 fi
22013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22014 fi
22015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22017 if test `eval echo '${'$as_ac_var'}'` = yes; then
22018   cat >>confdefs.h <<_ACEOF
22019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22020 _ACEOF
22021
22022 fi
22023 done
22024
22025 echo "$as_me:$LINENO: checking for working mmap" >&5
22026 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22027 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22028   echo $ECHO_N "(cached) $ECHO_C" >&6
22029 else
22030   if test "$cross_compiling" = yes; then
22031   ac_cv_func_mmap_fixed_mapped=no
22032 else
22033   cat >conftest.$ac_ext <<_ACEOF
22034 #line $LINENO "configure"
22035 /* confdefs.h.  */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h.  */
22040 $ac_includes_default
22041 /* malloc might have been renamed as rpl_malloc. */
22042 #undef malloc
22043
22044 /* Thanks to Mike Haertel and Jim Avera for this test.
22045    Here is a matrix of mmap possibilities:
22046         mmap private not fixed
22047         mmap private fixed at somewhere currently unmapped
22048         mmap private fixed at somewhere already mapped
22049         mmap shared not fixed
22050         mmap shared fixed at somewhere currently unmapped
22051         mmap shared fixed at somewhere already mapped
22052    For private mappings, we should verify that changes cannot be read()
22053    back from the file, nor mmap's back from the file at a different
22054    address.  (There have been systems where private was not correctly
22055    implemented like the infamous i386 svr4.0, and systems where the
22056    VM page cache was not coherent with the file system buffer cache
22057    like early versions of FreeBSD and possibly contemporary NetBSD.)
22058    For shared mappings, we should conversely verify that changes get
22059    propagated back to all the places they're supposed to be.
22060
22061    Grep wants private fixed already mapped.
22062    The main things grep needs to know about mmap are:
22063    * does it exist and is it safe to write into the mmap'd area
22064    * how to use it (BSD variants)  */
22065
22066 #include <fcntl.h>
22067 #include <sys/mman.h>
22068
22069 #if !STDC_HEADERS && !HAVE_STDLIB_H
22070 char *malloc ();
22071 #endif
22072
22073 /* This mess was copied from the GNU getpagesize.h.  */
22074 #if !HAVE_GETPAGESIZE
22075 /* Assume that all systems that can run configure have sys/param.h.  */
22076 # if !HAVE_SYS_PARAM_H
22077 #  define HAVE_SYS_PARAM_H 1
22078 # endif
22079
22080 # ifdef _SC_PAGESIZE
22081 #  define getpagesize() sysconf(_SC_PAGESIZE)
22082 # else /* no _SC_PAGESIZE */
22083 #  if HAVE_SYS_PARAM_H
22084 #   include <sys/param.h>
22085 #   ifdef EXEC_PAGESIZE
22086 #    define getpagesize() EXEC_PAGESIZE
22087 #   else /* no EXEC_PAGESIZE */
22088 #    ifdef NBPG
22089 #     define getpagesize() NBPG * CLSIZE
22090 #     ifndef CLSIZE
22091 #      define CLSIZE 1
22092 #     endif /* no CLSIZE */
22093 #    else /* no NBPG */
22094 #     ifdef NBPC
22095 #      define getpagesize() NBPC
22096 #     else /* no NBPC */
22097 #      ifdef PAGESIZE
22098 #       define getpagesize() PAGESIZE
22099 #      endif /* PAGESIZE */
22100 #     endif /* no NBPC */
22101 #    endif /* no NBPG */
22102 #   endif /* no EXEC_PAGESIZE */
22103 #  else /* no HAVE_SYS_PARAM_H */
22104 #   define getpagesize() 8192   /* punt totally */
22105 #  endif /* no HAVE_SYS_PARAM_H */
22106 # endif /* no _SC_PAGESIZE */
22107
22108 #endif /* no HAVE_GETPAGESIZE */
22109
22110 int
22111 main ()
22112 {
22113   char *data, *data2, *data3;
22114   int i, pagesize;
22115   int fd;
22116
22117   pagesize = getpagesize ();
22118
22119   /* First, make a file with some known garbage in it. */
22120   data = (char *) malloc (pagesize);
22121   if (!data)
22122     exit (1);
22123   for (i = 0; i < pagesize; ++i)
22124     *(data + i) = rand ();
22125   umask (0);
22126   fd = creat ("conftest.mmap", 0600);
22127   if (fd < 0)
22128     exit (1);
22129   if (write (fd, data, pagesize) != pagesize)
22130     exit (1);
22131   close (fd);
22132
22133   /* Next, try to mmap the file at a fixed address which already has
22134      something else allocated at it.  If we can, also make sure that
22135      we see the same garbage.  */
22136   fd = open ("conftest.mmap", O_RDWR);
22137   if (fd < 0)
22138     exit (1);
22139   data2 = (char *) malloc (2 * pagesize);
22140   if (!data2)
22141     exit (1);
22142   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22143   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22144                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22145     exit (1);
22146   for (i = 0; i < pagesize; ++i)
22147     if (*(data + i) != *(data2 + i))
22148       exit (1);
22149
22150   /* Finally, make sure that changes to the mapped area do not
22151      percolate back to the file as seen by read().  (This is a bug on
22152      some variants of i386 svr4.0.)  */
22153   for (i = 0; i < pagesize; ++i)
22154     *(data2 + i) = *(data2 + i) + 1;
22155   data3 = (char *) malloc (pagesize);
22156   if (!data3)
22157     exit (1);
22158   if (read (fd, data3, pagesize) != pagesize)
22159     exit (1);
22160   for (i = 0; i < pagesize; ++i)
22161     if (*(data + i) != *(data3 + i))
22162       exit (1);
22163   close (fd);
22164   exit (0);
22165 }
22166 _ACEOF
22167 rm -f conftest$ac_exeext
22168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22169   (eval $ac_link) 2>&5
22170   ac_status=$?
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174   (eval $ac_try) 2>&5
22175   ac_status=$?
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); }; }; then
22178   ac_cv_func_mmap_fixed_mapped=yes
22179 else
22180   echo "$as_me: program exited with status $ac_status" >&5
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22183
22184 ( exit $ac_status )
22185 ac_cv_func_mmap_fixed_mapped=no
22186 fi
22187 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22188 fi
22189 fi
22190 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22191 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22192 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22193
22194 cat >>confdefs.h <<\_ACEOF
22195 #define HAVE_MMAP 1
22196 _ACEOF
22197
22198 fi
22199 rm -f conftest.mmap
22200
22201 echo "$as_me:$LINENO: checking for mmap of files" >&5
22202 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22203 if test "${ac_cv_func_mmap_file+set}" = set; then
22204   echo $ECHO_N "(cached) $ECHO_C" >&6
22205 else
22206
22207
22208   ac_ext=c
22209 ac_cpp='$CPP $CPPFLAGS'
22210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22213
22214   if test "$cross_compiling" = yes; then
22215   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22216 See \`config.log' for more details." >&5
22217 echo "$as_me: error: cannot run test program while cross compiling
22218 See \`config.log' for more details." >&2;}
22219    { (exit 1); exit 1; }; }
22220 else
22221   cat >conftest.$ac_ext <<_ACEOF
22222 #line $LINENO "configure"
22223 /* confdefs.h.  */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h.  */
22228
22229 #ifdef HAVE_SYS_MMAN_H
22230 #include <sys/mman.h>
22231 #endif
22232
22233 #ifdef HAVE_SYS_TYPES_H
22234 #include <sys/types.h>
22235 #endif
22236
22237 #ifdef HAVE_FCNTL_H
22238 #include <fcntl.h>
22239 #endif
22240
22241   int fd;
22242   int main () {
22243   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22244 _ACEOF
22245 rm -f conftest$ac_exeext
22246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22247   (eval $ac_link) 2>&5
22248   ac_status=$?
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252   (eval $ac_try) 2>&5
22253   ac_status=$?
22254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); }; }; then
22256   ac_cv_func_mmap_file=yes
22257 else
22258   echo "$as_me: program exited with status $ac_status" >&5
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22261
22262 ( exit $ac_status )
22263 ac_cv_func_mmap_file=no
22264 fi
22265 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22266 fi
22267   ac_ext=c
22268 ac_cpp='$CPP $CPPFLAGS'
22269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22272
22273
22274 fi
22275 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22276 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22277 if test "$ac_cv_func_mmap_file" = yes; then
22278    cat >>confdefs.h <<\_ACEOF
22279 #define HAVE_MMAP_FILE 1
22280 _ACEOF
22281
22282    MMAP_FILE=yes
22283
22284 fi
22285
22286 if test ${ac_cv_func_mmap_file} = "no"
22287 then
22288         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22289 echo "$as_me: error: mmap() of files required but not found" >&2;}
22290    { (exit 1); exit 1; }; }
22291 fi
22292 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22293 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22294 if test "${ac_cv_header_mmap_anon+set}" = set; then
22295   echo $ECHO_N "(cached) $ECHO_C" >&6
22296 else
22297
22298
22299   ac_ext=c
22300 ac_cpp='$CPP $CPPFLAGS'
22301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22304
22305   cat >conftest.$ac_ext <<_ACEOF
22306 #line $LINENO "configure"
22307 /* confdefs.h.  */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h.  */
22312 #include <sys/mman.h>
22313   #include <unistd.h>
22314   #include <fcntl.h>
22315 int
22316 main ()
22317 {
22318 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22319   ;
22320   return 0;
22321 }
22322 _ACEOF
22323 rm -f conftest.$ac_objext
22324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22325   (eval $ac_compile) 2>&5
22326   ac_status=$?
22327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328   (exit $ac_status); } &&
22329          { ac_try='test -s conftest.$ac_objext'
22330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22331   (eval $ac_try) 2>&5
22332   ac_status=$?
22333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334   (exit $ac_status); }; }; then
22335   ac_cv_header_mmap_anon=yes
22336 else
22337   echo "$as_me: failed program was:" >&5
22338 sed 's/^/| /' conftest.$ac_ext >&5
22339
22340 ac_cv_header_mmap_anon=no
22341 fi
22342 rm -f conftest.$ac_objext conftest.$ac_ext
22343   ac_ext=c
22344 ac_cpp='$CPP $CPPFLAGS'
22345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22348
22349
22350 fi
22351 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22352 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22353 if test "$ac_cv_header_mmap_anon" = yes; then
22354    cat >>confdefs.h <<\_ACEOF
22355 #define HAVE_MMAP_ANONYMOUS 1
22356 _ACEOF
22357
22358 fi
22359
22360 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22361 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22362 if test "${ac_cv_type_signal+set}" = set; then
22363   echo $ECHO_N "(cached) $ECHO_C" >&6
22364 else
22365   cat >conftest.$ac_ext <<_ACEOF
22366 #line $LINENO "configure"
22367 /* confdefs.h.  */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h.  */
22372 #include <sys/types.h>
22373 #include <signal.h>
22374 #ifdef signal
22375 # undef signal
22376 #endif
22377 #ifdef __cplusplus
22378 extern "C" void (*signal (int, void (*)(int)))(int);
22379 #else
22380 void (*signal ()) ();
22381 #endif
22382
22383 int
22384 main ()
22385 {
22386 int i;
22387   ;
22388   return 0;
22389 }
22390 _ACEOF
22391 rm -f conftest.$ac_objext
22392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22393   (eval $ac_compile) 2>&5
22394   ac_status=$?
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); } &&
22397          { ac_try='test -s conftest.$ac_objext'
22398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399   (eval $ac_try) 2>&5
22400   ac_status=$?
22401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402   (exit $ac_status); }; }; then
22403   ac_cv_type_signal=void
22404 else
22405   echo "$as_me: failed program was:" >&5
22406 sed 's/^/| /' conftest.$ac_ext >&5
22407
22408 ac_cv_type_signal=int
22409 fi
22410 rm -f conftest.$ac_objext conftest.$ac_ext
22411 fi
22412 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22413 echo "${ECHO_T}$ac_cv_type_signal" >&6
22414
22415 cat >>confdefs.h <<_ACEOF
22416 #define RETSIGTYPE $ac_cv_type_signal
22417 _ACEOF
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22430 do
22431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22432 echo "$as_me:$LINENO: checking for $ac_func" >&5
22433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22434 if eval "test \"\${$as_ac_var+set}\" = set"; then
22435   echo $ECHO_N "(cached) $ECHO_C" >&6
22436 else
22437   cat >conftest.$ac_ext <<_ACEOF
22438 #line $LINENO "configure"
22439 /* confdefs.h.  */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h.  */
22444 /* System header to define __stub macros and hopefully few prototypes,
22445     which can conflict with char $ac_func (); below.
22446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22447     <limits.h> exists even on freestanding compilers.  */
22448 #ifdef __STDC__
22449 # include <limits.h>
22450 #else
22451 # include <assert.h>
22452 #endif
22453 /* Override any gcc2 internal prototype to avoid an error.  */
22454 #ifdef __cplusplus
22455 extern "C"
22456 {
22457 #endif
22458 /* We use char because int might match the return type of a gcc2
22459    builtin and then its argument prototype would still apply.  */
22460 char $ac_func ();
22461 /* The GNU C library defines this for functions which it implements
22462     to always fail with ENOSYS.  Some functions are actually named
22463     something starting with __ and the normal name is an alias.  */
22464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22465 choke me
22466 #else
22467 char (*f) () = $ac_func;
22468 #endif
22469 #ifdef __cplusplus
22470 }
22471 #endif
22472
22473 int
22474 main ()
22475 {
22476 return f != $ac_func;
22477   ;
22478   return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext conftest$ac_exeext
22482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22483   (eval $ac_link) 2>&5
22484   ac_status=$?
22485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486   (exit $ac_status); } &&
22487          { ac_try='test -s conftest$ac_exeext'
22488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489   (eval $ac_try) 2>&5
22490   ac_status=$?
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); }; }; then
22493   eval "$as_ac_var=yes"
22494 else
22495   echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498 eval "$as_ac_var=no"
22499 fi
22500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22501 fi
22502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22504 if test `eval echo '${'$as_ac_var'}'` = yes; then
22505   cat >>confdefs.h <<_ACEOF
22506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22507 _ACEOF
22508
22509 fi
22510 done
22511
22512
22513
22514 echo "$as_me:$LINENO: checking for mmap" >&5
22515 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22516 if test "${ac_cv_func_mmap+set}" = set; then
22517   echo $ECHO_N "(cached) $ECHO_C" >&6
22518 else
22519   cat >conftest.$ac_ext <<_ACEOF
22520 #line $LINENO "configure"
22521 /* confdefs.h.  */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h.  */
22526 /* System header to define __stub macros and hopefully few prototypes,
22527     which can conflict with char mmap (); below.
22528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22529     <limits.h> exists even on freestanding compilers.  */
22530 #ifdef __STDC__
22531 # include <limits.h>
22532 #else
22533 # include <assert.h>
22534 #endif
22535 /* Override any gcc2 internal prototype to avoid an error.  */
22536 #ifdef __cplusplus
22537 extern "C"
22538 {
22539 #endif
22540 /* We use char because int might match the return type of a gcc2
22541    builtin and then its argument prototype would still apply.  */
22542 char mmap ();
22543 /* The GNU C library defines this for functions which it implements
22544     to always fail with ENOSYS.  Some functions are actually named
22545     something starting with __ and the normal name is an alias.  */
22546 #if defined (__stub_mmap) || defined (__stub___mmap)
22547 choke me
22548 #else
22549 char (*f) () = mmap;
22550 #endif
22551 #ifdef __cplusplus
22552 }
22553 #endif
22554
22555 int
22556 main ()
22557 {
22558 return f != mmap;
22559   ;
22560   return 0;
22561 }
22562 _ACEOF
22563 rm -f conftest.$ac_objext conftest$ac_exeext
22564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22565   (eval $ac_link) 2>&5
22566   ac_status=$?
22567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568   (exit $ac_status); } &&
22569          { ac_try='test -s conftest$ac_exeext'
22570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571   (eval $ac_try) 2>&5
22572   ac_status=$?
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); }; }; then
22575   ac_cv_func_mmap=yes
22576 else
22577   echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22579
22580 ac_cv_func_mmap=no
22581 fi
22582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22583 fi
22584 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22585 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22586 if test $ac_cv_func_mmap = yes; then
22587   :
22588 else
22589   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22590 echo "$as_me: error: Function mmap() required but not found" >&2;}
22591    { (exit 1); exit 1; }; }
22592 fi
22593
22594 echo "$as_me:$LINENO: checking for mprotect" >&5
22595 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22596 if test "${ac_cv_func_mprotect+set}" = set; then
22597   echo $ECHO_N "(cached) $ECHO_C" >&6
22598 else
22599   cat >conftest.$ac_ext <<_ACEOF
22600 #line $LINENO "configure"
22601 /* confdefs.h.  */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h.  */
22606 /* System header to define __stub macros and hopefully few prototypes,
22607     which can conflict with char mprotect (); below.
22608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22609     <limits.h> exists even on freestanding compilers.  */
22610 #ifdef __STDC__
22611 # include <limits.h>
22612 #else
22613 # include <assert.h>
22614 #endif
22615 /* Override any gcc2 internal prototype to avoid an error.  */
22616 #ifdef __cplusplus
22617 extern "C"
22618 {
22619 #endif
22620 /* We use char because int might match the return type of a gcc2
22621    builtin and then its argument prototype would still apply.  */
22622 char mprotect ();
22623 /* The GNU C library defines this for functions which it implements
22624     to always fail with ENOSYS.  Some functions are actually named
22625     something starting with __ and the normal name is an alias.  */
22626 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22627 choke me
22628 #else
22629 char (*f) () = mprotect;
22630 #endif
22631 #ifdef __cplusplus
22632 }
22633 #endif
22634
22635 int
22636 main ()
22637 {
22638 return f != mprotect;
22639   ;
22640   return 0;
22641 }
22642 _ACEOF
22643 rm -f conftest.$ac_objext conftest$ac_exeext
22644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22645   (eval $ac_link) 2>&5
22646   ac_status=$?
22647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648   (exit $ac_status); } &&
22649          { ac_try='test -s conftest$ac_exeext'
22650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22651   (eval $ac_try) 2>&5
22652   ac_status=$?
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); }; }; then
22655   ac_cv_func_mprotect=yes
22656 else
22657   echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.$ac_ext >&5
22659
22660 ac_cv_func_mprotect=no
22661 fi
22662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22663 fi
22664 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22665 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22666 if test $ac_cv_func_mprotect = yes; then
22667   :
22668 else
22669   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22670 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22671    { (exit 1); exit 1; }; }
22672 fi
22673
22674
22675
22676 # Check whether --enable-purify or --disable-purify was given.
22677 if test "${enable_purify+set}" = set; then
22678   enableval="$enable_purify"
22679
22680 else
22681   enableval="no"
22682 fi;
22683 if test ${enableval} = "no"
22684 then
22685         ENABLE_PURIFY=
22686
22687 else
22688         ENABLE_PURIFY=ENABLE_PURIFY=1
22689
22690 fi
22691
22692 # Check whether --enable-optimized or --disable-optimized was given.
22693 if test "${enable_optimized+set}" = set; then
22694   enableval="$enable_optimized"
22695
22696 else
22697   enableval=no
22698 fi;
22699 if test ${enableval} = "no"
22700 then
22701         ENABLE_OPTIMIZED=
22702
22703 else
22704         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22705
22706 fi
22707
22708 # Check whether --enable-spec or --disable-spec was given.
22709 if test "${enable_spec+set}" = set; then
22710   enableval="$enable_spec"
22711
22712 else
22713   enableval=no
22714 fi;
22715 if test ${enableval} = "no"
22716 then
22717         USE_SPEC=
22718
22719 else
22720         USE_SPEC=USE_SPEC=1
22721
22722 fi
22723
22724 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22725 if test "${enable_precompiled_bytecode+set}" = set; then
22726   enableval="$enable_precompiled_bytecode"
22727
22728 else
22729   enableval=no
22730 fi;
22731 if test ${enableval} = "no"
22732 then
22733         UPB=
22734
22735 else
22736         UPB=USE_PRECOMPILED_BYTECODE=1
22737
22738 fi
22739
22740
22741 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22742 if test "${enable_llc_diffs+set}" = set; then
22743   enableval="$enable_llc_diffs"
22744
22745 else
22746   enableval=yes
22747 fi;
22748 if test ${enableval} = "no"
22749 then
22750         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22751
22752 else
22753         DISABLE_LLC_DIFFS=
22754
22755 fi
22756
22757 # Check whether --enable-jit or --disable-jit was given.
22758 if test "${enable_jit+set}" = set; then
22759   enableval="$enable_jit"
22760
22761 else
22762   enableval=default
22763 fi;
22764
22765 if test ${enableval} = "no"
22766 then
22767         JIT=
22768
22769 else
22770         case $target in
22771                 *i*86*)
22772                         JIT=TARGET_HAS_JIT=1
22773
22774                         ;;
22775                 *sparc*)
22776                         JIT=TARGET_HAS_JIT=1
22777
22778                         ;;
22779                 *)
22780                         JIT=
22781
22782                         ;;
22783         esac
22784 fi
22785
22786
22787
22788 # Check whether --with-spec or --without-spec was given.
22789 if test "${with_spec+set}" = set; then
22790   withval="$with_spec"
22791   SPEC_ROOT=$withval
22792
22793 else
22794   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22795
22796 fi;
22797
22798
22799 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22800 if test "${with_llvmgccdir+set}" = set; then
22801   withval="$with_llvmgccdir"
22802   LLVMGCCDIR=$withval
22803
22804 fi;
22805
22806
22807 # Check whether --with-bcrepos or --without-bcrepos was given.
22808 if test "${with_bcrepos+set}" = set; then
22809   withval="$with_bcrepos"
22810   BCR=$withval
22811
22812 else
22813   BCR=/home/vadve/lattner/LLVMPrograms
22814
22815 fi;
22816
22817
22818 # Check whether --with-papi or --without-papi was given.
22819 if test "${with_papi+set}" = set; then
22820   withval="$with_papi"
22821   PAPIDIR=$withval
22822
22823 else
22824   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22825
22826 fi;
22827
22828
22829 # Check whether --with-purify or --without-purify was given.
22830 if test "${with_purify+set}" = set; then
22831   withval="$with_purify"
22832   PURIFY=$withval
22833
22834 fi;
22835
22836
22837           ac_config_files="$ac_config_files Makefile.config"
22838 cat >confcache <<\_ACEOF
22839 # This file is a shell script that caches the results of configure
22840 # tests run on this system so they can be shared between configure
22841 # scripts and configure runs, see configure's option --config-cache.
22842 # It is not useful on other systems.  If it contains results you don't
22843 # want to keep, you may remove or edit it.
22844 #
22845 # config.status only pays attention to the cache file if you give it
22846 # the --recheck option to rerun configure.
22847 #
22848 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22849 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22850 # following values.
22851
22852 _ACEOF
22853
22854 # The following way of writing the cache mishandles newlines in values,
22855 # but we know of no workaround that is simple, portable, and efficient.
22856 # So, don't put newlines in cache variables' values.
22857 # Ultrix sh set writes to stderr and can't be redirected directly,
22858 # and sets the high bit in the cache file unless we assign to the vars.
22859 {
22860   (set) 2>&1 |
22861     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22862     *ac_space=\ *)
22863       # `set' does not quote correctly, so add quotes (double-quote
22864       # substitution turns \\\\ into \\, and sed turns \\ into \).
22865       sed -n \
22866         "s/'/'\\\\''/g;
22867           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22868       ;;
22869     *)
22870       # `set' quotes correctly as required by POSIX, so do not add quotes.
22871       sed -n \
22872         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22873       ;;
22874     esac;
22875 } |
22876   sed '
22877      t clear
22878      : clear
22879      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22880      t end
22881      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22882      : end' >>confcache
22883 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22884   if test -w $cache_file; then
22885     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22886     cat confcache >$cache_file
22887   else
22888     echo "not updating unwritable cache $cache_file"
22889   fi
22890 fi
22891 rm -f confcache
22892
22893 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22894 # Let make expand exec_prefix.
22895 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22896
22897 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22898 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22899 # trailing colons and then remove the whole line if VPATH becomes empty
22900 # (actually we leave an empty line to preserve line numbers).
22901 if test "x$srcdir" = x.; then
22902   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22903 s/:*\$(srcdir):*/:/;
22904 s/:*\${srcdir}:*/:/;
22905 s/:*@srcdir@:*/:/;
22906 s/^\([^=]*=[    ]*\):*/\1/;
22907 s/:*$//;
22908 s/^[^=]*=[      ]*$//;
22909 }'
22910 fi
22911
22912 DEFS=-DHAVE_CONFIG_H
22913
22914 ac_libobjs=
22915 ac_ltlibobjs=
22916 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22917   # 1. Remove the extension, and $U if already installed.
22918   ac_i=`echo "$ac_i" |
22919          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22920   # 2. Add them.
22921   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22922   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22923 done
22924 LIBOBJS=$ac_libobjs
22925
22926 LTLIBOBJS=$ac_ltlibobjs
22927
22928
22929
22930 : ${CONFIG_STATUS=./config.status}
22931 ac_clean_files_save=$ac_clean_files
22932 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22933 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22934 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22935 cat >$CONFIG_STATUS <<_ACEOF
22936 #! $SHELL
22937 # Generated by $as_me.
22938 # Run this file to recreate the current configuration.
22939 # Compiler output produced by configure, useful for debugging
22940 # configure, is in config.log if it exists.
22941
22942 debug=false
22943 ac_cs_recheck=false
22944 ac_cs_silent=false
22945 SHELL=\${CONFIG_SHELL-$SHELL}
22946 _ACEOF
22947
22948 cat >>$CONFIG_STATUS <<\_ACEOF
22949 ## --------------------- ##
22950 ## M4sh Initialization.  ##
22951 ## --------------------- ##
22952
22953 # Be Bourne compatible
22954 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22955   emulate sh
22956   NULLCMD=:
22957   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22958   # is contrary to our usage.  Disable this feature.
22959   alias -g '${1+"$@"}'='"$@"'
22960 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22961   set -o posix
22962 fi
22963
22964 # Support unset when possible.
22965 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22966   as_unset=unset
22967 else
22968   as_unset=false
22969 fi
22970
22971
22972 # Work around bugs in pre-3.0 UWIN ksh.
22973 $as_unset ENV MAIL MAILPATH
22974 PS1='$ '
22975 PS2='> '
22976 PS4='+ '
22977
22978 # NLS nuisances.
22979 for as_var in \
22980   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22981   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22982   LC_TELEPHONE LC_TIME
22983 do
22984   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22985     eval $as_var=C; export $as_var
22986   else
22987     $as_unset $as_var
22988   fi
22989 done
22990
22991 # Required to use basename.
22992 if expr a : '\(a\)' >/dev/null 2>&1; then
22993   as_expr=expr
22994 else
22995   as_expr=false
22996 fi
22997
22998 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22999   as_basename=basename
23000 else
23001   as_basename=false
23002 fi
23003
23004
23005 # Name of the executable.
23006 as_me=`$as_basename "$0" ||
23007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23008          X"$0" : 'X\(//\)$' \| \
23009          X"$0" : 'X\(/\)$' \| \
23010          .     : '\(.\)' 2>/dev/null ||
23011 echo X/"$0" |
23012     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23013           /^X\/\(\/\/\)$/{ s//\1/; q; }
23014           /^X\/\(\/\).*/{ s//\1/; q; }
23015           s/.*/./; q'`
23016
23017
23018 # PATH needs CR, and LINENO needs CR and PATH.
23019 # Avoid depending upon Character Ranges.
23020 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23021 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23022 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23023 as_cr_digits='0123456789'
23024 as_cr_alnum=$as_cr_Letters$as_cr_digits
23025
23026 # The user is always right.
23027 if test "${PATH_SEPARATOR+set}" != set; then
23028   echo "#! /bin/sh" >conf$$.sh
23029   echo  "exit 0"   >>conf$$.sh
23030   chmod +x conf$$.sh
23031   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23032     PATH_SEPARATOR=';'
23033   else
23034     PATH_SEPARATOR=:
23035   fi
23036   rm -f conf$$.sh
23037 fi
23038
23039
23040   as_lineno_1=$LINENO
23041   as_lineno_2=$LINENO
23042   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23043   test "x$as_lineno_1" != "x$as_lineno_2" &&
23044   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23045   # Find who we are.  Look in the path if we contain no path at all
23046   # relative or not.
23047   case $0 in
23048     *[\\/]* ) as_myself=$0 ;;
23049     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23050 for as_dir in $PATH
23051 do
23052   IFS=$as_save_IFS
23053   test -z "$as_dir" && as_dir=.
23054   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23055 done
23056
23057        ;;
23058   esac
23059   # We did not find ourselves, most probably we were run as `sh COMMAND'
23060   # in which case we are not to be found in the path.
23061   if test "x$as_myself" = x; then
23062     as_myself=$0
23063   fi
23064   if test ! -f "$as_myself"; then
23065     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23066 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23067    { (exit 1); exit 1; }; }
23068   fi
23069   case $CONFIG_SHELL in
23070   '')
23071     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23072 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23073 do
23074   IFS=$as_save_IFS
23075   test -z "$as_dir" && as_dir=.
23076   for as_base in sh bash ksh sh5; do
23077          case $as_dir in
23078          /*)
23079            if ("$as_dir/$as_base" -c '
23080   as_lineno_1=$LINENO
23081   as_lineno_2=$LINENO
23082   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23083   test "x$as_lineno_1" != "x$as_lineno_2" &&
23084   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23085              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23086              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23087              CONFIG_SHELL=$as_dir/$as_base
23088              export CONFIG_SHELL
23089              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23090            fi;;
23091          esac
23092        done
23093 done
23094 ;;
23095   esac
23096
23097   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23098   # uniformly replaced by the line number.  The first 'sed' inserts a
23099   # line-number line before each line; the second 'sed' does the real
23100   # work.  The second script uses 'N' to pair each line-number line
23101   # with the numbered line, and appends trailing '-' during
23102   # substitution so that $LINENO is not a special case at line end.
23103   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23104   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23105   sed '=' <$as_myself |
23106     sed '
23107       N
23108       s,$,-,
23109       : loop
23110       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23111       t loop
23112       s,-$,,
23113       s,^['$as_cr_digits']*\n,,
23114     ' >$as_me.lineno &&
23115   chmod +x $as_me.lineno ||
23116     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23117 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23118    { (exit 1); exit 1; }; }
23119
23120   # Don't try to exec as it changes $[0], causing all sort of problems
23121   # (the dirname of $[0] is not the place where we might find the
23122   # original and so on.  Autoconf is especially sensible to this).
23123   . ./$as_me.lineno
23124   # Exit status is that of the last command.
23125   exit
23126 }
23127
23128
23129 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23130   *c*,-n*) ECHO_N= ECHO_C='
23131 ' ECHO_T='      ' ;;
23132   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23133   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23134 esac
23135
23136 if expr a : '\(a\)' >/dev/null 2>&1; then
23137   as_expr=expr
23138 else
23139   as_expr=false
23140 fi
23141
23142 rm -f conf$$ conf$$.exe conf$$.file
23143 echo >conf$$.file
23144 if ln -s conf$$.file conf$$ 2>/dev/null; then
23145   # We could just check for DJGPP; but this test a) works b) is more generic
23146   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23147   if test -f conf$$.exe; then
23148     # Don't use ln at all; we don't have any links
23149     as_ln_s='cp -p'
23150   else
23151     as_ln_s='ln -s'
23152   fi
23153 elif ln conf$$.file conf$$ 2>/dev/null; then
23154   as_ln_s=ln
23155 else
23156   as_ln_s='cp -p'
23157 fi
23158 rm -f conf$$ conf$$.exe conf$$.file
23159
23160 if mkdir -p . 2>/dev/null; then
23161   as_mkdir_p=:
23162 else
23163   as_mkdir_p=false
23164 fi
23165
23166 as_executable_p="test -f"
23167
23168 # Sed expression to map a string onto a valid CPP name.
23169 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23170
23171 # Sed expression to map a string onto a valid variable name.
23172 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23173
23174
23175 # IFS
23176 # We need space, tab and new line, in precisely that order.
23177 as_nl='
23178 '
23179 IFS="   $as_nl"
23180
23181 # CDPATH.
23182 $as_unset CDPATH
23183
23184 exec 6>&1
23185
23186 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23187 # report actual input values of CONFIG_FILES etc. instead of their
23188 # values after options handling.  Logging --version etc. is OK.
23189 exec 5>>config.log
23190 {
23191   echo
23192   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23193 ## Running $as_me. ##
23194 _ASBOX
23195 } >&5
23196 cat >&5 <<_CSEOF
23197
23198 This file was extended by [LLVM] $as_me [1.0], which was
23199 generated by GNU Autoconf 2.57.  Invocation command line was
23200
23201   CONFIG_FILES    = $CONFIG_FILES
23202   CONFIG_HEADERS  = $CONFIG_HEADERS
23203   CONFIG_LINKS    = $CONFIG_LINKS
23204   CONFIG_COMMANDS = $CONFIG_COMMANDS
23205   $ $0 $@
23206
23207 _CSEOF
23208 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23209 echo >&5
23210 _ACEOF
23211
23212 # Files that config.status was made for.
23213 if test -n "$ac_config_files"; then
23214   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23215 fi
23216
23217 if test -n "$ac_config_headers"; then
23218   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23219 fi
23220
23221 if test -n "$ac_config_links"; then
23222   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23223 fi
23224
23225 if test -n "$ac_config_commands"; then
23226   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23227 fi
23228
23229 cat >>$CONFIG_STATUS <<\_ACEOF
23230
23231 ac_cs_usage="\
23232 \`$as_me' instantiates files from templates according to the
23233 current configuration.
23234
23235 Usage: $0 [OPTIONS] [FILE]...
23236
23237   -h, --help       print this help, then exit
23238   -V, --version    print version number, then exit
23239   -q, --quiet      do not print progress messages
23240   -d, --debug      don't remove temporary files
23241       --recheck    update $as_me by reconfiguring in the same conditions
23242   --file=FILE[:TEMPLATE]
23243                    instantiate the configuration file FILE
23244   --header=FILE[:TEMPLATE]
23245                    instantiate the configuration header FILE
23246
23247 Configuration files:
23248 $config_files
23249
23250 Configuration headers:
23251 $config_headers
23252
23253 Configuration commands:
23254 $config_commands
23255
23256 Report bugs to <bug-autoconf@gnu.org>."
23257 _ACEOF
23258
23259 cat >>$CONFIG_STATUS <<_ACEOF
23260 ac_cs_version="\\
23261 [LLVM] config.status [1.0]
23262 configured by $0, generated by GNU Autoconf 2.57,
23263   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23264
23265 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23266 Free Software Foundation, Inc.
23267 This config.status script is free software; the Free Software Foundation
23268 gives unlimited permission to copy, distribute and modify it."
23269 srcdir=$srcdir
23270 INSTALL="$INSTALL"
23271 _ACEOF
23272
23273 cat >>$CONFIG_STATUS <<\_ACEOF
23274 # If no file are specified by the user, then we need to provide default
23275 # value.  By we need to know if files were specified by the user.
23276 ac_need_defaults=:
23277 while test $# != 0
23278 do
23279   case $1 in
23280   --*=*)
23281     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23282     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23283     ac_shift=:
23284     ;;
23285   -*)
23286     ac_option=$1
23287     ac_optarg=$2
23288     ac_shift=shift
23289     ;;
23290   *) # This is not an option, so the user has probably given explicit
23291      # arguments.
23292      ac_option=$1
23293      ac_need_defaults=false;;
23294   esac
23295
23296   case $ac_option in
23297   # Handling of the options.
23298 _ACEOF
23299 cat >>$CONFIG_STATUS <<\_ACEOF
23300   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23301     ac_cs_recheck=: ;;
23302   --version | --vers* | -V )
23303     echo "$ac_cs_version"; exit 0 ;;
23304   --he | --h)
23305     # Conflict between --help and --header
23306     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23307 Try \`$0 --help' for more information." >&5
23308 echo "$as_me: error: ambiguous option: $1
23309 Try \`$0 --help' for more information." >&2;}
23310    { (exit 1); exit 1; }; };;
23311   --help | --hel | -h )
23312     echo "$ac_cs_usage"; exit 0 ;;
23313   --debug | --d* | -d )
23314     debug=: ;;
23315   --file | --fil | --fi | --f )
23316     $ac_shift
23317     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23318     ac_need_defaults=false;;
23319   --header | --heade | --head | --hea )
23320     $ac_shift
23321     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23322     ac_need_defaults=false;;
23323   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23324   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23325     ac_cs_silent=: ;;
23326
23327   # This is an error.
23328   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23329 Try \`$0 --help' for more information." >&5
23330 echo "$as_me: error: unrecognized option: $1
23331 Try \`$0 --help' for more information." >&2;}
23332    { (exit 1); exit 1; }; } ;;
23333
23334   *) ac_config_targets="$ac_config_targets $1" ;;
23335
23336   esac
23337   shift
23338 done
23339
23340 ac_configure_extra_args=
23341
23342 if $ac_cs_silent; then
23343   exec 6>/dev/null
23344   ac_configure_extra_args="$ac_configure_extra_args --silent"
23345 fi
23346
23347 _ACEOF
23348 cat >>$CONFIG_STATUS <<_ACEOF
23349 if \$ac_cs_recheck; then
23350   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23351   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23352 fi
23353
23354 _ACEOF
23355
23356 cat >>$CONFIG_STATUS <<_ACEOF
23357 #
23358 # INIT-COMMANDS section.
23359 #
23360
23361 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23362 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23363 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23364 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23365 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23366 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23367 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23368 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23369 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname support/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Support/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Makefile`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Doc/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/TableGen/Makefile`
23541
23542 _ACEOF
23543
23544
23545
23546 cat >>$CONFIG_STATUS <<\_ACEOF
23547 for ac_config_target in $ac_config_targets
23548 do
23549   case "$ac_config_target" in
23550   # Handling of arguments.
23551   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23552   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23553   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23554   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23555   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23556   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23557   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23558   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23559   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23560   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23561   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23562   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23563   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23564   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23565   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23566   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23567   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23568   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23569   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23570   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23571   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23572   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23573   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23574   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23575   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23576   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23577   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23578   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23579   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23580   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23581   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23582   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23583   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23584   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23585   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23586   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23587   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23588   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23589   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23590   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23591   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23592   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23593   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23594   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23595   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23596   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23597   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23598   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23599   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23600   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23601   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23602   "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
23603   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23604   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23605   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23606   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23607   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23608   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23609   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23610   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23611   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23612   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23613   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23614   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23615   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23616   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23617   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23618   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23619   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23620   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23621   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23622   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23623   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23624   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23625   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23626   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23627   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23628   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23629   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23630   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23631   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23632   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23633   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23634   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23635   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23636   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23637   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23638   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23639   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23640   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23641   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23642   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23643   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23644   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23645   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23646   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23647   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23648   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23649   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23650   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23651   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23652   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23653   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23654   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23655   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23656   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23657   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23658   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23659   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23660   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23661   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23662   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23663   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23664   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23665   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23666   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23667   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23668   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23669   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23670   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23671   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23672   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23673   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23674   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23675   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23676   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23677   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23678   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23679   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23680   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23681   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23682   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23683   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23684   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23685   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23686   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23687   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23688   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23689   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23690   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23691   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23692   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23693   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23694   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23695   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23696   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23697   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23698   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23699   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23700   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23701   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23702   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23703   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23704   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23705   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23706   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23707   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23708   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23709   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23710   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23711   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23712   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23713   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23714   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23715   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23716   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23717   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23718   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23719   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23720   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23721   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23722   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23723   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23724   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23725   "support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/Makefile" ;;
23726   "support/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Makefile" ;;
23727   "support/lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Support/Makefile" ;;
23728   "support/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Makefile" ;;
23729   "support/tools/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Makefile" ;;
23730   "support/tools/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Doc/Makefile" ;;
23731   "support/tools/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/TableGen/Makefile" ;;
23732   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23733   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23734 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23735    { (exit 1); exit 1; }; };;
23736   esac
23737 done
23738
23739 # If the user did not use the arguments to specify the items to instantiate,
23740 # then the envvar interface is used.  Set only those that are not.
23741 # We use the long form for the default assignment because of an extremely
23742 # bizarre bug on SunOS 4.1.3.
23743 if $ac_need_defaults; then
23744   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23745   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23746   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23747 fi
23748
23749 # Have a temporary directory for convenience.  Make it in the build tree
23750 # simply because there is no reason to put it here, and in addition,
23751 # creating and moving files from /tmp can sometimes cause problems.
23752 # Create a temporary directory, and hook for its removal unless debugging.
23753 $debug ||
23754 {
23755   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23756   trap '{ (exit 1); exit 1; }' 1 2 13 15
23757 }
23758
23759 # Create a (secure) tmp directory for tmp files.
23760
23761 {
23762   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23763   test -n "$tmp" && test -d "$tmp"
23764 }  ||
23765 {
23766   tmp=./confstat$$-$RANDOM
23767   (umask 077 && mkdir $tmp)
23768 } ||
23769 {
23770    echo "$me: cannot create a temporary directory in ." >&2
23771    { (exit 1); exit 1; }
23772 }
23773
23774 _ACEOF
23775
23776 cat >>$CONFIG_STATUS <<_ACEOF
23777
23778 #
23779 # CONFIG_FILES section.
23780 #
23781
23782 # No need to generate the scripts if there are no CONFIG_FILES.
23783 # This happens for instance when ./config.status config.h
23784 if test -n "\$CONFIG_FILES"; then
23785   # Protect against being on the right side of a sed subst in config.status.
23786   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23787    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23788 s,@SHELL@,$SHELL,;t t
23789 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23790 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23791 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23792 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23793 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23794 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23795 s,@exec_prefix@,$exec_prefix,;t t
23796 s,@prefix@,$prefix,;t t
23797 s,@program_transform_name@,$program_transform_name,;t t
23798 s,@bindir@,$bindir,;t t
23799 s,@sbindir@,$sbindir,;t t
23800 s,@libexecdir@,$libexecdir,;t t
23801 s,@datadir@,$datadir,;t t
23802 s,@sysconfdir@,$sysconfdir,;t t
23803 s,@sharedstatedir@,$sharedstatedir,;t t
23804 s,@localstatedir@,$localstatedir,;t t
23805 s,@libdir@,$libdir,;t t
23806 s,@includedir@,$includedir,;t t
23807 s,@oldincludedir@,$oldincludedir,;t t
23808 s,@infodir@,$infodir,;t t
23809 s,@mandir@,$mandir,;t t
23810 s,@build_alias@,$build_alias,;t t
23811 s,@host_alias@,$host_alias,;t t
23812 s,@target_alias@,$target_alias,;t t
23813 s,@DEFS@,$DEFS,;t t
23814 s,@ECHO_C@,$ECHO_C,;t t
23815 s,@ECHO_N@,$ECHO_N,;t t
23816 s,@ECHO_T@,$ECHO_T,;t t
23817 s,@LIBS@,$LIBS,;t t
23818 s,@subdirs@,$subdirs,;t t
23819 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23820 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23821 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23822 s,@build@,$build,;t t
23823 s,@build_cpu@,$build_cpu,;t t
23824 s,@build_vendor@,$build_vendor,;t t
23825 s,@build_os@,$build_os,;t t
23826 s,@host@,$host,;t t
23827 s,@host_cpu@,$host_cpu,;t t
23828 s,@host_vendor@,$host_vendor,;t t
23829 s,@host_os@,$host_os,;t t
23830 s,@target@,$target,;t t
23831 s,@target_cpu@,$target_cpu,;t t
23832 s,@target_vendor@,$target_vendor,;t t
23833 s,@target_os@,$target_os,;t t
23834 s,@OS@,$OS,;t t
23835 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23836 s,@ARCH@,$ARCH,;t t
23837 s,@CXX@,$CXX,;t t
23838 s,@CXXFLAGS@,$CXXFLAGS,;t t
23839 s,@LDFLAGS@,$LDFLAGS,;t t
23840 s,@CPPFLAGS@,$CPPFLAGS,;t t
23841 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23842 s,@EXEEXT@,$EXEEXT,;t t
23843 s,@OBJEXT@,$OBJEXT,;t t
23844 s,@CC@,$CC,;t t
23845 s,@CFLAGS@,$CFLAGS,;t t
23846 s,@ac_ct_CC@,$ac_ct_CC,;t t
23847 s,@CPP@,$CPP,;t t
23848 s,@ifGNUmake@,$ifGNUmake,;t t
23849 s,@LEX@,$LEX,;t t
23850 s,@LEXLIB@,$LEXLIB,;t t
23851 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23852 s,@YACC@,$YACC,;t t
23853 s,@EGREP@,$EGREP,;t t
23854 s,@LN_S@,$LN_S,;t t
23855 s,@ECHO@,$ECHO,;t t
23856 s,@AR@,$AR,;t t
23857 s,@ac_ct_AR@,$ac_ct_AR,;t t
23858 s,@RANLIB@,$RANLIB,;t t
23859 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23860 s,@STRIP@,$STRIP,;t t
23861 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23862 s,@CXXCPP@,$CXXCPP,;t t
23863 s,@F77@,$F77,;t t
23864 s,@FFLAGS@,$FFLAGS,;t t
23865 s,@ac_ct_F77@,$ac_ct_F77,;t t
23866 s,@LIBTOOL@,$LIBTOOL,;t t
23867 s,@RPWD@,$RPWD,;t t
23868 s,@SED@,$SED,;t t
23869 s,@RM@,$RM,;t t
23870 s,@MKDIR@,$MKDIR,;t t
23871 s,@DATE@,$DATE,;t t
23872 s,@MV@,$MV,;t t
23873 s,@DOT@,$DOT,;t t
23874 s,@ETAGS@,$ETAGS,;t t
23875 s,@PYTHON@,$PYTHON,;t t
23876 s,@QMTEST@,$QMTEST,;t t
23877 s,@ALLOCA@,$ALLOCA,;t t
23878 s,@LIBOBJS@,$LIBOBJS,;t t
23879 s,@MMAP_FILE@,$MMAP_FILE,;t t
23880 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23881 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23882 s,@USE_SPEC@,$USE_SPEC,;t t
23883 s,@UPB@,$UPB,;t t
23884 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23885 s,@JIT@,$JIT,;t t
23886 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23887 s,@BCR@,$BCR,;t t
23888 s,@PAPIDIR@,$PAPIDIR,;t t
23889 s,@PURIFY@,$PURIFY,;t t
23890 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23891 CEOF
23892
23893 _ACEOF
23894
23895   cat >>$CONFIG_STATUS <<\_ACEOF
23896   # Split the substitutions into bite-sized pieces for seds with
23897   # small command number limits, like on Digital OSF/1 and HP-UX.
23898   ac_max_sed_lines=48
23899   ac_sed_frag=1 # Number of current file.
23900   ac_beg=1 # First line for current file.
23901   ac_end=$ac_max_sed_lines # Line after last line for current file.
23902   ac_more_lines=:
23903   ac_sed_cmds=
23904   while $ac_more_lines; do
23905     if test $ac_beg -gt 1; then
23906       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23907     else
23908       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23909     fi
23910     if test ! -s $tmp/subs.frag; then
23911       ac_more_lines=false
23912     else
23913       # The purpose of the label and of the branching condition is to
23914       # speed up the sed processing (if there are no `@' at all, there
23915       # is no need to browse any of the substitutions).
23916       # These are the two extra sed commands mentioned above.
23917       (echo ':t
23918   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23919       if test -z "$ac_sed_cmds"; then
23920         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23921       else
23922         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23923       fi
23924       ac_sed_frag=`expr $ac_sed_frag + 1`
23925       ac_beg=$ac_end
23926       ac_end=`expr $ac_end + $ac_max_sed_lines`
23927     fi
23928   done
23929   if test -z "$ac_sed_cmds"; then
23930     ac_sed_cmds=cat
23931   fi
23932 fi # test -n "$CONFIG_FILES"
23933
23934 _ACEOF
23935 cat >>$CONFIG_STATUS <<\_ACEOF
23936 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23937   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23938   case $ac_file in
23939   - | *:- | *:-:* ) # input from stdin
23940         cat >$tmp/stdin
23941         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23942         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23943   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23944         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23945   * )   ac_file_in=$ac_file.in ;;
23946   esac
23947
23948   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23949   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23951          X"$ac_file" : 'X\(//\)[^/]' \| \
23952          X"$ac_file" : 'X\(//\)$' \| \
23953          X"$ac_file" : 'X\(/\)' \| \
23954          .     : '\(.\)' 2>/dev/null ||
23955 echo X"$ac_file" |
23956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23957           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23958           /^X\(\/\/\)$/{ s//\1/; q; }
23959           /^X\(\/\).*/{ s//\1/; q; }
23960           s/.*/./; q'`
23961   { if $as_mkdir_p; then
23962     mkdir -p "$ac_dir"
23963   else
23964     as_dir="$ac_dir"
23965     as_dirs=
23966     while test ! -d "$as_dir"; do
23967       as_dirs="$as_dir $as_dirs"
23968       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23970          X"$as_dir" : 'X\(//\)[^/]' \| \
23971          X"$as_dir" : 'X\(//\)$' \| \
23972          X"$as_dir" : 'X\(/\)' \| \
23973          .     : '\(.\)' 2>/dev/null ||
23974 echo X"$as_dir" |
23975     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23976           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23977           /^X\(\/\/\)$/{ s//\1/; q; }
23978           /^X\(\/\).*/{ s//\1/; q; }
23979           s/.*/./; q'`
23980     done
23981     test ! -n "$as_dirs" || mkdir $as_dirs
23982   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23983 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23984    { (exit 1); exit 1; }; }; }
23985
23986   ac_builddir=.
23987
23988 if test "$ac_dir" != .; then
23989   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23990   # A "../" for each directory in $ac_dir_suffix.
23991   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23992 else
23993   ac_dir_suffix= ac_top_builddir=
23994 fi
23995
23996 case $srcdir in
23997   .)  # No --srcdir option.  We are building in place.
23998     ac_srcdir=.
23999     if test -z "$ac_top_builddir"; then
24000        ac_top_srcdir=.
24001     else
24002        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24003     fi ;;
24004   [\\/]* | ?:[\\/]* )  # Absolute path.
24005     ac_srcdir=$srcdir$ac_dir_suffix;
24006     ac_top_srcdir=$srcdir ;;
24007   *) # Relative path.
24008     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24009     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24010 esac
24011 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24012 # absolute.
24013 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24014 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24015 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24016 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24017
24018
24019   case $INSTALL in
24020   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24021   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24022   esac
24023
24024   if test x"$ac_file" != x-; then
24025     { echo "$as_me:$LINENO: creating $ac_file" >&5
24026 echo "$as_me: creating $ac_file" >&6;}
24027     rm -f "$ac_file"
24028   fi
24029   # Let's still pretend it is `configure' which instantiates (i.e., don't
24030   # use $as_me), people would be surprised to read:
24031   #    /* config.h.  Generated by config.status.  */
24032   if test x"$ac_file" = x-; then
24033     configure_input=
24034   else
24035     configure_input="$ac_file.  "
24036   fi
24037   configure_input=$configure_input"Generated from `echo $ac_file_in |
24038                                      sed 's,.*/,,'` by configure."
24039
24040   # First look for the input files in the build tree, otherwise in the
24041   # src tree.
24042   ac_file_inputs=`IFS=:
24043     for f in $ac_file_in; do
24044       case $f in
24045       -) echo $tmp/stdin ;;
24046       [\\/$]*)
24047          # Absolute (can't be DOS-style, as IFS=:)
24048          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24049 echo "$as_me: error: cannot find input file: $f" >&2;}
24050    { (exit 1); exit 1; }; }
24051          echo $f;;
24052       *) # Relative
24053          if test -f "$f"; then
24054            # Build tree
24055            echo $f
24056          elif test -f "$srcdir/$f"; then
24057            # Source tree
24058            echo $srcdir/$f
24059          else
24060            # /dev/null tree
24061            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24062 echo "$as_me: error: cannot find input file: $f" >&2;}
24063    { (exit 1); exit 1; }; }
24064          fi;;
24065       esac
24066     done` || { (exit 1); exit 1; }
24067 _ACEOF
24068 cat >>$CONFIG_STATUS <<_ACEOF
24069   sed "$ac_vpsub
24070 $extrasub
24071 _ACEOF
24072 cat >>$CONFIG_STATUS <<\_ACEOF
24073 :t
24074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24075 s,@configure_input@,$configure_input,;t t
24076 s,@srcdir@,$ac_srcdir,;t t
24077 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24078 s,@top_srcdir@,$ac_top_srcdir,;t t
24079 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24080 s,@builddir@,$ac_builddir,;t t
24081 s,@abs_builddir@,$ac_abs_builddir,;t t
24082 s,@top_builddir@,$ac_top_builddir,;t t
24083 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24084 s,@INSTALL@,$ac_INSTALL,;t t
24085 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24086   rm -f $tmp/stdin
24087   if test x"$ac_file" != x-; then
24088     mv $tmp/out $ac_file
24089   else
24090     cat $tmp/out
24091     rm -f $tmp/out
24092   fi
24093
24094 done
24095 _ACEOF
24096 cat >>$CONFIG_STATUS <<\_ACEOF
24097
24098 #
24099 # CONFIG_HEADER section.
24100 #
24101
24102 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24103 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24104 #
24105 # ac_d sets the value in "#define NAME VALUE" lines.
24106 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24107 ac_dB='[        ].*$,\1#\2'
24108 ac_dC=' '
24109 ac_dD=',;t'
24110 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24111 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24112 ac_uB='$,\1#\2define\3'
24113 ac_uC=' '
24114 ac_uD=',;t'
24115
24116 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24117   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24118   case $ac_file in
24119   - | *:- | *:-:* ) # input from stdin
24120         cat >$tmp/stdin
24121         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24122         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24123   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24124         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24125   * )   ac_file_in=$ac_file.in ;;
24126   esac
24127
24128   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24129 echo "$as_me: creating $ac_file" >&6;}
24130
24131   # First look for the input files in the build tree, otherwise in the
24132   # src tree.
24133   ac_file_inputs=`IFS=:
24134     for f in $ac_file_in; do
24135       case $f in
24136       -) echo $tmp/stdin ;;
24137       [\\/$]*)
24138          # Absolute (can't be DOS-style, as IFS=:)
24139          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24140 echo "$as_me: error: cannot find input file: $f" >&2;}
24141    { (exit 1); exit 1; }; }
24142          echo $f;;
24143       *) # Relative
24144          if test -f "$f"; then
24145            # Build tree
24146            echo $f
24147          elif test -f "$srcdir/$f"; then
24148            # Source tree
24149            echo $srcdir/$f
24150          else
24151            # /dev/null tree
24152            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24153 echo "$as_me: error: cannot find input file: $f" >&2;}
24154    { (exit 1); exit 1; }; }
24155          fi;;
24156       esac
24157     done` || { (exit 1); exit 1; }
24158   # Remove the trailing spaces.
24159   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24160
24161 _ACEOF
24162
24163 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24164 # `conftest.undefs', that substitutes the proper values into
24165 # config.h.in to produce config.h.  The first handles `#define'
24166 # templates, and the second `#undef' templates.
24167 # And first: Protect against being on the right side of a sed subst in
24168 # config.status.  Protect against being in an unquoted here document
24169 # in config.status.
24170 rm -f conftest.defines conftest.undefs
24171 # Using a here document instead of a string reduces the quoting nightmare.
24172 # Putting comments in sed scripts is not portable.
24173 #
24174 # `end' is used to avoid that the second main sed command (meant for
24175 # 0-ary CPP macros) applies to n-ary macro definitions.
24176 # See the Autoconf documentation for `clear'.
24177 cat >confdef2sed.sed <<\_ACEOF
24178 s/[\\&,]/\\&/g
24179 s,[\\$`],\\&,g
24180 t clear
24181 : clear
24182 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24183 t end
24184 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24185 : end
24186 _ACEOF
24187 # If some macros were called several times there might be several times
24188 # the same #defines, which is useless.  Nevertheless, we may not want to
24189 # sort them, since we want the *last* AC-DEFINE to be honored.
24190 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24191 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24192 rm -f confdef2sed.sed
24193
24194 # This sed command replaces #undef with comments.  This is necessary, for
24195 # example, in the case of _POSIX_SOURCE, which is predefined and required
24196 # on some systems where configure will not decide to define it.
24197 cat >>conftest.undefs <<\_ACEOF
24198 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24199 _ACEOF
24200
24201 # Break up conftest.defines because some shells have a limit on the size
24202 # of here documents, and old seds have small limits too (100 cmds).
24203 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24204 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24205 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24206 echo '  :' >>$CONFIG_STATUS
24207 rm -f conftest.tail
24208 while grep . conftest.defines >/dev/null
24209 do
24210   # Write a limited-size here document to $tmp/defines.sed.
24211   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24212   # Speed up: don't consider the non `#define' lines.
24213   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24214   # Work around the forget-to-reset-the-flag bug.
24215   echo 't clr' >>$CONFIG_STATUS
24216   echo ': clr' >>$CONFIG_STATUS
24217   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24218   echo 'CEOF
24219   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24220   rm -f $tmp/in
24221   mv $tmp/out $tmp/in
24222 ' >>$CONFIG_STATUS
24223   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24224   rm -f conftest.defines
24225   mv conftest.tail conftest.defines
24226 done
24227 rm -f conftest.defines
24228 echo '  fi # grep' >>$CONFIG_STATUS
24229 echo >>$CONFIG_STATUS
24230
24231 # Break up conftest.undefs because some shells have a limit on the size
24232 # of here documents, and old seds have small limits too (100 cmds).
24233 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24234 rm -f conftest.tail
24235 while grep . conftest.undefs >/dev/null
24236 do
24237   # Write a limited-size here document to $tmp/undefs.sed.
24238   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24239   # Speed up: don't consider the non `#undef'
24240   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24241   # Work around the forget-to-reset-the-flag bug.
24242   echo 't clr' >>$CONFIG_STATUS
24243   echo ': clr' >>$CONFIG_STATUS
24244   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24245   echo 'CEOF
24246   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24247   rm -f $tmp/in
24248   mv $tmp/out $tmp/in
24249 ' >>$CONFIG_STATUS
24250   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24251   rm -f conftest.undefs
24252   mv conftest.tail conftest.undefs
24253 done
24254 rm -f conftest.undefs
24255
24256 cat >>$CONFIG_STATUS <<\_ACEOF
24257   # Let's still pretend it is `configure' which instantiates (i.e., don't
24258   # use $as_me), people would be surprised to read:
24259   #    /* config.h.  Generated by config.status.  */
24260   if test x"$ac_file" = x-; then
24261     echo "/* Generated by configure.  */" >$tmp/config.h
24262   else
24263     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24264   fi
24265   cat $tmp/in >>$tmp/config.h
24266   rm -f $tmp/in
24267   if test x"$ac_file" != x-; then
24268     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24269       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24270 echo "$as_me: $ac_file is unchanged" >&6;}
24271     else
24272       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24273 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24274          X"$ac_file" : 'X\(//\)[^/]' \| \
24275          X"$ac_file" : 'X\(//\)$' \| \
24276          X"$ac_file" : 'X\(/\)' \| \
24277          .     : '\(.\)' 2>/dev/null ||
24278 echo X"$ac_file" |
24279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24280           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24281           /^X\(\/\/\)$/{ s//\1/; q; }
24282           /^X\(\/\).*/{ s//\1/; q; }
24283           s/.*/./; q'`
24284       { if $as_mkdir_p; then
24285     mkdir -p "$ac_dir"
24286   else
24287     as_dir="$ac_dir"
24288     as_dirs=
24289     while test ! -d "$as_dir"; do
24290       as_dirs="$as_dir $as_dirs"
24291       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24293          X"$as_dir" : 'X\(//\)[^/]' \| \
24294          X"$as_dir" : 'X\(//\)$' \| \
24295          X"$as_dir" : 'X\(/\)' \| \
24296          .     : '\(.\)' 2>/dev/null ||
24297 echo X"$as_dir" |
24298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24299           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24300           /^X\(\/\/\)$/{ s//\1/; q; }
24301           /^X\(\/\).*/{ s//\1/; q; }
24302           s/.*/./; q'`
24303     done
24304     test ! -n "$as_dirs" || mkdir $as_dirs
24305   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24306 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24307    { (exit 1); exit 1; }; }; }
24308
24309       rm -f $ac_file
24310       mv $tmp/config.h $ac_file
24311     fi
24312   else
24313     cat $tmp/config.h
24314     rm -f $tmp/config.h
24315   fi
24316 done
24317 _ACEOF
24318 cat >>$CONFIG_STATUS <<\_ACEOF
24319
24320 #
24321 # CONFIG_COMMANDS section.
24322 #
24323 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24324   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24325   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24326   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24327 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24328          X"$ac_dest" : 'X\(//\)[^/]' \| \
24329          X"$ac_dest" : 'X\(//\)$' \| \
24330          X"$ac_dest" : 'X\(/\)' \| \
24331          .     : '\(.\)' 2>/dev/null ||
24332 echo X"$ac_dest" |
24333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24334           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24335           /^X\(\/\/\)$/{ s//\1/; q; }
24336           /^X\(\/\).*/{ s//\1/; q; }
24337           s/.*/./; q'`
24338   ac_builddir=.
24339
24340 if test "$ac_dir" != .; then
24341   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24342   # A "../" for each directory in $ac_dir_suffix.
24343   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24344 else
24345   ac_dir_suffix= ac_top_builddir=
24346 fi
24347
24348 case $srcdir in
24349   .)  # No --srcdir option.  We are building in place.
24350     ac_srcdir=.
24351     if test -z "$ac_top_builddir"; then
24352        ac_top_srcdir=.
24353     else
24354        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24355     fi ;;
24356   [\\/]* | ?:[\\/]* )  # Absolute path.
24357     ac_srcdir=$srcdir$ac_dir_suffix;
24358     ac_top_srcdir=$srcdir ;;
24359   *) # Relative path.
24360     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24361     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24362 esac
24363 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24364 # absolute.
24365 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24366 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24367 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24368 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24369
24370
24371   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24372 echo "$as_me: executing $ac_dest commands" >&6;}
24373   case $ac_dest in
24374     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24375     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24376     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24377     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24378     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24379     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24380     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24381     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24382     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24383     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24384     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24385     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24386     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24387     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24388     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24389     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24390     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24391     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24392     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24393     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24394     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24395     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24396     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24397     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24398     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24399     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24400     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24401     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24402     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24403     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24404     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24405     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24406     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24407     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24408     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24409     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24410     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24411     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24412     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24413     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24414     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24415     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24416     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24417     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24418     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24419     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24420     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24421     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24422     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24423     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24424     test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
24425     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24426     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24427     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24428     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24429     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24430     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24431     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24432     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24433     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24434     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24435     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24436     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24437     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24438     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24439     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24440     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24441     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24442     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24443     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 ;;
24444     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 ;;
24445     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 ;;
24446     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 ;;
24447     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 ;;
24448     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 ;;
24449     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 ;;
24450     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 ;;
24451     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 ;;
24452     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 ;;
24453     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 ;;
24454     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 ;;
24455     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 ;;
24456     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 ;;
24457     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 ;;
24458     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 ;;
24459     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24460     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24461     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24462     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24463     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 ;;
24464     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 ;;
24465     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 ;;
24466     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24467     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 ;;
24468     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 ;;
24469     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 ;;
24470     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 ;;
24471     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 ;;
24472     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 ;;
24473     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 ;;
24474     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 ;;
24475     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 ;;
24476     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 ;;
24477     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 ;;
24478     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 ;;
24479     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 ;;
24480     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 ;;
24481     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 ;;
24482     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 ;;
24483     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 ;;
24484     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 ;;
24485     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 ;;
24486     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 ;;
24487     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 ;;
24488     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 ;;
24489     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 ;;
24490     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 ;;
24491     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 ;;
24492     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 ;;
24493     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 ;;
24494     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 ;;
24495     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 ;;
24496     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 ;;
24497     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 ;;
24498     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 ;;
24499     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24500     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24501     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24502     test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24503     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24504     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24505     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24506     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24507     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24508     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24509     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 ;;
24510     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 ;;
24511     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 ;;
24512     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 ;;
24513     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24514     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24515     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 ;;
24516     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24517     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 ;;
24518     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 ;;
24519     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 ;;
24520     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24521     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24522     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24523     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24524     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24525     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24526     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24527     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24528     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24529     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24530     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24531     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24532     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24533     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24534     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24535     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24536     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24537     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24538     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24539     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24540     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24541     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24542     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24543     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24544     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24545     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24546     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24547     support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/Makefile support/Makefile ;;
24548     support/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Makefile support/lib/Makefile ;;
24549     support/lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Support/Makefile support/lib/Support/Makefile ;;
24550     support/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Makefile support/tools/Makefile ;;
24551     support/tools/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Makefile support/tools/Burg/Makefile ;;
24552     support/tools/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Doc/Makefile support/tools/Burg/Doc/Makefile ;;
24553     support/tools/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/TableGen/Makefile support/tools/TableGen/Makefile ;;
24554   esac
24555 done
24556 _ACEOF
24557
24558 cat >>$CONFIG_STATUS <<\_ACEOF
24559
24560 { (exit 0); exit 0; }
24561 _ACEOF
24562 chmod +x $CONFIG_STATUS
24563 ac_clean_files=$ac_clean_files_save
24564
24565
24566 # configure is writing to config.log, and then calls config.status.
24567 # config.status does its own redirection, appending to config.log.
24568 # Unfortunately, on DOS this fails, as config.log is still kept open
24569 # by configure, so config.status won't be able to write to it; its
24570 # output is simply discarded.  So we exec the FD to /dev/null,
24571 # effectively closing config.log, so it can be properly (re)opened and
24572 # appended to by config.status.  When coming back to configure, we
24573 # need to make the FD available again.
24574 if test "$no_create" != yes; then
24575   ac_cs_success=:
24576   ac_config_status_args=
24577   test "$silent" = yes &&
24578     ac_config_status_args="$ac_config_status_args --quiet"
24579   exec 5>/dev/null
24580   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24581   exec 5>>config.log
24582   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24583   # would make configure fail if this is the last instruction.
24584   $ac_cs_success || { (exit 1); exit 1; }
24585 fi
24586
24587 #
24588 # CONFIG_SUBDIRS section.
24589 #
24590 if test "$no_recursion" != yes; then
24591
24592   # Remove --cache-file and --srcdir arguments so they do not pile up.
24593   ac_sub_configure_args=
24594   ac_prev=
24595   for ac_arg in $ac_configure_args; do
24596     if test -n "$ac_prev"; then
24597       ac_prev=
24598       continue
24599     fi
24600     case $ac_arg in
24601     -cache-file | --cache-file | --cache-fil | --cache-fi \
24602     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24603       ac_prev=cache_file ;;
24604     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24605     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24606     | --c=*)
24607       ;;
24608     --config-cache | -C)
24609       ;;
24610     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24611       ac_prev=srcdir ;;
24612     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24613       ;;
24614     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24615       ac_prev=prefix ;;
24616     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24617       ;;
24618     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24619     esac
24620   done
24621
24622   # Always prepend --prefix to ensure using the same prefix
24623   # in subdir configurations.
24624   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24625
24626   ac_popdir=`pwd`
24627   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24628
24629     # Do not complain, so a configure script can configure whichever
24630     # parts of a large source tree are present.
24631     test -d $srcdir/$ac_dir || continue
24632
24633     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24634 echo "$as_me: configuring in $ac_dir" >&6;}
24635     { if $as_mkdir_p; then
24636     mkdir -p "$ac_dir"
24637   else
24638     as_dir="$ac_dir"
24639     as_dirs=
24640     while test ! -d "$as_dir"; do
24641       as_dirs="$as_dir $as_dirs"
24642       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24644          X"$as_dir" : 'X\(//\)[^/]' \| \
24645          X"$as_dir" : 'X\(//\)$' \| \
24646          X"$as_dir" : 'X\(/\)' \| \
24647          .     : '\(.\)' 2>/dev/null ||
24648 echo X"$as_dir" |
24649     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24650           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24651           /^X\(\/\/\)$/{ s//\1/; q; }
24652           /^X\(\/\).*/{ s//\1/; q; }
24653           s/.*/./; q'`
24654     done
24655     test ! -n "$as_dirs" || mkdir $as_dirs
24656   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24657 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24658    { (exit 1); exit 1; }; }; }
24659
24660     ac_builddir=.
24661
24662 if test "$ac_dir" != .; then
24663   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24664   # A "../" for each directory in $ac_dir_suffix.
24665   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24666 else
24667   ac_dir_suffix= ac_top_builddir=
24668 fi
24669
24670 case $srcdir in
24671   .)  # No --srcdir option.  We are building in place.
24672     ac_srcdir=.
24673     if test -z "$ac_top_builddir"; then
24674        ac_top_srcdir=.
24675     else
24676        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24677     fi ;;
24678   [\\/]* | ?:[\\/]* )  # Absolute path.
24679     ac_srcdir=$srcdir$ac_dir_suffix;
24680     ac_top_srcdir=$srcdir ;;
24681   *) # Relative path.
24682     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24683     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24684 esac
24685 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24686 # absolute.
24687 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24688 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24689 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24690 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24691
24692
24693     cd $ac_dir
24694
24695     # Check for guested configure; otherwise get Cygnus style configure.
24696     if test -f $ac_srcdir/configure.gnu; then
24697       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24698     elif test -f $ac_srcdir/configure; then
24699       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24700     elif test -f $ac_srcdir/configure.in; then
24701       ac_sub_configure=$ac_configure
24702     else
24703       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24704 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24705       ac_sub_configure=
24706     fi
24707
24708     # The recursion is here.
24709     if test -n "$ac_sub_configure"; then
24710       # Make the cache file name correct relative to the subdirectory.
24711       case $cache_file in
24712       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24713       *) # Relative path.
24714         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24715       esac
24716
24717       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24718 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24719       # The eval makes quoting arguments work.
24720       eval $ac_sub_configure $ac_sub_configure_args \
24721            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24722         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24723 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24724    { (exit 1); exit 1; }; }
24725     fi
24726
24727     cd $ac_popdir
24728   done
24729 fi
24730