Abstract interface for module providers, e.g. streaming bytecode reader.
[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 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_unique_file=""Makefile.config.in""
467 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 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 PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
925 ac_env_CC_value=$CC
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012   --target=TARGET   configure for building compilers for TARGET [HOST]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017   case $ac_init_help in
1018      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019    esac
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032   --enable-purify         Compile with purify (default is NO)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec           Compile SPEC benchmarks (default is NO)
1035   --enable-precompiled_bytecode
1036                           Use pre-compiled bytecode (default is NO)
1037   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044   --with-pic              try to use only PIC/non-PIC objects [default=use
1045                           both]
1046   --with-tags[=TAGS]
1047                           include additional configurations [automatic]
1048   --with-spec             Location of SPEC benchmarks
1049   --with-llvmgccdir       Location of LLVM GCC front-end
1050   --with-bcrepos          Location of Bytecode Repository
1051   --with-papi             Location of PAPI
1052   --with-purify           Location of purify program
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 [LLVM] configure [1.0]
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by [LLVM] $as_me [1.0], which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512 if test ${srcdir} != "."
1513 then
1514         if test -f ${srcdir}/include/Config/config.h
1515         then
1516                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518    { (exit 1); exit 1; }; }
1519         fi
1520 fi
1521
1522           ac_config_headers="$ac_config_headers include/Config/config.h"
1523
1524           ac_config_commands="$ac_config_commands Makefile"
1525
1526
1527           ac_config_commands="$ac_config_commands Makefile.common"
1528
1529
1530           ac_config_commands="$ac_config_commands Makefile.rules"
1531
1532
1533           ac_config_commands="$ac_config_commands lib/Makefile"
1534
1535
1536           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1537
1538
1539           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1540
1541
1542           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1546
1547
1548           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1549
1550
1551           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1552
1553
1554           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1555
1556
1557           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1558
1559
1560           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1561
1562
1563           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1564
1565
1566           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1567
1568
1569           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1570
1571
1572           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1573
1574
1575           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1579
1580
1581           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1597
1598
1599           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands runtime/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1660
1661
1662           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Makefile"
1672
1673
1674           ac_config_commands="$ac_config_commands test/Makefile.tests"
1675
1676
1677           ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1681
1682
1683           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1690
1691
1692           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1717
1718
1719           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1720
1721
1722           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1723
1724
1725           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1726
1727
1728           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1729
1730
1731           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1732
1733
1734           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1735
1736
1737           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1738
1739
1740           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1741
1742
1743           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1744
1745
1746           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1747
1748
1749           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1750
1751
1752           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1753
1754
1755           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1756
1757
1758           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1759
1760
1761           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1762
1763
1764           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1765
1766
1767           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1768
1769
1770           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1771
1772
1773           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1774
1775
1776           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1777
1778
1779           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1780
1781
1782           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1783
1784
1785           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1786
1787
1788           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1789
1790
1791           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1792
1793
1794           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1795
1796
1797           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1798
1799
1800           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1801
1802
1803           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1804
1805
1806           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1807
1808
1809           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1810
1811
1812           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1813
1814
1815           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1816
1817
1818           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1819
1820
1821           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1822
1823
1824           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1825
1826
1827           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1828
1829
1830           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1831
1832
1833           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1834
1835
1836           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1837
1838
1839           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1840
1841
1842           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1843
1844
1845           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1846
1847
1848           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1849
1850
1851           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1852
1853
1854           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1855
1856
1857           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1858
1859
1860           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1861
1862
1863           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1864
1865
1866           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1867
1868
1869           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1870
1871
1872           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1873
1874
1875           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1876
1877
1878           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1879
1880
1881           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1882
1883
1884           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1885
1886
1887           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1888
1889
1890           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1891
1892
1893           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1894
1895
1896           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1897
1898
1899           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1900
1901
1902           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1903
1904
1905           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1906
1907
1908           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1909
1910
1911           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1912
1913
1914           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1915
1916
1917           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1918
1919
1920           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1921
1922
1923           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1924
1925
1926           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1927
1928
1929           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1930
1931
1932           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1933
1934
1935           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1936
1937
1938           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1939
1940
1941           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1942
1943
1944           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1945
1946
1947           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1948
1949
1950           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1951
1952
1953           ac_config_commands="$ac_config_commands tools/Makefile"
1954
1955
1956           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1957
1958
1959           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1960
1961
1962           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1963
1964
1965           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1966
1967
1968           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1969
1970
1971           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1972
1973
1974           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1975
1976
1977           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1978
1979
1980           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1981
1982
1983           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1984
1985
1986           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1987
1988
1989           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
1990
1991
1992           ac_config_commands="$ac_config_commands tools/opt/Makefile"
1993
1994
1995           ac_config_commands="$ac_config_commands utils/Makefile"
1996
1997
1998           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
1999
2000
2001           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2002
2003
2004           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2005
2006
2007           ac_config_commands="$ac_config_commands www/docs/Makefile"
2008
2009
2010           ac_config_commands="$ac_config_commands projects/Makefile"
2011
2012
2013           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2014
2015
2016           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2017
2018
2019           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2020
2021
2022           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2023
2024
2025           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2026
2027
2028           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2029
2030
2031           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2032
2033
2034           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2035
2036
2037           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2038
2039
2040           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2041
2042
2043           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2044
2045
2046
2047
2048 # Find a good install program.  We prefer a C program (faster),
2049 # so one script is as good as another.  But avoid the broken or
2050 # incompatible versions:
2051 # SysV /etc/install, /usr/sbin/install
2052 # SunOS /usr/etc/install
2053 # IRIX /sbin/install
2054 # AIX /bin/install
2055 # AmigaOS /C/install, which installs bootblocks on floppy discs
2056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2059 # ./install, which can be erroneously created by make from ./install.sh.
2060 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2061 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2062 if test -z "$INSTALL"; then
2063 if test "${ac_cv_path_install+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2068 do
2069   IFS=$as_save_IFS
2070   test -z "$as_dir" && as_dir=.
2071   # Account for people who put trailing slashes in PATH elements.
2072 case $as_dir/ in
2073   ./ | .// | /cC/* | \
2074   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2075   /usr/ucb/* ) ;;
2076   *)
2077     # OSF1 and SCO ODT 3.0 have their own names for install.
2078     # Don't use installbsd from OSF since it installs stuff as root
2079     # by default.
2080     for ac_prog in ginstall scoinst install; do
2081       for ac_exec_ext in '' $ac_executable_extensions; do
2082         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2083           if test $ac_prog = install &&
2084             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085             # AIX install.  It has an incompatible calling convention.
2086             :
2087           elif test $ac_prog = install &&
2088             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2089             # program-specific install script used by HP pwplus--don't use.
2090             :
2091           else
2092             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2093             break 3
2094           fi
2095         fi
2096       done
2097     done
2098     ;;
2099 esac
2100 done
2101
2102
2103 fi
2104   if test "${ac_cv_path_install+set}" = set; then
2105     INSTALL=$ac_cv_path_install
2106   else
2107     # As a last resort, use the slow shell script.  We don't cache a
2108     # path for INSTALL within a source directory, because that will
2109     # break other packages using the cache if that directory is
2110     # removed, or if the path is relative.
2111     INSTALL=$ac_install_sh
2112   fi
2113 fi
2114 echo "$as_me:$LINENO: result: $INSTALL" >&5
2115 echo "${ECHO_T}$INSTALL" >&6
2116
2117 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2118 # It thinks the first close brace ends the variable substitution.
2119 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2120
2121 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2122
2123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2124
2125
2126 # Make sure we can run config.sub.
2127 $ac_config_sub sun4 >/dev/null 2>&1 ||
2128   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2129 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2130    { (exit 1); exit 1; }; }
2131
2132 echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2134 if test "${ac_cv_build+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   ac_cv_build_alias=$build_alias
2138 test -z "$ac_cv_build_alias" &&
2139   ac_cv_build_alias=`$ac_config_guess`
2140 test -z "$ac_cv_build_alias" &&
2141   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143    { (exit 1); exit 1; }; }
2144 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2145   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2146 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 fi
2150 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6
2152 build=$ac_cv_build
2153 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2154 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2155 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2156
2157
2158 echo "$as_me:$LINENO: checking host system type" >&5
2159 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2160 if test "${ac_cv_host+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   ac_cv_host_alias=$host_alias
2164 test -z "$ac_cv_host_alias" &&
2165   ac_cv_host_alias=$ac_cv_build_alias
2166 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2167   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2168 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2169    { (exit 1); exit 1; }; }
2170
2171 fi
2172 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2173 echo "${ECHO_T}$ac_cv_host" >&6
2174 host=$ac_cv_host
2175 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2176 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2177 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2178
2179
2180 echo "$as_me:$LINENO: checking target system type" >&5
2181 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2182 if test "${ac_cv_target+set}" = set; then
2183   echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185   ac_cv_target_alias=$target_alias
2186 test "x$ac_cv_target_alias" = "x" &&
2187   ac_cv_target_alias=$ac_cv_host_alias
2188 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2189   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2190 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2191    { (exit 1); exit 1; }; }
2192
2193 fi
2194 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2195 echo "${ECHO_T}$ac_cv_target" >&6
2196 target=$ac_cv_target
2197 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2198 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2199 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2200
2201
2202 # The aliases save the names the user supplied, while $host etc.
2203 # will get canonicalized.
2204 test -n "$target_alias" &&
2205   test "$program_prefix$program_suffix$program_transform_name" = \
2206     NONENONEs,x,x, &&
2207   program_prefix=${target_alias}-
2208
2209 case $build in
2210         *i*86*)  OS=Linux
2211
2212                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2213
2214                  ;;
2215
2216         *sparc*) OS=SunOS
2217
2218                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2219
2220                  ;;
2221
2222         *)       OS=Unknown
2223
2224                  ;;
2225 esac
2226
2227 case $target in
2228         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2229
2230                           ;;
2231 esac
2232
2233 case $target in
2234         *i*86*)           ARCH=x86
2235
2236                           ;;
2237         *sparc*solaris*)  ARCH=Sparc
2238
2239                           ;;
2240 esac
2241
2242
2243 ac_ext=cc
2244 ac_cpp='$CXXCPP $CPPFLAGS'
2245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2248 if test -n "$ac_tool_prefix"; then
2249   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2250   do
2251     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2253 echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255 if test "${ac_cv_prog_CXX+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   if test -n "$CXX"; then
2259   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2260 else
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264   IFS=$as_save_IFS
2265   test -z "$as_dir" && as_dir=.
2266   for ac_exec_ext in '' $ac_executable_extensions; do
2267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270     break 2
2271   fi
2272 done
2273 done
2274
2275 fi
2276 fi
2277 CXX=$ac_cv_prog_CXX
2278 if test -n "$CXX"; then
2279   echo "$as_me:$LINENO: result: $CXX" >&5
2280 echo "${ECHO_T}$CXX" >&6
2281 else
2282   echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2284 fi
2285
2286     test -n "$CXX" && break
2287   done
2288 fi
2289 if test -z "$CXX"; then
2290   ac_ct_CXX=$CXX
2291   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2292 do
2293   # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   if test -n "$ac_ct_CXX"; then
2301   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310     ac_cv_prog_ac_ct_CXX="$ac_prog"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316
2317 fi
2318 fi
2319 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2320 if test -n "$ac_ct_CXX"; then
2321   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2322 echo "${ECHO_T}$ac_ct_CXX" >&6
2323 else
2324   echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2326 fi
2327
2328   test -n "$ac_ct_CXX" && break
2329 done
2330 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2331
2332   CXX=$ac_ct_CXX
2333 fi
2334
2335
2336 # Provide some information about the compiler.
2337 echo "$as_me:$LINENO:" \
2338      "checking for C++ compiler version" >&5
2339 ac_compiler=`set X $ac_compile; echo $2`
2340 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2341   (eval $ac_compiler --version </dev/null >&5) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }
2345 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2346   (eval $ac_compiler -v </dev/null >&5) 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }
2350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2351   (eval $ac_compiler -V </dev/null >&5) 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); }
2355
2356 cat >conftest.$ac_ext <<_ACEOF
2357 #line $LINENO "configure"
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2363
2364 int
2365 main ()
2366 {
2367
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 ac_clean_files_save=$ac_clean_files
2373 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2374 # Try to create an executable without -o first, disregard a.out.
2375 # It will help us diagnose broken compilers, and finding out an intuition
2376 # of exeext.
2377 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2378 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2379 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2380 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2381   (eval $ac_link_default) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; then
2385   # Find the output, starting from the most likely.  This scheme is
2386 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2387 # resort.
2388
2389 # Be careful to initialize this variable, since it used to be cached.
2390 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2391 ac_cv_exeext=
2392 # b.out is created by i960 compilers.
2393 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2394 do
2395   test -f "$ac_file" || continue
2396   case $ac_file in
2397     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2398         ;;
2399     conftest.$ac_ext )
2400         # This is the source file.
2401         ;;
2402     [ab].out )
2403         # We found the default executable, but exeext='' is most
2404         # certainly right.
2405         break;;
2406     *.* )
2407         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2408         # FIXME: I believe we export ac_cv_exeext for Libtool,
2409         # but it would be cool to find out if it's true.  Does anybody
2410         # maintain Libtool? --akim.
2411         export ac_cv_exeext
2412         break;;
2413     * )
2414         break;;
2415   esac
2416 done
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: C++ compiler cannot create executables
2424 See \`config.log' for more details." >&2;}
2425    { (exit 77); exit 77; }; }
2426 fi
2427
2428 ac_exeext=$ac_cv_exeext
2429 echo "$as_me:$LINENO: result: $ac_file" >&5
2430 echo "${ECHO_T}$ac_file" >&6
2431
2432 # Check the compiler produces executables we can run.  If not, either
2433 # the compiler is broken, or we cross compile.
2434 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2435 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2436 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2437 # If not cross compiling, check that we can run a simple program.
2438 if test "$cross_compiling" != yes; then
2439   if { ac_try='./$ac_file'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; }; then
2445     cross_compiling=no
2446   else
2447     if test "$cross_compiling" = maybe; then
2448         cross_compiling=yes
2449     else
2450         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2451 If you meant to cross compile, use \`--host'.
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: cannot run C++ compiled programs.
2454 If you meant to cross compile, use \`--host'.
2455 See \`config.log' for more details." >&2;}
2456    { (exit 1); exit 1; }; }
2457     fi
2458   fi
2459 fi
2460 echo "$as_me:$LINENO: result: yes" >&5
2461 echo "${ECHO_T}yes" >&6
2462
2463 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2464 ac_clean_files=$ac_clean_files_save
2465 # Check the compiler produces executables we can run.  If not, either
2466 # the compiler is broken, or we cross compile.
2467 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2468 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2469 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2470 echo "${ECHO_T}$cross_compiling" >&6
2471
2472 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2473 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2475   (eval $ac_link) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }; then
2479   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2480 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2481 # work properly (i.e., refer to `conftest.exe'), while it won't with
2482 # `rm'.
2483 for ac_file in conftest.exe conftest conftest.*; do
2484   test -f "$ac_file" || continue
2485   case $ac_file in
2486     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2487     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2488           export ac_cv_exeext
2489           break;;
2490     * ) break;;
2491   esac
2492 done
2493 else
2494   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2497 See \`config.log' for more details." >&2;}
2498    { (exit 1); exit 1; }; }
2499 fi
2500
2501 rm -f conftest$ac_cv_exeext
2502 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2503 echo "${ECHO_T}$ac_cv_exeext" >&6
2504
2505 rm -f conftest.$ac_ext
2506 EXEEXT=$ac_cv_exeext
2507 ac_exeext=$EXEEXT
2508 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2509 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2510 if test "${ac_cv_objext+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   cat >conftest.$ac_ext <<_ACEOF
2514 #line $LINENO "configure"
2515 /* confdefs.h.  */
2516 _ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h.  */
2520
2521 int
2522 main ()
2523 {
2524
2525   ;
2526   return 0;
2527 }
2528 _ACEOF
2529 rm -f conftest.o conftest.obj
2530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531   (eval $ac_compile) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; then
2535   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2536   case $ac_file in
2537     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2538     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2539        break;;
2540   esac
2541 done
2542 else
2543   echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2547 See \`config.log' for more details." >&5
2548 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2549 See \`config.log' for more details." >&2;}
2550    { (exit 1); exit 1; }; }
2551 fi
2552
2553 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2554 fi
2555 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2556 echo "${ECHO_T}$ac_cv_objext" >&6
2557 OBJEXT=$ac_cv_objext
2558 ac_objext=$OBJEXT
2559 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2560 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2561 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   cat >conftest.$ac_ext <<_ACEOF
2565 #line $LINENO "configure"
2566 /* confdefs.h.  */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h.  */
2571
2572 int
2573 main ()
2574 {
2575 #ifndef __GNUC__
2576        choke me
2577 #endif
2578
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585   (eval $ac_compile) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); } &&
2589          { ac_try='test -s conftest.$ac_objext'
2590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591   (eval $ac_try) 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; }; then
2595   ac_compiler_gnu=yes
2596 else
2597   echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 ac_compiler_gnu=no
2601 fi
2602 rm -f conftest.$ac_objext conftest.$ac_ext
2603 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2604
2605 fi
2606 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2607 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2608 GXX=`test $ac_compiler_gnu = yes && echo yes`
2609 ac_test_CXXFLAGS=${CXXFLAGS+set}
2610 ac_save_CXXFLAGS=$CXXFLAGS
2611 CXXFLAGS="-g"
2612 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2613 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2614 if test "${ac_cv_prog_cxx_g+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   cat >conftest.$ac_ext <<_ACEOF
2618 #line $LINENO "configure"
2619 /* confdefs.h.  */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h.  */
2624
2625 int
2626 main ()
2627 {
2628
2629   ;
2630   return 0;
2631 }
2632 _ACEOF
2633 rm -f conftest.$ac_objext
2634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635   (eval $ac_compile) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); } &&
2639          { ac_try='test -s conftest.$ac_objext'
2640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641   (eval $ac_try) 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; }; then
2645   ac_cv_prog_cxx_g=yes
2646 else
2647   echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650 ac_cv_prog_cxx_g=no
2651 fi
2652 rm -f conftest.$ac_objext conftest.$ac_ext
2653 fi
2654 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2656 if test "$ac_test_CXXFLAGS" = set; then
2657   CXXFLAGS=$ac_save_CXXFLAGS
2658 elif test $ac_cv_prog_cxx_g = yes; then
2659   if test "$GXX" = yes; then
2660     CXXFLAGS="-g -O2"
2661   else
2662     CXXFLAGS="-g"
2663   fi
2664 else
2665   if test "$GXX" = yes; then
2666     CXXFLAGS="-O2"
2667   else
2668     CXXFLAGS=
2669   fi
2670 fi
2671 for ac_declaration in \
2672    ''\
2673    '#include <stdlib.h>' \
2674    'extern "C" void std::exit (int) throw (); using std::exit;' \
2675    'extern "C" void std::exit (int); using std::exit;' \
2676    'extern "C" void exit (int) throw ();' \
2677    'extern "C" void exit (int);' \
2678    'void exit (int);'
2679 do
2680   cat >conftest.$ac_ext <<_ACEOF
2681 #line $LINENO "configure"
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687 #include <stdlib.h>
2688 $ac_declaration
2689 int
2690 main ()
2691 {
2692 exit (42);
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699   (eval $ac_compile) 2>&5
2700   ac_status=$?
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); } &&
2703          { ac_try='test -s conftest.$ac_objext'
2704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705   (eval $ac_try) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; }; then
2709   :
2710 else
2711   echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 continue
2715 fi
2716 rm -f conftest.$ac_objext conftest.$ac_ext
2717   cat >conftest.$ac_ext <<_ACEOF
2718 #line $LINENO "configure"
2719 /* confdefs.h.  */
2720 _ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.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   break
2746 else
2747   echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 fi
2751 rm -f conftest.$ac_objext conftest.$ac_ext
2752 done
2753 rm -f conftest*
2754 if test -n "$ac_declaration"; then
2755   echo '#ifdef __cplusplus' >>confdefs.h
2756   echo $ac_declaration      >>confdefs.h
2757   echo '#endif'             >>confdefs.h
2758 fi
2759
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766 ac_ext=c
2767 ac_cpp='$CPP $CPPFLAGS'
2768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771 if test -n "$ac_tool_prefix"; then
2772   for ac_prog in gcc
2773   do
2774     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2776 echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_CC+set}" = set; then
2779   echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781   if test -n "$CC"; then
2782   ac_cv_prog_CC="$CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787   IFS=$as_save_IFS
2788   test -z "$as_dir" && as_dir=.
2789   for ac_exec_ext in '' $ac_executable_extensions; do
2790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793     break 2
2794   fi
2795 done
2796 done
2797
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802   echo "$as_me:$LINENO: result: $CC" >&5
2803 echo "${ECHO_T}$CC" >&6
2804 else
2805   echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2807 fi
2808
2809     test -n "$CC" && break
2810   done
2811 fi
2812 if test -z "$CC"; then
2813   ac_ct_CC=$CC
2814   for ac_prog in gcc
2815 do
2816   # Extract the first word of "$ac_prog", so it can be a program name with args.
2817 set dummy $ac_prog; ac_word=$2
2818 echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2821   echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823   if test -n "$ac_ct_CC"; then
2824   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831   for ac_exec_ext in '' $ac_executable_extensions; do
2832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833     ac_cv_prog_ac_ct_CC="$ac_prog"
2834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835     break 2
2836   fi
2837 done
2838 done
2839
2840 fi
2841 fi
2842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843 if test -n "$ac_ct_CC"; then
2844   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2845 echo "${ECHO_T}$ac_ct_CC" >&6
2846 else
2847   echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2849 fi
2850
2851   test -n "$ac_ct_CC" && break
2852 done
2853
2854   CC=$ac_ct_CC
2855 fi
2856
2857
2858 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2859 See \`config.log' for more details." >&5
2860 echo "$as_me: error: no acceptable C compiler found in \$PATH
2861 See \`config.log' for more details." >&2;}
2862    { (exit 1); exit 1; }; }
2863
2864 # Provide some information about the compiler.
2865 echo "$as_me:$LINENO:" \
2866      "checking for C compiler version" >&5
2867 ac_compiler=`set X $ac_compile; echo $2`
2868 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2869   (eval $ac_compiler --version </dev/null >&5) 2>&5
2870   ac_status=$?
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); }
2873 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2874   (eval $ac_compiler -v </dev/null >&5) 2>&5
2875   ac_status=$?
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); }
2878 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2879   (eval $ac_compiler -V </dev/null >&5) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }
2883
2884 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2885 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2886 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   cat >conftest.$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896
2897 int
2898 main ()
2899 {
2900 #ifndef __GNUC__
2901        choke me
2902 #endif
2903
2904   ;
2905   return 0;
2906 }
2907 _ACEOF
2908 rm -f conftest.$ac_objext
2909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2910   (eval $ac_compile) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); } &&
2914          { ac_try='test -s conftest.$ac_objext'
2915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916   (eval $ac_try) 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; }; then
2920   ac_compiler_gnu=yes
2921 else
2922   echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2924
2925 ac_compiler_gnu=no
2926 fi
2927 rm -f conftest.$ac_objext conftest.$ac_ext
2928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2929
2930 fi
2931 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2932 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2933 GCC=`test $ac_compiler_gnu = yes && echo yes`
2934 ac_test_CFLAGS=${CFLAGS+set}
2935 ac_save_CFLAGS=$CFLAGS
2936 CFLAGS="-g"
2937 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2939 if test "${ac_cv_prog_cc_g+set}" = set; then
2940   echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942   cat >conftest.$ac_ext <<_ACEOF
2943 #line $LINENO "configure"
2944 /* confdefs.h.  */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h.  */
2949
2950 int
2951 main ()
2952 {
2953
2954   ;
2955   return 0;
2956 }
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960   (eval $ac_compile) 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } &&
2964          { ac_try='test -s conftest.$ac_objext'
2965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966   (eval $ac_try) 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; }; then
2970   ac_cv_prog_cc_g=yes
2971 else
2972   echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 ac_cv_prog_cc_g=no
2976 fi
2977 rm -f conftest.$ac_objext conftest.$ac_ext
2978 fi
2979 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2980 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2981 if test "$ac_test_CFLAGS" = set; then
2982   CFLAGS=$ac_save_CFLAGS
2983 elif test $ac_cv_prog_cc_g = yes; then
2984   if test "$GCC" = yes; then
2985     CFLAGS="-g -O2"
2986   else
2987     CFLAGS="-g"
2988   fi
2989 else
2990   if test "$GCC" = yes; then
2991     CFLAGS="-O2"
2992   else
2993     CFLAGS=
2994   fi
2995 fi
2996 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2997 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2998 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   ac_cv_prog_cc_stdc=no
3002 ac_save_CC=$CC
3003 cat >conftest.$ac_ext <<_ACEOF
3004 #line $LINENO "configure"
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #include <stdarg.h>
3011 #include <stdio.h>
3012 #include <sys/types.h>
3013 #include <sys/stat.h>
3014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3015 struct buf { int x; };
3016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3017 static char *e (p, i)
3018      char **p;
3019      int i;
3020 {
3021   return p[i];
3022 }
3023 static char *f (char * (*g) (char **, int), char **p, ...)
3024 {
3025   char *s;
3026   va_list v;
3027   va_start (v,p);
3028   s = g (p, va_arg (v,int));
3029   va_end (v);
3030   return s;
3031 }
3032 int test (int i, double x);
3033 struct s1 {int (*f) (int a);};
3034 struct s2 {int (*f) (double a);};
3035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3036 int argc;
3037 char **argv;
3038 int
3039 main ()
3040 {
3041 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3042   ;
3043   return 0;
3044 }
3045 _ACEOF
3046 # Don't try gcc -ansi; that turns off useful extensions and
3047 # breaks some systems' header files.
3048 # AIX                   -qlanglvl=ansi
3049 # Ultrix and OSF/1      -std1
3050 # HP-UX 10.20 and later -Ae
3051 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3052 # SVR4                  -Xc -D__EXTENSIONS__
3053 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3054 do
3055   CC="$ac_save_CC $ac_arg"
3056   rm -f conftest.$ac_objext
3057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058   (eval $ac_compile) 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); } &&
3062          { ac_try='test -s conftest.$ac_objext'
3063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064   (eval $ac_try) 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; }; then
3068   ac_cv_prog_cc_stdc=$ac_arg
3069 break
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074 fi
3075 rm -f conftest.$ac_objext
3076 done
3077 rm -f conftest.$ac_ext conftest.$ac_objext
3078 CC=$ac_save_CC
3079
3080 fi
3081
3082 case "x$ac_cv_prog_cc_stdc" in
3083   x|xno)
3084     echo "$as_me:$LINENO: result: none needed" >&5
3085 echo "${ECHO_T}none needed" >&6 ;;
3086   *)
3087     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3088 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3089     CC="$CC $ac_cv_prog_cc_stdc" ;;
3090 esac
3091
3092 # Some people use a C++ compiler to compile C.  Since we use `exit',
3093 # in C++ we need to declare it.  In case someone uses the same compiler
3094 # for both compiling C and C++ we need to have the C++ compiler decide
3095 # the declaration of exit, since it's the most demanding environment.
3096 cat >conftest.$ac_ext <<_ACEOF
3097 #ifndef __cplusplus
3098   choke me
3099 #endif
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103   (eval $ac_compile) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } &&
3107          { ac_try='test -s conftest.$ac_objext'
3108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109   (eval $ac_try) 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113   for ac_declaration in \
3114    ''\
3115    '#include <stdlib.h>' \
3116    'extern "C" void std::exit (int) throw (); using std::exit;' \
3117    'extern "C" void std::exit (int); using std::exit;' \
3118    'extern "C" void exit (int) throw ();' \
3119    'extern "C" void exit (int);' \
3120    'void exit (int);'
3121 do
3122   cat >conftest.$ac_ext <<_ACEOF
3123 #line $LINENO "configure"
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129 #include <stdlib.h>
3130 $ac_declaration
3131 int
3132 main ()
3133 {
3134 exit (42);
3135   ;
3136   return 0;
3137 }
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141   (eval $ac_compile) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147   (eval $ac_try) 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; }; then
3151   :
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 continue
3157 fi
3158 rm -f conftest.$ac_objext conftest.$ac_ext
3159   cat >conftest.$ac_ext <<_ACEOF
3160 #line $LINENO "configure"
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.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   break
3188 else
3189   echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192 fi
3193 rm -f conftest.$ac_objext conftest.$ac_ext
3194 done
3195 rm -f conftest*
3196 if test -n "$ac_declaration"; then
3197   echo '#ifdef __cplusplus' >>confdefs.h
3198   echo $ac_declaration      >>confdefs.h
3199   echo '#endif'             >>confdefs.h
3200 fi
3201
3202 else
3203   echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 fi
3207 rm -f conftest.$ac_objext conftest.$ac_ext
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213
3214 ac_ext=c
3215 ac_cpp='$CPP $CPPFLAGS'
3216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3220 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3221 # On Suns, sometimes $CPP names a directory.
3222 if test -n "$CPP" && test -d "$CPP"; then
3223   CPP=
3224 fi
3225 if test -z "$CPP"; then
3226   if test "${ac_cv_prog_CPP+set}" = set; then
3227   echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229       # Double quotes because CPP needs to be expanded
3230     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3231     do
3232       ac_preproc_ok=false
3233 for ac_c_preproc_warn_flag in '' yes
3234 do
3235   # Use a header file that comes with gcc, so configuring glibc
3236   # with a fresh cross-compiler works.
3237   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238   # <limits.h> exists even on freestanding compilers.
3239   # On the NeXT, cc -E runs the code through the compiler's parser,
3240   # not just through cpp. "Syntax error" is here to catch this case.
3241   cat >conftest.$ac_ext <<_ACEOF
3242 #line $LINENO "configure"
3243 /* confdefs.h.  */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h.  */
3248 #ifdef __STDC__
3249 # include <limits.h>
3250 #else
3251 # include <assert.h>
3252 #endif
3253                      Syntax error
3254 _ACEOF
3255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3257   ac_status=$?
3258   grep -v '^ *+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } >/dev/null; then
3263   if test -s conftest.err; then
3264     ac_cpp_err=$ac_c_preproc_warn_flag
3265   else
3266     ac_cpp_err=
3267   fi
3268 else
3269   ac_cpp_err=yes
3270 fi
3271 if test -z "$ac_cpp_err"; then
3272   :
3273 else
3274   echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277   # Broken: fails on valid input.
3278 continue
3279 fi
3280 rm -f conftest.err conftest.$ac_ext
3281
3282   # OK, works on sane cases.  Now check whether non-existent headers
3283   # can be detected and how.
3284   cat >conftest.$ac_ext <<_ACEOF
3285 #line $LINENO "configure"
3286 /* confdefs.h.  */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h.  */
3291 #include <ac_nonexistent.h>
3292 _ACEOF
3293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3294   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3295   ac_status=$?
3296   grep -v '^ *+' conftest.er1 >conftest.err
3297   rm -f conftest.er1
3298   cat conftest.err >&5
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); } >/dev/null; then
3301   if test -s conftest.err; then
3302     ac_cpp_err=$ac_c_preproc_warn_flag
3303   else
3304     ac_cpp_err=
3305   fi
3306 else
3307   ac_cpp_err=yes
3308 fi
3309 if test -z "$ac_cpp_err"; then
3310   # Broken: success on invalid input.
3311 continue
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316   # Passes both tests.
3317 ac_preproc_ok=:
3318 break
3319 fi
3320 rm -f conftest.err conftest.$ac_ext
3321
3322 done
3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324 rm -f conftest.err conftest.$ac_ext
3325 if $ac_preproc_ok; then
3326   break
3327 fi
3328
3329     done
3330     ac_cv_prog_CPP=$CPP
3331
3332 fi
3333   CPP=$ac_cv_prog_CPP
3334 else
3335   ac_cv_prog_CPP=$CPP
3336 fi
3337 echo "$as_me:$LINENO: result: $CPP" >&5
3338 echo "${ECHO_T}$CPP" >&6
3339 ac_preproc_ok=false
3340 for ac_c_preproc_warn_flag in '' yes
3341 do
3342   # Use a header file that comes with gcc, so configuring glibc
3343   # with a fresh cross-compiler works.
3344   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345   # <limits.h> exists even on freestanding compilers.
3346   # On the NeXT, cc -E runs the code through the compiler's parser,
3347   # not just through cpp. "Syntax error" is here to catch this case.
3348   cat >conftest.$ac_ext <<_ACEOF
3349 #line $LINENO "configure"
3350 /* confdefs.h.  */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h.  */
3355 #ifdef __STDC__
3356 # include <limits.h>
3357 #else
3358 # include <assert.h>
3359 #endif
3360                      Syntax error
3361 _ACEOF
3362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3364   ac_status=$?
3365   grep -v '^ *+' conftest.er1 >conftest.err
3366   rm -f conftest.er1
3367   cat conftest.err >&5
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); } >/dev/null; then
3370   if test -s conftest.err; then
3371     ac_cpp_err=$ac_c_preproc_warn_flag
3372   else
3373     ac_cpp_err=
3374   fi
3375 else
3376   ac_cpp_err=yes
3377 fi
3378 if test -z "$ac_cpp_err"; then
3379   :
3380 else
3381   echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384   # Broken: fails on valid input.
3385 continue
3386 fi
3387 rm -f conftest.err conftest.$ac_ext
3388
3389   # OK, works on sane cases.  Now check whether non-existent headers
3390   # can be detected and how.
3391   cat >conftest.$ac_ext <<_ACEOF
3392 #line $LINENO "configure"
3393 /* confdefs.h.  */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h.  */
3398 #include <ac_nonexistent.h>
3399 _ACEOF
3400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3402   ac_status=$?
3403   grep -v '^ *+' conftest.er1 >conftest.err
3404   rm -f conftest.er1
3405   cat conftest.err >&5
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); } >/dev/null; then
3408   if test -s conftest.err; then
3409     ac_cpp_err=$ac_c_preproc_warn_flag
3410   else
3411     ac_cpp_err=
3412   fi
3413 else
3414   ac_cpp_err=yes
3415 fi
3416 if test -z "$ac_cpp_err"; then
3417   # Broken: success on invalid input.
3418 continue
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423   # Passes both tests.
3424 ac_preproc_ok=:
3425 break
3426 fi
3427 rm -f conftest.err conftest.$ac_ext
3428
3429 done
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3433   :
3434 else
3435   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439    { (exit 1); exit 1; }; }
3440 fi
3441
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448
3449 if test "$GCC" != "yes"
3450 then
3451         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3452 echo "$as_me: error: gcc required but not found" >&2;}
3453    { (exit 1); exit 1; }; }
3454 fi
3455
3456 if test "$GXX" != "yes"
3457 then
3458         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3459 echo "$as_me: error: g++ required but not found" >&2;}
3460    { (exit 1); exit 1; }; }
3461 fi
3462
3463 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3464 if test "$gccmajor" -lt "3"
3465 then
3466         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3467 echo "$as_me: error: gcc 3.x required" >&2;}
3468    { (exit 1); exit 1; }; }
3469 fi
3470
3471  echo "$as_me:$LINENO: checking for GNU make" >&5
3472 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3473 if test "${_cv_gnu_make_command+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   _cv_gnu_make_command='' ;
3477                 for a in "$MAKE" make gmake gnumake ; do
3478                         if test -z "$a" ; then continue ; fi ;
3479                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3480                                 _cv_gnu_make_command=$a ;
3481                                 break;
3482                         fi
3483                 done ;
3484
3485 fi
3486 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3487 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3488         if test  "x$_cv_gnu_make_command" != "x"  ; then
3489                 ifGNUmake='' ;
3490         else
3491                 ifGNUmake='#' ;
3492                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3493 echo "${ECHO_T}\"Not found\"" >&6;
3494         fi
3495
3496
3497 if test -z "$_cv_gnu_make_command"
3498 then
3499         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3500 echo "$as_me: error: GNU Make required but not found" >&2;}
3501    { (exit 1); exit 1; }; }
3502 fi
3503
3504
3505 echo "$as_me:$LINENO: checking " >&5
3506 echo $ECHO_N "checking ... $ECHO_C" >&6
3507 if test "${ac_cv_has_flex+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   for ac_prog in flex lex
3511 do
3512   # Extract the first word of "$ac_prog", so it can be a program name with args.
3513 set dummy $ac_prog; ac_word=$2
3514 echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_prog_LEX+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   if test -n "$LEX"; then
3520   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527   for ac_exec_ext in '' $ac_executable_extensions; do
3528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529     ac_cv_prog_LEX="$ac_prog"
3530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534 done
3535
3536 fi
3537 fi
3538 LEX=$ac_cv_prog_LEX
3539 if test -n "$LEX"; then
3540   echo "$as_me:$LINENO: result: $LEX" >&5
3541 echo "${ECHO_T}$LEX" >&6
3542 else
3543   echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3545 fi
3546
3547   test -n "$LEX" && break
3548 done
3549 test -n "$LEX" || LEX=":"
3550
3551 if test -z "$LEXLIB"
3552 then
3553   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3554 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3555 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   ac_check_lib_save_LIBS=$LIBS
3559 LIBS="-lfl  $LIBS"
3560 cat >conftest.$ac_ext <<_ACEOF
3561 #line $LINENO "configure"
3562 /* confdefs.h.  */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h.  */
3567
3568 /* Override any gcc2 internal prototype to avoid an error.  */
3569 #ifdef __cplusplus
3570 extern "C"
3571 #endif
3572 /* We use char because int might match the return type of a gcc2
3573    builtin and then its argument prototype would still apply.  */
3574 char yywrap ();
3575 int
3576 main ()
3577 {
3578 yywrap ();
3579   ;
3580   return 0;
3581 }
3582 _ACEOF
3583 rm -f conftest.$ac_objext conftest$ac_exeext
3584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3585   (eval $ac_link) 2>&5
3586   ac_status=$?
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); } &&
3589          { ac_try='test -s conftest$ac_exeext'
3590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591   (eval $ac_try) 2>&5
3592   ac_status=$?
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); }; }; then
3595   ac_cv_lib_fl_yywrap=yes
3596 else
3597   echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3599
3600 ac_cv_lib_fl_yywrap=no
3601 fi
3602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3603 LIBS=$ac_check_lib_save_LIBS
3604 fi
3605 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3606 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3607 if test $ac_cv_lib_fl_yywrap = yes; then
3608   LEXLIB="-lfl"
3609 else
3610   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3611 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3612 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3613   echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615   ac_check_lib_save_LIBS=$LIBS
3616 LIBS="-ll  $LIBS"
3617 cat >conftest.$ac_ext <<_ACEOF
3618 #line $LINENO "configure"
3619 /* confdefs.h.  */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h.  */
3624
3625 /* Override any gcc2 internal prototype to avoid an error.  */
3626 #ifdef __cplusplus
3627 extern "C"
3628 #endif
3629 /* We use char because int might match the return type of a gcc2
3630    builtin and then its argument prototype would still apply.  */
3631 char yywrap ();
3632 int
3633 main ()
3634 {
3635 yywrap ();
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 rm -f conftest.$ac_objext conftest$ac_exeext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642   (eval $ac_link) 2>&5
3643   ac_status=$?
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); } &&
3646          { ac_try='test -s conftest$ac_exeext'
3647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648   (eval $ac_try) 2>&5
3649   ac_status=$?
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); }; }; then
3652   ac_cv_lib_l_yywrap=yes
3653 else
3654   echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3656
3657 ac_cv_lib_l_yywrap=no
3658 fi
3659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3660 LIBS=$ac_check_lib_save_LIBS
3661 fi
3662 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3663 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3664 if test $ac_cv_lib_l_yywrap = yes; then
3665   LEXLIB="-ll"
3666 fi
3667
3668 fi
3669
3670 fi
3671
3672 if test "x$LEX" != "x:"; then
3673   echo "$as_me:$LINENO: checking lex output file root" >&5
3674 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3675 if test "${ac_cv_prog_lex_root+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   # The minimal lex program is just a single line: %%.  But some broken lexes
3679 # (Solaris, I think it was) want two %% lines, so accommodate them.
3680 cat >conftest.l <<_ACEOF
3681 %%
3682 %%
3683 _ACEOF
3684 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3685   (eval $LEX conftest.l) 2>&5
3686   ac_status=$?
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); }
3689 if test -f lex.yy.c; then
3690   ac_cv_prog_lex_root=lex.yy
3691 elif test -f lexyy.c; then
3692   ac_cv_prog_lex_root=lexyy
3693 else
3694   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3695 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3696    { (exit 1); exit 1; }; }
3697 fi
3698 fi
3699 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3700 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3701 rm -f conftest.l
3702 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3703
3704 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3705 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3706 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   # POSIX says lex can declare yytext either as a pointer or an array; the
3710 # default is implementation-dependent. Figure out which it is, since
3711 # not all implementations provide the %pointer and %array declarations.
3712 ac_cv_prog_lex_yytext_pointer=no
3713 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3714 ac_save_LIBS=$LIBS
3715 LIBS="$LIBS $LEXLIB"
3716 cat >conftest.$ac_ext <<_ACEOF
3717 `cat $LEX_OUTPUT_ROOT.c`
3718 _ACEOF
3719 rm -f conftest.$ac_objext conftest$ac_exeext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3721   (eval $ac_link) 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); } &&
3725          { ac_try='test -s conftest$ac_exeext'
3726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727   (eval $ac_try) 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); }; }; then
3731   ac_cv_prog_lex_yytext_pointer=yes
3732 else
3733   echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 fi
3737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3738 LIBS=$ac_save_LIBS
3739 rm -f "${LEX_OUTPUT_ROOT}.c"
3740
3741 fi
3742 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3743 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3744 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3745
3746 cat >>confdefs.h <<\_ACEOF
3747 #define YYTEXT_POINTER 1
3748 _ACEOF
3749
3750 fi
3751
3752 fi
3753
3754 fi
3755 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3756 echo "${ECHO_T}$ac_cv_has_flex" >&6
3757 if test "$LEX" != "flex"; then
3758   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3759 echo "$as_me: error: flex not found but required" >&2;}
3760    { (exit 1); exit 1; }; }
3761 fi
3762
3763 echo "$as_me:$LINENO: checking " >&5
3764 echo $ECHO_N "checking ... $ECHO_C" >&6
3765 if test "${ac_cv_has_bison+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   for ac_prog in 'bison -y' byacc
3769 do
3770   # Extract the first word of "$ac_prog", so it can be a program name with args.
3771 set dummy $ac_prog; ac_word=$2
3772 echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3774 if test "${ac_cv_prog_YACC+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   if test -n "$YACC"; then
3778   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783   IFS=$as_save_IFS
3784   test -z "$as_dir" && as_dir=.
3785   for ac_exec_ext in '' $ac_executable_extensions; do
3786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787     ac_cv_prog_YACC="$ac_prog"
3788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789     break 2
3790   fi
3791 done
3792 done
3793
3794 fi
3795 fi
3796 YACC=$ac_cv_prog_YACC
3797 if test -n "$YACC"; then
3798   echo "$as_me:$LINENO: result: $YACC" >&5
3799 echo "${ECHO_T}$YACC" >&6
3800 else
3801   echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6
3803 fi
3804
3805   test -n "$YACC" && break
3806 done
3807 test -n "$YACC" || YACC="yacc"
3808
3809
3810 fi
3811 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3812 echo "${ECHO_T}$ac_cv_has_bison" >&6
3813 if test "$YACC" != "bison -y"; then
3814   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3815 echo "$as_me: error: bison not found but required" >&2;}
3816    { (exit 1); exit 1; }; }
3817 else
3818   YACC=bison
3819
3820 fi
3821
3822
3823 # Check whether --enable-shared or --disable-shared was given.
3824 if test "${enable_shared+set}" = set; then
3825   enableval="$enable_shared"
3826   p=${PACKAGE-default}
3827     case $enableval in
3828     yes) enable_shared=yes ;;
3829     no) enable_shared=no ;;
3830     *)
3831       enable_shared=no
3832       # Look at the argument we got.  We use all the common list separators.
3833       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3834       for pkg in $enableval; do
3835         IFS="$lt_save_ifs"
3836         if test "X$pkg" = "X$p"; then
3837           enable_shared=yes
3838         fi
3839       done
3840       IFS="$lt_save_ifs"
3841       ;;
3842     esac
3843 else
3844   enable_shared=yes
3845 fi;
3846
3847 # Check whether --enable-static or --disable-static was given.
3848 if test "${enable_static+set}" = set; then
3849   enableval="$enable_static"
3850   p=${PACKAGE-default}
3851     case $enableval in
3852     yes) enable_static=yes ;;
3853     no) enable_static=no ;;
3854     *)
3855      enable_static=no
3856       # Look at the argument we got.  We use all the common list separators.
3857       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3858       for pkg in $enableval; do
3859         IFS="$lt_save_ifs"
3860         if test "X$pkg" = "X$p"; then
3861           enable_static=yes
3862         fi
3863       done
3864       IFS="$lt_save_ifs"
3865       ;;
3866     esac
3867 else
3868   enable_static=yes
3869 fi;
3870
3871 # Check whether --enable-fast-install or --disable-fast-install was given.
3872 if test "${enable_fast_install+set}" = set; then
3873   enableval="$enable_fast_install"
3874   p=${PACKAGE-default}
3875     case $enableval in
3876     yes) enable_fast_install=yes ;;
3877     no) enable_fast_install=no ;;
3878     *)
3879       enable_fast_install=no
3880       # Look at the argument we got.  We use all the common list separators.
3881       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3882       for pkg in $enableval; do
3883         IFS="$lt_save_ifs"
3884         if test "X$pkg" = "X$p"; then
3885           enable_fast_install=yes
3886         fi
3887       done
3888       IFS="$lt_save_ifs"
3889       ;;
3890     esac
3891 else
3892   enable_fast_install=yes
3893 fi;
3894
3895 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3896 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3897 if test "${lt_cv_path_SED+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   # Loop through the user's path and test for sed and gsed.
3901 # Then use that list of sed's as ones to test for truncation.
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907   for lt_ac_prog in sed gsed; do
3908     for ac_exec_ext in '' $ac_executable_extensions; do
3909       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3910         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3911       fi
3912     done
3913   done
3914 done
3915 lt_ac_max=0
3916 lt_ac_count=0
3917 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3918 # along with /bin/sed that truncates output.
3919 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3920   test ! -f $lt_ac_sed && break
3921   cat /dev/null > conftest.in
3922   lt_ac_count=0
3923   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3924   # Check for GNU sed and select it if it is found.
3925   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3926     lt_cv_path_SED=$lt_ac_sed
3927     break
3928   fi
3929   while true; do
3930     cat conftest.in conftest.in >conftest.tmp
3931     mv conftest.tmp conftest.in
3932     cp conftest.in conftest.nl
3933     echo >>conftest.nl
3934     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3935     cmp -s conftest.out conftest.nl || break
3936     # 10000 chars as input seems more than enough
3937     test $lt_ac_count -gt 10 && break
3938     lt_ac_count=`expr $lt_ac_count + 1`
3939     if test $lt_ac_count -gt $lt_ac_max; then
3940       lt_ac_max=$lt_ac_count
3941       lt_cv_path_SED=$lt_ac_sed
3942     fi
3943   done
3944 done
3945 SED=$lt_cv_path_SED
3946
3947 fi
3948
3949 echo "$as_me:$LINENO: result: $SED" >&5
3950 echo "${ECHO_T}$SED" >&6
3951
3952 echo "$as_me:$LINENO: checking for egrep" >&5
3953 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3954 if test "${ac_cv_prog_egrep+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3958     then ac_cv_prog_egrep='grep -E'
3959     else ac_cv_prog_egrep='egrep'
3960     fi
3961 fi
3962 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3963 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3964  EGREP=$ac_cv_prog_egrep
3965
3966
3967
3968 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3969 if test "${with_gnu_ld+set}" = set; then
3970   withval="$with_gnu_ld"
3971   test "$withval" = no || with_gnu_ld=yes
3972 else
3973   with_gnu_ld=no
3974 fi;
3975 ac_prog=ld
3976 if test "$GCC" = yes; then
3977   # Check if gcc -print-prog-name=ld gives a path.
3978   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3979 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3980   case $host in
3981   *-*-mingw*)
3982     # gcc leaves a trailing carriage return which upsets mingw
3983     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3984   *)
3985     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3986   esac
3987   case $ac_prog in
3988     # Accept absolute paths.
3989     [\\/]* | ?:[\\/]*)
3990       re_direlt='/[^/][^/]*/\.\./'
3991       # Canonicalize the path of ld
3992       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3993       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3994         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3995       done
3996       test -z "$LD" && LD="$ac_prog"
3997       ;;
3998   "")
3999     # If it fails, then pretend we aren't using GCC.
4000     ac_prog=ld
4001     ;;
4002   *)
4003     # If it is relative, then search for the first ld in PATH.
4004     with_gnu_ld=unknown
4005     ;;
4006   esac
4007 elif test "$with_gnu_ld" = yes; then
4008   echo "$as_me:$LINENO: checking for GNU ld" >&5
4009 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4010 else
4011   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4012 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4013 fi
4014 if test "${lt_cv_path_LD+set}" = set; then
4015   echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017   if test -z "$LD"; then
4018   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4019   for ac_dir in $PATH; do
4020     IFS="$lt_save_ifs"
4021     test -z "$ac_dir" && ac_dir=.
4022     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4023       lt_cv_path_LD="$ac_dir/$ac_prog"
4024       # Check to see if the program is GNU ld.  I'd rather use --version,
4025       # but apparently some GNU ld's only accept -v.
4026       # Break only if it was the GNU/non-GNU ld that we prefer.
4027       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4028       *GNU* | *'with BFD'*)
4029         test "$with_gnu_ld" != no && break
4030         ;;
4031       *)
4032         test "$with_gnu_ld" != yes && break
4033         ;;
4034       esac
4035     fi
4036   done
4037   IFS="$lt_save_ifs"
4038 else
4039   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4040 fi
4041 fi
4042
4043 LD="$lt_cv_path_LD"
4044 if test -n "$LD"; then
4045   echo "$as_me:$LINENO: result: $LD" >&5
4046 echo "${ECHO_T}$LD" >&6
4047 else
4048   echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6
4050 fi
4051 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4052 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4053    { (exit 1); exit 1; }; }
4054 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4055 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4056 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4057   echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4060 case `"$LD" -v 2>&1 </dev/null` in
4061 *GNU* | *'with BFD'*)
4062   lt_cv_prog_gnu_ld=yes
4063   ;;
4064 *)
4065   lt_cv_prog_gnu_ld=no
4066   ;;
4067 esac
4068 fi
4069 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4070 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4071 with_gnu_ld=$lt_cv_prog_gnu_ld
4072
4073
4074 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4075 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4076 if test "${lt_cv_ld_reload_flag+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   lt_cv_ld_reload_flag='-r'
4080 fi
4081 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4082 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4083 reload_flag=$lt_cv_ld_reload_flag
4084 case $reload_flag in
4085 "" | " "*) ;;
4086 *) reload_flag=" $reload_flag" ;;
4087 esac
4088 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4089
4090 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4091 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4092 if test "${lt_cv_path_NM+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   if test -n "$NM"; then
4096   # Let the user override the test.
4097   lt_cv_path_NM="$NM"
4098 else
4099   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4100   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4101     IFS="$lt_save_ifs"
4102     test -z "$ac_dir" && ac_dir=.
4103     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4104     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4105       # Check to see if the nm accepts a BSD-compat flag.
4106       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4107       #   nm: unknown option "B" ignored
4108       # Tru64's nm complains that /dev/null is an invalid object file
4109       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4110       */dev/null* | *'Invalid file or object type'*)
4111         lt_cv_path_NM="$tmp_nm -B"
4112         break
4113         ;;
4114       *)
4115         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4116         */dev/null*)
4117           lt_cv_path_NM="$tmp_nm -p"
4118           break
4119           ;;
4120         *)
4121           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4122           continue # so that we can try to find one that supports BSD flags
4123           ;;
4124         esac
4125       esac
4126     fi
4127   done
4128   IFS="$lt_save_ifs"
4129   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4130 fi
4131 fi
4132 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4133 echo "${ECHO_T}$lt_cv_path_NM" >&6
4134 NM="$lt_cv_path_NM"
4135
4136 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4137 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4138 LN_S=$as_ln_s
4139 if test "$LN_S" = "ln -s"; then
4140   echo "$as_me:$LINENO: result: yes" >&5
4141 echo "${ECHO_T}yes" >&6
4142 else
4143   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4144 echo "${ECHO_T}no, using $LN_S" >&6
4145 fi
4146
4147 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4148 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4149 if test "${lt_cv_deplibs_check_method+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   lt_cv_file_magic_cmd='$MAGIC_CMD'
4153 lt_cv_file_magic_test_file=
4154 lt_cv_deplibs_check_method='unknown'
4155 # Need to set the preceding variable on all platforms that support
4156 # interlibrary dependencies.
4157 # 'none' -- dependencies not supported.
4158 # `unknown' -- same as none, but documents that we really don't know.
4159 # 'pass_all' -- all dependencies passed with no checks.
4160 # 'test_compile' -- check by making test program.
4161 # 'file_magic [[regex]]' -- check by looking for files in library path
4162 # which responds to the $file_magic_cmd with a given extended regex.
4163 # If you have `file' or equivalent on your system and you're not sure
4164 # whether `pass_all' will *always* work, you probably want this one.
4165
4166 case $host_os in
4167 aix4* | aix5*)
4168   lt_cv_deplibs_check_method=pass_all
4169   ;;
4170
4171 beos*)
4172   lt_cv_deplibs_check_method=pass_all
4173   ;;
4174
4175 bsdi4*)
4176   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4177   lt_cv_file_magic_cmd='/usr/bin/file -L'
4178   lt_cv_file_magic_test_file=/shlib/libc.so
4179   ;;
4180
4181 cygwin* | mingw* | pw32*)
4182   # win32_libid is a shell function defined in ltmain.sh
4183   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4184   lt_cv_file_magic_cmd='win32_libid'
4185   ;;
4186
4187 darwin* | rhapsody*)
4188   # this will be overwritten by pass_all, but leave it in just in case
4189   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4190   lt_cv_file_magic_cmd='/usr/bin/file -L'
4191   case "$host_os" in
4192   rhapsody* | darwin1.[012])
4193     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4194     ;;
4195   *) # Darwin 1.3 on
4196     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4197     ;;
4198   esac
4199   lt_cv_deplibs_check_method=pass_all
4200   ;;
4201
4202 freebsd*)
4203   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4204     case $host_cpu in
4205     i*86 )
4206       # Not sure whether the presence of OpenBSD here was a mistake.
4207       # Let's accept both of them until this is cleared up.
4208       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4209       lt_cv_file_magic_cmd=/usr/bin/file
4210       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4211       ;;
4212     esac
4213   else
4214     lt_cv_deplibs_check_method=pass_all
4215   fi
4216   ;;
4217
4218 gnu*)
4219   lt_cv_deplibs_check_method=pass_all
4220   ;;
4221
4222 hpux10.20* | hpux11*)
4223   lt_cv_file_magic_cmd=/usr/bin/file
4224   case "$host_cpu" in
4225   ia64*)
4226     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4227     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4228     ;;
4229   hppa*64*)
4230     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]'
4231     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4232     ;;
4233   *)
4234     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4235     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4236     ;;
4237   esac
4238   ;;
4239
4240 irix5* | irix6* | nonstopux*)
4241   case $host_os in
4242   irix5* | nonstopux*)
4243     # this will be overridden with pass_all, but let us keep it just in case
4244     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4245     ;;
4246   *)
4247     case $LD in
4248     *-32|*"-32 ") libmagic=32-bit;;
4249     *-n32|*"-n32 ") libmagic=N32;;
4250     *-64|*"-64 ") libmagic=64-bit;;
4251     *) libmagic=never-match;;
4252     esac
4253     # this will be overridden with pass_all, but let us keep it just in case
4254     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4255     ;;
4256   esac
4257   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4258   lt_cv_deplibs_check_method=pass_all
4259   ;;
4260
4261 # This must be Linux ELF.
4262 linux*)
4263   case $host_cpu in
4264   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4265     lt_cv_deplibs_check_method=pass_all ;;
4266   *)
4267     # glibc up to 2.1.1 does not perform some relocations on ARM
4268     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4269   esac
4270   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4271   ;;
4272
4273 netbsd*)
4274   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4275     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4276   else
4277     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4278   fi
4279   ;;
4280
4281 newos6*)
4282   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4283   lt_cv_file_magic_cmd=/usr/bin/file
4284   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4285   ;;
4286
4287 nto-qnx)
4288   lt_cv_deplibs_check_method=unknown
4289   ;;
4290
4291 openbsd*)
4292   lt_cv_file_magic_cmd=/usr/bin/file
4293   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4294   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4295     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4296   else
4297     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4298   fi
4299   ;;
4300
4301 osf3* | osf4* | osf5*)
4302   # this will be overridden with pass_all, but let us keep it just in case
4303   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4304   lt_cv_file_magic_test_file=/shlib/libc.so
4305   lt_cv_deplibs_check_method=pass_all
4306   ;;
4307
4308 sco3.2v5*)
4309   lt_cv_deplibs_check_method=pass_all
4310   ;;
4311
4312 solaris*)
4313   lt_cv_deplibs_check_method=pass_all
4314   lt_cv_file_magic_test_file=/lib/libc.so
4315   ;;
4316
4317 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4318   case $host_vendor in
4319   motorola)
4320     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]'
4321     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4322     ;;
4323   ncr)
4324     lt_cv_deplibs_check_method=pass_all
4325     ;;
4326   sequent)
4327     lt_cv_file_magic_cmd='/bin/file'
4328     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4329     ;;
4330   sni)
4331     lt_cv_file_magic_cmd='/bin/file'
4332     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4333     lt_cv_file_magic_test_file=/lib/libc.so
4334     ;;
4335   siemens)
4336     lt_cv_deplibs_check_method=pass_all
4337     ;;
4338   esac
4339   ;;
4340
4341 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4342   lt_cv_deplibs_check_method=pass_all
4343   ;;
4344 esac
4345
4346 fi
4347 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4348 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4349 file_magic_cmd=$lt_cv_file_magic_cmd
4350 deplibs_check_method=$lt_cv_deplibs_check_method
4351 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4352
4353
4354
4355
4356 # If no C compiler was specified, use CC.
4357 LTCC=${LTCC-"$CC"}
4358
4359 # Allow CC to be a program name with arguments.
4360 compiler=$CC
4361
4362 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4363 if test "${enable_libtool_lock+set}" = set; then
4364   enableval="$enable_libtool_lock"
4365
4366 fi;
4367 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4368
4369 # Some flags need to be propagated to the compiler or linker for good
4370 # libtool support.
4371 case $host in
4372 ia64-*-hpux*)
4373   # Find out which ABI we are using.
4374   echo 'int i;' > conftest.$ac_ext
4375   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376   (eval $ac_compile) 2>&5
4377   ac_status=$?
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); }; then
4380     case `/usr/bin/file conftest.$ac_objext` in
4381     *ELF-32*)
4382       HPUX_IA64_MODE="32"
4383       ;;
4384     *ELF-64*)
4385       HPUX_IA64_MODE="64"
4386       ;;
4387     esac
4388   fi
4389   rm -rf conftest*
4390   ;;
4391 *-*-irix6*)
4392   # Find out which ABI we are using.
4393   echo '#line 4393 "configure"' > conftest.$ac_ext
4394   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395   (eval $ac_compile) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; then
4399    if test "$lt_cv_prog_gnu_ld" = yes; then
4400     case `/usr/bin/file conftest.$ac_objext` in
4401     *32-bit*)
4402       LD="${LD-ld} -melf32bsmip"
4403       ;;
4404     *N32*)
4405       LD="${LD-ld} -melf32bmipn32"
4406       ;;
4407     *64-bit*)
4408       LD="${LD-ld} -melf64bmip"
4409       ;;
4410     esac
4411    else
4412     case `/usr/bin/file conftest.$ac_objext` in
4413     *32-bit*)
4414       LD="${LD-ld} -32"
4415       ;;
4416     *N32*)
4417       LD="${LD-ld} -n32"
4418       ;;
4419     *64-bit*)
4420       LD="${LD-ld} -64"
4421       ;;
4422     esac
4423    fi
4424   fi
4425   rm -rf conftest*
4426   ;;
4427
4428 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4429   # Find out which ABI we are using.
4430   echo 'int i;' > conftest.$ac_ext
4431   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432   (eval $ac_compile) 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); }; then
4436     case "`/usr/bin/file conftest.o`" in
4437     *32-bit*)
4438       case $host in
4439         x86_64-*linux*)
4440           LD="${LD-ld} -m elf_i386"
4441           ;;
4442         ppc64-*linux*)
4443           LD="${LD-ld} -m elf32ppclinux"
4444           ;;
4445         s390x-*linux*)
4446           LD="${LD-ld} -m elf_s390"
4447           ;;
4448         sparc64-*linux*)
4449           LD="${LD-ld} -m elf32_sparc"
4450           ;;
4451       esac
4452       ;;
4453     *64-bit*)
4454       case $host in
4455         x86_64-*linux*)
4456           LD="${LD-ld} -m elf_x86_64"
4457           ;;
4458         ppc*-*linux*|powerpc*-*linux*)
4459           LD="${LD-ld} -m elf64ppc"
4460           ;;
4461         s390*-*linux*)
4462           LD="${LD-ld} -m elf64_s390"
4463           ;;
4464         sparc*-*linux*)
4465           LD="${LD-ld} -m elf64_sparc"
4466           ;;
4467       esac
4468       ;;
4469     esac
4470   fi
4471   rm -rf conftest*
4472   ;;
4473
4474 *-*-sco3.2v5*)
4475   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4476   SAVE_CFLAGS="$CFLAGS"
4477   CFLAGS="$CFLAGS -belf"
4478   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4479 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4480 if test "${lt_cv_cc_needs_belf+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   ac_ext=c
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488
4489      cat >conftest.$ac_ext <<_ACEOF
4490 #line $LINENO "configure"
4491 /* confdefs.h.  */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h.  */
4496
4497 int
4498 main ()
4499 {
4500
4501   ;
4502   return 0;
4503 }
4504 _ACEOF
4505 rm -f conftest.$ac_objext conftest$ac_exeext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4507   (eval $ac_link) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } &&
4511          { ac_try='test -s conftest$ac_exeext'
4512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513   (eval $ac_try) 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); }; }; then
4517   lt_cv_cc_needs_belf=yes
4518 else
4519   echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4521
4522 lt_cv_cc_needs_belf=no
4523 fi
4524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525      ac_ext=c
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531 fi
4532 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4533 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4534   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4535     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4536     CFLAGS="$SAVE_CFLAGS"
4537   fi
4538   ;;
4539
4540 esac
4541
4542 need_locks="$enable_libtool_lock"
4543
4544
4545
4546 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4547 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4548 if test "${ac_cv_header_stdc+set}" = set; then
4549   echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551   cat >conftest.$ac_ext <<_ACEOF
4552 #line $LINENO "configure"
4553 /* confdefs.h.  */
4554 _ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h.  */
4558 #include <stdlib.h>
4559 #include <stdarg.h>
4560 #include <string.h>
4561 #include <float.h>
4562
4563 int
4564 main ()
4565 {
4566
4567   ;
4568   return 0;
4569 }
4570 _ACEOF
4571 rm -f conftest.$ac_objext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573   (eval $ac_compile) 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); } &&
4577          { ac_try='test -s conftest.$ac_objext'
4578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579   (eval $ac_try) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; }; then
4583   ac_cv_header_stdc=yes
4584 else
4585   echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 ac_cv_header_stdc=no
4589 fi
4590 rm -f conftest.$ac_objext conftest.$ac_ext
4591
4592 if test $ac_cv_header_stdc = yes; then
4593   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594   cat >conftest.$ac_ext <<_ACEOF
4595 #line $LINENO "configure"
4596 /* confdefs.h.  */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h.  */
4601 #include <string.h>
4602
4603 _ACEOF
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605   $EGREP "memchr" >/dev/null 2>&1; then
4606   :
4607 else
4608   ac_cv_header_stdc=no
4609 fi
4610 rm -f conftest*
4611
4612 fi
4613
4614 if test $ac_cv_header_stdc = yes; then
4615   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616   cat >conftest.$ac_ext <<_ACEOF
4617 #line $LINENO "configure"
4618 /* confdefs.h.  */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h.  */
4623 #include <stdlib.h>
4624
4625 _ACEOF
4626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4627   $EGREP "free" >/dev/null 2>&1; then
4628   :
4629 else
4630   ac_cv_header_stdc=no
4631 fi
4632 rm -f conftest*
4633
4634 fi
4635
4636 if test $ac_cv_header_stdc = yes; then
4637   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4638   if test "$cross_compiling" = yes; then
4639   :
4640 else
4641   cat >conftest.$ac_ext <<_ACEOF
4642 #line $LINENO "configure"
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4648 #include <ctype.h>
4649 #if ((' ' & 0x0FF) == 0x020)
4650 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4651 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4652 #else
4653 # define ISLOWER(c) \
4654                    (('a' <= (c) && (c) <= 'i') \
4655                      || ('j' <= (c) && (c) <= 'r') \
4656                      || ('s' <= (c) && (c) <= 'z'))
4657 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4658 #endif
4659
4660 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4661 int
4662 main ()
4663 {
4664   int i;
4665   for (i = 0; i < 256; i++)
4666     if (XOR (islower (i), ISLOWER (i))
4667         || toupper (i) != TOUPPER (i))
4668       exit(2);
4669   exit (0);
4670 }
4671 _ACEOF
4672 rm -f conftest$ac_exeext
4673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4674   (eval $ac_link) 2>&5
4675   ac_status=$?
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679   (eval $ac_try) 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; }; then
4683   :
4684 else
4685   echo "$as_me: program exited with status $ac_status" >&5
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 ( exit $ac_status )
4690 ac_cv_header_stdc=no
4691 fi
4692 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4693 fi
4694 fi
4695 fi
4696 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4697 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4698 if test $ac_cv_header_stdc = yes; then
4699
4700 cat >>confdefs.h <<\_ACEOF
4701 #define STDC_HEADERS 1
4702 _ACEOF
4703
4704 fi
4705
4706 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4717                   inttypes.h stdint.h unistd.h
4718 do
4719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4720 echo "$as_me:$LINENO: checking for $ac_header" >&5
4721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723   echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725   cat >conftest.$ac_ext <<_ACEOF
4726 #line $LINENO "configure"
4727 /* confdefs.h.  */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h.  */
4732 $ac_includes_default
4733
4734 #include <$ac_header>
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738   (eval $ac_compile) 2>&5
4739   ac_status=$?
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } &&
4742          { ac_try='test -s conftest.$ac_objext'
4743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744   (eval $ac_try) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; }; then
4748   eval "$as_ac_Header=yes"
4749 else
4750   echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 eval "$as_ac_Header=no"
4754 fi
4755 rm -f conftest.$ac_objext conftest.$ac_ext
4756 fi
4757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4760   cat >>confdefs.h <<_ACEOF
4761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4762 _ACEOF
4763
4764 fi
4765
4766 done
4767
4768
4769
4770 for ac_header in dlfcn.h
4771 do
4772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774   echo "$as_me:$LINENO: checking for $ac_header" >&5
4775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 fi
4779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4781 else
4782   # Is the header compilable?
4783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4785 cat >conftest.$ac_ext <<_ACEOF
4786 #line $LINENO "configure"
4787 /* confdefs.h.  */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h.  */
4792 $ac_includes_default
4793 #include <$ac_header>
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797   (eval $ac_compile) 2>&5
4798   ac_status=$?
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); } &&
4801          { ac_try='test -s conftest.$ac_objext'
4802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803   (eval $ac_try) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }; }; then
4807   ac_header_compiler=yes
4808 else
4809   echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812 ac_header_compiler=no
4813 fi
4814 rm -f conftest.$ac_objext conftest.$ac_ext
4815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4816 echo "${ECHO_T}$ac_header_compiler" >&6
4817
4818 # Is the header present?
4819 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4820 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
4829 _ACEOF
4830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4832   ac_status=$?
4833   grep -v '^ *+' conftest.er1 >conftest.err
4834   rm -f conftest.er1
4835   cat conftest.err >&5
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); } >/dev/null; then
4838   if test -s conftest.err; then
4839     ac_cpp_err=$ac_c_preproc_warn_flag
4840   else
4841     ac_cpp_err=
4842   fi
4843 else
4844   ac_cpp_err=yes
4845 fi
4846 if test -z "$ac_cpp_err"; then
4847   ac_header_preproc=yes
4848 else
4849   echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852   ac_header_preproc=no
4853 fi
4854 rm -f conftest.err conftest.$ac_ext
4855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4856 echo "${ECHO_T}$ac_header_preproc" >&6
4857
4858 # So?  What about this header?
4859 case $ac_header_compiler:$ac_header_preproc in
4860   yes:no )
4861     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4865     (
4866       cat <<\_ASBOX
4867 ## ------------------------------------ ##
4868 ## Report this to bug-autoconf@gnu.org. ##
4869 ## ------------------------------------ ##
4870 _ASBOX
4871     ) |
4872       sed "s/^/$as_me: WARNING:     /" >&2
4873     ;;
4874   no:yes )
4875     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4877     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4881     (
4882       cat <<\_ASBOX
4883 ## ------------------------------------ ##
4884 ## Report this to bug-autoconf@gnu.org. ##
4885 ## ------------------------------------ ##
4886 _ASBOX
4887     ) |
4888       sed "s/^/$as_me: WARNING:     /" >&2
4889     ;;
4890 esac
4891 echo "$as_me:$LINENO: checking for $ac_header" >&5
4892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   eval "$as_ac_Header=$ac_header_preproc"
4897 fi
4898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4900
4901 fi
4902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4903   cat >>confdefs.h <<_ACEOF
4904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4905 _ACEOF
4906
4907 fi
4908
4909 done
4910
4911 ac_ext=cc
4912 ac_cpp='$CXXCPP $CPPFLAGS'
4913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4916 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4917 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4918 if test -z "$CXXCPP"; then
4919   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4920   echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922       # Double quotes because CXXCPP needs to be expanded
4923     for CXXCPP in "$CXX -E" "/lib/cpp"
4924     do
4925       ac_preproc_ok=false
4926 for ac_cxx_preproc_warn_flag in '' yes
4927 do
4928   # Use a header file that comes with gcc, so configuring glibc
4929   # with a fresh cross-compiler works.
4930   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4931   # <limits.h> exists even on freestanding compilers.
4932   # On the NeXT, cc -E runs the code through the compiler's parser,
4933   # not just through cpp. "Syntax error" is here to catch this case.
4934   cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941 #ifdef __STDC__
4942 # include <limits.h>
4943 #else
4944 # include <assert.h>
4945 #endif
4946                      Syntax error
4947 _ACEOF
4948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4950   ac_status=$?
4951   grep -v '^ *+' conftest.er1 >conftest.err
4952   rm -f conftest.er1
4953   cat conftest.err >&5
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } >/dev/null; then
4956   if test -s conftest.err; then
4957     ac_cpp_err=$ac_cxx_preproc_warn_flag
4958   else
4959     ac_cpp_err=
4960   fi
4961 else
4962   ac_cpp_err=yes
4963 fi
4964 if test -z "$ac_cpp_err"; then
4965   :
4966 else
4967   echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970   # Broken: fails on valid input.
4971 continue
4972 fi
4973 rm -f conftest.err conftest.$ac_ext
4974
4975   # OK, works on sane cases.  Now check whether non-existent headers
4976   # can be detected and how.
4977   cat >conftest.$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4979 /* confdefs.h.  */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h.  */
4984 #include <ac_nonexistent.h>
4985 _ACEOF
4986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4988   ac_status=$?
4989   grep -v '^ *+' conftest.er1 >conftest.err
4990   rm -f conftest.er1
4991   cat conftest.err >&5
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } >/dev/null; then
4994   if test -s conftest.err; then
4995     ac_cpp_err=$ac_cxx_preproc_warn_flag
4996   else
4997     ac_cpp_err=
4998   fi
4999 else
5000   ac_cpp_err=yes
5001 fi
5002 if test -z "$ac_cpp_err"; then
5003   # Broken: success on invalid input.
5004 continue
5005 else
5006   echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009   # Passes both tests.
5010 ac_preproc_ok=:
5011 break
5012 fi
5013 rm -f conftest.err conftest.$ac_ext
5014
5015 done
5016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5017 rm -f conftest.err conftest.$ac_ext
5018 if $ac_preproc_ok; then
5019   break
5020 fi
5021
5022     done
5023     ac_cv_prog_CXXCPP=$CXXCPP
5024
5025 fi
5026   CXXCPP=$ac_cv_prog_CXXCPP
5027 else
5028   ac_cv_prog_CXXCPP=$CXXCPP
5029 fi
5030 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5031 echo "${ECHO_T}$CXXCPP" >&6
5032 ac_preproc_ok=false
5033 for ac_cxx_preproc_warn_flag in '' yes
5034 do
5035   # Use a header file that comes with gcc, so configuring glibc
5036   # with a fresh cross-compiler works.
5037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5038   # <limits.h> exists even on freestanding compilers.
5039   # On the NeXT, cc -E runs the code through the compiler's parser,
5040   # not just through cpp. "Syntax error" is here to catch this case.
5041   cat >conftest.$ac_ext <<_ACEOF
5042 #line $LINENO "configure"
5043 /* confdefs.h.  */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h.  */
5048 #ifdef __STDC__
5049 # include <limits.h>
5050 #else
5051 # include <assert.h>
5052 #endif
5053                      Syntax error
5054 _ACEOF
5055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } >/dev/null; then
5063   if test -s conftest.err; then
5064     ac_cpp_err=$ac_cxx_preproc_warn_flag
5065   else
5066     ac_cpp_err=
5067   fi
5068 else
5069   ac_cpp_err=yes
5070 fi
5071 if test -z "$ac_cpp_err"; then
5072   :
5073 else
5074   echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077   # Broken: fails on valid input.
5078 continue
5079 fi
5080 rm -f conftest.err conftest.$ac_ext
5081
5082   # OK, works on sane cases.  Now check whether non-existent headers
5083   # can be detected and how.
5084   cat >conftest.$ac_ext <<_ACEOF
5085 #line $LINENO "configure"
5086 /* confdefs.h.  */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h.  */
5091 #include <ac_nonexistent.h>
5092 _ACEOF
5093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5095   ac_status=$?
5096   grep -v '^ *+' conftest.er1 >conftest.err
5097   rm -f conftest.er1
5098   cat conftest.err >&5
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); } >/dev/null; then
5101   if test -s conftest.err; then
5102     ac_cpp_err=$ac_cxx_preproc_warn_flag
5103   else
5104     ac_cpp_err=
5105   fi
5106 else
5107   ac_cpp_err=yes
5108 fi
5109 if test -z "$ac_cpp_err"; then
5110   # Broken: success on invalid input.
5111 continue
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116   # Passes both tests.
5117 ac_preproc_ok=:
5118 break
5119 fi
5120 rm -f conftest.err conftest.$ac_ext
5121
5122 done
5123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124 rm -f conftest.err conftest.$ac_ext
5125 if $ac_preproc_ok; then
5126   :
5127 else
5128   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5129 See \`config.log' for more details." >&5
5130 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5131 See \`config.log' for more details." >&2;}
5132    { (exit 1); exit 1; }; }
5133 fi
5134
5135 ac_ext=cc
5136 ac_cpp='$CXXCPP $CPPFLAGS'
5137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5140
5141
5142 ac_ext=f
5143 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5144 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5146 if test -n "$ac_tool_prefix"; then
5147   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5148   do
5149     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5151 echo "$as_me:$LINENO: checking for $ac_word" >&5
5152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5153 if test "${ac_cv_prog_F77+set}" = set; then
5154   echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156   if test -n "$F77"; then
5157   ac_cv_prog_F77="$F77" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162   IFS=$as_save_IFS
5163   test -z "$as_dir" && as_dir=.
5164   for ac_exec_ext in '' $ac_executable_extensions; do
5165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168     break 2
5169   fi
5170 done
5171 done
5172
5173 fi
5174 fi
5175 F77=$ac_cv_prog_F77
5176 if test -n "$F77"; then
5177   echo "$as_me:$LINENO: result: $F77" >&5
5178 echo "${ECHO_T}$F77" >&6
5179 else
5180   echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6
5182 fi
5183
5184     test -n "$F77" && break
5185   done
5186 fi
5187 if test -z "$F77"; then
5188   ac_ct_F77=$F77
5189   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5190 do
5191   # Extract the first word of "$ac_prog", so it can be a program name with args.
5192 set dummy $ac_prog; ac_word=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   if test -n "$ac_ct_F77"; then
5199   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204   IFS=$as_save_IFS
5205   test -z "$as_dir" && as_dir=.
5206   for ac_exec_ext in '' $ac_executable_extensions; do
5207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208     ac_cv_prog_ac_ct_F77="$ac_prog"
5209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210     break 2
5211   fi
5212 done
5213 done
5214
5215 fi
5216 fi
5217 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5218 if test -n "$ac_ct_F77"; then
5219   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5220 echo "${ECHO_T}$ac_ct_F77" >&6
5221 else
5222   echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5224 fi
5225
5226   test -n "$ac_ct_F77" && break
5227 done
5228
5229   F77=$ac_ct_F77
5230 fi
5231
5232
5233 # Provide some information about the compiler.
5234 echo "$as_me:5234:" \
5235      "checking for Fortran 77 compiler version" >&5
5236 ac_compiler=`set X $ac_compile; echo $2`
5237 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5238   (eval $ac_compiler --version </dev/null >&5) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }
5242 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5243   (eval $ac_compiler -v </dev/null >&5) 2>&5
5244   ac_status=$?
5245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246   (exit $ac_status); }
5247 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5248   (eval $ac_compiler -V </dev/null >&5) 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); }
5252
5253 # If we don't use `.F' as extension, the preprocessor is not run on the
5254 # input file.
5255 ac_save_ext=$ac_ext
5256 ac_ext=F
5257 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5258 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5259 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   cat >conftest.$ac_ext <<_ACEOF
5263       program main
5264 #ifndef __GNUC__
5265        choke me
5266 #endif
5267
5268       end
5269 _ACEOF
5270 rm -f conftest.$ac_objext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272   (eval $ac_compile) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } &&
5276          { ac_try='test -s conftest.$ac_objext'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; }; then
5282   ac_compiler_gnu=yes
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_compiler_gnu=no
5288 fi
5289 rm -f conftest.$ac_objext conftest.$ac_ext
5290 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5291
5292 fi
5293 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5294 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5295 ac_ext=$ac_save_ext
5296 G77=`test $ac_compiler_gnu = yes && echo yes`
5297 ac_test_FFLAGS=${FFLAGS+set}
5298 ac_save_FFLAGS=$FFLAGS
5299 FFLAGS=
5300 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5301 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5302 if test "${ac_cv_prog_f77_g+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   FFLAGS=-g
5306 cat >conftest.$ac_ext <<_ACEOF
5307       program main
5308
5309       end
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313   (eval $ac_compile) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } &&
5317          { ac_try='test -s conftest.$ac_objext'
5318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319   (eval $ac_try) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); }; }; then
5323   ac_cv_prog_f77_g=yes
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_cv_prog_f77_g=no
5329 fi
5330 rm -f conftest.$ac_objext conftest.$ac_ext
5331
5332 fi
5333 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5334 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5335 if test "$ac_test_FFLAGS" = set; then
5336   FFLAGS=$ac_save_FFLAGS
5337 elif test $ac_cv_prog_f77_g = yes; then
5338   if test "$G77" = yes; then
5339     FFLAGS="-g -O2"
5340   else
5341     FFLAGS="-g"
5342   fi
5343 else
5344   if test "$G77" = yes; then
5345     FFLAGS="-O2"
5346   else
5347     FFLAGS=
5348   fi
5349 fi
5350 ac_ext=c
5351 ac_cpp='$CPP $CPPFLAGS'
5352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356
5357
5358 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5359
5360 # find the maximum length of command line arguments
5361 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5362 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5363 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366     i=0
5367   testring="ABCD"
5368
5369   case $build_os in
5370   msdosdjgpp*)
5371     # On DJGPP, this test can blow up pretty badly due to problems in libc
5372     # (any single argument exceeding 2000 bytes causes a buffer overrun
5373     # during glob expansion).  Even if it were fixed, the result of this
5374     # check would be larger than it should be.
5375     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5376     ;;
5377
5378   gnu*)
5379     # Under GNU Hurd, this test is not required because there is
5380     # no limit to the length of command line arguments.
5381     # Libtool will interpret -1 as no limit whatsoever
5382     lt_cv_sys_max_cmd_len=-1;
5383     ;;
5384
5385   cygwin* | mingw*)
5386     # On Win9x/ME, this test blows up -- it succeeds, but takes
5387     # about 5 minutes as the teststring grows exponentially.
5388     # Worse, since 9x/ME are not pre-emptively multitasking,
5389     # you end up with a "frozen" computer, even though with patience
5390     # the test eventually succeeds (with a max line length of 256k).
5391     # Instead, let's just punt: use the minimum linelength reported by
5392     # all of the supported platforms: 8192 (on NT/2K/XP).
5393     lt_cv_sys_max_cmd_len=8192;
5394     ;;
5395
5396  *)
5397     # If test is not a shell built-in, we'll probably end up computing a
5398     # maximum length that is only half of the actual maximum length, but
5399     # we can't tell.
5400     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5401                = "XX$testring") >/dev/null 2>&1 &&
5402             new_result=`expr "X$testring" : ".*" 2>&1` &&
5403             lt_cv_sys_max_cmd_len=$new_result &&
5404             test $i != 17 # 1/2 MB should be enough
5405     do
5406       i=`expr $i + 1`
5407       testring=$testring$testring
5408     done
5409     testring=
5410     # Add a significant safety factor because C++ compilers can tack on massive
5411     # amounts of additional arguments before passing them to the linker.
5412     # It appears as though 1/2 is a usable value.
5413     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5414     ;;
5415   esac
5416
5417 fi
5418
5419 if test -n $lt_cv_sys_max_cmd_len ; then
5420   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5421 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5422 else
5423   echo "$as_me:$LINENO: result: none" >&5
5424 echo "${ECHO_T}none" >&6
5425 fi
5426
5427
5428
5429
5430 # Check for command to grab the raw symbol name followed by C symbol from nm.
5431 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5432 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5433 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436
5437 # These are sane defaults that work on at least a few old systems.
5438 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5439
5440 # Character class describing NM global symbol codes.
5441 symcode='[BCDEGRST]'
5442
5443 # Regexp to match symbols that can be accessed directly from C.
5444 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5445
5446 # Transform the above into a raw symbol and a C symbol.
5447 symxfrm='\1 \2\3 \3'
5448
5449 # Transform an extracted symbol line into a proper C declaration
5450 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5451
5452 # Transform an extracted symbol line into symbol name and symbol address
5453 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'"
5454
5455 # Define system-specific variables.
5456 case $host_os in
5457 aix*)
5458   symcode='[BCDT]'
5459   ;;
5460 cygwin* | mingw* | pw32*)
5461   symcode='[ABCDGISTW]'
5462   ;;
5463 hpux*) # Its linker distinguishes data from code symbols
5464   if test "$host_cpu" = ia64; then
5465     symcode='[ABCDEGRST]'
5466   fi
5467   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5468   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'"
5469   ;;
5470 irix* | nonstopux*)
5471   symcode='[BCDEGRST]'
5472   ;;
5473 osf*)
5474   symcode='[BCDEGQRST]'
5475   ;;
5476 solaris* | sysv5*)
5477   symcode='[BDT]'
5478   ;;
5479 sysv4)
5480   symcode='[DFNSTU]'
5481   ;;
5482 esac
5483
5484 # Handle CRLF in mingw tool chain
5485 opt_cr=
5486 case $build_os in
5487 mingw*)
5488   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5489   ;;
5490 esac
5491
5492 # If we're using GNU nm, then use its standard symbol codes.
5493 case `$NM -V 2>&1` in
5494 *GNU* | *'with BFD'*)
5495   symcode='[ABCDGISTW]' ;;
5496 esac
5497
5498 # Try without a prefix undercore, then with it.
5499 for ac_symprfx in "" "_"; do
5500
5501   # Write the raw and C identifiers.
5502   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5503
5504   # Check to see that the pipe works correctly.
5505   pipe_works=no
5506
5507   rm -f conftest*
5508   cat > conftest.$ac_ext <<EOF
5509 #ifdef __cplusplus
5510 extern "C" {
5511 #endif
5512 char nm_test_var;
5513 void nm_test_func(){}
5514 #ifdef __cplusplus
5515 }
5516 #endif
5517 int main(){nm_test_var='a';nm_test_func();return(0);}
5518 EOF
5519
5520   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5521   (eval $ac_compile) 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); }; then
5525     # Now try to grab the symbols.
5526     nlist=conftest.nm
5527     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5528   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } && test -s "$nlist"; then
5532       # Try sorting and uniquifying the output.
5533       if sort "$nlist" | uniq > "$nlist"T; then
5534         mv -f "$nlist"T "$nlist"
5535       else
5536         rm -f "$nlist"T
5537       fi
5538
5539       # Make sure that we snagged all the symbols we need.
5540       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5541         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5542           cat <<EOF > conftest.$ac_ext
5543 #ifdef __cplusplus
5544 extern "C" {
5545 #endif
5546
5547 EOF
5548           # Now generate the symbol file.
5549           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5550
5551           cat <<EOF >> conftest.$ac_ext
5552 #if defined (__STDC__) && __STDC__
5553 # define lt_ptr_t void *
5554 #else
5555 # define lt_ptr_t char *
5556 # define const
5557 #endif
5558
5559 /* The mapping between symbol names and symbols. */
5560 const struct {
5561   const char *name;
5562   lt_ptr_t address;
5563 }
5564 lt_preloaded_symbols[] =
5565 {
5566 EOF
5567           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5568           cat <<\EOF >> conftest.$ac_ext
5569   {0, (lt_ptr_t) 0}
5570 };
5571
5572 #ifdef __cplusplus
5573 }
5574 #endif
5575 EOF
5576           # Now try linking the two files.
5577           mv conftest.$ac_objext conftstm.$ac_objext
5578           lt_save_LIBS="$LIBS"
5579           lt_save_CFLAGS="$CFLAGS"
5580           LIBS="conftstm.$ac_objext"
5581           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5582           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583   (eval $ac_link) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5587             pipe_works=yes
5588           fi
5589           LIBS="$lt_save_LIBS"
5590           CFLAGS="$lt_save_CFLAGS"
5591         else
5592           echo "cannot find nm_test_func in $nlist" >&5
5593         fi
5594       else
5595         echo "cannot find nm_test_var in $nlist" >&5
5596       fi
5597     else
5598       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5599     fi
5600   else
5601     echo "$progname: failed program was:" >&5
5602     cat conftest.$ac_ext >&5
5603   fi
5604   rm -f conftest* conftst*
5605
5606   # Do not use the global_symbol_pipe unless it works.
5607   if test "$pipe_works" = yes; then
5608     break
5609   else
5610     lt_cv_sys_global_symbol_pipe=
5611   fi
5612 done
5613
5614 fi
5615
5616 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5617   lt_cv_sys_global_symbol_to_cdecl=
5618 fi
5619 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5620   echo "$as_me:$LINENO: result: failed" >&5
5621 echo "${ECHO_T}failed" >&6
5622 else
5623   echo "$as_me:$LINENO: result: ok" >&5
5624 echo "${ECHO_T}ok" >&6
5625 fi
5626
5627 echo "$as_me:$LINENO: checking for objdir" >&5
5628 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5629 if test "${lt_cv_objdir+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   rm -f .libs 2>/dev/null
5633 mkdir .libs 2>/dev/null
5634 if test -d .libs; then
5635   lt_cv_objdir=.libs
5636 else
5637   # MS-DOS does not allow filenames that begin with a dot.
5638   lt_cv_objdir=_libs
5639 fi
5640 rmdir .libs 2>/dev/null
5641 fi
5642 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5643 echo "${ECHO_T}$lt_cv_objdir" >&6
5644 objdir=$lt_cv_objdir
5645
5646
5647
5648
5649
5650 case $host_os in
5651 aix3*)
5652   # AIX sometimes has problems with the GCC collect2 program.  For some
5653   # reason, if we set the COLLECT_NAMES environment variable, the problems
5654   # vanish in a puff of smoke.
5655   if test "X${COLLECT_NAMES+set}" != Xset; then
5656     COLLECT_NAMES=
5657     export COLLECT_NAMES
5658   fi
5659   ;;
5660 esac
5661
5662 # Sed substitution that helps us do robust quoting.  It backslashifies
5663 # metacharacters that are still active within double-quoted strings.
5664 Xsed='sed -e s/^X//'
5665 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5666
5667 # Same as above, but do not quote variable references.
5668 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5669
5670 # Sed substitution to delay expansion of an escaped shell variable in a
5671 # double_quote_subst'ed string.
5672 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5673
5674 # Sed substitution to avoid accidental globbing in evaled expressions
5675 no_glob_subst='s/\*/\\\*/g'
5676
5677 # Constants:
5678 rm="rm -f"
5679
5680 # Global variables:
5681 default_ofile=mklib
5682 can_build_shared=yes
5683
5684 # All known linkers require a `.a' archive for static linking (except M$VC,
5685 # which needs '.lib').
5686 libext=a
5687 ltmain="$ac_aux_dir/ltmain.sh"
5688 ofile="$default_ofile"
5689 with_gnu_ld="$lt_cv_prog_gnu_ld"
5690
5691 if test -n "$ac_tool_prefix"; then
5692   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5693 set dummy ${ac_tool_prefix}ar; ac_word=$2
5694 echo "$as_me:$LINENO: checking for $ac_word" >&5
5695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5696 if test "${ac_cv_prog_AR+set}" = set; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699   if test -n "$AR"; then
5700   ac_cv_prog_AR="$AR" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705   IFS=$as_save_IFS
5706   test -z "$as_dir" && as_dir=.
5707   for ac_exec_ext in '' $ac_executable_extensions; do
5708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709     ac_cv_prog_AR="${ac_tool_prefix}ar"
5710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5711     break 2
5712   fi
5713 done
5714 done
5715
5716 fi
5717 fi
5718 AR=$ac_cv_prog_AR
5719 if test -n "$AR"; then
5720   echo "$as_me:$LINENO: result: $AR" >&5
5721 echo "${ECHO_T}$AR" >&6
5722 else
5723   echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6
5725 fi
5726
5727 fi
5728 if test -z "$ac_cv_prog_AR"; then
5729   ac_ct_AR=$AR
5730   # Extract the first word of "ar", so it can be a program name with args.
5731 set dummy ar; ac_word=$2
5732 echo "$as_me:$LINENO: checking for $ac_word" >&5
5733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5734 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737   if test -n "$ac_ct_AR"; then
5738   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745   for ac_exec_ext in '' $ac_executable_extensions; do
5746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747     ac_cv_prog_ac_ct_AR="ar"
5748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752 done
5753
5754   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5755 fi
5756 fi
5757 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5758 if test -n "$ac_ct_AR"; then
5759   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5760 echo "${ECHO_T}$ac_ct_AR" >&6
5761 else
5762   echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6
5764 fi
5765
5766   AR=$ac_ct_AR
5767 else
5768   AR="$ac_cv_prog_AR"
5769 fi
5770
5771 if test -n "$ac_tool_prefix"; then
5772   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5773 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5774 echo "$as_me:$LINENO: checking for $ac_word" >&5
5775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5776 if test "${ac_cv_prog_RANLIB+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   if test -n "$RANLIB"; then
5780   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5781 else
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785   IFS=$as_save_IFS
5786   test -z "$as_dir" && as_dir=.
5787   for ac_exec_ext in '' $ac_executable_extensions; do
5788   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791     break 2
5792   fi
5793 done
5794 done
5795
5796 fi
5797 fi
5798 RANLIB=$ac_cv_prog_RANLIB
5799 if test -n "$RANLIB"; then
5800   echo "$as_me:$LINENO: result: $RANLIB" >&5
5801 echo "${ECHO_T}$RANLIB" >&6
5802 else
5803   echo "$as_me:$LINENO: result: no" >&5
5804 echo "${ECHO_T}no" >&6
5805 fi
5806
5807 fi
5808 if test -z "$ac_cv_prog_RANLIB"; then
5809   ac_ct_RANLIB=$RANLIB
5810   # Extract the first word of "ranlib", so it can be a program name with args.
5811 set dummy ranlib; ac_word=$2
5812 echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   if test -n "$ac_ct_RANLIB"; then
5818   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823   IFS=$as_save_IFS
5824   test -z "$as_dir" && as_dir=.
5825   for ac_exec_ext in '' $ac_executable_extensions; do
5826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827     ac_cv_prog_ac_ct_RANLIB="ranlib"
5828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829     break 2
5830   fi
5831 done
5832 done
5833
5834   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5835 fi
5836 fi
5837 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5838 if test -n "$ac_ct_RANLIB"; then
5839   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5840 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5841 else
5842   echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5844 fi
5845
5846   RANLIB=$ac_ct_RANLIB
5847 else
5848   RANLIB="$ac_cv_prog_RANLIB"
5849 fi
5850
5851 if test -n "$ac_tool_prefix"; then
5852   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5853 set dummy ${ac_tool_prefix}strip; ac_word=$2
5854 echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5856 if test "${ac_cv_prog_STRIP+set}" = set; then
5857   echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859   if test -n "$STRIP"; then
5860   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865   IFS=$as_save_IFS
5866   test -z "$as_dir" && as_dir=.
5867   for ac_exec_ext in '' $ac_executable_extensions; do
5868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871     break 2
5872   fi
5873 done
5874 done
5875
5876 fi
5877 fi
5878 STRIP=$ac_cv_prog_STRIP
5879 if test -n "$STRIP"; then
5880   echo "$as_me:$LINENO: result: $STRIP" >&5
5881 echo "${ECHO_T}$STRIP" >&6
5882 else
5883   echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6
5885 fi
5886
5887 fi
5888 if test -z "$ac_cv_prog_STRIP"; then
5889   ac_ct_STRIP=$STRIP
5890   # Extract the first word of "strip", so it can be a program name with args.
5891 set dummy strip; ac_word=$2
5892 echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   if test -n "$ac_ct_STRIP"; then
5898   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for ac_exec_ext in '' $ac_executable_extensions; do
5906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907     ac_cv_prog_ac_ct_STRIP="strip"
5908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912 done
5913
5914   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5915 fi
5916 fi
5917 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5918 if test -n "$ac_ct_STRIP"; then
5919   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5920 echo "${ECHO_T}$ac_ct_STRIP" >&6
5921 else
5922   echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5924 fi
5925
5926   STRIP=$ac_ct_STRIP
5927 else
5928   STRIP="$ac_cv_prog_STRIP"
5929 fi
5930
5931
5932 old_CC="$CC"
5933 old_CFLAGS="$CFLAGS"
5934
5935 # Set sane defaults for various variables
5936 test -z "$AR" && AR=ar
5937 test -z "$AR_FLAGS" && AR_FLAGS=cru
5938 test -z "$AS" && AS=as
5939 test -z "$CC" && CC=cc
5940 test -z "$LTCC" && LTCC=$CC
5941 test -z "$DLLTOOL" && DLLTOOL=dlltool
5942 test -z "$LD" && LD=ld
5943 test -z "$LN_S" && LN_S="ln -s"
5944 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5945 test -z "$NM" && NM=nm
5946 test -z "$SED" && SED=sed
5947 test -z "$OBJDUMP" && OBJDUMP=objdump
5948 test -z "$RANLIB" && RANLIB=:
5949 test -z "$STRIP" && STRIP=:
5950 test -z "$ac_objext" && ac_objext=o
5951
5952 # Determine commands to create old-style static archives.
5953 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5954 old_postinstall_cmds='chmod 644 $oldlib'
5955 old_postuninstall_cmds=
5956
5957 if test -n "$RANLIB"; then
5958   case $host_os in
5959   openbsd*)
5960     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5961     ;;
5962   *)
5963     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5964     ;;
5965   esac
5966   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5967 fi
5968
5969 # Only perform the check for file, if the check method requires it
5970 case $deplibs_check_method in
5971 file_magic*)
5972   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5973     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5974 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5975 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5976   echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978   case $MAGIC_CMD in
5979 [\\/*] |  ?:[\\/]*)
5980   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5981   ;;
5982 *)
5983   lt_save_MAGIC_CMD="$MAGIC_CMD"
5984   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5985   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5986   for ac_dir in $ac_dummy; do
5987     IFS="$lt_save_ifs"
5988     test -z "$ac_dir" && ac_dir=.
5989     if test -f $ac_dir/${ac_tool_prefix}file; then
5990       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5991       if test -n "$file_magic_test_file"; then
5992         case $deplibs_check_method in
5993         "file_magic "*)
5994           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5995           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5996           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5997             $EGREP "$file_magic_regex" > /dev/null; then
5998             :
5999           else
6000             cat <<EOF 1>&2
6001
6002 *** Warning: the command libtool uses to detect shared libraries,
6003 *** $file_magic_cmd, produces output that libtool cannot recognize.
6004 *** The result is that libtool may fail to recognize shared libraries
6005 *** as such.  This will affect the creation of libtool libraries that
6006 *** depend on shared libraries, but programs linked with such libtool
6007 *** libraries will work regardless of this problem.  Nevertheless, you
6008 *** may want to report the problem to your system manager and/or to
6009 *** bug-libtool@gnu.org
6010
6011 EOF
6012           fi ;;
6013         esac
6014       fi
6015       break
6016     fi
6017   done
6018   IFS="$lt_save_ifs"
6019   MAGIC_CMD="$lt_save_MAGIC_CMD"
6020   ;;
6021 esac
6022 fi
6023
6024 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6025 if test -n "$MAGIC_CMD"; then
6026   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6027 echo "${ECHO_T}$MAGIC_CMD" >&6
6028 else
6029   echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6031 fi
6032
6033 if test -z "$lt_cv_path_MAGIC_CMD"; then
6034   if test -n "$ac_tool_prefix"; then
6035     echo "$as_me:$LINENO: checking for file" >&5
6036 echo $ECHO_N "checking for file... $ECHO_C" >&6
6037 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   case $MAGIC_CMD in
6041 [\\/*] |  ?:[\\/]*)
6042   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6043   ;;
6044 *)
6045   lt_save_MAGIC_CMD="$MAGIC_CMD"
6046   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6047   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6048   for ac_dir in $ac_dummy; do
6049     IFS="$lt_save_ifs"
6050     test -z "$ac_dir" && ac_dir=.
6051     if test -f $ac_dir/file; then
6052       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6053       if test -n "$file_magic_test_file"; then
6054         case $deplibs_check_method in
6055         "file_magic "*)
6056           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6057           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6058           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6059             $EGREP "$file_magic_regex" > /dev/null; then
6060             :
6061           else
6062             cat <<EOF 1>&2
6063
6064 *** Warning: the command libtool uses to detect shared libraries,
6065 *** $file_magic_cmd, produces output that libtool cannot recognize.
6066 *** The result is that libtool may fail to recognize shared libraries
6067 *** as such.  This will affect the creation of libtool libraries that
6068 *** depend on shared libraries, but programs linked with such libtool
6069 *** libraries will work regardless of this problem.  Nevertheless, you
6070 *** may want to report the problem to your system manager and/or to
6071 *** bug-libtool@gnu.org
6072
6073 EOF
6074           fi ;;
6075         esac
6076       fi
6077       break
6078     fi
6079   done
6080   IFS="$lt_save_ifs"
6081   MAGIC_CMD="$lt_save_MAGIC_CMD"
6082   ;;
6083 esac
6084 fi
6085
6086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6087 if test -n "$MAGIC_CMD"; then
6088   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6089 echo "${ECHO_T}$MAGIC_CMD" >&6
6090 else
6091   echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6
6093 fi
6094
6095   else
6096     MAGIC_CMD=:
6097   fi
6098 fi
6099
6100   fi
6101   ;;
6102 esac
6103
6104 enable_dlopen=no
6105 enable_win32_dll=no
6106
6107 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6108 if test "${enable_libtool_lock+set}" = set; then
6109   enableval="$enable_libtool_lock"
6110
6111 fi;
6112 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6113
6114
6115 # Check whether --with-pic or --without-pic was given.
6116 if test "${with_pic+set}" = set; then
6117   withval="$with_pic"
6118   pic_mode="$withval"
6119 else
6120   pic_mode=default
6121 fi;
6122 test -z "$pic_mode" && pic_mode=default
6123
6124 # Use C for the default configuration in the libtool script
6125 tagname=
6126 lt_save_CC="$CC"
6127 ac_ext=c
6128 ac_cpp='$CPP $CPPFLAGS'
6129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133
6134 # Source file extension for C test sources.
6135 ac_ext=c
6136
6137 # Object file extension for compiled C test sources.
6138 objext=o
6139 objext=$objext
6140
6141 # Code to be used in simple compile tests
6142 lt_simple_compile_test_code="int some_variable = 0;\n"
6143
6144 # Code to be used in simple link tests
6145 lt_simple_link_test_code='int main(){return(0);}\n'
6146
6147
6148 # If no C compiler was specified, use CC.
6149 LTCC=${LTCC-"$CC"}
6150
6151 # Allow CC to be a program name with arguments.
6152 compiler=$CC
6153
6154
6155 #
6156 # Check for any special shared library compilation flags.
6157 #
6158 lt_prog_cc_shlib=
6159 if test "$GCC" = no; then
6160   case $host_os in
6161   sco3.2v5*)
6162     lt_prog_cc_shlib='-belf'
6163     ;;
6164   esac
6165 fi
6166 if test -n "$lt_prog_cc_shlib"; then
6167   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6168 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6169   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6170   else
6171     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6172 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6173     lt_cv_prog_cc_can_build_shared=no
6174   fi
6175 fi
6176
6177
6178 #
6179 # Check to make sure the static flag actually works.
6180 #
6181 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6182 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6183 if test "${lt_prog_compiler_static_works+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   lt_prog_compiler_static_works=no
6187    save_LDFLAGS="$LDFLAGS"
6188    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6189    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6190    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6191      # The compiler can only warn and ignore the option if not recognized
6192      # So say no if there are warnings
6193      if test -s conftest.err; then
6194        # Append any errors to the config.log.
6195        cat conftest.err 1>&5
6196      else
6197        lt_prog_compiler_static_works=yes
6198      fi
6199    fi
6200    $rm conftest*
6201    LDFLAGS="$save_LDFLAGS"
6202
6203 fi
6204 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6205 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6206
6207 if test x"$lt_prog_compiler_static_works" = xyes; then
6208     :
6209 else
6210     lt_prog_compiler_static=
6211 fi
6212
6213
6214
6215 ## CAVEAT EMPTOR:
6216 ## There is no encapsulation within the following macros, do not change
6217 ## the running order or otherwise move them around unless you know exactly
6218 ## what you are doing...
6219
6220 lt_prog_compiler_no_builtin_flag=
6221
6222 if test "$GCC" = yes; then
6223   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6224
6225   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6226 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6227 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   lt_cv_prog_compiler_rtti_exceptions=no
6231   ac_outfile=conftest.$ac_objext
6232    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6233    lt_compiler_flag="-fno-rtti -fno-exceptions"
6234    # Insert the option either (1) after the last *FLAGS variable, or
6235    # (2) before a word containing "conftest.", or (3) at the end.
6236    # Note that $ac_compile itself does not contain backslashes and begins
6237    # with a dollar sign (not a hyphen), so the echo should work correctly.
6238    # The option is referenced via a variable to avoid confusing sed.
6239    lt_compile=`echo "$ac_compile" | $SED \
6240    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6241    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6242    -e 's:$: $lt_compiler_flag:'`
6243    (eval echo "\"\$as_me:6243: $lt_compile\"" >&5)
6244    (eval "$lt_compile" 2>conftest.err)
6245    ac_status=$?
6246    cat conftest.err >&5
6247    echo "$as_me:6247: \$? = $ac_status" >&5
6248    if (exit $ac_status) && test -s "$ac_outfile"; then
6249      # The compiler can only warn and ignore the option if not recognized
6250      # So say no if there are warnings
6251      if test ! -s conftest.err; then
6252        lt_cv_prog_compiler_rtti_exceptions=yes
6253      fi
6254    fi
6255    $rm conftest*
6256
6257 fi
6258 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6259 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6260
6261 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6262     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6263 else
6264     :
6265 fi
6266
6267 fi
6268
6269 lt_prog_compiler_wl=
6270 lt_prog_compiler_pic=
6271 lt_prog_compiler_static=
6272
6273 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6274 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6275
6276   if test "$GCC" = yes; then
6277     lt_prog_compiler_wl='-Wl,'
6278     lt_prog_compiler_static='-static'
6279
6280     case $host_os in
6281       aix*)
6282       # All AIX code is PIC.
6283       if test "$host_cpu" = ia64; then
6284         # AIX 5 now supports IA64 processor
6285         lt_prog_compiler_static='-Bstatic'
6286       fi
6287       ;;
6288
6289     amigaos*)
6290       # FIXME: we need at least 68020 code to build shared libraries, but
6291       # adding the `-m68020' flag to GCC prevents building anything better,
6292       # like `-m68040'.
6293       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6294       ;;
6295
6296     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6297       # PIC is the default for these OSes.
6298       ;;
6299
6300     mingw* | pw32* | os2*)
6301       # This hack is so that the source file can tell whether it is being
6302       # built for inclusion in a dll (and should export symbols for example).
6303       lt_prog_compiler_pic='-DDLL_EXPORT'
6304       ;;
6305
6306     darwin* | rhapsody*)
6307       # PIC is the default on this platform
6308       # Common symbols not allowed in MH_DYLIB files
6309       lt_prog_compiler_pic='-fno-common'
6310       ;;
6311
6312     msdosdjgpp*)
6313       # Just because we use GCC doesn't mean we suddenly get shared libraries
6314       # on systems that don't support them.
6315       lt_prog_compiler_can_build_shared=no
6316       enable_shared=no
6317       ;;
6318
6319     sysv4*MP*)
6320       if test -d /usr/nec; then
6321         lt_prog_compiler_pic=-Kconform_pic
6322       fi
6323       ;;
6324
6325     hpux*)
6326       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6327       # not for PA HP-UX.
6328       case "$host_cpu" in
6329       hppa*64*|ia64*)
6330         # +Z the default
6331         ;;
6332       *)
6333         lt_prog_compiler_pic='-fPIC'
6334         ;;
6335       esac
6336       ;;
6337
6338     *)
6339       lt_prog_compiler_pic='-fPIC'
6340       ;;
6341     esac
6342   else
6343     # PORTME Check for flag to pass linker flags through the system compiler.
6344     case $host_os in
6345     aix*)
6346       lt_prog_compiler_wl='-Wl,'
6347       if test "$host_cpu" = ia64; then
6348         # AIX 5 now supports IA64 processor
6349         lt_prog_compiler_static='-Bstatic'
6350       else
6351         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6352       fi
6353       ;;
6354
6355     mingw* | pw32* | os2*)
6356       # This hack is so that the source file can tell whether it is being
6357       # built for inclusion in a dll (and should export symbols for example).
6358       lt_prog_compiler_pic='-DDLL_EXPORT'
6359       ;;
6360
6361     hpux9* | hpux10* | hpux11*)
6362       lt_prog_compiler_wl='-Wl,'
6363       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6364       # not for PA HP-UX.
6365       case "$host_cpu" in
6366       hppa*64*|ia64*)
6367         # +Z the default
6368         ;;
6369       *)
6370         lt_prog_compiler_pic='+Z'
6371         ;;
6372       esac
6373       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6374       lt_prog_compiler_static='${wl}-a ${wl}archive'
6375       ;;
6376
6377     irix5* | irix6* | nonstopux*)
6378       lt_prog_compiler_wl='-Wl,'
6379       # PIC (with -KPIC) is the default.
6380       lt_prog_compiler_static='-non_shared'
6381       ;;
6382
6383     newsos6)
6384       lt_prog_compiler_pic='-KPIC'
6385       lt_prog_compiler_static='-Bstatic'
6386       ;;
6387
6388     linux*)
6389       case $CC in
6390       icc|ecc)
6391         lt_prog_compiler_wl='-Wl,'
6392         lt_prog_compiler_pic='-KPIC'
6393         lt_prog_compiler_static='-static'
6394         ;;
6395       ccc)
6396         lt_prog_compiler_wl='-Wl,'
6397         # All Alpha code is PIC.
6398         lt_prog_compiler_static='-non_shared'
6399         ;;
6400       esac
6401       ;;
6402
6403     osf3* | osf4* | osf5*)
6404       lt_prog_compiler_wl='-Wl,'
6405       # All OSF/1 code is PIC.
6406       lt_prog_compiler_static='-non_shared'
6407       ;;
6408
6409     sco3.2v5*)
6410       lt_prog_compiler_pic='-Kpic'
6411       lt_prog_compiler_static='-dn'
6412       ;;
6413
6414     solaris*)
6415       lt_prog_compiler_wl='-Wl,'
6416       lt_prog_compiler_pic='-KPIC'
6417       lt_prog_compiler_static='-Bstatic'
6418       ;;
6419
6420     sunos4*)
6421       lt_prog_compiler_wl='-Qoption ld '
6422       lt_prog_compiler_pic='-PIC'
6423       lt_prog_compiler_static='-Bstatic'
6424       ;;
6425
6426     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6427       lt_prog_compiler_wl='-Wl,'
6428       lt_prog_compiler_pic='-KPIC'
6429       lt_prog_compiler_static='-Bstatic'
6430       ;;
6431
6432     sysv4*MP*)
6433       if test -d /usr/nec ;then
6434         lt_prog_compiler_pic='-Kconform_pic'
6435         lt_prog_compiler_static='-Bstatic'
6436       fi
6437       ;;
6438
6439     uts4*)
6440       lt_prog_compiler_pic='-pic'
6441       lt_prog_compiler_static='-Bstatic'
6442       ;;
6443
6444     *)
6445       lt_prog_compiler_can_build_shared=no
6446       ;;
6447     esac
6448   fi
6449
6450 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6451 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6452
6453 #
6454 # Check to make sure the PIC flag actually works.
6455 #
6456 if test -n "$lt_prog_compiler_pic"; then
6457   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6458 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6459 if test "${lt_prog_compiler_pic_works+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   lt_prog_compiler_pic_works=no
6463   ac_outfile=conftest.$ac_objext
6464    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6465    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6466    # Insert the option either (1) after the last *FLAGS variable, or
6467    # (2) before a word containing "conftest.", or (3) at the end.
6468    # Note that $ac_compile itself does not contain backslashes and begins
6469    # with a dollar sign (not a hyphen), so the echo should work correctly.
6470    # The option is referenced via a variable to avoid confusing sed.
6471    lt_compile=`echo "$ac_compile" | $SED \
6472    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6473    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6474    -e 's:$: $lt_compiler_flag:'`
6475    (eval echo "\"\$as_me:6475: $lt_compile\"" >&5)
6476    (eval "$lt_compile" 2>conftest.err)
6477    ac_status=$?
6478    cat conftest.err >&5
6479    echo "$as_me:6479: \$? = $ac_status" >&5
6480    if (exit $ac_status) && test -s "$ac_outfile"; then
6481      # The compiler can only warn and ignore the option if not recognized
6482      # So say no if there are warnings
6483      if test ! -s conftest.err; then
6484        lt_prog_compiler_pic_works=yes
6485      fi
6486    fi
6487    $rm conftest*
6488
6489 fi
6490 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6491 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6492
6493 if test x"$lt_prog_compiler_pic_works" = xyes; then
6494     case $lt_prog_compiler_pic in
6495      "" | " "*) ;;
6496      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6497      esac
6498 else
6499     lt_prog_compiler_pic=
6500      lt_prog_compiler_can_build_shared=no
6501 fi
6502
6503 fi
6504 case "$host_os" in
6505   # For platforms which do not support PIC, -DPIC is meaningless:
6506   *djgpp*)
6507     lt_prog_compiler_pic=
6508     ;;
6509   *)
6510     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6511     ;;
6512 esac
6513
6514 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6515 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6517   echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519   lt_cv_prog_compiler_c_o=no
6520    $rm -r conftest 2>/dev/null
6521    mkdir conftest
6522    cd conftest
6523    mkdir out
6524    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6525
6526    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6527    # that will create temporary files in the current directory regardless of
6528    # the output directory.  Thus, making CWD read-only will cause this test
6529    # to fail, enabling locking or at least warning the user not to do parallel
6530    # builds.
6531    chmod -w .
6532
6533    lt_compiler_flag="-o out/conftest2.$ac_objext"
6534    # Insert the option either (1) after the last *FLAGS variable, or
6535    # (2) before a word containing "conftest.", or (3) at the end.
6536    # Note that $ac_compile itself does not contain backslashes and begins
6537    # with a dollar sign (not a hyphen), so the echo should work correctly.
6538    lt_compile=`echo "$ac_compile" | $SED \
6539    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6541    -e 's:$: $lt_compiler_flag:'`
6542    (eval echo "\"\$as_me:6542: $lt_compile\"" >&5)
6543    (eval "$lt_compile" 2>out/conftest.err)
6544    ac_status=$?
6545    cat out/conftest.err >&5
6546    echo "$as_me:6546: \$? = $ac_status" >&5
6547    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6548    then
6549      # The compiler can only warn and ignore the option if not recognized
6550      # So say no if there are warnings
6551      if test ! -s out/conftest.err; then
6552        lt_cv_prog_compiler_c_o=yes
6553      fi
6554    fi
6555    chmod u+w .
6556    $rm conftest* out/*
6557    rmdir out
6558    cd ..
6559    rmdir conftest
6560    $rm conftest*
6561
6562 fi
6563 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6564 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6565
6566
6567 hard_links="nottested"
6568 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6569   # do not overwrite the value of need_locks provided by the user
6570   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6571 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6572   hard_links=yes
6573   $rm conftest*
6574   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6575   touch conftest.a
6576   ln conftest.a conftest.b 2>&5 || hard_links=no
6577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6578   echo "$as_me:$LINENO: result: $hard_links" >&5
6579 echo "${ECHO_T}$hard_links" >&6
6580   if test "$hard_links" = no; then
6581     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6582 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6583     need_locks=warn
6584   fi
6585 else
6586   need_locks=no
6587 fi
6588
6589 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6590 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6591
6592   runpath_var=
6593   allow_undefined_flag=
6594   enable_shared_with_static_runtimes=no
6595   archive_cmds=
6596   archive_expsym_cmds=
6597   old_archive_From_new_cmds=
6598   old_archive_from_expsyms_cmds=
6599   export_dynamic_flag_spec=
6600   whole_archive_flag_spec=
6601   thread_safe_flag_spec=
6602   hardcode_libdir_flag_spec=
6603   hardcode_libdir_flag_spec_ld=
6604   hardcode_libdir_separator=
6605   hardcode_direct=no
6606   hardcode_minus_L=no
6607   hardcode_shlibpath_var=unsupported
6608   link_all_deplibs=unknown
6609   hardcode_automatic=no
6610   module_cmds=
6611   module_expsym_cmds=
6612   always_export_symbols=no
6613   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6614   # include_expsyms should be a list of space-separated symbols to be *always*
6615   # included in the symbol list
6616   include_expsyms=
6617   # exclude_expsyms can be an extended regexp of symbols to exclude
6618   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6619   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6620   # as well as any symbol that contains `d'.
6621   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6622   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6623   # platforms (ab)use it in PIC code, but their linkers get confused if
6624   # the symbol is explicitly referenced.  Since portable code cannot
6625   # rely on this symbol name, it's probably fine to never include it in
6626   # preloaded symbol tables.
6627   extract_expsyms_cmds=
6628
6629   case $host_os in
6630   cygwin* | mingw* | pw32*)
6631     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6632     # When not using gcc, we currently assume that we are using
6633     # Microsoft Visual C++.
6634     if test "$GCC" != yes; then
6635       with_gnu_ld=no
6636     fi
6637     ;;
6638   openbsd*)
6639     with_gnu_ld=no
6640     ;;
6641   esac
6642
6643   ld_shlibs=yes
6644   if test "$with_gnu_ld" = yes; then
6645     # If archive_cmds runs LD, not CC, wlarc should be empty
6646     wlarc='${wl}'
6647
6648     # See if GNU ld supports shared libraries.
6649     case $host_os in
6650     aix3* | aix4* | aix5*)
6651       # On AIX/PPC, the GNU linker is very broken
6652       if test "$host_cpu" != ia64; then
6653         ld_shlibs=no
6654         cat <<EOF 1>&2
6655
6656 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6657 *** to be unable to reliably create shared libraries on AIX.
6658 *** Therefore, libtool is disabling shared libraries support.  If you
6659 *** really care for shared libraries, you may want to modify your PATH
6660 *** so that a non-GNU linker is found, and then restart.
6661
6662 EOF
6663       fi
6664       ;;
6665
6666     amigaos*)
6667       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)'
6668       hardcode_libdir_flag_spec='-L$libdir'
6669       hardcode_minus_L=yes
6670
6671       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6672       # that the semantics of dynamic libraries on AmigaOS, at least up
6673       # to version 4, is to share data among multiple programs linked
6674       # with the same dynamic library.  Since this doesn't match the
6675       # behavior of shared libraries on other platforms, we can't use
6676       # them.
6677       ld_shlibs=no
6678       ;;
6679
6680     beos*)
6681       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6682         allow_undefined_flag=unsupported
6683         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6684         # support --undefined.  This deserves some investigation.  FIXME
6685         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6686       else
6687         ld_shlibs=no
6688       fi
6689       ;;
6690
6691     cygwin* | mingw* | pw32*)
6692       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6693       # as there is no search path for DLLs.
6694       hardcode_libdir_flag_spec='-L$libdir'
6695       allow_undefined_flag=unsupported
6696       always_export_symbols=no
6697       enable_shared_with_static_runtimes=yes
6698       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6699
6700       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6701         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6702         # If the export-symbols file already is a .def file (1st line
6703         # is EXPORTS), use it as is; otherwise, prepend...
6704         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6705           cp $export_symbols $output_objdir/$soname.def;
6706         else
6707           echo EXPORTS > $output_objdir/$soname.def;
6708           cat $export_symbols >> $output_objdir/$soname.def;
6709         fi~
6710         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6711       else
6712         ld_shlibs=no
6713       fi
6714       ;;
6715
6716     netbsd*)
6717       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6718         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6719         wlarc=
6720       else
6721         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6722         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6723       fi
6724       ;;
6725
6726     solaris* | sysv5*)
6727       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6728         ld_shlibs=no
6729         cat <<EOF 1>&2
6730
6731 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6732 *** create shared libraries on Solaris systems.  Therefore, libtool
6733 *** is disabling shared libraries support.  We urge you to upgrade GNU
6734 *** binutils to release 2.9.1 or newer.  Another option is to modify
6735 *** your PATH or compiler configuration so that the native linker is
6736 *** used, and then restart.
6737
6738 EOF
6739       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6740         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6741         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6742       else
6743         ld_shlibs=no
6744       fi
6745       ;;
6746
6747     sunos4*)
6748       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6749       wlarc=
6750       hardcode_direct=yes
6751       hardcode_shlibpath_var=no
6752       ;;
6753
6754     *)
6755       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6756         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6757         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6758       else
6759         ld_shlibs=no
6760       fi
6761       ;;
6762     esac
6763
6764     if test "$ld_shlibs" = yes; then
6765       runpath_var=LD_RUN_PATH
6766       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6767       export_dynamic_flag_spec='${wl}--export-dynamic'
6768       # ancient GNU ld didn't support --whole-archive et. al.
6769       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6770         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6771       else
6772         whole_archive_flag_spec=
6773       fi
6774     fi
6775   else
6776     # PORTME fill in a description of your system's linker (not GNU ld)
6777     case $host_os in
6778     aix3*)
6779       allow_undefined_flag=unsupported
6780       always_export_symbols=yes
6781       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'
6782       # Note: this linker hardcodes the directories in LIBPATH if there
6783       # are no directories specified by -L.
6784       hardcode_minus_L=yes
6785       if test "$GCC" = yes && test -z "$link_static_flag"; then
6786         # Neither direct hardcoding nor static linking is supported with a
6787         # broken collect2.
6788         hardcode_direct=unsupported
6789       fi
6790       ;;
6791
6792     aix4* | aix5*)
6793       if test "$host_cpu" = ia64; then
6794         # On IA64, the linker does run time linking by default, so we don't
6795         # have to do anything special.
6796         aix_use_runtimelinking=no
6797         exp_sym_flag='-Bexport'
6798         no_entry_flag=""
6799       else
6800         # If we're using GNU nm, then we don't want the "-C" option.
6801         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6802         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6803           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'
6804         else
6805           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'
6806         fi
6807         aix_use_runtimelinking=no
6808
6809         # Test if we are trying to use run time linking or normal
6810         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6811         # need to do runtime linking.
6812         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6813           for ld_flag in $LDFLAGS; do
6814           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6815             aix_use_runtimelinking=yes
6816             break
6817           fi
6818           done
6819         esac
6820
6821         exp_sym_flag='-bexport'
6822         no_entry_flag='-bnoentry'
6823       fi
6824
6825       # When large executables or shared objects are built, AIX ld can
6826       # have problems creating the table of contents.  If linking a library
6827       # or program results in "error TOC overflow" add -mminimal-toc to
6828       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6829       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6830
6831       archive_cmds=''
6832       hardcode_direct=yes
6833       hardcode_libdir_separator=':'
6834       link_all_deplibs=yes
6835
6836       if test "$GCC" = yes; then
6837         case $host_os in aix4.012|aix4.012.*)
6838         # We only want to do this on AIX 4.2 and lower, the check
6839         # below for broken collect2 doesn't work under 4.3+
6840           collect2name=`${CC} -print-prog-name=collect2`
6841           if test -f "$collect2name" && \
6842            strings "$collect2name" | grep resolve_lib_name >/dev/null
6843           then
6844           # We have reworked collect2
6845           hardcode_direct=yes
6846           else
6847           # We have old collect2
6848           hardcode_direct=unsupported
6849           # It fails to find uninstalled libraries when the uninstalled
6850           # path is not listed in the libpath.  Setting hardcode_minus_L
6851           # to unsupported forces relinking
6852           hardcode_minus_L=yes
6853           hardcode_libdir_flag_spec='-L$libdir'
6854           hardcode_libdir_separator=
6855           fi
6856         esac
6857         shared_flag='-shared'
6858       else
6859         # not using gcc
6860         if test "$host_cpu" = ia64; then
6861         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6862         # chokes on -Wl,-G. The following line is correct:
6863           shared_flag='-G'
6864         else
6865         if test "$aix_use_runtimelinking" = yes; then
6866             shared_flag='${wl}-G'
6867           else
6868             shared_flag='${wl}-bM:SRE'
6869         fi
6870         fi
6871       fi
6872
6873       # It seems that -bexpall does not export symbols beginning with
6874       # underscore (_), so it is better to generate a list of symbols to export.
6875       always_export_symbols=yes
6876       if test "$aix_use_runtimelinking" = yes; then
6877         # Warning - without using the other runtime loading flags (-brtl),
6878         # -berok will link without error, but may produce a broken library.
6879         allow_undefined_flag='-berok'
6880        # Determine the default libpath from the value encoded in an empty executable.
6881        cat >conftest.$ac_ext <<_ACEOF
6882 #line $LINENO "configure"
6883 /* confdefs.h.  */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h.  */
6888
6889 int
6890 main ()
6891 {
6892
6893   ;
6894   return 0;
6895 }
6896 _ACEOF
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899   (eval $ac_link) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); } &&
6903          { ac_try='test -s conftest$ac_exeext'
6904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905   (eval $ac_try) 2>&5
6906   ac_status=$?
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); }; }; then
6909
6910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6911 }'`
6912 # Check for a 64-bit object if we didn't find anything.
6913 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; }
6914 }'`; fi
6915 else
6916   echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6918
6919 fi
6920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6921 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6922
6923        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6924         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"
6925        else
6926         if test "$host_cpu" = ia64; then
6927           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6928           allow_undefined_flag="-z nodefs"
6929           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"
6930         else
6931          # Determine the default libpath from the value encoded in an empty executable.
6932          cat >conftest.$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939
6940 int
6941 main ()
6942 {
6943
6944   ;
6945   return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950   (eval $ac_link) 2>&5
6951   ac_status=$?
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } &&
6954          { ac_try='test -s conftest$ac_exeext'
6955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956   (eval $ac_try) 2>&5
6957   ac_status=$?
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); }; }; then
6960
6961 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6962 }'`
6963 # Check for a 64-bit object if we didn't find anything.
6964 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; }
6965 }'`; fi
6966 else
6967   echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6969
6970 fi
6971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6973
6974          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6975           # Warning - without using the other run time loading flags,
6976           # -berok will link without error, but may produce a broken library.
6977           no_undefined_flag=' ${wl}-bernotok'
6978           allow_undefined_flag=' ${wl}-berok'
6979           # -bexpall does not export symbols beginning with underscore (_)
6980           always_export_symbols=yes
6981           # Exported symbols can be pulled into shared objects from archives
6982           whole_archive_flag_spec=' '
6983           archive_cmds_need_lc=yes
6984           # This is similar to how AIX traditionally builds it's shared libraries.
6985           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'
6986         fi
6987       fi
6988       ;;
6989
6990     amigaos*)
6991       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)'
6992       hardcode_libdir_flag_spec='-L$libdir'
6993       hardcode_minus_L=yes
6994       # see comment about different semantics on the GNU ld section
6995       ld_shlibs=no
6996       ;;
6997
6998     bsdi4*)
6999       export_dynamic_flag_spec=-rdynamic
7000       ;;
7001
7002     cygwin* | mingw* | pw32*)
7003       # When not using gcc, we currently assume that we are using
7004       # Microsoft Visual C++.
7005       # hardcode_libdir_flag_spec is actually meaningless, as there is
7006       # no search path for DLLs.
7007       hardcode_libdir_flag_spec=' '
7008       allow_undefined_flag=unsupported
7009       # Tell ltmain to make .lib files, not .a files.
7010       libext=lib
7011       # Tell ltmain to make .dll files, not .so files.
7012       shrext=".dll"
7013       # FIXME: Setting linknames here is a bad hack.
7014       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7015       # The linker will automatically build a .lib file if we build a DLL.
7016       old_archive_From_new_cmds='true'
7017       # FIXME: Should let the user specify the lib program.
7018       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7019       fix_srcfile_path='`cygpath -w "$srcfile"`'
7020       enable_shared_with_static_runtimes=yes
7021       ;;
7022
7023     darwin* | rhapsody*)
7024     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7025       archive_cmds_need_lc=no
7026       case "$host_os" in
7027       rhapsody* | darwin1.[012])
7028         allow_undefined_flag='-undefined suppress'
7029         ;;
7030       *) # Darwin 1.3 on
7031         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7032         ;;
7033       esac
7034       # FIXME: Relying on posixy $() will cause problems for
7035       #        cross-compilation, but unfortunately the echo tests do not
7036       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7037       #        `"' quotes if we put them in here... so don't!
7038         lt_int_apple_cc_single_mod=no
7039         output_verbose_link_cmd='echo'
7040         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7041           lt_int_apple_cc_single_mod=yes
7042         fi
7043         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7044           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7045         else
7046         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'
7047       fi
7048       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7049       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7050         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7051           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}'
7052         else
7053           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}'
7054         fi
7055           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}'
7056       hardcode_direct=no
7057       hardcode_automatic=yes
7058       hardcode_shlibpath_var=unsupported
7059       whole_archive_flag_spec='-all_load $convenience'
7060       link_all_deplibs=yes
7061     fi
7062       ;;
7063
7064     dgux*)
7065       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7066       hardcode_libdir_flag_spec='-L$libdir'
7067       hardcode_shlibpath_var=no
7068       ;;
7069
7070     freebsd1*)
7071       ld_shlibs=no
7072       ;;
7073
7074     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7075     # support.  Future versions do this automatically, but an explicit c++rt0.o
7076     # does not break anything, and helps significantly (at the cost of a little
7077     # extra space).
7078     freebsd2.2*)
7079       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7080       hardcode_libdir_flag_spec='-R$libdir'
7081       hardcode_direct=yes
7082       hardcode_shlibpath_var=no
7083       ;;
7084
7085     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7086     freebsd2*)
7087       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7088       hardcode_direct=yes
7089       hardcode_minus_L=yes
7090       hardcode_shlibpath_var=no
7091       ;;
7092
7093     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7094     freebsd*)
7095       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7096       hardcode_libdir_flag_spec='-R$libdir'
7097       hardcode_direct=yes
7098       hardcode_shlibpath_var=no
7099       ;;
7100
7101     hpux9*)
7102       if test "$GCC" = yes; then
7103         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'
7104       else
7105         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'
7106       fi
7107       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7108       hardcode_libdir_separator=:
7109       hardcode_direct=yes
7110
7111       # hardcode_minus_L: Not really in the search PATH,
7112       # but as the default location of the library.
7113       hardcode_minus_L=yes
7114       export_dynamic_flag_spec='${wl}-E'
7115       ;;
7116
7117     hpux10* | hpux11*)
7118       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7119         case "$host_cpu" in
7120         hppa*64*|ia64*)
7121           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7122           ;;
7123         *)
7124           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7125           ;;
7126         esac
7127       else
7128         case "$host_cpu" in
7129         hppa*64*|ia64*)
7130           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7131           ;;
7132         *)
7133           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7134           ;;
7135         esac
7136       fi
7137       if test "$with_gnu_ld" = no; then
7138         case "$host_cpu" in
7139         hppa*64*)
7140           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7141           hardcode_libdir_flag_spec_ld='+b $libdir'
7142           hardcode_libdir_separator=:
7143           hardcode_direct=no
7144           hardcode_shlibpath_var=no
7145           ;;
7146         ia64*)
7147           hardcode_libdir_flag_spec='-L$libdir'
7148           hardcode_direct=no
7149           hardcode_shlibpath_var=no
7150
7151           # hardcode_minus_L: Not really in the search PATH,
7152           # but as the default location of the library.
7153           hardcode_minus_L=yes
7154           ;;
7155         *)
7156           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7157           hardcode_libdir_separator=:
7158           hardcode_direct=yes
7159           export_dynamic_flag_spec='${wl}-E'
7160
7161           # hardcode_minus_L: Not really in the search PATH,
7162           # but as the default location of the library.
7163           hardcode_minus_L=yes
7164           ;;
7165         esac
7166       fi
7167       ;;
7168
7169     irix5* | irix6* | nonstopux*)
7170       if test "$GCC" = yes; then
7171         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'
7172       else
7173         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'
7174         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7175       fi
7176       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7177       hardcode_libdir_separator=:
7178       link_all_deplibs=yes
7179       ;;
7180
7181     netbsd*)
7182       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7183         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7184       else
7185         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7186       fi
7187       hardcode_libdir_flag_spec='-R$libdir'
7188       hardcode_direct=yes
7189       hardcode_shlibpath_var=no
7190       ;;
7191
7192     newsos6)
7193       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7194       hardcode_direct=yes
7195       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7196       hardcode_libdir_separator=:
7197       hardcode_shlibpath_var=no
7198       ;;
7199
7200     openbsd*)
7201       hardcode_direct=yes
7202       hardcode_shlibpath_var=no
7203       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7204         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7205         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7206         export_dynamic_flag_spec='${wl}-E'
7207       else
7208        case $host_os in
7209          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7210            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7211            hardcode_libdir_flag_spec='-R$libdir'
7212            ;;
7213          *)
7214            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7215            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7216            ;;
7217        esac
7218       fi
7219       ;;
7220
7221     os2*)
7222       hardcode_libdir_flag_spec='-L$libdir'
7223       hardcode_minus_L=yes
7224       allow_undefined_flag=unsupported
7225       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'
7226       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7227       ;;
7228
7229     osf3*)
7230       if test "$GCC" = yes; then
7231         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7232         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'
7233       else
7234         allow_undefined_flag=' -expect_unresolved \*'
7235         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'
7236       fi
7237       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7238       hardcode_libdir_separator=:
7239       ;;
7240
7241     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7242       if test "$GCC" = yes; then
7243         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7244         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'
7245         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7246       else
7247         allow_undefined_flag=' -expect_unresolved \*'
7248         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'
7249         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7250         $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'
7251
7252         # Both c and cxx compiler support -rpath directly
7253         hardcode_libdir_flag_spec='-rpath $libdir'
7254       fi
7255       hardcode_libdir_separator=:
7256       ;;
7257
7258     sco3.2v5*)
7259       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7260       hardcode_shlibpath_var=no
7261       export_dynamic_flag_spec='${wl}-Bexport'
7262       runpath_var=LD_RUN_PATH
7263       hardcode_runpath_var=yes
7264       ;;
7265
7266     solaris*)
7267       no_undefined_flag=' -z text'
7268       if test "$GCC" = yes; then
7269         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7270         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7271           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7272       else
7273         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7274         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7275         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7276       fi
7277       hardcode_libdir_flag_spec='-R$libdir'
7278       hardcode_shlibpath_var=no
7279       case $host_os in
7280       solaris2.[0-5] | solaris2.[0-5].*) ;;
7281       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7282         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7283       esac
7284       link_all_deplibs=yes
7285       ;;
7286
7287     sunos4*)
7288       if test "x$host_vendor" = xsequent; then
7289         # Use $CC to link under sequent, because it throws in some extra .o
7290         # files that make .init and .fini sections work.
7291         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7292       else
7293         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7294       fi
7295       hardcode_libdir_flag_spec='-L$libdir'
7296       hardcode_direct=yes
7297       hardcode_minus_L=yes
7298       hardcode_shlibpath_var=no
7299       ;;
7300
7301     sysv4)
7302       case $host_vendor in
7303         sni)
7304           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7305           hardcode_direct=yes # is this really true???
7306         ;;
7307         siemens)
7308           ## LD is ld it makes a PLAMLIB
7309           ## CC just makes a GrossModule.
7310           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7311           reload_cmds='$CC -r -o $output$reload_objs'
7312           hardcode_direct=no
7313         ;;
7314         motorola)
7315           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7317         ;;
7318       esac
7319       runpath_var='LD_RUN_PATH'
7320       hardcode_shlibpath_var=no
7321       ;;
7322
7323     sysv4.3*)
7324       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325       hardcode_shlibpath_var=no
7326       export_dynamic_flag_spec='-Bexport'
7327       ;;
7328
7329     sysv4*MP*)
7330       if test -d /usr/nec; then
7331         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7332         hardcode_shlibpath_var=no
7333         runpath_var=LD_RUN_PATH
7334         hardcode_runpath_var=yes
7335         ld_shlibs=yes
7336       fi
7337       ;;
7338
7339     sysv4.2uw2*)
7340       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7341       hardcode_direct=yes
7342       hardcode_minus_L=no
7343       hardcode_shlibpath_var=no
7344       hardcode_runpath_var=yes
7345       runpath_var=LD_RUN_PATH
7346       ;;
7347
7348    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7349       no_undefined_flag='${wl}-z ${wl}text'
7350       if test "$GCC" = yes; then
7351         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7352       else
7353         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7354       fi
7355       runpath_var='LD_RUN_PATH'
7356       hardcode_shlibpath_var=no
7357       ;;
7358
7359     sysv5*)
7360       no_undefined_flag=' -z text'
7361       # $CC -shared without GNU ld will not create a library from C++
7362       # object files and a static libstdc++, better avoid it by now
7363       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7364       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7365                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7366       hardcode_libdir_flag_spec=
7367       hardcode_shlibpath_var=no
7368       runpath_var='LD_RUN_PATH'
7369       ;;
7370
7371     uts4*)
7372       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7373       hardcode_libdir_flag_spec='-L$libdir'
7374       hardcode_shlibpath_var=no
7375       ;;
7376
7377     *)
7378       ld_shlibs=no
7379       ;;
7380     esac
7381   fi
7382
7383 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7384 echo "${ECHO_T}$ld_shlibs" >&6
7385 test "$ld_shlibs" = no && can_build_shared=no
7386
7387 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7388 if test "$GCC" = yes; then
7389   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7390 fi
7391
7392 #
7393 # Do we need to explicitly link libc?
7394 #
7395 case "x$archive_cmds_need_lc" in
7396 x|xyes)
7397   # Assume -lc should be added
7398   archive_cmds_need_lc=yes
7399
7400   if test "$enable_shared" = yes && test "$GCC" = yes; then
7401     case $archive_cmds in
7402     *'~'*)
7403       # FIXME: we may have to deal with multi-command sequences.
7404       ;;
7405     '$CC '*)
7406       # Test whether the compiler implicitly links with -lc since on some
7407       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7408       # to ld, don't add -lc before -lgcc.
7409       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7410 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7411       $rm conftest*
7412       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7413
7414       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415   (eval $ac_compile) 2>&5
7416   ac_status=$?
7417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); } 2>conftest.err; then
7419         soname=conftest
7420         lib=conftest
7421         libobjs=conftest.$ac_objext
7422         deplibs=
7423         wl=$lt_prog_compiler_wl
7424         compiler_flags=-v
7425         linker_flags=-v
7426         verstring=
7427         output_objdir=.
7428         libname=conftest
7429         lt_save_allow_undefined_flag=$allow_undefined_flag
7430         allow_undefined_flag=
7431         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7432   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); }
7436         then
7437           archive_cmds_need_lc=no
7438         else
7439           archive_cmds_need_lc=yes
7440         fi
7441         allow_undefined_flag=$lt_save_allow_undefined_flag
7442       else
7443         cat conftest.err 1>&5
7444       fi
7445       $rm conftest*
7446       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7447 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7448       ;;
7449     esac
7450   fi
7451   ;;
7452 esac
7453
7454 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7455 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7456 hardcode_action=
7457 if test -n "$hardcode_libdir_flag_spec" || \
7458    test -n "$runpath_var " || \
7459    test "X$hardcode_automatic"="Xyes" ; then
7460
7461   # We can hardcode non-existant directories.
7462   if test "$hardcode_direct" != no &&
7463      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7464      # have to relink, otherwise we might link with an installed library
7465      # when we should be linking with a yet-to-be-installed one
7466      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7467      test "$hardcode_minus_L" != no; then
7468     # Linking always hardcodes the temporary library directory.
7469     hardcode_action=relink
7470   else
7471     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7472     hardcode_action=immediate
7473   fi
7474 else
7475   # We cannot hardcode anything, or else we can only hardcode existing
7476   # directories.
7477   hardcode_action=unsupported
7478 fi
7479 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7480 echo "${ECHO_T}$hardcode_action" >&6
7481
7482 if test "$hardcode_action" = relink; then
7483   # Fast installation is not supported
7484   enable_fast_install=no
7485 elif test "$shlibpath_overrides_runpath" = yes ||
7486      test "$enable_shared" = no; then
7487   # Fast installation is not necessary
7488   enable_fast_install=needless
7489 fi
7490
7491 striplib=
7492 old_striplib=
7493 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7494 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7495 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7496   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7497   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7498   echo "$as_me:$LINENO: result: yes" >&5
7499 echo "${ECHO_T}yes" >&6
7500 else
7501 # FIXME - insert some real tests, host_os isn't really good enough
7502   case $host_os in
7503    darwin*)
7504        if test -n "$STRIP" ; then
7505          striplib="$STRIP -x"
7506          echo "$as_me:$LINENO: result: yes" >&5
7507 echo "${ECHO_T}yes" >&6
7508        else
7509   echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6
7511 fi
7512        ;;
7513    *)
7514   echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6
7516     ;;
7517   esac
7518 fi
7519
7520 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7521 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7522 library_names_spec=
7523 libname_spec='lib$name'
7524 soname_spec=
7525 shrext=".so"
7526 postinstall_cmds=
7527 postuninstall_cmds=
7528 finish_cmds=
7529 finish_eval=
7530 shlibpath_var=
7531 shlibpath_overrides_runpath=unknown
7532 version_type=none
7533 dynamic_linker="$host_os ld.so"
7534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7535 if test "$GCC" = yes; then
7536   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7537   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7538     # if the path contains ";" then we assume it to be the separator
7539     # otherwise default to the standard path separator (i.e. ":") - it is
7540     # assumed that no part of a normal pathname contains ";" but that should
7541     # okay in the real world where ";" in dirpaths is itself problematic.
7542     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7543   else
7544     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7545   fi
7546 else
7547   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7548 fi
7549 need_lib_prefix=unknown
7550 hardcode_into_libs=no
7551
7552 # when you set need_version to no, make sure it does not cause -set_version
7553 # flags to be left without arguments
7554 need_version=unknown
7555
7556 case $host_os in
7557 aix3*)
7558   version_type=linux
7559   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7560   shlibpath_var=LIBPATH
7561
7562   # AIX 3 has no versioning support, so we append a major version to the name.
7563   soname_spec='${libname}${release}${shared_ext}$major'
7564   ;;
7565
7566 aix4* | aix5*)
7567   version_type=linux
7568   need_lib_prefix=no
7569   need_version=no
7570   hardcode_into_libs=yes
7571   if test "$host_cpu" = ia64; then
7572     # AIX 5 supports IA64
7573     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7574     shlibpath_var=LD_LIBRARY_PATH
7575   else
7576     # With GCC up to 2.95.x, collect2 would create an import file
7577     # for dependence libraries.  The import file would start with
7578     # the line `#! .'.  This would cause the generated library to
7579     # depend on `.', always an invalid library.  This was fixed in
7580     # development snapshots of GCC prior to 3.0.
7581     case $host_os in
7582       aix4 | aix4.[01] | aix4.[01].*)
7583       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7584            echo ' yes '
7585            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7586         :
7587       else
7588         can_build_shared=no
7589       fi
7590       ;;
7591     esac
7592     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7593     # soname into executable. Probably we can add versioning support to
7594     # collect2, so additional links can be useful in future.
7595     if test "$aix_use_runtimelinking" = yes; then
7596       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7597       # instead of lib<name>.a to let people know that these are not
7598       # typical AIX shared libraries.
7599       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7600     else
7601       # We preserve .a as extension for shared libraries through AIX4.2
7602       # and later when we are not doing run time linking.
7603       library_names_spec='${libname}${release}.a $libname.a'
7604       soname_spec='${libname}${release}${shared_ext}$major'
7605     fi
7606     shlibpath_var=LIBPATH
7607   fi
7608   ;;
7609
7610 amigaos*)
7611   library_names_spec='$libname.ixlibrary $libname.a'
7612   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7613   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'
7614   ;;
7615
7616 beos*)
7617   library_names_spec='${libname}${shared_ext}'
7618   dynamic_linker="$host_os ld.so"
7619   shlibpath_var=LIBRARY_PATH
7620   ;;
7621
7622 bsdi4*)
7623   version_type=linux
7624   need_version=no
7625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7626   soname_spec='${libname}${release}${shared_ext}$major'
7627   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7628   shlibpath_var=LD_LIBRARY_PATH
7629   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7630   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7631   # the default ld.so.conf also contains /usr/contrib/lib and
7632   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7633   # libtool to hard-code these into programs
7634   ;;
7635
7636 cygwin* | mingw* | pw32*)
7637   version_type=windows
7638   shrext=".dll"
7639   need_version=no
7640   need_lib_prefix=no
7641
7642   case $GCC,$host_os in
7643   yes,cygwin* | yes,mingw* | yes,pw32*)
7644     library_names_spec='$libname.dll.a'
7645     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7646     postinstall_cmds='base_file=`basename \${file}`~
7647       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7648       dldir=$destdir/`dirname \$dlpath`~
7649       test -d \$dldir || mkdir -p \$dldir~
7650       $install_prog $dir/$dlname \$dldir/$dlname'
7651     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7652       dlpath=$dir/\$dldll~
7653        $rm \$dlpath'
7654     shlibpath_overrides_runpath=yes
7655
7656     case $host_os in
7657     cygwin*)
7658       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7659       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7660       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7661       ;;
7662     mingw*)
7663       # MinGW DLLs use traditional 'lib' prefix
7664       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7665       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7666       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7667         # It is most probably a Windows format PATH printed by
7668         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7669         # path with ; separators, and with drive letters. We can handle the
7670         # drive letters (cygwin fileutils understands them), so leave them,
7671         # especially as we might pass files found there to a mingw objdump,
7672         # which wouldn't understand a cygwinified path. Ahh.
7673         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7674       else
7675         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7676       fi
7677       ;;
7678     pw32*)
7679       # pw32 DLLs use 'pw' prefix rather than 'lib'
7680       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7681       ;;
7682     esac
7683     ;;
7684
7685   *)
7686     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7687     ;;
7688   esac
7689   dynamic_linker='Win32 ld.exe'
7690   # FIXME: first we should search . and the directory the executable is in
7691   shlibpath_var=PATH
7692   ;;
7693
7694 darwin* | rhapsody*)
7695   dynamic_linker="$host_os dyld"
7696   version_type=darwin
7697   need_lib_prefix=no
7698   need_version=no
7699   # FIXME: Relying on posixy $() will cause problems for
7700   #        cross-compilation, but unfortunately the echo tests do not
7701   #        yet detect zsh echo's removal of \ escapes.
7702   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7703   soname_spec='${libname}${release}${major}$shared_ext'
7704   shlibpath_overrides_runpath=yes
7705   shlibpath_var=DYLD_LIBRARY_PATH
7706   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7707   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7708   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7709   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"`
7710   fi
7711   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7712   ;;
7713
7714 dgux*)
7715   version_type=linux
7716   need_lib_prefix=no
7717   need_version=no
7718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7719   soname_spec='${libname}${release}${shared_ext}$major'
7720   shlibpath_var=LD_LIBRARY_PATH
7721   ;;
7722
7723 freebsd1*)
7724   dynamic_linker=no
7725   ;;
7726
7727 freebsd*)
7728   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7729   version_type=freebsd-$objformat
7730   case $version_type in
7731     freebsd-elf*)
7732       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7733       need_version=no
7734       need_lib_prefix=no
7735       ;;
7736     freebsd-*)
7737       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7738       need_version=yes
7739       ;;
7740   esac
7741   shlibpath_var=LD_LIBRARY_PATH
7742   case $host_os in
7743   freebsd2*)
7744     shlibpath_overrides_runpath=yes
7745     ;;
7746   freebsd3.01* | freebsdelf3.01*)
7747     shlibpath_overrides_runpath=yes
7748     hardcode_into_libs=yes
7749     ;;
7750   *) # from 3.2 on
7751     shlibpath_overrides_runpath=no
7752     hardcode_into_libs=yes
7753     ;;
7754   esac
7755   ;;
7756
7757 gnu*)
7758   version_type=linux
7759   need_lib_prefix=no
7760   need_version=no
7761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7762   soname_spec='${libname}${release}${shared_ext}$major'
7763   shlibpath_var=LD_LIBRARY_PATH
7764   hardcode_into_libs=yes
7765   ;;
7766
7767 hpux9* | hpux10* | hpux11*)
7768   # Give a soname corresponding to the major version so that dld.sl refuses to
7769   # link against other versions.
7770   version_type=sunos
7771   need_lib_prefix=no
7772   need_version=no
7773   case "$host_cpu" in
7774   ia64*)
7775     shrext='.so'
7776     hardcode_into_libs=yes
7777     dynamic_linker="$host_os dld.so"
7778     shlibpath_var=LD_LIBRARY_PATH
7779     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7781     soname_spec='${libname}${release}${shared_ext}$major'
7782     if test "X$HPUX_IA64_MODE" = X32; then
7783       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7784     else
7785       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7786     fi
7787     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7788     ;;
7789    hppa*64*)
7790      shrext='.sl'
7791      hardcode_into_libs=yes
7792      dynamic_linker="$host_os dld.sl"
7793      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7794      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7795      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7796      soname_spec='${libname}${release}${shared_ext}$major'
7797      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7798      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7799      ;;
7800    *)
7801     shrext='.sl'
7802     dynamic_linker="$host_os dld.sl"
7803     shlibpath_var=SHLIB_PATH
7804     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7806     soname_spec='${libname}${release}${shared_ext}$major'
7807     ;;
7808   esac
7809   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7810   postinstall_cmds='chmod 555 $lib'
7811   ;;
7812
7813 irix5* | irix6* | nonstopux*)
7814   case $host_os in
7815     nonstopux*) version_type=nonstopux ;;
7816     *)
7817         if test "$lt_cv_prog_gnu_ld" = yes; then
7818                 version_type=linux
7819         else
7820                 version_type=irix
7821         fi ;;
7822   esac
7823   need_lib_prefix=no
7824   need_version=no
7825   soname_spec='${libname}${release}${shared_ext}$major'
7826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7827   case $host_os in
7828   irix5* | nonstopux*)
7829     libsuff= shlibsuff=
7830     ;;
7831   *)
7832     case $LD in # libtool.m4 will add one of these switches to LD
7833     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7834       libsuff= shlibsuff= libmagic=32-bit;;
7835     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7836       libsuff=32 shlibsuff=N32 libmagic=N32;;
7837     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7838       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7839     *) libsuff= shlibsuff= libmagic=never-match;;
7840     esac
7841     ;;
7842   esac
7843   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7844   shlibpath_overrides_runpath=no
7845   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7846   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7847   hardcode_into_libs=yes
7848   ;;
7849
7850 # No shared lib support for Linux oldld, aout, or coff.
7851 linux*oldld* | linux*aout* | linux*coff*)
7852   dynamic_linker=no
7853   ;;
7854
7855 # This must be Linux ELF.
7856 linux*)
7857   version_type=linux
7858   need_lib_prefix=no
7859   need_version=no
7860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7861   soname_spec='${libname}${release}${shared_ext}$major'
7862   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7863   shlibpath_var=LD_LIBRARY_PATH
7864   shlibpath_overrides_runpath=no
7865   # This implies no fast_install, which is unacceptable.
7866   # Some rework will be needed to allow for fast_install
7867   # before this can be enabled.
7868   hardcode_into_libs=yes
7869
7870   # We used to test for /lib/ld.so.1 and disable shared libraries on
7871   # powerpc, because MkLinux only supported shared libraries with the
7872   # GNU dynamic linker.  Since this was broken with cross compilers,
7873   # most powerpc-linux boxes support dynamic linking these days and
7874   # people can always --disable-shared, the test was removed, and we
7875   # assume the GNU/Linux dynamic linker is in use.
7876   dynamic_linker='GNU/Linux ld.so'
7877   ;;
7878
7879 netbsd*)
7880   version_type=sunos
7881   need_lib_prefix=no
7882   need_version=no
7883   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7885     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7886     dynamic_linker='NetBSD (a.out) ld.so'
7887   else
7888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7889     soname_spec='${libname}${release}${shared_ext}$major'
7890     dynamic_linker='NetBSD ld.elf_so'
7891   fi
7892   shlibpath_var=LD_LIBRARY_PATH
7893   shlibpath_overrides_runpath=yes
7894   hardcode_into_libs=yes
7895   ;;
7896
7897 newsos6)
7898   version_type=linux
7899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900   shlibpath_var=LD_LIBRARY_PATH
7901   shlibpath_overrides_runpath=yes
7902   ;;
7903
7904 nto-qnx)
7905   version_type=linux
7906   need_lib_prefix=no
7907   need_version=no
7908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7909   soname_spec='${libname}${release}${shared_ext}$major'
7910   shlibpath_var=LD_LIBRARY_PATH
7911   shlibpath_overrides_runpath=yes
7912   ;;
7913
7914 openbsd*)
7915   version_type=sunos
7916   need_lib_prefix=no
7917   need_version=no
7918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7920   shlibpath_var=LD_LIBRARY_PATH
7921   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7922     case $host_os in
7923       openbsd2.[89] | openbsd2.[89].*)
7924         shlibpath_overrides_runpath=no
7925         ;;
7926       *)
7927         shlibpath_overrides_runpath=yes
7928         ;;
7929       esac
7930   else
7931     shlibpath_overrides_runpath=yes
7932   fi
7933   ;;
7934
7935 os2*)
7936   libname_spec='$name'
7937   shrext=".dll"
7938   need_lib_prefix=no
7939   library_names_spec='$libname${shared_ext} $libname.a'
7940   dynamic_linker='OS/2 ld.exe'
7941   shlibpath_var=LIBPATH
7942   ;;
7943
7944 osf3* | osf4* | osf5*)
7945   version_type=osf
7946   need_lib_prefix=no
7947   need_version=no
7948   soname_spec='${libname}${release}${shared_ext}$major'
7949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950   shlibpath_var=LD_LIBRARY_PATH
7951   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7952   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7953   ;;
7954
7955 sco3.2v5*)
7956   version_type=osf
7957   soname_spec='${libname}${release}${shared_ext}$major'
7958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7959   shlibpath_var=LD_LIBRARY_PATH
7960   ;;
7961
7962 solaris*)
7963   version_type=linux
7964   need_lib_prefix=no
7965   need_version=no
7966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967   soname_spec='${libname}${release}${shared_ext}$major'
7968   shlibpath_var=LD_LIBRARY_PATH
7969   shlibpath_overrides_runpath=yes
7970   hardcode_into_libs=yes
7971   # ldd complains unless libraries are executable
7972   postinstall_cmds='chmod +x $lib'
7973   ;;
7974
7975 sunos4*)
7976   version_type=sunos
7977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7978   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7979   shlibpath_var=LD_LIBRARY_PATH
7980   shlibpath_overrides_runpath=yes
7981   if test "$with_gnu_ld" = yes; then
7982     need_lib_prefix=no
7983   fi
7984   need_version=yes
7985   ;;
7986
7987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7988   version_type=linux
7989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990   soname_spec='${libname}${release}${shared_ext}$major'
7991   shlibpath_var=LD_LIBRARY_PATH
7992   case $host_vendor in
7993     sni)
7994       shlibpath_overrides_runpath=no
7995       need_lib_prefix=no
7996       export_dynamic_flag_spec='${wl}-Blargedynsym'
7997       runpath_var=LD_RUN_PATH
7998       ;;
7999     siemens)
8000       need_lib_prefix=no
8001       ;;
8002     motorola)
8003       need_lib_prefix=no
8004       need_version=no
8005       shlibpath_overrides_runpath=no
8006       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8007       ;;
8008   esac
8009   ;;
8010
8011 sysv4*MP*)
8012   if test -d /usr/nec ;then
8013     version_type=linux
8014     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8015     soname_spec='$libname${shared_ext}.$major'
8016     shlibpath_var=LD_LIBRARY_PATH
8017   fi
8018   ;;
8019
8020 uts4*)
8021   version_type=linux
8022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8023   soname_spec='${libname}${release}${shared_ext}$major'
8024   shlibpath_var=LD_LIBRARY_PATH
8025   ;;
8026
8027 *)
8028   dynamic_linker=no
8029   ;;
8030 esac
8031 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8032 echo "${ECHO_T}$dynamic_linker" >&6
8033 test "$dynamic_linker" = no && can_build_shared=no
8034
8035 if test "x$enable_dlopen" != xyes; then
8036   enable_dlopen=unknown
8037   enable_dlopen_self=unknown
8038   enable_dlopen_self_static=unknown
8039 else
8040   lt_cv_dlopen=no
8041   lt_cv_dlopen_libs=
8042
8043   case $host_os in
8044   beos*)
8045     lt_cv_dlopen="load_add_on"
8046     lt_cv_dlopen_libs=
8047     lt_cv_dlopen_self=yes
8048     ;;
8049
8050   mingw* | pw32*)
8051     lt_cv_dlopen="LoadLibrary"
8052     lt_cv_dlopen_libs=
8053    ;;
8054
8055   cygwin*)
8056     lt_cv_dlopen="dlopen"
8057     lt_cv_dlopen_libs=
8058    ;;
8059
8060   darwin*)
8061   # if libdl is installed we need to link against it
8062     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8063 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8064 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8065   echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067   ac_check_lib_save_LIBS=$LIBS
8068 LIBS="-ldl  $LIBS"
8069 cat >conftest.$ac_ext <<_ACEOF
8070 #line $LINENO "configure"
8071 /* confdefs.h.  */
8072 _ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h.  */
8076
8077 /* Override any gcc2 internal prototype to avoid an error.  */
8078 #ifdef __cplusplus
8079 extern "C"
8080 #endif
8081 /* We use char because int might match the return type of a gcc2
8082    builtin and then its argument prototype would still apply.  */
8083 char dlopen ();
8084 int
8085 main ()
8086 {
8087 dlopen ();
8088   ;
8089   return 0;
8090 }
8091 _ACEOF
8092 rm -f conftest.$ac_objext conftest$ac_exeext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8094   (eval $ac_link) 2>&5
8095   ac_status=$?
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); } &&
8098          { ac_try='test -s conftest$ac_exeext'
8099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100   (eval $ac_try) 2>&5
8101   ac_status=$?
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); }; }; then
8104   ac_cv_lib_dl_dlopen=yes
8105 else
8106   echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8108
8109 ac_cv_lib_dl_dlopen=no
8110 fi
8111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8112 LIBS=$ac_check_lib_save_LIBS
8113 fi
8114 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8115 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8116 if test $ac_cv_lib_dl_dlopen = yes; then
8117   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8118 else
8119
8120     lt_cv_dlopen="dyld"
8121     lt_cv_dlopen_libs=
8122     lt_cv_dlopen_self=yes
8123
8124 fi
8125
8126    ;;
8127
8128   *)
8129     echo "$as_me:$LINENO: checking for shl_load" >&5
8130 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8131 if test "${ac_cv_func_shl_load+set}" = set; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   cat >conftest.$ac_ext <<_ACEOF
8135 #line $LINENO "configure"
8136 /* confdefs.h.  */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h.  */
8141 /* System header to define __stub macros and hopefully few prototypes,
8142     which can conflict with char shl_load (); below.
8143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8144     <limits.h> exists even on freestanding compilers.  */
8145 #ifdef __STDC__
8146 # include <limits.h>
8147 #else
8148 # include <assert.h>
8149 #endif
8150 /* Override any gcc2 internal prototype to avoid an error.  */
8151 #ifdef __cplusplus
8152 extern "C"
8153 {
8154 #endif
8155 /* We use char because int might match the return type of a gcc2
8156    builtin and then its argument prototype would still apply.  */
8157 char shl_load ();
8158 /* The GNU C library defines this for functions which it implements
8159     to always fail with ENOSYS.  Some functions are actually named
8160     something starting with __ and the normal name is an alias.  */
8161 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8162 choke me
8163 #else
8164 char (*f) () = shl_load;
8165 #endif
8166 #ifdef __cplusplus
8167 }
8168 #endif
8169
8170 int
8171 main ()
8172 {
8173 return f != shl_load;
8174   ;
8175   return 0;
8176 }
8177 _ACEOF
8178 rm -f conftest.$ac_objext conftest$ac_exeext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180   (eval $ac_link) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); } &&
8184          { ac_try='test -s conftest$ac_exeext'
8185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   ac_cv_func_shl_load=yes
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_cv_func_shl_load=no
8196 fi
8197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8198 fi
8199 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8200 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8201 if test $ac_cv_func_shl_load = yes; then
8202   lt_cv_dlopen="shl_load"
8203 else
8204   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8205 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8206 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8207   echo $ECHO_N "(cached) $ECHO_C" >&6
8208 else
8209   ac_check_lib_save_LIBS=$LIBS
8210 LIBS="-ldld  $LIBS"
8211 cat >conftest.$ac_ext <<_ACEOF
8212 #line $LINENO "configure"
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218
8219 /* Override any gcc2 internal prototype to avoid an error.  */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 /* We use char because int might match the return type of a gcc2
8224    builtin and then its argument prototype would still apply.  */
8225 char shl_load ();
8226 int
8227 main ()
8228 {
8229 shl_load ();
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236   (eval $ac_link) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } &&
8240          { ac_try='test -s conftest$ac_exeext'
8241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242   (eval $ac_try) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); }; }; then
8246   ac_cv_lib_dld_shl_load=yes
8247 else
8248   echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251 ac_cv_lib_dld_shl_load=no
8252 fi
8253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8254 LIBS=$ac_check_lib_save_LIBS
8255 fi
8256 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8257 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8258 if test $ac_cv_lib_dld_shl_load = yes; then
8259   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8260 else
8261   echo "$as_me:$LINENO: checking for dlopen" >&5
8262 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8263 if test "${ac_cv_func_dlopen+set}" = set; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   cat >conftest.$ac_ext <<_ACEOF
8267 #line $LINENO "configure"
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273 /* System header to define __stub macros and hopefully few prototypes,
8274     which can conflict with char dlopen (); below.
8275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8276     <limits.h> exists even on freestanding compilers.  */
8277 #ifdef __STDC__
8278 # include <limits.h>
8279 #else
8280 # include <assert.h>
8281 #endif
8282 /* Override any gcc2 internal prototype to avoid an error.  */
8283 #ifdef __cplusplus
8284 extern "C"
8285 {
8286 #endif
8287 /* We use char because int might match the return type of a gcc2
8288    builtin and then its argument prototype would still apply.  */
8289 char dlopen ();
8290 /* The GNU C library defines this for functions which it implements
8291     to always fail with ENOSYS.  Some functions are actually named
8292     something starting with __ and the normal name is an alias.  */
8293 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8294 choke me
8295 #else
8296 char (*f) () = dlopen;
8297 #endif
8298 #ifdef __cplusplus
8299 }
8300 #endif
8301
8302 int
8303 main ()
8304 {
8305 return f != dlopen;
8306   ;
8307   return 0;
8308 }
8309 _ACEOF
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312   (eval $ac_link) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } &&
8316          { ac_try='test -s conftest$ac_exeext'
8317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318   (eval $ac_try) 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; }; then
8322   ac_cv_func_dlopen=yes
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 ac_cv_func_dlopen=no
8328 fi
8329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8330 fi
8331 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8332 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8333 if test $ac_cv_func_dlopen = yes; then
8334   lt_cv_dlopen="dlopen"
8335 else
8336   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8337 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8338 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   ac_check_lib_save_LIBS=$LIBS
8342 LIBS="-ldl  $LIBS"
8343 cat >conftest.$ac_ext <<_ACEOF
8344 #line $LINENO "configure"
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350
8351 /* Override any gcc2 internal prototype to avoid an error.  */
8352 #ifdef __cplusplus
8353 extern "C"
8354 #endif
8355 /* We use char because int might match the return type of a gcc2
8356    builtin and then its argument prototype would still apply.  */
8357 char dlopen ();
8358 int
8359 main ()
8360 {
8361 dlopen ();
8362   ;
8363   return 0;
8364 }
8365 _ACEOF
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368   (eval $ac_link) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } &&
8372          { ac_try='test -s conftest$ac_exeext'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   ac_cv_lib_dl_dlopen=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_lib_dl_dlopen=no
8384 fi
8385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8387 fi
8388 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8389 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8390 if test $ac_cv_lib_dl_dlopen = yes; then
8391   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8392 else
8393   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8394 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8395 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8396   echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398   ac_check_lib_save_LIBS=$LIBS
8399 LIBS="-lsvld  $LIBS"
8400 cat >conftest.$ac_ext <<_ACEOF
8401 #line $LINENO "configure"
8402 /* confdefs.h.  */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h.  */
8407
8408 /* Override any gcc2 internal prototype to avoid an error.  */
8409 #ifdef __cplusplus
8410 extern "C"
8411 #endif
8412 /* We use char because int might match the return type of a gcc2
8413    builtin and then its argument prototype would still apply.  */
8414 char dlopen ();
8415 int
8416 main ()
8417 {
8418 dlopen ();
8419   ;
8420   return 0;
8421 }
8422 _ACEOF
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425   (eval $ac_link) 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); } &&
8429          { ac_try='test -s conftest$ac_exeext'
8430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431   (eval $ac_try) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); }; }; then
8435   ac_cv_lib_svld_dlopen=yes
8436 else
8437   echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440 ac_cv_lib_svld_dlopen=no
8441 fi
8442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8443 LIBS=$ac_check_lib_save_LIBS
8444 fi
8445 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8446 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8447 if test $ac_cv_lib_svld_dlopen = yes; then
8448   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8449 else
8450   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8451 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8452 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   ac_check_lib_save_LIBS=$LIBS
8456 LIBS="-ldld  $LIBS"
8457 cat >conftest.$ac_ext <<_ACEOF
8458 #line $LINENO "configure"
8459 /* confdefs.h.  */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h.  */
8464
8465 /* Override any gcc2 internal prototype to avoid an error.  */
8466 #ifdef __cplusplus
8467 extern "C"
8468 #endif
8469 /* We use char because int might match the return type of a gcc2
8470    builtin and then its argument prototype would still apply.  */
8471 char dld_link ();
8472 int
8473 main ()
8474 {
8475 dld_link ();
8476   ;
8477   return 0;
8478 }
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482   (eval $ac_link) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); } &&
8486          { ac_try='test -s conftest$ac_exeext'
8487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488   (eval $ac_try) 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; }; then
8492   ac_cv_lib_dld_dld_link=yes
8493 else
8494   echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8496
8497 ac_cv_lib_dld_dld_link=no
8498 fi
8499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8500 LIBS=$ac_check_lib_save_LIBS
8501 fi
8502 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8503 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8504 if test $ac_cv_lib_dld_dld_link = yes; then
8505   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8506 fi
8507
8508
8509 fi
8510
8511
8512 fi
8513
8514
8515 fi
8516
8517
8518 fi
8519
8520
8521 fi
8522
8523     ;;
8524   esac
8525
8526   if test "x$lt_cv_dlopen" != xno; then
8527     enable_dlopen=yes
8528   else
8529     enable_dlopen=no
8530   fi
8531
8532   case $lt_cv_dlopen in
8533   dlopen)
8534     save_CPPFLAGS="$CPPFLAGS"
8535     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8536
8537     save_LDFLAGS="$LDFLAGS"
8538     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8539
8540     save_LIBS="$LIBS"
8541     LIBS="$lt_cv_dlopen_libs $LIBS"
8542
8543     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8544 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8545 if test "${lt_cv_dlopen_self+set}" = set; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548           if test "$cross_compiling" = yes; then :
8549   lt_cv_dlopen_self=cross
8550 else
8551   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8552   lt_status=$lt_dlunknown
8553   cat > conftest.$ac_ext <<EOF
8554 #line 8554 "configure"
8555 #include "confdefs.h"
8556
8557 #if HAVE_DLFCN_H
8558 #include <dlfcn.h>
8559 #endif
8560
8561 #include <stdio.h>
8562
8563 #ifdef RTLD_GLOBAL
8564 #  define LT_DLGLOBAL           RTLD_GLOBAL
8565 #else
8566 #  ifdef DL_GLOBAL
8567 #    define LT_DLGLOBAL         DL_GLOBAL
8568 #  else
8569 #    define LT_DLGLOBAL         0
8570 #  endif
8571 #endif
8572
8573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8574    find out it does not work in some platform. */
8575 #ifndef LT_DLLAZY_OR_NOW
8576 #  ifdef RTLD_LAZY
8577 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8578 #  else
8579 #    ifdef DL_LAZY
8580 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8581 #    else
8582 #      ifdef RTLD_NOW
8583 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8584 #      else
8585 #        ifdef DL_NOW
8586 #          define LT_DLLAZY_OR_NOW      DL_NOW
8587 #        else
8588 #          define LT_DLLAZY_OR_NOW      0
8589 #        endif
8590 #      endif
8591 #    endif
8592 #  endif
8593 #endif
8594
8595 #ifdef __cplusplus
8596 extern "C" void exit (int);
8597 #endif
8598
8599 void fnord() { int i=42;}
8600 int main ()
8601 {
8602   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8603   int status = $lt_dlunknown;
8604
8605   if (self)
8606     {
8607       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8608       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8609       /* dlclose (self); */
8610     }
8611
8612     exit (status);
8613 }
8614 EOF
8615   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616   (eval $ac_link) 2>&5
8617   ac_status=$?
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8620     (./conftest; exit; ) 2>/dev/null
8621     lt_status=$?
8622     case x$lt_status in
8623       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8624       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8625       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8626     esac
8627   else :
8628     # compilation failed
8629     lt_cv_dlopen_self=no
8630   fi
8631 fi
8632 rm -fr conftest*
8633
8634
8635 fi
8636 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8637 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8638
8639     if test "x$lt_cv_dlopen_self" = xyes; then
8640       LDFLAGS="$LDFLAGS $link_static_flag"
8641       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8642 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8643 if test "${lt_cv_dlopen_self_static+set}" = set; then
8644   echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646           if test "$cross_compiling" = yes; then :
8647   lt_cv_dlopen_self_static=cross
8648 else
8649   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8650   lt_status=$lt_dlunknown
8651   cat > conftest.$ac_ext <<EOF
8652 #line 8652 "configure"
8653 #include "confdefs.h"
8654
8655 #if HAVE_DLFCN_H
8656 #include <dlfcn.h>
8657 #endif
8658
8659 #include <stdio.h>
8660
8661 #ifdef RTLD_GLOBAL
8662 #  define LT_DLGLOBAL           RTLD_GLOBAL
8663 #else
8664 #  ifdef DL_GLOBAL
8665 #    define LT_DLGLOBAL         DL_GLOBAL
8666 #  else
8667 #    define LT_DLGLOBAL         0
8668 #  endif
8669 #endif
8670
8671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8672    find out it does not work in some platform. */
8673 #ifndef LT_DLLAZY_OR_NOW
8674 #  ifdef RTLD_LAZY
8675 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8676 #  else
8677 #    ifdef DL_LAZY
8678 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8679 #    else
8680 #      ifdef RTLD_NOW
8681 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8682 #      else
8683 #        ifdef DL_NOW
8684 #          define LT_DLLAZY_OR_NOW      DL_NOW
8685 #        else
8686 #          define LT_DLLAZY_OR_NOW      0
8687 #        endif
8688 #      endif
8689 #    endif
8690 #  endif
8691 #endif
8692
8693 #ifdef __cplusplus
8694 extern "C" void exit (int);
8695 #endif
8696
8697 void fnord() { int i=42;}
8698 int main ()
8699 {
8700   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8701   int status = $lt_dlunknown;
8702
8703   if (self)
8704     {
8705       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8706       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8707       /* dlclose (self); */
8708     }
8709
8710     exit (status);
8711 }
8712 EOF
8713   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714   (eval $ac_link) 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8718     (./conftest; exit; ) 2>/dev/null
8719     lt_status=$?
8720     case x$lt_status in
8721       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8722       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8723       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8724     esac
8725   else :
8726     # compilation failed
8727     lt_cv_dlopen_self_static=no
8728   fi
8729 fi
8730 rm -fr conftest*
8731
8732
8733 fi
8734 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8735 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8736     fi
8737
8738     CPPFLAGS="$save_CPPFLAGS"
8739     LDFLAGS="$save_LDFLAGS"
8740     LIBS="$save_LIBS"
8741     ;;
8742   esac
8743
8744   case $lt_cv_dlopen_self in
8745   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8746   *) enable_dlopen_self=unknown ;;
8747   esac
8748
8749   case $lt_cv_dlopen_self_static in
8750   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8751   *) enable_dlopen_self_static=unknown ;;
8752   esac
8753 fi
8754
8755
8756 # Report which librarie types wil actually be built
8757 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8758 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8759 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8760 echo "${ECHO_T}$can_build_shared" >&6
8761
8762 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8763 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8764 test "$can_build_shared" = "no" && enable_shared=no
8765
8766 # On AIX, shared libraries and static libraries use the same namespace, and
8767 # are all built from PIC.
8768 case "$host_os" in
8769 aix3*)
8770   test "$enable_shared" = yes && enable_static=no
8771   if test -n "$RANLIB"; then
8772     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8773     postinstall_cmds='$RANLIB $lib'
8774   fi
8775   ;;
8776
8777 aix4*)
8778   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8779     test "$enable_shared" = yes && enable_static=no
8780   fi
8781   ;;
8782   darwin* | rhapsody*)
8783   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8784     archive_cmds_need_lc=no
8785     case "$host_os" in
8786     rhapsody* | darwin1.[012])
8787       allow_undefined_flag='-undefined suppress'
8788       ;;
8789     *) # Darwin 1.3 on
8790       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8791       ;;
8792     esac
8793     # FIXME: Relying on posixy $() will cause problems for
8794     #        cross-compilation, but unfortunately the echo tests do not
8795     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8796     #          `"' quotes if we put them in here... so don't!
8797                 output_verbose_link_cmd='echo'
8798     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8799     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8800     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8801                   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}'
8802                   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}'
8803     hardcode_direct=no
8804     hardcode_automatic=yes
8805     hardcode_shlibpath_var=unsupported
8806     whole_archive_flag_spec='-all_load $convenience'
8807     link_all_deplibs=yes
8808     fi
8809     ;;
8810 esac
8811 echo "$as_me:$LINENO: result: $enable_shared" >&5
8812 echo "${ECHO_T}$enable_shared" >&6
8813
8814 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8815 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8816 # Make sure either enable_shared or enable_static is yes.
8817 test "$enable_shared" = yes || enable_static=yes
8818 echo "$as_me:$LINENO: result: $enable_static" >&5
8819 echo "${ECHO_T}$enable_static" >&6
8820
8821 # The else clause should only fire when bootstrapping the
8822 # libtool distribution, otherwise you forgot to ship ltmain.sh
8823 # with your package, and you will get complaints that there are
8824 # no rules to generate ltmain.sh.
8825 if test -f "$ltmain"; then
8826   # See if we are running on zsh, and set the options which allow our commands through
8827   # without removal of \ escapes.
8828   if test -n "${ZSH_VERSION+set}" ; then
8829     setopt NO_GLOB_SUBST
8830   fi
8831   # Now quote all the things that may contain metacharacters while being
8832   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8833   # variables and quote the copies for generation of the libtool script.
8834   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8835     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8836     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8837     deplibs_check_method reload_flag reload_cmds need_locks \
8838     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8839     lt_cv_sys_global_symbol_to_c_name_address \
8840     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8841     old_postinstall_cmds old_postuninstall_cmds \
8842     compiler \
8843     CC \
8844     LD \
8845     lt_prog_compiler_wl \
8846     lt_prog_compiler_pic \
8847     lt_prog_compiler_static \
8848     lt_prog_compiler_no_builtin_flag \
8849     export_dynamic_flag_spec \
8850     thread_safe_flag_spec \
8851     whole_archive_flag_spec \
8852     enable_shared_with_static_runtimes \
8853     old_archive_cmds \
8854     old_archive_from_new_cmds \
8855     predep_objects \
8856     postdep_objects \
8857     predeps \
8858     postdeps \
8859     compiler_lib_search_path \
8860     archive_cmds \
8861     archive_expsym_cmds \
8862     postinstall_cmds \
8863     postuninstall_cmds \
8864     old_archive_from_expsyms_cmds \
8865     allow_undefined_flag \
8866     no_undefined_flag \
8867     export_symbols_cmds \
8868     hardcode_libdir_flag_spec \
8869     hardcode_libdir_flag_spec_ld \
8870     hardcode_libdir_separator \
8871     hardcode_automatic \
8872     module_cmds \
8873     module_expsym_cmds \
8874     lt_cv_prog_compiler_c_o \
8875     exclude_expsyms \
8876     include_expsyms; do
8877
8878     case $var in
8879     old_archive_cmds | \
8880     old_archive_from_new_cmds | \
8881     archive_cmds | \
8882     archive_expsym_cmds | \
8883     module_cmds | \
8884     module_expsym_cmds | \
8885     old_archive_from_expsyms_cmds | \
8886     export_symbols_cmds | \
8887     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8888     postinstall_cmds | postuninstall_cmds | \
8889     old_postinstall_cmds | old_postuninstall_cmds | \
8890     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8891       # Double-quote double-evaled strings.
8892       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8893       ;;
8894     *)
8895       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8896       ;;
8897     esac
8898   done
8899
8900   case $lt_echo in
8901   *'\$0 --fallback-echo"')
8902     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8903     ;;
8904   esac
8905
8906 cfgfile="${ofile}T"
8907   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8908   $rm -f "$cfgfile"
8909   { echo "$as_me:$LINENO: creating $ofile" >&5
8910 echo "$as_me: creating $ofile" >&6;}
8911
8912   cat <<__EOF__ >> "$cfgfile"
8913 #! $SHELL
8914
8915 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8916 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8917 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8918 #
8919 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8920 # Free Software Foundation, Inc.
8921 #
8922 # This file is part of GNU Libtool:
8923 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8924 #
8925 # This program is free software; you can redistribute it and/or modify
8926 # it under the terms of the GNU General Public License as published by
8927 # the Free Software Foundation; either version 2 of the License, or
8928 # (at your option) any later version.
8929 #
8930 # This program is distributed in the hope that it will be useful, but
8931 # WITHOUT ANY WARRANTY; without even the implied warranty of
8932 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8933 # General Public License for more details.
8934 #
8935 # You should have received a copy of the GNU General Public License
8936 # along with this program; if not, write to the Free Software
8937 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8938 #
8939 # As a special exception to the GNU General Public License, if you
8940 # distribute this file as part of a program that contains a
8941 # configuration script generated by Autoconf, you may include it under
8942 # the same distribution terms that you use for the rest of that program.
8943
8944 # A sed program that does not truncate output.
8945 SED=$lt_SED
8946
8947 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8948 Xsed="$SED -e s/^X//"
8949
8950 # The HP-UX ksh and POSIX shell print the target directory to stdout
8951 # if CDPATH is set.
8952 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8953
8954 # The names of the tagged configurations supported by this script.
8955 available_tags=
8956
8957 # ### BEGIN LIBTOOL CONFIG
8958
8959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8960
8961 # Shell to use when invoking shell scripts.
8962 SHELL=$lt_SHELL
8963
8964 # Whether or not to build shared libraries.
8965 build_libtool_libs=$enable_shared
8966
8967 # Whether or not to build static libraries.
8968 build_old_libs=$enable_static
8969
8970 # Whether or not to add -lc for building shared libraries.
8971 build_libtool_need_lc=$archive_cmds_need_lc
8972
8973 # Whether or not to disallow shared libs when runtime libs are static
8974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8975
8976 # Whether or not to optimize for fast installation.
8977 fast_install=$enable_fast_install
8978
8979 # The host system.
8980 host_alias=$host_alias
8981 host=$host
8982
8983 # An echo program that does not interpret backslashes.
8984 echo=$lt_echo
8985
8986 # The archiver.
8987 AR=$lt_AR
8988 AR_FLAGS=$lt_AR_FLAGS
8989
8990 # A C compiler.
8991 LTCC=$lt_LTCC
8992
8993 # A language-specific compiler.
8994 CC=$lt_compiler
8995
8996 # Is the compiler the GNU C compiler?
8997 with_gcc=$GCC
8998
8999 # An ERE matcher.
9000 EGREP=$lt_EGREP
9001
9002 # The linker used to build libraries.
9003 LD=$lt_LD
9004
9005 # Whether we need hard or soft links.
9006 LN_S=$lt_LN_S
9007
9008 # A BSD-compatible nm program.
9009 NM=$lt_NM
9010
9011 # A symbol stripping program
9012 STRIP=$STRIP
9013
9014 # Used to examine libraries when file_magic_cmd begins "file"
9015 MAGIC_CMD=$MAGIC_CMD
9016
9017 # Used on cygwin: DLL creation program.
9018 DLLTOOL="$DLLTOOL"
9019
9020 # Used on cygwin: object dumper.
9021 OBJDUMP="$OBJDUMP"
9022
9023 # Used on cygwin: assembler.
9024 AS="$AS"
9025
9026 # The name of the directory that contains temporary libtool files.
9027 objdir=$objdir
9028
9029 # How to create reloadable object files.
9030 reload_flag=$lt_reload_flag
9031 reload_cmds=$lt_reload_cmds
9032
9033 # How to pass a linker flag through the compiler.
9034 wl=$lt_lt_prog_compiler_wl
9035
9036 # Object file suffix (normally "o").
9037 objext="$ac_objext"
9038
9039 # Old archive suffix (normally "a").
9040 libext="$libext"
9041
9042 # Shared library suffix (normally ".so").
9043 shrext='$shrext'
9044
9045 # Executable file suffix (normally "").
9046 exeext="$exeext"
9047
9048 # Additional compiler flags for building library objects.
9049 pic_flag=$lt_lt_prog_compiler_pic
9050 pic_mode=$pic_mode
9051
9052 # What is the maximum length of a command?
9053 max_cmd_len=$lt_cv_sys_max_cmd_len
9054
9055 # Does compiler simultaneously support -c and -o options?
9056 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9057
9058 # Must we lock files when doing compilation ?
9059 need_locks=$lt_need_locks
9060
9061 # Do we need the lib prefix for modules?
9062 need_lib_prefix=$need_lib_prefix
9063
9064 # Do we need a version for libraries?
9065 need_version=$need_version
9066
9067 # Whether dlopen is supported.
9068 dlopen_support=$enable_dlopen
9069
9070 # Whether dlopen of programs is supported.
9071 dlopen_self=$enable_dlopen_self
9072
9073 # Whether dlopen of statically linked programs is supported.
9074 dlopen_self_static=$enable_dlopen_self_static
9075
9076 # Compiler flag to prevent dynamic linking.
9077 link_static_flag=$lt_lt_prog_compiler_static
9078
9079 # Compiler flag to turn off builtin functions.
9080 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9081
9082 # Compiler flag to allow reflexive dlopens.
9083 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9084
9085 # Compiler flag to generate shared objects directly from archives.
9086 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9087
9088 # Compiler flag to generate thread-safe objects.
9089 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9090
9091 # Library versioning type.
9092 version_type=$version_type
9093
9094 # Format of library name prefix.
9095 libname_spec=$lt_libname_spec
9096
9097 # List of archive names.  First name is the real one, the rest are links.
9098 # The last name is the one that the linker finds with -lNAME.
9099 library_names_spec=$lt_library_names_spec
9100
9101 # The coded name of the library, if different from the real name.
9102 soname_spec=$lt_soname_spec
9103
9104 # Commands used to build and install an old-style archive.
9105 RANLIB=$lt_RANLIB
9106 old_archive_cmds=$lt_old_archive_cmds
9107 old_postinstall_cmds=$lt_old_postinstall_cmds
9108 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9109
9110 # Create an old-style archive from a shared archive.
9111 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9112
9113 # Create a temporary old-style archive to link instead of a shared archive.
9114 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9115
9116 # Commands used to build and install a shared archive.
9117 archive_cmds=$lt_archive_cmds
9118 archive_expsym_cmds=$lt_archive_expsym_cmds
9119 postinstall_cmds=$lt_postinstall_cmds
9120 postuninstall_cmds=$lt_postuninstall_cmds
9121
9122 # Commands used to build a loadable module (assumed same as above if empty)
9123 module_cmds=$lt_module_cmds
9124 module_expsym_cmds=$lt_module_expsym_cmds
9125
9126 # Commands to strip libraries.
9127 old_striplib=$lt_old_striplib
9128 striplib=$lt_striplib
9129
9130 # Dependencies to place before the objects being linked to create a
9131 # shared library.
9132 predep_objects=$lt_predep_objects
9133
9134 # Dependencies to place after the objects being linked to create a
9135 # shared library.
9136 postdep_objects=$lt_postdep_objects
9137
9138 # Dependencies to place before the objects being linked to create a
9139 # shared library.
9140 predeps=$lt_predeps
9141
9142 # Dependencies to place after the objects being linked to create a
9143 # shared library.
9144 postdeps=$lt_postdeps
9145
9146 # The library search path used internally by the compiler when linking
9147 # a shared library.
9148 compiler_lib_search_path=$lt_compiler_lib_search_path
9149
9150 # Method to check whether dependent libraries are shared objects.
9151 deplibs_check_method=$lt_deplibs_check_method
9152
9153 # Command to use when deplibs_check_method == file_magic.
9154 file_magic_cmd=$lt_file_magic_cmd
9155
9156 # Flag that allows shared libraries with undefined symbols to be built.
9157 allow_undefined_flag=$lt_allow_undefined_flag
9158
9159 # Flag that forces no undefined symbols.
9160 no_undefined_flag=$lt_no_undefined_flag
9161
9162 # Commands used to finish a libtool library installation in a directory.
9163 finish_cmds=$lt_finish_cmds
9164
9165 # Same as above, but a single script fragment to be evaled but not shown.
9166 finish_eval=$lt_finish_eval
9167
9168 # Take the output of nm and produce a listing of raw symbols and C names.
9169 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9170
9171 # Transform the output of nm in a proper C declaration
9172 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9173
9174 # Transform the output of nm in a C name address pair
9175 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9176
9177 # This is the shared library runtime path variable.
9178 runpath_var=$runpath_var
9179
9180 # This is the shared library path variable.
9181 shlibpath_var=$shlibpath_var
9182
9183 # Is shlibpath searched before the hard-coded library search path?
9184 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9185
9186 # How to hardcode a shared library path into an executable.
9187 hardcode_action=$hardcode_action
9188
9189 # Whether we should hardcode library paths into libraries.
9190 hardcode_into_libs=$hardcode_into_libs
9191
9192 # Flag to hardcode \$libdir into a binary during linking.
9193 # This must work even if \$libdir does not exist.
9194 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9195
9196 # If ld is used when linking, flag to hardcode \$libdir into
9197 # a binary during linking. This must work even if \$libdir does
9198 # not exist.
9199 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9200
9201 # Whether we need a single -rpath flag with a separated argument.
9202 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9203
9204 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9205 # resulting binary.
9206 hardcode_direct=$hardcode_direct
9207
9208 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9209 # resulting binary.
9210 hardcode_minus_L=$hardcode_minus_L
9211
9212 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9213 # the resulting binary.
9214 hardcode_shlibpath_var=$hardcode_shlibpath_var
9215
9216 # Set to yes if building a shared library automatically hardcodes DIR into the library
9217 # and all subsequent libraries and executables linked against it.
9218 hardcode_automatic=$hardcode_automatic
9219
9220 # Variables whose values should be saved in libtool wrapper scripts and
9221 # restored at relink time.
9222 variables_saved_for_relink="$variables_saved_for_relink"
9223
9224 # Whether libtool must link a program against all its dependency libraries.
9225 link_all_deplibs=$link_all_deplibs
9226
9227 # Compile-time system search path for libraries
9228 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9229
9230 # Run-time system search path for libraries
9231 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9232
9233 # Fix the shell variable \$srcfile for the compiler.
9234 fix_srcfile_path="$fix_srcfile_path"
9235
9236 # Set to yes if exported symbols are required.
9237 always_export_symbols=$always_export_symbols
9238
9239 # The commands to list exported symbols.
9240 export_symbols_cmds=$lt_export_symbols_cmds
9241
9242 # The commands to extract the exported symbol list from a shared archive.
9243 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9244
9245 # Symbols that should not be listed in the preloaded symbols.
9246 exclude_expsyms=$lt_exclude_expsyms
9247
9248 # Symbols that must always be exported.
9249 include_expsyms=$lt_include_expsyms
9250
9251 # ### END LIBTOOL CONFIG
9252
9253 __EOF__
9254
9255
9256   case $host_os in
9257   aix3*)
9258     cat <<\EOF >> "$cfgfile"
9259
9260 # AIX sometimes has problems with the GCC collect2 program.  For some
9261 # reason, if we set the COLLECT_NAMES environment variable, the problems
9262 # vanish in a puff of smoke.
9263 if test "X${COLLECT_NAMES+set}" != Xset; then
9264   COLLECT_NAMES=
9265   export COLLECT_NAMES
9266 fi
9267 EOF
9268     ;;
9269   esac
9270
9271   # We use sed instead of cat because bash on DJGPP gets confused if
9272   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9273   # text mode, it properly converts lines to CR/LF.  This bash problem
9274   # is reportedly fixed, but why not run on old versions too?
9275   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9276
9277   mv -f "$cfgfile" "$ofile" || \
9278     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9279   chmod +x "$ofile"
9280
9281 else
9282   # If there is no Makefile yet, we rely on a make rule to execute
9283   # `config.status --recheck' to rerun these tests and create the
9284   # libtool script then.
9285   test -f Makefile && make "$ltmain"
9286 fi
9287
9288
9289 ac_ext=c
9290 ac_cpp='$CPP $CPPFLAGS'
9291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9294
9295 CC="$lt_save_CC"
9296
9297
9298 # Check whether --with-tags or --without-tags was given.
9299 if test "${with_tags+set}" = set; then
9300   withval="$with_tags"
9301   tagnames="$withval"
9302 fi;
9303
9304 if test -f "$ltmain" && test -n "$tagnames"; then
9305   if test ! -f "${ofile}"; then
9306     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9307 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9308   fi
9309
9310   if test -z "$LTCC"; then
9311     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9312     if test -z "$LTCC"; then
9313       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9314 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9315     else
9316       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9317 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9318     fi
9319   fi
9320
9321   # Extract list of available tagged configurations in $ofile.
9322   # Note that this assumes the entire list is on one line.
9323   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9324
9325   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9326   for tagname in $tagnames; do
9327     IFS="$lt_save_ifs"
9328     # Check whether tagname contains only valid characters
9329     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9330     "") ;;
9331     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9332 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9333    { (exit 1); exit 1; }; }
9334         ;;
9335     esac
9336
9337     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9338     then
9339       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9340 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9341    { (exit 1); exit 1; }; }
9342     fi
9343
9344     # Update the list of available tags.
9345     if test -n "$tagname"; then
9346       echo appending configuration tag \"$tagname\" to $ofile
9347
9348       case $tagname in
9349       CXX)
9350         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9351           ac_ext=cc
9352 ac_cpp='$CXXCPP $CPPFLAGS'
9353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9356
9357
9358
9359
9360 archive_cmds_need_lc_CXX=no
9361 allow_undefined_flag_CXX=
9362 always_export_symbols_CXX=no
9363 archive_expsym_cmds_CXX=
9364 export_dynamic_flag_spec_CXX=
9365 hardcode_direct_CXX=no
9366 hardcode_libdir_flag_spec_CXX=
9367 hardcode_libdir_flag_spec_ld_CXX=
9368 hardcode_libdir_separator_CXX=
9369 hardcode_minus_L_CXX=no
9370 hardcode_automatic_CXX=no
9371 module_cmds_CXX=
9372 module_expsym_cmds_CXX=
9373 link_all_deplibs_CXX=unknown
9374 old_archive_cmds_CXX=$old_archive_cmds
9375 no_undefined_flag_CXX=
9376 whole_archive_flag_spec_CXX=
9377 enable_shared_with_static_runtimes_CXX=no
9378
9379 # Dependencies to place before and after the object being linked:
9380 predep_objects_CXX=
9381 postdep_objects_CXX=
9382 predeps_CXX=
9383 postdeps_CXX=
9384 compiler_lib_search_path_CXX=
9385
9386 # Source file extension for C++ test sources.
9387 ac_ext=cc
9388
9389 # Object file extension for compiled C++ test sources.
9390 objext=o
9391 objext_CXX=$objext
9392
9393 # Code to be used in simple compile tests
9394 lt_simple_compile_test_code="int some_variable = 0;\n"
9395
9396 # Code to be used in simple link tests
9397 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9398
9399 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9400
9401 # If no C compiler was specified, use CC.
9402 LTCC=${LTCC-"$CC"}
9403
9404 # Allow CC to be a program name with arguments.
9405 compiler=$CC
9406
9407
9408 # Allow CC to be a program name with arguments.
9409 lt_save_CC=$CC
9410 lt_save_LD=$LD
9411 lt_save_GCC=$GCC
9412 GCC=$GXX
9413 lt_save_with_gnu_ld=$with_gnu_ld
9414 lt_save_path_LD=$lt_cv_path_LD
9415 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9416   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9417 else
9418   unset lt_cv_prog_gnu_ld
9419 fi
9420 if test -n "${lt_cv_path_LDCXX+set}"; then
9421   lt_cv_path_LD=$lt_cv_path_LDCXX
9422 else
9423   unset lt_cv_path_LD
9424 fi
9425 test -z "${LDCXX+set}" || LD=$LDCXX
9426 CC=${CXX-"c++"}
9427 compiler=$CC
9428 compiler_CXX=$CC
9429 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9430
9431 # We don't want -fno-exception wen compiling C++ code, so set the
9432 # no_builtin_flag separately
9433 if test "$GXX" = yes; then
9434   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9435 else
9436   lt_prog_compiler_no_builtin_flag_CXX=
9437 fi
9438
9439 if test "$GXX" = yes; then
9440   # Set up default GNU C++ configuration
9441
9442
9443 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9444 if test "${with_gnu_ld+set}" = set; then
9445   withval="$with_gnu_ld"
9446   test "$withval" = no || with_gnu_ld=yes
9447 else
9448   with_gnu_ld=no
9449 fi;
9450 ac_prog=ld
9451 if test "$GCC" = yes; then
9452   # Check if gcc -print-prog-name=ld gives a path.
9453   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9454 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9455   case $host in
9456   *-*-mingw*)
9457     # gcc leaves a trailing carriage return which upsets mingw
9458     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9459   *)
9460     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9461   esac
9462   case $ac_prog in
9463     # Accept absolute paths.
9464     [\\/]* | ?:[\\/]*)
9465       re_direlt='/[^/][^/]*/\.\./'
9466       # Canonicalize the path of ld
9467       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9468       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9469         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9470       done
9471       test -z "$LD" && LD="$ac_prog"
9472       ;;
9473   "")
9474     # If it fails, then pretend we aren't using GCC.
9475     ac_prog=ld
9476     ;;
9477   *)
9478     # If it is relative, then search for the first ld in PATH.
9479     with_gnu_ld=unknown
9480     ;;
9481   esac
9482 elif test "$with_gnu_ld" = yes; then
9483   echo "$as_me:$LINENO: checking for GNU ld" >&5
9484 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9485 else
9486   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9487 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9488 fi
9489 if test "${lt_cv_path_LD+set}" = set; then
9490   echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492   if test -z "$LD"; then
9493   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9494   for ac_dir in $PATH; do
9495     IFS="$lt_save_ifs"
9496     test -z "$ac_dir" && ac_dir=.
9497     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9498       lt_cv_path_LD="$ac_dir/$ac_prog"
9499       # Check to see if the program is GNU ld.  I'd rather use --version,
9500       # but apparently some GNU ld's only accept -v.
9501       # Break only if it was the GNU/non-GNU ld that we prefer.
9502       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9503       *GNU* | *'with BFD'*)
9504         test "$with_gnu_ld" != no && break
9505         ;;
9506       *)
9507         test "$with_gnu_ld" != yes && break
9508         ;;
9509       esac
9510     fi
9511   done
9512   IFS="$lt_save_ifs"
9513 else
9514   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9515 fi
9516 fi
9517
9518 LD="$lt_cv_path_LD"
9519 if test -n "$LD"; then
9520   echo "$as_me:$LINENO: result: $LD" >&5
9521 echo "${ECHO_T}$LD" >&6
9522 else
9523   echo "$as_me:$LINENO: result: no" >&5
9524 echo "${ECHO_T}no" >&6
9525 fi
9526 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9527 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9528    { (exit 1); exit 1; }; }
9529 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9530 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9531 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9532   echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9535 case `"$LD" -v 2>&1 </dev/null` in
9536 *GNU* | *'with BFD'*)
9537   lt_cv_prog_gnu_ld=yes
9538   ;;
9539 *)
9540   lt_cv_prog_gnu_ld=no
9541   ;;
9542 esac
9543 fi
9544 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9545 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9546 with_gnu_ld=$lt_cv_prog_gnu_ld
9547
9548
9549
9550   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9551   # archiving commands below assume that GNU ld is being used.
9552   if test "$with_gnu_ld" = yes; then
9553     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554     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'
9555
9556     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9557     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9558
9559     # If archive_cmds runs LD, not CC, wlarc should be empty
9560     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9561     #     investigate it a little bit more. (MM)
9562     wlarc='${wl}'
9563
9564     # ancient GNU ld didn't support --whole-archive et. al.
9565     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9566         grep 'no-whole-archive' > /dev/null; then
9567       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9568     else
9569       whole_archive_flag_spec_CXX=
9570     fi
9571   else
9572     with_gnu_ld=no
9573     wlarc=
9574
9575     # A generic and very simple default shared library creation
9576     # command for GNU C++ for the case where it uses the native
9577     # linker, instead of GNU ld.  If possible, this setting should
9578     # overridden to take advantage of the native linker features on
9579     # the platform it is being used on.
9580     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9581   fi
9582
9583   # Commands to make compiler produce verbose output that lists
9584   # what "hidden" libraries, object files and flags are used when
9585   # linking a shared library.
9586   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9587
9588 else
9589   GXX=no
9590   with_gnu_ld=no
9591   wlarc=
9592 fi
9593
9594 # PORTME: fill in a description of your system's C++ link characteristics
9595 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9596 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9597 ld_shlibs_CXX=yes
9598 case $host_os in
9599   aix3*)
9600     # FIXME: insert proper C++ library support
9601     ld_shlibs_CXX=no
9602     ;;
9603   aix4* | aix5*)
9604     if test "$host_cpu" = ia64; then
9605       # On IA64, the linker does run time linking by default, so we don't
9606       # have to do anything special.
9607       aix_use_runtimelinking=no
9608       exp_sym_flag='-Bexport'
9609       no_entry_flag=""
9610     else
9611       aix_use_runtimelinking=no
9612
9613       # Test if we are trying to use run time linking or normal
9614       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9615       # need to do runtime linking.
9616       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9617         for ld_flag in $LDFLAGS; do
9618           case $ld_flag in
9619           *-brtl*)
9620             aix_use_runtimelinking=yes
9621             break
9622             ;;
9623           esac
9624         done
9625       esac
9626
9627       exp_sym_flag='-bexport'
9628       no_entry_flag='-bnoentry'
9629     fi
9630
9631     # When large executables or shared objects are built, AIX ld can
9632     # have problems creating the table of contents.  If linking a library
9633     # or program results in "error TOC overflow" add -mminimal-toc to
9634     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9635     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9636
9637     archive_cmds_CXX=''
9638     hardcode_direct_CXX=yes
9639     hardcode_libdir_separator_CXX=':'
9640     link_all_deplibs_CXX=yes
9641
9642     if test "$GXX" = yes; then
9643       case $host_os in aix4.012|aix4.012.*)
9644       # We only want to do this on AIX 4.2 and lower, the check
9645       # below for broken collect2 doesn't work under 4.3+
9646         collect2name=`${CC} -print-prog-name=collect2`
9647         if test -f "$collect2name" && \
9648            strings "$collect2name" | grep resolve_lib_name >/dev/null
9649         then
9650           # We have reworked collect2
9651           hardcode_direct_CXX=yes
9652         else
9653           # We have old collect2
9654           hardcode_direct_CXX=unsupported
9655           # It fails to find uninstalled libraries when the uninstalled
9656           # path is not listed in the libpath.  Setting hardcode_minus_L
9657           # to unsupported forces relinking
9658           hardcode_minus_L_CXX=yes
9659           hardcode_libdir_flag_spec_CXX='-L$libdir'
9660           hardcode_libdir_separator_CXX=
9661         fi
9662       esac
9663       shared_flag='-shared'
9664     else
9665       # not using gcc
9666       if test "$host_cpu" = ia64; then
9667         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9668         # chokes on -Wl,-G. The following line is correct:
9669         shared_flag='-G'
9670       else
9671         if test "$aix_use_runtimelinking" = yes; then
9672           shared_flag='${wl}-G'
9673         else
9674           shared_flag='${wl}-bM:SRE'
9675         fi
9676       fi
9677     fi
9678
9679     # It seems that -bexpall does not export symbols beginning with
9680     # underscore (_), so it is better to generate a list of symbols to export.
9681     always_export_symbols_CXX=yes
9682     if test "$aix_use_runtimelinking" = yes; then
9683       # Warning - without using the other runtime loading flags (-brtl),
9684       # -berok will link without error, but may produce a broken library.
9685       allow_undefined_flag_CXX='-berok'
9686       # Determine the default libpath from the value encoded in an empty executable.
9687       cat >conftest.$ac_ext <<_ACEOF
9688 #line $LINENO "configure"
9689 /* confdefs.h.  */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h.  */
9694
9695 int
9696 main ()
9697 {
9698
9699   ;
9700   return 0;
9701 }
9702 _ACEOF
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9705   (eval $ac_link) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); } &&
9709          { ac_try='test -s conftest$ac_exeext'
9710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711   (eval $ac_try) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; }; then
9715
9716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9717 }'`
9718 # Check for a 64-bit object if we didn't find anything.
9719 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; }
9720 }'`; fi
9721 else
9722   echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9724
9725 fi
9726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9728
9729       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9730
9731       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"
9732      else
9733       if test "$host_cpu" = ia64; then
9734         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9735         allow_undefined_flag_CXX="-z nodefs"
9736         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"
9737       else
9738         # Determine the default libpath from the value encoded in an empty executable.
9739         cat >conftest.$ac_ext <<_ACEOF
9740 #line $LINENO "configure"
9741 /* confdefs.h.  */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h.  */
9746
9747 int
9748 main ()
9749 {
9750
9751   ;
9752   return 0;
9753 }
9754 _ACEOF
9755 rm -f conftest.$ac_objext conftest$ac_exeext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9757   (eval $ac_link) 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); } &&
9761          { ac_try='test -s conftest$ac_exeext'
9762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763   (eval $ac_try) 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); }; }; then
9767
9768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9769 }'`
9770 # Check for a 64-bit object if we didn't find anything.
9771 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; }
9772 }'`; fi
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 fi
9778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9780
9781         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9782         # Warning - without using the other run time loading flags,
9783         # -berok will link without error, but may produce a broken library.
9784         no_undefined_flag_CXX=' ${wl}-bernotok'
9785         allow_undefined_flag_CXX=' ${wl}-berok'
9786         # -bexpall does not export symbols beginning with underscore (_)
9787         always_export_symbols_CXX=yes
9788         # Exported symbols can be pulled into shared objects from archives
9789         whole_archive_flag_spec_CXX=' '
9790         archive_cmds_need_lc_CXX=yes
9791         # This is similar to how AIX traditionally builds it's shared libraries.
9792         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'
9793       fi
9794     fi
9795     ;;
9796   chorus*)
9797     case $cc_basename in
9798       *)
9799         # FIXME: insert proper C++ library support
9800         ld_shlibs_CXX=no
9801         ;;
9802     esac
9803     ;;
9804
9805   cygwin* | mingw* | pw32*)
9806     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9807     # as there is no search path for DLLs.
9808     hardcode_libdir_flag_spec_CXX='-L$libdir'
9809     allow_undefined_flag_CXX=unsupported
9810     always_export_symbols_CXX=no
9811     enable_shared_with_static_runtimes_CXX=yes
9812
9813     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9814       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'
9815       # If the export-symbols file already is a .def file (1st line
9816       # is EXPORTS), use it as is; otherwise, prepend...
9817       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9818         cp $export_symbols $output_objdir/$soname.def;
9819       else
9820         echo EXPORTS > $output_objdir/$soname.def;
9821         cat $export_symbols >> $output_objdir/$soname.def;
9822       fi~
9823       $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'
9824     else
9825       ld_shlibs_CXX=no
9826     fi
9827   ;;
9828
9829   darwin* | rhapsody*)
9830    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9831     archive_cmds_need_lc_CXX=no
9832     case "$host_os" in
9833     rhapsody* | darwin1.[012])
9834       allow_undefined_flag_CXX='-undefined suppress'
9835       ;;
9836     *) # Darwin 1.3 on
9837       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9838       ;;
9839     esac
9840         lt_int_apple_cc_single_mod=no
9841         output_verbose_link_cmd='echo'
9842         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9843           lt_int_apple_cc_single_mod=yes
9844         fi
9845         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9846           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9847         else
9848         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'
9849       fi
9850       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9851
9852     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9853       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9854         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}'
9855       else
9856         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}'
9857       fi
9858         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}'
9859     hardcode_direct_CXX=no
9860     hardcode_automatic_CXX=yes
9861     hardcode_shlibpath_var_CXX=unsupported
9862     whole_archive_flag_spec_CXX='-all_load $convenience'
9863     link_all_deplibs_CXX=yes
9864    fi
9865     ;;
9866
9867   dgux*)
9868     case $cc_basename in
9869       ec++)
9870         # FIXME: insert proper C++ library support
9871         ld_shlibs_CXX=no
9872         ;;
9873       ghcx)
9874         # Green Hills C++ Compiler
9875         # FIXME: insert proper C++ library support
9876         ld_shlibs_CXX=no
9877         ;;
9878       *)
9879         # FIXME: insert proper C++ library support
9880         ld_shlibs_CXX=no
9881         ;;
9882     esac
9883     ;;
9884   freebsd12*)
9885     # C++ shared libraries reported to be fairly broken before switch to ELF
9886     ld_shlibs_CXX=no
9887     ;;
9888   freebsd-elf*)
9889     archive_cmds_need_lc_CXX=no
9890     ;;
9891   freebsd*)
9892     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9893     # conventions
9894     ld_shlibs_CXX=yes
9895     ;;
9896   gnu*)
9897     ;;
9898   hpux9*)
9899     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9900     hardcode_libdir_separator_CXX=:
9901     export_dynamic_flag_spec_CXX='${wl}-E'
9902     hardcode_direct_CXX=yes
9903     hardcode_minus_L_CXX=yes # Not in the search PATH,
9904                                 # but as the default
9905                                 # location of the library.
9906
9907     case $cc_basename in
9908     CC)
9909       # FIXME: insert proper C++ library support
9910       ld_shlibs_CXX=no
9911       ;;
9912     aCC)
9913       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'
9914       # Commands to make compiler produce verbose output that lists
9915       # what "hidden" libraries, object files and flags are used when
9916       # linking a shared library.
9917       #
9918       # There doesn't appear to be a way to prevent this compiler from
9919       # explicitly linking system object files so we need to strip them
9920       # from the output so that they don't get included in the library
9921       # dependencies.
9922       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'
9923       ;;
9924     *)
9925       if test "$GXX" = yes; then
9926         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'
9927       else
9928         # FIXME: insert proper C++ library support
9929         ld_shlibs_CXX=no
9930       fi
9931       ;;
9932     esac
9933     ;;
9934   hpux10*|hpux11*)
9935     if test $with_gnu_ld = no; then
9936       case "$host_cpu" in
9937       hppa*64*)
9938         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9939         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9940         hardcode_libdir_separator_CXX=:
9941         ;;
9942       ia64*)
9943         hardcode_libdir_flag_spec_CXX='-L$libdir'
9944         ;;
9945       *)
9946         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9947         hardcode_libdir_separator_CXX=:
9948         export_dynamic_flag_spec_CXX='${wl}-E'
9949         ;;
9950       esac
9951     fi
9952     case "$host_cpu" in
9953     hppa*64*)
9954       hardcode_direct_CXX=no
9955       hardcode_shlibpath_var_CXX=no
9956       ;;
9957     ia64*)
9958       hardcode_direct_CXX=no
9959       hardcode_shlibpath_var_CXX=no
9960       hardcode_minus_L_CXX=yes # Not in the search PATH,
9961                                               # but as the default
9962                                               # location of the library.
9963       ;;
9964     *)
9965       hardcode_direct_CXX=yes
9966       hardcode_minus_L_CXX=yes # Not in the search PATH,
9967                                               # but as the default
9968                                               # location of the library.
9969       ;;
9970     esac
9971
9972     case $cc_basename in
9973       CC)
9974         # FIXME: insert proper C++ library support
9975         ld_shlibs_CXX=no
9976         ;;
9977       aCC)
9978         case "$host_cpu" in
9979         hppa*64*|ia64*)
9980           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9981           ;;
9982         *)
9983           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9984           ;;
9985         esac
9986         # Commands to make compiler produce verbose output that lists
9987         # what "hidden" libraries, object files and flags are used when
9988         # linking a shared library.
9989         #
9990         # There doesn't appear to be a way to prevent this compiler from
9991         # explicitly linking system object files so we need to strip them
9992         # from the output so that they don't get included in the library
9993         # dependencies.
9994         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'
9995         ;;
9996       *)
9997         if test "$GXX" = yes; then
9998           if test $with_gnu_ld = no; then
9999             case "$host_cpu" in
10000             ia64*|hppa*64*)
10001               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10002               ;;
10003             *)
10004               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'
10005               ;;
10006             esac
10007           fi
10008         else
10009           # FIXME: insert proper C++ library support
10010           ld_shlibs_CXX=no
10011         fi
10012         ;;
10013     esac
10014     ;;
10015   irix5* | irix6*)
10016     case $cc_basename in
10017       CC)
10018         # SGI C++
10019         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'
10020
10021         # Archives containing C++ object files must be created using
10022         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10023         # necessary to make sure instantiated templates are included
10024         # in the archive.
10025         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10026         ;;
10027       *)
10028         if test "$GXX" = yes; then
10029           if test "$with_gnu_ld" = no; then
10030             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'
10031           else
10032             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'
10033           fi
10034         fi
10035         link_all_deplibs_CXX=yes
10036         ;;
10037     esac
10038     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10039     hardcode_libdir_separator_CXX=:
10040     ;;
10041   linux*)
10042     case $cc_basename in
10043       KCC)
10044         # Kuck and Associates, Inc. (KAI) C++ Compiler
10045
10046         # KCC will only create a shared library if the output file
10047         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10048         # to its proper name (with version) after linking.
10049         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'
10050         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'
10051         # Commands to make compiler produce verbose output that lists
10052         # what "hidden" libraries, object files and flags are used when
10053         # linking a shared library.
10054         #
10055         # There doesn't appear to be a way to prevent this compiler from
10056         # explicitly linking system object files so we need to strip them
10057         # from the output so that they don't get included in the library
10058         # dependencies.
10059         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'
10060
10061         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10062         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10063
10064         # Archives containing C++ object files must be created using
10065         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10066         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10067         ;;
10068       icpc)
10069         # Intel C++
10070         with_gnu_ld=yes
10071         archive_cmds_need_lc_CXX=no
10072         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10073         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'
10074         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10075         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10076         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10077         ;;
10078       cxx)
10079         # Compaq C++
10080         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10081         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'
10082
10083         runpath_var=LD_RUN_PATH
10084         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10085         hardcode_libdir_separator_CXX=:
10086
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 -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'
10096         ;;
10097     esac
10098     ;;
10099   lynxos*)
10100     # FIXME: insert proper C++ library support
10101     ld_shlibs_CXX=no
10102     ;;
10103   m88k*)
10104     # FIXME: insert proper C++ library support
10105     ld_shlibs_CXX=no
10106     ;;
10107   mvs*)
10108     case $cc_basename in
10109       cxx)
10110         # FIXME: insert proper C++ library support
10111         ld_shlibs_CXX=no
10112         ;;
10113       *)
10114         # FIXME: insert proper C++ library support
10115         ld_shlibs_CXX=no
10116         ;;
10117     esac
10118     ;;
10119   netbsd*)
10120     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10121       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10122       wlarc=
10123       hardcode_libdir_flag_spec_CXX='-R$libdir'
10124       hardcode_direct_CXX=yes
10125       hardcode_shlibpath_var_CXX=no
10126     fi
10127     # Workaround some broken pre-1.5 toolchains
10128     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10129     ;;
10130   osf3*)
10131     case $cc_basename in
10132       KCC)
10133         # Kuck and Associates, Inc. (KAI) C++ Compiler
10134
10135         # KCC will only create a shared library if the output file
10136         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10137         # to its proper name (with version) after linking.
10138         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'
10139
10140         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10141         hardcode_libdir_separator_CXX=:
10142
10143         # Archives containing C++ object files must be created using
10144         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10145         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10146
10147         ;;
10148       RCC)
10149         # Rational C++ 2.4.1
10150         # FIXME: insert proper C++ library support
10151         ld_shlibs_CXX=no
10152         ;;
10153       cxx)
10154         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10155         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'
10156
10157         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10158         hardcode_libdir_separator_CXX=:
10159
10160         # Commands to make compiler produce verbose output that lists
10161         # what "hidden" libraries, object files and flags are used when
10162         # linking a shared library.
10163         #
10164         # There doesn't appear to be a way to prevent this compiler from
10165         # explicitly linking system object files so we need to strip them
10166         # from the output so that they don't get included in the library
10167         # dependencies.
10168         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'
10169         ;;
10170       *)
10171         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10172           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10173           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'
10174
10175           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10176           hardcode_libdir_separator_CXX=:
10177
10178           # Commands to make compiler produce verbose output that lists
10179           # what "hidden" libraries, object files and flags are used when
10180           # linking a shared library.
10181           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10182
10183         else
10184           # FIXME: insert proper C++ library support
10185           ld_shlibs_CXX=no
10186         fi
10187         ;;
10188     esac
10189     ;;
10190   osf4* | osf5*)
10191     case $cc_basename in
10192       KCC)
10193         # Kuck and Associates, Inc. (KAI) C++ Compiler
10194
10195         # KCC will only create a shared library if the output file
10196         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10197         # to its proper name (with version) after linking.
10198         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'
10199
10200         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10201         hardcode_libdir_separator_CXX=:
10202
10203         # Archives containing C++ object files must be created using
10204         # the KAI C++ compiler.
10205         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10206         ;;
10207       RCC)
10208         # Rational C++ 2.4.1
10209         # FIXME: insert proper C++ library support
10210         ld_shlibs_CXX=no
10211         ;;
10212       cxx)
10213         allow_undefined_flag_CXX=' -expect_unresolved \*'
10214         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'
10215         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10216           echo "-hidden">> $lib.exp~
10217           $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~
10218           $rm $lib.exp'
10219
10220         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10221         hardcode_libdir_separator_CXX=:
10222
10223         # Commands to make compiler produce verbose output that lists
10224         # what "hidden" libraries, object files and flags are used when
10225         # linking a shared library.
10226         #
10227         # There doesn't appear to be a way to prevent this compiler from
10228         # explicitly linking system object files so we need to strip them
10229         # from the output so that they don't get included in the library
10230         # dependencies.
10231         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'
10232         ;;
10233       *)
10234         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10235           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10236          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'
10237
10238           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10239           hardcode_libdir_separator_CXX=:
10240
10241           # Commands to make compiler produce verbose output that lists
10242           # what "hidden" libraries, object files and flags are used when
10243           # linking a shared library.
10244           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10245
10246         else
10247           # FIXME: insert proper C++ library support
10248           ld_shlibs_CXX=no
10249         fi
10250         ;;
10251     esac
10252     ;;
10253   psos*)
10254     # FIXME: insert proper C++ library support
10255     ld_shlibs_CXX=no
10256     ;;
10257   sco*)
10258     archive_cmds_need_lc_CXX=no
10259     case $cc_basename in
10260       CC)
10261         # FIXME: insert proper C++ library support
10262         ld_shlibs_CXX=no
10263         ;;
10264       *)
10265         # FIXME: insert proper C++ library support
10266         ld_shlibs_CXX=no
10267         ;;
10268     esac
10269     ;;
10270   sunos4*)
10271     case $cc_basename in
10272       CC)
10273         # Sun C++ 4.x
10274         # FIXME: insert proper C++ library support
10275         ld_shlibs_CXX=no
10276         ;;
10277       lcc)
10278         # Lucid
10279         # FIXME: insert proper C++ library support
10280         ld_shlibs_CXX=no
10281         ;;
10282       *)
10283         # FIXME: insert proper C++ library support
10284         ld_shlibs_CXX=no
10285         ;;
10286     esac
10287     ;;
10288   solaris*)
10289     case $cc_basename in
10290       CC)
10291         # Sun C++ 4.2, 5.x and Centerline C++
10292         no_undefined_flag_CXX=' -zdefs'
10293         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10294         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10295         $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'
10296
10297         hardcode_libdir_flag_spec_CXX='-R$libdir'
10298         hardcode_shlibpath_var_CXX=no
10299         case $host_os in
10300           solaris2.0-5 | solaris2.0-5.*) ;;
10301           *)
10302             # The C++ compiler is used as linker so we must use $wl
10303             # flag to pass the commands to the underlying system
10304             # linker.
10305             # Supported since Solaris 2.6 (maybe 2.5.1?)
10306             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10307             ;;
10308         esac
10309         link_all_deplibs_CXX=yes
10310
10311         # Commands to make compiler produce verbose output that lists
10312         # what "hidden" libraries, object files and flags are used when
10313         # linking a shared library.
10314         #
10315         # There doesn't appear to be a way to prevent this compiler from
10316         # explicitly linking system object files so we need to strip them
10317         # from the output so that they don't get included in the library
10318         # dependencies.
10319         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'
10320
10321         # Archives containing C++ object files must be created using
10322         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10323         # necessary to make sure instantiated templates are included
10324         # in the archive.
10325         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10326         ;;
10327       gcx)
10328         # Green Hills C++ Compiler
10329         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10330
10331         # The C++ compiler must be used to create the archive.
10332         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10333         ;;
10334       *)
10335         # GNU C++ compiler with Solaris linker
10336         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10337           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10338           if $CC --version | grep -v '^2\.7' > /dev/null; then
10339             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10340             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10341                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10342
10343             # Commands to make compiler produce verbose output that lists
10344             # what "hidden" libraries, object files and flags are used when
10345             # linking a shared library.
10346             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10347           else
10348             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10349             # platform.
10350             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10351             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10352                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10353
10354             # Commands to make compiler produce verbose output that lists
10355             # what "hidden" libraries, object files and flags are used when
10356             # linking a shared library.
10357             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10358           fi
10359
10360           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10361         fi
10362         ;;
10363     esac
10364     ;;
10365   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10366     archive_cmds_need_lc_CXX=no
10367     ;;
10368   tandem*)
10369     case $cc_basename in
10370       NCC)
10371         # NonStop-UX NCC 3.20
10372         # FIXME: insert proper C++ library support
10373         ld_shlibs_CXX=no
10374         ;;
10375       *)
10376         # FIXME: insert proper C++ library support
10377         ld_shlibs_CXX=no
10378         ;;
10379     esac
10380     ;;
10381   vxworks*)
10382     # FIXME: insert proper C++ library support
10383     ld_shlibs_CXX=no
10384     ;;
10385   *)
10386     # FIXME: insert proper C++ library support
10387     ld_shlibs_CXX=no
10388     ;;
10389 esac
10390 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10391 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10392 test "$ld_shlibs_CXX" = no && can_build_shared=no
10393
10394 GCC_CXX="$GXX"
10395 LD_CXX="$LD"
10396
10397 ## CAVEAT EMPTOR:
10398 ## There is no encapsulation within the following macros, do not change
10399 ## the running order or otherwise move them around unless you know exactly
10400 ## what you are doing...
10401
10402 cat > conftest.$ac_ext <<EOF
10403 class Foo
10404 {
10405 public:
10406   Foo (void) { a = 0; }
10407 private:
10408   int a;
10409 };
10410 EOF
10411
10412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10413   (eval $ac_compile) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; then
10417   # Parse the compiler output and extract the necessary
10418   # objects, libraries and library flags.
10419
10420   # Sentinel used to keep track of whether or not we are before
10421   # the conftest object file.
10422   pre_test_object_deps_done=no
10423
10424   # The `*' in the case matches for architectures that use `case' in
10425   # $output_verbose_cmd can trigger glob expansion during the loop
10426   # eval without this substitution.
10427   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10428
10429   for p in `eval $output_verbose_link_cmd`; do
10430     case $p in
10431
10432     -L* | -R* | -l*)
10433        # Some compilers place space between "-{L,R}" and the path.
10434        # Remove the space.
10435        if test $p = "-L" \
10436           || test $p = "-R"; then
10437          prev=$p
10438          continue
10439        else
10440          prev=
10441        fi
10442
10443        if test "$pre_test_object_deps_done" = no; then
10444          case $p in
10445          -L* | -R*)
10446            # Internal compiler library paths should come after those
10447            # provided the user.  The postdeps already come after the
10448            # user supplied libs so there is no need to process them.
10449            if test -z "$compiler_lib_search_path_CXX"; then
10450              compiler_lib_search_path_CXX="${prev}${p}"
10451            else
10452              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10453            fi
10454            ;;
10455          # The "-l" case would never come before the object being
10456          # linked, so don't bother handling this case.
10457          esac
10458        else
10459          if test -z "$postdeps_CXX"; then
10460            postdeps_CXX="${prev}${p}"
10461          else
10462            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10463          fi
10464        fi
10465        ;;
10466
10467     *.$objext)
10468        # This assumes that the test object file only shows up
10469        # once in the compiler output.
10470        if test "$p" = "conftest.$objext"; then
10471          pre_test_object_deps_done=yes
10472          continue
10473        fi
10474
10475        if test "$pre_test_object_deps_done" = no; then
10476          if test -z "$predep_objects_CXX"; then
10477            predep_objects_CXX="$p"
10478          else
10479            predep_objects_CXX="$predep_objects_CXX $p"
10480          fi
10481        else
10482          if test -z "$postdep_objects_CXX"; then
10483            postdep_objects_CXX="$p"
10484          else
10485            postdep_objects_CXX="$postdep_objects_CXX $p"
10486          fi
10487        fi
10488        ;;
10489
10490     *) ;; # Ignore the rest.
10491
10492     esac
10493   done
10494
10495   # Clean up.
10496   rm -f a.out a.exe
10497 else
10498   echo "libtool.m4: error: problem compiling CXX test program"
10499 fi
10500
10501 $rm -f confest.$objext
10502
10503 case " $postdeps_CXX " in
10504 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10505 esac
10506
10507 lt_prog_compiler_wl_CXX=
10508 lt_prog_compiler_pic_CXX=
10509 lt_prog_compiler_static_CXX=
10510
10511 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10512 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10513
10514   # C++ specific cases for pic, static, wl, etc.
10515   if test "$GXX" = yes; then
10516     lt_prog_compiler_wl_CXX='-Wl,'
10517     lt_prog_compiler_static_CXX='-static'
10518
10519     case $host_os in
10520     aix*)
10521       # All AIX code is PIC.
10522       if test "$host_cpu" = ia64; then
10523         # AIX 5 now supports IA64 processor
10524         lt_prog_compiler_static_CXX='-Bstatic'
10525       fi
10526       ;;
10527     amigaos*)
10528       # FIXME: we need at least 68020 code to build shared libraries, but
10529       # adding the `-m68020' flag to GCC prevents building anything better,
10530       # like `-m68040'.
10531       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10532       ;;
10533     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10534       # PIC is the default for these OSes.
10535       ;;
10536     mingw* | os2* | pw32*)
10537       # This hack is so that the source file can tell whether it is being
10538       # built for inclusion in a dll (and should export symbols for example).
10539       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10540       ;;
10541     darwin* | rhapsody*)
10542       # PIC is the default on this platform
10543       # Common symbols not allowed in MH_DYLIB files
10544       lt_prog_compiler_pic_CXX='-fno-common'
10545       ;;
10546     *djgpp*)
10547       # DJGPP does not support shared libraries at all
10548       lt_prog_compiler_pic_CXX=
10549       ;;
10550     sysv4*MP*)
10551       if test -d /usr/nec; then
10552         lt_prog_compiler_pic_CXX=-Kconform_pic
10553       fi
10554       ;;
10555     hpux*)
10556       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10557       # not for PA HP-UX.
10558       case "$host_cpu" in
10559       hppa*64*|ia64*)
10560         ;;
10561       *)
10562         lt_prog_compiler_pic_CXX='-fPIC'
10563         ;;
10564       esac
10565       ;;
10566     *)
10567       lt_prog_compiler_pic_CXX='-fPIC'
10568       ;;
10569     esac
10570   else
10571     case $host_os in
10572       aix4* | aix5*)
10573         # All AIX code is PIC.
10574         if test "$host_cpu" = ia64; then
10575           # AIX 5 now supports IA64 processor
10576           lt_prog_compiler_static_CXX='-Bstatic'
10577         else
10578           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10579         fi
10580         ;;
10581       chorus*)
10582         case $cc_basename in
10583         cxch68)
10584           # Green Hills C++ Compiler
10585           # _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"
10586           ;;
10587         esac
10588         ;;
10589       dgux*)
10590         case $cc_basename in
10591           ec++)
10592             lt_prog_compiler_pic_CXX='-KPIC'
10593             ;;
10594           ghcx)
10595             # Green Hills C++ Compiler
10596             lt_prog_compiler_pic_CXX='-pic'
10597             ;;
10598           *)
10599             ;;
10600         esac
10601         ;;
10602       freebsd*)
10603         # FreeBSD uses GNU C++
10604         ;;
10605       hpux9* | hpux10* | hpux11*)
10606         case $cc_basename in
10607           CC)
10608             lt_prog_compiler_wl_CXX='-Wl,'
10609             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10610             if test "$host_cpu" != ia64; then
10611               lt_prog_compiler_pic_CXX='+Z'
10612             fi
10613             ;;
10614           aCC)
10615             lt_prog_compiler_wl_CXX='-Wl,'
10616             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10617             case "$host_cpu" in
10618             hppa*64*|ia64*)
10619               # +Z the default
10620               ;;
10621             *)
10622               lt_prog_compiler_pic_CXX='+Z'
10623               ;;
10624             esac
10625             ;;
10626           *)
10627             ;;
10628         esac
10629         ;;
10630       irix5* | irix6* | nonstopux*)
10631         case $cc_basename in
10632           CC)
10633             lt_prog_compiler_wl_CXX='-Wl,'
10634             lt_prog_compiler_static_CXX='-non_shared'
10635             # CC pic flag -KPIC is the default.
10636             ;;
10637           *)
10638             ;;
10639         esac
10640         ;;
10641       linux*)
10642         case $cc_basename in
10643           KCC)
10644             # KAI C++ Compiler
10645             lt_prog_compiler_wl_CXX='--backend -Wl,'
10646             lt_prog_compiler_pic_CXX='-fPIC'
10647             ;;
10648           icpc)
10649             # Intel C++
10650             lt_prog_compiler_wl_CXX='-Wl,'
10651             lt_prog_compiler_pic_CXX='-KPIC'
10652             lt_prog_compiler_static_CXX='-static'
10653             ;;
10654           cxx)
10655             # Compaq C++
10656             # Make sure the PIC flag is empty.  It appears that all Alpha
10657             # Linux and Compaq Tru64 Unix objects are PIC.
10658             lt_prog_compiler_pic_CXX=
10659             lt_prog_compiler_static_CXX='-non_shared'
10660             ;;
10661           *)
10662             ;;
10663         esac
10664         ;;
10665       lynxos*)
10666         ;;
10667       m88k*)
10668         ;;
10669       mvs*)
10670         case $cc_basename in
10671           cxx)
10672             lt_prog_compiler_pic_CXX='-W c,exportall'
10673             ;;
10674           *)
10675             ;;
10676         esac
10677         ;;
10678       netbsd*)
10679         ;;
10680       osf3* | osf4* | osf5*)
10681         case $cc_basename in
10682           KCC)
10683             lt_prog_compiler_wl_CXX='--backend -Wl,'
10684             ;;
10685           RCC)
10686             # Rational C++ 2.4.1
10687             lt_prog_compiler_pic_CXX='-pic'
10688             ;;
10689           cxx)
10690             # Digital/Compaq C++
10691             lt_prog_compiler_wl_CXX='-Wl,'
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       psos*)
10702         ;;
10703       sco*)
10704         case $cc_basename in
10705           CC)
10706             lt_prog_compiler_pic_CXX='-fPIC'
10707             ;;
10708           *)
10709             ;;
10710         esac
10711         ;;
10712       solaris*)
10713         case $cc_basename in
10714           CC)
10715             # Sun C++ 4.2, 5.x and Centerline C++
10716             lt_prog_compiler_pic_CXX='-KPIC'
10717             lt_prog_compiler_static_CXX='-Bstatic'
10718             lt_prog_compiler_wl_CXX='-Qoption ld '
10719             ;;
10720           gcx)
10721             # Green Hills C++ Compiler
10722             lt_prog_compiler_pic_CXX='-PIC'
10723             ;;
10724           *)
10725             ;;
10726         esac
10727         ;;
10728       sunos4*)
10729         case $cc_basename in
10730           CC)
10731             # Sun C++ 4.x
10732             lt_prog_compiler_pic_CXX='-pic'
10733             lt_prog_compiler_static_CXX='-Bstatic'
10734             ;;
10735           lcc)
10736             # Lucid
10737             lt_prog_compiler_pic_CXX='-pic'
10738             ;;
10739           *)
10740             ;;
10741         esac
10742         ;;
10743       tandem*)
10744         case $cc_basename in
10745           NCC)
10746             # NonStop-UX NCC 3.20
10747             lt_prog_compiler_pic_CXX='-KPIC'
10748             ;;
10749           *)
10750             ;;
10751         esac
10752         ;;
10753       unixware*)
10754         ;;
10755       vxworks*)
10756         ;;
10757       *)
10758         lt_prog_compiler_can_build_shared_CXX=no
10759         ;;
10760     esac
10761   fi
10762
10763 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10764 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10765
10766 #
10767 # Check to make sure the PIC flag actually works.
10768 #
10769 if test -n "$lt_prog_compiler_pic_CXX"; then
10770   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10771 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10772 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10773   echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775   lt_prog_compiler_pic_works_CXX=no
10776   ac_outfile=conftest.$ac_objext
10777    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10778    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10779    # Insert the option either (1) after the last *FLAGS variable, or
10780    # (2) before a word containing "conftest.", or (3) at the end.
10781    # Note that $ac_compile itself does not contain backslashes and begins
10782    # with a dollar sign (not a hyphen), so the echo should work correctly.
10783    # The option is referenced via a variable to avoid confusing sed.
10784    lt_compile=`echo "$ac_compile" | $SED \
10785    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10787    -e 's:$: $lt_compiler_flag:'`
10788    (eval echo "\"\$as_me:10788: $lt_compile\"" >&5)
10789    (eval "$lt_compile" 2>conftest.err)
10790    ac_status=$?
10791    cat conftest.err >&5
10792    echo "$as_me:10792: \$? = $ac_status" >&5
10793    if (exit $ac_status) && test -s "$ac_outfile"; then
10794      # The compiler can only warn and ignore the option if not recognized
10795      # So say no if there are warnings
10796      if test ! -s conftest.err; then
10797        lt_prog_compiler_pic_works_CXX=yes
10798      fi
10799    fi
10800    $rm conftest*
10801
10802 fi
10803 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10804 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10805
10806 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10807     case $lt_prog_compiler_pic_CXX in
10808      "" | " "*) ;;
10809      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10810      esac
10811 else
10812     lt_prog_compiler_pic_CXX=
10813      lt_prog_compiler_can_build_shared_CXX=no
10814 fi
10815
10816 fi
10817 case "$host_os" in
10818   # For platforms which do not support PIC, -DPIC is meaningless:
10819   *djgpp*)
10820     lt_prog_compiler_pic_CXX=
10821     ;;
10822   *)
10823     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10824     ;;
10825 esac
10826
10827 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10828 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10829 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10830   echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832   lt_cv_prog_compiler_c_o_CXX=no
10833    $rm -r conftest 2>/dev/null
10834    mkdir conftest
10835    cd conftest
10836    mkdir out
10837    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10838
10839    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10840    # that will create temporary files in the current directory regardless of
10841    # the output directory.  Thus, making CWD read-only will cause this test
10842    # to fail, enabling locking or at least warning the user not to do parallel
10843    # builds.
10844    chmod -w .
10845
10846    lt_compiler_flag="-o out/conftest2.$ac_objext"
10847    # Insert the option either (1) after the last *FLAGS variable, or
10848    # (2) before a word containing "conftest.", or (3) at the end.
10849    # Note that $ac_compile itself does not contain backslashes and begins
10850    # with a dollar sign (not a hyphen), so the echo should work correctly.
10851    lt_compile=`echo "$ac_compile" | $SED \
10852    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10853    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10854    -e 's:$: $lt_compiler_flag:'`
10855    (eval echo "\"\$as_me:10855: $lt_compile\"" >&5)
10856    (eval "$lt_compile" 2>out/conftest.err)
10857    ac_status=$?
10858    cat out/conftest.err >&5
10859    echo "$as_me:10859: \$? = $ac_status" >&5
10860    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10861    then
10862      # The compiler can only warn and ignore the option if not recognized
10863      # So say no if there are warnings
10864      if test ! -s out/conftest.err; then
10865        lt_cv_prog_compiler_c_o_CXX=yes
10866      fi
10867    fi
10868    chmod u+w .
10869    $rm conftest* out/*
10870    rmdir out
10871    cd ..
10872    rmdir conftest
10873    $rm conftest*
10874
10875 fi
10876 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10877 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10878
10879
10880 hard_links="nottested"
10881 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10882   # do not overwrite the value of need_locks provided by the user
10883   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10884 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10885   hard_links=yes
10886   $rm conftest*
10887   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10888   touch conftest.a
10889   ln conftest.a conftest.b 2>&5 || hard_links=no
10890   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10891   echo "$as_me:$LINENO: result: $hard_links" >&5
10892 echo "${ECHO_T}$hard_links" >&6
10893   if test "$hard_links" = no; then
10894     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10895 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10896     need_locks=warn
10897   fi
10898 else
10899   need_locks=no
10900 fi
10901
10902 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10903 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10904
10905   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10906   case $host_os in
10907   aix4* | aix5*)
10908     # If we're using GNU nm, then we don't want the "-C" option.
10909     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10910     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10911       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'
10912     else
10913       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'
10914     fi
10915     ;;
10916   pw32*)
10917     export_symbols_cmds_CXX="$ltdll_cmds"
10918   ;;
10919   cygwin* | mingw*)
10920     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10921   ;;
10922   *)
10923     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10924   ;;
10925   esac
10926
10927 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10928 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10929 test "$ld_shlibs_CXX" = no && can_build_shared=no
10930
10931 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10932 if test "$GCC" = yes; then
10933   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10934 fi
10935
10936 #
10937 # Do we need to explicitly link libc?
10938 #
10939 case "x$archive_cmds_need_lc_CXX" in
10940 x|xyes)
10941   # Assume -lc should be added
10942   archive_cmds_need_lc_CXX=yes
10943
10944   if test "$enable_shared" = yes && test "$GCC" = yes; then
10945     case $archive_cmds_CXX in
10946     *'~'*)
10947       # FIXME: we may have to deal with multi-command sequences.
10948       ;;
10949     '$CC '*)
10950       # Test whether the compiler implicitly links with -lc since on some
10951       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10952       # to ld, don't add -lc before -lgcc.
10953       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10954 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10955       $rm conftest*
10956       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10957
10958       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10959   (eval $ac_compile) 2>&5
10960   ac_status=$?
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); } 2>conftest.err; then
10963         soname=conftest
10964         lib=conftest
10965         libobjs=conftest.$ac_objext
10966         deplibs=
10967         wl=$lt_prog_compiler_wl_CXX
10968         compiler_flags=-v
10969         linker_flags=-v
10970         verstring=
10971         output_objdir=.
10972         libname=conftest
10973         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10974         allow_undefined_flag_CXX=
10975         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10976   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }
10980         then
10981           archive_cmds_need_lc_CXX=no
10982         else
10983           archive_cmds_need_lc_CXX=yes
10984         fi
10985         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10986       else
10987         cat conftest.err 1>&5
10988       fi
10989       $rm conftest*
10990       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10991 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10992       ;;
10993     esac
10994   fi
10995   ;;
10996 esac
10997
10998 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10999 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11000 hardcode_action_CXX=
11001 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11002    test -n "$runpath_var CXX" || \
11003    test "X$hardcode_automatic_CXX"="Xyes" ; then
11004
11005   # We can hardcode non-existant directories.
11006   if test "$hardcode_direct_CXX" != no &&
11007      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11008      # have to relink, otherwise we might link with an installed library
11009      # when we should be linking with a yet-to-be-installed one
11010      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11011      test "$hardcode_minus_L_CXX" != no; then
11012     # Linking always hardcodes the temporary library directory.
11013     hardcode_action_CXX=relink
11014   else
11015     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11016     hardcode_action_CXX=immediate
11017   fi
11018 else
11019   # We cannot hardcode anything, or else we can only hardcode existing
11020   # directories.
11021   hardcode_action_CXX=unsupported
11022 fi
11023 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11024 echo "${ECHO_T}$hardcode_action_CXX" >&6
11025
11026 if test "$hardcode_action_CXX" = relink; then
11027   # Fast installation is not supported
11028   enable_fast_install=no
11029 elif test "$shlibpath_overrides_runpath" = yes ||
11030      test "$enable_shared" = no; then
11031   # Fast installation is not necessary
11032   enable_fast_install=needless
11033 fi
11034
11035 striplib=
11036 old_striplib=
11037 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11038 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11039 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11040   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11041   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11042   echo "$as_me:$LINENO: result: yes" >&5
11043 echo "${ECHO_T}yes" >&6
11044 else
11045 # FIXME - insert some real tests, host_os isn't really good enough
11046   case $host_os in
11047    darwin*)
11048        if test -n "$STRIP" ; then
11049          striplib="$STRIP -x"
11050          echo "$as_me:$LINENO: result: yes" >&5
11051 echo "${ECHO_T}yes" >&6
11052        else
11053   echo "$as_me:$LINENO: result: no" >&5
11054 echo "${ECHO_T}no" >&6
11055 fi
11056        ;;
11057    *)
11058   echo "$as_me:$LINENO: result: no" >&5
11059 echo "${ECHO_T}no" >&6
11060     ;;
11061   esac
11062 fi
11063
11064 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11065 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11066 library_names_spec=
11067 libname_spec='lib$name'
11068 soname_spec=
11069 shrext=".so"
11070 postinstall_cmds=
11071 postuninstall_cmds=
11072 finish_cmds=
11073 finish_eval=
11074 shlibpath_var=
11075 shlibpath_overrides_runpath=unknown
11076 version_type=none
11077 dynamic_linker="$host_os ld.so"
11078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11079 if test "$GCC" = yes; then
11080   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11081   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11082     # if the path contains ";" then we assume it to be the separator
11083     # otherwise default to the standard path separator (i.e. ":") - it is
11084     # assumed that no part of a normal pathname contains ";" but that should
11085     # okay in the real world where ";" in dirpaths is itself problematic.
11086     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11087   else
11088     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11089   fi
11090 else
11091   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11092 fi
11093 need_lib_prefix=unknown
11094 hardcode_into_libs=no
11095
11096 # when you set need_version to no, make sure it does not cause -set_version
11097 # flags to be left without arguments
11098 need_version=unknown
11099
11100 case $host_os in
11101 aix3*)
11102   version_type=linux
11103   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11104   shlibpath_var=LIBPATH
11105
11106   # AIX 3 has no versioning support, so we append a major version to the name.
11107   soname_spec='${libname}${release}${shared_ext}$major'
11108   ;;
11109
11110 aix4* | aix5*)
11111   version_type=linux
11112   need_lib_prefix=no
11113   need_version=no
11114   hardcode_into_libs=yes
11115   if test "$host_cpu" = ia64; then
11116     # AIX 5 supports IA64
11117     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11118     shlibpath_var=LD_LIBRARY_PATH
11119   else
11120     # With GCC up to 2.95.x, collect2 would create an import file
11121     # for dependence libraries.  The import file would start with
11122     # the line `#! .'.  This would cause the generated library to
11123     # depend on `.', always an invalid library.  This was fixed in
11124     # development snapshots of GCC prior to 3.0.
11125     case $host_os in
11126       aix4 | aix4.[01] | aix4.[01].*)
11127       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11128            echo ' yes '
11129            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11130         :
11131       else
11132         can_build_shared=no
11133       fi
11134       ;;
11135     esac
11136     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11137     # soname into executable. Probably we can add versioning support to
11138     # collect2, so additional links can be useful in future.
11139     if test "$aix_use_runtimelinking" = yes; then
11140       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11141       # instead of lib<name>.a to let people know that these are not
11142       # typical AIX shared libraries.
11143       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144     else
11145       # We preserve .a as extension for shared libraries through AIX4.2
11146       # and later when we are not doing run time linking.
11147       library_names_spec='${libname}${release}.a $libname.a'
11148       soname_spec='${libname}${release}${shared_ext}$major'
11149     fi
11150     shlibpath_var=LIBPATH
11151   fi
11152   ;;
11153
11154 amigaos*)
11155   library_names_spec='$libname.ixlibrary $libname.a'
11156   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11157   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'
11158   ;;
11159
11160 beos*)
11161   library_names_spec='${libname}${shared_ext}'
11162   dynamic_linker="$host_os ld.so"
11163   shlibpath_var=LIBRARY_PATH
11164   ;;
11165
11166 bsdi4*)
11167   version_type=linux
11168   need_version=no
11169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170   soname_spec='${libname}${release}${shared_ext}$major'
11171   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11172   shlibpath_var=LD_LIBRARY_PATH
11173   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11174   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11175   # the default ld.so.conf also contains /usr/contrib/lib and
11176   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11177   # libtool to hard-code these into programs
11178   ;;
11179
11180 cygwin* | mingw* | pw32*)
11181   version_type=windows
11182   shrext=".dll"
11183   need_version=no
11184   need_lib_prefix=no
11185
11186   case $GCC,$host_os in
11187   yes,cygwin* | yes,mingw* | yes,pw32*)
11188     library_names_spec='$libname.dll.a'
11189     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11190     postinstall_cmds='base_file=`basename \${file}`~
11191       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11192       dldir=$destdir/`dirname \$dlpath`~
11193       test -d \$dldir || mkdir -p \$dldir~
11194       $install_prog $dir/$dlname \$dldir/$dlname'
11195     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11196       dlpath=$dir/\$dldll~
11197        $rm \$dlpath'
11198     shlibpath_overrides_runpath=yes
11199
11200     case $host_os in
11201     cygwin*)
11202       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11203       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11204       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11205       ;;
11206     mingw*)
11207       # MinGW DLLs use traditional 'lib' prefix
11208       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11209       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11210       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11211         # It is most probably a Windows format PATH printed by
11212         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11213         # path with ; separators, and with drive letters. We can handle the
11214         # drive letters (cygwin fileutils understands them), so leave them,
11215         # especially as we might pass files found there to a mingw objdump,
11216         # which wouldn't understand a cygwinified path. Ahh.
11217         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11218       else
11219         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11220       fi
11221       ;;
11222     pw32*)
11223       # pw32 DLLs use 'pw' prefix rather than 'lib'
11224       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11225       ;;
11226     esac
11227     ;;
11228
11229   *)
11230     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11231     ;;
11232   esac
11233   dynamic_linker='Win32 ld.exe'
11234   # FIXME: first we should search . and the directory the executable is in
11235   shlibpath_var=PATH
11236   ;;
11237
11238 darwin* | rhapsody*)
11239   dynamic_linker="$host_os dyld"
11240   version_type=darwin
11241   need_lib_prefix=no
11242   need_version=no
11243   # FIXME: Relying on posixy $() will cause problems for
11244   #        cross-compilation, but unfortunately the echo tests do not
11245   #        yet detect zsh echo's removal of \ escapes.
11246   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11247   soname_spec='${libname}${release}${major}$shared_ext'
11248   shlibpath_overrides_runpath=yes
11249   shlibpath_var=DYLD_LIBRARY_PATH
11250   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11251   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11252   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11253   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"`
11254   fi
11255   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11256   ;;
11257
11258 dgux*)
11259   version_type=linux
11260   need_lib_prefix=no
11261   need_version=no
11262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11263   soname_spec='${libname}${release}${shared_ext}$major'
11264   shlibpath_var=LD_LIBRARY_PATH
11265   ;;
11266
11267 freebsd1*)
11268   dynamic_linker=no
11269   ;;
11270
11271 freebsd*)
11272   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11273   version_type=freebsd-$objformat
11274   case $version_type in
11275     freebsd-elf*)
11276       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11277       need_version=no
11278       need_lib_prefix=no
11279       ;;
11280     freebsd-*)
11281       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11282       need_version=yes
11283       ;;
11284   esac
11285   shlibpath_var=LD_LIBRARY_PATH
11286   case $host_os in
11287   freebsd2*)
11288     shlibpath_overrides_runpath=yes
11289     ;;
11290   freebsd3.01* | freebsdelf3.01*)
11291     shlibpath_overrides_runpath=yes
11292     hardcode_into_libs=yes
11293     ;;
11294   *) # from 3.2 on
11295     shlibpath_overrides_runpath=no
11296     hardcode_into_libs=yes
11297     ;;
11298   esac
11299   ;;
11300
11301 gnu*)
11302   version_type=linux
11303   need_lib_prefix=no
11304   need_version=no
11305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11306   soname_spec='${libname}${release}${shared_ext}$major'
11307   shlibpath_var=LD_LIBRARY_PATH
11308   hardcode_into_libs=yes
11309   ;;
11310
11311 hpux9* | hpux10* | hpux11*)
11312   # Give a soname corresponding to the major version so that dld.sl refuses to
11313   # link against other versions.
11314   version_type=sunos
11315   need_lib_prefix=no
11316   need_version=no
11317   case "$host_cpu" in
11318   ia64*)
11319     shrext='.so'
11320     hardcode_into_libs=yes
11321     dynamic_linker="$host_os dld.so"
11322     shlibpath_var=LD_LIBRARY_PATH
11323     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11325     soname_spec='${libname}${release}${shared_ext}$major'
11326     if test "X$HPUX_IA64_MODE" = X32; then
11327       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11328     else
11329       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11330     fi
11331     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11332     ;;
11333    hppa*64*)
11334      shrext='.sl'
11335      hardcode_into_libs=yes
11336      dynamic_linker="$host_os dld.sl"
11337      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11338      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11339      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340      soname_spec='${libname}${release}${shared_ext}$major'
11341      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11342      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11343      ;;
11344    *)
11345     shrext='.sl'
11346     dynamic_linker="$host_os dld.sl"
11347     shlibpath_var=SHLIB_PATH
11348     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350     soname_spec='${libname}${release}${shared_ext}$major'
11351     ;;
11352   esac
11353   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11354   postinstall_cmds='chmod 555 $lib'
11355   ;;
11356
11357 irix5* | irix6* | nonstopux*)
11358   case $host_os in
11359     nonstopux*) version_type=nonstopux ;;
11360     *)
11361         if test "$lt_cv_prog_gnu_ld" = yes; then
11362                 version_type=linux
11363         else
11364                 version_type=irix
11365         fi ;;
11366   esac
11367   need_lib_prefix=no
11368   need_version=no
11369   soname_spec='${libname}${release}${shared_ext}$major'
11370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11371   case $host_os in
11372   irix5* | nonstopux*)
11373     libsuff= shlibsuff=
11374     ;;
11375   *)
11376     case $LD in # libtool.m4 will add one of these switches to LD
11377     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11378       libsuff= shlibsuff= libmagic=32-bit;;
11379     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11380       libsuff=32 shlibsuff=N32 libmagic=N32;;
11381     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11382       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11383     *) libsuff= shlibsuff= libmagic=never-match;;
11384     esac
11385     ;;
11386   esac
11387   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11388   shlibpath_overrides_runpath=no
11389   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11390   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11391   hardcode_into_libs=yes
11392   ;;
11393
11394 # No shared lib support for Linux oldld, aout, or coff.
11395 linux*oldld* | linux*aout* | linux*coff*)
11396   dynamic_linker=no
11397   ;;
11398
11399 # This must be Linux ELF.
11400 linux*)
11401   version_type=linux
11402   need_lib_prefix=no
11403   need_version=no
11404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405   soname_spec='${libname}${release}${shared_ext}$major'
11406   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11407   shlibpath_var=LD_LIBRARY_PATH
11408   shlibpath_overrides_runpath=no
11409   # This implies no fast_install, which is unacceptable.
11410   # Some rework will be needed to allow for fast_install
11411   # before this can be enabled.
11412   hardcode_into_libs=yes
11413
11414   # We used to test for /lib/ld.so.1 and disable shared libraries on
11415   # powerpc, because MkLinux only supported shared libraries with the
11416   # GNU dynamic linker.  Since this was broken with cross compilers,
11417   # most powerpc-linux boxes support dynamic linking these days and
11418   # people can always --disable-shared, the test was removed, and we
11419   # assume the GNU/Linux dynamic linker is in use.
11420   dynamic_linker='GNU/Linux ld.so'
11421   ;;
11422
11423 netbsd*)
11424   version_type=sunos
11425   need_lib_prefix=no
11426   need_version=no
11427   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11429     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11430     dynamic_linker='NetBSD (a.out) ld.so'
11431   else
11432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11433     soname_spec='${libname}${release}${shared_ext}$major'
11434     dynamic_linker='NetBSD ld.elf_so'
11435   fi
11436   shlibpath_var=LD_LIBRARY_PATH
11437   shlibpath_overrides_runpath=yes
11438   hardcode_into_libs=yes
11439   ;;
11440
11441 newsos6)
11442   version_type=linux
11443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444   shlibpath_var=LD_LIBRARY_PATH
11445   shlibpath_overrides_runpath=yes
11446   ;;
11447
11448 nto-qnx)
11449   version_type=linux
11450   need_lib_prefix=no
11451   need_version=no
11452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453   soname_spec='${libname}${release}${shared_ext}$major'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   shlibpath_overrides_runpath=yes
11456   ;;
11457
11458 openbsd*)
11459   version_type=sunos
11460   need_lib_prefix=no
11461   need_version=no
11462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11463   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11464   shlibpath_var=LD_LIBRARY_PATH
11465   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11466     case $host_os in
11467       openbsd2.[89] | openbsd2.[89].*)
11468         shlibpath_overrides_runpath=no
11469         ;;
11470       *)
11471         shlibpath_overrides_runpath=yes
11472         ;;
11473       esac
11474   else
11475     shlibpath_overrides_runpath=yes
11476   fi
11477   ;;
11478
11479 os2*)
11480   libname_spec='$name'
11481   shrext=".dll"
11482   need_lib_prefix=no
11483   library_names_spec='$libname${shared_ext} $libname.a'
11484   dynamic_linker='OS/2 ld.exe'
11485   shlibpath_var=LIBPATH
11486   ;;
11487
11488 osf3* | osf4* | osf5*)
11489   version_type=osf
11490   need_lib_prefix=no
11491   need_version=no
11492   soname_spec='${libname}${release}${shared_ext}$major'
11493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11494   shlibpath_var=LD_LIBRARY_PATH
11495   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11496   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11497   ;;
11498
11499 sco3.2v5*)
11500   version_type=osf
11501   soname_spec='${libname}${release}${shared_ext}$major'
11502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503   shlibpath_var=LD_LIBRARY_PATH
11504   ;;
11505
11506 solaris*)
11507   version_type=linux
11508   need_lib_prefix=no
11509   need_version=no
11510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511   soname_spec='${libname}${release}${shared_ext}$major'
11512   shlibpath_var=LD_LIBRARY_PATH
11513   shlibpath_overrides_runpath=yes
11514   hardcode_into_libs=yes
11515   # ldd complains unless libraries are executable
11516   postinstall_cmds='chmod +x $lib'
11517   ;;
11518
11519 sunos4*)
11520   version_type=sunos
11521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11522   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11523   shlibpath_var=LD_LIBRARY_PATH
11524   shlibpath_overrides_runpath=yes
11525   if test "$with_gnu_ld" = yes; then
11526     need_lib_prefix=no
11527   fi
11528   need_version=yes
11529   ;;
11530
11531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11532   version_type=linux
11533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534   soname_spec='${libname}${release}${shared_ext}$major'
11535   shlibpath_var=LD_LIBRARY_PATH
11536   case $host_vendor in
11537     sni)
11538       shlibpath_overrides_runpath=no
11539       need_lib_prefix=no
11540       export_dynamic_flag_spec='${wl}-Blargedynsym'
11541       runpath_var=LD_RUN_PATH
11542       ;;
11543     siemens)
11544       need_lib_prefix=no
11545       ;;
11546     motorola)
11547       need_lib_prefix=no
11548       need_version=no
11549       shlibpath_overrides_runpath=no
11550       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11551       ;;
11552   esac
11553   ;;
11554
11555 sysv4*MP*)
11556   if test -d /usr/nec ;then
11557     version_type=linux
11558     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11559     soname_spec='$libname${shared_ext}.$major'
11560     shlibpath_var=LD_LIBRARY_PATH
11561   fi
11562   ;;
11563
11564 uts4*)
11565   version_type=linux
11566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567   soname_spec='${libname}${release}${shared_ext}$major'
11568   shlibpath_var=LD_LIBRARY_PATH
11569   ;;
11570
11571 *)
11572   dynamic_linker=no
11573   ;;
11574 esac
11575 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11576 echo "${ECHO_T}$dynamic_linker" >&6
11577 test "$dynamic_linker" = no && can_build_shared=no
11578
11579 if test "x$enable_dlopen" != xyes; then
11580   enable_dlopen=unknown
11581   enable_dlopen_self=unknown
11582   enable_dlopen_self_static=unknown
11583 else
11584   lt_cv_dlopen=no
11585   lt_cv_dlopen_libs=
11586
11587   case $host_os in
11588   beos*)
11589     lt_cv_dlopen="load_add_on"
11590     lt_cv_dlopen_libs=
11591     lt_cv_dlopen_self=yes
11592     ;;
11593
11594   mingw* | pw32*)
11595     lt_cv_dlopen="LoadLibrary"
11596     lt_cv_dlopen_libs=
11597    ;;
11598
11599   cygwin*)
11600     lt_cv_dlopen="dlopen"
11601     lt_cv_dlopen_libs=
11602    ;;
11603
11604   darwin*)
11605   # if libdl is installed we need to link against it
11606     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11607 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11608 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11609   echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611   ac_check_lib_save_LIBS=$LIBS
11612 LIBS="-ldl  $LIBS"
11613 cat >conftest.$ac_ext <<_ACEOF
11614 #line $LINENO "configure"
11615 /* confdefs.h.  */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h.  */
11620
11621 /* Override any gcc2 internal prototype to avoid an error.  */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 /* We use char because int might match the return type of a gcc2
11626    builtin and then its argument prototype would still apply.  */
11627 char dlopen ();
11628 int
11629 main ()
11630 {
11631 dlopen ();
11632   ;
11633   return 0;
11634 }
11635 _ACEOF
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638   (eval $ac_link) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } &&
11642          { ac_try='test -s conftest$ac_exeext'
11643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644   (eval $ac_try) 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; }; then
11648   ac_cv_lib_dl_dlopen=yes
11649 else
11650   echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653 ac_cv_lib_dl_dlopen=no
11654 fi
11655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11657 fi
11658 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11659 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11660 if test $ac_cv_lib_dl_dlopen = yes; then
11661   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11662 else
11663
11664     lt_cv_dlopen="dyld"
11665     lt_cv_dlopen_libs=
11666     lt_cv_dlopen_self=yes
11667
11668 fi
11669
11670    ;;
11671
11672   *)
11673     echo "$as_me:$LINENO: checking for shl_load" >&5
11674 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11675 if test "${ac_cv_func_shl_load+set}" = set; then
11676   echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678   cat >conftest.$ac_ext <<_ACEOF
11679 #line $LINENO "configure"
11680 /* confdefs.h.  */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h.  */
11685 /* System header to define __stub macros and hopefully few prototypes,
11686     which can conflict with char shl_load (); below.
11687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11688     <limits.h> exists even on freestanding compilers.  */
11689 #ifdef __STDC__
11690 # include <limits.h>
11691 #else
11692 # include <assert.h>
11693 #endif
11694 /* Override any gcc2 internal prototype to avoid an error.  */
11695 #ifdef __cplusplus
11696 extern "C"
11697 {
11698 #endif
11699 /* We use char because int might match the return type of a gcc2
11700    builtin and then its argument prototype would still apply.  */
11701 char shl_load ();
11702 /* The GNU C library defines this for functions which it implements
11703     to always fail with ENOSYS.  Some functions are actually named
11704     something starting with __ and the normal name is an alias.  */
11705 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11706 choke me
11707 #else
11708 char (*f) () = shl_load;
11709 #endif
11710 #ifdef __cplusplus
11711 }
11712 #endif
11713
11714 int
11715 main ()
11716 {
11717 return f != shl_load;
11718   ;
11719   return 0;
11720 }
11721 _ACEOF
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724   (eval $ac_link) 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); } &&
11728          { ac_try='test -s conftest$ac_exeext'
11729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730   (eval $ac_try) 2>&5
11731   ac_status=$?
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); }; }; then
11734   ac_cv_func_shl_load=yes
11735 else
11736   echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11738
11739 ac_cv_func_shl_load=no
11740 fi
11741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11742 fi
11743 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11744 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11745 if test $ac_cv_func_shl_load = yes; then
11746   lt_cv_dlopen="shl_load"
11747 else
11748   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11749 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11750 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11751   echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753   ac_check_lib_save_LIBS=$LIBS
11754 LIBS="-ldld  $LIBS"
11755 cat >conftest.$ac_ext <<_ACEOF
11756 #line $LINENO "configure"
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762
11763 /* Override any gcc2 internal prototype to avoid an error.  */
11764 #ifdef __cplusplus
11765 extern "C"
11766 #endif
11767 /* We use char because int might match the return type of a gcc2
11768    builtin and then its argument prototype would still apply.  */
11769 char shl_load ();
11770 int
11771 main ()
11772 {
11773 shl_load ();
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780   (eval $ac_link) 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); } &&
11784          { ac_try='test -s conftest$ac_exeext'
11785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786   (eval $ac_try) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790   ac_cv_lib_dld_shl_load=yes
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795 ac_cv_lib_dld_shl_load=no
11796 fi
11797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11798 LIBS=$ac_check_lib_save_LIBS
11799 fi
11800 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11801 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11802 if test $ac_cv_lib_dld_shl_load = yes; then
11803   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11804 else
11805   echo "$as_me:$LINENO: checking for dlopen" >&5
11806 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11807 if test "${ac_cv_func_dlopen+set}" = set; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   cat >conftest.$ac_ext <<_ACEOF
11811 #line $LINENO "configure"
11812 /* confdefs.h.  */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h.  */
11817 /* System header to define __stub macros and hopefully few prototypes,
11818     which can conflict with char dlopen (); below.
11819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11820     <limits.h> exists even on freestanding compilers.  */
11821 #ifdef __STDC__
11822 # include <limits.h>
11823 #else
11824 # include <assert.h>
11825 #endif
11826 /* Override any gcc2 internal prototype to avoid an error.  */
11827 #ifdef __cplusplus
11828 extern "C"
11829 {
11830 #endif
11831 /* We use char because int might match the return type of a gcc2
11832    builtin and then its argument prototype would still apply.  */
11833 char dlopen ();
11834 /* The GNU C library defines this for functions which it implements
11835     to always fail with ENOSYS.  Some functions are actually named
11836     something starting with __ and the normal name is an alias.  */
11837 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11838 choke me
11839 #else
11840 char (*f) () = dlopen;
11841 #endif
11842 #ifdef __cplusplus
11843 }
11844 #endif
11845
11846 int
11847 main ()
11848 {
11849 return f != dlopen;
11850   ;
11851   return 0;
11852 }
11853 _ACEOF
11854 rm -f conftest.$ac_objext conftest$ac_exeext
11855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11856   (eval $ac_link) 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); } &&
11860          { ac_try='test -s conftest$ac_exeext'
11861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862   (eval $ac_try) 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); }; }; then
11866   ac_cv_func_dlopen=yes
11867 else
11868   echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871 ac_cv_func_dlopen=no
11872 fi
11873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11874 fi
11875 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11876 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11877 if test $ac_cv_func_dlopen = yes; then
11878   lt_cv_dlopen="dlopen"
11879 else
11880   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11881 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   ac_check_lib_save_LIBS=$LIBS
11886 LIBS="-ldl  $LIBS"
11887 cat >conftest.$ac_ext <<_ACEOF
11888 #line $LINENO "configure"
11889 /* confdefs.h.  */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h.  */
11894
11895 /* Override any gcc2 internal prototype to avoid an error.  */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 /* We use char because int might match the return type of a gcc2
11900    builtin and then its argument prototype would still apply.  */
11901 char dlopen ();
11902 int
11903 main ()
11904 {
11905 dlopen ();
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912   (eval $ac_link) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); } &&
11916          { ac_try='test -s conftest$ac_exeext'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   ac_cv_lib_dl_dlopen=yes
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 ac_cv_lib_dl_dlopen=no
11928 fi
11929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11930 LIBS=$ac_check_lib_save_LIBS
11931 fi
11932 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11933 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11934 if test $ac_cv_lib_dl_dlopen = yes; then
11935   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11936 else
11937   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11938 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11939 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   ac_check_lib_save_LIBS=$LIBS
11943 LIBS="-lsvld  $LIBS"
11944 cat >conftest.$ac_ext <<_ACEOF
11945 #line $LINENO "configure"
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951
11952 /* Override any gcc2 internal prototype to avoid an error.  */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 /* We use char because int might match the return type of a gcc2
11957    builtin and then its argument prototype would still apply.  */
11958 char dlopen ();
11959 int
11960 main ()
11961 {
11962 dlopen ();
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 rm -f conftest.$ac_objext conftest$ac_exeext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969   (eval $ac_link) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); } &&
11973          { ac_try='test -s conftest$ac_exeext'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; }; then
11979   ac_cv_lib_svld_dlopen=yes
11980 else
11981   echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 ac_cv_lib_svld_dlopen=no
11985 fi
11986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11988 fi
11989 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11990 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11991 if test $ac_cv_lib_svld_dlopen = yes; then
11992   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11993 else
11994   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11995 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11996 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11997   echo $ECHO_N "(cached) $ECHO_C" >&6
11998 else
11999   ac_check_lib_save_LIBS=$LIBS
12000 LIBS="-ldld  $LIBS"
12001 cat >conftest.$ac_ext <<_ACEOF
12002 #line $LINENO "configure"
12003 /* confdefs.h.  */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h.  */
12008
12009 /* Override any gcc2 internal prototype to avoid an error.  */
12010 #ifdef __cplusplus
12011 extern "C"
12012 #endif
12013 /* We use char because int might match the return type of a gcc2
12014    builtin and then its argument prototype would still apply.  */
12015 char dld_link ();
12016 int
12017 main ()
12018 {
12019 dld_link ();
12020   ;
12021   return 0;
12022 }
12023 _ACEOF
12024 rm -f conftest.$ac_objext conftest$ac_exeext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026   (eval $ac_link) 2>&5
12027   ac_status=$?
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); } &&
12030          { ac_try='test -s conftest$ac_exeext'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; }; then
12036   ac_cv_lib_dld_dld_link=yes
12037 else
12038   echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 ac_cv_lib_dld_dld_link=no
12042 fi
12043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12045 fi
12046 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12047 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12048 if test $ac_cv_lib_dld_dld_link = yes; then
12049   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12050 fi
12051
12052
12053 fi
12054
12055
12056 fi
12057
12058
12059 fi
12060
12061
12062 fi
12063
12064
12065 fi
12066
12067     ;;
12068   esac
12069
12070   if test "x$lt_cv_dlopen" != xno; then
12071     enable_dlopen=yes
12072   else
12073     enable_dlopen=no
12074   fi
12075
12076   case $lt_cv_dlopen in
12077   dlopen)
12078     save_CPPFLAGS="$CPPFLAGS"
12079     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12080
12081     save_LDFLAGS="$LDFLAGS"
12082     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12083
12084     save_LIBS="$LIBS"
12085     LIBS="$lt_cv_dlopen_libs $LIBS"
12086
12087     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12088 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12089 if test "${lt_cv_dlopen_self+set}" = set; then
12090   echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092           if test "$cross_compiling" = yes; then :
12093   lt_cv_dlopen_self=cross
12094 else
12095   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12096   lt_status=$lt_dlunknown
12097   cat > conftest.$ac_ext <<EOF
12098 #line 12098 "configure"
12099 #include "confdefs.h"
12100
12101 #if HAVE_DLFCN_H
12102 #include <dlfcn.h>
12103 #endif
12104
12105 #include <stdio.h>
12106
12107 #ifdef RTLD_GLOBAL
12108 #  define LT_DLGLOBAL           RTLD_GLOBAL
12109 #else
12110 #  ifdef DL_GLOBAL
12111 #    define LT_DLGLOBAL         DL_GLOBAL
12112 #  else
12113 #    define LT_DLGLOBAL         0
12114 #  endif
12115 #endif
12116
12117 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12118    find out it does not work in some platform. */
12119 #ifndef LT_DLLAZY_OR_NOW
12120 #  ifdef RTLD_LAZY
12121 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12122 #  else
12123 #    ifdef DL_LAZY
12124 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12125 #    else
12126 #      ifdef RTLD_NOW
12127 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12128 #      else
12129 #        ifdef DL_NOW
12130 #          define LT_DLLAZY_OR_NOW      DL_NOW
12131 #        else
12132 #          define LT_DLLAZY_OR_NOW      0
12133 #        endif
12134 #      endif
12135 #    endif
12136 #  endif
12137 #endif
12138
12139 #ifdef __cplusplus
12140 extern "C" void exit (int);
12141 #endif
12142
12143 void fnord() { int i=42;}
12144 int main ()
12145 {
12146   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12147   int status = $lt_dlunknown;
12148
12149   if (self)
12150     {
12151       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12152       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12153       /* dlclose (self); */
12154     }
12155
12156     exit (status);
12157 }
12158 EOF
12159   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12160   (eval $ac_link) 2>&5
12161   ac_status=$?
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12164     (./conftest; exit; ) 2>/dev/null
12165     lt_status=$?
12166     case x$lt_status in
12167       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12168       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12169       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12170     esac
12171   else :
12172     # compilation failed
12173     lt_cv_dlopen_self=no
12174   fi
12175 fi
12176 rm -fr conftest*
12177
12178
12179 fi
12180 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12181 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12182
12183     if test "x$lt_cv_dlopen_self" = xyes; then
12184       LDFLAGS="$LDFLAGS $link_static_flag"
12185       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12186 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12187 if test "${lt_cv_dlopen_self_static+set}" = set; then
12188   echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190           if test "$cross_compiling" = yes; then :
12191   lt_cv_dlopen_self_static=cross
12192 else
12193   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12194   lt_status=$lt_dlunknown
12195   cat > conftest.$ac_ext <<EOF
12196 #line 12196 "configure"
12197 #include "confdefs.h"
12198
12199 #if HAVE_DLFCN_H
12200 #include <dlfcn.h>
12201 #endif
12202
12203 #include <stdio.h>
12204
12205 #ifdef RTLD_GLOBAL
12206 #  define LT_DLGLOBAL           RTLD_GLOBAL
12207 #else
12208 #  ifdef DL_GLOBAL
12209 #    define LT_DLGLOBAL         DL_GLOBAL
12210 #  else
12211 #    define LT_DLGLOBAL         0
12212 #  endif
12213 #endif
12214
12215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12216    find out it does not work in some platform. */
12217 #ifndef LT_DLLAZY_OR_NOW
12218 #  ifdef RTLD_LAZY
12219 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12220 #  else
12221 #    ifdef DL_LAZY
12222 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12223 #    else
12224 #      ifdef RTLD_NOW
12225 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12226 #      else
12227 #        ifdef DL_NOW
12228 #          define LT_DLLAZY_OR_NOW      DL_NOW
12229 #        else
12230 #          define LT_DLLAZY_OR_NOW      0
12231 #        endif
12232 #      endif
12233 #    endif
12234 #  endif
12235 #endif
12236
12237 #ifdef __cplusplus
12238 extern "C" void exit (int);
12239 #endif
12240
12241 void fnord() { int i=42;}
12242 int main ()
12243 {
12244   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12245   int status = $lt_dlunknown;
12246
12247   if (self)
12248     {
12249       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12250       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12251       /* dlclose (self); */
12252     }
12253
12254     exit (status);
12255 }
12256 EOF
12257   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258   (eval $ac_link) 2>&5
12259   ac_status=$?
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12262     (./conftest; exit; ) 2>/dev/null
12263     lt_status=$?
12264     case x$lt_status in
12265       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12266       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12267       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12268     esac
12269   else :
12270     # compilation failed
12271     lt_cv_dlopen_self_static=no
12272   fi
12273 fi
12274 rm -fr conftest*
12275
12276
12277 fi
12278 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12279 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12280     fi
12281
12282     CPPFLAGS="$save_CPPFLAGS"
12283     LDFLAGS="$save_LDFLAGS"
12284     LIBS="$save_LIBS"
12285     ;;
12286   esac
12287
12288   case $lt_cv_dlopen_self in
12289   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12290   *) enable_dlopen_self=unknown ;;
12291   esac
12292
12293   case $lt_cv_dlopen_self_static in
12294   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12295   *) enable_dlopen_self_static=unknown ;;
12296   esac
12297 fi
12298
12299
12300 # The else clause should only fire when bootstrapping the
12301 # libtool distribution, otherwise you forgot to ship ltmain.sh
12302 # with your package, and you will get complaints that there are
12303 # no rules to generate ltmain.sh.
12304 if test -f "$ltmain"; then
12305   # See if we are running on zsh, and set the options which allow our commands through
12306   # without removal of \ escapes.
12307   if test -n "${ZSH_VERSION+set}" ; then
12308     setopt NO_GLOB_SUBST
12309   fi
12310   # Now quote all the things that may contain metacharacters while being
12311   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12312   # variables and quote the copies for generation of the libtool script.
12313   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12314     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12315     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12316     deplibs_check_method reload_flag reload_cmds need_locks \
12317     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12318     lt_cv_sys_global_symbol_to_c_name_address \
12319     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12320     old_postinstall_cmds old_postuninstall_cmds \
12321     compiler_CXX \
12322     CC_CXX \
12323     LD_CXX \
12324     lt_prog_compiler_wl_CXX \
12325     lt_prog_compiler_pic_CXX \
12326     lt_prog_compiler_static_CXX \
12327     lt_prog_compiler_no_builtin_flag_CXX \
12328     export_dynamic_flag_spec_CXX \
12329     thread_safe_flag_spec_CXX \
12330     whole_archive_flag_spec_CXX \
12331     enable_shared_with_static_runtimes_CXX \
12332     old_archive_cmds_CXX \
12333     old_archive_from_new_cmds_CXX \
12334     predep_objects_CXX \
12335     postdep_objects_CXX \
12336     predeps_CXX \
12337     postdeps_CXX \
12338     compiler_lib_search_path_CXX \
12339     archive_cmds_CXX \
12340     archive_expsym_cmds_CXX \
12341     postinstall_cmds_CXX \
12342     postuninstall_cmds_CXX \
12343     old_archive_from_expsyms_cmds_CXX \
12344     allow_undefined_flag_CXX \
12345     no_undefined_flag_CXX \
12346     export_symbols_cmds_CXX \
12347     hardcode_libdir_flag_spec_CXX \
12348     hardcode_libdir_flag_spec_ld_CXX \
12349     hardcode_libdir_separator_CXX \
12350     hardcode_automatic_CXX \
12351     module_cmds_CXX \
12352     module_expsym_cmds_CXX \
12353     lt_cv_prog_compiler_c_o_CXX \
12354     exclude_expsyms_CXX \
12355     include_expsyms_CXX; do
12356
12357     case $var in
12358     old_archive_cmds_CXX | \
12359     old_archive_from_new_cmds_CXX | \
12360     archive_cmds_CXX | \
12361     archive_expsym_cmds_CXX | \
12362     module_cmds_CXX | \
12363     module_expsym_cmds_CXX | \
12364     old_archive_from_expsyms_cmds_CXX | \
12365     export_symbols_cmds_CXX | \
12366     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12367     postinstall_cmds | postuninstall_cmds | \
12368     old_postinstall_cmds | old_postuninstall_cmds | \
12369     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12370       # Double-quote double-evaled strings.
12371       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12372       ;;
12373     *)
12374       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12375       ;;
12376     esac
12377   done
12378
12379   case $lt_echo in
12380   *'\$0 --fallback-echo"')
12381     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12382     ;;
12383   esac
12384
12385 cfgfile="$ofile"
12386
12387   cat <<__EOF__ >> "$cfgfile"
12388 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12389
12390 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12391
12392 # Shell to use when invoking shell scripts.
12393 SHELL=$lt_SHELL
12394
12395 # Whether or not to build shared libraries.
12396 build_libtool_libs=$enable_shared
12397
12398 # Whether or not to build static libraries.
12399 build_old_libs=$enable_static
12400
12401 # Whether or not to add -lc for building shared libraries.
12402 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12403
12404 # Whether or not to disallow shared libs when runtime libs are static
12405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12406
12407 # Whether or not to optimize for fast installation.
12408 fast_install=$enable_fast_install
12409
12410 # The host system.
12411 host_alias=$host_alias
12412 host=$host
12413
12414 # An echo program that does not interpret backslashes.
12415 echo=$lt_echo
12416
12417 # The archiver.
12418 AR=$lt_AR
12419 AR_FLAGS=$lt_AR_FLAGS
12420
12421 # A C compiler.
12422 LTCC=$lt_LTCC
12423
12424 # A language-specific compiler.
12425 CC=$lt_compiler_CXX
12426
12427 # Is the compiler the GNU C compiler?
12428 with_gcc=$GCC_CXX
12429
12430 # An ERE matcher.
12431 EGREP=$lt_EGREP
12432
12433 # The linker used to build libraries.
12434 LD=$lt_LD_CXX
12435
12436 # Whether we need hard or soft links.
12437 LN_S=$lt_LN_S
12438
12439 # A BSD-compatible nm program.
12440 NM=$lt_NM
12441
12442 # A symbol stripping program
12443 STRIP=$STRIP
12444
12445 # Used to examine libraries when file_magic_cmd begins "file"
12446 MAGIC_CMD=$MAGIC_CMD
12447
12448 # Used on cygwin: DLL creation program.
12449 DLLTOOL="$DLLTOOL"
12450
12451 # Used on cygwin: object dumper.
12452 OBJDUMP="$OBJDUMP"
12453
12454 # Used on cygwin: assembler.
12455 AS="$AS"
12456
12457 # The name of the directory that contains temporary libtool files.
12458 objdir=$objdir
12459
12460 # How to create reloadable object files.
12461 reload_flag=$lt_reload_flag
12462 reload_cmds=$lt_reload_cmds
12463
12464 # How to pass a linker flag through the compiler.
12465 wl=$lt_lt_prog_compiler_wl_CXX
12466
12467 # Object file suffix (normally "o").
12468 objext="$ac_objext"
12469
12470 # Old archive suffix (normally "a").
12471 libext="$libext"
12472
12473 # Shared library suffix (normally ".so").
12474 shrext='$shrext'
12475
12476 # Executable file suffix (normally "").
12477 exeext="$exeext"
12478
12479 # Additional compiler flags for building library objects.
12480 pic_flag=$lt_lt_prog_compiler_pic_CXX
12481 pic_mode=$pic_mode
12482
12483 # What is the maximum length of a command?
12484 max_cmd_len=$lt_cv_sys_max_cmd_len
12485
12486 # Does compiler simultaneously support -c and -o options?
12487 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12488
12489 # Must we lock files when doing compilation ?
12490 need_locks=$lt_need_locks
12491
12492 # Do we need the lib prefix for modules?
12493 need_lib_prefix=$need_lib_prefix
12494
12495 # Do we need a version for libraries?
12496 need_version=$need_version
12497
12498 # Whether dlopen is supported.
12499 dlopen_support=$enable_dlopen
12500
12501 # Whether dlopen of programs is supported.
12502 dlopen_self=$enable_dlopen_self
12503
12504 # Whether dlopen of statically linked programs is supported.
12505 dlopen_self_static=$enable_dlopen_self_static
12506
12507 # Compiler flag to prevent dynamic linking.
12508 link_static_flag=$lt_lt_prog_compiler_static_CXX
12509
12510 # Compiler flag to turn off builtin functions.
12511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12512
12513 # Compiler flag to allow reflexive dlopens.
12514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12515
12516 # Compiler flag to generate shared objects directly from archives.
12517 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12518
12519 # Compiler flag to generate thread-safe objects.
12520 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12521
12522 # Library versioning type.
12523 version_type=$version_type
12524
12525 # Format of library name prefix.
12526 libname_spec=$lt_libname_spec
12527
12528 # List of archive names.  First name is the real one, the rest are links.
12529 # The last name is the one that the linker finds with -lNAME.
12530 library_names_spec=$lt_library_names_spec
12531
12532 # The coded name of the library, if different from the real name.
12533 soname_spec=$lt_soname_spec
12534
12535 # Commands used to build and install an old-style archive.
12536 RANLIB=$lt_RANLIB
12537 old_archive_cmds=$lt_old_archive_cmds_CXX
12538 old_postinstall_cmds=$lt_old_postinstall_cmds
12539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12540
12541 # Create an old-style archive from a shared archive.
12542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12543
12544 # Create a temporary old-style archive to link instead of a shared archive.
12545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12546
12547 # Commands used to build and install a shared archive.
12548 archive_cmds=$lt_archive_cmds_CXX
12549 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12550 postinstall_cmds=$lt_postinstall_cmds
12551 postuninstall_cmds=$lt_postuninstall_cmds
12552
12553 # Commands used to build a loadable module (assumed same as above if empty)
12554 module_cmds=$lt_module_cmds_CXX
12555 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12556
12557 # Commands to strip libraries.
12558 old_striplib=$lt_old_striplib
12559 striplib=$lt_striplib
12560
12561 # Dependencies to place before the objects being linked to create a
12562 # shared library.
12563 predep_objects=$lt_predep_objects_CXX
12564
12565 # Dependencies to place after the objects being linked to create a
12566 # shared library.
12567 postdep_objects=$lt_postdep_objects_CXX
12568
12569 # Dependencies to place before the objects being linked to create a
12570 # shared library.
12571 predeps=$lt_predeps_CXX
12572
12573 # Dependencies to place after the objects being linked to create a
12574 # shared library.
12575 postdeps=$lt_postdeps_CXX
12576
12577 # The library search path used internally by the compiler when linking
12578 # a shared library.
12579 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12580
12581 # Method to check whether dependent libraries are shared objects.
12582 deplibs_check_method=$lt_deplibs_check_method
12583
12584 # Command to use when deplibs_check_method == file_magic.
12585 file_magic_cmd=$lt_file_magic_cmd
12586
12587 # Flag that allows shared libraries with undefined symbols to be built.
12588 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12589
12590 # Flag that forces no undefined symbols.
12591 no_undefined_flag=$lt_no_undefined_flag_CXX
12592
12593 # Commands used to finish a libtool library installation in a directory.
12594 finish_cmds=$lt_finish_cmds
12595
12596 # Same as above, but a single script fragment to be evaled but not shown.
12597 finish_eval=$lt_finish_eval
12598
12599 # Take the output of nm and produce a listing of raw symbols and C names.
12600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12601
12602 # Transform the output of nm in a proper C declaration
12603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12604
12605 # Transform the output of nm in a C name address pair
12606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12607
12608 # This is the shared library runtime path variable.
12609 runpath_var=$runpath_var
12610
12611 # This is the shared library path variable.
12612 shlibpath_var=$shlibpath_var
12613
12614 # Is shlibpath searched before the hard-coded library search path?
12615 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12616
12617 # How to hardcode a shared library path into an executable.
12618 hardcode_action=$hardcode_action_CXX
12619
12620 # Whether we should hardcode library paths into libraries.
12621 hardcode_into_libs=$hardcode_into_libs
12622
12623 # Flag to hardcode \$libdir into a binary during linking.
12624 # This must work even if \$libdir does not exist.
12625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12626
12627 # If ld is used when linking, flag to hardcode \$libdir into
12628 # a binary during linking. This must work even if \$libdir does
12629 # not exist.
12630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12631
12632 # Whether we need a single -rpath flag with a separated argument.
12633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12634
12635 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12636 # resulting binary.
12637 hardcode_direct=$hardcode_direct_CXX
12638
12639 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12640 # resulting binary.
12641 hardcode_minus_L=$hardcode_minus_L_CXX
12642
12643 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12644 # the resulting binary.
12645 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12646
12647 # Set to yes if building a shared library automatically hardcodes DIR into the library
12648 # and all subsequent libraries and executables linked against it.
12649 hardcode_automatic=$hardcode_automatic_CXX
12650
12651 # Variables whose values should be saved in libtool wrapper scripts and
12652 # restored at relink time.
12653 variables_saved_for_relink="$variables_saved_for_relink"
12654
12655 # Whether libtool must link a program against all its dependency libraries.
12656 link_all_deplibs=$link_all_deplibs_CXX
12657
12658 # Compile-time system search path for libraries
12659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12660
12661 # Run-time system search path for libraries
12662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12663
12664 # Fix the shell variable \$srcfile for the compiler.
12665 fix_srcfile_path="$fix_srcfile_path_CXX"
12666
12667 # Set to yes if exported symbols are required.
12668 always_export_symbols=$always_export_symbols_CXX
12669
12670 # The commands to list exported symbols.
12671 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12672
12673 # The commands to extract the exported symbol list from a shared archive.
12674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12675
12676 # Symbols that should not be listed in the preloaded symbols.
12677 exclude_expsyms=$lt_exclude_expsyms_CXX
12678
12679 # Symbols that must always be exported.
12680 include_expsyms=$lt_include_expsyms_CXX
12681
12682 # ### END LIBTOOL TAG CONFIG: $tagname
12683
12684 __EOF__
12685
12686
12687 else
12688   # If there is no Makefile yet, we rely on a make rule to execute
12689   # `config.status --recheck' to rerun these tests and create the
12690   # libtool script then.
12691   test -f Makefile && make "$ltmain"
12692 fi
12693
12694
12695 ac_ext=c
12696 ac_cpp='$CPP $CPPFLAGS'
12697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12700
12701 CC=$lt_save_CC
12702 LDCXX=$LD
12703 LD=$lt_save_LD
12704 GCC=$lt_save_GCC
12705 with_gnu_ldcxx=$with_gnu_ld
12706 with_gnu_ld=$lt_save_with_gnu_ld
12707 lt_cv_path_LDCXX=$lt_cv_path_LD
12708 lt_cv_path_LD=$lt_save_path_LD
12709 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12710 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12711
12712         else
12713           tagname=""
12714         fi
12715         ;;
12716
12717       F77)
12718         if test -n "$F77" && test "X$F77" != "Xno"; then
12719
12720 ac_ext=f
12721 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12722 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12723 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12724
12725
12726 archive_cmds_need_lc_F77=no
12727 allow_undefined_flag_F77=
12728 always_export_symbols_F77=no
12729 archive_expsym_cmds_F77=
12730 export_dynamic_flag_spec_F77=
12731 hardcode_direct_F77=no
12732 hardcode_libdir_flag_spec_F77=
12733 hardcode_libdir_flag_spec_ld_F77=
12734 hardcode_libdir_separator_F77=
12735 hardcode_minus_L_F77=no
12736 hardcode_automatic_F77=no
12737 module_cmds_F77=
12738 module_expsym_cmds_F77=
12739 link_all_deplibs_F77=unknown
12740 old_archive_cmds_F77=$old_archive_cmds
12741 no_undefined_flag_F77=
12742 whole_archive_flag_spec_F77=
12743 enable_shared_with_static_runtimes_F77=no
12744
12745 # Source file extension for f77 test sources.
12746 ac_ext=f
12747
12748 # Object file extension for compiled f77 test sources.
12749 objext=o
12750 objext_F77=$objext
12751
12752 # Code to be used in simple compile tests
12753 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12754
12755 # Code to be used in simple link tests
12756 lt_simple_link_test_code="      program t\n      end\n"
12757
12758 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12759
12760 # If no C compiler was specified, use CC.
12761 LTCC=${LTCC-"$CC"}
12762
12763 # Allow CC to be a program name with arguments.
12764 compiler=$CC
12765
12766
12767 # Allow CC to be a program name with arguments.
12768 lt_save_CC="$CC"
12769 CC=${F77-"f77"}
12770 compiler=$CC
12771 compiler_F77=$CC
12772 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12773
12774 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12775 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12776 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12777 echo "${ECHO_T}$can_build_shared" >&6
12778
12779 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12780 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12781 test "$can_build_shared" = "no" && enable_shared=no
12782
12783 # On AIX, shared libraries and static libraries use the same namespace, and
12784 # are all built from PIC.
12785 case "$host_os" in
12786 aix3*)
12787   test "$enable_shared" = yes && enable_static=no
12788   if test -n "$RANLIB"; then
12789     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12790     postinstall_cmds='$RANLIB $lib'
12791   fi
12792   ;;
12793 aix4*)
12794   test "$enable_shared" = yes && enable_static=no
12795   ;;
12796 esac
12797 echo "$as_me:$LINENO: result: $enable_shared" >&5
12798 echo "${ECHO_T}$enable_shared" >&6
12799
12800 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12801 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12802 # Make sure either enable_shared or enable_static is yes.
12803 test "$enable_shared" = yes || enable_static=yes
12804 echo "$as_me:$LINENO: result: $enable_static" >&5
12805 echo "${ECHO_T}$enable_static" >&6
12806
12807 test "$ld_shlibs_F77" = no && can_build_shared=no
12808
12809 GCC_F77="$G77"
12810 LD_F77="$LD"
12811
12812 lt_prog_compiler_wl_F77=
12813 lt_prog_compiler_pic_F77=
12814 lt_prog_compiler_static_F77=
12815
12816 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12817 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12818
12819   if test "$GCC" = yes; then
12820     lt_prog_compiler_wl_F77='-Wl,'
12821     lt_prog_compiler_static_F77='-static'
12822
12823     case $host_os in
12824       aix*)
12825       # All AIX code is PIC.
12826       if test "$host_cpu" = ia64; then
12827         # AIX 5 now supports IA64 processor
12828         lt_prog_compiler_static_F77='-Bstatic'
12829       fi
12830       ;;
12831
12832     amigaos*)
12833       # FIXME: we need at least 68020 code to build shared libraries, but
12834       # adding the `-m68020' flag to GCC prevents building anything better,
12835       # like `-m68040'.
12836       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12837       ;;
12838
12839     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12840       # PIC is the default for these OSes.
12841       ;;
12842
12843     mingw* | pw32* | os2*)
12844       # This hack is so that the source file can tell whether it is being
12845       # built for inclusion in a dll (and should export symbols for example).
12846       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12847       ;;
12848
12849     darwin* | rhapsody*)
12850       # PIC is the default on this platform
12851       # Common symbols not allowed in MH_DYLIB files
12852       lt_prog_compiler_pic_F77='-fno-common'
12853       ;;
12854
12855     msdosdjgpp*)
12856       # Just because we use GCC doesn't mean we suddenly get shared libraries
12857       # on systems that don't support them.
12858       lt_prog_compiler_can_build_shared_F77=no
12859       enable_shared=no
12860       ;;
12861
12862     sysv4*MP*)
12863       if test -d /usr/nec; then
12864         lt_prog_compiler_pic_F77=-Kconform_pic
12865       fi
12866       ;;
12867
12868     hpux*)
12869       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12870       # not for PA HP-UX.
12871       case "$host_cpu" in
12872       hppa*64*|ia64*)
12873         # +Z the default
12874         ;;
12875       *)
12876         lt_prog_compiler_pic_F77='-fPIC'
12877         ;;
12878       esac
12879       ;;
12880
12881     *)
12882       lt_prog_compiler_pic_F77='-fPIC'
12883       ;;
12884     esac
12885   else
12886     # PORTME Check for flag to pass linker flags through the system compiler.
12887     case $host_os in
12888     aix*)
12889       lt_prog_compiler_wl_F77='-Wl,'
12890       if test "$host_cpu" = ia64; then
12891         # AIX 5 now supports IA64 processor
12892         lt_prog_compiler_static_F77='-Bstatic'
12893       else
12894         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12895       fi
12896       ;;
12897
12898     mingw* | pw32* | os2*)
12899       # This hack is so that the source file can tell whether it is being
12900       # built for inclusion in a dll (and should export symbols for example).
12901       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12902       ;;
12903
12904     hpux9* | hpux10* | hpux11*)
12905       lt_prog_compiler_wl_F77='-Wl,'
12906       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12907       # not for PA HP-UX.
12908       case "$host_cpu" in
12909       hppa*64*|ia64*)
12910         # +Z the default
12911         ;;
12912       *)
12913         lt_prog_compiler_pic_F77='+Z'
12914         ;;
12915       esac
12916       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12917       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12918       ;;
12919
12920     irix5* | irix6* | nonstopux*)
12921       lt_prog_compiler_wl_F77='-Wl,'
12922       # PIC (with -KPIC) is the default.
12923       lt_prog_compiler_static_F77='-non_shared'
12924       ;;
12925
12926     newsos6)
12927       lt_prog_compiler_pic_F77='-KPIC'
12928       lt_prog_compiler_static_F77='-Bstatic'
12929       ;;
12930
12931     linux*)
12932       case $CC in
12933       icc|ecc)
12934         lt_prog_compiler_wl_F77='-Wl,'
12935         lt_prog_compiler_pic_F77='-KPIC'
12936         lt_prog_compiler_static_F77='-static'
12937         ;;
12938       ccc)
12939         lt_prog_compiler_wl_F77='-Wl,'
12940         # All Alpha code is PIC.
12941         lt_prog_compiler_static_F77='-non_shared'
12942         ;;
12943       esac
12944       ;;
12945
12946     osf3* | osf4* | osf5*)
12947       lt_prog_compiler_wl_F77='-Wl,'
12948       # All OSF/1 code is PIC.
12949       lt_prog_compiler_static_F77='-non_shared'
12950       ;;
12951
12952     sco3.2v5*)
12953       lt_prog_compiler_pic_F77='-Kpic'
12954       lt_prog_compiler_static_F77='-dn'
12955       ;;
12956
12957     solaris*)
12958       lt_prog_compiler_wl_F77='-Wl,'
12959       lt_prog_compiler_pic_F77='-KPIC'
12960       lt_prog_compiler_static_F77='-Bstatic'
12961       ;;
12962
12963     sunos4*)
12964       lt_prog_compiler_wl_F77='-Qoption ld '
12965       lt_prog_compiler_pic_F77='-PIC'
12966       lt_prog_compiler_static_F77='-Bstatic'
12967       ;;
12968
12969     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12970       lt_prog_compiler_wl_F77='-Wl,'
12971       lt_prog_compiler_pic_F77='-KPIC'
12972       lt_prog_compiler_static_F77='-Bstatic'
12973       ;;
12974
12975     sysv4*MP*)
12976       if test -d /usr/nec ;then
12977         lt_prog_compiler_pic_F77='-Kconform_pic'
12978         lt_prog_compiler_static_F77='-Bstatic'
12979       fi
12980       ;;
12981
12982     uts4*)
12983       lt_prog_compiler_pic_F77='-pic'
12984       lt_prog_compiler_static_F77='-Bstatic'
12985       ;;
12986
12987     *)
12988       lt_prog_compiler_can_build_shared_F77=no
12989       ;;
12990     esac
12991   fi
12992
12993 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12994 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12995
12996 #
12997 # Check to make sure the PIC flag actually works.
12998 #
12999 if test -n "$lt_prog_compiler_pic_F77"; then
13000   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13001 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13002 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13003   echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005   lt_prog_compiler_pic_works_F77=no
13006   ac_outfile=conftest.$ac_objext
13007    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13008    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13009    # Insert the option either (1) after the last *FLAGS variable, or
13010    # (2) before a word containing "conftest.", or (3) at the end.
13011    # Note that $ac_compile itself does not contain backslashes and begins
13012    # with a dollar sign (not a hyphen), so the echo should work correctly.
13013    # The option is referenced via a variable to avoid confusing sed.
13014    lt_compile=`echo "$ac_compile" | $SED \
13015    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13016    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13017    -e 's:$: $lt_compiler_flag:'`
13018    (eval echo "\"\$as_me:13018: $lt_compile\"" >&5)
13019    (eval "$lt_compile" 2>conftest.err)
13020    ac_status=$?
13021    cat conftest.err >&5
13022    echo "$as_me:13022: \$? = $ac_status" >&5
13023    if (exit $ac_status) && test -s "$ac_outfile"; then
13024      # The compiler can only warn and ignore the option if not recognized
13025      # So say no if there are warnings
13026      if test ! -s conftest.err; then
13027        lt_prog_compiler_pic_works_F77=yes
13028      fi
13029    fi
13030    $rm conftest*
13031
13032 fi
13033 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13034 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13035
13036 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13037     case $lt_prog_compiler_pic_F77 in
13038      "" | " "*) ;;
13039      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13040      esac
13041 else
13042     lt_prog_compiler_pic_F77=
13043      lt_prog_compiler_can_build_shared_F77=no
13044 fi
13045
13046 fi
13047 case "$host_os" in
13048   # For platforms which do not support PIC, -DPIC is meaningless:
13049   *djgpp*)
13050     lt_prog_compiler_pic_F77=
13051     ;;
13052   *)
13053     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13054     ;;
13055 esac
13056
13057 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13058 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13059 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13060   echo $ECHO_N "(cached) $ECHO_C" >&6
13061 else
13062   lt_cv_prog_compiler_c_o_F77=no
13063    $rm -r conftest 2>/dev/null
13064    mkdir conftest
13065    cd conftest
13066    mkdir out
13067    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13068
13069    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13070    # that will create temporary files in the current directory regardless of
13071    # the output directory.  Thus, making CWD read-only will cause this test
13072    # to fail, enabling locking or at least warning the user not to do parallel
13073    # builds.
13074    chmod -w .
13075
13076    lt_compiler_flag="-o out/conftest2.$ac_objext"
13077    # Insert the option either (1) after the last *FLAGS variable, or
13078    # (2) before a word containing "conftest.", or (3) at the end.
13079    # Note that $ac_compile itself does not contain backslashes and begins
13080    # with a dollar sign (not a hyphen), so the echo should work correctly.
13081    lt_compile=`echo "$ac_compile" | $SED \
13082    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13084    -e 's:$: $lt_compiler_flag:'`
13085    (eval echo "\"\$as_me:13085: $lt_compile\"" >&5)
13086    (eval "$lt_compile" 2>out/conftest.err)
13087    ac_status=$?
13088    cat out/conftest.err >&5
13089    echo "$as_me:13089: \$? = $ac_status" >&5
13090    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13091    then
13092      # The compiler can only warn and ignore the option if not recognized
13093      # So say no if there are warnings
13094      if test ! -s out/conftest.err; then
13095        lt_cv_prog_compiler_c_o_F77=yes
13096      fi
13097    fi
13098    chmod u+w .
13099    $rm conftest* out/*
13100    rmdir out
13101    cd ..
13102    rmdir conftest
13103    $rm conftest*
13104
13105 fi
13106 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13107 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13108
13109
13110 hard_links="nottested"
13111 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13112   # do not overwrite the value of need_locks provided by the user
13113   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13114 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13115   hard_links=yes
13116   $rm conftest*
13117   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13118   touch conftest.a
13119   ln conftest.a conftest.b 2>&5 || hard_links=no
13120   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13121   echo "$as_me:$LINENO: result: $hard_links" >&5
13122 echo "${ECHO_T}$hard_links" >&6
13123   if test "$hard_links" = no; then
13124     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13125 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13126     need_locks=warn
13127   fi
13128 else
13129   need_locks=no
13130 fi
13131
13132 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13133 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13134
13135   runpath_var=
13136   allow_undefined_flag_F77=
13137   enable_shared_with_static_runtimes_F77=no
13138   archive_cmds_F77=
13139   archive_expsym_cmds_F77=
13140   old_archive_From_new_cmds_F77=
13141   old_archive_from_expsyms_cmds_F77=
13142   export_dynamic_flag_spec_F77=
13143   whole_archive_flag_spec_F77=
13144   thread_safe_flag_spec_F77=
13145   hardcode_libdir_flag_spec_F77=
13146   hardcode_libdir_flag_spec_ld_F77=
13147   hardcode_libdir_separator_F77=
13148   hardcode_direct_F77=no
13149   hardcode_minus_L_F77=no
13150   hardcode_shlibpath_var_F77=unsupported
13151   link_all_deplibs_F77=unknown
13152   hardcode_automatic_F77=no
13153   module_cmds_F77=
13154   module_expsym_cmds_F77=
13155   always_export_symbols_F77=no
13156   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13157   # include_expsyms should be a list of space-separated symbols to be *always*
13158   # included in the symbol list
13159   include_expsyms_F77=
13160   # exclude_expsyms can be an extended regexp of symbols to exclude
13161   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13162   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13163   # as well as any symbol that contains `d'.
13164   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13165   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13166   # platforms (ab)use it in PIC code, but their linkers get confused if
13167   # the symbol is explicitly referenced.  Since portable code cannot
13168   # rely on this symbol name, it's probably fine to never include it in
13169   # preloaded symbol tables.
13170   extract_expsyms_cmds=
13171
13172   case $host_os in
13173   cygwin* | mingw* | pw32*)
13174     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13175     # When not using gcc, we currently assume that we are using
13176     # Microsoft Visual C++.
13177     if test "$GCC" != yes; then
13178       with_gnu_ld=no
13179     fi
13180     ;;
13181   openbsd*)
13182     with_gnu_ld=no
13183     ;;
13184   esac
13185
13186   ld_shlibs_F77=yes
13187   if test "$with_gnu_ld" = yes; then
13188     # If archive_cmds runs LD, not CC, wlarc should be empty
13189     wlarc='${wl}'
13190
13191     # See if GNU ld supports shared libraries.
13192     case $host_os in
13193     aix3* | aix4* | aix5*)
13194       # On AIX/PPC, the GNU linker is very broken
13195       if test "$host_cpu" != ia64; then
13196         ld_shlibs_F77=no
13197         cat <<EOF 1>&2
13198
13199 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13200 *** to be unable to reliably create shared libraries on AIX.
13201 *** Therefore, libtool is disabling shared libraries support.  If you
13202 *** really care for shared libraries, you may want to modify your PATH
13203 *** so that a non-GNU linker is found, and then restart.
13204
13205 EOF
13206       fi
13207       ;;
13208
13209     amigaos*)
13210       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)'
13211       hardcode_libdir_flag_spec_F77='-L$libdir'
13212       hardcode_minus_L_F77=yes
13213
13214       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13215       # that the semantics of dynamic libraries on AmigaOS, at least up
13216       # to version 4, is to share data among multiple programs linked
13217       # with the same dynamic library.  Since this doesn't match the
13218       # behavior of shared libraries on other platforms, we can't use
13219       # them.
13220       ld_shlibs_F77=no
13221       ;;
13222
13223     beos*)
13224       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13225         allow_undefined_flag_F77=unsupported
13226         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13227         # support --undefined.  This deserves some investigation.  FIXME
13228         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13229       else
13230         ld_shlibs_F77=no
13231       fi
13232       ;;
13233
13234     cygwin* | mingw* | pw32*)
13235       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13236       # as there is no search path for DLLs.
13237       hardcode_libdir_flag_spec_F77='-L$libdir'
13238       allow_undefined_flag_F77=unsupported
13239       always_export_symbols_F77=no
13240       enable_shared_with_static_runtimes_F77=yes
13241       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13242
13243       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13244         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13245         # If the export-symbols file already is a .def file (1st line
13246         # is EXPORTS), use it as is; otherwise, prepend...
13247         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13248           cp $export_symbols $output_objdir/$soname.def;
13249         else
13250           echo EXPORTS > $output_objdir/$soname.def;
13251           cat $export_symbols >> $output_objdir/$soname.def;
13252         fi~
13253         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13254       else
13255         ld_shlibs=no
13256       fi
13257       ;;
13258
13259     netbsd*)
13260       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13261         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13262         wlarc=
13263       else
13264         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13265         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13266       fi
13267       ;;
13268
13269     solaris* | sysv5*)
13270       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13271         ld_shlibs_F77=no
13272         cat <<EOF 1>&2
13273
13274 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13275 *** create shared libraries on Solaris systems.  Therefore, libtool
13276 *** is disabling shared libraries support.  We urge you to upgrade GNU
13277 *** binutils to release 2.9.1 or newer.  Another option is to modify
13278 *** your PATH or compiler configuration so that the native linker is
13279 *** used, and then restart.
13280
13281 EOF
13282       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13283         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13284         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13285       else
13286         ld_shlibs_F77=no
13287       fi
13288       ;;
13289
13290     sunos4*)
13291       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13292       wlarc=
13293       hardcode_direct_F77=yes
13294       hardcode_shlibpath_var_F77=no
13295       ;;
13296
13297     *)
13298       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13299         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13300         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13301       else
13302         ld_shlibs_F77=no
13303       fi
13304       ;;
13305     esac
13306
13307     if test "$ld_shlibs_F77" = yes; then
13308       runpath_var=LD_RUN_PATH
13309       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13310       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13311       # ancient GNU ld didn't support --whole-archive et. al.
13312       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13313         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13314       else
13315         whole_archive_flag_spec_F77=
13316       fi
13317     fi
13318   else
13319     # PORTME fill in a description of your system's linker (not GNU ld)
13320     case $host_os in
13321     aix3*)
13322       allow_undefined_flag_F77=unsupported
13323       always_export_symbols_F77=yes
13324       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'
13325       # Note: this linker hardcodes the directories in LIBPATH if there
13326       # are no directories specified by -L.
13327       hardcode_minus_L_F77=yes
13328       if test "$GCC" = yes && test -z "$link_static_flag"; then
13329         # Neither direct hardcoding nor static linking is supported with a
13330         # broken collect2.
13331         hardcode_direct_F77=unsupported
13332       fi
13333       ;;
13334
13335     aix4* | aix5*)
13336       if test "$host_cpu" = ia64; then
13337         # On IA64, the linker does run time linking by default, so we don't
13338         # have to do anything special.
13339         aix_use_runtimelinking=no
13340         exp_sym_flag='-Bexport'
13341         no_entry_flag=""
13342       else
13343         # If we're using GNU nm, then we don't want the "-C" option.
13344         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13345         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13346           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'
13347         else
13348           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'
13349         fi
13350         aix_use_runtimelinking=no
13351
13352         # Test if we are trying to use run time linking or normal
13353         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13354         # need to do runtime linking.
13355         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13356           for ld_flag in $LDFLAGS; do
13357           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13358             aix_use_runtimelinking=yes
13359             break
13360           fi
13361           done
13362         esac
13363
13364         exp_sym_flag='-bexport'
13365         no_entry_flag='-bnoentry'
13366       fi
13367
13368       # When large executables or shared objects are built, AIX ld can
13369       # have problems creating the table of contents.  If linking a library
13370       # or program results in "error TOC overflow" add -mminimal-toc to
13371       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13372       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13373
13374       archive_cmds_F77=''
13375       hardcode_direct_F77=yes
13376       hardcode_libdir_separator_F77=':'
13377       link_all_deplibs_F77=yes
13378
13379       if test "$GCC" = yes; then
13380         case $host_os in aix4.012|aix4.012.*)
13381         # We only want to do this on AIX 4.2 and lower, the check
13382         # below for broken collect2 doesn't work under 4.3+
13383           collect2name=`${CC} -print-prog-name=collect2`
13384           if test -f "$collect2name" && \
13385            strings "$collect2name" | grep resolve_lib_name >/dev/null
13386           then
13387           # We have reworked collect2
13388           hardcode_direct_F77=yes
13389           else
13390           # We have old collect2
13391           hardcode_direct_F77=unsupported
13392           # It fails to find uninstalled libraries when the uninstalled
13393           # path is not listed in the libpath.  Setting hardcode_minus_L
13394           # to unsupported forces relinking
13395           hardcode_minus_L_F77=yes
13396           hardcode_libdir_flag_spec_F77='-L$libdir'
13397           hardcode_libdir_separator_F77=
13398           fi
13399         esac
13400         shared_flag='-shared'
13401       else
13402         # not using gcc
13403         if test "$host_cpu" = ia64; then
13404         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13405         # chokes on -Wl,-G. The following line is correct:
13406           shared_flag='-G'
13407         else
13408         if test "$aix_use_runtimelinking" = yes; then
13409             shared_flag='${wl}-G'
13410           else
13411             shared_flag='${wl}-bM:SRE'
13412         fi
13413         fi
13414       fi
13415
13416       # It seems that -bexpall does not export symbols beginning with
13417       # underscore (_), so it is better to generate a list of symbols to export.
13418       always_export_symbols_F77=yes
13419       if test "$aix_use_runtimelinking" = yes; then
13420         # Warning - without using the other runtime loading flags (-brtl),
13421         # -berok will link without error, but may produce a broken library.
13422         allow_undefined_flag_F77='-berok'
13423        # Determine the default libpath from the value encoded in an empty executable.
13424        cat >conftest.$ac_ext <<_ACEOF
13425       program main
13426
13427       end
13428 _ACEOF
13429 rm -f conftest.$ac_objext conftest$ac_exeext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13431   (eval $ac_link) 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); } &&
13435          { ac_try='test -s conftest$ac_exeext'
13436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437   (eval $ac_try) 2>&5
13438   ac_status=$?
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); }; }; then
13441
13442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13443 }'`
13444 # Check for a 64-bit object if we didn't find anything.
13445 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; }
13446 }'`; fi
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451 fi
13452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13454
13455        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13456         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"
13457        else
13458         if test "$host_cpu" = ia64; then
13459           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13460           allow_undefined_flag_F77="-z nodefs"
13461           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"
13462         else
13463          # Determine the default libpath from the value encoded in an empty executable.
13464          cat >conftest.$ac_ext <<_ACEOF
13465       program main
13466
13467       end
13468 _ACEOF
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13471   (eval $ac_link) 2>&5
13472   ac_status=$?
13473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474   (exit $ac_status); } &&
13475          { ac_try='test -s conftest$ac_exeext'
13476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477   (eval $ac_try) 2>&5
13478   ac_status=$?
13479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480   (exit $ac_status); }; }; then
13481
13482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13483 }'`
13484 # Check for a 64-bit object if we didn't find anything.
13485 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; }
13486 }'`; fi
13487 else
13488   echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13490
13491 fi
13492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13494
13495          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13496           # Warning - without using the other run time loading flags,
13497           # -berok will link without error, but may produce a broken library.
13498           no_undefined_flag_F77=' ${wl}-bernotok'
13499           allow_undefined_flag_F77=' ${wl}-berok'
13500           # -bexpall does not export symbols beginning with underscore (_)
13501           always_export_symbols_F77=yes
13502           # Exported symbols can be pulled into shared objects from archives
13503           whole_archive_flag_spec_F77=' '
13504           archive_cmds_need_lc_F77=yes
13505           # This is similar to how AIX traditionally builds it's shared libraries.
13506           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'
13507         fi
13508       fi
13509       ;;
13510
13511     amigaos*)
13512       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)'
13513       hardcode_libdir_flag_spec_F77='-L$libdir'
13514       hardcode_minus_L_F77=yes
13515       # see comment about different semantics on the GNU ld section
13516       ld_shlibs_F77=no
13517       ;;
13518
13519     bsdi4*)
13520       export_dynamic_flag_spec_F77=-rdynamic
13521       ;;
13522
13523     cygwin* | mingw* | pw32*)
13524       # When not using gcc, we currently assume that we are using
13525       # Microsoft Visual C++.
13526       # hardcode_libdir_flag_spec is actually meaningless, as there is
13527       # no search path for DLLs.
13528       hardcode_libdir_flag_spec_F77=' '
13529       allow_undefined_flag_F77=unsupported
13530       # Tell ltmain to make .lib files, not .a files.
13531       libext=lib
13532       # Tell ltmain to make .dll files, not .so files.
13533       shrext=".dll"
13534       # FIXME: Setting linknames here is a bad hack.
13535       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13536       # The linker will automatically build a .lib file if we build a DLL.
13537       old_archive_From_new_cmds_F77='true'
13538       # FIXME: Should let the user specify the lib program.
13539       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13540       fix_srcfile_path='`cygpath -w "$srcfile"`'
13541       enable_shared_with_static_runtimes_F77=yes
13542       ;;
13543
13544     darwin* | rhapsody*)
13545     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13546       archive_cmds_need_lc_F77=no
13547       case "$host_os" in
13548       rhapsody* | darwin1.[012])
13549         allow_undefined_flag_F77='-undefined suppress'
13550         ;;
13551       *) # Darwin 1.3 on
13552         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13553         ;;
13554       esac
13555       # FIXME: Relying on posixy $() will cause problems for
13556       #        cross-compilation, but unfortunately the echo tests do not
13557       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13558       #        `"' quotes if we put them in here... so don't!
13559         lt_int_apple_cc_single_mod=no
13560         output_verbose_link_cmd='echo'
13561         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13562           lt_int_apple_cc_single_mod=yes
13563         fi
13564         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13565           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13566         else
13567         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'
13568       fi
13569       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13570       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13571         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13572           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}'
13573         else
13574           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}'
13575         fi
13576           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}'
13577       hardcode_direct_F77=no
13578       hardcode_automatic_F77=yes
13579       hardcode_shlibpath_var_F77=unsupported
13580       whole_archive_flag_spec_F77='-all_load $convenience'
13581       link_all_deplibs_F77=yes
13582     fi
13583       ;;
13584
13585     dgux*)
13586       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13587       hardcode_libdir_flag_spec_F77='-L$libdir'
13588       hardcode_shlibpath_var_F77=no
13589       ;;
13590
13591     freebsd1*)
13592       ld_shlibs_F77=no
13593       ;;
13594
13595     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13596     # support.  Future versions do this automatically, but an explicit c++rt0.o
13597     # does not break anything, and helps significantly (at the cost of a little
13598     # extra space).
13599     freebsd2.2*)
13600       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13601       hardcode_libdir_flag_spec_F77='-R$libdir'
13602       hardcode_direct_F77=yes
13603       hardcode_shlibpath_var_F77=no
13604       ;;
13605
13606     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13607     freebsd2*)
13608       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13609       hardcode_direct_F77=yes
13610       hardcode_minus_L_F77=yes
13611       hardcode_shlibpath_var_F77=no
13612       ;;
13613
13614     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13615     freebsd*)
13616       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13617       hardcode_libdir_flag_spec_F77='-R$libdir'
13618       hardcode_direct_F77=yes
13619       hardcode_shlibpath_var_F77=no
13620       ;;
13621
13622     hpux9*)
13623       if test "$GCC" = yes; then
13624         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'
13625       else
13626         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'
13627       fi
13628       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13629       hardcode_libdir_separator_F77=:
13630       hardcode_direct_F77=yes
13631
13632       # hardcode_minus_L: Not really in the search PATH,
13633       # but as the default location of the library.
13634       hardcode_minus_L_F77=yes
13635       export_dynamic_flag_spec_F77='${wl}-E'
13636       ;;
13637
13638     hpux10* | hpux11*)
13639       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13640         case "$host_cpu" in
13641         hppa*64*|ia64*)
13642           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13643           ;;
13644         *)
13645           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13646           ;;
13647         esac
13648       else
13649         case "$host_cpu" in
13650         hppa*64*|ia64*)
13651           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13652           ;;
13653         *)
13654           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13655           ;;
13656         esac
13657       fi
13658       if test "$with_gnu_ld" = no; then
13659         case "$host_cpu" in
13660         hppa*64*)
13661           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13662           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13663           hardcode_libdir_separator_F77=:
13664           hardcode_direct_F77=no
13665           hardcode_shlibpath_var_F77=no
13666           ;;
13667         ia64*)
13668           hardcode_libdir_flag_spec_F77='-L$libdir'
13669           hardcode_direct_F77=no
13670           hardcode_shlibpath_var_F77=no
13671
13672           # hardcode_minus_L: Not really in the search PATH,
13673           # but as the default location of the library.
13674           hardcode_minus_L_F77=yes
13675           ;;
13676         *)
13677           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13678           hardcode_libdir_separator_F77=:
13679           hardcode_direct_F77=yes
13680           export_dynamic_flag_spec_F77='${wl}-E'
13681
13682           # hardcode_minus_L: Not really in the search PATH,
13683           # but as the default location of the library.
13684           hardcode_minus_L_F77=yes
13685           ;;
13686         esac
13687       fi
13688       ;;
13689
13690     irix5* | irix6* | nonstopux*)
13691       if test "$GCC" = yes; then
13692         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'
13693       else
13694         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'
13695         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13696       fi
13697       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13698       hardcode_libdir_separator_F77=:
13699       link_all_deplibs_F77=yes
13700       ;;
13701
13702     netbsd*)
13703       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13704         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13705       else
13706         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13707       fi
13708       hardcode_libdir_flag_spec_F77='-R$libdir'
13709       hardcode_direct_F77=yes
13710       hardcode_shlibpath_var_F77=no
13711       ;;
13712
13713     newsos6)
13714       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13715       hardcode_direct_F77=yes
13716       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13717       hardcode_libdir_separator_F77=:
13718       hardcode_shlibpath_var_F77=no
13719       ;;
13720
13721     openbsd*)
13722       hardcode_direct_F77=yes
13723       hardcode_shlibpath_var_F77=no
13724       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13725         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13726         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13727         export_dynamic_flag_spec_F77='${wl}-E'
13728       else
13729        case $host_os in
13730          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13731            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13732            hardcode_libdir_flag_spec_F77='-R$libdir'
13733            ;;
13734          *)
13735            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13736            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13737            ;;
13738        esac
13739       fi
13740       ;;
13741
13742     os2*)
13743       hardcode_libdir_flag_spec_F77='-L$libdir'
13744       hardcode_minus_L_F77=yes
13745       allow_undefined_flag_F77=unsupported
13746       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'
13747       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13748       ;;
13749
13750     osf3*)
13751       if test "$GCC" = yes; then
13752         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13753         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'
13754       else
13755         allow_undefined_flag_F77=' -expect_unresolved \*'
13756         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'
13757       fi
13758       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13759       hardcode_libdir_separator_F77=:
13760       ;;
13761
13762     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13763       if test "$GCC" = yes; then
13764         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13765         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'
13766         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13767       else
13768         allow_undefined_flag_F77=' -expect_unresolved \*'
13769         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'
13770         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~
13771         $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'
13772
13773         # Both c and cxx compiler support -rpath directly
13774         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13775       fi
13776       hardcode_libdir_separator_F77=:
13777       ;;
13778
13779     sco3.2v5*)
13780       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13781       hardcode_shlibpath_var_F77=no
13782       export_dynamic_flag_spec_F77='${wl}-Bexport'
13783       runpath_var=LD_RUN_PATH
13784       hardcode_runpath_var=yes
13785       ;;
13786
13787     solaris*)
13788       no_undefined_flag_F77=' -z text'
13789       if test "$GCC" = yes; then
13790         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13791         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13792           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13793       else
13794         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13795         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13796         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13797       fi
13798       hardcode_libdir_flag_spec_F77='-R$libdir'
13799       hardcode_shlibpath_var_F77=no
13800       case $host_os in
13801       solaris2.[0-5] | solaris2.[0-5].*) ;;
13802       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13803         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13804       esac
13805       link_all_deplibs_F77=yes
13806       ;;
13807
13808     sunos4*)
13809       if test "x$host_vendor" = xsequent; then
13810         # Use $CC to link under sequent, because it throws in some extra .o
13811         # files that make .init and .fini sections work.
13812         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13813       else
13814         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13815       fi
13816       hardcode_libdir_flag_spec_F77='-L$libdir'
13817       hardcode_direct_F77=yes
13818       hardcode_minus_L_F77=yes
13819       hardcode_shlibpath_var_F77=no
13820       ;;
13821
13822     sysv4)
13823       case $host_vendor in
13824         sni)
13825           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13826           hardcode_direct_F77=yes # is this really true???
13827         ;;
13828         siemens)
13829           ## LD is ld it makes a PLAMLIB
13830           ## CC just makes a GrossModule.
13831           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13832           reload_cmds_F77='$CC -r -o $output$reload_objs'
13833           hardcode_direct_F77=no
13834         ;;
13835         motorola)
13836           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13837           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13838         ;;
13839       esac
13840       runpath_var='LD_RUN_PATH'
13841       hardcode_shlibpath_var_F77=no
13842       ;;
13843
13844     sysv4.3*)
13845       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846       hardcode_shlibpath_var_F77=no
13847       export_dynamic_flag_spec_F77='-Bexport'
13848       ;;
13849
13850     sysv4*MP*)
13851       if test -d /usr/nec; then
13852         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13853         hardcode_shlibpath_var_F77=no
13854         runpath_var=LD_RUN_PATH
13855         hardcode_runpath_var=yes
13856         ld_shlibs_F77=yes
13857       fi
13858       ;;
13859
13860     sysv4.2uw2*)
13861       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13862       hardcode_direct_F77=yes
13863       hardcode_minus_L_F77=no
13864       hardcode_shlibpath_var_F77=no
13865       hardcode_runpath_var=yes
13866       runpath_var=LD_RUN_PATH
13867       ;;
13868
13869    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13870       no_undefined_flag_F77='${wl}-z ${wl}text'
13871       if test "$GCC" = yes; then
13872         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13873       else
13874         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13875       fi
13876       runpath_var='LD_RUN_PATH'
13877       hardcode_shlibpath_var_F77=no
13878       ;;
13879
13880     sysv5*)
13881       no_undefined_flag_F77=' -z text'
13882       # $CC -shared without GNU ld will not create a library from C++
13883       # object files and a static libstdc++, better avoid it by now
13884       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13885       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13886                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13887       hardcode_libdir_flag_spec_F77=
13888       hardcode_shlibpath_var_F77=no
13889       runpath_var='LD_RUN_PATH'
13890       ;;
13891
13892     uts4*)
13893       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894       hardcode_libdir_flag_spec_F77='-L$libdir'
13895       hardcode_shlibpath_var_F77=no
13896       ;;
13897
13898     *)
13899       ld_shlibs_F77=no
13900       ;;
13901     esac
13902   fi
13903
13904 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13905 echo "${ECHO_T}$ld_shlibs_F77" >&6
13906 test "$ld_shlibs_F77" = no && can_build_shared=no
13907
13908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13909 if test "$GCC" = yes; then
13910   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13911 fi
13912
13913 #
13914 # Do we need to explicitly link libc?
13915 #
13916 case "x$archive_cmds_need_lc_F77" in
13917 x|xyes)
13918   # Assume -lc should be added
13919   archive_cmds_need_lc_F77=yes
13920
13921   if test "$enable_shared" = yes && test "$GCC" = yes; then
13922     case $archive_cmds_F77 in
13923     *'~'*)
13924       # FIXME: we may have to deal with multi-command sequences.
13925       ;;
13926     '$CC '*)
13927       # Test whether the compiler implicitly links with -lc since on some
13928       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13929       # to ld, don't add -lc before -lgcc.
13930       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13931 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13932       $rm conftest*
13933       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13934
13935       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936   (eval $ac_compile) 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } 2>conftest.err; then
13940         soname=conftest
13941         lib=conftest
13942         libobjs=conftest.$ac_objext
13943         deplibs=
13944         wl=$lt_prog_compiler_wl_F77
13945         compiler_flags=-v
13946         linker_flags=-v
13947         verstring=
13948         output_objdir=.
13949         libname=conftest
13950         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13951         allow_undefined_flag_F77=
13952         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13953   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }
13957         then
13958           archive_cmds_need_lc_F77=no
13959         else
13960           archive_cmds_need_lc_F77=yes
13961         fi
13962         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13963       else
13964         cat conftest.err 1>&5
13965       fi
13966       $rm conftest*
13967       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13968 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13969       ;;
13970     esac
13971   fi
13972   ;;
13973 esac
13974
13975 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13976 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13977 hardcode_action_F77=
13978 if test -n "$hardcode_libdir_flag_spec_F77" || \
13979    test -n "$runpath_var F77" || \
13980    test "X$hardcode_automatic_F77"="Xyes" ; then
13981
13982   # We can hardcode non-existant directories.
13983   if test "$hardcode_direct_F77" != no &&
13984      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13985      # have to relink, otherwise we might link with an installed library
13986      # when we should be linking with a yet-to-be-installed one
13987      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13988      test "$hardcode_minus_L_F77" != no; then
13989     # Linking always hardcodes the temporary library directory.
13990     hardcode_action_F77=relink
13991   else
13992     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13993     hardcode_action_F77=immediate
13994   fi
13995 else
13996   # We cannot hardcode anything, or else we can only hardcode existing
13997   # directories.
13998   hardcode_action_F77=unsupported
13999 fi
14000 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14001 echo "${ECHO_T}$hardcode_action_F77" >&6
14002
14003 if test "$hardcode_action_F77" = relink; then
14004   # Fast installation is not supported
14005   enable_fast_install=no
14006 elif test "$shlibpath_overrides_runpath" = yes ||
14007      test "$enable_shared" = no; then
14008   # Fast installation is not necessary
14009   enable_fast_install=needless
14010 fi
14011
14012 striplib=
14013 old_striplib=
14014 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14015 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14016 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14017   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14018   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14019   echo "$as_me:$LINENO: result: yes" >&5
14020 echo "${ECHO_T}yes" >&6
14021 else
14022 # FIXME - insert some real tests, host_os isn't really good enough
14023   case $host_os in
14024    darwin*)
14025        if test -n "$STRIP" ; then
14026          striplib="$STRIP -x"
14027          echo "$as_me:$LINENO: result: yes" >&5
14028 echo "${ECHO_T}yes" >&6
14029        else
14030   echo "$as_me:$LINENO: result: no" >&5
14031 echo "${ECHO_T}no" >&6
14032 fi
14033        ;;
14034    *)
14035   echo "$as_me:$LINENO: result: no" >&5
14036 echo "${ECHO_T}no" >&6
14037     ;;
14038   esac
14039 fi
14040
14041 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14042 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14043 library_names_spec=
14044 libname_spec='lib$name'
14045 soname_spec=
14046 shrext=".so"
14047 postinstall_cmds=
14048 postuninstall_cmds=
14049 finish_cmds=
14050 finish_eval=
14051 shlibpath_var=
14052 shlibpath_overrides_runpath=unknown
14053 version_type=none
14054 dynamic_linker="$host_os ld.so"
14055 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14056 if test "$GCC" = yes; then
14057   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14058   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14059     # if the path contains ";" then we assume it to be the separator
14060     # otherwise default to the standard path separator (i.e. ":") - it is
14061     # assumed that no part of a normal pathname contains ";" but that should
14062     # okay in the real world where ";" in dirpaths is itself problematic.
14063     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14064   else
14065     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14066   fi
14067 else
14068   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14069 fi
14070 need_lib_prefix=unknown
14071 hardcode_into_libs=no
14072
14073 # when you set need_version to no, make sure it does not cause -set_version
14074 # flags to be left without arguments
14075 need_version=unknown
14076
14077 case $host_os in
14078 aix3*)
14079   version_type=linux
14080   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14081   shlibpath_var=LIBPATH
14082
14083   # AIX 3 has no versioning support, so we append a major version to the name.
14084   soname_spec='${libname}${release}${shared_ext}$major'
14085   ;;
14086
14087 aix4* | aix5*)
14088   version_type=linux
14089   need_lib_prefix=no
14090   need_version=no
14091   hardcode_into_libs=yes
14092   if test "$host_cpu" = ia64; then
14093     # AIX 5 supports IA64
14094     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14095     shlibpath_var=LD_LIBRARY_PATH
14096   else
14097     # With GCC up to 2.95.x, collect2 would create an import file
14098     # for dependence libraries.  The import file would start with
14099     # the line `#! .'.  This would cause the generated library to
14100     # depend on `.', always an invalid library.  This was fixed in
14101     # development snapshots of GCC prior to 3.0.
14102     case $host_os in
14103       aix4 | aix4.[01] | aix4.[01].*)
14104       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14105            echo ' yes '
14106            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14107         :
14108       else
14109         can_build_shared=no
14110       fi
14111       ;;
14112     esac
14113     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14114     # soname into executable. Probably we can add versioning support to
14115     # collect2, so additional links can be useful in future.
14116     if test "$aix_use_runtimelinking" = yes; then
14117       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14118       # instead of lib<name>.a to let people know that these are not
14119       # typical AIX shared libraries.
14120       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121     else
14122       # We preserve .a as extension for shared libraries through AIX4.2
14123       # and later when we are not doing run time linking.
14124       library_names_spec='${libname}${release}.a $libname.a'
14125       soname_spec='${libname}${release}${shared_ext}$major'
14126     fi
14127     shlibpath_var=LIBPATH
14128   fi
14129   ;;
14130
14131 amigaos*)
14132   library_names_spec='$libname.ixlibrary $libname.a'
14133   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14134   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'
14135   ;;
14136
14137 beos*)
14138   library_names_spec='${libname}${shared_ext}'
14139   dynamic_linker="$host_os ld.so"
14140   shlibpath_var=LIBRARY_PATH
14141   ;;
14142
14143 bsdi4*)
14144   version_type=linux
14145   need_version=no
14146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14147   soname_spec='${libname}${release}${shared_ext}$major'
14148   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14149   shlibpath_var=LD_LIBRARY_PATH
14150   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14151   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14152   # the default ld.so.conf also contains /usr/contrib/lib and
14153   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14154   # libtool to hard-code these into programs
14155   ;;
14156
14157 cygwin* | mingw* | pw32*)
14158   version_type=windows
14159   shrext=".dll"
14160   need_version=no
14161   need_lib_prefix=no
14162
14163   case $GCC,$host_os in
14164   yes,cygwin* | yes,mingw* | yes,pw32*)
14165     library_names_spec='$libname.dll.a'
14166     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14167     postinstall_cmds='base_file=`basename \${file}`~
14168       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14169       dldir=$destdir/`dirname \$dlpath`~
14170       test -d \$dldir || mkdir -p \$dldir~
14171       $install_prog $dir/$dlname \$dldir/$dlname'
14172     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14173       dlpath=$dir/\$dldll~
14174        $rm \$dlpath'
14175     shlibpath_overrides_runpath=yes
14176
14177     case $host_os in
14178     cygwin*)
14179       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14180       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14181       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14182       ;;
14183     mingw*)
14184       # MinGW DLLs use traditional 'lib' prefix
14185       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14186       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14187       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14188         # It is most probably a Windows format PATH printed by
14189         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14190         # path with ; separators, and with drive letters. We can handle the
14191         # drive letters (cygwin fileutils understands them), so leave them,
14192         # especially as we might pass files found there to a mingw objdump,
14193         # which wouldn't understand a cygwinified path. Ahh.
14194         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14195       else
14196         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14197       fi
14198       ;;
14199     pw32*)
14200       # pw32 DLLs use 'pw' prefix rather than 'lib'
14201       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14202       ;;
14203     esac
14204     ;;
14205
14206   *)
14207     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14208     ;;
14209   esac
14210   dynamic_linker='Win32 ld.exe'
14211   # FIXME: first we should search . and the directory the executable is in
14212   shlibpath_var=PATH
14213   ;;
14214
14215 darwin* | rhapsody*)
14216   dynamic_linker="$host_os dyld"
14217   version_type=darwin
14218   need_lib_prefix=no
14219   need_version=no
14220   # FIXME: Relying on posixy $() will cause problems for
14221   #        cross-compilation, but unfortunately the echo tests do not
14222   #        yet detect zsh echo's removal of \ escapes.
14223   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14224   soname_spec='${libname}${release}${major}$shared_ext'
14225   shlibpath_overrides_runpath=yes
14226   shlibpath_var=DYLD_LIBRARY_PATH
14227   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14228   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14229   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14230   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"`
14231   fi
14232   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14233   ;;
14234
14235 dgux*)
14236   version_type=linux
14237   need_lib_prefix=no
14238   need_version=no
14239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14240   soname_spec='${libname}${release}${shared_ext}$major'
14241   shlibpath_var=LD_LIBRARY_PATH
14242   ;;
14243
14244 freebsd1*)
14245   dynamic_linker=no
14246   ;;
14247
14248 freebsd*)
14249   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14250   version_type=freebsd-$objformat
14251   case $version_type in
14252     freebsd-elf*)
14253       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14254       need_version=no
14255       need_lib_prefix=no
14256       ;;
14257     freebsd-*)
14258       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14259       need_version=yes
14260       ;;
14261   esac
14262   shlibpath_var=LD_LIBRARY_PATH
14263   case $host_os in
14264   freebsd2*)
14265     shlibpath_overrides_runpath=yes
14266     ;;
14267   freebsd3.01* | freebsdelf3.01*)
14268     shlibpath_overrides_runpath=yes
14269     hardcode_into_libs=yes
14270     ;;
14271   *) # from 3.2 on
14272     shlibpath_overrides_runpath=no
14273     hardcode_into_libs=yes
14274     ;;
14275   esac
14276   ;;
14277
14278 gnu*)
14279   version_type=linux
14280   need_lib_prefix=no
14281   need_version=no
14282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14283   soname_spec='${libname}${release}${shared_ext}$major'
14284   shlibpath_var=LD_LIBRARY_PATH
14285   hardcode_into_libs=yes
14286   ;;
14287
14288 hpux9* | hpux10* | hpux11*)
14289   # Give a soname corresponding to the major version so that dld.sl refuses to
14290   # link against other versions.
14291   version_type=sunos
14292   need_lib_prefix=no
14293   need_version=no
14294   case "$host_cpu" in
14295   ia64*)
14296     shrext='.so'
14297     hardcode_into_libs=yes
14298     dynamic_linker="$host_os dld.so"
14299     shlibpath_var=LD_LIBRARY_PATH
14300     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302     soname_spec='${libname}${release}${shared_ext}$major'
14303     if test "X$HPUX_IA64_MODE" = X32; then
14304       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14305     else
14306       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14307     fi
14308     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14309     ;;
14310    hppa*64*)
14311      shrext='.sl'
14312      hardcode_into_libs=yes
14313      dynamic_linker="$host_os dld.sl"
14314      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14315      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14316      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14317      soname_spec='${libname}${release}${shared_ext}$major'
14318      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14319      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14320      ;;
14321    *)
14322     shrext='.sl'
14323     dynamic_linker="$host_os dld.sl"
14324     shlibpath_var=SHLIB_PATH
14325     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14327     soname_spec='${libname}${release}${shared_ext}$major'
14328     ;;
14329   esac
14330   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14331   postinstall_cmds='chmod 555 $lib'
14332   ;;
14333
14334 irix5* | irix6* | nonstopux*)
14335   case $host_os in
14336     nonstopux*) version_type=nonstopux ;;
14337     *)
14338         if test "$lt_cv_prog_gnu_ld" = yes; then
14339                 version_type=linux
14340         else
14341                 version_type=irix
14342         fi ;;
14343   esac
14344   need_lib_prefix=no
14345   need_version=no
14346   soname_spec='${libname}${release}${shared_ext}$major'
14347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14348   case $host_os in
14349   irix5* | nonstopux*)
14350     libsuff= shlibsuff=
14351     ;;
14352   *)
14353     case $LD in # libtool.m4 will add one of these switches to LD
14354     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14355       libsuff= shlibsuff= libmagic=32-bit;;
14356     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14357       libsuff=32 shlibsuff=N32 libmagic=N32;;
14358     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14359       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14360     *) libsuff= shlibsuff= libmagic=never-match;;
14361     esac
14362     ;;
14363   esac
14364   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14365   shlibpath_overrides_runpath=no
14366   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14367   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14368   hardcode_into_libs=yes
14369   ;;
14370
14371 # No shared lib support for Linux oldld, aout, or coff.
14372 linux*oldld* | linux*aout* | linux*coff*)
14373   dynamic_linker=no
14374   ;;
14375
14376 # This must be Linux ELF.
14377 linux*)
14378   version_type=linux
14379   need_lib_prefix=no
14380   need_version=no
14381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14382   soname_spec='${libname}${release}${shared_ext}$major'
14383   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14384   shlibpath_var=LD_LIBRARY_PATH
14385   shlibpath_overrides_runpath=no
14386   # This implies no fast_install, which is unacceptable.
14387   # Some rework will be needed to allow for fast_install
14388   # before this can be enabled.
14389   hardcode_into_libs=yes
14390
14391   # We used to test for /lib/ld.so.1 and disable shared libraries on
14392   # powerpc, because MkLinux only supported shared libraries with the
14393   # GNU dynamic linker.  Since this was broken with cross compilers,
14394   # most powerpc-linux boxes support dynamic linking these days and
14395   # people can always --disable-shared, the test was removed, and we
14396   # assume the GNU/Linux dynamic linker is in use.
14397   dynamic_linker='GNU/Linux ld.so'
14398   ;;
14399
14400 netbsd*)
14401   version_type=sunos
14402   need_lib_prefix=no
14403   need_version=no
14404   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14406     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14407     dynamic_linker='NetBSD (a.out) ld.so'
14408   else
14409     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14410     soname_spec='${libname}${release}${shared_ext}$major'
14411     dynamic_linker='NetBSD ld.elf_so'
14412   fi
14413   shlibpath_var=LD_LIBRARY_PATH
14414   shlibpath_overrides_runpath=yes
14415   hardcode_into_libs=yes
14416   ;;
14417
14418 newsos6)
14419   version_type=linux
14420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14421   shlibpath_var=LD_LIBRARY_PATH
14422   shlibpath_overrides_runpath=yes
14423   ;;
14424
14425 nto-qnx)
14426   version_type=linux
14427   need_lib_prefix=no
14428   need_version=no
14429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14430   soname_spec='${libname}${release}${shared_ext}$major'
14431   shlibpath_var=LD_LIBRARY_PATH
14432   shlibpath_overrides_runpath=yes
14433   ;;
14434
14435 openbsd*)
14436   version_type=sunos
14437   need_lib_prefix=no
14438   need_version=no
14439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14440   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14441   shlibpath_var=LD_LIBRARY_PATH
14442   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14443     case $host_os in
14444       openbsd2.[89] | openbsd2.[89].*)
14445         shlibpath_overrides_runpath=no
14446         ;;
14447       *)
14448         shlibpath_overrides_runpath=yes
14449         ;;
14450       esac
14451   else
14452     shlibpath_overrides_runpath=yes
14453   fi
14454   ;;
14455
14456 os2*)
14457   libname_spec='$name'
14458   shrext=".dll"
14459   need_lib_prefix=no
14460   library_names_spec='$libname${shared_ext} $libname.a'
14461   dynamic_linker='OS/2 ld.exe'
14462   shlibpath_var=LIBPATH
14463   ;;
14464
14465 osf3* | osf4* | osf5*)
14466   version_type=osf
14467   need_lib_prefix=no
14468   need_version=no
14469   soname_spec='${libname}${release}${shared_ext}$major'
14470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471   shlibpath_var=LD_LIBRARY_PATH
14472   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14473   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14474   ;;
14475
14476 sco3.2v5*)
14477   version_type=osf
14478   soname_spec='${libname}${release}${shared_ext}$major'
14479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480   shlibpath_var=LD_LIBRARY_PATH
14481   ;;
14482
14483 solaris*)
14484   version_type=linux
14485   need_lib_prefix=no
14486   need_version=no
14487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488   soname_spec='${libname}${release}${shared_ext}$major'
14489   shlibpath_var=LD_LIBRARY_PATH
14490   shlibpath_overrides_runpath=yes
14491   hardcode_into_libs=yes
14492   # ldd complains unless libraries are executable
14493   postinstall_cmds='chmod +x $lib'
14494   ;;
14495
14496 sunos4*)
14497   version_type=sunos
14498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14499   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14500   shlibpath_var=LD_LIBRARY_PATH
14501   shlibpath_overrides_runpath=yes
14502   if test "$with_gnu_ld" = yes; then
14503     need_lib_prefix=no
14504   fi
14505   need_version=yes
14506   ;;
14507
14508 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14509   version_type=linux
14510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511   soname_spec='${libname}${release}${shared_ext}$major'
14512   shlibpath_var=LD_LIBRARY_PATH
14513   case $host_vendor in
14514     sni)
14515       shlibpath_overrides_runpath=no
14516       need_lib_prefix=no
14517       export_dynamic_flag_spec='${wl}-Blargedynsym'
14518       runpath_var=LD_RUN_PATH
14519       ;;
14520     siemens)
14521       need_lib_prefix=no
14522       ;;
14523     motorola)
14524       need_lib_prefix=no
14525       need_version=no
14526       shlibpath_overrides_runpath=no
14527       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14528       ;;
14529   esac
14530   ;;
14531
14532 sysv4*MP*)
14533   if test -d /usr/nec ;then
14534     version_type=linux
14535     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14536     soname_spec='$libname${shared_ext}.$major'
14537     shlibpath_var=LD_LIBRARY_PATH
14538   fi
14539   ;;
14540
14541 uts4*)
14542   version_type=linux
14543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544   soname_spec='${libname}${release}${shared_ext}$major'
14545   shlibpath_var=LD_LIBRARY_PATH
14546   ;;
14547
14548 *)
14549   dynamic_linker=no
14550   ;;
14551 esac
14552 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14553 echo "${ECHO_T}$dynamic_linker" >&6
14554 test "$dynamic_linker" = no && can_build_shared=no
14555
14556
14557 # The else clause should only fire when bootstrapping the
14558 # libtool distribution, otherwise you forgot to ship ltmain.sh
14559 # with your package, and you will get complaints that there are
14560 # no rules to generate ltmain.sh.
14561 if test -f "$ltmain"; then
14562   # See if we are running on zsh, and set the options which allow our commands through
14563   # without removal of \ escapes.
14564   if test -n "${ZSH_VERSION+set}" ; then
14565     setopt NO_GLOB_SUBST
14566   fi
14567   # Now quote all the things that may contain metacharacters while being
14568   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14569   # variables and quote the copies for generation of the libtool script.
14570   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14571     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14572     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14573     deplibs_check_method reload_flag reload_cmds need_locks \
14574     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14575     lt_cv_sys_global_symbol_to_c_name_address \
14576     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14577     old_postinstall_cmds old_postuninstall_cmds \
14578     compiler_F77 \
14579     CC_F77 \
14580     LD_F77 \
14581     lt_prog_compiler_wl_F77 \
14582     lt_prog_compiler_pic_F77 \
14583     lt_prog_compiler_static_F77 \
14584     lt_prog_compiler_no_builtin_flag_F77 \
14585     export_dynamic_flag_spec_F77 \
14586     thread_safe_flag_spec_F77 \
14587     whole_archive_flag_spec_F77 \
14588     enable_shared_with_static_runtimes_F77 \
14589     old_archive_cmds_F77 \
14590     old_archive_from_new_cmds_F77 \
14591     predep_objects_F77 \
14592     postdep_objects_F77 \
14593     predeps_F77 \
14594     postdeps_F77 \
14595     compiler_lib_search_path_F77 \
14596     archive_cmds_F77 \
14597     archive_expsym_cmds_F77 \
14598     postinstall_cmds_F77 \
14599     postuninstall_cmds_F77 \
14600     old_archive_from_expsyms_cmds_F77 \
14601     allow_undefined_flag_F77 \
14602     no_undefined_flag_F77 \
14603     export_symbols_cmds_F77 \
14604     hardcode_libdir_flag_spec_F77 \
14605     hardcode_libdir_flag_spec_ld_F77 \
14606     hardcode_libdir_separator_F77 \
14607     hardcode_automatic_F77 \
14608     module_cmds_F77 \
14609     module_expsym_cmds_F77 \
14610     lt_cv_prog_compiler_c_o_F77 \
14611     exclude_expsyms_F77 \
14612     include_expsyms_F77; do
14613
14614     case $var in
14615     old_archive_cmds_F77 | \
14616     old_archive_from_new_cmds_F77 | \
14617     archive_cmds_F77 | \
14618     archive_expsym_cmds_F77 | \
14619     module_cmds_F77 | \
14620     module_expsym_cmds_F77 | \
14621     old_archive_from_expsyms_cmds_F77 | \
14622     export_symbols_cmds_F77 | \
14623     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14624     postinstall_cmds | postuninstall_cmds | \
14625     old_postinstall_cmds | old_postuninstall_cmds | \
14626     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14627       # Double-quote double-evaled strings.
14628       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14629       ;;
14630     *)
14631       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14632       ;;
14633     esac
14634   done
14635
14636   case $lt_echo in
14637   *'\$0 --fallback-echo"')
14638     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14639     ;;
14640   esac
14641
14642 cfgfile="$ofile"
14643
14644   cat <<__EOF__ >> "$cfgfile"
14645 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14646
14647 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14648
14649 # Shell to use when invoking shell scripts.
14650 SHELL=$lt_SHELL
14651
14652 # Whether or not to build shared libraries.
14653 build_libtool_libs=$enable_shared
14654
14655 # Whether or not to build static libraries.
14656 build_old_libs=$enable_static
14657
14658 # Whether or not to add -lc for building shared libraries.
14659 build_libtool_need_lc=$archive_cmds_need_lc_F77
14660
14661 # Whether or not to disallow shared libs when runtime libs are static
14662 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14663
14664 # Whether or not to optimize for fast installation.
14665 fast_install=$enable_fast_install
14666
14667 # The host system.
14668 host_alias=$host_alias
14669 host=$host
14670
14671 # An echo program that does not interpret backslashes.
14672 echo=$lt_echo
14673
14674 # The archiver.
14675 AR=$lt_AR
14676 AR_FLAGS=$lt_AR_FLAGS
14677
14678 # A C compiler.
14679 LTCC=$lt_LTCC
14680
14681 # A language-specific compiler.
14682 CC=$lt_compiler_F77
14683
14684 # Is the compiler the GNU C compiler?
14685 with_gcc=$GCC_F77
14686
14687 # An ERE matcher.
14688 EGREP=$lt_EGREP
14689
14690 # The linker used to build libraries.
14691 LD=$lt_LD_F77
14692
14693 # Whether we need hard or soft links.
14694 LN_S=$lt_LN_S
14695
14696 # A BSD-compatible nm program.
14697 NM=$lt_NM
14698
14699 # A symbol stripping program
14700 STRIP=$STRIP
14701
14702 # Used to examine libraries when file_magic_cmd begins "file"
14703 MAGIC_CMD=$MAGIC_CMD
14704
14705 # Used on cygwin: DLL creation program.
14706 DLLTOOL="$DLLTOOL"
14707
14708 # Used on cygwin: object dumper.
14709 OBJDUMP="$OBJDUMP"
14710
14711 # Used on cygwin: assembler.
14712 AS="$AS"
14713
14714 # The name of the directory that contains temporary libtool files.
14715 objdir=$objdir
14716
14717 # How to create reloadable object files.
14718 reload_flag=$lt_reload_flag
14719 reload_cmds=$lt_reload_cmds
14720
14721 # How to pass a linker flag through the compiler.
14722 wl=$lt_lt_prog_compiler_wl_F77
14723
14724 # Object file suffix (normally "o").
14725 objext="$ac_objext"
14726
14727 # Old archive suffix (normally "a").
14728 libext="$libext"
14729
14730 # Shared library suffix (normally ".so").
14731 shrext='$shrext'
14732
14733 # Executable file suffix (normally "").
14734 exeext="$exeext"
14735
14736 # Additional compiler flags for building library objects.
14737 pic_flag=$lt_lt_prog_compiler_pic_F77
14738 pic_mode=$pic_mode
14739
14740 # What is the maximum length of a command?
14741 max_cmd_len=$lt_cv_sys_max_cmd_len
14742
14743 # Does compiler simultaneously support -c and -o options?
14744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14745
14746 # Must we lock files when doing compilation ?
14747 need_locks=$lt_need_locks
14748
14749 # Do we need the lib prefix for modules?
14750 need_lib_prefix=$need_lib_prefix
14751
14752 # Do we need a version for libraries?
14753 need_version=$need_version
14754
14755 # Whether dlopen is supported.
14756 dlopen_support=$enable_dlopen
14757
14758 # Whether dlopen of programs is supported.
14759 dlopen_self=$enable_dlopen_self
14760
14761 # Whether dlopen of statically linked programs is supported.
14762 dlopen_self_static=$enable_dlopen_self_static
14763
14764 # Compiler flag to prevent dynamic linking.
14765 link_static_flag=$lt_lt_prog_compiler_static_F77
14766
14767 # Compiler flag to turn off builtin functions.
14768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14769
14770 # Compiler flag to allow reflexive dlopens.
14771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14772
14773 # Compiler flag to generate shared objects directly from archives.
14774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14775
14776 # Compiler flag to generate thread-safe objects.
14777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14778
14779 # Library versioning type.
14780 version_type=$version_type
14781
14782 # Format of library name prefix.
14783 libname_spec=$lt_libname_spec
14784
14785 # List of archive names.  First name is the real one, the rest are links.
14786 # The last name is the one that the linker finds with -lNAME.
14787 library_names_spec=$lt_library_names_spec
14788
14789 # The coded name of the library, if different from the real name.
14790 soname_spec=$lt_soname_spec
14791
14792 # Commands used to build and install an old-style archive.
14793 RANLIB=$lt_RANLIB
14794 old_archive_cmds=$lt_old_archive_cmds_F77
14795 old_postinstall_cmds=$lt_old_postinstall_cmds
14796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14797
14798 # Create an old-style archive from a shared archive.
14799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14800
14801 # Create a temporary old-style archive to link instead of a shared archive.
14802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14803
14804 # Commands used to build and install a shared archive.
14805 archive_cmds=$lt_archive_cmds_F77
14806 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14807 postinstall_cmds=$lt_postinstall_cmds
14808 postuninstall_cmds=$lt_postuninstall_cmds
14809
14810 # Commands used to build a loadable module (assumed same as above if empty)
14811 module_cmds=$lt_module_cmds_F77
14812 module_expsym_cmds=$lt_module_expsym_cmds_F77
14813
14814 # Commands to strip libraries.
14815 old_striplib=$lt_old_striplib
14816 striplib=$lt_striplib
14817
14818 # Dependencies to place before the objects being linked to create a
14819 # shared library.
14820 predep_objects=$lt_predep_objects_F77
14821
14822 # Dependencies to place after the objects being linked to create a
14823 # shared library.
14824 postdep_objects=$lt_postdep_objects_F77
14825
14826 # Dependencies to place before the objects being linked to create a
14827 # shared library.
14828 predeps=$lt_predeps_F77
14829
14830 # Dependencies to place after the objects being linked to create a
14831 # shared library.
14832 postdeps=$lt_postdeps_F77
14833
14834 # The library search path used internally by the compiler when linking
14835 # a shared library.
14836 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14837
14838 # Method to check whether dependent libraries are shared objects.
14839 deplibs_check_method=$lt_deplibs_check_method
14840
14841 # Command to use when deplibs_check_method == file_magic.
14842 file_magic_cmd=$lt_file_magic_cmd
14843
14844 # Flag that allows shared libraries with undefined symbols to be built.
14845 allow_undefined_flag=$lt_allow_undefined_flag_F77
14846
14847 # Flag that forces no undefined symbols.
14848 no_undefined_flag=$lt_no_undefined_flag_F77
14849
14850 # Commands used to finish a libtool library installation in a directory.
14851 finish_cmds=$lt_finish_cmds
14852
14853 # Same as above, but a single script fragment to be evaled but not shown.
14854 finish_eval=$lt_finish_eval
14855
14856 # Take the output of nm and produce a listing of raw symbols and C names.
14857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14858
14859 # Transform the output of nm in a proper C declaration
14860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14861
14862 # Transform the output of nm in a C name address pair
14863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14864
14865 # This is the shared library runtime path variable.
14866 runpath_var=$runpath_var
14867
14868 # This is the shared library path variable.
14869 shlibpath_var=$shlibpath_var
14870
14871 # Is shlibpath searched before the hard-coded library search path?
14872 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14873
14874 # How to hardcode a shared library path into an executable.
14875 hardcode_action=$hardcode_action_F77
14876
14877 # Whether we should hardcode library paths into libraries.
14878 hardcode_into_libs=$hardcode_into_libs
14879
14880 # Flag to hardcode \$libdir into a binary during linking.
14881 # This must work even if \$libdir does not exist.
14882 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14883
14884 # If ld is used when linking, flag to hardcode \$libdir into
14885 # a binary during linking. This must work even if \$libdir does
14886 # not exist.
14887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14888
14889 # Whether we need a single -rpath flag with a separated argument.
14890 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14891
14892 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14893 # resulting binary.
14894 hardcode_direct=$hardcode_direct_F77
14895
14896 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14897 # resulting binary.
14898 hardcode_minus_L=$hardcode_minus_L_F77
14899
14900 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14901 # the resulting binary.
14902 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14903
14904 # Set to yes if building a shared library automatically hardcodes DIR into the library
14905 # and all subsequent libraries and executables linked against it.
14906 hardcode_automatic=$hardcode_automatic_F77
14907
14908 # Variables whose values should be saved in libtool wrapper scripts and
14909 # restored at relink time.
14910 variables_saved_for_relink="$variables_saved_for_relink"
14911
14912 # Whether libtool must link a program against all its dependency libraries.
14913 link_all_deplibs=$link_all_deplibs_F77
14914
14915 # Compile-time system search path for libraries
14916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14917
14918 # Run-time system search path for libraries
14919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14920
14921 # Fix the shell variable \$srcfile for the compiler.
14922 fix_srcfile_path="$fix_srcfile_path_F77"
14923
14924 # Set to yes if exported symbols are required.
14925 always_export_symbols=$always_export_symbols_F77
14926
14927 # The commands to list exported symbols.
14928 export_symbols_cmds=$lt_export_symbols_cmds_F77
14929
14930 # The commands to extract the exported symbol list from a shared archive.
14931 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14932
14933 # Symbols that should not be listed in the preloaded symbols.
14934 exclude_expsyms=$lt_exclude_expsyms_F77
14935
14936 # Symbols that must always be exported.
14937 include_expsyms=$lt_include_expsyms_F77
14938
14939 # ### END LIBTOOL TAG CONFIG: $tagname
14940
14941 __EOF__
14942
14943
14944 else
14945   # If there is no Makefile yet, we rely on a make rule to execute
14946   # `config.status --recheck' to rerun these tests and create the
14947   # libtool script then.
14948   test -f Makefile && make "$ltmain"
14949 fi
14950
14951
14952 ac_ext=c
14953 ac_cpp='$CPP $CPPFLAGS'
14954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14957
14958 CC="$lt_save_CC"
14959
14960         else
14961           tagname=""
14962         fi
14963         ;;
14964
14965       GCJ)
14966         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14967
14968
14969
14970 # Source file extension for Java test sources.
14971 ac_ext=java
14972
14973 # Object file extension for compiled Java test sources.
14974 objext=o
14975 objext_GCJ=$objext
14976
14977 # Code to be used in simple compile tests
14978 lt_simple_compile_test_code="class foo {}\n"
14979
14980 # Code to be used in simple link tests
14981 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14982
14983 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14984
14985 # If no C compiler was specified, use CC.
14986 LTCC=${LTCC-"$CC"}
14987
14988 # Allow CC to be a program name with arguments.
14989 compiler=$CC
14990
14991
14992 # Allow CC to be a program name with arguments.
14993 lt_save_CC="$CC"
14994 CC=${GCJ-"gcj"}
14995 compiler=$CC
14996 compiler_GCJ=$CC
14997
14998 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14999 archive_cmds_need_lc_GCJ=no
15000
15001 ## CAVEAT EMPTOR:
15002 ## There is no encapsulation within the following macros, do not change
15003 ## the running order or otherwise move them around unless you know exactly
15004 ## what you are doing...
15005
15006 lt_prog_compiler_no_builtin_flag_GCJ=
15007
15008 if test "$GCC" = yes; then
15009   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15010
15011   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15012 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15013 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15014   echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016   lt_cv_prog_compiler_rtti_exceptions=no
15017   ac_outfile=conftest.$ac_objext
15018    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15019    lt_compiler_flag="-fno-rtti -fno-exceptions"
15020    # Insert the option either (1) after the last *FLAGS variable, or
15021    # (2) before a word containing "conftest.", or (3) at the end.
15022    # Note that $ac_compile itself does not contain backslashes and begins
15023    # with a dollar sign (not a hyphen), so the echo should work correctly.
15024    # The option is referenced via a variable to avoid confusing sed.
15025    lt_compile=`echo "$ac_compile" | $SED \
15026    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15028    -e 's:$: $lt_compiler_flag:'`
15029    (eval echo "\"\$as_me:15029: $lt_compile\"" >&5)
15030    (eval "$lt_compile" 2>conftest.err)
15031    ac_status=$?
15032    cat conftest.err >&5
15033    echo "$as_me:15033: \$? = $ac_status" >&5
15034    if (exit $ac_status) && test -s "$ac_outfile"; then
15035      # The compiler can only warn and ignore the option if not recognized
15036      # So say no if there are warnings
15037      if test ! -s conftest.err; then
15038        lt_cv_prog_compiler_rtti_exceptions=yes
15039      fi
15040    fi
15041    $rm conftest*
15042
15043 fi
15044 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15045 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15046
15047 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15048     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15049 else
15050     :
15051 fi
15052
15053 fi
15054
15055 lt_prog_compiler_wl_GCJ=
15056 lt_prog_compiler_pic_GCJ=
15057 lt_prog_compiler_static_GCJ=
15058
15059 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15060 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15061
15062   if test "$GCC" = yes; then
15063     lt_prog_compiler_wl_GCJ='-Wl,'
15064     lt_prog_compiler_static_GCJ='-static'
15065
15066     case $host_os in
15067       aix*)
15068       # All AIX code is PIC.
15069       if test "$host_cpu" = ia64; then
15070         # AIX 5 now supports IA64 processor
15071         lt_prog_compiler_static_GCJ='-Bstatic'
15072       fi
15073       ;;
15074
15075     amigaos*)
15076       # FIXME: we need at least 68020 code to build shared libraries, but
15077       # adding the `-m68020' flag to GCC prevents building anything better,
15078       # like `-m68040'.
15079       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15080       ;;
15081
15082     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15083       # PIC is the default for these OSes.
15084       ;;
15085
15086     mingw* | pw32* | os2*)
15087       # This hack is so that the source file can tell whether it is being
15088       # built for inclusion in a dll (and should export symbols for example).
15089       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15090       ;;
15091
15092     darwin* | rhapsody*)
15093       # PIC is the default on this platform
15094       # Common symbols not allowed in MH_DYLIB files
15095       lt_prog_compiler_pic_GCJ='-fno-common'
15096       ;;
15097
15098     msdosdjgpp*)
15099       # Just because we use GCC doesn't mean we suddenly get shared libraries
15100       # on systems that don't support them.
15101       lt_prog_compiler_can_build_shared_GCJ=no
15102       enable_shared=no
15103       ;;
15104
15105     sysv4*MP*)
15106       if test -d /usr/nec; then
15107         lt_prog_compiler_pic_GCJ=-Kconform_pic
15108       fi
15109       ;;
15110
15111     hpux*)
15112       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15113       # not for PA HP-UX.
15114       case "$host_cpu" in
15115       hppa*64*|ia64*)
15116         # +Z the default
15117         ;;
15118       *)
15119         lt_prog_compiler_pic_GCJ='-fPIC'
15120         ;;
15121       esac
15122       ;;
15123
15124     *)
15125       lt_prog_compiler_pic_GCJ='-fPIC'
15126       ;;
15127     esac
15128   else
15129     # PORTME Check for flag to pass linker flags through the system compiler.
15130     case $host_os in
15131     aix*)
15132       lt_prog_compiler_wl_GCJ='-Wl,'
15133       if test "$host_cpu" = ia64; then
15134         # AIX 5 now supports IA64 processor
15135         lt_prog_compiler_static_GCJ='-Bstatic'
15136       else
15137         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15138       fi
15139       ;;
15140
15141     mingw* | pw32* | os2*)
15142       # This hack is so that the source file can tell whether it is being
15143       # built for inclusion in a dll (and should export symbols for example).
15144       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15145       ;;
15146
15147     hpux9* | hpux10* | hpux11*)
15148       lt_prog_compiler_wl_GCJ='-Wl,'
15149       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15150       # not for PA HP-UX.
15151       case "$host_cpu" in
15152       hppa*64*|ia64*)
15153         # +Z the default
15154         ;;
15155       *)
15156         lt_prog_compiler_pic_GCJ='+Z'
15157         ;;
15158       esac
15159       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15160       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15161       ;;
15162
15163     irix5* | irix6* | nonstopux*)
15164       lt_prog_compiler_wl_GCJ='-Wl,'
15165       # PIC (with -KPIC) is the default.
15166       lt_prog_compiler_static_GCJ='-non_shared'
15167       ;;
15168
15169     newsos6)
15170       lt_prog_compiler_pic_GCJ='-KPIC'
15171       lt_prog_compiler_static_GCJ='-Bstatic'
15172       ;;
15173
15174     linux*)
15175       case $CC in
15176       icc|ecc)
15177         lt_prog_compiler_wl_GCJ='-Wl,'
15178         lt_prog_compiler_pic_GCJ='-KPIC'
15179         lt_prog_compiler_static_GCJ='-static'
15180         ;;
15181       ccc)
15182         lt_prog_compiler_wl_GCJ='-Wl,'
15183         # All Alpha code is PIC.
15184         lt_prog_compiler_static_GCJ='-non_shared'
15185         ;;
15186       esac
15187       ;;
15188
15189     osf3* | osf4* | osf5*)
15190       lt_prog_compiler_wl_GCJ='-Wl,'
15191       # All OSF/1 code is PIC.
15192       lt_prog_compiler_static_GCJ='-non_shared'
15193       ;;
15194
15195     sco3.2v5*)
15196       lt_prog_compiler_pic_GCJ='-Kpic'
15197       lt_prog_compiler_static_GCJ='-dn'
15198       ;;
15199
15200     solaris*)
15201       lt_prog_compiler_wl_GCJ='-Wl,'
15202       lt_prog_compiler_pic_GCJ='-KPIC'
15203       lt_prog_compiler_static_GCJ='-Bstatic'
15204       ;;
15205
15206     sunos4*)
15207       lt_prog_compiler_wl_GCJ='-Qoption ld '
15208       lt_prog_compiler_pic_GCJ='-PIC'
15209       lt_prog_compiler_static_GCJ='-Bstatic'
15210       ;;
15211
15212     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15213       lt_prog_compiler_wl_GCJ='-Wl,'
15214       lt_prog_compiler_pic_GCJ='-KPIC'
15215       lt_prog_compiler_static_GCJ='-Bstatic'
15216       ;;
15217
15218     sysv4*MP*)
15219       if test -d /usr/nec ;then
15220         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15221         lt_prog_compiler_static_GCJ='-Bstatic'
15222       fi
15223       ;;
15224
15225     uts4*)
15226       lt_prog_compiler_pic_GCJ='-pic'
15227       lt_prog_compiler_static_GCJ='-Bstatic'
15228       ;;
15229
15230     *)
15231       lt_prog_compiler_can_build_shared_GCJ=no
15232       ;;
15233     esac
15234   fi
15235
15236 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15237 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15238
15239 #
15240 # Check to make sure the PIC flag actually works.
15241 #
15242 if test -n "$lt_prog_compiler_pic_GCJ"; then
15243   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15244 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15245 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15246   echo $ECHO_N "(cached) $ECHO_C" >&6
15247 else
15248   lt_prog_compiler_pic_works_GCJ=no
15249   ac_outfile=conftest.$ac_objext
15250    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15251    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15252    # Insert the option either (1) after the last *FLAGS variable, or
15253    # (2) before a word containing "conftest.", or (3) at the end.
15254    # Note that $ac_compile itself does not contain backslashes and begins
15255    # with a dollar sign (not a hyphen), so the echo should work correctly.
15256    # The option is referenced via a variable to avoid confusing sed.
15257    lt_compile=`echo "$ac_compile" | $SED \
15258    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15260    -e 's:$: $lt_compiler_flag:'`
15261    (eval echo "\"\$as_me:15261: $lt_compile\"" >&5)
15262    (eval "$lt_compile" 2>conftest.err)
15263    ac_status=$?
15264    cat conftest.err >&5
15265    echo "$as_me:15265: \$? = $ac_status" >&5
15266    if (exit $ac_status) && test -s "$ac_outfile"; then
15267      # The compiler can only warn and ignore the option if not recognized
15268      # So say no if there are warnings
15269      if test ! -s conftest.err; then
15270        lt_prog_compiler_pic_works_GCJ=yes
15271      fi
15272    fi
15273    $rm conftest*
15274
15275 fi
15276 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15277 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15278
15279 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15280     case $lt_prog_compiler_pic_GCJ in
15281      "" | " "*) ;;
15282      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15283      esac
15284 else
15285     lt_prog_compiler_pic_GCJ=
15286      lt_prog_compiler_can_build_shared_GCJ=no
15287 fi
15288
15289 fi
15290 case "$host_os" in
15291   # For platforms which do not support PIC, -DPIC is meaningless:
15292   *djgpp*)
15293     lt_prog_compiler_pic_GCJ=
15294     ;;
15295   *)
15296     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15297     ;;
15298 esac
15299
15300 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15301 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15302 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15303   echo $ECHO_N "(cached) $ECHO_C" >&6
15304 else
15305   lt_cv_prog_compiler_c_o_GCJ=no
15306    $rm -r conftest 2>/dev/null
15307    mkdir conftest
15308    cd conftest
15309    mkdir out
15310    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15311
15312    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15313    # that will create temporary files in the current directory regardless of
15314    # the output directory.  Thus, making CWD read-only will cause this test
15315    # to fail, enabling locking or at least warning the user not to do parallel
15316    # builds.
15317    chmod -w .
15318
15319    lt_compiler_flag="-o out/conftest2.$ac_objext"
15320    # Insert the option either (1) after the last *FLAGS variable, or
15321    # (2) before a word containing "conftest.", or (3) at the end.
15322    # Note that $ac_compile itself does not contain backslashes and begins
15323    # with a dollar sign (not a hyphen), so the echo should work correctly.
15324    lt_compile=`echo "$ac_compile" | $SED \
15325    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15326    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15327    -e 's:$: $lt_compiler_flag:'`
15328    (eval echo "\"\$as_me:15328: $lt_compile\"" >&5)
15329    (eval "$lt_compile" 2>out/conftest.err)
15330    ac_status=$?
15331    cat out/conftest.err >&5
15332    echo "$as_me:15332: \$? = $ac_status" >&5
15333    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15334    then
15335      # The compiler can only warn and ignore the option if not recognized
15336      # So say no if there are warnings
15337      if test ! -s out/conftest.err; then
15338        lt_cv_prog_compiler_c_o_GCJ=yes
15339      fi
15340    fi
15341    chmod u+w .
15342    $rm conftest* out/*
15343    rmdir out
15344    cd ..
15345    rmdir conftest
15346    $rm conftest*
15347
15348 fi
15349 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15350 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15351
15352
15353 hard_links="nottested"
15354 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15355   # do not overwrite the value of need_locks provided by the user
15356   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15357 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15358   hard_links=yes
15359   $rm conftest*
15360   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15361   touch conftest.a
15362   ln conftest.a conftest.b 2>&5 || hard_links=no
15363   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15364   echo "$as_me:$LINENO: result: $hard_links" >&5
15365 echo "${ECHO_T}$hard_links" >&6
15366   if test "$hard_links" = no; then
15367     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15368 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15369     need_locks=warn
15370   fi
15371 else
15372   need_locks=no
15373 fi
15374
15375 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15376 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15377
15378   runpath_var=
15379   allow_undefined_flag_GCJ=
15380   enable_shared_with_static_runtimes_GCJ=no
15381   archive_cmds_GCJ=
15382   archive_expsym_cmds_GCJ=
15383   old_archive_From_new_cmds_GCJ=
15384   old_archive_from_expsyms_cmds_GCJ=
15385   export_dynamic_flag_spec_GCJ=
15386   whole_archive_flag_spec_GCJ=
15387   thread_safe_flag_spec_GCJ=
15388   hardcode_libdir_flag_spec_GCJ=
15389   hardcode_libdir_flag_spec_ld_GCJ=
15390   hardcode_libdir_separator_GCJ=
15391   hardcode_direct_GCJ=no
15392   hardcode_minus_L_GCJ=no
15393   hardcode_shlibpath_var_GCJ=unsupported
15394   link_all_deplibs_GCJ=unknown
15395   hardcode_automatic_GCJ=no
15396   module_cmds_GCJ=
15397   module_expsym_cmds_GCJ=
15398   always_export_symbols_GCJ=no
15399   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15400   # include_expsyms should be a list of space-separated symbols to be *always*
15401   # included in the symbol list
15402   include_expsyms_GCJ=
15403   # exclude_expsyms can be an extended regexp of symbols to exclude
15404   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15405   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15406   # as well as any symbol that contains `d'.
15407   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15408   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15409   # platforms (ab)use it in PIC code, but their linkers get confused if
15410   # the symbol is explicitly referenced.  Since portable code cannot
15411   # rely on this symbol name, it's probably fine to never include it in
15412   # preloaded symbol tables.
15413   extract_expsyms_cmds=
15414
15415   case $host_os in
15416   cygwin* | mingw* | pw32*)
15417     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15418     # When not using gcc, we currently assume that we are using
15419     # Microsoft Visual C++.
15420     if test "$GCC" != yes; then
15421       with_gnu_ld=no
15422     fi
15423     ;;
15424   openbsd*)
15425     with_gnu_ld=no
15426     ;;
15427   esac
15428
15429   ld_shlibs_GCJ=yes
15430   if test "$with_gnu_ld" = yes; then
15431     # If archive_cmds runs LD, not CC, wlarc should be empty
15432     wlarc='${wl}'
15433
15434     # See if GNU ld supports shared libraries.
15435     case $host_os in
15436     aix3* | aix4* | aix5*)
15437       # On AIX/PPC, the GNU linker is very broken
15438       if test "$host_cpu" != ia64; then
15439         ld_shlibs_GCJ=no
15440         cat <<EOF 1>&2
15441
15442 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15443 *** to be unable to reliably create shared libraries on AIX.
15444 *** Therefore, libtool is disabling shared libraries support.  If you
15445 *** really care for shared libraries, you may want to modify your PATH
15446 *** so that a non-GNU linker is found, and then restart.
15447
15448 EOF
15449       fi
15450       ;;
15451
15452     amigaos*)
15453       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)'
15454       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15455       hardcode_minus_L_GCJ=yes
15456
15457       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15458       # that the semantics of dynamic libraries on AmigaOS, at least up
15459       # to version 4, is to share data among multiple programs linked
15460       # with the same dynamic library.  Since this doesn't match the
15461       # behavior of shared libraries on other platforms, we can't use
15462       # them.
15463       ld_shlibs_GCJ=no
15464       ;;
15465
15466     beos*)
15467       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15468         allow_undefined_flag_GCJ=unsupported
15469         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15470         # support --undefined.  This deserves some investigation.  FIXME
15471         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15472       else
15473         ld_shlibs_GCJ=no
15474       fi
15475       ;;
15476
15477     cygwin* | mingw* | pw32*)
15478       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15479       # as there is no search path for DLLs.
15480       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15481       allow_undefined_flag_GCJ=unsupported
15482       always_export_symbols_GCJ=no
15483       enable_shared_with_static_runtimes_GCJ=yes
15484       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15485
15486       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15487         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15488         # If the export-symbols file already is a .def file (1st line
15489         # is EXPORTS), use it as is; otherwise, prepend...
15490         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15491           cp $export_symbols $output_objdir/$soname.def;
15492         else
15493           echo EXPORTS > $output_objdir/$soname.def;
15494           cat $export_symbols >> $output_objdir/$soname.def;
15495         fi~
15496         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15497       else
15498         ld_shlibs=no
15499       fi
15500       ;;
15501
15502     netbsd*)
15503       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15504         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15505         wlarc=
15506       else
15507         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15508         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15509       fi
15510       ;;
15511
15512     solaris* | sysv5*)
15513       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15514         ld_shlibs_GCJ=no
15515         cat <<EOF 1>&2
15516
15517 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15518 *** create shared libraries on Solaris systems.  Therefore, libtool
15519 *** is disabling shared libraries support.  We urge you to upgrade GNU
15520 *** binutils to release 2.9.1 or newer.  Another option is to modify
15521 *** your PATH or compiler configuration so that the native linker is
15522 *** used, and then restart.
15523
15524 EOF
15525       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15526         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15527         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15528       else
15529         ld_shlibs_GCJ=no
15530       fi
15531       ;;
15532
15533     sunos4*)
15534       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15535       wlarc=
15536       hardcode_direct_GCJ=yes
15537       hardcode_shlibpath_var_GCJ=no
15538       ;;
15539
15540     *)
15541       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15542         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15543         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15544       else
15545         ld_shlibs_GCJ=no
15546       fi
15547       ;;
15548     esac
15549
15550     if test "$ld_shlibs_GCJ" = yes; then
15551       runpath_var=LD_RUN_PATH
15552       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15553       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15554       # ancient GNU ld didn't support --whole-archive et. al.
15555       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15556         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15557       else
15558         whole_archive_flag_spec_GCJ=
15559       fi
15560     fi
15561   else
15562     # PORTME fill in a description of your system's linker (not GNU ld)
15563     case $host_os in
15564     aix3*)
15565       allow_undefined_flag_GCJ=unsupported
15566       always_export_symbols_GCJ=yes
15567       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'
15568       # Note: this linker hardcodes the directories in LIBPATH if there
15569       # are no directories specified by -L.
15570       hardcode_minus_L_GCJ=yes
15571       if test "$GCC" = yes && test -z "$link_static_flag"; then
15572         # Neither direct hardcoding nor static linking is supported with a
15573         # broken collect2.
15574         hardcode_direct_GCJ=unsupported
15575       fi
15576       ;;
15577
15578     aix4* | aix5*)
15579       if test "$host_cpu" = ia64; then
15580         # On IA64, the linker does run time linking by default, so we don't
15581         # have to do anything special.
15582         aix_use_runtimelinking=no
15583         exp_sym_flag='-Bexport'
15584         no_entry_flag=""
15585       else
15586         # If we're using GNU nm, then we don't want the "-C" option.
15587         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15588         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15589           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'
15590         else
15591           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'
15592         fi
15593         aix_use_runtimelinking=no
15594
15595         # Test if we are trying to use run time linking or normal
15596         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15597         # need to do runtime linking.
15598         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15599           for ld_flag in $LDFLAGS; do
15600           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15601             aix_use_runtimelinking=yes
15602             break
15603           fi
15604           done
15605         esac
15606
15607         exp_sym_flag='-bexport'
15608         no_entry_flag='-bnoentry'
15609       fi
15610
15611       # When large executables or shared objects are built, AIX ld can
15612       # have problems creating the table of contents.  If linking a library
15613       # or program results in "error TOC overflow" add -mminimal-toc to
15614       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15615       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15616
15617       archive_cmds_GCJ=''
15618       hardcode_direct_GCJ=yes
15619       hardcode_libdir_separator_GCJ=':'
15620       link_all_deplibs_GCJ=yes
15621
15622       if test "$GCC" = yes; then
15623         case $host_os in aix4.012|aix4.012.*)
15624         # We only want to do this on AIX 4.2 and lower, the check
15625         # below for broken collect2 doesn't work under 4.3+
15626           collect2name=`${CC} -print-prog-name=collect2`
15627           if test -f "$collect2name" && \
15628            strings "$collect2name" | grep resolve_lib_name >/dev/null
15629           then
15630           # We have reworked collect2
15631           hardcode_direct_GCJ=yes
15632           else
15633           # We have old collect2
15634           hardcode_direct_GCJ=unsupported
15635           # It fails to find uninstalled libraries when the uninstalled
15636           # path is not listed in the libpath.  Setting hardcode_minus_L
15637           # to unsupported forces relinking
15638           hardcode_minus_L_GCJ=yes
15639           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15640           hardcode_libdir_separator_GCJ=
15641           fi
15642         esac
15643         shared_flag='-shared'
15644       else
15645         # not using gcc
15646         if test "$host_cpu" = ia64; then
15647         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15648         # chokes on -Wl,-G. The following line is correct:
15649           shared_flag='-G'
15650         else
15651         if test "$aix_use_runtimelinking" = yes; then
15652             shared_flag='${wl}-G'
15653           else
15654             shared_flag='${wl}-bM:SRE'
15655         fi
15656         fi
15657       fi
15658
15659       # It seems that -bexpall does not export symbols beginning with
15660       # underscore (_), so it is better to generate a list of symbols to export.
15661       always_export_symbols_GCJ=yes
15662       if test "$aix_use_runtimelinking" = yes; then
15663         # Warning - without using the other runtime loading flags (-brtl),
15664         # -berok will link without error, but may produce a broken library.
15665         allow_undefined_flag_GCJ='-berok'
15666        # Determine the default libpath from the value encoded in an empty executable.
15667        cat >conftest.$ac_ext <<_ACEOF
15668 #line $LINENO "configure"
15669 /* confdefs.h.  */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h.  */
15674
15675 int
15676 main ()
15677 {
15678
15679   ;
15680   return 0;
15681 }
15682 _ACEOF
15683 rm -f conftest.$ac_objext conftest$ac_exeext
15684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15685   (eval $ac_link) 2>&5
15686   ac_status=$?
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); } &&
15689          { ac_try='test -s conftest$ac_exeext'
15690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691   (eval $ac_try) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); }; }; then
15695
15696 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15697 }'`
15698 # Check for a 64-bit object if we didn't find anything.
15699 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; }
15700 }'`; fi
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705 fi
15706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15708
15709        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15710         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"
15711        else
15712         if test "$host_cpu" = ia64; then
15713           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15714           allow_undefined_flag_GCJ="-z nodefs"
15715           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"
15716         else
15717          # Determine the default libpath from the value encoded in an empty executable.
15718          cat >conftest.$ac_ext <<_ACEOF
15719 #line $LINENO "configure"
15720 /* confdefs.h.  */
15721 _ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h.  */
15725
15726 int
15727 main ()
15728 {
15729
15730   ;
15731   return 0;
15732 }
15733 _ACEOF
15734 rm -f conftest.$ac_objext conftest$ac_exeext
15735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15736   (eval $ac_link) 2>&5
15737   ac_status=$?
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); } &&
15740          { ac_try='test -s conftest$ac_exeext'
15741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742   (eval $ac_try) 2>&5
15743   ac_status=$?
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); }; }; then
15746
15747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15748 }'`
15749 # Check for a 64-bit object if we didn't find anything.
15750 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; }
15751 }'`; fi
15752 else
15753   echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15755
15756 fi
15757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15759
15760          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15761           # Warning - without using the other run time loading flags,
15762           # -berok will link without error, but may produce a broken library.
15763           no_undefined_flag_GCJ=' ${wl}-bernotok'
15764           allow_undefined_flag_GCJ=' ${wl}-berok'
15765           # -bexpall does not export symbols beginning with underscore (_)
15766           always_export_symbols_GCJ=yes
15767           # Exported symbols can be pulled into shared objects from archives
15768           whole_archive_flag_spec_GCJ=' '
15769           archive_cmds_need_lc_GCJ=yes
15770           # This is similar to how AIX traditionally builds it's shared libraries.
15771           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'
15772         fi
15773       fi
15774       ;;
15775
15776     amigaos*)
15777       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)'
15778       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15779       hardcode_minus_L_GCJ=yes
15780       # see comment about different semantics on the GNU ld section
15781       ld_shlibs_GCJ=no
15782       ;;
15783
15784     bsdi4*)
15785       export_dynamic_flag_spec_GCJ=-rdynamic
15786       ;;
15787
15788     cygwin* | mingw* | pw32*)
15789       # When not using gcc, we currently assume that we are using
15790       # Microsoft Visual C++.
15791       # hardcode_libdir_flag_spec is actually meaningless, as there is
15792       # no search path for DLLs.
15793       hardcode_libdir_flag_spec_GCJ=' '
15794       allow_undefined_flag_GCJ=unsupported
15795       # Tell ltmain to make .lib files, not .a files.
15796       libext=lib
15797       # Tell ltmain to make .dll files, not .so files.
15798       shrext=".dll"
15799       # FIXME: Setting linknames here is a bad hack.
15800       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15801       # The linker will automatically build a .lib file if we build a DLL.
15802       old_archive_From_new_cmds_GCJ='true'
15803       # FIXME: Should let the user specify the lib program.
15804       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15805       fix_srcfile_path='`cygpath -w "$srcfile"`'
15806       enable_shared_with_static_runtimes_GCJ=yes
15807       ;;
15808
15809     darwin* | rhapsody*)
15810     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15811       archive_cmds_need_lc_GCJ=no
15812       case "$host_os" in
15813       rhapsody* | darwin1.[012])
15814         allow_undefined_flag_GCJ='-undefined suppress'
15815         ;;
15816       *) # Darwin 1.3 on
15817         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15818         ;;
15819       esac
15820       # FIXME: Relying on posixy $() will cause problems for
15821       #        cross-compilation, but unfortunately the echo tests do not
15822       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15823       #        `"' quotes if we put them in here... so don't!
15824         lt_int_apple_cc_single_mod=no
15825         output_verbose_link_cmd='echo'
15826         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15827           lt_int_apple_cc_single_mod=yes
15828         fi
15829         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15830           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15831         else
15832         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'
15833       fi
15834       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15835       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15836         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15837           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}'
15838         else
15839           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}'
15840         fi
15841           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}'
15842       hardcode_direct_GCJ=no
15843       hardcode_automatic_GCJ=yes
15844       hardcode_shlibpath_var_GCJ=unsupported
15845       whole_archive_flag_spec_GCJ='-all_load $convenience'
15846       link_all_deplibs_GCJ=yes
15847     fi
15848       ;;
15849
15850     dgux*)
15851       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15852       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15853       hardcode_shlibpath_var_GCJ=no
15854       ;;
15855
15856     freebsd1*)
15857       ld_shlibs_GCJ=no
15858       ;;
15859
15860     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15861     # support.  Future versions do this automatically, but an explicit c++rt0.o
15862     # does not break anything, and helps significantly (at the cost of a little
15863     # extra space).
15864     freebsd2.2*)
15865       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15866       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15867       hardcode_direct_GCJ=yes
15868       hardcode_shlibpath_var_GCJ=no
15869       ;;
15870
15871     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15872     freebsd2*)
15873       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15874       hardcode_direct_GCJ=yes
15875       hardcode_minus_L_GCJ=yes
15876       hardcode_shlibpath_var_GCJ=no
15877       ;;
15878
15879     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15880     freebsd*)
15881       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15882       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15883       hardcode_direct_GCJ=yes
15884       hardcode_shlibpath_var_GCJ=no
15885       ;;
15886
15887     hpux9*)
15888       if test "$GCC" = yes; then
15889         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'
15890       else
15891         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'
15892       fi
15893       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15894       hardcode_libdir_separator_GCJ=:
15895       hardcode_direct_GCJ=yes
15896
15897       # hardcode_minus_L: Not really in the search PATH,
15898       # but as the default location of the library.
15899       hardcode_minus_L_GCJ=yes
15900       export_dynamic_flag_spec_GCJ='${wl}-E'
15901       ;;
15902
15903     hpux10* | hpux11*)
15904       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15905         case "$host_cpu" in
15906         hppa*64*|ia64*)
15907           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15908           ;;
15909         *)
15910           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15911           ;;
15912         esac
15913       else
15914         case "$host_cpu" in
15915         hppa*64*|ia64*)
15916           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15917           ;;
15918         *)
15919           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15920           ;;
15921         esac
15922       fi
15923       if test "$with_gnu_ld" = no; then
15924         case "$host_cpu" in
15925         hppa*64*)
15926           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15927           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15928           hardcode_libdir_separator_GCJ=:
15929           hardcode_direct_GCJ=no
15930           hardcode_shlibpath_var_GCJ=no
15931           ;;
15932         ia64*)
15933           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15934           hardcode_direct_GCJ=no
15935           hardcode_shlibpath_var_GCJ=no
15936
15937           # hardcode_minus_L: Not really in the search PATH,
15938           # but as the default location of the library.
15939           hardcode_minus_L_GCJ=yes
15940           ;;
15941         *)
15942           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15943           hardcode_libdir_separator_GCJ=:
15944           hardcode_direct_GCJ=yes
15945           export_dynamic_flag_spec_GCJ='${wl}-E'
15946
15947           # hardcode_minus_L: Not really in the search PATH,
15948           # but as the default location of the library.
15949           hardcode_minus_L_GCJ=yes
15950           ;;
15951         esac
15952       fi
15953       ;;
15954
15955     irix5* | irix6* | nonstopux*)
15956       if test "$GCC" = yes; then
15957         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'
15958       else
15959         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'
15960         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15961       fi
15962       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15963       hardcode_libdir_separator_GCJ=:
15964       link_all_deplibs_GCJ=yes
15965       ;;
15966
15967     netbsd*)
15968       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15969         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15970       else
15971         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15972       fi
15973       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15974       hardcode_direct_GCJ=yes
15975       hardcode_shlibpath_var_GCJ=no
15976       ;;
15977
15978     newsos6)
15979       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980       hardcode_direct_GCJ=yes
15981       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15982       hardcode_libdir_separator_GCJ=:
15983       hardcode_shlibpath_var_GCJ=no
15984       ;;
15985
15986     openbsd*)
15987       hardcode_direct_GCJ=yes
15988       hardcode_shlibpath_var_GCJ=no
15989       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15990         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15991         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15992         export_dynamic_flag_spec_GCJ='${wl}-E'
15993       else
15994        case $host_os in
15995          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15996            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15997            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15998            ;;
15999          *)
16000            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16001            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16002            ;;
16003        esac
16004       fi
16005       ;;
16006
16007     os2*)
16008       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16009       hardcode_minus_L_GCJ=yes
16010       allow_undefined_flag_GCJ=unsupported
16011       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'
16012       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16013       ;;
16014
16015     osf3*)
16016       if test "$GCC" = yes; then
16017         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16018         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'
16019       else
16020         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16021         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'
16022       fi
16023       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16024       hardcode_libdir_separator_GCJ=:
16025       ;;
16026
16027     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16028       if test "$GCC" = yes; then
16029         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16030         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'
16031         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16032       else
16033         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16034         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'
16035         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~
16036         $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'
16037
16038         # Both c and cxx compiler support -rpath directly
16039         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16040       fi
16041       hardcode_libdir_separator_GCJ=:
16042       ;;
16043
16044     sco3.2v5*)
16045       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046       hardcode_shlibpath_var_GCJ=no
16047       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16048       runpath_var=LD_RUN_PATH
16049       hardcode_runpath_var=yes
16050       ;;
16051
16052     solaris*)
16053       no_undefined_flag_GCJ=' -z text'
16054       if test "$GCC" = yes; then
16055         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16056         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16057           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16058       else
16059         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16061         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16062       fi
16063       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16064       hardcode_shlibpath_var_GCJ=no
16065       case $host_os in
16066       solaris2.[0-5] | solaris2.[0-5].*) ;;
16067       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16068         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16069       esac
16070       link_all_deplibs_GCJ=yes
16071       ;;
16072
16073     sunos4*)
16074       if test "x$host_vendor" = xsequent; then
16075         # Use $CC to link under sequent, because it throws in some extra .o
16076         # files that make .init and .fini sections work.
16077         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16078       else
16079         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16080       fi
16081       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16082       hardcode_direct_GCJ=yes
16083       hardcode_minus_L_GCJ=yes
16084       hardcode_shlibpath_var_GCJ=no
16085       ;;
16086
16087     sysv4)
16088       case $host_vendor in
16089         sni)
16090           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16091           hardcode_direct_GCJ=yes # is this really true???
16092         ;;
16093         siemens)
16094           ## LD is ld it makes a PLAMLIB
16095           ## CC just makes a GrossModule.
16096           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16097           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16098           hardcode_direct_GCJ=no
16099         ;;
16100         motorola)
16101           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16102           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16103         ;;
16104       esac
16105       runpath_var='LD_RUN_PATH'
16106       hardcode_shlibpath_var_GCJ=no
16107       ;;
16108
16109     sysv4.3*)
16110       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16111       hardcode_shlibpath_var_GCJ=no
16112       export_dynamic_flag_spec_GCJ='-Bexport'
16113       ;;
16114
16115     sysv4*MP*)
16116       if test -d /usr/nec; then
16117         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16118         hardcode_shlibpath_var_GCJ=no
16119         runpath_var=LD_RUN_PATH
16120         hardcode_runpath_var=yes
16121         ld_shlibs_GCJ=yes
16122       fi
16123       ;;
16124
16125     sysv4.2uw2*)
16126       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16127       hardcode_direct_GCJ=yes
16128       hardcode_minus_L_GCJ=no
16129       hardcode_shlibpath_var_GCJ=no
16130       hardcode_runpath_var=yes
16131       runpath_var=LD_RUN_PATH
16132       ;;
16133
16134    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16135       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16136       if test "$GCC" = yes; then
16137         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16138       else
16139         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16140       fi
16141       runpath_var='LD_RUN_PATH'
16142       hardcode_shlibpath_var_GCJ=no
16143       ;;
16144
16145     sysv5*)
16146       no_undefined_flag_GCJ=' -z text'
16147       # $CC -shared without GNU ld will not create a library from C++
16148       # object files and a static libstdc++, better avoid it by now
16149       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16151                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16152       hardcode_libdir_flag_spec_GCJ=
16153       hardcode_shlibpath_var_GCJ=no
16154       runpath_var='LD_RUN_PATH'
16155       ;;
16156
16157     uts4*)
16158       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16159       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16160       hardcode_shlibpath_var_GCJ=no
16161       ;;
16162
16163     *)
16164       ld_shlibs_GCJ=no
16165       ;;
16166     esac
16167   fi
16168
16169 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16170 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16171 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16172
16173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16174 if test "$GCC" = yes; then
16175   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16176 fi
16177
16178 #
16179 # Do we need to explicitly link libc?
16180 #
16181 case "x$archive_cmds_need_lc_GCJ" in
16182 x|xyes)
16183   # Assume -lc should be added
16184   archive_cmds_need_lc_GCJ=yes
16185
16186   if test "$enable_shared" = yes && test "$GCC" = yes; then
16187     case $archive_cmds_GCJ in
16188     *'~'*)
16189       # FIXME: we may have to deal with multi-command sequences.
16190       ;;
16191     '$CC '*)
16192       # Test whether the compiler implicitly links with -lc since on some
16193       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16194       # to ld, don't add -lc before -lgcc.
16195       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16196 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16197       $rm conftest*
16198       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16199
16200       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16201   (eval $ac_compile) 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); } 2>conftest.err; then
16205         soname=conftest
16206         lib=conftest
16207         libobjs=conftest.$ac_objext
16208         deplibs=
16209         wl=$lt_prog_compiler_wl_GCJ
16210         compiler_flags=-v
16211         linker_flags=-v
16212         verstring=
16213         output_objdir=.
16214         libname=conftest
16215         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16216         allow_undefined_flag_GCJ=
16217         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16218   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }
16222         then
16223           archive_cmds_need_lc_GCJ=no
16224         else
16225           archive_cmds_need_lc_GCJ=yes
16226         fi
16227         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16228       else
16229         cat conftest.err 1>&5
16230       fi
16231       $rm conftest*
16232       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16233 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16234       ;;
16235     esac
16236   fi
16237   ;;
16238 esac
16239
16240 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16241 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16242 hardcode_action_GCJ=
16243 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16244    test -n "$runpath_var GCJ" || \
16245    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16246
16247   # We can hardcode non-existant directories.
16248   if test "$hardcode_direct_GCJ" != no &&
16249      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16250      # have to relink, otherwise we might link with an installed library
16251      # when we should be linking with a yet-to-be-installed one
16252      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16253      test "$hardcode_minus_L_GCJ" != no; then
16254     # Linking always hardcodes the temporary library directory.
16255     hardcode_action_GCJ=relink
16256   else
16257     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16258     hardcode_action_GCJ=immediate
16259   fi
16260 else
16261   # We cannot hardcode anything, or else we can only hardcode existing
16262   # directories.
16263   hardcode_action_GCJ=unsupported
16264 fi
16265 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16266 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16267
16268 if test "$hardcode_action_GCJ" = relink; then
16269   # Fast installation is not supported
16270   enable_fast_install=no
16271 elif test "$shlibpath_overrides_runpath" = yes ||
16272      test "$enable_shared" = no; then
16273   # Fast installation is not necessary
16274   enable_fast_install=needless
16275 fi
16276
16277 striplib=
16278 old_striplib=
16279 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16280 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16281 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16282   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16283   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16284   echo "$as_me:$LINENO: result: yes" >&5
16285 echo "${ECHO_T}yes" >&6
16286 else
16287 # FIXME - insert some real tests, host_os isn't really good enough
16288   case $host_os in
16289    darwin*)
16290        if test -n "$STRIP" ; then
16291          striplib="$STRIP -x"
16292          echo "$as_me:$LINENO: result: yes" >&5
16293 echo "${ECHO_T}yes" >&6
16294        else
16295   echo "$as_me:$LINENO: result: no" >&5
16296 echo "${ECHO_T}no" >&6
16297 fi
16298        ;;
16299    *)
16300   echo "$as_me:$LINENO: result: no" >&5
16301 echo "${ECHO_T}no" >&6
16302     ;;
16303   esac
16304 fi
16305
16306 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16307 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16308 library_names_spec=
16309 libname_spec='lib$name'
16310 soname_spec=
16311 shrext=".so"
16312 postinstall_cmds=
16313 postuninstall_cmds=
16314 finish_cmds=
16315 finish_eval=
16316 shlibpath_var=
16317 shlibpath_overrides_runpath=unknown
16318 version_type=none
16319 dynamic_linker="$host_os ld.so"
16320 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16321 if test "$GCC" = yes; then
16322   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16323   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16324     # if the path contains ";" then we assume it to be the separator
16325     # otherwise default to the standard path separator (i.e. ":") - it is
16326     # assumed that no part of a normal pathname contains ";" but that should
16327     # okay in the real world where ";" in dirpaths is itself problematic.
16328     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16329   else
16330     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16331   fi
16332 else
16333   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16334 fi
16335 need_lib_prefix=unknown
16336 hardcode_into_libs=no
16337
16338 # when you set need_version to no, make sure it does not cause -set_version
16339 # flags to be left without arguments
16340 need_version=unknown
16341
16342 case $host_os in
16343 aix3*)
16344   version_type=linux
16345   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16346   shlibpath_var=LIBPATH
16347
16348   # AIX 3 has no versioning support, so we append a major version to the name.
16349   soname_spec='${libname}${release}${shared_ext}$major'
16350   ;;
16351
16352 aix4* | aix5*)
16353   version_type=linux
16354   need_lib_prefix=no
16355   need_version=no
16356   hardcode_into_libs=yes
16357   if test "$host_cpu" = ia64; then
16358     # AIX 5 supports IA64
16359     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16360     shlibpath_var=LD_LIBRARY_PATH
16361   else
16362     # With GCC up to 2.95.x, collect2 would create an import file
16363     # for dependence libraries.  The import file would start with
16364     # the line `#! .'.  This would cause the generated library to
16365     # depend on `.', always an invalid library.  This was fixed in
16366     # development snapshots of GCC prior to 3.0.
16367     case $host_os in
16368       aix4 | aix4.[01] | aix4.[01].*)
16369       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16370            echo ' yes '
16371            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16372         :
16373       else
16374         can_build_shared=no
16375       fi
16376       ;;
16377     esac
16378     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16379     # soname into executable. Probably we can add versioning support to
16380     # collect2, so additional links can be useful in future.
16381     if test "$aix_use_runtimelinking" = yes; then
16382       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16383       # instead of lib<name>.a to let people know that these are not
16384       # typical AIX shared libraries.
16385       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386     else
16387       # We preserve .a as extension for shared libraries through AIX4.2
16388       # and later when we are not doing run time linking.
16389       library_names_spec='${libname}${release}.a $libname.a'
16390       soname_spec='${libname}${release}${shared_ext}$major'
16391     fi
16392     shlibpath_var=LIBPATH
16393   fi
16394   ;;
16395
16396 amigaos*)
16397   library_names_spec='$libname.ixlibrary $libname.a'
16398   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16399   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'
16400   ;;
16401
16402 beos*)
16403   library_names_spec='${libname}${shared_ext}'
16404   dynamic_linker="$host_os ld.so"
16405   shlibpath_var=LIBRARY_PATH
16406   ;;
16407
16408 bsdi4*)
16409   version_type=linux
16410   need_version=no
16411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412   soname_spec='${libname}${release}${shared_ext}$major'
16413   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16414   shlibpath_var=LD_LIBRARY_PATH
16415   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16416   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16417   # the default ld.so.conf also contains /usr/contrib/lib and
16418   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16419   # libtool to hard-code these into programs
16420   ;;
16421
16422 cygwin* | mingw* | pw32*)
16423   version_type=windows
16424   shrext=".dll"
16425   need_version=no
16426   need_lib_prefix=no
16427
16428   case $GCC,$host_os in
16429   yes,cygwin* | yes,mingw* | yes,pw32*)
16430     library_names_spec='$libname.dll.a'
16431     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16432     postinstall_cmds='base_file=`basename \${file}`~
16433       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16434       dldir=$destdir/`dirname \$dlpath`~
16435       test -d \$dldir || mkdir -p \$dldir~
16436       $install_prog $dir/$dlname \$dldir/$dlname'
16437     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16438       dlpath=$dir/\$dldll~
16439        $rm \$dlpath'
16440     shlibpath_overrides_runpath=yes
16441
16442     case $host_os in
16443     cygwin*)
16444       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16445       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16446       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16447       ;;
16448     mingw*)
16449       # MinGW DLLs use traditional 'lib' prefix
16450       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16451       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16452       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16453         # It is most probably a Windows format PATH printed by
16454         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16455         # path with ; separators, and with drive letters. We can handle the
16456         # drive letters (cygwin fileutils understands them), so leave them,
16457         # especially as we might pass files found there to a mingw objdump,
16458         # which wouldn't understand a cygwinified path. Ahh.
16459         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16460       else
16461         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16462       fi
16463       ;;
16464     pw32*)
16465       # pw32 DLLs use 'pw' prefix rather than 'lib'
16466       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16467       ;;
16468     esac
16469     ;;
16470
16471   *)
16472     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16473     ;;
16474   esac
16475   dynamic_linker='Win32 ld.exe'
16476   # FIXME: first we should search . and the directory the executable is in
16477   shlibpath_var=PATH
16478   ;;
16479
16480 darwin* | rhapsody*)
16481   dynamic_linker="$host_os dyld"
16482   version_type=darwin
16483   need_lib_prefix=no
16484   need_version=no
16485   # FIXME: Relying on posixy $() will cause problems for
16486   #        cross-compilation, but unfortunately the echo tests do not
16487   #        yet detect zsh echo's removal of \ escapes.
16488   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16489   soname_spec='${libname}${release}${major}$shared_ext'
16490   shlibpath_overrides_runpath=yes
16491   shlibpath_var=DYLD_LIBRARY_PATH
16492   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16493   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16494   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16495   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"`
16496   fi
16497   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16498   ;;
16499
16500 dgux*)
16501   version_type=linux
16502   need_lib_prefix=no
16503   need_version=no
16504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16505   soname_spec='${libname}${release}${shared_ext}$major'
16506   shlibpath_var=LD_LIBRARY_PATH
16507   ;;
16508
16509 freebsd1*)
16510   dynamic_linker=no
16511   ;;
16512
16513 freebsd*)
16514   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16515   version_type=freebsd-$objformat
16516   case $version_type in
16517     freebsd-elf*)
16518       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16519       need_version=no
16520       need_lib_prefix=no
16521       ;;
16522     freebsd-*)
16523       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16524       need_version=yes
16525       ;;
16526   esac
16527   shlibpath_var=LD_LIBRARY_PATH
16528   case $host_os in
16529   freebsd2*)
16530     shlibpath_overrides_runpath=yes
16531     ;;
16532   freebsd3.01* | freebsdelf3.01*)
16533     shlibpath_overrides_runpath=yes
16534     hardcode_into_libs=yes
16535     ;;
16536   *) # from 3.2 on
16537     shlibpath_overrides_runpath=no
16538     hardcode_into_libs=yes
16539     ;;
16540   esac
16541   ;;
16542
16543 gnu*)
16544   version_type=linux
16545   need_lib_prefix=no
16546   need_version=no
16547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16548   soname_spec='${libname}${release}${shared_ext}$major'
16549   shlibpath_var=LD_LIBRARY_PATH
16550   hardcode_into_libs=yes
16551   ;;
16552
16553 hpux9* | hpux10* | hpux11*)
16554   # Give a soname corresponding to the major version so that dld.sl refuses to
16555   # link against other versions.
16556   version_type=sunos
16557   need_lib_prefix=no
16558   need_version=no
16559   case "$host_cpu" in
16560   ia64*)
16561     shrext='.so'
16562     hardcode_into_libs=yes
16563     dynamic_linker="$host_os dld.so"
16564     shlibpath_var=LD_LIBRARY_PATH
16565     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567     soname_spec='${libname}${release}${shared_ext}$major'
16568     if test "X$HPUX_IA64_MODE" = X32; then
16569       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16570     else
16571       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16572     fi
16573     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16574     ;;
16575    hppa*64*)
16576      shrext='.sl'
16577      hardcode_into_libs=yes
16578      dynamic_linker="$host_os dld.sl"
16579      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16580      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16581      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16582      soname_spec='${libname}${release}${shared_ext}$major'
16583      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16584      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16585      ;;
16586    *)
16587     shrext='.sl'
16588     dynamic_linker="$host_os dld.sl"
16589     shlibpath_var=SHLIB_PATH
16590     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16591     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16592     soname_spec='${libname}${release}${shared_ext}$major'
16593     ;;
16594   esac
16595   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16596   postinstall_cmds='chmod 555 $lib'
16597   ;;
16598
16599 irix5* | irix6* | nonstopux*)
16600   case $host_os in
16601     nonstopux*) version_type=nonstopux ;;
16602     *)
16603         if test "$lt_cv_prog_gnu_ld" = yes; then
16604                 version_type=linux
16605         else
16606                 version_type=irix
16607         fi ;;
16608   esac
16609   need_lib_prefix=no
16610   need_version=no
16611   soname_spec='${libname}${release}${shared_ext}$major'
16612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16613   case $host_os in
16614   irix5* | nonstopux*)
16615     libsuff= shlibsuff=
16616     ;;
16617   *)
16618     case $LD in # libtool.m4 will add one of these switches to LD
16619     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16620       libsuff= shlibsuff= libmagic=32-bit;;
16621     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16622       libsuff=32 shlibsuff=N32 libmagic=N32;;
16623     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16624       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16625     *) libsuff= shlibsuff= libmagic=never-match;;
16626     esac
16627     ;;
16628   esac
16629   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16630   shlibpath_overrides_runpath=no
16631   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16632   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16633   hardcode_into_libs=yes
16634   ;;
16635
16636 # No shared lib support for Linux oldld, aout, or coff.
16637 linux*oldld* | linux*aout* | linux*coff*)
16638   dynamic_linker=no
16639   ;;
16640
16641 # This must be Linux ELF.
16642 linux*)
16643   version_type=linux
16644   need_lib_prefix=no
16645   need_version=no
16646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16647   soname_spec='${libname}${release}${shared_ext}$major'
16648   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16649   shlibpath_var=LD_LIBRARY_PATH
16650   shlibpath_overrides_runpath=no
16651   # This implies no fast_install, which is unacceptable.
16652   # Some rework will be needed to allow for fast_install
16653   # before this can be enabled.
16654   hardcode_into_libs=yes
16655
16656   # We used to test for /lib/ld.so.1 and disable shared libraries on
16657   # powerpc, because MkLinux only supported shared libraries with the
16658   # GNU dynamic linker.  Since this was broken with cross compilers,
16659   # most powerpc-linux boxes support dynamic linking these days and
16660   # people can always --disable-shared, the test was removed, and we
16661   # assume the GNU/Linux dynamic linker is in use.
16662   dynamic_linker='GNU/Linux ld.so'
16663   ;;
16664
16665 netbsd*)
16666   version_type=sunos
16667   need_lib_prefix=no
16668   need_version=no
16669   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16671     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16672     dynamic_linker='NetBSD (a.out) ld.so'
16673   else
16674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16675     soname_spec='${libname}${release}${shared_ext}$major'
16676     dynamic_linker='NetBSD ld.elf_so'
16677   fi
16678   shlibpath_var=LD_LIBRARY_PATH
16679   shlibpath_overrides_runpath=yes
16680   hardcode_into_libs=yes
16681   ;;
16682
16683 newsos6)
16684   version_type=linux
16685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686   shlibpath_var=LD_LIBRARY_PATH
16687   shlibpath_overrides_runpath=yes
16688   ;;
16689
16690 nto-qnx)
16691   version_type=linux
16692   need_lib_prefix=no
16693   need_version=no
16694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695   soname_spec='${libname}${release}${shared_ext}$major'
16696   shlibpath_var=LD_LIBRARY_PATH
16697   shlibpath_overrides_runpath=yes
16698   ;;
16699
16700 openbsd*)
16701   version_type=sunos
16702   need_lib_prefix=no
16703   need_version=no
16704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16705   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16706   shlibpath_var=LD_LIBRARY_PATH
16707   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16708     case $host_os in
16709       openbsd2.[89] | openbsd2.[89].*)
16710         shlibpath_overrides_runpath=no
16711         ;;
16712       *)
16713         shlibpath_overrides_runpath=yes
16714         ;;
16715       esac
16716   else
16717     shlibpath_overrides_runpath=yes
16718   fi
16719   ;;
16720
16721 os2*)
16722   libname_spec='$name'
16723   shrext=".dll"
16724   need_lib_prefix=no
16725   library_names_spec='$libname${shared_ext} $libname.a'
16726   dynamic_linker='OS/2 ld.exe'
16727   shlibpath_var=LIBPATH
16728   ;;
16729
16730 osf3* | osf4* | osf5*)
16731   version_type=osf
16732   need_lib_prefix=no
16733   need_version=no
16734   soname_spec='${libname}${release}${shared_ext}$major'
16735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736   shlibpath_var=LD_LIBRARY_PATH
16737   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16738   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16739   ;;
16740
16741 sco3.2v5*)
16742   version_type=osf
16743   soname_spec='${libname}${release}${shared_ext}$major'
16744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745   shlibpath_var=LD_LIBRARY_PATH
16746   ;;
16747
16748 solaris*)
16749   version_type=linux
16750   need_lib_prefix=no
16751   need_version=no
16752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753   soname_spec='${libname}${release}${shared_ext}$major'
16754   shlibpath_var=LD_LIBRARY_PATH
16755   shlibpath_overrides_runpath=yes
16756   hardcode_into_libs=yes
16757   # ldd complains unless libraries are executable
16758   postinstall_cmds='chmod +x $lib'
16759   ;;
16760
16761 sunos4*)
16762   version_type=sunos
16763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16764   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16765   shlibpath_var=LD_LIBRARY_PATH
16766   shlibpath_overrides_runpath=yes
16767   if test "$with_gnu_ld" = yes; then
16768     need_lib_prefix=no
16769   fi
16770   need_version=yes
16771   ;;
16772
16773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16774   version_type=linux
16775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16776   soname_spec='${libname}${release}${shared_ext}$major'
16777   shlibpath_var=LD_LIBRARY_PATH
16778   case $host_vendor in
16779     sni)
16780       shlibpath_overrides_runpath=no
16781       need_lib_prefix=no
16782       export_dynamic_flag_spec='${wl}-Blargedynsym'
16783       runpath_var=LD_RUN_PATH
16784       ;;
16785     siemens)
16786       need_lib_prefix=no
16787       ;;
16788     motorola)
16789       need_lib_prefix=no
16790       need_version=no
16791       shlibpath_overrides_runpath=no
16792       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16793       ;;
16794   esac
16795   ;;
16796
16797 sysv4*MP*)
16798   if test -d /usr/nec ;then
16799     version_type=linux
16800     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16801     soname_spec='$libname${shared_ext}.$major'
16802     shlibpath_var=LD_LIBRARY_PATH
16803   fi
16804   ;;
16805
16806 uts4*)
16807   version_type=linux
16808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809   soname_spec='${libname}${release}${shared_ext}$major'
16810   shlibpath_var=LD_LIBRARY_PATH
16811   ;;
16812
16813 *)
16814   dynamic_linker=no
16815   ;;
16816 esac
16817 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16818 echo "${ECHO_T}$dynamic_linker" >&6
16819 test "$dynamic_linker" = no && can_build_shared=no
16820
16821 if test "x$enable_dlopen" != xyes; then
16822   enable_dlopen=unknown
16823   enable_dlopen_self=unknown
16824   enable_dlopen_self_static=unknown
16825 else
16826   lt_cv_dlopen=no
16827   lt_cv_dlopen_libs=
16828
16829   case $host_os in
16830   beos*)
16831     lt_cv_dlopen="load_add_on"
16832     lt_cv_dlopen_libs=
16833     lt_cv_dlopen_self=yes
16834     ;;
16835
16836   mingw* | pw32*)
16837     lt_cv_dlopen="LoadLibrary"
16838     lt_cv_dlopen_libs=
16839    ;;
16840
16841   cygwin*)
16842     lt_cv_dlopen="dlopen"
16843     lt_cv_dlopen_libs=
16844    ;;
16845
16846   darwin*)
16847   # if libdl is installed we need to link against it
16848     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16849 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16850 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16851   echo $ECHO_N "(cached) $ECHO_C" >&6
16852 else
16853   ac_check_lib_save_LIBS=$LIBS
16854 LIBS="-ldl  $LIBS"
16855 cat >conftest.$ac_ext <<_ACEOF
16856 #line $LINENO "configure"
16857 /* confdefs.h.  */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h.  */
16862
16863 /* Override any gcc2 internal prototype to avoid an error.  */
16864 #ifdef __cplusplus
16865 extern "C"
16866 #endif
16867 /* We use char because int might match the return type of a gcc2
16868    builtin and then its argument prototype would still apply.  */
16869 char dlopen ();
16870 int
16871 main ()
16872 {
16873 dlopen ();
16874   ;
16875   return 0;
16876 }
16877 _ACEOF
16878 rm -f conftest.$ac_objext conftest$ac_exeext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16880   (eval $ac_link) 2>&5
16881   ac_status=$?
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); } &&
16884          { ac_try='test -s conftest$ac_exeext'
16885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886   (eval $ac_try) 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; }; then
16890   ac_cv_lib_dl_dlopen=yes
16891 else
16892   echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16894
16895 ac_cv_lib_dl_dlopen=no
16896 fi
16897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16898 LIBS=$ac_check_lib_save_LIBS
16899 fi
16900 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16901 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16902 if test $ac_cv_lib_dl_dlopen = yes; then
16903   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16904 else
16905
16906     lt_cv_dlopen="dyld"
16907     lt_cv_dlopen_libs=
16908     lt_cv_dlopen_self=yes
16909
16910 fi
16911
16912    ;;
16913
16914   *)
16915     echo "$as_me:$LINENO: checking for shl_load" >&5
16916 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16917 if test "${ac_cv_func_shl_load+set}" = set; then
16918   echo $ECHO_N "(cached) $ECHO_C" >&6
16919 else
16920   cat >conftest.$ac_ext <<_ACEOF
16921 #line $LINENO "configure"
16922 /* confdefs.h.  */
16923 _ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h.  */
16927 /* System header to define __stub macros and hopefully few prototypes,
16928     which can conflict with char shl_load (); below.
16929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16930     <limits.h> exists even on freestanding compilers.  */
16931 #ifdef __STDC__
16932 # include <limits.h>
16933 #else
16934 # include <assert.h>
16935 #endif
16936 /* Override any gcc2 internal prototype to avoid an error.  */
16937 #ifdef __cplusplus
16938 extern "C"
16939 {
16940 #endif
16941 /* We use char because int might match the return type of a gcc2
16942    builtin and then its argument prototype would still apply.  */
16943 char shl_load ();
16944 /* The GNU C library defines this for functions which it implements
16945     to always fail with ENOSYS.  Some functions are actually named
16946     something starting with __ and the normal name is an alias.  */
16947 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16948 choke me
16949 #else
16950 char (*f) () = shl_load;
16951 #endif
16952 #ifdef __cplusplus
16953 }
16954 #endif
16955
16956 int
16957 main ()
16958 {
16959 return f != shl_load;
16960   ;
16961   return 0;
16962 }
16963 _ACEOF
16964 rm -f conftest.$ac_objext conftest$ac_exeext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16966   (eval $ac_link) 2>&5
16967   ac_status=$?
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); } &&
16970          { ac_try='test -s conftest$ac_exeext'
16971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972   (eval $ac_try) 2>&5
16973   ac_status=$?
16974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); }; }; then
16976   ac_cv_func_shl_load=yes
16977 else
16978   echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16980
16981 ac_cv_func_shl_load=no
16982 fi
16983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16984 fi
16985 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16986 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16987 if test $ac_cv_func_shl_load = yes; then
16988   lt_cv_dlopen="shl_load"
16989 else
16990   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16991 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16992 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16993   echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995   ac_check_lib_save_LIBS=$LIBS
16996 LIBS="-ldld  $LIBS"
16997 cat >conftest.$ac_ext <<_ACEOF
16998 #line $LINENO "configure"
16999 /* confdefs.h.  */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h.  */
17004
17005 /* Override any gcc2 internal prototype to avoid an error.  */
17006 #ifdef __cplusplus
17007 extern "C"
17008 #endif
17009 /* We use char because int might match the return type of a gcc2
17010    builtin and then its argument prototype would still apply.  */
17011 char shl_load ();
17012 int
17013 main ()
17014 {
17015 shl_load ();
17016   ;
17017   return 0;
17018 }
17019 _ACEOF
17020 rm -f conftest.$ac_objext conftest$ac_exeext
17021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17022   (eval $ac_link) 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); } &&
17026          { ac_try='test -s conftest$ac_exeext'
17027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028   (eval $ac_try) 2>&5
17029   ac_status=$?
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); }; }; then
17032   ac_cv_lib_dld_shl_load=yes
17033 else
17034   echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17036
17037 ac_cv_lib_dld_shl_load=no
17038 fi
17039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17040 LIBS=$ac_check_lib_save_LIBS
17041 fi
17042 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17043 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17044 if test $ac_cv_lib_dld_shl_load = yes; then
17045   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17046 else
17047   echo "$as_me:$LINENO: checking for dlopen" >&5
17048 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17049 if test "${ac_cv_func_dlopen+set}" = set; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052   cat >conftest.$ac_ext <<_ACEOF
17053 #line $LINENO "configure"
17054 /* confdefs.h.  */
17055 _ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h.  */
17059 /* System header to define __stub macros and hopefully few prototypes,
17060     which can conflict with char dlopen (); below.
17061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17062     <limits.h> exists even on freestanding compilers.  */
17063 #ifdef __STDC__
17064 # include <limits.h>
17065 #else
17066 # include <assert.h>
17067 #endif
17068 /* Override any gcc2 internal prototype to avoid an error.  */
17069 #ifdef __cplusplus
17070 extern "C"
17071 {
17072 #endif
17073 /* We use char because int might match the return type of a gcc2
17074    builtin and then its argument prototype would still apply.  */
17075 char dlopen ();
17076 /* The GNU C library defines this for functions which it implements
17077     to always fail with ENOSYS.  Some functions are actually named
17078     something starting with __ and the normal name is an alias.  */
17079 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17080 choke me
17081 #else
17082 char (*f) () = dlopen;
17083 #endif
17084 #ifdef __cplusplus
17085 }
17086 #endif
17087
17088 int
17089 main ()
17090 {
17091 return f != dlopen;
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17098   (eval $ac_link) 2>&5
17099   ac_status=$?
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); } &&
17102          { ac_try='test -s conftest$ac_exeext'
17103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104   (eval $ac_try) 2>&5
17105   ac_status=$?
17106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107   (exit $ac_status); }; }; then
17108   ac_cv_func_dlopen=yes
17109 else
17110   echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17112
17113 ac_cv_func_dlopen=no
17114 fi
17115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17116 fi
17117 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17118 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17119 if test $ac_cv_func_dlopen = yes; then
17120   lt_cv_dlopen="dlopen"
17121 else
17122   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17123 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17124 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17125   echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127   ac_check_lib_save_LIBS=$LIBS
17128 LIBS="-ldl  $LIBS"
17129 cat >conftest.$ac_ext <<_ACEOF
17130 #line $LINENO "configure"
17131 /* confdefs.h.  */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h.  */
17136
17137 /* Override any gcc2 internal prototype to avoid an error.  */
17138 #ifdef __cplusplus
17139 extern "C"
17140 #endif
17141 /* We use char because int might match the return type of a gcc2
17142    builtin and then its argument prototype would still apply.  */
17143 char dlopen ();
17144 int
17145 main ()
17146 {
17147 dlopen ();
17148   ;
17149   return 0;
17150 }
17151 _ACEOF
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17154   (eval $ac_link) 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); } &&
17158          { ac_try='test -s conftest$ac_exeext'
17159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160   (eval $ac_try) 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); }; }; then
17164   ac_cv_lib_dl_dlopen=yes
17165 else
17166   echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17168
17169 ac_cv_lib_dl_dlopen=no
17170 fi
17171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17172 LIBS=$ac_check_lib_save_LIBS
17173 fi
17174 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17175 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17176 if test $ac_cv_lib_dl_dlopen = yes; then
17177   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17178 else
17179   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17180 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17181 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17182   echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184   ac_check_lib_save_LIBS=$LIBS
17185 LIBS="-lsvld  $LIBS"
17186 cat >conftest.$ac_ext <<_ACEOF
17187 #line $LINENO "configure"
17188 /* confdefs.h.  */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h.  */
17193
17194 /* Override any gcc2 internal prototype to avoid an error.  */
17195 #ifdef __cplusplus
17196 extern "C"
17197 #endif
17198 /* We use char because int might match the return type of a gcc2
17199    builtin and then its argument prototype would still apply.  */
17200 char dlopen ();
17201 int
17202 main ()
17203 {
17204 dlopen ();
17205   ;
17206   return 0;
17207 }
17208 _ACEOF
17209 rm -f conftest.$ac_objext conftest$ac_exeext
17210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17211   (eval $ac_link) 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); } &&
17215          { ac_try='test -s conftest$ac_exeext'
17216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217   (eval $ac_try) 2>&5
17218   ac_status=$?
17219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220   (exit $ac_status); }; }; then
17221   ac_cv_lib_svld_dlopen=yes
17222 else
17223   echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17225
17226 ac_cv_lib_svld_dlopen=no
17227 fi
17228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17229 LIBS=$ac_check_lib_save_LIBS
17230 fi
17231 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17232 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17233 if test $ac_cv_lib_svld_dlopen = yes; then
17234   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17235 else
17236   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17237 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17238 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17239   echo $ECHO_N "(cached) $ECHO_C" >&6
17240 else
17241   ac_check_lib_save_LIBS=$LIBS
17242 LIBS="-ldld  $LIBS"
17243 cat >conftest.$ac_ext <<_ACEOF
17244 #line $LINENO "configure"
17245 /* confdefs.h.  */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h.  */
17250
17251 /* Override any gcc2 internal prototype to avoid an error.  */
17252 #ifdef __cplusplus
17253 extern "C"
17254 #endif
17255 /* We use char because int might match the return type of a gcc2
17256    builtin and then its argument prototype would still apply.  */
17257 char dld_link ();
17258 int
17259 main ()
17260 {
17261 dld_link ();
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268   (eval $ac_link) 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); } &&
17272          { ac_try='test -s conftest$ac_exeext'
17273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274   (eval $ac_try) 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; }; then
17278   ac_cv_lib_dld_dld_link=yes
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283 ac_cv_lib_dld_dld_link=no
17284 fi
17285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17286 LIBS=$ac_check_lib_save_LIBS
17287 fi
17288 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17289 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17290 if test $ac_cv_lib_dld_dld_link = yes; then
17291   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17292 fi
17293
17294
17295 fi
17296
17297
17298 fi
17299
17300
17301 fi
17302
17303
17304 fi
17305
17306
17307 fi
17308
17309     ;;
17310   esac
17311
17312   if test "x$lt_cv_dlopen" != xno; then
17313     enable_dlopen=yes
17314   else
17315     enable_dlopen=no
17316   fi
17317
17318   case $lt_cv_dlopen in
17319   dlopen)
17320     save_CPPFLAGS="$CPPFLAGS"
17321     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17322
17323     save_LDFLAGS="$LDFLAGS"
17324     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17325
17326     save_LIBS="$LIBS"
17327     LIBS="$lt_cv_dlopen_libs $LIBS"
17328
17329     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17330 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17331 if test "${lt_cv_dlopen_self+set}" = set; then
17332   echo $ECHO_N "(cached) $ECHO_C" >&6
17333 else
17334           if test "$cross_compiling" = yes; then :
17335   lt_cv_dlopen_self=cross
17336 else
17337   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17338   lt_status=$lt_dlunknown
17339   cat > conftest.$ac_ext <<EOF
17340 #line 17340 "configure"
17341 #include "confdefs.h"
17342
17343 #if HAVE_DLFCN_H
17344 #include <dlfcn.h>
17345 #endif
17346
17347 #include <stdio.h>
17348
17349 #ifdef RTLD_GLOBAL
17350 #  define LT_DLGLOBAL           RTLD_GLOBAL
17351 #else
17352 #  ifdef DL_GLOBAL
17353 #    define LT_DLGLOBAL         DL_GLOBAL
17354 #  else
17355 #    define LT_DLGLOBAL         0
17356 #  endif
17357 #endif
17358
17359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17360    find out it does not work in some platform. */
17361 #ifndef LT_DLLAZY_OR_NOW
17362 #  ifdef RTLD_LAZY
17363 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17364 #  else
17365 #    ifdef DL_LAZY
17366 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17367 #    else
17368 #      ifdef RTLD_NOW
17369 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17370 #      else
17371 #        ifdef DL_NOW
17372 #          define LT_DLLAZY_OR_NOW      DL_NOW
17373 #        else
17374 #          define LT_DLLAZY_OR_NOW      0
17375 #        endif
17376 #      endif
17377 #    endif
17378 #  endif
17379 #endif
17380
17381 #ifdef __cplusplus
17382 extern "C" void exit (int);
17383 #endif
17384
17385 void fnord() { int i=42;}
17386 int main ()
17387 {
17388   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17389   int status = $lt_dlunknown;
17390
17391   if (self)
17392     {
17393       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17394       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17395       /* dlclose (self); */
17396     }
17397
17398     exit (status);
17399 }
17400 EOF
17401   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17402   (eval $ac_link) 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17406     (./conftest; exit; ) 2>/dev/null
17407     lt_status=$?
17408     case x$lt_status in
17409       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17410       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17411       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17412     esac
17413   else :
17414     # compilation failed
17415     lt_cv_dlopen_self=no
17416   fi
17417 fi
17418 rm -fr conftest*
17419
17420
17421 fi
17422 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17423 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17424
17425     if test "x$lt_cv_dlopen_self" = xyes; then
17426       LDFLAGS="$LDFLAGS $link_static_flag"
17427       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17428 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17429 if test "${lt_cv_dlopen_self_static+set}" = set; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432           if test "$cross_compiling" = yes; then :
17433   lt_cv_dlopen_self_static=cross
17434 else
17435   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17436   lt_status=$lt_dlunknown
17437   cat > conftest.$ac_ext <<EOF
17438 #line 17438 "configure"
17439 #include "confdefs.h"
17440
17441 #if HAVE_DLFCN_H
17442 #include <dlfcn.h>
17443 #endif
17444
17445 #include <stdio.h>
17446
17447 #ifdef RTLD_GLOBAL
17448 #  define LT_DLGLOBAL           RTLD_GLOBAL
17449 #else
17450 #  ifdef DL_GLOBAL
17451 #    define LT_DLGLOBAL         DL_GLOBAL
17452 #  else
17453 #    define LT_DLGLOBAL         0
17454 #  endif
17455 #endif
17456
17457 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17458    find out it does not work in some platform. */
17459 #ifndef LT_DLLAZY_OR_NOW
17460 #  ifdef RTLD_LAZY
17461 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17462 #  else
17463 #    ifdef DL_LAZY
17464 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17465 #    else
17466 #      ifdef RTLD_NOW
17467 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17468 #      else
17469 #        ifdef DL_NOW
17470 #          define LT_DLLAZY_OR_NOW      DL_NOW
17471 #        else
17472 #          define LT_DLLAZY_OR_NOW      0
17473 #        endif
17474 #      endif
17475 #    endif
17476 #  endif
17477 #endif
17478
17479 #ifdef __cplusplus
17480 extern "C" void exit (int);
17481 #endif
17482
17483 void fnord() { int i=42;}
17484 int main ()
17485 {
17486   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17487   int status = $lt_dlunknown;
17488
17489   if (self)
17490     {
17491       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17492       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17493       /* dlclose (self); */
17494     }
17495
17496     exit (status);
17497 }
17498 EOF
17499   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17500   (eval $ac_link) 2>&5
17501   ac_status=$?
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17504     (./conftest; exit; ) 2>/dev/null
17505     lt_status=$?
17506     case x$lt_status in
17507       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17508       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17509       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17510     esac
17511   else :
17512     # compilation failed
17513     lt_cv_dlopen_self_static=no
17514   fi
17515 fi
17516 rm -fr conftest*
17517
17518
17519 fi
17520 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17521 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17522     fi
17523
17524     CPPFLAGS="$save_CPPFLAGS"
17525     LDFLAGS="$save_LDFLAGS"
17526     LIBS="$save_LIBS"
17527     ;;
17528   esac
17529
17530   case $lt_cv_dlopen_self in
17531   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17532   *) enable_dlopen_self=unknown ;;
17533   esac
17534
17535   case $lt_cv_dlopen_self_static in
17536   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17537   *) enable_dlopen_self_static=unknown ;;
17538   esac
17539 fi
17540
17541
17542 # The else clause should only fire when bootstrapping the
17543 # libtool distribution, otherwise you forgot to ship ltmain.sh
17544 # with your package, and you will get complaints that there are
17545 # no rules to generate ltmain.sh.
17546 if test -f "$ltmain"; then
17547   # See if we are running on zsh, and set the options which allow our commands through
17548   # without removal of \ escapes.
17549   if test -n "${ZSH_VERSION+set}" ; then
17550     setopt NO_GLOB_SUBST
17551   fi
17552   # Now quote all the things that may contain metacharacters while being
17553   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17554   # variables and quote the copies for generation of the libtool script.
17555   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17556     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17557     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17558     deplibs_check_method reload_flag reload_cmds need_locks \
17559     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17560     lt_cv_sys_global_symbol_to_c_name_address \
17561     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17562     old_postinstall_cmds old_postuninstall_cmds \
17563     compiler_GCJ \
17564     CC_GCJ \
17565     LD_GCJ \
17566     lt_prog_compiler_wl_GCJ \
17567     lt_prog_compiler_pic_GCJ \
17568     lt_prog_compiler_static_GCJ \
17569     lt_prog_compiler_no_builtin_flag_GCJ \
17570     export_dynamic_flag_spec_GCJ \
17571     thread_safe_flag_spec_GCJ \
17572     whole_archive_flag_spec_GCJ \
17573     enable_shared_with_static_runtimes_GCJ \
17574     old_archive_cmds_GCJ \
17575     old_archive_from_new_cmds_GCJ \
17576     predep_objects_GCJ \
17577     postdep_objects_GCJ \
17578     predeps_GCJ \
17579     postdeps_GCJ \
17580     compiler_lib_search_path_GCJ \
17581     archive_cmds_GCJ \
17582     archive_expsym_cmds_GCJ \
17583     postinstall_cmds_GCJ \
17584     postuninstall_cmds_GCJ \
17585     old_archive_from_expsyms_cmds_GCJ \
17586     allow_undefined_flag_GCJ \
17587     no_undefined_flag_GCJ \
17588     export_symbols_cmds_GCJ \
17589     hardcode_libdir_flag_spec_GCJ \
17590     hardcode_libdir_flag_spec_ld_GCJ \
17591     hardcode_libdir_separator_GCJ \
17592     hardcode_automatic_GCJ \
17593     module_cmds_GCJ \
17594     module_expsym_cmds_GCJ \
17595     lt_cv_prog_compiler_c_o_GCJ \
17596     exclude_expsyms_GCJ \
17597     include_expsyms_GCJ; do
17598
17599     case $var in
17600     old_archive_cmds_GCJ | \
17601     old_archive_from_new_cmds_GCJ | \
17602     archive_cmds_GCJ | \
17603     archive_expsym_cmds_GCJ | \
17604     module_cmds_GCJ | \
17605     module_expsym_cmds_GCJ | \
17606     old_archive_from_expsyms_cmds_GCJ | \
17607     export_symbols_cmds_GCJ | \
17608     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17609     postinstall_cmds | postuninstall_cmds | \
17610     old_postinstall_cmds | old_postuninstall_cmds | \
17611     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17612       # Double-quote double-evaled strings.
17613       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17614       ;;
17615     *)
17616       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17617       ;;
17618     esac
17619   done
17620
17621   case $lt_echo in
17622   *'\$0 --fallback-echo"')
17623     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17624     ;;
17625   esac
17626
17627 cfgfile="$ofile"
17628
17629   cat <<__EOF__ >> "$cfgfile"
17630 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17631
17632 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17633
17634 # Shell to use when invoking shell scripts.
17635 SHELL=$lt_SHELL
17636
17637 # Whether or not to build shared libraries.
17638 build_libtool_libs=$enable_shared
17639
17640 # Whether or not to build static libraries.
17641 build_old_libs=$enable_static
17642
17643 # Whether or not to add -lc for building shared libraries.
17644 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17645
17646 # Whether or not to disallow shared libs when runtime libs are static
17647 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17648
17649 # Whether or not to optimize for fast installation.
17650 fast_install=$enable_fast_install
17651
17652 # The host system.
17653 host_alias=$host_alias
17654 host=$host
17655
17656 # An echo program that does not interpret backslashes.
17657 echo=$lt_echo
17658
17659 # The archiver.
17660 AR=$lt_AR
17661 AR_FLAGS=$lt_AR_FLAGS
17662
17663 # A C compiler.
17664 LTCC=$lt_LTCC
17665
17666 # A language-specific compiler.
17667 CC=$lt_compiler_GCJ
17668
17669 # Is the compiler the GNU C compiler?
17670 with_gcc=$GCC_GCJ
17671
17672 # An ERE matcher.
17673 EGREP=$lt_EGREP
17674
17675 # The linker used to build libraries.
17676 LD=$lt_LD_GCJ
17677
17678 # Whether we need hard or soft links.
17679 LN_S=$lt_LN_S
17680
17681 # A BSD-compatible nm program.
17682 NM=$lt_NM
17683
17684 # A symbol stripping program
17685 STRIP=$STRIP
17686
17687 # Used to examine libraries when file_magic_cmd begins "file"
17688 MAGIC_CMD=$MAGIC_CMD
17689
17690 # Used on cygwin: DLL creation program.
17691 DLLTOOL="$DLLTOOL"
17692
17693 # Used on cygwin: object dumper.
17694 OBJDUMP="$OBJDUMP"
17695
17696 # Used on cygwin: assembler.
17697 AS="$AS"
17698
17699 # The name of the directory that contains temporary libtool files.
17700 objdir=$objdir
17701
17702 # How to create reloadable object files.
17703 reload_flag=$lt_reload_flag
17704 reload_cmds=$lt_reload_cmds
17705
17706 # How to pass a linker flag through the compiler.
17707 wl=$lt_lt_prog_compiler_wl_GCJ
17708
17709 # Object file suffix (normally "o").
17710 objext="$ac_objext"
17711
17712 # Old archive suffix (normally "a").
17713 libext="$libext"
17714
17715 # Shared library suffix (normally ".so").
17716 shrext='$shrext'
17717
17718 # Executable file suffix (normally "").
17719 exeext="$exeext"
17720
17721 # Additional compiler flags for building library objects.
17722 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17723 pic_mode=$pic_mode
17724
17725 # What is the maximum length of a command?
17726 max_cmd_len=$lt_cv_sys_max_cmd_len
17727
17728 # Does compiler simultaneously support -c and -o options?
17729 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17730
17731 # Must we lock files when doing compilation ?
17732 need_locks=$lt_need_locks
17733
17734 # Do we need the lib prefix for modules?
17735 need_lib_prefix=$need_lib_prefix
17736
17737 # Do we need a version for libraries?
17738 need_version=$need_version
17739
17740 # Whether dlopen is supported.
17741 dlopen_support=$enable_dlopen
17742
17743 # Whether dlopen of programs is supported.
17744 dlopen_self=$enable_dlopen_self
17745
17746 # Whether dlopen of statically linked programs is supported.
17747 dlopen_self_static=$enable_dlopen_self_static
17748
17749 # Compiler flag to prevent dynamic linking.
17750 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17751
17752 # Compiler flag to turn off builtin functions.
17753 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17754
17755 # Compiler flag to allow reflexive dlopens.
17756 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17757
17758 # Compiler flag to generate shared objects directly from archives.
17759 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17760
17761 # Compiler flag to generate thread-safe objects.
17762 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17763
17764 # Library versioning type.
17765 version_type=$version_type
17766
17767 # Format of library name prefix.
17768 libname_spec=$lt_libname_spec
17769
17770 # List of archive names.  First name is the real one, the rest are links.
17771 # The last name is the one that the linker finds with -lNAME.
17772 library_names_spec=$lt_library_names_spec
17773
17774 # The coded name of the library, if different from the real name.
17775 soname_spec=$lt_soname_spec
17776
17777 # Commands used to build and install an old-style archive.
17778 RANLIB=$lt_RANLIB
17779 old_archive_cmds=$lt_old_archive_cmds_GCJ
17780 old_postinstall_cmds=$lt_old_postinstall_cmds
17781 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17782
17783 # Create an old-style archive from a shared archive.
17784 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17785
17786 # Create a temporary old-style archive to link instead of a shared archive.
17787 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17788
17789 # Commands used to build and install a shared archive.
17790 archive_cmds=$lt_archive_cmds_GCJ
17791 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17792 postinstall_cmds=$lt_postinstall_cmds
17793 postuninstall_cmds=$lt_postuninstall_cmds
17794
17795 # Commands used to build a loadable module (assumed same as above if empty)
17796 module_cmds=$lt_module_cmds_GCJ
17797 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17798
17799 # Commands to strip libraries.
17800 old_striplib=$lt_old_striplib
17801 striplib=$lt_striplib
17802
17803 # Dependencies to place before the objects being linked to create a
17804 # shared library.
17805 predep_objects=$lt_predep_objects_GCJ
17806
17807 # Dependencies to place after the objects being linked to create a
17808 # shared library.
17809 postdep_objects=$lt_postdep_objects_GCJ
17810
17811 # Dependencies to place before the objects being linked to create a
17812 # shared library.
17813 predeps=$lt_predeps_GCJ
17814
17815 # Dependencies to place after the objects being linked to create a
17816 # shared library.
17817 postdeps=$lt_postdeps_GCJ
17818
17819 # The library search path used internally by the compiler when linking
17820 # a shared library.
17821 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17822
17823 # Method to check whether dependent libraries are shared objects.
17824 deplibs_check_method=$lt_deplibs_check_method
17825
17826 # Command to use when deplibs_check_method == file_magic.
17827 file_magic_cmd=$lt_file_magic_cmd
17828
17829 # Flag that allows shared libraries with undefined symbols to be built.
17830 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17831
17832 # Flag that forces no undefined symbols.
17833 no_undefined_flag=$lt_no_undefined_flag_GCJ
17834
17835 # Commands used to finish a libtool library installation in a directory.
17836 finish_cmds=$lt_finish_cmds
17837
17838 # Same as above, but a single script fragment to be evaled but not shown.
17839 finish_eval=$lt_finish_eval
17840
17841 # Take the output of nm and produce a listing of raw symbols and C names.
17842 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17843
17844 # Transform the output of nm in a proper C declaration
17845 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17846
17847 # Transform the output of nm in a C name address pair
17848 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17849
17850 # This is the shared library runtime path variable.
17851 runpath_var=$runpath_var
17852
17853 # This is the shared library path variable.
17854 shlibpath_var=$shlibpath_var
17855
17856 # Is shlibpath searched before the hard-coded library search path?
17857 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17858
17859 # How to hardcode a shared library path into an executable.
17860 hardcode_action=$hardcode_action_GCJ
17861
17862 # Whether we should hardcode library paths into libraries.
17863 hardcode_into_libs=$hardcode_into_libs
17864
17865 # Flag to hardcode \$libdir into a binary during linking.
17866 # This must work even if \$libdir does not exist.
17867 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17868
17869 # If ld is used when linking, flag to hardcode \$libdir into
17870 # a binary during linking. This must work even if \$libdir does
17871 # not exist.
17872 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17873
17874 # Whether we need a single -rpath flag with a separated argument.
17875 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17876
17877 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17878 # resulting binary.
17879 hardcode_direct=$hardcode_direct_GCJ
17880
17881 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17882 # resulting binary.
17883 hardcode_minus_L=$hardcode_minus_L_GCJ
17884
17885 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17886 # the resulting binary.
17887 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17888
17889 # Set to yes if building a shared library automatically hardcodes DIR into the library
17890 # and all subsequent libraries and executables linked against it.
17891 hardcode_automatic=$hardcode_automatic_GCJ
17892
17893 # Variables whose values should be saved in libtool wrapper scripts and
17894 # restored at relink time.
17895 variables_saved_for_relink="$variables_saved_for_relink"
17896
17897 # Whether libtool must link a program against all its dependency libraries.
17898 link_all_deplibs=$link_all_deplibs_GCJ
17899
17900 # Compile-time system search path for libraries
17901 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17902
17903 # Run-time system search path for libraries
17904 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17905
17906 # Fix the shell variable \$srcfile for the compiler.
17907 fix_srcfile_path="$fix_srcfile_path_GCJ"
17908
17909 # Set to yes if exported symbols are required.
17910 always_export_symbols=$always_export_symbols_GCJ
17911
17912 # The commands to list exported symbols.
17913 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17914
17915 # The commands to extract the exported symbol list from a shared archive.
17916 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17917
17918 # Symbols that should not be listed in the preloaded symbols.
17919 exclude_expsyms=$lt_exclude_expsyms_GCJ
17920
17921 # Symbols that must always be exported.
17922 include_expsyms=$lt_include_expsyms_GCJ
17923
17924 # ### END LIBTOOL TAG CONFIG: $tagname
17925
17926 __EOF__
17927
17928
17929 else
17930   # If there is no Makefile yet, we rely on a make rule to execute
17931   # `config.status --recheck' to rerun these tests and create the
17932   # libtool script then.
17933   test -f Makefile && make "$ltmain"
17934 fi
17935
17936
17937 ac_ext=c
17938 ac_cpp='$CPP $CPPFLAGS'
17939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17942
17943 CC="$lt_save_CC"
17944
17945         else
17946           tagname=""
17947         fi
17948         ;;
17949
17950       RC)
17951
17952
17953
17954 # Source file extension for RC test sources.
17955 ac_ext=rc
17956
17957 # Object file extension for compiled RC test sources.
17958 objext=o
17959 objext_RC=$objext
17960
17961 # Code to be used in simple compile tests
17962 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17963
17964 # Code to be used in simple link tests
17965 lt_simple_link_test_code="$lt_simple_compile_test_code"
17966
17967 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17968
17969 # If no C compiler was specified, use CC.
17970 LTCC=${LTCC-"$CC"}
17971
17972 # Allow CC to be a program name with arguments.
17973 compiler=$CC
17974
17975
17976 # Allow CC to be a program name with arguments.
17977 lt_save_CC="$CC"
17978 CC=${RC-"windres"}
17979 compiler=$CC
17980 compiler_RC=$CC
17981 lt_cv_prog_compiler_c_o_RC=yes
17982
17983 # The else clause should only fire when bootstrapping the
17984 # libtool distribution, otherwise you forgot to ship ltmain.sh
17985 # with your package, and you will get complaints that there are
17986 # no rules to generate ltmain.sh.
17987 if test -f "$ltmain"; then
17988   # See if we are running on zsh, and set the options which allow our commands through
17989   # without removal of \ escapes.
17990   if test -n "${ZSH_VERSION+set}" ; then
17991     setopt NO_GLOB_SUBST
17992   fi
17993   # Now quote all the things that may contain metacharacters while being
17994   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17995   # variables and quote the copies for generation of the libtool script.
17996   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17997     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17998     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17999     deplibs_check_method reload_flag reload_cmds need_locks \
18000     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18001     lt_cv_sys_global_symbol_to_c_name_address \
18002     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18003     old_postinstall_cmds old_postuninstall_cmds \
18004     compiler_RC \
18005     CC_RC \
18006     LD_RC \
18007     lt_prog_compiler_wl_RC \
18008     lt_prog_compiler_pic_RC \
18009     lt_prog_compiler_static_RC \
18010     lt_prog_compiler_no_builtin_flag_RC \
18011     export_dynamic_flag_spec_RC \
18012     thread_safe_flag_spec_RC \
18013     whole_archive_flag_spec_RC \
18014     enable_shared_with_static_runtimes_RC \
18015     old_archive_cmds_RC \
18016     old_archive_from_new_cmds_RC \
18017     predep_objects_RC \
18018     postdep_objects_RC \
18019     predeps_RC \
18020     postdeps_RC \
18021     compiler_lib_search_path_RC \
18022     archive_cmds_RC \
18023     archive_expsym_cmds_RC \
18024     postinstall_cmds_RC \
18025     postuninstall_cmds_RC \
18026     old_archive_from_expsyms_cmds_RC \
18027     allow_undefined_flag_RC \
18028     no_undefined_flag_RC \
18029     export_symbols_cmds_RC \
18030     hardcode_libdir_flag_spec_RC \
18031     hardcode_libdir_flag_spec_ld_RC \
18032     hardcode_libdir_separator_RC \
18033     hardcode_automatic_RC \
18034     module_cmds_RC \
18035     module_expsym_cmds_RC \
18036     lt_cv_prog_compiler_c_o_RC \
18037     exclude_expsyms_RC \
18038     include_expsyms_RC; do
18039
18040     case $var in
18041     old_archive_cmds_RC | \
18042     old_archive_from_new_cmds_RC | \
18043     archive_cmds_RC | \
18044     archive_expsym_cmds_RC | \
18045     module_cmds_RC | \
18046     module_expsym_cmds_RC | \
18047     old_archive_from_expsyms_cmds_RC | \
18048     export_symbols_cmds_RC | \
18049     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18050     postinstall_cmds | postuninstall_cmds | \
18051     old_postinstall_cmds | old_postuninstall_cmds | \
18052     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18053       # Double-quote double-evaled strings.
18054       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18055       ;;
18056     *)
18057       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18058       ;;
18059     esac
18060   done
18061
18062   case $lt_echo in
18063   *'\$0 --fallback-echo"')
18064     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18065     ;;
18066   esac
18067
18068 cfgfile="$ofile"
18069
18070   cat <<__EOF__ >> "$cfgfile"
18071 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18072
18073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18074
18075 # Shell to use when invoking shell scripts.
18076 SHELL=$lt_SHELL
18077
18078 # Whether or not to build shared libraries.
18079 build_libtool_libs=$enable_shared
18080
18081 # Whether or not to build static libraries.
18082 build_old_libs=$enable_static
18083
18084 # Whether or not to add -lc for building shared libraries.
18085 build_libtool_need_lc=$archive_cmds_need_lc_RC
18086
18087 # Whether or not to disallow shared libs when runtime libs are static
18088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18089
18090 # Whether or not to optimize for fast installation.
18091 fast_install=$enable_fast_install
18092
18093 # The host system.
18094 host_alias=$host_alias
18095 host=$host
18096
18097 # An echo program that does not interpret backslashes.
18098 echo=$lt_echo
18099
18100 # The archiver.
18101 AR=$lt_AR
18102 AR_FLAGS=$lt_AR_FLAGS
18103
18104 # A C compiler.
18105 LTCC=$lt_LTCC
18106
18107 # A language-specific compiler.
18108 CC=$lt_compiler_RC
18109
18110 # Is the compiler the GNU C compiler?
18111 with_gcc=$GCC_RC
18112
18113 # An ERE matcher.
18114 EGREP=$lt_EGREP
18115
18116 # The linker used to build libraries.
18117 LD=$lt_LD_RC
18118
18119 # Whether we need hard or soft links.
18120 LN_S=$lt_LN_S
18121
18122 # A BSD-compatible nm program.
18123 NM=$lt_NM
18124
18125 # A symbol stripping program
18126 STRIP=$STRIP
18127
18128 # Used to examine libraries when file_magic_cmd begins "file"
18129 MAGIC_CMD=$MAGIC_CMD
18130
18131 # Used on cygwin: DLL creation program.
18132 DLLTOOL="$DLLTOOL"
18133
18134 # Used on cygwin: object dumper.
18135 OBJDUMP="$OBJDUMP"
18136
18137 # Used on cygwin: assembler.
18138 AS="$AS"
18139
18140 # The name of the directory that contains temporary libtool files.
18141 objdir=$objdir
18142
18143 # How to create reloadable object files.
18144 reload_flag=$lt_reload_flag
18145 reload_cmds=$lt_reload_cmds
18146
18147 # How to pass a linker flag through the compiler.
18148 wl=$lt_lt_prog_compiler_wl_RC
18149
18150 # Object file suffix (normally "o").
18151 objext="$ac_objext"
18152
18153 # Old archive suffix (normally "a").
18154 libext="$libext"
18155
18156 # Shared library suffix (normally ".so").
18157 shrext='$shrext'
18158
18159 # Executable file suffix (normally "").
18160 exeext="$exeext"
18161
18162 # Additional compiler flags for building library objects.
18163 pic_flag=$lt_lt_prog_compiler_pic_RC
18164 pic_mode=$pic_mode
18165
18166 # What is the maximum length of a command?
18167 max_cmd_len=$lt_cv_sys_max_cmd_len
18168
18169 # Does compiler simultaneously support -c and -o options?
18170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18171
18172 # Must we lock files when doing compilation ?
18173 need_locks=$lt_need_locks
18174
18175 # Do we need the lib prefix for modules?
18176 need_lib_prefix=$need_lib_prefix
18177
18178 # Do we need a version for libraries?
18179 need_version=$need_version
18180
18181 # Whether dlopen is supported.
18182 dlopen_support=$enable_dlopen
18183
18184 # Whether dlopen of programs is supported.
18185 dlopen_self=$enable_dlopen_self
18186
18187 # Whether dlopen of statically linked programs is supported.
18188 dlopen_self_static=$enable_dlopen_self_static
18189
18190 # Compiler flag to prevent dynamic linking.
18191 link_static_flag=$lt_lt_prog_compiler_static_RC
18192
18193 # Compiler flag to turn off builtin functions.
18194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18195
18196 # Compiler flag to allow reflexive dlopens.
18197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18198
18199 # Compiler flag to generate shared objects directly from archives.
18200 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18201
18202 # Compiler flag to generate thread-safe objects.
18203 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18204
18205 # Library versioning type.
18206 version_type=$version_type
18207
18208 # Format of library name prefix.
18209 libname_spec=$lt_libname_spec
18210
18211 # List of archive names.  First name is the real one, the rest are links.
18212 # The last name is the one that the linker finds with -lNAME.
18213 library_names_spec=$lt_library_names_spec
18214
18215 # The coded name of the library, if different from the real name.
18216 soname_spec=$lt_soname_spec
18217
18218 # Commands used to build and install an old-style archive.
18219 RANLIB=$lt_RANLIB
18220 old_archive_cmds=$lt_old_archive_cmds_RC
18221 old_postinstall_cmds=$lt_old_postinstall_cmds
18222 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18223
18224 # Create an old-style archive from a shared archive.
18225 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18226
18227 # Create a temporary old-style archive to link instead of a shared archive.
18228 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18229
18230 # Commands used to build and install a shared archive.
18231 archive_cmds=$lt_archive_cmds_RC
18232 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18233 postinstall_cmds=$lt_postinstall_cmds
18234 postuninstall_cmds=$lt_postuninstall_cmds
18235
18236 # Commands used to build a loadable module (assumed same as above if empty)
18237 module_cmds=$lt_module_cmds_RC
18238 module_expsym_cmds=$lt_module_expsym_cmds_RC
18239
18240 # Commands to strip libraries.
18241 old_striplib=$lt_old_striplib
18242 striplib=$lt_striplib
18243
18244 # Dependencies to place before the objects being linked to create a
18245 # shared library.
18246 predep_objects=$lt_predep_objects_RC
18247
18248 # Dependencies to place after the objects being linked to create a
18249 # shared library.
18250 postdep_objects=$lt_postdep_objects_RC
18251
18252 # Dependencies to place before the objects being linked to create a
18253 # shared library.
18254 predeps=$lt_predeps_RC
18255
18256 # Dependencies to place after the objects being linked to create a
18257 # shared library.
18258 postdeps=$lt_postdeps_RC
18259
18260 # The library search path used internally by the compiler when linking
18261 # a shared library.
18262 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18263
18264 # Method to check whether dependent libraries are shared objects.
18265 deplibs_check_method=$lt_deplibs_check_method
18266
18267 # Command to use when deplibs_check_method == file_magic.
18268 file_magic_cmd=$lt_file_magic_cmd
18269
18270 # Flag that allows shared libraries with undefined symbols to be built.
18271 allow_undefined_flag=$lt_allow_undefined_flag_RC
18272
18273 # Flag that forces no undefined symbols.
18274 no_undefined_flag=$lt_no_undefined_flag_RC
18275
18276 # Commands used to finish a libtool library installation in a directory.
18277 finish_cmds=$lt_finish_cmds
18278
18279 # Same as above, but a single script fragment to be evaled but not shown.
18280 finish_eval=$lt_finish_eval
18281
18282 # Take the output of nm and produce a listing of raw symbols and C names.
18283 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18284
18285 # Transform the output of nm in a proper C declaration
18286 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18287
18288 # Transform the output of nm in a C name address pair
18289 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18290
18291 # This is the shared library runtime path variable.
18292 runpath_var=$runpath_var
18293
18294 # This is the shared library path variable.
18295 shlibpath_var=$shlibpath_var
18296
18297 # Is shlibpath searched before the hard-coded library search path?
18298 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18299
18300 # How to hardcode a shared library path into an executable.
18301 hardcode_action=$hardcode_action_RC
18302
18303 # Whether we should hardcode library paths into libraries.
18304 hardcode_into_libs=$hardcode_into_libs
18305
18306 # Flag to hardcode \$libdir into a binary during linking.
18307 # This must work even if \$libdir does not exist.
18308 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18309
18310 # If ld is used when linking, flag to hardcode \$libdir into
18311 # a binary during linking. This must work even if \$libdir does
18312 # not exist.
18313 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18314
18315 # Whether we need a single -rpath flag with a separated argument.
18316 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18317
18318 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18319 # resulting binary.
18320 hardcode_direct=$hardcode_direct_RC
18321
18322 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18323 # resulting binary.
18324 hardcode_minus_L=$hardcode_minus_L_RC
18325
18326 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18327 # the resulting binary.
18328 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18329
18330 # Set to yes if building a shared library automatically hardcodes DIR into the library
18331 # and all subsequent libraries and executables linked against it.
18332 hardcode_automatic=$hardcode_automatic_RC
18333
18334 # Variables whose values should be saved in libtool wrapper scripts and
18335 # restored at relink time.
18336 variables_saved_for_relink="$variables_saved_for_relink"
18337
18338 # Whether libtool must link a program against all its dependency libraries.
18339 link_all_deplibs=$link_all_deplibs_RC
18340
18341 # Compile-time system search path for libraries
18342 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18343
18344 # Run-time system search path for libraries
18345 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18346
18347 # Fix the shell variable \$srcfile for the compiler.
18348 fix_srcfile_path="$fix_srcfile_path_RC"
18349
18350 # Set to yes if exported symbols are required.
18351 always_export_symbols=$always_export_symbols_RC
18352
18353 # The commands to list exported symbols.
18354 export_symbols_cmds=$lt_export_symbols_cmds_RC
18355
18356 # The commands to extract the exported symbol list from a shared archive.
18357 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18358
18359 # Symbols that should not be listed in the preloaded symbols.
18360 exclude_expsyms=$lt_exclude_expsyms_RC
18361
18362 # Symbols that must always be exported.
18363 include_expsyms=$lt_include_expsyms_RC
18364
18365 # ### END LIBTOOL TAG CONFIG: $tagname
18366
18367 __EOF__
18368
18369
18370 else
18371   # If there is no Makefile yet, we rely on a make rule to execute
18372   # `config.status --recheck' to rerun these tests and create the
18373   # libtool script then.
18374   test -f Makefile && make "$ltmain"
18375 fi
18376
18377
18378 ac_ext=c
18379 ac_cpp='$CPP $CPPFLAGS'
18380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18383
18384 CC="$lt_save_CC"
18385
18386         ;;
18387
18388       *)
18389         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18390 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18391    { (exit 1); exit 1; }; }
18392         ;;
18393       esac
18394
18395       # Append the new tag name to the list of available tags.
18396       if test -n "$tagname" ; then
18397       available_tags="$available_tags $tagname"
18398     fi
18399     fi
18400   done
18401   IFS="$lt_save_ifs"
18402
18403   # Now substitute the updated list of available tags.
18404   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18405     mv "${ofile}T" "$ofile"
18406     chmod +x "$ofile"
18407   else
18408     rm -f "${ofile}T"
18409     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18410 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18411    { (exit 1); exit 1; }; }
18412   fi
18413 fi
18414
18415
18416
18417 # This can be used to rebuild libtool when needed
18418 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18419
18420 # Always use our own libtool.
18421 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18422
18423 # Prevent multiple expansion
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445 # Extract the first word of "pwd", so it can be a program name with args.
18446 set dummy pwd; ac_word=$2
18447 echo "$as_me:$LINENO: checking for $ac_word" >&5
18448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18449 if test "${ac_cv_path_RPWD+set}" = set; then
18450   echo $ECHO_N "(cached) $ECHO_C" >&6
18451 else
18452   case $RPWD in
18453   [\\/]* | ?:[\\/]*)
18454   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18455   ;;
18456   *)
18457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18458 for as_dir in $PATH
18459 do
18460   IFS=$as_save_IFS
18461   test -z "$as_dir" && as_dir=.
18462   for ac_exec_ext in '' $ac_executable_extensions; do
18463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18464     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18466     break 2
18467   fi
18468 done
18469 done
18470
18471   ;;
18472 esac
18473 fi
18474 RPWD=$ac_cv_path_RPWD
18475
18476 if test -n "$RPWD"; then
18477   echo "$as_me:$LINENO: result: $RPWD" >&5
18478 echo "${ECHO_T}$RPWD" >&6
18479 else
18480   echo "$as_me:$LINENO: result: no" >&5
18481 echo "${ECHO_T}no" >&6
18482 fi
18483
18484 # Extract the first word of "ar", so it can be a program name with args.
18485 set dummy ar; ac_word=$2
18486 echo "$as_me:$LINENO: checking for $ac_word" >&5
18487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18488 if test "${ac_cv_path_AR+set}" = set; then
18489   echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491   case $AR in
18492   [\\/]* | ?:[\\/]*)
18493   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18494   ;;
18495   *)
18496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18497 for as_dir in $PATH
18498 do
18499   IFS=$as_save_IFS
18500   test -z "$as_dir" && as_dir=.
18501   for ac_exec_ext in '' $ac_executable_extensions; do
18502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18503     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18505     break 2
18506   fi
18507 done
18508 done
18509
18510   ;;
18511 esac
18512 fi
18513 AR=$ac_cv_path_AR
18514
18515 if test -n "$AR"; then
18516   echo "$as_me:$LINENO: result: $AR" >&5
18517 echo "${ECHO_T}$AR" >&6
18518 else
18519   echo "$as_me:$LINENO: result: no" >&5
18520 echo "${ECHO_T}no" >&6
18521 fi
18522
18523 # Extract the first word of "sed", so it can be a program name with args.
18524 set dummy sed; ac_word=$2
18525 echo "$as_me:$LINENO: checking for $ac_word" >&5
18526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18527 if test "${ac_cv_path_SED+set}" = set; then
18528   echo $ECHO_N "(cached) $ECHO_C" >&6
18529 else
18530   case $SED in
18531   [\\/]* | ?:[\\/]*)
18532   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18533   ;;
18534   *)
18535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18536 for as_dir in $PATH
18537 do
18538   IFS=$as_save_IFS
18539   test -z "$as_dir" && as_dir=.
18540   for ac_exec_ext in '' $ac_executable_extensions; do
18541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18542     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18544     break 2
18545   fi
18546 done
18547 done
18548
18549   ;;
18550 esac
18551 fi
18552 SED=$ac_cv_path_SED
18553
18554 if test -n "$SED"; then
18555   echo "$as_me:$LINENO: result: $SED" >&5
18556 echo "${ECHO_T}$SED" >&6
18557 else
18558   echo "$as_me:$LINENO: result: no" >&5
18559 echo "${ECHO_T}no" >&6
18560 fi
18561
18562 # Extract the first word of "rm", so it can be a program name with args.
18563 set dummy rm; ac_word=$2
18564 echo "$as_me:$LINENO: checking for $ac_word" >&5
18565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18566 if test "${ac_cv_path_RM+set}" = set; then
18567   echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569   case $RM in
18570   [\\/]* | ?:[\\/]*)
18571   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18572   ;;
18573   *)
18574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575 for as_dir in $PATH
18576 do
18577   IFS=$as_save_IFS
18578   test -z "$as_dir" && as_dir=.
18579   for ac_exec_ext in '' $ac_executable_extensions; do
18580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18581     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18583     break 2
18584   fi
18585 done
18586 done
18587
18588   ;;
18589 esac
18590 fi
18591 RM=$ac_cv_path_RM
18592
18593 if test -n "$RM"; then
18594   echo "$as_me:$LINENO: result: $RM" >&5
18595 echo "${ECHO_T}$RM" >&6
18596 else
18597   echo "$as_me:$LINENO: result: no" >&5
18598 echo "${ECHO_T}no" >&6
18599 fi
18600
18601 # Extract the first word of "echo", so it can be a program name with args.
18602 set dummy echo; ac_word=$2
18603 echo "$as_me:$LINENO: checking for $ac_word" >&5
18604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18605 if test "${ac_cv_path_ECHO+set}" = set; then
18606   echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608   case $ECHO in
18609   [\\/]* | ?:[\\/]*)
18610   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18611   ;;
18612   *)
18613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18614 for as_dir in $PATH
18615 do
18616   IFS=$as_save_IFS
18617   test -z "$as_dir" && as_dir=.
18618   for ac_exec_ext in '' $ac_executable_extensions; do
18619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18620     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18622     break 2
18623   fi
18624 done
18625 done
18626
18627   ;;
18628 esac
18629 fi
18630 ECHO=$ac_cv_path_ECHO
18631
18632 if test -n "$ECHO"; then
18633   echo "$as_me:$LINENO: result: $ECHO" >&5
18634 echo "${ECHO_T}$ECHO" >&6
18635 else
18636   echo "$as_me:$LINENO: result: no" >&5
18637 echo "${ECHO_T}no" >&6
18638 fi
18639
18640 # Extract the first word of "mkdir", so it can be a program name with args.
18641 set dummy mkdir; ac_word=$2
18642 echo "$as_me:$LINENO: checking for $ac_word" >&5
18643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18644 if test "${ac_cv_path_MKDIR+set}" = set; then
18645   echo $ECHO_N "(cached) $ECHO_C" >&6
18646 else
18647   case $MKDIR in
18648   [\\/]* | ?:[\\/]*)
18649   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18650   ;;
18651   *)
18652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18653 for as_dir in $PATH
18654 do
18655   IFS=$as_save_IFS
18656   test -z "$as_dir" && as_dir=.
18657   for ac_exec_ext in '' $ac_executable_extensions; do
18658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18659     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18661     break 2
18662   fi
18663 done
18664 done
18665
18666   ;;
18667 esac
18668 fi
18669 MKDIR=$ac_cv_path_MKDIR
18670
18671 if test -n "$MKDIR"; then
18672   echo "$as_me:$LINENO: result: $MKDIR" >&5
18673 echo "${ECHO_T}$MKDIR" >&6
18674 else
18675   echo "$as_me:$LINENO: result: no" >&5
18676 echo "${ECHO_T}no" >&6
18677 fi
18678
18679 # Extract the first word of "date", so it can be a program name with args.
18680 set dummy date; ac_word=$2
18681 echo "$as_me:$LINENO: checking for $ac_word" >&5
18682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18683 if test "${ac_cv_path_DATE+set}" = set; then
18684   echo $ECHO_N "(cached) $ECHO_C" >&6
18685 else
18686   case $DATE in
18687   [\\/]* | ?:[\\/]*)
18688   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18689   ;;
18690   *)
18691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18692 for as_dir in $PATH
18693 do
18694   IFS=$as_save_IFS
18695   test -z "$as_dir" && as_dir=.
18696   for ac_exec_ext in '' $ac_executable_extensions; do
18697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18698     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18700     break 2
18701   fi
18702 done
18703 done
18704
18705   ;;
18706 esac
18707 fi
18708 DATE=$ac_cv_path_DATE
18709
18710 if test -n "$DATE"; then
18711   echo "$as_me:$LINENO: result: $DATE" >&5
18712 echo "${ECHO_T}$DATE" >&6
18713 else
18714   echo "$as_me:$LINENO: result: no" >&5
18715 echo "${ECHO_T}no" >&6
18716 fi
18717
18718 # Extract the first word of "mv", so it can be a program name with args.
18719 set dummy mv; ac_word=$2
18720 echo "$as_me:$LINENO: checking for $ac_word" >&5
18721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18722 if test "${ac_cv_path_MV+set}" = set; then
18723   echo $ECHO_N "(cached) $ECHO_C" >&6
18724 else
18725   case $MV in
18726   [\\/]* | ?:[\\/]*)
18727   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18728   ;;
18729   *)
18730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18731 for as_dir in $PATH
18732 do
18733   IFS=$as_save_IFS
18734   test -z "$as_dir" && as_dir=.
18735   for ac_exec_ext in '' $ac_executable_extensions; do
18736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18737     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18739     break 2
18740   fi
18741 done
18742 done
18743
18744   ;;
18745 esac
18746 fi
18747 MV=$ac_cv_path_MV
18748
18749 if test -n "$MV"; then
18750   echo "$as_me:$LINENO: result: $MV" >&5
18751 echo "${ECHO_T}$MV" >&6
18752 else
18753   echo "$as_me:$LINENO: result: no" >&5
18754 echo "${ECHO_T}no" >&6
18755 fi
18756
18757 # Extract the first word of "dot", so it can be a program name with args.
18758 set dummy dot; ac_word=$2
18759 echo "$as_me:$LINENO: checking for $ac_word" >&5
18760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18761 if test "${ac_cv_path_DOT+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764   case $DOT in
18765   [\\/]* | ?:[\\/]*)
18766   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18767   ;;
18768   *)
18769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770 for as_dir in $PATH
18771 do
18772   IFS=$as_save_IFS
18773   test -z "$as_dir" && as_dir=.
18774   for ac_exec_ext in '' $ac_executable_extensions; do
18775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18778     break 2
18779   fi
18780 done
18781 done
18782
18783   ;;
18784 esac
18785 fi
18786 DOT=$ac_cv_path_DOT
18787
18788 if test -n "$DOT"; then
18789   echo "$as_me:$LINENO: result: $DOT" >&5
18790 echo "${ECHO_T}$DOT" >&6
18791 else
18792   echo "$as_me:$LINENO: result: no" >&5
18793 echo "${ECHO_T}no" >&6
18794 fi
18795
18796 # Extract the first word of "etags", so it can be a program name with args.
18797 set dummy etags; ac_word=$2
18798 echo "$as_me:$LINENO: checking for $ac_word" >&5
18799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18800 if test "${ac_cv_path_ETAGS+set}" = set; then
18801   echo $ECHO_N "(cached) $ECHO_C" >&6
18802 else
18803   case $ETAGS in
18804   [\\/]* | ?:[\\/]*)
18805   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18806   ;;
18807   *)
18808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18809 for as_dir in $PATH
18810 do
18811   IFS=$as_save_IFS
18812   test -z "$as_dir" && as_dir=.
18813   for ac_exec_ext in '' $ac_executable_extensions; do
18814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18815     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18817     break 2
18818   fi
18819 done
18820 done
18821
18822   ;;
18823 esac
18824 fi
18825 ETAGS=$ac_cv_path_ETAGS
18826
18827 if test -n "$ETAGS"; then
18828   echo "$as_me:$LINENO: result: $ETAGS" >&5
18829 echo "${ECHO_T}$ETAGS" >&6
18830 else
18831   echo "$as_me:$LINENO: result: no" >&5
18832 echo "${ECHO_T}no" >&6
18833 fi
18834
18835 # Extract the first word of "purify", so it can be a program name with args.
18836 set dummy purify; ac_word=$2
18837 echo "$as_me:$LINENO: checking for $ac_word" >&5
18838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18839 if test "${ac_cv_path_PURIFY+set}" = set; then
18840   echo $ECHO_N "(cached) $ECHO_C" >&6
18841 else
18842   case $PURIFY in
18843   [\\/]* | ?:[\\/]*)
18844   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18845   ;;
18846   *)
18847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18848 for as_dir in $PATH
18849 do
18850   IFS=$as_save_IFS
18851   test -z "$as_dir" && as_dir=.
18852   for ac_exec_ext in '' $ac_executable_extensions; do
18853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18854     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18856     break 2
18857   fi
18858 done
18859 done
18860
18861   ;;
18862 esac
18863 fi
18864 PURIFY=$ac_cv_path_PURIFY
18865
18866 if test -n "$PURIFY"; then
18867   echo "$as_me:$LINENO: result: $PURIFY" >&5
18868 echo "${ECHO_T}$PURIFY" >&6
18869 else
18870   echo "$as_me:$LINENO: result: no" >&5
18871 echo "${ECHO_T}no" >&6
18872 fi
18873
18874 # Extract the first word of "python", so it can be a program name with args.
18875 set dummy python; ac_word=$2
18876 echo "$as_me:$LINENO: checking for $ac_word" >&5
18877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18878 if test "${ac_cv_path_PYTHON+set}" = set; then
18879   echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18881   case $PYTHON in
18882   [\\/]* | ?:[\\/]*)
18883   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18884   ;;
18885   *)
18886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18887 for as_dir in $PATH
18888 do
18889   IFS=$as_save_IFS
18890   test -z "$as_dir" && as_dir=.
18891   for ac_exec_ext in '' $ac_executable_extensions; do
18892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18893     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18895     break 2
18896   fi
18897 done
18898 done
18899
18900   ;;
18901 esac
18902 fi
18903 PYTHON=$ac_cv_path_PYTHON
18904
18905 if test -n "$PYTHON"; then
18906   echo "$as_me:$LINENO: result: $PYTHON" >&5
18907 echo "${ECHO_T}$PYTHON" >&6
18908 else
18909   echo "$as_me:$LINENO: result: no" >&5
18910 echo "${ECHO_T}no" >&6
18911 fi
18912
18913 # Extract the first word of "qmtest", so it can be a program name with args.
18914 set dummy qmtest; ac_word=$2
18915 echo "$as_me:$LINENO: checking for $ac_word" >&5
18916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18917 if test "${ac_cv_path_QMTEST+set}" = set; then
18918   echo $ECHO_N "(cached) $ECHO_C" >&6
18919 else
18920   case $QMTEST in
18921   [\\/]* | ?:[\\/]*)
18922   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18923   ;;
18924   *)
18925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18926 for as_dir in $PATH
18927 do
18928   IFS=$as_save_IFS
18929   test -z "$as_dir" && as_dir=.
18930   for ac_exec_ext in '' $ac_executable_extensions; do
18931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18932     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18934     break 2
18935   fi
18936 done
18937 done
18938
18939   ;;
18940 esac
18941 fi
18942 QMTEST=$ac_cv_path_QMTEST
18943
18944 if test -n "$QMTEST"; then
18945   echo "$as_me:$LINENO: result: $QMTEST" >&5
18946 echo "${ECHO_T}$QMTEST" >&6
18947 else
18948   echo "$as_me:$LINENO: result: no" >&5
18949 echo "${ECHO_T}no" >&6
18950 fi
18951
18952
18953 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18954 pymajor=`echo $pyversion | cut -d. -f1`
18955 pyminor=`echo $pyversion | cut -d. -f2`
18956
18957 if test "$pymajor" -ge "2"
18958 then
18959         if test "$pymajor" -eq "2"
18960         then
18961                 if test "$pyminor" -lt "2"
18962                 then
18963                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18964 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18965    { (exit 1); exit 1; }; }
18966                 fi
18967         fi
18968 else
18969         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18970 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18971    { (exit 1); exit 1; }; }
18972 fi
18973
18974
18975
18976
18977
18978 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18979 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18980 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18981   echo $ECHO_N "(cached) $ECHO_C" >&6
18982 else
18983   ac_check_lib_save_LIBS=$LIBS
18984 LIBS="-lelf  $LIBS"
18985 cat >conftest.$ac_ext <<_ACEOF
18986 #line $LINENO "configure"
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992
18993 /* Override any gcc2 internal prototype to avoid an error.  */
18994 #ifdef __cplusplus
18995 extern "C"
18996 #endif
18997 /* We use char because int might match the return type of a gcc2
18998    builtin and then its argument prototype would still apply.  */
18999 char elf_begin ();
19000 int
19001 main ()
19002 {
19003 elf_begin ();
19004   ;
19005   return 0;
19006 }
19007 _ACEOF
19008 rm -f conftest.$ac_objext conftest$ac_exeext
19009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19010   (eval $ac_link) 2>&5
19011   ac_status=$?
19012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); } &&
19014          { ac_try='test -s conftest$ac_exeext'
19015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016   (eval $ac_try) 2>&5
19017   ac_status=$?
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); }; }; then
19020   ac_cv_lib_elf_elf_begin=yes
19021 else
19022   echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19024
19025 ac_cv_lib_elf_elf_begin=no
19026 fi
19027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19028 LIBS=$ac_check_lib_save_LIBS
19029 fi
19030 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19031 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19032 if test $ac_cv_lib_elf_elf_begin = yes; then
19033   cat >>confdefs.h <<_ACEOF
19034 #define HAVE_LIBELF 1
19035 _ACEOF
19036
19037   LIBS="-lelf $LIBS"
19038
19039 fi
19040
19041
19042 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19043 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19044 if test "${ac_cv_search_dlopen+set}" = set; then
19045   echo $ECHO_N "(cached) $ECHO_C" >&6
19046 else
19047   ac_func_search_save_LIBS=$LIBS
19048 ac_cv_search_dlopen=no
19049 cat >conftest.$ac_ext <<_ACEOF
19050 #line $LINENO "configure"
19051 /* confdefs.h.  */
19052 _ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h.  */
19056
19057 /* Override any gcc2 internal prototype to avoid an error.  */
19058 #ifdef __cplusplus
19059 extern "C"
19060 #endif
19061 /* We use char because int might match the return type of a gcc2
19062    builtin and then its argument prototype would still apply.  */
19063 char dlopen ();
19064 int
19065 main ()
19066 {
19067 dlopen ();
19068   ;
19069   return 0;
19070 }
19071 _ACEOF
19072 rm -f conftest.$ac_objext conftest$ac_exeext
19073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19074   (eval $ac_link) 2>&5
19075   ac_status=$?
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); } &&
19078          { ac_try='test -s conftest$ac_exeext'
19079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080   (eval $ac_try) 2>&5
19081   ac_status=$?
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); }; }; then
19084   ac_cv_search_dlopen="none required"
19085 else
19086   echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19088
19089 fi
19090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19091 if test "$ac_cv_search_dlopen" = no; then
19092   for ac_lib in dl; do
19093     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19094     cat >conftest.$ac_ext <<_ACEOF
19095 #line $LINENO "configure"
19096 /* confdefs.h.  */
19097 _ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h.  */
19101
19102 /* Override any gcc2 internal prototype to avoid an error.  */
19103 #ifdef __cplusplus
19104 extern "C"
19105 #endif
19106 /* We use char because int might match the return type of a gcc2
19107    builtin and then its argument prototype would still apply.  */
19108 char dlopen ();
19109 int
19110 main ()
19111 {
19112 dlopen ();
19113   ;
19114   return 0;
19115 }
19116 _ACEOF
19117 rm -f conftest.$ac_objext conftest$ac_exeext
19118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19119   (eval $ac_link) 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); } &&
19123          { ac_try='test -s conftest$ac_exeext'
19124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125   (eval $ac_try) 2>&5
19126   ac_status=$?
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); }; }; then
19129   ac_cv_search_dlopen="-l$ac_lib"
19130 break
19131 else
19132   echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19134
19135 fi
19136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19137   done
19138 fi
19139 LIBS=$ac_func_search_save_LIBS
19140 fi
19141 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19142 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19143 if test "$ac_cv_search_dlopen" != no; then
19144   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19145
19146 else
19147   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19148 echo "$as_me: error: dlopen() required but not found" >&2;}
19149    { (exit 1); exit 1; }; }
19150 fi
19151
19152
19153 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19154 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19155 if test "${ac_cv_search_mallinfo+set}" = set; then
19156   echo $ECHO_N "(cached) $ECHO_C" >&6
19157 else
19158   ac_func_search_save_LIBS=$LIBS
19159 ac_cv_search_mallinfo=no
19160 cat >conftest.$ac_ext <<_ACEOF
19161 #line $LINENO "configure"
19162 /* confdefs.h.  */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h.  */
19167
19168 /* Override any gcc2 internal prototype to avoid an error.  */
19169 #ifdef __cplusplus
19170 extern "C"
19171 #endif
19172 /* We use char because int might match the return type of a gcc2
19173    builtin and then its argument prototype would still apply.  */
19174 char mallinfo ();
19175 int
19176 main ()
19177 {
19178 mallinfo ();
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19185   (eval $ac_link) 2>&5
19186   ac_status=$?
19187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188   (exit $ac_status); } &&
19189          { ac_try='test -s conftest$ac_exeext'
19190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191   (eval $ac_try) 2>&5
19192   ac_status=$?
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); }; }; then
19195   ac_cv_search_mallinfo="none required"
19196 else
19197   echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 fi
19201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19202 if test "$ac_cv_search_mallinfo" = no; then
19203   for ac_lib in malloc; do
19204     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19205     cat >conftest.$ac_ext <<_ACEOF
19206 #line $LINENO "configure"
19207 /* confdefs.h.  */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h.  */
19212
19213 /* Override any gcc2 internal prototype to avoid an error.  */
19214 #ifdef __cplusplus
19215 extern "C"
19216 #endif
19217 /* We use char because int might match the return type of a gcc2
19218    builtin and then its argument prototype would still apply.  */
19219 char mallinfo ();
19220 int
19221 main ()
19222 {
19223 mallinfo ();
19224   ;
19225   return 0;
19226 }
19227 _ACEOF
19228 rm -f conftest.$ac_objext conftest$ac_exeext
19229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19230   (eval $ac_link) 2>&5
19231   ac_status=$?
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } &&
19234          { ac_try='test -s conftest$ac_exeext'
19235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236   (eval $ac_try) 2>&5
19237   ac_status=$?
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); }; }; then
19240   ac_cv_search_mallinfo="-l$ac_lib"
19241 break
19242 else
19243   echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19245
19246 fi
19247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19248   done
19249 fi
19250 LIBS=$ac_func_search_save_LIBS
19251 fi
19252 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19253 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19254 if test "$ac_cv_search_mallinfo" != no; then
19255   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19256   cat >>confdefs.h <<\_ACEOF
19257 #define HAVE_MALLINFO 1
19258 _ACEOF
19259
19260 fi
19261
19262
19263
19264 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19265 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19266 if test "${ac_cv_header_stdc+set}" = set; then
19267   echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269   cat >conftest.$ac_ext <<_ACEOF
19270 #line $LINENO "configure"
19271 /* confdefs.h.  */
19272 _ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h.  */
19276 #include <stdlib.h>
19277 #include <stdarg.h>
19278 #include <string.h>
19279 #include <float.h>
19280
19281 int
19282 main ()
19283 {
19284
19285   ;
19286   return 0;
19287 }
19288 _ACEOF
19289 rm -f conftest.$ac_objext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19291   (eval $ac_compile) 2>&5
19292   ac_status=$?
19293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); } &&
19295          { ac_try='test -s conftest.$ac_objext'
19296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297   (eval $ac_try) 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }; }; then
19301   ac_cv_header_stdc=yes
19302 else
19303   echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19305
19306 ac_cv_header_stdc=no
19307 fi
19308 rm -f conftest.$ac_objext conftest.$ac_ext
19309
19310 if test $ac_cv_header_stdc = yes; then
19311   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19312   cat >conftest.$ac_ext <<_ACEOF
19313 #line $LINENO "configure"
19314 /* confdefs.h.  */
19315 _ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h.  */
19319 #include <string.h>
19320
19321 _ACEOF
19322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19323   $EGREP "memchr" >/dev/null 2>&1; then
19324   :
19325 else
19326   ac_cv_header_stdc=no
19327 fi
19328 rm -f conftest*
19329
19330 fi
19331
19332 if test $ac_cv_header_stdc = yes; then
19333   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19334   cat >conftest.$ac_ext <<_ACEOF
19335 #line $LINENO "configure"
19336 /* confdefs.h.  */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h.  */
19341 #include <stdlib.h>
19342
19343 _ACEOF
19344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19345   $EGREP "free" >/dev/null 2>&1; then
19346   :
19347 else
19348   ac_cv_header_stdc=no
19349 fi
19350 rm -f conftest*
19351
19352 fi
19353
19354 if test $ac_cv_header_stdc = yes; then
19355   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19356   if test "$cross_compiling" = yes; then
19357   :
19358 else
19359   cat >conftest.$ac_ext <<_ACEOF
19360 #line $LINENO "configure"
19361 /* confdefs.h.  */
19362 _ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h.  */
19366 #include <ctype.h>
19367 #if ((' ' & 0x0FF) == 0x020)
19368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19370 #else
19371 # define ISLOWER(c) \
19372                    (('a' <= (c) && (c) <= 'i') \
19373                      || ('j' <= (c) && (c) <= 'r') \
19374                      || ('s' <= (c) && (c) <= 'z'))
19375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19376 #endif
19377
19378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19379 int
19380 main ()
19381 {
19382   int i;
19383   for (i = 0; i < 256; i++)
19384     if (XOR (islower (i), ISLOWER (i))
19385         || toupper (i) != TOUPPER (i))
19386       exit(2);
19387   exit (0);
19388 }
19389 _ACEOF
19390 rm -f conftest$ac_exeext
19391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19392   (eval $ac_link) 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397   (eval $ac_try) 2>&5
19398   ac_status=$?
19399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); }; }; then
19401   :
19402 else
19403   echo "$as_me: program exited with status $ac_status" >&5
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19406
19407 ( exit $ac_status )
19408 ac_cv_header_stdc=no
19409 fi
19410 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19411 fi
19412 fi
19413 fi
19414 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19415 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19416 if test $ac_cv_header_stdc = yes; then
19417
19418 cat >>confdefs.h <<\_ACEOF
19419 #define STDC_HEADERS 1
19420 _ACEOF
19421
19422 fi
19423
19424 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19425 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19426 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19427   echo $ECHO_N "(cached) $ECHO_C" >&6
19428 else
19429   cat >conftest.$ac_ext <<_ACEOF
19430 #line $LINENO "configure"
19431 /* confdefs.h.  */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h.  */
19436 #include <sys/types.h>
19437 #include <sys/wait.h>
19438 #ifndef WEXITSTATUS
19439 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19440 #endif
19441 #ifndef WIFEXITED
19442 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19443 #endif
19444
19445 int
19446 main ()
19447 {
19448   int s;
19449   wait (&s);
19450   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19451   ;
19452   return 0;
19453 }
19454 _ACEOF
19455 rm -f conftest.$ac_objext
19456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457   (eval $ac_compile) 2>&5
19458   ac_status=$?
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); } &&
19461          { ac_try='test -s conftest.$ac_objext'
19462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463   (eval $ac_try) 2>&5
19464   ac_status=$?
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); }; }; then
19467   ac_cv_header_sys_wait_h=yes
19468 else
19469   echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19471
19472 ac_cv_header_sys_wait_h=no
19473 fi
19474 rm -f conftest.$ac_objext conftest.$ac_ext
19475 fi
19476 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19477 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19478 if test $ac_cv_header_sys_wait_h = yes; then
19479
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE_SYS_WAIT_H 1
19482 _ACEOF
19483
19484 fi
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19496 do
19497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19499   echo "$as_me:$LINENO: checking for $ac_header" >&5
19500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19502   echo $ECHO_N "(cached) $ECHO_C" >&6
19503 fi
19504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19506 else
19507   # Is the header compilable?
19508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19510 cat >conftest.$ac_ext <<_ACEOF
19511 #line $LINENO "configure"
19512 /* confdefs.h.  */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h.  */
19517 $ac_includes_default
19518 #include <$ac_header>
19519 _ACEOF
19520 rm -f conftest.$ac_objext
19521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19522   (eval $ac_compile) 2>&5
19523   ac_status=$?
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); } &&
19526          { ac_try='test -s conftest.$ac_objext'
19527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528   (eval $ac_try) 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; }; then
19532   ac_header_compiler=yes
19533 else
19534   echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19536
19537 ac_header_compiler=no
19538 fi
19539 rm -f conftest.$ac_objext conftest.$ac_ext
19540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19541 echo "${ECHO_T}$ac_header_compiler" >&6
19542
19543 # Is the header present?
19544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19546 cat >conftest.$ac_ext <<_ACEOF
19547 #line $LINENO "configure"
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553 #include <$ac_header>
19554 _ACEOF
19555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19557   ac_status=$?
19558   grep -v '^ *+' conftest.er1 >conftest.err
19559   rm -f conftest.er1
19560   cat conftest.err >&5
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); } >/dev/null; then
19563   if test -s conftest.err; then
19564     ac_cpp_err=$ac_c_preproc_warn_flag
19565   else
19566     ac_cpp_err=
19567   fi
19568 else
19569   ac_cpp_err=yes
19570 fi
19571 if test -z "$ac_cpp_err"; then
19572   ac_header_preproc=yes
19573 else
19574   echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19576
19577   ac_header_preproc=no
19578 fi
19579 rm -f conftest.err conftest.$ac_ext
19580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19581 echo "${ECHO_T}$ac_header_preproc" >&6
19582
19583 # So?  What about this header?
19584 case $ac_header_compiler:$ac_header_preproc in
19585   yes:no )
19586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19590     (
19591       cat <<\_ASBOX
19592 ## ------------------------------------ ##
19593 ## Report this to bug-autoconf@gnu.org. ##
19594 ## ------------------------------------ ##
19595 _ASBOX
19596     ) |
19597       sed "s/^/$as_me: WARNING:     /" >&2
19598     ;;
19599   no:yes )
19600     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19602     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19606     (
19607       cat <<\_ASBOX
19608 ## ------------------------------------ ##
19609 ## Report this to bug-autoconf@gnu.org. ##
19610 ## ------------------------------------ ##
19611 _ASBOX
19612     ) |
19613       sed "s/^/$as_me: WARNING:     /" >&2
19614     ;;
19615 esac
19616 echo "$as_me:$LINENO: checking for $ac_header" >&5
19617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19619   echo $ECHO_N "(cached) $ECHO_C" >&6
19620 else
19621   eval "$as_ac_Header=$ac_header_preproc"
19622 fi
19623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19625
19626 fi
19627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19628   cat >>confdefs.h <<_ACEOF
19629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19630 _ACEOF
19631
19632 fi
19633
19634 done
19635
19636
19637
19638
19639
19640
19641 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19642 do
19643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19645   echo "$as_me:$LINENO: checking for $ac_header" >&5
19646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19648   echo $ECHO_N "(cached) $ECHO_C" >&6
19649 fi
19650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19652 else
19653   # Is the header compilable?
19654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19656 cat >conftest.$ac_ext <<_ACEOF
19657 #line $LINENO "configure"
19658 /* confdefs.h.  */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h.  */
19663 $ac_includes_default
19664 #include <$ac_header>
19665 _ACEOF
19666 rm -f conftest.$ac_objext
19667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19668   (eval $ac_compile) 2>&5
19669   ac_status=$?
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); } &&
19672          { ac_try='test -s conftest.$ac_objext'
19673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674   (eval $ac_try) 2>&5
19675   ac_status=$?
19676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677   (exit $ac_status); }; }; then
19678   ac_header_compiler=yes
19679 else
19680   echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.$ac_ext >&5
19682
19683 ac_header_compiler=no
19684 fi
19685 rm -f conftest.$ac_objext conftest.$ac_ext
19686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19687 echo "${ECHO_T}$ac_header_compiler" >&6
19688
19689 # Is the header present?
19690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19692 cat >conftest.$ac_ext <<_ACEOF
19693 #line $LINENO "configure"
19694 /* confdefs.h.  */
19695 _ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h.  */
19699 #include <$ac_header>
19700 _ACEOF
19701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19702   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19703   ac_status=$?
19704   grep -v '^ *+' conftest.er1 >conftest.err
19705   rm -f conftest.er1
19706   cat conftest.err >&5
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); } >/dev/null; then
19709   if test -s conftest.err; then
19710     ac_cpp_err=$ac_c_preproc_warn_flag
19711   else
19712     ac_cpp_err=
19713   fi
19714 else
19715   ac_cpp_err=yes
19716 fi
19717 if test -z "$ac_cpp_err"; then
19718   ac_header_preproc=yes
19719 else
19720   echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19722
19723   ac_header_preproc=no
19724 fi
19725 rm -f conftest.err conftest.$ac_ext
19726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19727 echo "${ECHO_T}$ac_header_preproc" >&6
19728
19729 # So?  What about this header?
19730 case $ac_header_compiler:$ac_header_preproc in
19731   yes:no )
19732     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19736     (
19737       cat <<\_ASBOX
19738 ## ------------------------------------ ##
19739 ## Report this to bug-autoconf@gnu.org. ##
19740 ## ------------------------------------ ##
19741 _ASBOX
19742     ) |
19743       sed "s/^/$as_me: WARNING:     /" >&2
19744     ;;
19745   no:yes )
19746     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19748     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19752     (
19753       cat <<\_ASBOX
19754 ## ------------------------------------ ##
19755 ## Report this to bug-autoconf@gnu.org. ##
19756 ## ------------------------------------ ##
19757 _ASBOX
19758     ) |
19759       sed "s/^/$as_me: WARNING:     /" >&2
19760     ;;
19761 esac
19762 echo "$as_me:$LINENO: checking for $ac_header" >&5
19763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19765   echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767   eval "$as_ac_Header=$ac_header_preproc"
19768 fi
19769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19771
19772 fi
19773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19774   cat >>confdefs.h <<_ACEOF
19775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19776 _ACEOF
19777
19778 fi
19779
19780 done
19781
19782
19783
19784
19785 for ac_header in dlfcn.h link.h
19786 do
19787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19789   echo "$as_me:$LINENO: checking for $ac_header" >&5
19790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19792   echo $ECHO_N "(cached) $ECHO_C" >&6
19793 fi
19794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19796 else
19797   # Is the header compilable?
19798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19800 cat >conftest.$ac_ext <<_ACEOF
19801 #line $LINENO "configure"
19802 /* confdefs.h.  */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h.  */
19807 $ac_includes_default
19808 #include <$ac_header>
19809 _ACEOF
19810 rm -f conftest.$ac_objext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19812   (eval $ac_compile) 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); } &&
19816          { ac_try='test -s conftest.$ac_objext'
19817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818   (eval $ac_try) 2>&5
19819   ac_status=$?
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); }; }; then
19822   ac_header_compiler=yes
19823 else
19824   echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827 ac_header_compiler=no
19828 fi
19829 rm -f conftest.$ac_objext conftest.$ac_ext
19830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19831 echo "${ECHO_T}$ac_header_compiler" >&6
19832
19833 # Is the header present?
19834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19836 cat >conftest.$ac_ext <<_ACEOF
19837 #line $LINENO "configure"
19838 /* confdefs.h.  */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h.  */
19843 #include <$ac_header>
19844 _ACEOF
19845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } >/dev/null; then
19853   if test -s conftest.err; then
19854     ac_cpp_err=$ac_c_preproc_warn_flag
19855   else
19856     ac_cpp_err=
19857   fi
19858 else
19859   ac_cpp_err=yes
19860 fi
19861 if test -z "$ac_cpp_err"; then
19862   ac_header_preproc=yes
19863 else
19864   echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867   ac_header_preproc=no
19868 fi
19869 rm -f conftest.err conftest.$ac_ext
19870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19871 echo "${ECHO_T}$ac_header_preproc" >&6
19872
19873 # So?  What about this header?
19874 case $ac_header_compiler:$ac_header_preproc in
19875   yes:no )
19876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19880     (
19881       cat <<\_ASBOX
19882 ## ------------------------------------ ##
19883 ## Report this to bug-autoconf@gnu.org. ##
19884 ## ------------------------------------ ##
19885 _ASBOX
19886     ) |
19887       sed "s/^/$as_me: WARNING:     /" >&2
19888     ;;
19889   no:yes )
19890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19892     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19896     (
19897       cat <<\_ASBOX
19898 ## ------------------------------------ ##
19899 ## Report this to bug-autoconf@gnu.org. ##
19900 ## ------------------------------------ ##
19901 _ASBOX
19902     ) |
19903       sed "s/^/$as_me: WARNING:     /" >&2
19904     ;;
19905 esac
19906 echo "$as_me:$LINENO: checking for $ac_header" >&5
19907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19909   echo $ECHO_N "(cached) $ECHO_C" >&6
19910 else
19911   eval "$as_ac_Header=$ac_header_preproc"
19912 fi
19913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19915
19916 fi
19917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19918   cat >>confdefs.h <<_ACEOF
19919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19920 _ACEOF
19921
19922 fi
19923
19924 done
19925
19926
19927
19928 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19929 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19930 if test "${ac_cv_c_const+set}" = set; then
19931   echo $ECHO_N "(cached) $ECHO_C" >&6
19932 else
19933   cat >conftest.$ac_ext <<_ACEOF
19934 #line $LINENO "configure"
19935 /* confdefs.h.  */
19936 _ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h.  */
19940
19941 int
19942 main ()
19943 {
19944 /* FIXME: Include the comments suggested by Paul. */
19945 #ifndef __cplusplus
19946   /* Ultrix mips cc rejects this.  */
19947   typedef int charset[2];
19948   const charset x;
19949   /* SunOS 4.1.1 cc rejects this.  */
19950   char const *const *ccp;
19951   char **p;
19952   /* NEC SVR4.0.2 mips cc rejects this.  */
19953   struct point {int x, y;};
19954   static struct point const zero = {0,0};
19955   /* AIX XL C 1.02.0.0 rejects this.
19956      It does not let you subtract one const X* pointer from another in
19957      an arm of an if-expression whose if-part is not a constant
19958      expression */
19959   const char *g = "string";
19960   ccp = &g + (g ? g-g : 0);
19961   /* HPUX 7.0 cc rejects these. */
19962   ++ccp;
19963   p = (char**) ccp;
19964   ccp = (char const *const *) p;
19965   { /* SCO 3.2v4 cc rejects this.  */
19966     char *t;
19967     char const *s = 0 ? (char *) 0 : (char const *) 0;
19968
19969     *t++ = 0;
19970   }
19971   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19972     int x[] = {25, 17};
19973     const int *foo = &x[0];
19974     ++foo;
19975   }
19976   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19977     typedef const int *iptr;
19978     iptr p = 0;
19979     ++p;
19980   }
19981   { /* AIX XL C 1.02.0.0 rejects this saying
19982        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19983     struct s { int j; const int *ap[3]; };
19984     struct s *b; b->j = 5;
19985   }
19986   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19987     const int foo = 10;
19988   }
19989 #endif
19990
19991   ;
19992   return 0;
19993 }
19994 _ACEOF
19995 rm -f conftest.$ac_objext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997   (eval $ac_compile) 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); } &&
20001          { ac_try='test -s conftest.$ac_objext'
20002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003   (eval $ac_try) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; }; then
20007   ac_cv_c_const=yes
20008 else
20009   echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012 ac_cv_c_const=no
20013 fi
20014 rm -f conftest.$ac_objext conftest.$ac_ext
20015 fi
20016 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20017 echo "${ECHO_T}$ac_cv_c_const" >&6
20018 if test $ac_cv_c_const = no; then
20019
20020 cat >>confdefs.h <<\_ACEOF
20021 #define const
20022 _ACEOF
20023
20024 fi
20025
20026 echo "$as_me:$LINENO: checking for inline" >&5
20027 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20028 if test "${ac_cv_c_inline+set}" = set; then
20029   echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20031   ac_cv_c_inline=no
20032 for ac_kw in inline __inline__ __inline; do
20033   cat >conftest.$ac_ext <<_ACEOF
20034 #line $LINENO "configure"
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040 #ifndef __cplusplus
20041 typedef int foo_t;
20042 static $ac_kw foo_t static_foo () {return 0; }
20043 $ac_kw foo_t foo () {return 0; }
20044 #endif
20045
20046 _ACEOF
20047 rm -f conftest.$ac_objext
20048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20049   (eval $ac_compile) 2>&5
20050   ac_status=$?
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); } &&
20053          { ac_try='test -s conftest.$ac_objext'
20054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055   (eval $ac_try) 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); }; }; then
20059   ac_cv_c_inline=$ac_kw; break
20060 else
20061   echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064 fi
20065 rm -f conftest.$ac_objext conftest.$ac_ext
20066 done
20067
20068 fi
20069 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20070 echo "${ECHO_T}$ac_cv_c_inline" >&6
20071 case $ac_cv_c_inline in
20072   inline | yes) ;;
20073   no)
20074 cat >>confdefs.h <<\_ACEOF
20075 #define inline
20076 _ACEOF
20077  ;;
20078   *)  cat >>confdefs.h <<_ACEOF
20079 #define inline $ac_cv_c_inline
20080 _ACEOF
20081  ;;
20082 esac
20083
20084
20085 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20086 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20087 if test "${ac_cv_c_bigendian+set}" = set; then
20088   echo $ECHO_N "(cached) $ECHO_C" >&6
20089 else
20090   # See if sys/param.h defines the BYTE_ORDER macro.
20091 cat >conftest.$ac_ext <<_ACEOF
20092 #line $LINENO "configure"
20093 /* confdefs.h.  */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h.  */
20098 #include <sys/types.h>
20099 #include <sys/param.h>
20100
20101 int
20102 main ()
20103 {
20104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20105  bogus endian macros
20106 #endif
20107
20108   ;
20109   return 0;
20110 }
20111 _ACEOF
20112 rm -f conftest.$ac_objext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20114   (eval $ac_compile) 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); } &&
20118          { ac_try='test -s conftest.$ac_objext'
20119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120   (eval $ac_try) 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   # It does; now see whether it defined to BIG_ENDIAN or not.
20125 cat >conftest.$ac_ext <<_ACEOF
20126 #line $LINENO "configure"
20127 /* confdefs.h.  */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h.  */
20132 #include <sys/types.h>
20133 #include <sys/param.h>
20134
20135 int
20136 main ()
20137 {
20138 #if BYTE_ORDER != BIG_ENDIAN
20139  not big endian
20140 #endif
20141
20142   ;
20143   return 0;
20144 }
20145 _ACEOF
20146 rm -f conftest.$ac_objext
20147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20148   (eval $ac_compile) 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); } &&
20152          { ac_try='test -s conftest.$ac_objext'
20153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154   (eval $ac_try) 2>&5
20155   ac_status=$?
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); }; }; then
20158   ac_cv_c_bigendian=yes
20159 else
20160   echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163 ac_cv_c_bigendian=no
20164 fi
20165 rm -f conftest.$ac_objext conftest.$ac_ext
20166 else
20167   echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20169
20170 # It does not; compile a test program.
20171 if test "$cross_compiling" = yes; then
20172   # try to guess the endianness by grepping values into an object file
20173   ac_cv_c_bigendian=unknown
20174   cat >conftest.$ac_ext <<_ACEOF
20175 #line $LINENO "configure"
20176 /* confdefs.h.  */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h.  */
20181 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20182 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20183 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20184 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20185 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20186 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20187 int
20188 main ()
20189 {
20190  _ascii (); _ebcdic ();
20191   ;
20192   return 0;
20193 }
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197   (eval $ac_compile) 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); } &&
20201          { ac_try='test -s conftest.$ac_objext'
20202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203   (eval $ac_try) 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); }; }; then
20207   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20208   ac_cv_c_bigendian=yes
20209 fi
20210 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20211   if test "$ac_cv_c_bigendian" = unknown; then
20212     ac_cv_c_bigendian=no
20213   else
20214     # finding both strings is unlikely to happen, but who knows?
20215     ac_cv_c_bigendian=unknown
20216   fi
20217 fi
20218 else
20219   echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20221
20222 fi
20223 rm -f conftest.$ac_objext conftest.$ac_ext
20224 else
20225   cat >conftest.$ac_ext <<_ACEOF
20226 #line $LINENO "configure"
20227 /* confdefs.h.  */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h.  */
20232 int
20233 main ()
20234 {
20235   /* Are we little or big endian?  From Harbison&Steele.  */
20236   union
20237   {
20238     long l;
20239     char c[sizeof (long)];
20240   } u;
20241   u.l = 1;
20242   exit (u.c[sizeof (long) - 1] == 1);
20243 }
20244 _ACEOF
20245 rm -f conftest$ac_exeext
20246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20247   (eval $ac_link) 2>&5
20248   ac_status=$?
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252   (eval $ac_try) 2>&5
20253   ac_status=$?
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); }; }; then
20256   ac_cv_c_bigendian=no
20257 else
20258   echo "$as_me: program exited with status $ac_status" >&5
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20261
20262 ( exit $ac_status )
20263 ac_cv_c_bigendian=yes
20264 fi
20265 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20266 fi
20267 fi
20268 rm -f conftest.$ac_objext conftest.$ac_ext
20269 fi
20270 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20271 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20272 case $ac_cv_c_bigendian in
20273   yes)
20274     cat >>confdefs.h <<\_ACEOF
20275 #define ENDIAN_BIG 1
20276 _ACEOF
20277  ;;
20278   no)
20279     cat >>confdefs.h <<\_ACEOF
20280 #define ENDIAN_LITTLE 1
20281 _ACEOF
20282  ;;
20283   *)
20284     { { echo "$as_me:$LINENO: error: unknown endianness
20285 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20286 echo "$as_me: error: unknown endianness
20287 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20288    { (exit 1); exit 1; }; } ;;
20289 esac
20290
20291
20292 echo "$as_me:$LINENO: checking for pid_t" >&5
20293 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20294 if test "${ac_cv_type_pid_t+set}" = set; then
20295   echo $ECHO_N "(cached) $ECHO_C" >&6
20296 else
20297   cat >conftest.$ac_ext <<_ACEOF
20298 #line $LINENO "configure"
20299 /* confdefs.h.  */
20300 _ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h.  */
20304 $ac_includes_default
20305 int
20306 main ()
20307 {
20308 if ((pid_t *) 0)
20309   return 0;
20310 if (sizeof (pid_t))
20311   return 0;
20312   ;
20313   return 0;
20314 }
20315 _ACEOF
20316 rm -f conftest.$ac_objext
20317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20318   (eval $ac_compile) 2>&5
20319   ac_status=$?
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); } &&
20322          { ac_try='test -s conftest.$ac_objext'
20323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324   (eval $ac_try) 2>&5
20325   ac_status=$?
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); }; }; then
20328   ac_cv_type_pid_t=yes
20329 else
20330   echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333 ac_cv_type_pid_t=no
20334 fi
20335 rm -f conftest.$ac_objext conftest.$ac_ext
20336 fi
20337 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20338 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20339 if test $ac_cv_type_pid_t = yes; then
20340   :
20341 else
20342
20343 cat >>confdefs.h <<_ACEOF
20344 #define pid_t int
20345 _ACEOF
20346
20347 fi
20348
20349 echo "$as_me:$LINENO: checking for size_t" >&5
20350 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20351 if test "${ac_cv_type_size_t+set}" = set; then
20352   echo $ECHO_N "(cached) $ECHO_C" >&6
20353 else
20354   cat >conftest.$ac_ext <<_ACEOF
20355 #line $LINENO "configure"
20356 /* confdefs.h.  */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h.  */
20361 $ac_includes_default
20362 int
20363 main ()
20364 {
20365 if ((size_t *) 0)
20366   return 0;
20367 if (sizeof (size_t))
20368   return 0;
20369   ;
20370   return 0;
20371 }
20372 _ACEOF
20373 rm -f conftest.$ac_objext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20375   (eval $ac_compile) 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); } &&
20379          { ac_try='test -s conftest.$ac_objext'
20380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381   (eval $ac_try) 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; }; then
20385   ac_cv_type_size_t=yes
20386 else
20387   echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20389
20390 ac_cv_type_size_t=no
20391 fi
20392 rm -f conftest.$ac_objext conftest.$ac_ext
20393 fi
20394 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20395 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20396 if test $ac_cv_type_size_t = yes; then
20397   :
20398 else
20399
20400 cat >>confdefs.h <<_ACEOF
20401 #define size_t unsigned
20402 _ACEOF
20403
20404 fi
20405
20406 echo "$as_me:$LINENO: checking for int64_t" >&5
20407 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20408 if test "${ac_cv_type_int64_t+set}" = set; then
20409   echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411   cat >conftest.$ac_ext <<_ACEOF
20412 #line $LINENO "configure"
20413 /* confdefs.h.  */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h.  */
20418 $ac_includes_default
20419 int
20420 main ()
20421 {
20422 if ((int64_t *) 0)
20423   return 0;
20424 if (sizeof (int64_t))
20425   return 0;
20426   ;
20427   return 0;
20428 }
20429 _ACEOF
20430 rm -f conftest.$ac_objext
20431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20432   (eval $ac_compile) 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } &&
20436          { ac_try='test -s conftest.$ac_objext'
20437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438   (eval $ac_try) 2>&5
20439   ac_status=$?
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); }; }; then
20442   ac_cv_type_int64_t=yes
20443 else
20444   echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20446
20447 ac_cv_type_int64_t=no
20448 fi
20449 rm -f conftest.$ac_objext conftest.$ac_ext
20450 fi
20451 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20452 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20453 if test $ac_cv_type_int64_t = yes; then
20454
20455 cat >>confdefs.h <<_ACEOF
20456 #define HAVE_INT64_T 1
20457 _ACEOF
20458
20459
20460 else
20461   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20462 echo "$as_me: error: Type int64_t required but not found" >&2;}
20463    { (exit 1); exit 1; }; }
20464 fi
20465
20466 echo "$as_me:$LINENO: checking for uint64_t" >&5
20467 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20468 if test "${ac_cv_type_uint64_t+set}" = set; then
20469   echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
20471   cat >conftest.$ac_ext <<_ACEOF
20472 #line $LINENO "configure"
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478 $ac_includes_default
20479 int
20480 main ()
20481 {
20482 if ((uint64_t *) 0)
20483   return 0;
20484 if (sizeof (uint64_t))
20485   return 0;
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 rm -f conftest.$ac_objext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20492   (eval $ac_compile) 2>&5
20493   ac_status=$?
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); } &&
20496          { ac_try='test -s conftest.$ac_objext'
20497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498   (eval $ac_try) 2>&5
20499   ac_status=$?
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); }; }; then
20502   ac_cv_type_uint64_t=yes
20503 else
20504   echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20506
20507 ac_cv_type_uint64_t=no
20508 fi
20509 rm -f conftest.$ac_objext conftest.$ac_ext
20510 fi
20511 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20512 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20513 if test $ac_cv_type_uint64_t = yes; then
20514
20515 cat >>confdefs.h <<_ACEOF
20516 #define HAVE_UINT64_T 1
20517 _ACEOF
20518
20519
20520 else
20521   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20522 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20523    { (exit 1); exit 1; }; }
20524 fi
20525
20526 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20527 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20528 if test "${ac_cv_header_time+set}" = set; then
20529   echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531   cat >conftest.$ac_ext <<_ACEOF
20532 #line $LINENO "configure"
20533 /* confdefs.h.  */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h.  */
20538 #include <sys/types.h>
20539 #include <sys/time.h>
20540 #include <time.h>
20541
20542 int
20543 main ()
20544 {
20545 if ((struct tm *) 0)
20546 return 0;
20547   ;
20548   return 0;
20549 }
20550 _ACEOF
20551 rm -f conftest.$ac_objext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20553   (eval $ac_compile) 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); } &&
20557          { ac_try='test -s conftest.$ac_objext'
20558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559   (eval $ac_try) 2>&5
20560   ac_status=$?
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); }; }; then
20563   ac_cv_header_time=yes
20564 else
20565   echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20567
20568 ac_cv_header_time=no
20569 fi
20570 rm -f conftest.$ac_objext conftest.$ac_ext
20571 fi
20572 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20573 echo "${ECHO_T}$ac_cv_header_time" >&6
20574 if test $ac_cv_header_time = yes; then
20575
20576 cat >>confdefs.h <<\_ACEOF
20577 #define TIME_WITH_SYS_TIME 1
20578 _ACEOF
20579
20580 fi
20581
20582 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20583 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20584 if test "${ac_cv_struct_tm+set}" = set; then
20585   echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587   cat >conftest.$ac_ext <<_ACEOF
20588 #line $LINENO "configure"
20589 /* confdefs.h.  */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h.  */
20594 #include <sys/types.h>
20595 #include <time.h>
20596
20597 int
20598 main ()
20599 {
20600 struct tm *tp; tp->tm_sec;
20601   ;
20602   return 0;
20603 }
20604 _ACEOF
20605 rm -f conftest.$ac_objext
20606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20607   (eval $ac_compile) 2>&5
20608   ac_status=$?
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); } &&
20611          { ac_try='test -s conftest.$ac_objext'
20612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613   (eval $ac_try) 2>&5
20614   ac_status=$?
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); }; }; then
20617   ac_cv_struct_tm=time.h
20618 else
20619   echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622 ac_cv_struct_tm=sys/time.h
20623 fi
20624 rm -f conftest.$ac_objext conftest.$ac_ext
20625 fi
20626 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20627 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20628 if test $ac_cv_struct_tm = sys/time.h; then
20629
20630 cat >>confdefs.h <<\_ACEOF
20631 #define TM_IN_SYS_TIME 1
20632 _ACEOF
20633
20634 fi
20635
20636
20637 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20638 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20639 if test "${ac_cv_cxx_namespaces+set}" = set; then
20640   echo $ECHO_N "(cached) $ECHO_C" >&6
20641 else
20642
20643
20644  ac_ext=cc
20645 ac_cpp='$CXXCPP $CPPFLAGS'
20646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20649
20650  cat >conftest.$ac_ext <<_ACEOF
20651 #line $LINENO "configure"
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657 namespace Outer { namespace Inner { int i = 0; }}
20658 int
20659 main ()
20660 {
20661 using namespace Outer::Inner; return i;
20662   ;
20663   return 0;
20664 }
20665 _ACEOF
20666 rm -f conftest.$ac_objext
20667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20668   (eval $ac_compile) 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); } &&
20672          { ac_try='test -s conftest.$ac_objext'
20673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674   (eval $ac_try) 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); }; }; then
20678   ac_cv_cxx_namespaces=yes
20679 else
20680   echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683 ac_cv_cxx_namespaces=no
20684 fi
20685 rm -f conftest.$ac_objext conftest.$ac_ext
20686  ac_ext=c
20687 ac_cpp='$CPP $CPPFLAGS'
20688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20691
20692
20693 fi
20694 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20695 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20696 if test "$ac_cv_cxx_namespaces" = yes; then
20697
20698 cat >>confdefs.h <<\_ACEOF
20699 #define HAVE_NAMESPACES
20700 _ACEOF
20701
20702 fi
20703
20704 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20705 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20706 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20707   echo $ECHO_N "(cached) $ECHO_C" >&6
20708 else
20709
20710
20711
20712   ac_ext=cc
20713 ac_cpp='$CXXCPP $CPPFLAGS'
20714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20717
20718   cat >conftest.$ac_ext <<_ACEOF
20719 #line $LINENO "configure"
20720 /* confdefs.h.  */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h.  */
20725 #include <ext/hash_map>
20726 #ifdef HAVE_NAMESPACES
20727 using namespace std;
20728 #endif
20729 int
20730 main ()
20731 {
20732 hash_map<int, int> t; return 0;
20733   ;
20734   return 0;
20735 }
20736 _ACEOF
20737 rm -f conftest.$ac_objext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20739   (eval $ac_compile) 2>&5
20740   ac_status=$?
20741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742   (exit $ac_status); } &&
20743          { ac_try='test -s conftest.$ac_objext'
20744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745   (eval $ac_try) 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); }; }; then
20749   ac_cv_cxx_have_ext_hash_map=std
20750 else
20751   echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20753
20754 ac_cv_cxx_have_ext_hash_map=no
20755 fi
20756 rm -f conftest.$ac_objext conftest.$ac_ext
20757   cat >conftest.$ac_ext <<_ACEOF
20758 #line $LINENO "configure"
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764 #include <ext/hash_map>
20765 #ifdef HAVE_NAMESPACES
20766 using namespace __gnu_cxx;
20767 #endif
20768 int
20769 main ()
20770 {
20771 hash_map<int, int> t; return 0;
20772   ;
20773   return 0;
20774 }
20775 _ACEOF
20776 rm -f conftest.$ac_objext
20777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20778   (eval $ac_compile) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); } &&
20782          { ac_try='test -s conftest.$ac_objext'
20783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784   (eval $ac_try) 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; }; then
20788   ac_cv_cxx_have_ext_hash_map=gnu
20789 else
20790   echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 ac_cv_cxx_have_ext_hash_map=no
20794 fi
20795 rm -f conftest.$ac_objext conftest.$ac_ext
20796   ac_ext=c
20797 ac_cpp='$CPP $CPPFLAGS'
20798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20801
20802
20803 fi
20804 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20805 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20806 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20807
20808 cat >>confdefs.h <<\_ACEOF
20809 #define HAVE_STD_EXT_HASH_MAP
20810 _ACEOF
20811
20812 fi
20813 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20814
20815 cat >>confdefs.h <<\_ACEOF
20816 #define HAVE_GNU_EXT_HASH_MAP
20817 _ACEOF
20818
20819 fi
20820
20821 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20822 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20823 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20824   echo $ECHO_N "(cached) $ECHO_C" >&6
20825 else
20826
20827
20828
20829   ac_ext=cc
20830 ac_cpp='$CXXCPP $CPPFLAGS'
20831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20834
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_set>
20843 #ifdef HAVE_NAMESPACES
20844 using namespace std;
20845 #endif
20846 int
20847 main ()
20848 {
20849 hash_set<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_set=std
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_set=no
20872 fi
20873 rm -f conftest.$ac_objext conftest.$ac_ext
20874   cat >conftest.$ac_ext <<_ACEOF
20875 #line $LINENO "configure"
20876 /* confdefs.h.  */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h.  */
20881 #include <ext/hash_set>
20882 #ifdef HAVE_NAMESPACES
20883 using namespace __gnu_cxx;
20884 #endif
20885 int
20886 main ()
20887 {
20888 hash_set<int> t; return 0;
20889   ;
20890   return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext
20894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20895   (eval $ac_compile) 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); } &&
20899          { ac_try='test -s conftest.$ac_objext'
20900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901   (eval $ac_try) 2>&5
20902   ac_status=$?
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); }; }; then
20905   ac_cv_cxx_have_ext_hash_set=gnu
20906 else
20907   echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20909
20910 ac_cv_cxx_have_ext_hash_set=no
20911 fi
20912 rm -f conftest.$ac_objext conftest.$ac_ext
20913   ac_ext=c
20914 ac_cpp='$CPP $CPPFLAGS'
20915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20918
20919
20920 fi
20921 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20922 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20923 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20924
20925 cat >>confdefs.h <<\_ACEOF
20926 #define HAVE_STD_EXT_HASH_SET
20927 _ACEOF
20928
20929 fi
20930 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20931
20932 cat >>confdefs.h <<\_ACEOF
20933 #define HAVE_GNU_EXT_HASH_SET
20934 _ACEOF
20935
20936 fi
20937
20938 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20939 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20940 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943
20944
20945
20946   ac_ext=cc
20947 ac_cpp='$CXXCPP $CPPFLAGS'
20948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20951
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/slist>
20960 #ifdef HAVE_NAMESPACES
20961 using namespace std;
20962 #endif
20963 int
20964 main ()
20965 {
20966 slist<int> s; 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_slist=std
20984 else
20985   echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988 ac_cv_cxx_have_ext_slist=no
20989 fi
20990 rm -f conftest.$ac_objext conftest.$ac_ext
20991   cat >conftest.$ac_ext <<_ACEOF
20992 #line $LINENO "configure"
20993 /* confdefs.h.  */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h.  */
20998 #include <ext/slist>
20999 #ifdef HAVE_NAMESPACES
21000 using namespace __gnu_cxx;
21001 #endif
21002 int
21003 main ()
21004 {
21005 slist<int> s; return 0;
21006   ;
21007   return 0;
21008 }
21009 _ACEOF
21010 rm -f conftest.$ac_objext
21011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21012   (eval $ac_compile) 2>&5
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); } &&
21016          { ac_try='test -s conftest.$ac_objext'
21017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018   (eval $ac_try) 2>&5
21019   ac_status=$?
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); }; }; then
21022   ac_cv_cxx_have_ext_slist=gnu
21023 else
21024   echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21026
21027 ac_cv_cxx_have_ext_slist=no
21028 fi
21029 rm -f conftest.$ac_objext conftest.$ac_ext
21030
21031   ac_ext=c
21032 ac_cpp='$CPP $CPPFLAGS'
21033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21036
21037
21038 fi
21039 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21040 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21041 if test "$ac_cv_cxx_have_ext_slist" = std; then
21042
21043 cat >>confdefs.h <<\_ACEOF
21044 #define HAVE_EXT_SLIST std
21045 _ACEOF
21046
21047 fi
21048 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21049
21050 cat >>confdefs.h <<\_ACEOF
21051 #define HAVE_EXT_SLIST gnu
21052 _ACEOF
21053
21054 fi
21055
21056 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21057 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21058 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21059   echo $ECHO_N "(cached) $ECHO_C" >&6
21060 else
21061
21062
21063
21064   ac_ext=cc
21065 ac_cpp='$CXXCPP $CPPFLAGS'
21066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21069
21070   cat >conftest.$ac_ext <<_ACEOF
21071 #line $LINENO "configure"
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 #include <iterator>
21078 #ifdef HAVE_NAMESPACES
21079 using namespace std;
21080 #endif
21081 int
21082 main ()
21083 {
21084 iterator<int,int,int> t; return 0;
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest.$ac_objext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091   (eval $ac_compile) 2>&5
21092   ac_status=$?
21093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094   (exit $ac_status); } &&
21095          { ac_try='test -s conftest.$ac_objext'
21096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097   (eval $ac_try) 2>&5
21098   ac_status=$?
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); }; }; then
21101   ac_cv_cxx_have_std_iterator=yes
21102 else
21103   echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21105
21106 ac_cv_cxx_have_std_iterator=no
21107 fi
21108 rm -f conftest.$ac_objext conftest.$ac_ext
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_std_iterator" >&5
21118 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21119 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21120
21121 cat >>confdefs.h <<\_ACEOF
21122 #define HAVE_STD_ITERATOR
21123 _ACEOF
21124
21125 fi
21126
21127 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21128 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21129 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21130   echo $ECHO_N "(cached) $ECHO_C" >&6
21131 else
21132
21133
21134
21135   ac_ext=cc
21136 ac_cpp='$CXXCPP $CPPFLAGS'
21137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21140
21141   cat >conftest.$ac_ext <<_ACEOF
21142 #line $LINENO "configure"
21143 /* confdefs.h.  */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h.  */
21148 #include <iterator>
21149 #ifdef HAVE_NAMESPACES
21150 using namespace std;
21151 #endif
21152 int
21153 main ()
21154 {
21155 bidirectional_iterator<int,int> t; return 0;
21156   ;
21157   return 0;
21158 }
21159 _ACEOF
21160 rm -f conftest.$ac_objext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21162   (eval $ac_compile) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); } &&
21166          { ac_try='test -s conftest.$ac_objext'
21167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168   (eval $ac_try) 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); }; }; then
21172   ac_cv_cxx_have_bi_iterator=yes
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 ac_cv_cxx_have_bi_iterator=no
21178 fi
21179 rm -f conftest.$ac_objext conftest.$ac_ext
21180   ac_ext=c
21181 ac_cpp='$CPP $CPPFLAGS'
21182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21185
21186
21187 fi
21188 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21189 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21190 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21191
21192 cat >>confdefs.h <<\_ACEOF
21193 #define HAVE_BI_ITERATOR
21194 _ACEOF
21195
21196 fi
21197
21198 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21199 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21200 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21201   echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203
21204
21205
21206   ac_ext=cc
21207 ac_cpp='$CXXCPP $CPPFLAGS'
21208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21211
21212   cat >conftest.$ac_ext <<_ACEOF
21213 #line $LINENO "configure"
21214 /* confdefs.h.  */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h.  */
21219 #include <iterator>
21220 #ifdef HAVE_NAMESPACES
21221 using namespace std;
21222 #endif
21223 int
21224 main ()
21225 {
21226 forward_iterator<int,int> t; return 0;
21227   ;
21228   return 0;
21229 }
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21233   (eval $ac_compile) 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } &&
21237          { ac_try='test -s conftest.$ac_objext'
21238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239   (eval $ac_try) 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); }; }; then
21243   ac_cv_cxx_have_fwd_iterator=yes
21244 else
21245   echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21247
21248 ac_cv_cxx_have_fwd_iterator=no
21249 fi
21250 rm -f conftest.$ac_objext conftest.$ac_ext
21251   ac_ext=c
21252 ac_cpp='$CPP $CPPFLAGS'
21253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21256
21257
21258 fi
21259 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21260 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21261 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21262
21263 cat >>confdefs.h <<\_ACEOF
21264 #define HAVE_FWD_ITERATOR
21265 _ACEOF
21266
21267 fi
21268
21269
21270 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21271 # for constant arguments.  Useless!
21272 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21273 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21274 if test "${ac_cv_working_alloca_h+set}" = set; then
21275   echo $ECHO_N "(cached) $ECHO_C" >&6
21276 else
21277   cat >conftest.$ac_ext <<_ACEOF
21278 #line $LINENO "configure"
21279 /* confdefs.h.  */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h.  */
21284 #include <alloca.h>
21285 int
21286 main ()
21287 {
21288 char *p = (char *) alloca (2 * sizeof (int));
21289   ;
21290   return 0;
21291 }
21292 _ACEOF
21293 rm -f conftest.$ac_objext conftest$ac_exeext
21294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21295   (eval $ac_link) 2>&5
21296   ac_status=$?
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } &&
21299          { ac_try='test -s conftest$ac_exeext'
21300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301   (eval $ac_try) 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); }; }; then
21305   ac_cv_working_alloca_h=yes
21306 else
21307   echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310 ac_cv_working_alloca_h=no
21311 fi
21312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21313 fi
21314 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21315 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21316 if test $ac_cv_working_alloca_h = yes; then
21317
21318 cat >>confdefs.h <<\_ACEOF
21319 #define HAVE_ALLOCA_H 1
21320 _ACEOF
21321
21322 fi
21323
21324 echo "$as_me:$LINENO: checking for alloca" >&5
21325 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21326 if test "${ac_cv_func_alloca_works+set}" = set; then
21327   echo $ECHO_N "(cached) $ECHO_C" >&6
21328 else
21329   cat >conftest.$ac_ext <<_ACEOF
21330 #line $LINENO "configure"
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336 #ifdef __GNUC__
21337 # define alloca __builtin_alloca
21338 #else
21339 # ifdef _MSC_VER
21340 #  include <malloc.h>
21341 #  define alloca _alloca
21342 # else
21343 #  if HAVE_ALLOCA_H
21344 #   include <alloca.h>
21345 #  else
21346 #   ifdef _AIX
21347  #pragma alloca
21348 #   else
21349 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21350 char *alloca ();
21351 #    endif
21352 #   endif
21353 #  endif
21354 # endif
21355 #endif
21356
21357 int
21358 main ()
21359 {
21360 char *p = (char *) alloca (1);
21361   ;
21362   return 0;
21363 }
21364 _ACEOF
21365 rm -f conftest.$ac_objext conftest$ac_exeext
21366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21367   (eval $ac_link) 2>&5
21368   ac_status=$?
21369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370   (exit $ac_status); } &&
21371          { ac_try='test -s conftest$ac_exeext'
21372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373   (eval $ac_try) 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); }; }; then
21377   ac_cv_func_alloca_works=yes
21378 else
21379   echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382 ac_cv_func_alloca_works=no
21383 fi
21384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21385 fi
21386 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21387 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21388
21389 if test $ac_cv_func_alloca_works = yes; then
21390
21391 cat >>confdefs.h <<\_ACEOF
21392 #define HAVE_ALLOCA 1
21393 _ACEOF
21394
21395 else
21396   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21397 # that cause trouble.  Some versions do not even contain alloca or
21398 # contain a buggy version.  If you still want to use their alloca,
21399 # use ar to extract alloca.o from them instead of compiling alloca.c.
21400
21401 ALLOCA=alloca.$ac_objext
21402
21403 cat >>confdefs.h <<\_ACEOF
21404 #define C_ALLOCA 1
21405 _ACEOF
21406
21407
21408 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21409 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21410 if test "${ac_cv_os_cray+set}" = set; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413   cat >conftest.$ac_ext <<_ACEOF
21414 #line $LINENO "configure"
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420 #if defined(CRAY) && ! defined(CRAY2)
21421 webecray
21422 #else
21423 wenotbecray
21424 #endif
21425
21426 _ACEOF
21427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21428   $EGREP "webecray" >/dev/null 2>&1; then
21429   ac_cv_os_cray=yes
21430 else
21431   ac_cv_os_cray=no
21432 fi
21433 rm -f conftest*
21434
21435 fi
21436 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21437 echo "${ECHO_T}$ac_cv_os_cray" >&6
21438 if test $ac_cv_os_cray = yes; then
21439   for ac_func in _getb67 GETB67 getb67; do
21440     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21441 echo "$as_me:$LINENO: checking for $ac_func" >&5
21442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21443 if eval "test \"\${$as_ac_var+set}\" = set"; then
21444   echo $ECHO_N "(cached) $ECHO_C" >&6
21445 else
21446   cat >conftest.$ac_ext <<_ACEOF
21447 #line $LINENO "configure"
21448 /* confdefs.h.  */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h.  */
21453 /* System header to define __stub macros and hopefully few prototypes,
21454     which can conflict with char $ac_func (); below.
21455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21456     <limits.h> exists even on freestanding compilers.  */
21457 #ifdef __STDC__
21458 # include <limits.h>
21459 #else
21460 # include <assert.h>
21461 #endif
21462 /* Override any gcc2 internal prototype to avoid an error.  */
21463 #ifdef __cplusplus
21464 extern "C"
21465 {
21466 #endif
21467 /* We use char because int might match the return type of a gcc2
21468    builtin and then its argument prototype would still apply.  */
21469 char $ac_func ();
21470 /* The GNU C library defines this for functions which it implements
21471     to always fail with ENOSYS.  Some functions are actually named
21472     something starting with __ and the normal name is an alias.  */
21473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21474 choke me
21475 #else
21476 char (*f) () = $ac_func;
21477 #endif
21478 #ifdef __cplusplus
21479 }
21480 #endif
21481
21482 int
21483 main ()
21484 {
21485 return f != $ac_func;
21486   ;
21487   return 0;
21488 }
21489 _ACEOF
21490 rm -f conftest.$ac_objext conftest$ac_exeext
21491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21492   (eval $ac_link) 2>&5
21493   ac_status=$?
21494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); } &&
21496          { ac_try='test -s conftest$ac_exeext'
21497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498   (eval $ac_try) 2>&5
21499   ac_status=$?
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); }; }; then
21502   eval "$as_ac_var=yes"
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 eval "$as_ac_var=no"
21508 fi
21509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21510 fi
21511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21513 if test `eval echo '${'$as_ac_var'}'` = yes; then
21514
21515 cat >>confdefs.h <<_ACEOF
21516 #define CRAY_STACKSEG_END $ac_func
21517 _ACEOF
21518
21519     break
21520 fi
21521
21522   done
21523 fi
21524
21525 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21526 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21527 if test "${ac_cv_c_stack_direction+set}" = set; then
21528   echo $ECHO_N "(cached) $ECHO_C" >&6
21529 else
21530   if test "$cross_compiling" = yes; then
21531   ac_cv_c_stack_direction=0
21532 else
21533   cat >conftest.$ac_ext <<_ACEOF
21534 #line $LINENO "configure"
21535 /* confdefs.h.  */
21536 _ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h.  */
21540 int
21541 find_stack_direction ()
21542 {
21543   static char *addr = 0;
21544   auto char dummy;
21545   if (addr == 0)
21546     {
21547       addr = &dummy;
21548       return find_stack_direction ();
21549     }
21550   else
21551     return (&dummy > addr) ? 1 : -1;
21552 }
21553
21554 int
21555 main ()
21556 {
21557   exit (find_stack_direction () < 0);
21558 }
21559 _ACEOF
21560 rm -f conftest$ac_exeext
21561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21562   (eval $ac_link) 2>&5
21563   ac_status=$?
21564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567   (eval $ac_try) 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; }; then
21571   ac_cv_c_stack_direction=1
21572 else
21573   echo "$as_me: program exited with status $ac_status" >&5
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21576
21577 ( exit $ac_status )
21578 ac_cv_c_stack_direction=-1
21579 fi
21580 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21581 fi
21582 fi
21583 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21584 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21585
21586 cat >>confdefs.h <<_ACEOF
21587 #define STACK_DIRECTION $ac_cv_c_stack_direction
21588 _ACEOF
21589
21590
21591 fi
21592
21593 if test $ac_cv_c_compiler_gnu = yes; then
21594     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21595 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21596 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21597   echo $ECHO_N "(cached) $ECHO_C" >&6
21598 else
21599     ac_pattern="Autoconf.*'x'"
21600   cat >conftest.$ac_ext <<_ACEOF
21601 #line $LINENO "configure"
21602 /* confdefs.h.  */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h.  */
21607 #include <sgtty.h>
21608 Autoconf TIOCGETP
21609 _ACEOF
21610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21611   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21612   ac_cv_prog_gcc_traditional=yes
21613 else
21614   ac_cv_prog_gcc_traditional=no
21615 fi
21616 rm -f conftest*
21617
21618
21619   if test $ac_cv_prog_gcc_traditional = no; then
21620     cat >conftest.$ac_ext <<_ACEOF
21621 #line $LINENO "configure"
21622 /* confdefs.h.  */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h.  */
21627 #include <termio.h>
21628 Autoconf TCGETA
21629 _ACEOF
21630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21631   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21632   ac_cv_prog_gcc_traditional=yes
21633 fi
21634 rm -f conftest*
21635
21636   fi
21637 fi
21638 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21639 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21640   if test $ac_cv_prog_gcc_traditional = yes; then
21641     CC="$CC -traditional"
21642   fi
21643 fi
21644
21645 echo "$as_me:$LINENO: checking for working memcmp" >&5
21646 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21647 if test "${ac_cv_func_memcmp_working+set}" = set; then
21648   echo $ECHO_N "(cached) $ECHO_C" >&6
21649 else
21650   if test "$cross_compiling" = yes; then
21651   ac_cv_func_memcmp_working=no
21652 else
21653   cat >conftest.$ac_ext <<_ACEOF
21654 #line $LINENO "configure"
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660
21661 int
21662 main ()
21663 {
21664
21665   /* Some versions of memcmp are not 8-bit clean.  */
21666   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21667   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21668     exit (1);
21669
21670   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21671      or more and with at least one buffer not starting on a 4-byte boundary.
21672      William Lewis provided this test program.   */
21673   {
21674     char foo[21];
21675     char bar[21];
21676     int i;
21677     for (i = 0; i < 4; i++)
21678       {
21679         char *a = foo + i;
21680         char *b = bar + i;
21681         strcpy (a, "--------01111111");
21682         strcpy (b, "--------10000000");
21683         if (memcmp (a, b, 16) >= 0)
21684           exit (1);
21685       }
21686     exit (0);
21687   }
21688
21689   ;
21690   return 0;
21691 }
21692 _ACEOF
21693 rm -f conftest$ac_exeext
21694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21695   (eval $ac_link) 2>&5
21696   ac_status=$?
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700   (eval $ac_try) 2>&5
21701   ac_status=$?
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); }; }; then
21704   ac_cv_func_memcmp_working=yes
21705 else
21706   echo "$as_me: program exited with status $ac_status" >&5
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21709
21710 ( exit $ac_status )
21711 ac_cv_func_memcmp_working=no
21712 fi
21713 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21714 fi
21715 fi
21716 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21717 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21718 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21719
21720
21721
21722 for ac_header in stdlib.h unistd.h
21723 do
21724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21726   echo "$as_me:$LINENO: checking for $ac_header" >&5
21727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21729   echo $ECHO_N "(cached) $ECHO_C" >&6
21730 fi
21731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21733 else
21734   # Is the header compilable?
21735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21737 cat >conftest.$ac_ext <<_ACEOF
21738 #line $LINENO "configure"
21739 /* confdefs.h.  */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h.  */
21744 $ac_includes_default
21745 #include <$ac_header>
21746 _ACEOF
21747 rm -f conftest.$ac_objext
21748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21749   (eval $ac_compile) 2>&5
21750   ac_status=$?
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); } &&
21753          { ac_try='test -s conftest.$ac_objext'
21754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755   (eval $ac_try) 2>&5
21756   ac_status=$?
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); }; }; then
21759   ac_header_compiler=yes
21760 else
21761   echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21763
21764 ac_header_compiler=no
21765 fi
21766 rm -f conftest.$ac_objext conftest.$ac_ext
21767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21768 echo "${ECHO_T}$ac_header_compiler" >&6
21769
21770 # Is the header present?
21771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21773 cat >conftest.$ac_ext <<_ACEOF
21774 #line $LINENO "configure"
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780 #include <$ac_header>
21781 _ACEOF
21782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21783   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21784   ac_status=$?
21785   grep -v '^ *+' conftest.er1 >conftest.err
21786   rm -f conftest.er1
21787   cat conftest.err >&5
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); } >/dev/null; then
21790   if test -s conftest.err; then
21791     ac_cpp_err=$ac_c_preproc_warn_flag
21792   else
21793     ac_cpp_err=
21794   fi
21795 else
21796   ac_cpp_err=yes
21797 fi
21798 if test -z "$ac_cpp_err"; then
21799   ac_header_preproc=yes
21800 else
21801   echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21803
21804   ac_header_preproc=no
21805 fi
21806 rm -f conftest.err conftest.$ac_ext
21807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21808 echo "${ECHO_T}$ac_header_preproc" >&6
21809
21810 # So?  What about this header?
21811 case $ac_header_compiler:$ac_header_preproc in
21812   yes:no )
21813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21817     (
21818       cat <<\_ASBOX
21819 ## ------------------------------------ ##
21820 ## Report this to bug-autoconf@gnu.org. ##
21821 ## ------------------------------------ ##
21822 _ASBOX
21823     ) |
21824       sed "s/^/$as_me: WARNING:     /" >&2
21825     ;;
21826   no:yes )
21827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21829     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21833     (
21834       cat <<\_ASBOX
21835 ## ------------------------------------ ##
21836 ## Report this to bug-autoconf@gnu.org. ##
21837 ## ------------------------------------ ##
21838 _ASBOX
21839     ) |
21840       sed "s/^/$as_me: WARNING:     /" >&2
21841     ;;
21842 esac
21843 echo "$as_me:$LINENO: checking for $ac_header" >&5
21844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21846   echo $ECHO_N "(cached) $ECHO_C" >&6
21847 else
21848   eval "$as_ac_Header=$ac_header_preproc"
21849 fi
21850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21852
21853 fi
21854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21855   cat >>confdefs.h <<_ACEOF
21856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21857 _ACEOF
21858
21859 fi
21860
21861 done
21862
21863
21864 for ac_func in getpagesize
21865 do
21866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21867 echo "$as_me:$LINENO: checking for $ac_func" >&5
21868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21869 if eval "test \"\${$as_ac_var+set}\" = set"; then
21870   echo $ECHO_N "(cached) $ECHO_C" >&6
21871 else
21872   cat >conftest.$ac_ext <<_ACEOF
21873 #line $LINENO "configure"
21874 /* confdefs.h.  */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h.  */
21879 /* System header to define __stub macros and hopefully few prototypes,
21880     which can conflict with char $ac_func (); below.
21881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21882     <limits.h> exists even on freestanding compilers.  */
21883 #ifdef __STDC__
21884 # include <limits.h>
21885 #else
21886 # include <assert.h>
21887 #endif
21888 /* Override any gcc2 internal prototype to avoid an error.  */
21889 #ifdef __cplusplus
21890 extern "C"
21891 {
21892 #endif
21893 /* We use char because int might match the return type of a gcc2
21894    builtin and then its argument prototype would still apply.  */
21895 char $ac_func ();
21896 /* The GNU C library defines this for functions which it implements
21897     to always fail with ENOSYS.  Some functions are actually named
21898     something starting with __ and the normal name is an alias.  */
21899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21900 choke me
21901 #else
21902 char (*f) () = $ac_func;
21903 #endif
21904 #ifdef __cplusplus
21905 }
21906 #endif
21907
21908 int
21909 main ()
21910 {
21911 return f != $ac_func;
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest.$ac_objext conftest$ac_exeext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918   (eval $ac_link) 2>&5
21919   ac_status=$?
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } &&
21922          { ac_try='test -s conftest$ac_exeext'
21923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924   (eval $ac_try) 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); }; }; then
21928   eval "$as_ac_var=yes"
21929 else
21930   echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933 eval "$as_ac_var=no"
21934 fi
21935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21936 fi
21937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21939 if test `eval echo '${'$as_ac_var'}'` = yes; then
21940   cat >>confdefs.h <<_ACEOF
21941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21942 _ACEOF
21943
21944 fi
21945 done
21946
21947 echo "$as_me:$LINENO: checking for working mmap" >&5
21948 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21949 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21950   echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952   if test "$cross_compiling" = yes; then
21953   ac_cv_func_mmap_fixed_mapped=no
21954 else
21955   cat >conftest.$ac_ext <<_ACEOF
21956 #line $LINENO "configure"
21957 /* confdefs.h.  */
21958 _ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h.  */
21962 $ac_includes_default
21963 /* malloc might have been renamed as rpl_malloc. */
21964 #undef malloc
21965
21966 /* Thanks to Mike Haertel and Jim Avera for this test.
21967    Here is a matrix of mmap possibilities:
21968         mmap private not fixed
21969         mmap private fixed at somewhere currently unmapped
21970         mmap private fixed at somewhere already mapped
21971         mmap shared not fixed
21972         mmap shared fixed at somewhere currently unmapped
21973         mmap shared fixed at somewhere already mapped
21974    For private mappings, we should verify that changes cannot be read()
21975    back from the file, nor mmap's back from the file at a different
21976    address.  (There have been systems where private was not correctly
21977    implemented like the infamous i386 svr4.0, and systems where the
21978    VM page cache was not coherent with the file system buffer cache
21979    like early versions of FreeBSD and possibly contemporary NetBSD.)
21980    For shared mappings, we should conversely verify that changes get
21981    propagated back to all the places they're supposed to be.
21982
21983    Grep wants private fixed already mapped.
21984    The main things grep needs to know about mmap are:
21985    * does it exist and is it safe to write into the mmap'd area
21986    * how to use it (BSD variants)  */
21987
21988 #include <fcntl.h>
21989 #include <sys/mman.h>
21990
21991 #if !STDC_HEADERS && !HAVE_STDLIB_H
21992 char *malloc ();
21993 #endif
21994
21995 /* This mess was copied from the GNU getpagesize.h.  */
21996 #if !HAVE_GETPAGESIZE
21997 /* Assume that all systems that can run configure have sys/param.h.  */
21998 # if !HAVE_SYS_PARAM_H
21999 #  define HAVE_SYS_PARAM_H 1
22000 # endif
22001
22002 # ifdef _SC_PAGESIZE
22003 #  define getpagesize() sysconf(_SC_PAGESIZE)
22004 # else /* no _SC_PAGESIZE */
22005 #  if HAVE_SYS_PARAM_H
22006 #   include <sys/param.h>
22007 #   ifdef EXEC_PAGESIZE
22008 #    define getpagesize() EXEC_PAGESIZE
22009 #   else /* no EXEC_PAGESIZE */
22010 #    ifdef NBPG
22011 #     define getpagesize() NBPG * CLSIZE
22012 #     ifndef CLSIZE
22013 #      define CLSIZE 1
22014 #     endif /* no CLSIZE */
22015 #    else /* no NBPG */
22016 #     ifdef NBPC
22017 #      define getpagesize() NBPC
22018 #     else /* no NBPC */
22019 #      ifdef PAGESIZE
22020 #       define getpagesize() PAGESIZE
22021 #      endif /* PAGESIZE */
22022 #     endif /* no NBPC */
22023 #    endif /* no NBPG */
22024 #   endif /* no EXEC_PAGESIZE */
22025 #  else /* no HAVE_SYS_PARAM_H */
22026 #   define getpagesize() 8192   /* punt totally */
22027 #  endif /* no HAVE_SYS_PARAM_H */
22028 # endif /* no _SC_PAGESIZE */
22029
22030 #endif /* no HAVE_GETPAGESIZE */
22031
22032 int
22033 main ()
22034 {
22035   char *data, *data2, *data3;
22036   int i, pagesize;
22037   int fd;
22038
22039   pagesize = getpagesize ();
22040
22041   /* First, make a file with some known garbage in it. */
22042   data = (char *) malloc (pagesize);
22043   if (!data)
22044     exit (1);
22045   for (i = 0; i < pagesize; ++i)
22046     *(data + i) = rand ();
22047   umask (0);
22048   fd = creat ("conftest.mmap", 0600);
22049   if (fd < 0)
22050     exit (1);
22051   if (write (fd, data, pagesize) != pagesize)
22052     exit (1);
22053   close (fd);
22054
22055   /* Next, try to mmap the file at a fixed address which already has
22056      something else allocated at it.  If we can, also make sure that
22057      we see the same garbage.  */
22058   fd = open ("conftest.mmap", O_RDWR);
22059   if (fd < 0)
22060     exit (1);
22061   data2 = (char *) malloc (2 * pagesize);
22062   if (!data2)
22063     exit (1);
22064   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22065   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22066                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22067     exit (1);
22068   for (i = 0; i < pagesize; ++i)
22069     if (*(data + i) != *(data2 + i))
22070       exit (1);
22071
22072   /* Finally, make sure that changes to the mapped area do not
22073      percolate back to the file as seen by read().  (This is a bug on
22074      some variants of i386 svr4.0.)  */
22075   for (i = 0; i < pagesize; ++i)
22076     *(data2 + i) = *(data2 + i) + 1;
22077   data3 = (char *) malloc (pagesize);
22078   if (!data3)
22079     exit (1);
22080   if (read (fd, data3, pagesize) != pagesize)
22081     exit (1);
22082   for (i = 0; i < pagesize; ++i)
22083     if (*(data + i) != *(data3 + i))
22084       exit (1);
22085   close (fd);
22086   exit (0);
22087 }
22088 _ACEOF
22089 rm -f conftest$ac_exeext
22090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22091   (eval $ac_link) 2>&5
22092   ac_status=$?
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096   (eval $ac_try) 2>&5
22097   ac_status=$?
22098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099   (exit $ac_status); }; }; then
22100   ac_cv_func_mmap_fixed_mapped=yes
22101 else
22102   echo "$as_me: program exited with status $ac_status" >&5
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22105
22106 ( exit $ac_status )
22107 ac_cv_func_mmap_fixed_mapped=no
22108 fi
22109 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22110 fi
22111 fi
22112 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22113 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22114 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22115
22116 cat >>confdefs.h <<\_ACEOF
22117 #define HAVE_MMAP 1
22118 _ACEOF
22119
22120 fi
22121 rm -f conftest.mmap
22122
22123 echo "$as_me:$LINENO: checking for mmap of files" >&5
22124 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22125 if test "${ac_cv_func_mmap_file+set}" = set; then
22126   echo $ECHO_N "(cached) $ECHO_C" >&6
22127 else
22128
22129
22130   ac_ext=c
22131 ac_cpp='$CPP $CPPFLAGS'
22132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22135
22136   if test "$cross_compiling" = yes; then
22137   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22138 See \`config.log' for more details." >&5
22139 echo "$as_me: error: cannot run test program while cross compiling
22140 See \`config.log' for more details." >&2;}
22141    { (exit 1); exit 1; }; }
22142 else
22143   cat >conftest.$ac_ext <<_ACEOF
22144 #line $LINENO "configure"
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150
22151 #ifdef HAVE_SYS_MMAN_H
22152 #include <sys/mman.h>
22153 #endif
22154
22155 #ifdef HAVE_SYS_TYPES_H
22156 #include <sys/types.h>
22157 #endif
22158
22159 #ifdef HAVE_FCNTL_H
22160 #include <fcntl.h>
22161 #endif
22162
22163   int fd;
22164   int main () {
22165   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
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_file=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_file=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   ac_ext=c
22190 ac_cpp='$CPP $CPPFLAGS'
22191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22194
22195
22196 fi
22197 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22198 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22199 if test "$ac_cv_func_mmap_file" = yes; then
22200    cat >>confdefs.h <<\_ACEOF
22201 #define HAVE_MMAP_FILE 1
22202 _ACEOF
22203
22204    MMAP_FILE=yes
22205
22206 fi
22207
22208 if test ${ac_cv_func_mmap_file} = "no"
22209 then
22210         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22211 echo "$as_me: error: mmap() of files required but not found" >&2;}
22212    { (exit 1); exit 1; }; }
22213 fi
22214 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22215 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22216 if test "${ac_cv_header_mmap_anon+set}" = set; then
22217   echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
22219
22220
22221   ac_ext=c
22222 ac_cpp='$CPP $CPPFLAGS'
22223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22226
22227   cat >conftest.$ac_ext <<_ACEOF
22228 #line $LINENO "configure"
22229 /* confdefs.h.  */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h.  */
22234 #include <sys/mman.h>
22235   #include <unistd.h>
22236   #include <fcntl.h>
22237 int
22238 main ()
22239 {
22240 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22241   ;
22242   return 0;
22243 }
22244 _ACEOF
22245 rm -f conftest.$ac_objext
22246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22247   (eval $ac_compile) 2>&5
22248   ac_status=$?
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); } &&
22251          { ac_try='test -s conftest.$ac_objext'
22252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253   (eval $ac_try) 2>&5
22254   ac_status=$?
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); }; }; then
22257   ac_cv_header_mmap_anon=yes
22258 else
22259   echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22261
22262 ac_cv_header_mmap_anon=no
22263 fi
22264 rm -f conftest.$ac_objext conftest.$ac_ext
22265   ac_ext=c
22266 ac_cpp='$CPP $CPPFLAGS'
22267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22270
22271
22272 fi
22273 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22274 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22275 if test "$ac_cv_header_mmap_anon" = yes; then
22276    cat >>confdefs.h <<\_ACEOF
22277 #define HAVE_MMAP_ANONYMOUS 1
22278 _ACEOF
22279
22280 fi
22281
22282 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22283 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22284 if test "${ac_cv_type_signal+set}" = set; then
22285   echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22287   cat >conftest.$ac_ext <<_ACEOF
22288 #line $LINENO "configure"
22289 /* confdefs.h.  */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h.  */
22294 #include <sys/types.h>
22295 #include <signal.h>
22296 #ifdef signal
22297 # undef signal
22298 #endif
22299 #ifdef __cplusplus
22300 extern "C" void (*signal (int, void (*)(int)))(int);
22301 #else
22302 void (*signal ()) ();
22303 #endif
22304
22305 int
22306 main ()
22307 {
22308 int i;
22309   ;
22310   return 0;
22311 }
22312 _ACEOF
22313 rm -f conftest.$ac_objext
22314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22315   (eval $ac_compile) 2>&5
22316   ac_status=$?
22317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318   (exit $ac_status); } &&
22319          { ac_try='test -s conftest.$ac_objext'
22320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22321   (eval $ac_try) 2>&5
22322   ac_status=$?
22323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324   (exit $ac_status); }; }; then
22325   ac_cv_type_signal=void
22326 else
22327   echo "$as_me: failed program was:" >&5
22328 sed 's/^/| /' conftest.$ac_ext >&5
22329
22330 ac_cv_type_signal=int
22331 fi
22332 rm -f conftest.$ac_objext conftest.$ac_ext
22333 fi
22334 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22335 echo "${ECHO_T}$ac_cv_type_signal" >&6
22336
22337 cat >>confdefs.h <<_ACEOF
22338 #define RETSIGTYPE $ac_cv_type_signal
22339 _ACEOF
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22352 do
22353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22354 echo "$as_me:$LINENO: checking for $ac_func" >&5
22355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22356 if eval "test \"\${$as_ac_var+set}\" = set"; then
22357   echo $ECHO_N "(cached) $ECHO_C" >&6
22358 else
22359   cat >conftest.$ac_ext <<_ACEOF
22360 #line $LINENO "configure"
22361 /* confdefs.h.  */
22362 _ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h.  */
22366 /* System header to define __stub macros and hopefully few prototypes,
22367     which can conflict with char $ac_func (); below.
22368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22369     <limits.h> exists even on freestanding compilers.  */
22370 #ifdef __STDC__
22371 # include <limits.h>
22372 #else
22373 # include <assert.h>
22374 #endif
22375 /* Override any gcc2 internal prototype to avoid an error.  */
22376 #ifdef __cplusplus
22377 extern "C"
22378 {
22379 #endif
22380 /* We use char because int might match the return type of a gcc2
22381    builtin and then its argument prototype would still apply.  */
22382 char $ac_func ();
22383 /* The GNU C library defines this for functions which it implements
22384     to always fail with ENOSYS.  Some functions are actually named
22385     something starting with __ and the normal name is an alias.  */
22386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22387 choke me
22388 #else
22389 char (*f) () = $ac_func;
22390 #endif
22391 #ifdef __cplusplus
22392 }
22393 #endif
22394
22395 int
22396 main ()
22397 {
22398 return f != $ac_func;
22399   ;
22400   return 0;
22401 }
22402 _ACEOF
22403 rm -f conftest.$ac_objext conftest$ac_exeext
22404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22405   (eval $ac_link) 2>&5
22406   ac_status=$?
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); } &&
22409          { ac_try='test -s conftest$ac_exeext'
22410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411   (eval $ac_try) 2>&5
22412   ac_status=$?
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); }; }; then
22415   eval "$as_ac_var=yes"
22416 else
22417   echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22419
22420 eval "$as_ac_var=no"
22421 fi
22422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22423 fi
22424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22426 if test `eval echo '${'$as_ac_var'}'` = yes; then
22427   cat >>confdefs.h <<_ACEOF
22428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22429 _ACEOF
22430
22431 fi
22432 done
22433
22434
22435
22436 echo "$as_me:$LINENO: checking for mmap" >&5
22437 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22438 if test "${ac_cv_func_mmap+set}" = set; then
22439   echo $ECHO_N "(cached) $ECHO_C" >&6
22440 else
22441   cat >conftest.$ac_ext <<_ACEOF
22442 #line $LINENO "configure"
22443 /* confdefs.h.  */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h.  */
22448 /* System header to define __stub macros and hopefully few prototypes,
22449     which can conflict with char mmap (); below.
22450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22451     <limits.h> exists even on freestanding compilers.  */
22452 #ifdef __STDC__
22453 # include <limits.h>
22454 #else
22455 # include <assert.h>
22456 #endif
22457 /* Override any gcc2 internal prototype to avoid an error.  */
22458 #ifdef __cplusplus
22459 extern "C"
22460 {
22461 #endif
22462 /* We use char because int might match the return type of a gcc2
22463    builtin and then its argument prototype would still apply.  */
22464 char mmap ();
22465 /* The GNU C library defines this for functions which it implements
22466     to always fail with ENOSYS.  Some functions are actually named
22467     something starting with __ and the normal name is an alias.  */
22468 #if defined (__stub_mmap) || defined (__stub___mmap)
22469 choke me
22470 #else
22471 char (*f) () = mmap;
22472 #endif
22473 #ifdef __cplusplus
22474 }
22475 #endif
22476
22477 int
22478 main ()
22479 {
22480 return f != mmap;
22481   ;
22482   return 0;
22483 }
22484 _ACEOF
22485 rm -f conftest.$ac_objext conftest$ac_exeext
22486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22487   (eval $ac_link) 2>&5
22488   ac_status=$?
22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); } &&
22491          { ac_try='test -s conftest$ac_exeext'
22492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493   (eval $ac_try) 2>&5
22494   ac_status=$?
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); }; }; then
22497   ac_cv_func_mmap=yes
22498 else
22499   echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22501
22502 ac_cv_func_mmap=no
22503 fi
22504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22505 fi
22506 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22507 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22508 if test $ac_cv_func_mmap = yes; then
22509   :
22510 else
22511   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22512 echo "$as_me: error: Function mmap() required but not found" >&2;}
22513    { (exit 1); exit 1; }; }
22514 fi
22515
22516 echo "$as_me:$LINENO: checking for mprotect" >&5
22517 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22518 if test "${ac_cv_func_mprotect+set}" = set; then
22519   echo $ECHO_N "(cached) $ECHO_C" >&6
22520 else
22521   cat >conftest.$ac_ext <<_ACEOF
22522 #line $LINENO "configure"
22523 /* confdefs.h.  */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h.  */
22528 /* System header to define __stub macros and hopefully few prototypes,
22529     which can conflict with char mprotect (); below.
22530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22531     <limits.h> exists even on freestanding compilers.  */
22532 #ifdef __STDC__
22533 # include <limits.h>
22534 #else
22535 # include <assert.h>
22536 #endif
22537 /* Override any gcc2 internal prototype to avoid an error.  */
22538 #ifdef __cplusplus
22539 extern "C"
22540 {
22541 #endif
22542 /* We use char because int might match the return type of a gcc2
22543    builtin and then its argument prototype would still apply.  */
22544 char mprotect ();
22545 /* The GNU C library defines this for functions which it implements
22546     to always fail with ENOSYS.  Some functions are actually named
22547     something starting with __ and the normal name is an alias.  */
22548 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22549 choke me
22550 #else
22551 char (*f) () = mprotect;
22552 #endif
22553 #ifdef __cplusplus
22554 }
22555 #endif
22556
22557 int
22558 main ()
22559 {
22560 return f != mprotect;
22561   ;
22562   return 0;
22563 }
22564 _ACEOF
22565 rm -f conftest.$ac_objext conftest$ac_exeext
22566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22567   (eval $ac_link) 2>&5
22568   ac_status=$?
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); } &&
22571          { ac_try='test -s conftest$ac_exeext'
22572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573   (eval $ac_try) 2>&5
22574   ac_status=$?
22575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); }; }; then
22577   ac_cv_func_mprotect=yes
22578 else
22579   echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22581
22582 ac_cv_func_mprotect=no
22583 fi
22584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22585 fi
22586 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22587 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22588 if test $ac_cv_func_mprotect = yes; then
22589   :
22590 else
22591   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22592 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22593    { (exit 1); exit 1; }; }
22594 fi
22595
22596
22597
22598 # Check whether --enable-purify or --disable-purify was given.
22599 if test "${enable_purify+set}" = set; then
22600   enableval="$enable_purify"
22601
22602 else
22603   enableval="no"
22604 fi;
22605 if test ${enableval} = "no"
22606 then
22607         ENABLE_PURIFY=
22608
22609 else
22610         ENABLE_PURIFY=ENABLE_PURIFY=1
22611
22612 fi
22613
22614 # Check whether --enable-optimized or --disable-optimized was given.
22615 if test "${enable_optimized+set}" = set; then
22616   enableval="$enable_optimized"
22617
22618 else
22619   enableval=no
22620 fi;
22621 if test ${enableval} = "no"
22622 then
22623         ENABLE_OPTIMIZED=
22624
22625 else
22626         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22627
22628 fi
22629
22630 # Check whether --enable-spec or --disable-spec was given.
22631 if test "${enable_spec+set}" = set; then
22632   enableval="$enable_spec"
22633
22634 else
22635   enableval=no
22636 fi;
22637 if test ${enableval} = "no"
22638 then
22639         USE_SPEC=
22640
22641 else
22642         USE_SPEC=USE_SPEC=1
22643
22644 fi
22645
22646 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22647 if test "${enable_precompiled_bytecode+set}" = set; then
22648   enableval="$enable_precompiled_bytecode"
22649
22650 else
22651   enableval=no
22652 fi;
22653 if test ${enableval} = "no"
22654 then
22655         UPB=
22656
22657 else
22658         UPB=USE_PRECOMPILED_BYTECODE=1
22659
22660 fi
22661
22662
22663 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22664 if test "${enable_llc_diffs+set}" = set; then
22665   enableval="$enable_llc_diffs"
22666
22667 else
22668   enableval=yes
22669 fi;
22670 if test ${enableval} = "no"
22671 then
22672         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22673
22674 else
22675         DISABLE_LLC_DIFFS=
22676
22677 fi
22678
22679 # Check whether --enable-jit or --disable-jit was given.
22680 if test "${enable_jit+set}" = set; then
22681   enableval="$enable_jit"
22682
22683 else
22684   enableval=default
22685 fi;
22686
22687 if test ${enableval} = "no"
22688 then
22689         JIT=
22690
22691 else
22692         case $target in
22693                 *i*86*)
22694                         JIT=TARGET_HAS_JIT=1
22695
22696                         ;;
22697                 *sparc*)
22698                         JIT=TARGET_HAS_JIT=1
22699
22700                         ;;
22701                 *)
22702                         JIT=
22703
22704                         ;;
22705         esac
22706 fi
22707
22708
22709
22710 # Check whether --with-spec or --without-spec was given.
22711 if test "${with_spec+set}" = set; then
22712   withval="$with_spec"
22713   SPEC_ROOT=$withval
22714
22715 else
22716   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22717
22718 fi;
22719
22720
22721 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22722 if test "${with_llvmgccdir+set}" = set; then
22723   withval="$with_llvmgccdir"
22724   LLVMGCCDIR=$withval
22725
22726 fi;
22727
22728
22729 # Check whether --with-bcrepos or --without-bcrepos was given.
22730 if test "${with_bcrepos+set}" = set; then
22731   withval="$with_bcrepos"
22732   BCR=$withval
22733
22734 else
22735   BCR=/home/vadve/lattner/LLVMPrograms
22736
22737 fi;
22738
22739
22740 # Check whether --with-papi or --without-papi was given.
22741 if test "${with_papi+set}" = set; then
22742   withval="$with_papi"
22743   PAPIDIR=$withval
22744
22745 else
22746   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22747
22748 fi;
22749
22750
22751 # Check whether --with-purify or --without-purify was given.
22752 if test "${with_purify+set}" = set; then
22753   withval="$with_purify"
22754   PURIFY=$withval
22755
22756 fi;
22757
22758
22759           ac_config_files="$ac_config_files Makefile.config"
22760 cat >confcache <<\_ACEOF
22761 # This file is a shell script that caches the results of configure
22762 # tests run on this system so they can be shared between configure
22763 # scripts and configure runs, see configure's option --config-cache.
22764 # It is not useful on other systems.  If it contains results you don't
22765 # want to keep, you may remove or edit it.
22766 #
22767 # config.status only pays attention to the cache file if you give it
22768 # the --recheck option to rerun configure.
22769 #
22770 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22772 # following values.
22773
22774 _ACEOF
22775
22776 # The following way of writing the cache mishandles newlines in values,
22777 # but we know of no workaround that is simple, portable, and efficient.
22778 # So, don't put newlines in cache variables' values.
22779 # Ultrix sh set writes to stderr and can't be redirected directly,
22780 # and sets the high bit in the cache file unless we assign to the vars.
22781 {
22782   (set) 2>&1 |
22783     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22784     *ac_space=\ *)
22785       # `set' does not quote correctly, so add quotes (double-quote
22786       # substitution turns \\\\ into \\, and sed turns \\ into \).
22787       sed -n \
22788         "s/'/'\\\\''/g;
22789           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22790       ;;
22791     *)
22792       # `set' quotes correctly as required by POSIX, so do not add quotes.
22793       sed -n \
22794         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22795       ;;
22796     esac;
22797 } |
22798   sed '
22799      t clear
22800      : clear
22801      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22802      t end
22803      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22804      : end' >>confcache
22805 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22806   if test -w $cache_file; then
22807     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22808     cat confcache >$cache_file
22809   else
22810     echo "not updating unwritable cache $cache_file"
22811   fi
22812 fi
22813 rm -f confcache
22814
22815 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22816 # Let make expand exec_prefix.
22817 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22818
22819 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22820 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22821 # trailing colons and then remove the whole line if VPATH becomes empty
22822 # (actually we leave an empty line to preserve line numbers).
22823 if test "x$srcdir" = x.; then
22824   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22825 s/:*\$(srcdir):*/:/;
22826 s/:*\${srcdir}:*/:/;
22827 s/:*@srcdir@:*/:/;
22828 s/^\([^=]*=[    ]*\):*/\1/;
22829 s/:*$//;
22830 s/^[^=]*=[      ]*$//;
22831 }'
22832 fi
22833
22834 DEFS=-DHAVE_CONFIG_H
22835
22836 ac_libobjs=
22837 ac_ltlibobjs=
22838 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22839   # 1. Remove the extension, and $U if already installed.
22840   ac_i=`echo "$ac_i" |
22841          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22842   # 2. Add them.
22843   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22844   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22845 done
22846 LIBOBJS=$ac_libobjs
22847
22848 LTLIBOBJS=$ac_ltlibobjs
22849
22850
22851
22852 : ${CONFIG_STATUS=./config.status}
22853 ac_clean_files_save=$ac_clean_files
22854 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22855 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22856 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22857 cat >$CONFIG_STATUS <<_ACEOF
22858 #! $SHELL
22859 # Generated by $as_me.
22860 # Run this file to recreate the current configuration.
22861 # Compiler output produced by configure, useful for debugging
22862 # configure, is in config.log if it exists.
22863
22864 debug=false
22865 ac_cs_recheck=false
22866 ac_cs_silent=false
22867 SHELL=\${CONFIG_SHELL-$SHELL}
22868 _ACEOF
22869
22870 cat >>$CONFIG_STATUS <<\_ACEOF
22871 ## --------------------- ##
22872 ## M4sh Initialization.  ##
22873 ## --------------------- ##
22874
22875 # Be Bourne compatible
22876 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22877   emulate sh
22878   NULLCMD=:
22879   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22880   # is contrary to our usage.  Disable this feature.
22881   alias -g '${1+"$@"}'='"$@"'
22882 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22883   set -o posix
22884 fi
22885
22886 # Support unset when possible.
22887 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22888   as_unset=unset
22889 else
22890   as_unset=false
22891 fi
22892
22893
22894 # Work around bugs in pre-3.0 UWIN ksh.
22895 $as_unset ENV MAIL MAILPATH
22896 PS1='$ '
22897 PS2='> '
22898 PS4='+ '
22899
22900 # NLS nuisances.
22901 for as_var in \
22902   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22903   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22904   LC_TELEPHONE LC_TIME
22905 do
22906   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22907     eval $as_var=C; export $as_var
22908   else
22909     $as_unset $as_var
22910   fi
22911 done
22912
22913 # Required to use basename.
22914 if expr a : '\(a\)' >/dev/null 2>&1; then
22915   as_expr=expr
22916 else
22917   as_expr=false
22918 fi
22919
22920 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22921   as_basename=basename
22922 else
22923   as_basename=false
22924 fi
22925
22926
22927 # Name of the executable.
22928 as_me=`$as_basename "$0" ||
22929 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22930          X"$0" : 'X\(//\)$' \| \
22931          X"$0" : 'X\(/\)$' \| \
22932          .     : '\(.\)' 2>/dev/null ||
22933 echo X/"$0" |
22934     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22935           /^X\/\(\/\/\)$/{ s//\1/; q; }
22936           /^X\/\(\/\).*/{ s//\1/; q; }
22937           s/.*/./; q'`
22938
22939
22940 # PATH needs CR, and LINENO needs CR and PATH.
22941 # Avoid depending upon Character Ranges.
22942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22945 as_cr_digits='0123456789'
22946 as_cr_alnum=$as_cr_Letters$as_cr_digits
22947
22948 # The user is always right.
22949 if test "${PATH_SEPARATOR+set}" != set; then
22950   echo "#! /bin/sh" >conf$$.sh
22951   echo  "exit 0"   >>conf$$.sh
22952   chmod +x conf$$.sh
22953   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22954     PATH_SEPARATOR=';'
22955   else
22956     PATH_SEPARATOR=:
22957   fi
22958   rm -f conf$$.sh
22959 fi
22960
22961
22962   as_lineno_1=$LINENO
22963   as_lineno_2=$LINENO
22964   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22965   test "x$as_lineno_1" != "x$as_lineno_2" &&
22966   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22967   # Find who we are.  Look in the path if we contain no path at all
22968   # relative or not.
22969   case $0 in
22970     *[\\/]* ) as_myself=$0 ;;
22971     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22972 for as_dir in $PATH
22973 do
22974   IFS=$as_save_IFS
22975   test -z "$as_dir" && as_dir=.
22976   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22977 done
22978
22979        ;;
22980   esac
22981   # We did not find ourselves, most probably we were run as `sh COMMAND'
22982   # in which case we are not to be found in the path.
22983   if test "x$as_myself" = x; then
22984     as_myself=$0
22985   fi
22986   if test ! -f "$as_myself"; then
22987     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22988 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22989    { (exit 1); exit 1; }; }
22990   fi
22991   case $CONFIG_SHELL in
22992   '')
22993     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22994 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22995 do
22996   IFS=$as_save_IFS
22997   test -z "$as_dir" && as_dir=.
22998   for as_base in sh bash ksh sh5; do
22999          case $as_dir in
23000          /*)
23001            if ("$as_dir/$as_base" -c '
23002   as_lineno_1=$LINENO
23003   as_lineno_2=$LINENO
23004   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23005   test "x$as_lineno_1" != "x$as_lineno_2" &&
23006   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23007              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23008              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23009              CONFIG_SHELL=$as_dir/$as_base
23010              export CONFIG_SHELL
23011              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23012            fi;;
23013          esac
23014        done
23015 done
23016 ;;
23017   esac
23018
23019   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23020   # uniformly replaced by the line number.  The first 'sed' inserts a
23021   # line-number line before each line; the second 'sed' does the real
23022   # work.  The second script uses 'N' to pair each line-number line
23023   # with the numbered line, and appends trailing '-' during
23024   # substitution so that $LINENO is not a special case at line end.
23025   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23026   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23027   sed '=' <$as_myself |
23028     sed '
23029       N
23030       s,$,-,
23031       : loop
23032       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23033       t loop
23034       s,-$,,
23035       s,^['$as_cr_digits']*\n,,
23036     ' >$as_me.lineno &&
23037   chmod +x $as_me.lineno ||
23038     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23039 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23040    { (exit 1); exit 1; }; }
23041
23042   # Don't try to exec as it changes $[0], causing all sort of problems
23043   # (the dirname of $[0] is not the place where we might find the
23044   # original and so on.  Autoconf is especially sensible to this).
23045   . ./$as_me.lineno
23046   # Exit status is that of the last command.
23047   exit
23048 }
23049
23050
23051 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23052   *c*,-n*) ECHO_N= ECHO_C='
23053 ' ECHO_T='      ' ;;
23054   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23055   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23056 esac
23057
23058 if expr a : '\(a\)' >/dev/null 2>&1; then
23059   as_expr=expr
23060 else
23061   as_expr=false
23062 fi
23063
23064 rm -f conf$$ conf$$.exe conf$$.file
23065 echo >conf$$.file
23066 if ln -s conf$$.file conf$$ 2>/dev/null; then
23067   # We could just check for DJGPP; but this test a) works b) is more generic
23068   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23069   if test -f conf$$.exe; then
23070     # Don't use ln at all; we don't have any links
23071     as_ln_s='cp -p'
23072   else
23073     as_ln_s='ln -s'
23074   fi
23075 elif ln conf$$.file conf$$ 2>/dev/null; then
23076   as_ln_s=ln
23077 else
23078   as_ln_s='cp -p'
23079 fi
23080 rm -f conf$$ conf$$.exe conf$$.file
23081
23082 if mkdir -p . 2>/dev/null; then
23083   as_mkdir_p=:
23084 else
23085   as_mkdir_p=false
23086 fi
23087
23088 as_executable_p="test -f"
23089
23090 # Sed expression to map a string onto a valid CPP name.
23091 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23092
23093 # Sed expression to map a string onto a valid variable name.
23094 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23095
23096
23097 # IFS
23098 # We need space, tab and new line, in precisely that order.
23099 as_nl='
23100 '
23101 IFS="   $as_nl"
23102
23103 # CDPATH.
23104 $as_unset CDPATH
23105
23106 exec 6>&1
23107
23108 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23109 # report actual input values of CONFIG_FILES etc. instead of their
23110 # values after options handling.  Logging --version etc. is OK.
23111 exec 5>>config.log
23112 {
23113   echo
23114   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23115 ## Running $as_me. ##
23116 _ASBOX
23117 } >&5
23118 cat >&5 <<_CSEOF
23119
23120 This file was extended by [LLVM] $as_me [1.0], which was
23121 generated by GNU Autoconf 2.57.  Invocation command line was
23122
23123   CONFIG_FILES    = $CONFIG_FILES
23124   CONFIG_HEADERS  = $CONFIG_HEADERS
23125   CONFIG_LINKS    = $CONFIG_LINKS
23126   CONFIG_COMMANDS = $CONFIG_COMMANDS
23127   $ $0 $@
23128
23129 _CSEOF
23130 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23131 echo >&5
23132 _ACEOF
23133
23134 # Files that config.status was made for.
23135 if test -n "$ac_config_files"; then
23136   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23137 fi
23138
23139 if test -n "$ac_config_headers"; then
23140   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23141 fi
23142
23143 if test -n "$ac_config_links"; then
23144   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23145 fi
23146
23147 if test -n "$ac_config_commands"; then
23148   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23149 fi
23150
23151 cat >>$CONFIG_STATUS <<\_ACEOF
23152
23153 ac_cs_usage="\
23154 \`$as_me' instantiates files from templates according to the
23155 current configuration.
23156
23157 Usage: $0 [OPTIONS] [FILE]...
23158
23159   -h, --help       print this help, then exit
23160   -V, --version    print version number, then exit
23161   -q, --quiet      do not print progress messages
23162   -d, --debug      don't remove temporary files
23163       --recheck    update $as_me by reconfiguring in the same conditions
23164   --file=FILE[:TEMPLATE]
23165                    instantiate the configuration file FILE
23166   --header=FILE[:TEMPLATE]
23167                    instantiate the configuration header FILE
23168
23169 Configuration files:
23170 $config_files
23171
23172 Configuration headers:
23173 $config_headers
23174
23175 Configuration commands:
23176 $config_commands
23177
23178 Report bugs to <bug-autoconf@gnu.org>."
23179 _ACEOF
23180
23181 cat >>$CONFIG_STATUS <<_ACEOF
23182 ac_cs_version="\\
23183 [LLVM] config.status [1.0]
23184 configured by $0, generated by GNU Autoconf 2.57,
23185   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23186
23187 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23188 Free Software Foundation, Inc.
23189 This config.status script is free software; the Free Software Foundation
23190 gives unlimited permission to copy, distribute and modify it."
23191 srcdir=$srcdir
23192 INSTALL="$INSTALL"
23193 _ACEOF
23194
23195 cat >>$CONFIG_STATUS <<\_ACEOF
23196 # If no file are specified by the user, then we need to provide default
23197 # value.  By we need to know if files were specified by the user.
23198 ac_need_defaults=:
23199 while test $# != 0
23200 do
23201   case $1 in
23202   --*=*)
23203     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23204     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23205     ac_shift=:
23206     ;;
23207   -*)
23208     ac_option=$1
23209     ac_optarg=$2
23210     ac_shift=shift
23211     ;;
23212   *) # This is not an option, so the user has probably given explicit
23213      # arguments.
23214      ac_option=$1
23215      ac_need_defaults=false;;
23216   esac
23217
23218   case $ac_option in
23219   # Handling of the options.
23220 _ACEOF
23221 cat >>$CONFIG_STATUS <<\_ACEOF
23222   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23223     ac_cs_recheck=: ;;
23224   --version | --vers* | -V )
23225     echo "$ac_cs_version"; exit 0 ;;
23226   --he | --h)
23227     # Conflict between --help and --header
23228     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23229 Try \`$0 --help' for more information." >&5
23230 echo "$as_me: error: ambiguous option: $1
23231 Try \`$0 --help' for more information." >&2;}
23232    { (exit 1); exit 1; }; };;
23233   --help | --hel | -h )
23234     echo "$ac_cs_usage"; exit 0 ;;
23235   --debug | --d* | -d )
23236     debug=: ;;
23237   --file | --fil | --fi | --f )
23238     $ac_shift
23239     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23240     ac_need_defaults=false;;
23241   --header | --heade | --head | --hea )
23242     $ac_shift
23243     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23244     ac_need_defaults=false;;
23245   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23246   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23247     ac_cs_silent=: ;;
23248
23249   # This is an error.
23250   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23251 Try \`$0 --help' for more information." >&5
23252 echo "$as_me: error: unrecognized option: $1
23253 Try \`$0 --help' for more information." >&2;}
23254    { (exit 1); exit 1; }; } ;;
23255
23256   *) ac_config_targets="$ac_config_targets $1" ;;
23257
23258   esac
23259   shift
23260 done
23261
23262 ac_configure_extra_args=
23263
23264 if $ac_cs_silent; then
23265   exec 6>/dev/null
23266   ac_configure_extra_args="$ac_configure_extra_args --silent"
23267 fi
23268
23269 _ACEOF
23270 cat >>$CONFIG_STATUS <<_ACEOF
23271 if \$ac_cs_recheck; then
23272   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23273   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23274 fi
23275
23276 _ACEOF
23277
23278 cat >>$CONFIG_STATUS <<_ACEOF
23279 #
23280 # INIT-COMMANDS section.
23281 #
23282
23283 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23284 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23285 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23286 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23287 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23288 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23289 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23290 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23291 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23292 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23293 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23294 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23295 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23296 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23297 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23298 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23299 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23300 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23301 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23302 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23303 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23304 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23305 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23306 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23307 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23308 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23309 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23310 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23311 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23312 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23313 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23314 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23315 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23316 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23317 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23318 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23319 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23320 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23321 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23322 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23323 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23324 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23325 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23326 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23327 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23328 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23329 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23330 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23331 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23332 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23333 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23334 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
23335 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23336 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23337 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23338 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23339 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23340 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23341 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23342 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23343 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23344 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23345 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23346 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23347 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23348 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23349 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23350 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23351 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23352 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23353 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23354 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23355 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23356 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23357 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23358 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23359 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23360 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23363 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23364 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23367 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23457
23458 _ACEOF
23459
23460
23461
23462 cat >>$CONFIG_STATUS <<\_ACEOF
23463 for ac_config_target in $ac_config_targets
23464 do
23465   case "$ac_config_target" in
23466   # Handling of arguments.
23467   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23468   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23469   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23470   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23471   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23472   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23473   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23474   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23475   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23476   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23477   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23478   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23479   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23480   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23481   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23482   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23483   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23484   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23485   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23486   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23487   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23488   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23489   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23490   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23491   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23492   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23493   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23494   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23495   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23496   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23497   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23498   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23499   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23500   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23501   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23502   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23503   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23504   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23505   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23506   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23507   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23508   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23509   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23510   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23511   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23512   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23513   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23514   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23515   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23516   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23517   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23518   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23519   "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
23520   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23521   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23522   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23523   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23524   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23525   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23526   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23527   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23528   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23529   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23530   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23531   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23532   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23533   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23534   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23535   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23536   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23537   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23538   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23539   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23540   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23541   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23542   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23543   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23544   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23545   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23546   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23547   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23548   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23549   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23550   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23551   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23552   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23553   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23554   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23555   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23556   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23557   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23558   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23559   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23560   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23561   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23562   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23563   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23564   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23565   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23566   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23567   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23568   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23569   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23570   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23571   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23572   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23573   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23574   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23575   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23576   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23577   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23578   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23579   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23580   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23581   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23582   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23583   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23584   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23585   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23586   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23587   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23588   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23589   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23590   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23591   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23592   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23593   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23594   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23595   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23596   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23597   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23598   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23599   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23600   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23601   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23602   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23603   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23604   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23605   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23606   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23607   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23608   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23609   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23610   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23611   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23612   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23613   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23614   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23615   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23616   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23617   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23618   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23619   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23620   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23621   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23622   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23623   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23624   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23625   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23626   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23627   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23628   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23629   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23630   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23631   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23632   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23633   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23634   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23635   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23636   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23637   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23638   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23639   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23640   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23641   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23642   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23643   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23644 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23645    { (exit 1); exit 1; }; };;
23646   esac
23647 done
23648
23649 # If the user did not use the arguments to specify the items to instantiate,
23650 # then the envvar interface is used.  Set only those that are not.
23651 # We use the long form for the default assignment because of an extremely
23652 # bizarre bug on SunOS 4.1.3.
23653 if $ac_need_defaults; then
23654   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23655   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23656   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23657 fi
23658
23659 # Have a temporary directory for convenience.  Make it in the build tree
23660 # simply because there is no reason to put it here, and in addition,
23661 # creating and moving files from /tmp can sometimes cause problems.
23662 # Create a temporary directory, and hook for its removal unless debugging.
23663 $debug ||
23664 {
23665   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23666   trap '{ (exit 1); exit 1; }' 1 2 13 15
23667 }
23668
23669 # Create a (secure) tmp directory for tmp files.
23670
23671 {
23672   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23673   test -n "$tmp" && test -d "$tmp"
23674 }  ||
23675 {
23676   tmp=./confstat$$-$RANDOM
23677   (umask 077 && mkdir $tmp)
23678 } ||
23679 {
23680    echo "$me: cannot create a temporary directory in ." >&2
23681    { (exit 1); exit 1; }
23682 }
23683
23684 _ACEOF
23685
23686 cat >>$CONFIG_STATUS <<_ACEOF
23687
23688 #
23689 # CONFIG_FILES section.
23690 #
23691
23692 # No need to generate the scripts if there are no CONFIG_FILES.
23693 # This happens for instance when ./config.status config.h
23694 if test -n "\$CONFIG_FILES"; then
23695   # Protect against being on the right side of a sed subst in config.status.
23696   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23697    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23698 s,@SHELL@,$SHELL,;t t
23699 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23700 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23701 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23702 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23703 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23704 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23705 s,@exec_prefix@,$exec_prefix,;t t
23706 s,@prefix@,$prefix,;t t
23707 s,@program_transform_name@,$program_transform_name,;t t
23708 s,@bindir@,$bindir,;t t
23709 s,@sbindir@,$sbindir,;t t
23710 s,@libexecdir@,$libexecdir,;t t
23711 s,@datadir@,$datadir,;t t
23712 s,@sysconfdir@,$sysconfdir,;t t
23713 s,@sharedstatedir@,$sharedstatedir,;t t
23714 s,@localstatedir@,$localstatedir,;t t
23715 s,@libdir@,$libdir,;t t
23716 s,@includedir@,$includedir,;t t
23717 s,@oldincludedir@,$oldincludedir,;t t
23718 s,@infodir@,$infodir,;t t
23719 s,@mandir@,$mandir,;t t
23720 s,@build_alias@,$build_alias,;t t
23721 s,@host_alias@,$host_alias,;t t
23722 s,@target_alias@,$target_alias,;t t
23723 s,@DEFS@,$DEFS,;t t
23724 s,@ECHO_C@,$ECHO_C,;t t
23725 s,@ECHO_N@,$ECHO_N,;t t
23726 s,@ECHO_T@,$ECHO_T,;t t
23727 s,@LIBS@,$LIBS,;t t
23728 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23729 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23730 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23731 s,@build@,$build,;t t
23732 s,@build_cpu@,$build_cpu,;t t
23733 s,@build_vendor@,$build_vendor,;t t
23734 s,@build_os@,$build_os,;t t
23735 s,@host@,$host,;t t
23736 s,@host_cpu@,$host_cpu,;t t
23737 s,@host_vendor@,$host_vendor,;t t
23738 s,@host_os@,$host_os,;t t
23739 s,@target@,$target,;t t
23740 s,@target_cpu@,$target_cpu,;t t
23741 s,@target_vendor@,$target_vendor,;t t
23742 s,@target_os@,$target_os,;t t
23743 s,@OS@,$OS,;t t
23744 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23745 s,@ARCH@,$ARCH,;t t
23746 s,@CXX@,$CXX,;t t
23747 s,@CXXFLAGS@,$CXXFLAGS,;t t
23748 s,@LDFLAGS@,$LDFLAGS,;t t
23749 s,@CPPFLAGS@,$CPPFLAGS,;t t
23750 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23751 s,@EXEEXT@,$EXEEXT,;t t
23752 s,@OBJEXT@,$OBJEXT,;t t
23753 s,@CC@,$CC,;t t
23754 s,@CFLAGS@,$CFLAGS,;t t
23755 s,@ac_ct_CC@,$ac_ct_CC,;t t
23756 s,@CPP@,$CPP,;t t
23757 s,@ifGNUmake@,$ifGNUmake,;t t
23758 s,@LEX@,$LEX,;t t
23759 s,@LEXLIB@,$LEXLIB,;t t
23760 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23761 s,@YACC@,$YACC,;t t
23762 s,@EGREP@,$EGREP,;t t
23763 s,@LN_S@,$LN_S,;t t
23764 s,@ECHO@,$ECHO,;t t
23765 s,@AR@,$AR,;t t
23766 s,@ac_ct_AR@,$ac_ct_AR,;t t
23767 s,@RANLIB@,$RANLIB,;t t
23768 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23769 s,@STRIP@,$STRIP,;t t
23770 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23771 s,@CXXCPP@,$CXXCPP,;t t
23772 s,@F77@,$F77,;t t
23773 s,@FFLAGS@,$FFLAGS,;t t
23774 s,@ac_ct_F77@,$ac_ct_F77,;t t
23775 s,@LIBTOOL@,$LIBTOOL,;t t
23776 s,@RPWD@,$RPWD,;t t
23777 s,@SED@,$SED,;t t
23778 s,@RM@,$RM,;t t
23779 s,@MKDIR@,$MKDIR,;t t
23780 s,@DATE@,$DATE,;t t
23781 s,@MV@,$MV,;t t
23782 s,@DOT@,$DOT,;t t
23783 s,@ETAGS@,$ETAGS,;t t
23784 s,@PURIFY@,$PURIFY,;t t
23785 s,@PYTHON@,$PYTHON,;t t
23786 s,@QMTEST@,$QMTEST,;t t
23787 s,@ALLOCA@,$ALLOCA,;t t
23788 s,@LIBOBJS@,$LIBOBJS,;t t
23789 s,@MMAP_FILE@,$MMAP_FILE,;t t
23790 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23791 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23792 s,@USE_SPEC@,$USE_SPEC,;t t
23793 s,@UPB@,$UPB,;t t
23794 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23795 s,@JIT@,$JIT,;t t
23796 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23797 s,@BCR@,$BCR,;t t
23798 s,@PAPIDIR@,$PAPIDIR,;t t
23799 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23800 CEOF
23801
23802 _ACEOF
23803
23804   cat >>$CONFIG_STATUS <<\_ACEOF
23805   # Split the substitutions into bite-sized pieces for seds with
23806   # small command number limits, like on Digital OSF/1 and HP-UX.
23807   ac_max_sed_lines=48
23808   ac_sed_frag=1 # Number of current file.
23809   ac_beg=1 # First line for current file.
23810   ac_end=$ac_max_sed_lines # Line after last line for current file.
23811   ac_more_lines=:
23812   ac_sed_cmds=
23813   while $ac_more_lines; do
23814     if test $ac_beg -gt 1; then
23815       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23816     else
23817       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23818     fi
23819     if test ! -s $tmp/subs.frag; then
23820       ac_more_lines=false
23821     else
23822       # The purpose of the label and of the branching condition is to
23823       # speed up the sed processing (if there are no `@' at all, there
23824       # is no need to browse any of the substitutions).
23825       # These are the two extra sed commands mentioned above.
23826       (echo ':t
23827   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23828       if test -z "$ac_sed_cmds"; then
23829         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23830       else
23831         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23832       fi
23833       ac_sed_frag=`expr $ac_sed_frag + 1`
23834       ac_beg=$ac_end
23835       ac_end=`expr $ac_end + $ac_max_sed_lines`
23836     fi
23837   done
23838   if test -z "$ac_sed_cmds"; then
23839     ac_sed_cmds=cat
23840   fi
23841 fi # test -n "$CONFIG_FILES"
23842
23843 _ACEOF
23844 cat >>$CONFIG_STATUS <<\_ACEOF
23845 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23846   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23847   case $ac_file in
23848   - | *:- | *:-:* ) # input from stdin
23849         cat >$tmp/stdin
23850         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23851         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23852   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23853         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23854   * )   ac_file_in=$ac_file.in ;;
23855   esac
23856
23857   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23858   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23860          X"$ac_file" : 'X\(//\)[^/]' \| \
23861          X"$ac_file" : 'X\(//\)$' \| \
23862          X"$ac_file" : 'X\(/\)' \| \
23863          .     : '\(.\)' 2>/dev/null ||
23864 echo X"$ac_file" |
23865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23867           /^X\(\/\/\)$/{ s//\1/; q; }
23868           /^X\(\/\).*/{ s//\1/; q; }
23869           s/.*/./; q'`
23870   { if $as_mkdir_p; then
23871     mkdir -p "$ac_dir"
23872   else
23873     as_dir="$ac_dir"
23874     as_dirs=
23875     while test ! -d "$as_dir"; do
23876       as_dirs="$as_dir $as_dirs"
23877       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23879          X"$as_dir" : 'X\(//\)[^/]' \| \
23880          X"$as_dir" : 'X\(//\)$' \| \
23881          X"$as_dir" : 'X\(/\)' \| \
23882          .     : '\(.\)' 2>/dev/null ||
23883 echo X"$as_dir" |
23884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23885           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23886           /^X\(\/\/\)$/{ s//\1/; q; }
23887           /^X\(\/\).*/{ s//\1/; q; }
23888           s/.*/./; q'`
23889     done
23890     test ! -n "$as_dirs" || mkdir $as_dirs
23891   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23892 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23893    { (exit 1); exit 1; }; }; }
23894
23895   ac_builddir=.
23896
23897 if test "$ac_dir" != .; then
23898   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23899   # A "../" for each directory in $ac_dir_suffix.
23900   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23901 else
23902   ac_dir_suffix= ac_top_builddir=
23903 fi
23904
23905 case $srcdir in
23906   .)  # No --srcdir option.  We are building in place.
23907     ac_srcdir=.
23908     if test -z "$ac_top_builddir"; then
23909        ac_top_srcdir=.
23910     else
23911        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23912     fi ;;
23913   [\\/]* | ?:[\\/]* )  # Absolute path.
23914     ac_srcdir=$srcdir$ac_dir_suffix;
23915     ac_top_srcdir=$srcdir ;;
23916   *) # Relative path.
23917     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23918     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23919 esac
23920 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23921 # absolute.
23922 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23923 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23924 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23925 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23926
23927
23928   case $INSTALL in
23929   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23930   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23931   esac
23932
23933   if test x"$ac_file" != x-; then
23934     { echo "$as_me:$LINENO: creating $ac_file" >&5
23935 echo "$as_me: creating $ac_file" >&6;}
23936     rm -f "$ac_file"
23937   fi
23938   # Let's still pretend it is `configure' which instantiates (i.e., don't
23939   # use $as_me), people would be surprised to read:
23940   #    /* config.h.  Generated by config.status.  */
23941   if test x"$ac_file" = x-; then
23942     configure_input=
23943   else
23944     configure_input="$ac_file.  "
23945   fi
23946   configure_input=$configure_input"Generated from `echo $ac_file_in |
23947                                      sed 's,.*/,,'` by configure."
23948
23949   # First look for the input files in the build tree, otherwise in the
23950   # src tree.
23951   ac_file_inputs=`IFS=:
23952     for f in $ac_file_in; do
23953       case $f in
23954       -) echo $tmp/stdin ;;
23955       [\\/$]*)
23956          # Absolute (can't be DOS-style, as IFS=:)
23957          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23958 echo "$as_me: error: cannot find input file: $f" >&2;}
23959    { (exit 1); exit 1; }; }
23960          echo $f;;
23961       *) # Relative
23962          if test -f "$f"; then
23963            # Build tree
23964            echo $f
23965          elif test -f "$srcdir/$f"; then
23966            # Source tree
23967            echo $srcdir/$f
23968          else
23969            # /dev/null tree
23970            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23971 echo "$as_me: error: cannot find input file: $f" >&2;}
23972    { (exit 1); exit 1; }; }
23973          fi;;
23974       esac
23975     done` || { (exit 1); exit 1; }
23976 _ACEOF
23977 cat >>$CONFIG_STATUS <<_ACEOF
23978   sed "$ac_vpsub
23979 $extrasub
23980 _ACEOF
23981 cat >>$CONFIG_STATUS <<\_ACEOF
23982 :t
23983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23984 s,@configure_input@,$configure_input,;t t
23985 s,@srcdir@,$ac_srcdir,;t t
23986 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23987 s,@top_srcdir@,$ac_top_srcdir,;t t
23988 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23989 s,@builddir@,$ac_builddir,;t t
23990 s,@abs_builddir@,$ac_abs_builddir,;t t
23991 s,@top_builddir@,$ac_top_builddir,;t t
23992 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23993 s,@INSTALL@,$ac_INSTALL,;t t
23994 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23995   rm -f $tmp/stdin
23996   if test x"$ac_file" != x-; then
23997     mv $tmp/out $ac_file
23998   else
23999     cat $tmp/out
24000     rm -f $tmp/out
24001   fi
24002
24003 done
24004 _ACEOF
24005 cat >>$CONFIG_STATUS <<\_ACEOF
24006
24007 #
24008 # CONFIG_HEADER section.
24009 #
24010
24011 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24012 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24013 #
24014 # ac_d sets the value in "#define NAME VALUE" lines.
24015 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24016 ac_dB='[        ].*$,\1#\2'
24017 ac_dC=' '
24018 ac_dD=',;t'
24019 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24020 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24021 ac_uB='$,\1#\2define\3'
24022 ac_uC=' '
24023 ac_uD=',;t'
24024
24025 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24026   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24027   case $ac_file in
24028   - | *:- | *:-:* ) # input from stdin
24029         cat >$tmp/stdin
24030         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24031         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24032   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24033         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24034   * )   ac_file_in=$ac_file.in ;;
24035   esac
24036
24037   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24038 echo "$as_me: creating $ac_file" >&6;}
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   # Remove the trailing spaces.
24068   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24069
24070 _ACEOF
24071
24072 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24073 # `conftest.undefs', that substitutes the proper values into
24074 # config.h.in to produce config.h.  The first handles `#define'
24075 # templates, and the second `#undef' templates.
24076 # And first: Protect against being on the right side of a sed subst in
24077 # config.status.  Protect against being in an unquoted here document
24078 # in config.status.
24079 rm -f conftest.defines conftest.undefs
24080 # Using a here document instead of a string reduces the quoting nightmare.
24081 # Putting comments in sed scripts is not portable.
24082 #
24083 # `end' is used to avoid that the second main sed command (meant for
24084 # 0-ary CPP macros) applies to n-ary macro definitions.
24085 # See the Autoconf documentation for `clear'.
24086 cat >confdef2sed.sed <<\_ACEOF
24087 s/[\\&,]/\\&/g
24088 s,[\\$`],\\&,g
24089 t clear
24090 : clear
24091 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24092 t end
24093 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24094 : end
24095 _ACEOF
24096 # If some macros were called several times there might be several times
24097 # the same #defines, which is useless.  Nevertheless, we may not want to
24098 # sort them, since we want the *last* AC-DEFINE to be honored.
24099 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24100 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24101 rm -f confdef2sed.sed
24102
24103 # This sed command replaces #undef with comments.  This is necessary, for
24104 # example, in the case of _POSIX_SOURCE, which is predefined and required
24105 # on some systems where configure will not decide to define it.
24106 cat >>conftest.undefs <<\_ACEOF
24107 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24108 _ACEOF
24109
24110 # Break up conftest.defines because some shells have a limit on the size
24111 # of here documents, and old seds have small limits too (100 cmds).
24112 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24113 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24114 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24115 echo '  :' >>$CONFIG_STATUS
24116 rm -f conftest.tail
24117 while grep . conftest.defines >/dev/null
24118 do
24119   # Write a limited-size here document to $tmp/defines.sed.
24120   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24121   # Speed up: don't consider the non `#define' lines.
24122   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24123   # Work around the forget-to-reset-the-flag bug.
24124   echo 't clr' >>$CONFIG_STATUS
24125   echo ': clr' >>$CONFIG_STATUS
24126   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24127   echo 'CEOF
24128   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24129   rm -f $tmp/in
24130   mv $tmp/out $tmp/in
24131 ' >>$CONFIG_STATUS
24132   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24133   rm -f conftest.defines
24134   mv conftest.tail conftest.defines
24135 done
24136 rm -f conftest.defines
24137 echo '  fi # grep' >>$CONFIG_STATUS
24138 echo >>$CONFIG_STATUS
24139
24140 # Break up conftest.undefs because some shells have a limit on the size
24141 # of here documents, and old seds have small limits too (100 cmds).
24142 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24143 rm -f conftest.tail
24144 while grep . conftest.undefs >/dev/null
24145 do
24146   # Write a limited-size here document to $tmp/undefs.sed.
24147   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24148   # Speed up: don't consider the non `#undef'
24149   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24150   # Work around the forget-to-reset-the-flag bug.
24151   echo 't clr' >>$CONFIG_STATUS
24152   echo ': clr' >>$CONFIG_STATUS
24153   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24154   echo 'CEOF
24155   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24156   rm -f $tmp/in
24157   mv $tmp/out $tmp/in
24158 ' >>$CONFIG_STATUS
24159   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24160   rm -f conftest.undefs
24161   mv conftest.tail conftest.undefs
24162 done
24163 rm -f conftest.undefs
24164
24165 cat >>$CONFIG_STATUS <<\_ACEOF
24166   # Let's still pretend it is `configure' which instantiates (i.e., don't
24167   # use $as_me), people would be surprised to read:
24168   #    /* config.h.  Generated by config.status.  */
24169   if test x"$ac_file" = x-; then
24170     echo "/* Generated by configure.  */" >$tmp/config.h
24171   else
24172     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24173   fi
24174   cat $tmp/in >>$tmp/config.h
24175   rm -f $tmp/in
24176   if test x"$ac_file" != x-; then
24177     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24178       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24179 echo "$as_me: $ac_file is unchanged" >&6;}
24180     else
24181       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24182 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24183          X"$ac_file" : 'X\(//\)[^/]' \| \
24184          X"$ac_file" : 'X\(//\)$' \| \
24185          X"$ac_file" : 'X\(/\)' \| \
24186          .     : '\(.\)' 2>/dev/null ||
24187 echo X"$ac_file" |
24188     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24189           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24190           /^X\(\/\/\)$/{ s//\1/; q; }
24191           /^X\(\/\).*/{ s//\1/; q; }
24192           s/.*/./; q'`
24193       { if $as_mkdir_p; then
24194     mkdir -p "$ac_dir"
24195   else
24196     as_dir="$ac_dir"
24197     as_dirs=
24198     while test ! -d "$as_dir"; do
24199       as_dirs="$as_dir $as_dirs"
24200       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24202          X"$as_dir" : 'X\(//\)[^/]' \| \
24203          X"$as_dir" : 'X\(//\)$' \| \
24204          X"$as_dir" : 'X\(/\)' \| \
24205          .     : '\(.\)' 2>/dev/null ||
24206 echo X"$as_dir" |
24207     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24208           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24209           /^X\(\/\/\)$/{ s//\1/; q; }
24210           /^X\(\/\).*/{ s//\1/; q; }
24211           s/.*/./; q'`
24212     done
24213     test ! -n "$as_dirs" || mkdir $as_dirs
24214   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24215 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24216    { (exit 1); exit 1; }; }; }
24217
24218       rm -f $ac_file
24219       mv $tmp/config.h $ac_file
24220     fi
24221   else
24222     cat $tmp/config.h
24223     rm -f $tmp/config.h
24224   fi
24225 done
24226 _ACEOF
24227 cat >>$CONFIG_STATUS <<\_ACEOF
24228
24229 #
24230 # CONFIG_COMMANDS section.
24231 #
24232 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24233   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24234   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24235   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24236 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24237          X"$ac_dest" : 'X\(//\)[^/]' \| \
24238          X"$ac_dest" : 'X\(//\)$' \| \
24239          X"$ac_dest" : 'X\(/\)' \| \
24240          .     : '\(.\)' 2>/dev/null ||
24241 echo X"$ac_dest" |
24242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24243           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24244           /^X\(\/\/\)$/{ s//\1/; q; }
24245           /^X\(\/\).*/{ s//\1/; q; }
24246           s/.*/./; q'`
24247   ac_builddir=.
24248
24249 if test "$ac_dir" != .; then
24250   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24251   # A "../" for each directory in $ac_dir_suffix.
24252   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24253 else
24254   ac_dir_suffix= ac_top_builddir=
24255 fi
24256
24257 case $srcdir in
24258   .)  # No --srcdir option.  We are building in place.
24259     ac_srcdir=.
24260     if test -z "$ac_top_builddir"; then
24261        ac_top_srcdir=.
24262     else
24263        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24264     fi ;;
24265   [\\/]* | ?:[\\/]* )  # Absolute path.
24266     ac_srcdir=$srcdir$ac_dir_suffix;
24267     ac_top_srcdir=$srcdir ;;
24268   *) # Relative path.
24269     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24270     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24271 esac
24272 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24273 # absolute.
24274 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24275 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24276 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24277 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24278
24279
24280   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24281 echo "$as_me: executing $ac_dest commands" >&6;}
24282   case $ac_dest in
24283     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24284     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24285     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24286     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24287     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24288     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24289     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24290     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24291     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24292     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24293     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24294     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24295     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24296     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24297     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24298     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24299     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24300     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24301     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24302     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24303     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24304     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24305     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24306     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24307     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24308     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24309     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24310     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24311     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24312     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24313     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24314     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24315     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24316     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24317     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24318     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24319     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24320     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24321     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24322     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24323     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24324     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24325     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24326     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24327     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24328     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24329     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24330     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24331     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24332     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24333     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24334     test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
24335     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24336     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24337     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24338     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24339     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24340     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24341     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24342     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24343     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24344     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24345     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24346     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24347     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24348     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24349     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24350     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24351     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24352     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24353     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 ;;
24354     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 ;;
24355     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 ;;
24356     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 ;;
24357     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 ;;
24358     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 ;;
24359     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 ;;
24360     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 ;;
24361     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 ;;
24362     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 ;;
24363     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 ;;
24364     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 ;;
24365     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 ;;
24366     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 ;;
24367     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 ;;
24368     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 ;;
24369     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24370     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24371     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24372     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24373     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 ;;
24374     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 ;;
24375     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 ;;
24376     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24377     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 ;;
24378     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 ;;
24379     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 ;;
24380     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 ;;
24381     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 ;;
24382     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 ;;
24383     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 ;;
24384     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 ;;
24385     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 ;;
24386     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 ;;
24387     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 ;;
24388     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 ;;
24389     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 ;;
24390     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 ;;
24391     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 ;;
24392     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 ;;
24393     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 ;;
24394     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 ;;
24395     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 ;;
24396     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 ;;
24397     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 ;;
24398     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 ;;
24399     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 ;;
24400     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 ;;
24401     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 ;;
24402     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 ;;
24403     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 ;;
24404     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 ;;
24405     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 ;;
24406     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 ;;
24407     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 ;;
24408     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 ;;
24409     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24410     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24411     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24412     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 ;;
24413     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24414     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24415     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24416     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24417     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24418     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24419     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 ;;
24420     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 ;;
24421     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 ;;
24422     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 ;;
24423     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24424     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24425     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 ;;
24426     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24427     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24428     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24429     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24430     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24431     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24432     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24433     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24434     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24435     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24436     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24437     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24438     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24439     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24440     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24441     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24442     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24443     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24444     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24445     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24446     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24447     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24448     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24449     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24450     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24451     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24452     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24453     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24454     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24455     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24456     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24457   esac
24458 done
24459 _ACEOF
24460
24461 cat >>$CONFIG_STATUS <<\_ACEOF
24462
24463 { (exit 0); exit 0; }
24464 _ACEOF
24465 chmod +x $CONFIG_STATUS
24466 ac_clean_files=$ac_clean_files_save
24467
24468
24469 # configure is writing to config.log, and then calls config.status.
24470 # config.status does its own redirection, appending to config.log.
24471 # Unfortunately, on DOS this fails, as config.log is still kept open
24472 # by configure, so config.status won't be able to write to it; its
24473 # output is simply discarded.  So we exec the FD to /dev/null,
24474 # effectively closing config.log, so it can be properly (re)opened and
24475 # appended to by config.status.  When coming back to configure, we
24476 # need to make the FD available again.
24477 if test "$no_create" != yes; then
24478   ac_cs_success=:
24479   ac_config_status_args=
24480   test "$silent" = yes &&
24481     ac_config_status_args="$ac_config_status_args --quiet"
24482   exec 5>/dev/null
24483   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24484   exec 5>>config.log
24485   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24486   # would make configure fail if this is the last instruction.
24487   $ac_cs_success || { (exit 1); exit 1; }
24488 fi
24489