Caught a few misses in the last modification.
[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           ac_config_headers="$ac_config_headers include/Config/config.h"
1513
1514           ac_config_commands="$ac_config_commands Makefile"
1515
1516
1517           ac_config_commands="$ac_config_commands Makefile.common"
1518
1519
1520           ac_config_commands="$ac_config_commands Makefile.rules"
1521
1522
1523           ac_config_commands="$ac_config_commands lib/Makefile"
1524
1525
1526           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1527
1528
1529           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1530
1531
1532           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1533
1534
1535           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1536
1537
1538           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1539
1540
1541           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1542
1543
1544           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1545
1546
1547           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1548
1549
1550           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1554
1555
1556           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands runtime/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libexception/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Makefile.tests"
1668
1669
1670           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1674
1675
1676           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1680
1681
1682           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1683
1684
1685           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1686
1687
1688           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1692
1693
1694           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1695
1696
1697           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1704
1705
1706           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1707
1708
1709           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands tools/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands tools/as/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands tools/dis/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands tools/link/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands tools/opt/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands utils/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
1992
1993
1994           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands www/docs/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands projects/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2010
2011
2012           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2013
2014
2015           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2016
2017
2018           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2031
2032
2033           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2034
2035
2036           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2037
2038
2039
2040
2041 # Find a good install program.  We prefer a C program (faster),
2042 # so one script is as good as another.  But avoid the broken or
2043 # incompatible versions:
2044 # SysV /etc/install, /usr/sbin/install
2045 # SunOS /usr/etc/install
2046 # IRIX /sbin/install
2047 # AIX /bin/install
2048 # AmigaOS /C/install, which installs bootblocks on floppy discs
2049 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2050 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2051 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2052 # ./install, which can be erroneously created by make from ./install.sh.
2053 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2054 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2055 if test -z "$INSTALL"; then
2056 if test "${ac_cv_path_install+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   # Account for people who put trailing slashes in PATH elements.
2065 case $as_dir/ in
2066   ./ | .// | /cC/* | \
2067   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2068   /usr/ucb/* ) ;;
2069   *)
2070     # OSF1 and SCO ODT 3.0 have their own names for install.
2071     # Don't use installbsd from OSF since it installs stuff as root
2072     # by default.
2073     for ac_prog in ginstall scoinst install; do
2074       for ac_exec_ext in '' $ac_executable_extensions; do
2075         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2076           if test $ac_prog = install &&
2077             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2078             # AIX install.  It has an incompatible calling convention.
2079             :
2080           elif test $ac_prog = install &&
2081             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2082             # program-specific install script used by HP pwplus--don't use.
2083             :
2084           else
2085             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2086             break 3
2087           fi
2088         fi
2089       done
2090     done
2091     ;;
2092 esac
2093 done
2094
2095
2096 fi
2097   if test "${ac_cv_path_install+set}" = set; then
2098     INSTALL=$ac_cv_path_install
2099   else
2100     # As a last resort, use the slow shell script.  We don't cache a
2101     # path for INSTALL within a source directory, because that will
2102     # break other packages using the cache if that directory is
2103     # removed, or if the path is relative.
2104     INSTALL=$ac_install_sh
2105   fi
2106 fi
2107 echo "$as_me:$LINENO: result: $INSTALL" >&5
2108 echo "${ECHO_T}$INSTALL" >&6
2109
2110 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2111 # It thinks the first close brace ends the variable substitution.
2112 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2113
2114 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2115
2116 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2117
2118
2119 # Make sure we can run config.sub.
2120 $ac_config_sub sun4 >/dev/null 2>&1 ||
2121   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2122 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2123    { (exit 1); exit 1; }; }
2124
2125 echo "$as_me:$LINENO: checking build system type" >&5
2126 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2127 if test "${ac_cv_build+set}" = set; then
2128   echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130   ac_cv_build_alias=$build_alias
2131 test -z "$ac_cv_build_alias" &&
2132   ac_cv_build_alias=`$ac_config_guess`
2133 test -z "$ac_cv_build_alias" &&
2134   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2135 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2136    { (exit 1); exit 1; }; }
2137 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2138   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2139 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2140    { (exit 1); exit 1; }; }
2141
2142 fi
2143 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2144 echo "${ECHO_T}$ac_cv_build" >&6
2145 build=$ac_cv_build
2146 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2147 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2148 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2149
2150
2151 echo "$as_me:$LINENO: checking host system type" >&5
2152 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2153 if test "${ac_cv_host+set}" = set; then
2154   echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156   ac_cv_host_alias=$host_alias
2157 test -z "$ac_cv_host_alias" &&
2158   ac_cv_host_alias=$ac_cv_build_alias
2159 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2160   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2161 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2162    { (exit 1); exit 1; }; }
2163
2164 fi
2165 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2166 echo "${ECHO_T}$ac_cv_host" >&6
2167 host=$ac_cv_host
2168 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2169 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2170 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2171
2172
2173 echo "$as_me:$LINENO: checking target system type" >&5
2174 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2175 if test "${ac_cv_target+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178   ac_cv_target_alias=$target_alias
2179 test "x$ac_cv_target_alias" = "x" &&
2180   ac_cv_target_alias=$ac_cv_host_alias
2181 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2182   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2183 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2184    { (exit 1); exit 1; }; }
2185
2186 fi
2187 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2188 echo "${ECHO_T}$ac_cv_target" >&6
2189 target=$ac_cv_target
2190 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2191 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2192 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2193
2194
2195 # The aliases save the names the user supplied, while $host etc.
2196 # will get canonicalized.
2197 test -n "$target_alias" &&
2198   test "$program_prefix$program_suffix$program_transform_name" = \
2199     NONENONEs,x,x, &&
2200   program_prefix=${target_alias}-
2201
2202 case $build in
2203         *i*86*)  OS=Linux
2204
2205                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2206
2207                  ;;
2208
2209         *sparc*) OS=SunOS
2210
2211                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2212
2213                  ;;
2214
2215         *)       OS=Unknown
2216
2217                  ;;
2218 esac
2219
2220 case $target in
2221         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2222
2223                           ;;
2224 esac
2225
2226 case $target in
2227         *i*86*)           ARCH=x86
2228
2229                           ;;
2230         *sparc*solaris*)  ARCH=Sparc
2231
2232                           ;;
2233 esac
2234
2235
2236 ac_ext=cc
2237 ac_cpp='$CXXCPP $CPPFLAGS'
2238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2241 if test -n "$ac_tool_prefix"; then
2242   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2243   do
2244     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2246 echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248 if test "${ac_cv_prog_CXX+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   if test -n "$CXX"; then
2252   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2253 else
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257   IFS=$as_save_IFS
2258   test -z "$as_dir" && as_dir=.
2259   for ac_exec_ext in '' $ac_executable_extensions; do
2260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2261     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263     break 2
2264   fi
2265 done
2266 done
2267
2268 fi
2269 fi
2270 CXX=$ac_cv_prog_CXX
2271 if test -n "$CXX"; then
2272   echo "$as_me:$LINENO: result: $CXX" >&5
2273 echo "${ECHO_T}$CXX" >&6
2274 else
2275   echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6
2277 fi
2278
2279     test -n "$CXX" && break
2280   done
2281 fi
2282 if test -z "$CXX"; then
2283   ac_ct_CXX=$CXX
2284   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2285 do
2286   # Extract the first word of "$ac_prog", so it can be a program name with args.
2287 set dummy $ac_prog; ac_word=$2
2288 echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2291   echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293   if test -n "$ac_ct_CXX"; then
2294   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299   IFS=$as_save_IFS
2300   test -z "$as_dir" && as_dir=.
2301   for ac_exec_ext in '' $ac_executable_extensions; do
2302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303     ac_cv_prog_ac_ct_CXX="$ac_prog"
2304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305     break 2
2306   fi
2307 done
2308 done
2309
2310 fi
2311 fi
2312 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2313 if test -n "$ac_ct_CXX"; then
2314   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2315 echo "${ECHO_T}$ac_ct_CXX" >&6
2316 else
2317   echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2319 fi
2320
2321   test -n "$ac_ct_CXX" && break
2322 done
2323 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2324
2325   CXX=$ac_ct_CXX
2326 fi
2327
2328
2329 # Provide some information about the compiler.
2330 echo "$as_me:$LINENO:" \
2331      "checking for C++ compiler version" >&5
2332 ac_compiler=`set X $ac_compile; echo $2`
2333 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2334   (eval $ac_compiler --version </dev/null >&5) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }
2338 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2339   (eval $ac_compiler -v </dev/null >&5) 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }
2343 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2344   (eval $ac_compiler -V </dev/null >&5) 2>&5
2345   ac_status=$?
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); }
2348
2349 cat >conftest.$ac_ext <<_ACEOF
2350 #line $LINENO "configure"
2351 /* confdefs.h.  */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h.  */
2356
2357 int
2358 main ()
2359 {
2360
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 ac_clean_files_save=$ac_clean_files
2366 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2367 # Try to create an executable without -o first, disregard a.out.
2368 # It will help us diagnose broken compilers, and finding out an intuition
2369 # of exeext.
2370 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2371 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2372 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2373 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2374   (eval $ac_link_default) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; then
2378   # Find the output, starting from the most likely.  This scheme is
2379 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2380 # resort.
2381
2382 # Be careful to initialize this variable, since it used to be cached.
2383 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2384 ac_cv_exeext=
2385 # b.out is created by i960 compilers.
2386 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2387 do
2388   test -f "$ac_file" || continue
2389   case $ac_file in
2390     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2391         ;;
2392     conftest.$ac_ext )
2393         # This is the source file.
2394         ;;
2395     [ab].out )
2396         # We found the default executable, but exeext='' is most
2397         # certainly right.
2398         break;;
2399     *.* )
2400         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2401         # FIXME: I believe we export ac_cv_exeext for Libtool,
2402         # but it would be cool to find out if it's true.  Does anybody
2403         # maintain Libtool? --akim.
2404         export ac_cv_exeext
2405         break;;
2406     * )
2407         break;;
2408   esac
2409 done
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: C++ compiler cannot create executables
2417 See \`config.log' for more details." >&2;}
2418    { (exit 77); exit 77; }; }
2419 fi
2420
2421 ac_exeext=$ac_cv_exeext
2422 echo "$as_me:$LINENO: result: $ac_file" >&5
2423 echo "${ECHO_T}$ac_file" >&6
2424
2425 # Check the compiler produces executables we can run.  If not, either
2426 # the compiler is broken, or we cross compile.
2427 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2428 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2429 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2430 # If not cross compiling, check that we can run a simple program.
2431 if test "$cross_compiling" != yes; then
2432   if { ac_try='./$ac_file'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; }; then
2438     cross_compiling=no
2439   else
2440     if test "$cross_compiling" = maybe; then
2441         cross_compiling=yes
2442     else
2443         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2444 If you meant to cross compile, use \`--host'.
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: cannot run C++ compiled programs.
2447 If you meant to cross compile, use \`--host'.
2448 See \`config.log' for more details." >&2;}
2449    { (exit 1); exit 1; }; }
2450     fi
2451   fi
2452 fi
2453 echo "$as_me:$LINENO: result: yes" >&5
2454 echo "${ECHO_T}yes" >&6
2455
2456 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2457 ac_clean_files=$ac_clean_files_save
2458 # Check the compiler produces executables we can run.  If not, either
2459 # the compiler is broken, or we cross compile.
2460 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2461 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2462 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2463 echo "${ECHO_T}$cross_compiling" >&6
2464
2465 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2466 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2468   (eval $ac_link) 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }; then
2472   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2473 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2474 # work properly (i.e., refer to `conftest.exe'), while it won't with
2475 # `rm'.
2476 for ac_file in conftest.exe conftest conftest.*; do
2477   test -f "$ac_file" || continue
2478   case $ac_file in
2479     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2480     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2481           export ac_cv_exeext
2482           break;;
2483     * ) break;;
2484   esac
2485 done
2486 else
2487   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2488 See \`config.log' for more details." >&5
2489 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2490 See \`config.log' for more details." >&2;}
2491    { (exit 1); exit 1; }; }
2492 fi
2493
2494 rm -f conftest$ac_cv_exeext
2495 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2496 echo "${ECHO_T}$ac_cv_exeext" >&6
2497
2498 rm -f conftest.$ac_ext
2499 EXEEXT=$ac_cv_exeext
2500 ac_exeext=$EXEEXT
2501 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2502 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2503 if test "${ac_cv_objext+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513
2514 int
2515 main ()
2516 {
2517
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 rm -f conftest.o conftest.obj
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524   (eval $ac_compile) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; then
2528   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2529   case $ac_file in
2530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2531     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2532        break;;
2533   esac
2534 done
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2540 See \`config.log' for more details." >&5
2541 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2542 See \`config.log' for more details." >&2;}
2543    { (exit 1); exit 1; }; }
2544 fi
2545
2546 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2547 fi
2548 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2549 echo "${ECHO_T}$ac_cv_objext" >&6
2550 OBJEXT=$ac_cv_objext
2551 ac_objext=$OBJEXT
2552 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2553 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2554 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   cat >conftest.$ac_ext <<_ACEOF
2558 #line $LINENO "configure"
2559 /* confdefs.h.  */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h.  */
2564
2565 int
2566 main ()
2567 {
2568 #ifndef __GNUC__
2569        choke me
2570 #endif
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578   (eval $ac_compile) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -s conftest.$ac_objext'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; }; then
2588   ac_compiler_gnu=yes
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593 ac_compiler_gnu=no
2594 fi
2595 rm -f conftest.$ac_objext conftest.$ac_ext
2596 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2597
2598 fi
2599 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2600 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2601 GXX=`test $ac_compiler_gnu = yes && echo yes`
2602 ac_test_CXXFLAGS=${CXXFLAGS+set}
2603 ac_save_CXXFLAGS=$CXXFLAGS
2604 CXXFLAGS="-g"
2605 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2606 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2607 if test "${ac_cv_prog_cxx_g+set}" = set; then
2608   echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610   cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 /* confdefs.h.  */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h.  */
2617
2618 int
2619 main ()
2620 {
2621
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628   (eval $ac_compile) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632          { ac_try='test -s conftest.$ac_objext'
2633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; }; then
2638   ac_cv_prog_cxx_g=yes
2639 else
2640   echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 ac_cv_prog_cxx_g=no
2644 fi
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2646 fi
2647 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2648 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2649 if test "$ac_test_CXXFLAGS" = set; then
2650   CXXFLAGS=$ac_save_CXXFLAGS
2651 elif test $ac_cv_prog_cxx_g = yes; then
2652   if test "$GXX" = yes; then
2653     CXXFLAGS="-g -O2"
2654   else
2655     CXXFLAGS="-g"
2656   fi
2657 else
2658   if test "$GXX" = yes; then
2659     CXXFLAGS="-O2"
2660   else
2661     CXXFLAGS=
2662   fi
2663 fi
2664 for ac_declaration in \
2665    ''\
2666    '#include <stdlib.h>' \
2667    'extern "C" void std::exit (int) throw (); using std::exit;' \
2668    'extern "C" void std::exit (int); using std::exit;' \
2669    'extern "C" void exit (int) throw ();' \
2670    'extern "C" void exit (int);' \
2671    'void exit (int);'
2672 do
2673   cat >conftest.$ac_ext <<_ACEOF
2674 #line $LINENO "configure"
2675 /* confdefs.h.  */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h.  */
2680 #include <stdlib.h>
2681 $ac_declaration
2682 int
2683 main ()
2684 {
2685 exit (42);
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692   (eval $ac_compile) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); } &&
2696          { ac_try='test -s conftest.$ac_objext'
2697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }; }; then
2702   :
2703 else
2704   echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2706
2707 continue
2708 fi
2709 rm -f conftest.$ac_objext conftest.$ac_ext
2710   cat >conftest.$ac_ext <<_ACEOF
2711 #line $LINENO "configure"
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717 $ac_declaration
2718 int
2719 main ()
2720 {
2721 exit (42);
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.$ac_objext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728   (eval $ac_compile) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); } &&
2732          { ac_try='test -s conftest.$ac_objext'
2733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734   (eval $ac_try) 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   break
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 fi
2744 rm -f conftest.$ac_objext conftest.$ac_ext
2745 done
2746 rm -f conftest*
2747 if test -n "$ac_declaration"; then
2748   echo '#ifdef __cplusplus' >>confdefs.h
2749   echo $ac_declaration      >>confdefs.h
2750   echo '#endif'             >>confdefs.h
2751 fi
2752
2753 ac_ext=c
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
2759 ac_ext=c
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764 if test -n "$ac_tool_prefix"; then
2765   for ac_prog in gcc
2766   do
2767     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_prog_CC+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   if test -n "$CC"; then
2775   ac_cv_prog_CC="$CC" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780   IFS=$as_save_IFS
2781   test -z "$as_dir" && as_dir=.
2782   for ac_exec_ext in '' $ac_executable_extensions; do
2783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786     break 2
2787   fi
2788 done
2789 done
2790
2791 fi
2792 fi
2793 CC=$ac_cv_prog_CC
2794 if test -n "$CC"; then
2795   echo "$as_me:$LINENO: result: $CC" >&5
2796 echo "${ECHO_T}$CC" >&6
2797 else
2798   echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2800 fi
2801
2802     test -n "$CC" && break
2803   done
2804 fi
2805 if test -z "$CC"; then
2806   ac_ct_CC=$CC
2807   for ac_prog in gcc
2808 do
2809   # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$ac_ct_CC"; then
2817   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826     ac_cv_prog_ac_ct_CC="$ac_prog"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832
2833 fi
2834 fi
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2839 else
2840   echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2842 fi
2843
2844   test -n "$ac_ct_CC" && break
2845 done
2846
2847   CC=$ac_ct_CC
2848 fi
2849
2850
2851 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2852 See \`config.log' for more details." >&5
2853 echo "$as_me: error: no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details." >&2;}
2855    { (exit 1); exit 1; }; }
2856
2857 # Provide some information about the compiler.
2858 echo "$as_me:$LINENO:" \
2859      "checking for C compiler version" >&5
2860 ac_compiler=`set X $ac_compile; echo $2`
2861 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2862   (eval $ac_compiler --version </dev/null >&5) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }
2866 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2867   (eval $ac_compiler -v </dev/null >&5) 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }
2871 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2872   (eval $ac_compiler -V </dev/null >&5) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }
2876
2877 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2878 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2879 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   cat >conftest.$ac_ext <<_ACEOF
2883 #line $LINENO "configure"
2884 /* confdefs.h.  */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h.  */
2889
2890 int
2891 main ()
2892 {
2893 #ifndef __GNUC__
2894        choke me
2895 #endif
2896
2897   ;
2898   return 0;
2899 }
2900 _ACEOF
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903   (eval $ac_compile) 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } &&
2907          { ac_try='test -s conftest.$ac_objext'
2908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909   (eval $ac_try) 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }; }; then
2913   ac_compiler_gnu=yes
2914 else
2915   echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918 ac_compiler_gnu=no
2919 fi
2920 rm -f conftest.$ac_objext conftest.$ac_ext
2921 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2922
2923 fi
2924 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2925 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2926 GCC=`test $ac_compiler_gnu = yes && echo yes`
2927 ac_test_CFLAGS=${CFLAGS+set}
2928 ac_save_CFLAGS=$CFLAGS
2929 CFLAGS="-g"
2930 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2931 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2932 if test "${ac_cv_prog_cc_g+set}" = set; then
2933   echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935   cat >conftest.$ac_ext <<_ACEOF
2936 #line $LINENO "configure"
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942
2943 int
2944 main ()
2945 {
2946
2947   ;
2948   return 0;
2949 }
2950 _ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953   (eval $ac_compile) 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } &&
2957          { ac_try='test -s conftest.$ac_objext'
2958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959   (eval $ac_try) 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; }; then
2963   ac_cv_prog_cc_g=yes
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968 ac_cv_prog_cc_g=no
2969 fi
2970 rm -f conftest.$ac_objext conftest.$ac_ext
2971 fi
2972 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2973 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2974 if test "$ac_test_CFLAGS" = set; then
2975   CFLAGS=$ac_save_CFLAGS
2976 elif test $ac_cv_prog_cc_g = yes; then
2977   if test "$GCC" = yes; then
2978     CFLAGS="-g -O2"
2979   else
2980     CFLAGS="-g"
2981   fi
2982 else
2983   if test "$GCC" = yes; then
2984     CFLAGS="-O2"
2985   else
2986     CFLAGS=
2987   fi
2988 fi
2989 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2990 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2991 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2992   echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994   ac_cv_prog_cc_stdc=no
2995 ac_save_CC=$CC
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 /* confdefs.h.  */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h.  */
3003 #include <stdarg.h>
3004 #include <stdio.h>
3005 #include <sys/types.h>
3006 #include <sys/stat.h>
3007 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3008 struct buf { int x; };
3009 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3010 static char *e (p, i)
3011      char **p;
3012      int i;
3013 {
3014   return p[i];
3015 }
3016 static char *f (char * (*g) (char **, int), char **p, ...)
3017 {
3018   char *s;
3019   va_list v;
3020   va_start (v,p);
3021   s = g (p, va_arg (v,int));
3022   va_end (v);
3023   return s;
3024 }
3025 int test (int i, double x);
3026 struct s1 {int (*f) (int a);};
3027 struct s2 {int (*f) (double a);};
3028 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3029 int argc;
3030 char **argv;
3031 int
3032 main ()
3033 {
3034 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 # Don't try gcc -ansi; that turns off useful extensions and
3040 # breaks some systems' header files.
3041 # AIX                   -qlanglvl=ansi
3042 # Ultrix and OSF/1      -std1
3043 # HP-UX 10.20 and later -Ae
3044 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3045 # SVR4                  -Xc -D__EXTENSIONS__
3046 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3047 do
3048   CC="$ac_save_CC $ac_arg"
3049   rm -f conftest.$ac_objext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051   (eval $ac_compile) 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } &&
3055          { ac_try='test -s conftest.$ac_objext'
3056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057   (eval $ac_try) 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; }; then
3061   ac_cv_prog_cc_stdc=$ac_arg
3062 break
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 fi
3068 rm -f conftest.$ac_objext
3069 done
3070 rm -f conftest.$ac_ext conftest.$ac_objext
3071 CC=$ac_save_CC
3072
3073 fi
3074
3075 case "x$ac_cv_prog_cc_stdc" in
3076   x|xno)
3077     echo "$as_me:$LINENO: result: none needed" >&5
3078 echo "${ECHO_T}none needed" >&6 ;;
3079   *)
3080     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3081 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3082     CC="$CC $ac_cv_prog_cc_stdc" ;;
3083 esac
3084
3085 # Some people use a C++ compiler to compile C.  Since we use `exit',
3086 # in C++ we need to declare it.  In case someone uses the same compiler
3087 # for both compiling C and C++ we need to have the C++ compiler decide
3088 # the declaration of exit, since it's the most demanding environment.
3089 cat >conftest.$ac_ext <<_ACEOF
3090 #ifndef __cplusplus
3091   choke me
3092 #endif
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096   (eval $ac_compile) 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); } &&
3100          { ac_try='test -s conftest.$ac_objext'
3101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102   (eval $ac_try) 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; }; then
3106   for ac_declaration in \
3107    ''\
3108    '#include <stdlib.h>' \
3109    'extern "C" void std::exit (int) throw (); using std::exit;' \
3110    'extern "C" void std::exit (int); using std::exit;' \
3111    'extern "C" void exit (int) throw ();' \
3112    'extern "C" void exit (int);' \
3113    'void exit (int);'
3114 do
3115   cat >conftest.$ac_ext <<_ACEOF
3116 #line $LINENO "configure"
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122 #include <stdlib.h>
3123 $ac_declaration
3124 int
3125 main ()
3126 {
3127 exit (42);
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3134   (eval $ac_compile) 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); } &&
3138          { ac_try='test -s conftest.$ac_objext'
3139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140   (eval $ac_try) 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }; }; then
3144   :
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 continue
3150 fi
3151 rm -f conftest.$ac_objext conftest.$ac_ext
3152   cat >conftest.$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 $ac_declaration
3160 int
3161 main ()
3162 {
3163 exit (42);
3164   ;
3165   return 0;
3166 }
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170   (eval $ac_compile) 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); } &&
3174          { ac_try='test -s conftest.$ac_objext'
3175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176   (eval $ac_try) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; }; then
3180   break
3181 else
3182   echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 fi
3186 rm -f conftest.$ac_objext conftest.$ac_ext
3187 done
3188 rm -f conftest*
3189 if test -n "$ac_declaration"; then
3190   echo '#ifdef __cplusplus' >>confdefs.h
3191   echo $ac_declaration      >>confdefs.h
3192   echo '#endif'             >>confdefs.h
3193 fi
3194
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 fi
3200 rm -f conftest.$ac_objext conftest.$ac_ext
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207 ac_ext=c
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3214 # On Suns, sometimes $CPP names a directory.
3215 if test -n "$CPP" && test -d "$CPP"; then
3216   CPP=
3217 fi
3218 if test -z "$CPP"; then
3219   if test "${ac_cv_prog_CPP+set}" = set; then
3220   echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222       # Double quotes because CPP needs to be expanded
3223     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3224     do
3225       ac_preproc_ok=false
3226 for ac_c_preproc_warn_flag in '' yes
3227 do
3228   # Use a header file that comes with gcc, so configuring glibc
3229   # with a fresh cross-compiler works.
3230   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3231   # <limits.h> exists even on freestanding compilers.
3232   # On the NeXT, cc -E runs the code through the compiler's parser,
3233   # not just through cpp. "Syntax error" is here to catch this case.
3234   cat >conftest.$ac_ext <<_ACEOF
3235 #line $LINENO "configure"
3236 /* confdefs.h.  */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h.  */
3241 #ifdef __STDC__
3242 # include <limits.h>
3243 #else
3244 # include <assert.h>
3245 #endif
3246                      Syntax error
3247 _ACEOF
3248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3250   ac_status=$?
3251   grep -v '^ *+' conftest.er1 >conftest.err
3252   rm -f conftest.er1
3253   cat conftest.err >&5
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); } >/dev/null; then
3256   if test -s conftest.err; then
3257     ac_cpp_err=$ac_c_preproc_warn_flag
3258   else
3259     ac_cpp_err=
3260   fi
3261 else
3262   ac_cpp_err=yes
3263 fi
3264 if test -z "$ac_cpp_err"; then
3265   :
3266 else
3267   echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270   # Broken: fails on valid input.
3271 continue
3272 fi
3273 rm -f conftest.err conftest.$ac_ext
3274
3275   # OK, works on sane cases.  Now check whether non-existent headers
3276   # can be detected and how.
3277   cat >conftest.$ac_ext <<_ACEOF
3278 #line $LINENO "configure"
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include <ac_nonexistent.h>
3285 _ACEOF
3286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3288   ac_status=$?
3289   grep -v '^ *+' conftest.er1 >conftest.err
3290   rm -f conftest.er1
3291   cat conftest.err >&5
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); } >/dev/null; then
3294   if test -s conftest.err; then
3295     ac_cpp_err=$ac_c_preproc_warn_flag
3296   else
3297     ac_cpp_err=
3298   fi
3299 else
3300   ac_cpp_err=yes
3301 fi
3302 if test -z "$ac_cpp_err"; then
3303   # Broken: success on invalid input.
3304 continue
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309   # Passes both tests.
3310 ac_preproc_ok=:
3311 break
3312 fi
3313 rm -f conftest.err conftest.$ac_ext
3314
3315 done
3316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317 rm -f conftest.err conftest.$ac_ext
3318 if $ac_preproc_ok; then
3319   break
3320 fi
3321
3322     done
3323     ac_cv_prog_CPP=$CPP
3324
3325 fi
3326   CPP=$ac_cv_prog_CPP
3327 else
3328   ac_cv_prog_CPP=$CPP
3329 fi
3330 echo "$as_me:$LINENO: result: $CPP" >&5
3331 echo "${ECHO_T}$CPP" >&6
3332 ac_preproc_ok=false
3333 for ac_c_preproc_warn_flag in '' yes
3334 do
3335   # Use a header file that comes with gcc, so configuring glibc
3336   # with a fresh cross-compiler works.
3337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338   # <limits.h> exists even on freestanding compilers.
3339   # On the NeXT, cc -E runs the code through the compiler's parser,
3340   # not just through cpp. "Syntax error" is here to catch this case.
3341   cat >conftest.$ac_ext <<_ACEOF
3342 #line $LINENO "configure"
3343 /* confdefs.h.  */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h.  */
3348 #ifdef __STDC__
3349 # include <limits.h>
3350 #else
3351 # include <assert.h>
3352 #endif
3353                      Syntax error
3354 _ACEOF
3355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3357   ac_status=$?
3358   grep -v '^ *+' conftest.er1 >conftest.err
3359   rm -f conftest.er1
3360   cat conftest.err >&5
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); } >/dev/null; then
3363   if test -s conftest.err; then
3364     ac_cpp_err=$ac_c_preproc_warn_flag
3365   else
3366     ac_cpp_err=
3367   fi
3368 else
3369   ac_cpp_err=yes
3370 fi
3371 if test -z "$ac_cpp_err"; then
3372   :
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377   # Broken: fails on valid input.
3378 continue
3379 fi
3380 rm -f conftest.err conftest.$ac_ext
3381
3382   # OK, works on sane cases.  Now check whether non-existent headers
3383   # can be detected and how.
3384   cat >conftest.$ac_ext <<_ACEOF
3385 #line $LINENO "configure"
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391 #include <ac_nonexistent.h>
3392 _ACEOF
3393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } >/dev/null; then
3401   if test -s conftest.err; then
3402     ac_cpp_err=$ac_c_preproc_warn_flag
3403   else
3404     ac_cpp_err=
3405   fi
3406 else
3407   ac_cpp_err=yes
3408 fi
3409 if test -z "$ac_cpp_err"; then
3410   # Broken: success on invalid input.
3411 continue
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Passes both tests.
3417 ac_preproc_ok=:
3418 break
3419 fi
3420 rm -f conftest.err conftest.$ac_ext
3421
3422 done
3423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3424 rm -f conftest.err conftest.$ac_ext
3425 if $ac_preproc_ok; then
3426   :
3427 else
3428   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3429 See \`config.log' for more details." >&5
3430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3431 See \`config.log' for more details." >&2;}
3432    { (exit 1); exit 1; }; }
3433 fi
3434
3435 ac_ext=c
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440
3441
3442 if test "$GCC" != "yes"
3443 then
3444         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3445 echo "$as_me: error: gcc required but not found" >&2;}
3446    { (exit 1); exit 1; }; }
3447 fi
3448
3449 if test "$GXX" != "yes"
3450 then
3451         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3452 echo "$as_me: error: g++ required but not found" >&2;}
3453    { (exit 1); exit 1; }; }
3454 fi
3455
3456 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3457 if test "$gccmajor" -lt "3"
3458 then
3459         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3460 echo "$as_me: error: gcc 3.x required" >&2;}
3461    { (exit 1); exit 1; }; }
3462 fi
3463
3464  echo "$as_me:$LINENO: checking for GNU make" >&5
3465 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3466 if test "${_cv_gnu_make_command+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   _cv_gnu_make_command='' ;
3470                 for a in "$MAKE" make gmake gnumake ; do
3471                         if test -z "$a" ; then continue ; fi ;
3472                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3473                                 _cv_gnu_make_command=$a ;
3474                                 break;
3475                         fi
3476                 done ;
3477
3478 fi
3479 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3480 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3481         if test  "x$_cv_gnu_make_command" != "x"  ; then
3482                 ifGNUmake='' ;
3483         else
3484                 ifGNUmake='#' ;
3485                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3486 echo "${ECHO_T}\"Not found\"" >&6;
3487         fi
3488
3489
3490 if test -z "$_cv_gnu_make_command"
3491 then
3492         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3493 echo "$as_me: error: GNU Make required but not found" >&2;}
3494    { (exit 1); exit 1; }; }
3495 fi
3496
3497
3498 echo "$as_me:$LINENO: checking " >&5
3499 echo $ECHO_N "checking ... $ECHO_C" >&6
3500 if test "${ac_cv_has_flex+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   for ac_prog in flex lex
3504 do
3505   # Extract the first word of "$ac_prog", so it can be a program name with args.
3506 set dummy $ac_prog; ac_word=$2
3507 echo "$as_me:$LINENO: checking for $ac_word" >&5
3508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509 if test "${ac_cv_prog_LEX+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   if test -n "$LEX"; then
3513   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518   IFS=$as_save_IFS
3519   test -z "$as_dir" && as_dir=.
3520   for ac_exec_ext in '' $ac_executable_extensions; do
3521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522     ac_cv_prog_LEX="$ac_prog"
3523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524     break 2
3525   fi
3526 done
3527 done
3528
3529 fi
3530 fi
3531 LEX=$ac_cv_prog_LEX
3532 if test -n "$LEX"; then
3533   echo "$as_me:$LINENO: result: $LEX" >&5
3534 echo "${ECHO_T}$LEX" >&6
3535 else
3536   echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3538 fi
3539
3540   test -n "$LEX" && break
3541 done
3542 test -n "$LEX" || LEX=":"
3543
3544 if test -z "$LEXLIB"
3545 then
3546   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3547 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3548 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   ac_check_lib_save_LIBS=$LIBS
3552 LIBS="-lfl  $LIBS"
3553 cat >conftest.$ac_ext <<_ACEOF
3554 #line $LINENO "configure"
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560
3561 /* Override any gcc2 internal prototype to avoid an error.  */
3562 #ifdef __cplusplus
3563 extern "C"
3564 #endif
3565 /* We use char because int might match the return type of a gcc2
3566    builtin and then its argument prototype would still apply.  */
3567 char yywrap ();
3568 int
3569 main ()
3570 {
3571 yywrap ();
3572   ;
3573   return 0;
3574 }
3575 _ACEOF
3576 rm -f conftest.$ac_objext conftest$ac_exeext
3577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3578   (eval $ac_link) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); } &&
3582          { ac_try='test -s conftest$ac_exeext'
3583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584   (eval $ac_try) 2>&5
3585   ac_status=$?
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); }; }; then
3588   ac_cv_lib_fl_yywrap=yes
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 ac_cv_lib_fl_yywrap=no
3594 fi
3595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3596 LIBS=$ac_check_lib_save_LIBS
3597 fi
3598 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3599 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3600 if test $ac_cv_lib_fl_yywrap = yes; then
3601   LEXLIB="-lfl"
3602 else
3603   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3604 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3605 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   ac_check_lib_save_LIBS=$LIBS
3609 LIBS="-ll  $LIBS"
3610 cat >conftest.$ac_ext <<_ACEOF
3611 #line $LINENO "configure"
3612 /* confdefs.h.  */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h.  */
3617
3618 /* Override any gcc2 internal prototype to avoid an error.  */
3619 #ifdef __cplusplus
3620 extern "C"
3621 #endif
3622 /* We use char because int might match the return type of a gcc2
3623    builtin and then its argument prototype would still apply.  */
3624 char yywrap ();
3625 int
3626 main ()
3627 {
3628 yywrap ();
3629   ;
3630   return 0;
3631 }
3632 _ACEOF
3633 rm -f conftest.$ac_objext conftest$ac_exeext
3634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3635   (eval $ac_link) 2>&5
3636   ac_status=$?
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } &&
3639          { ac_try='test -s conftest$ac_exeext'
3640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641   (eval $ac_try) 2>&5
3642   ac_status=$?
3643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644   (exit $ac_status); }; }; then
3645   ac_cv_lib_l_yywrap=yes
3646 else
3647   echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3649
3650 ac_cv_lib_l_yywrap=no
3651 fi
3652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3653 LIBS=$ac_check_lib_save_LIBS
3654 fi
3655 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3656 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3657 if test $ac_cv_lib_l_yywrap = yes; then
3658   LEXLIB="-ll"
3659 fi
3660
3661 fi
3662
3663 fi
3664
3665 if test "x$LEX" != "x:"; then
3666   echo "$as_me:$LINENO: checking lex output file root" >&5
3667 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3668 if test "${ac_cv_prog_lex_root+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   # The minimal lex program is just a single line: %%.  But some broken lexes
3672 # (Solaris, I think it was) want two %% lines, so accommodate them.
3673 cat >conftest.l <<_ACEOF
3674 %%
3675 %%
3676 _ACEOF
3677 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3678   (eval $LEX conftest.l) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }
3682 if test -f lex.yy.c; then
3683   ac_cv_prog_lex_root=lex.yy
3684 elif test -f lexyy.c; then
3685   ac_cv_prog_lex_root=lexyy
3686 else
3687   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3688 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3689    { (exit 1); exit 1; }; }
3690 fi
3691 fi
3692 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3693 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3694 rm -f conftest.l
3695 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3696
3697 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3698 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3699 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702   # POSIX says lex can declare yytext either as a pointer or an array; the
3703 # default is implementation-dependent. Figure out which it is, since
3704 # not all implementations provide the %pointer and %array declarations.
3705 ac_cv_prog_lex_yytext_pointer=no
3706 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3707 ac_save_LIBS=$LIBS
3708 LIBS="$LIBS $LEXLIB"
3709 cat >conftest.$ac_ext <<_ACEOF
3710 `cat $LEX_OUTPUT_ROOT.c`
3711 _ACEOF
3712 rm -f conftest.$ac_objext conftest$ac_exeext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3714   (eval $ac_link) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } &&
3718          { ac_try='test -s conftest$ac_exeext'
3719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720   (eval $ac_try) 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); }; }; then
3724   ac_cv_prog_lex_yytext_pointer=yes
3725 else
3726   echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729 fi
3730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3731 LIBS=$ac_save_LIBS
3732 rm -f "${LEX_OUTPUT_ROOT}.c"
3733
3734 fi
3735 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3736 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3737 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3738
3739 cat >>confdefs.h <<\_ACEOF
3740 #define YYTEXT_POINTER 1
3741 _ACEOF
3742
3743 fi
3744
3745 fi
3746
3747 fi
3748 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3749 echo "${ECHO_T}$ac_cv_has_flex" >&6
3750 if test "$LEX" != "flex"; then
3751   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3752 echo "$as_me: error: flex not found but required" >&2;}
3753    { (exit 1); exit 1; }; }
3754 fi
3755
3756 echo "$as_me:$LINENO: checking " >&5
3757 echo $ECHO_N "checking ... $ECHO_C" >&6
3758 if test "${ac_cv_has_bison+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   for ac_prog in 'bison -y' byacc
3762 do
3763   # Extract the first word of "$ac_prog", so it can be a program name with args.
3764 set dummy $ac_prog; ac_word=$2
3765 echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_prog_YACC+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   if test -n "$YACC"; then
3771   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776   IFS=$as_save_IFS
3777   test -z "$as_dir" && as_dir=.
3778   for ac_exec_ext in '' $ac_executable_extensions; do
3779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780     ac_cv_prog_YACC="$ac_prog"
3781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782     break 2
3783   fi
3784 done
3785 done
3786
3787 fi
3788 fi
3789 YACC=$ac_cv_prog_YACC
3790 if test -n "$YACC"; then
3791   echo "$as_me:$LINENO: result: $YACC" >&5
3792 echo "${ECHO_T}$YACC" >&6
3793 else
3794   echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6
3796 fi
3797
3798   test -n "$YACC" && break
3799 done
3800 test -n "$YACC" || YACC="yacc"
3801
3802
3803 fi
3804 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3805 echo "${ECHO_T}$ac_cv_has_bison" >&6
3806 if test "$YACC" != "bison -y"; then
3807   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3808 echo "$as_me: error: bison not found but required" >&2;}
3809    { (exit 1); exit 1; }; }
3810 else
3811   YACC=bison
3812
3813 fi
3814
3815
3816 # Check whether --enable-shared or --disable-shared was given.
3817 if test "${enable_shared+set}" = set; then
3818   enableval="$enable_shared"
3819   p=${PACKAGE-default}
3820     case $enableval in
3821     yes) enable_shared=yes ;;
3822     no) enable_shared=no ;;
3823     *)
3824       enable_shared=no
3825       # Look at the argument we got.  We use all the common list separators.
3826       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3827       for pkg in $enableval; do
3828         IFS="$lt_save_ifs"
3829         if test "X$pkg" = "X$p"; then
3830           enable_shared=yes
3831         fi
3832       done
3833       IFS="$lt_save_ifs"
3834       ;;
3835     esac
3836 else
3837   enable_shared=yes
3838 fi;
3839
3840 # Check whether --enable-static or --disable-static was given.
3841 if test "${enable_static+set}" = set; then
3842   enableval="$enable_static"
3843   p=${PACKAGE-default}
3844     case $enableval in
3845     yes) enable_static=yes ;;
3846     no) enable_static=no ;;
3847     *)
3848      enable_static=no
3849       # Look at the argument we got.  We use all the common list separators.
3850       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3851       for pkg in $enableval; do
3852         IFS="$lt_save_ifs"
3853         if test "X$pkg" = "X$p"; then
3854           enable_static=yes
3855         fi
3856       done
3857       IFS="$lt_save_ifs"
3858       ;;
3859     esac
3860 else
3861   enable_static=yes
3862 fi;
3863
3864 # Check whether --enable-fast-install or --disable-fast-install was given.
3865 if test "${enable_fast_install+set}" = set; then
3866   enableval="$enable_fast_install"
3867   p=${PACKAGE-default}
3868     case $enableval in
3869     yes) enable_fast_install=yes ;;
3870     no) enable_fast_install=no ;;
3871     *)
3872       enable_fast_install=no
3873       # Look at the argument we got.  We use all the common list separators.
3874       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3875       for pkg in $enableval; do
3876         IFS="$lt_save_ifs"
3877         if test "X$pkg" = "X$p"; then
3878           enable_fast_install=yes
3879         fi
3880       done
3881       IFS="$lt_save_ifs"
3882       ;;
3883     esac
3884 else
3885   enable_fast_install=yes
3886 fi;
3887
3888 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3889 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3890 if test "${lt_cv_path_SED+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   # Loop through the user's path and test for sed and gsed.
3894 # Then use that list of sed's as ones to test for truncation.
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898   IFS=$as_save_IFS
3899   test -z "$as_dir" && as_dir=.
3900   for lt_ac_prog in sed gsed; do
3901     for ac_exec_ext in '' $ac_executable_extensions; do
3902       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3903         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3904       fi
3905     done
3906   done
3907 done
3908 lt_ac_max=0
3909 lt_ac_count=0
3910 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3911 # along with /bin/sed that truncates output.
3912 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3913   test ! -f $lt_ac_sed && break
3914   cat /dev/null > conftest.in
3915   lt_ac_count=0
3916   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3917   # Check for GNU sed and select it if it is found.
3918   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3919     lt_cv_path_SED=$lt_ac_sed
3920     break
3921   fi
3922   while true; do
3923     cat conftest.in conftest.in >conftest.tmp
3924     mv conftest.tmp conftest.in
3925     cp conftest.in conftest.nl
3926     echo >>conftest.nl
3927     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3928     cmp -s conftest.out conftest.nl || break
3929     # 10000 chars as input seems more than enough
3930     test $lt_ac_count -gt 10 && break
3931     lt_ac_count=`expr $lt_ac_count + 1`
3932     if test $lt_ac_count -gt $lt_ac_max; then
3933       lt_ac_max=$lt_ac_count
3934       lt_cv_path_SED=$lt_ac_sed
3935     fi
3936   done
3937 done
3938 SED=$lt_cv_path_SED
3939
3940 fi
3941
3942 echo "$as_me:$LINENO: result: $SED" >&5
3943 echo "${ECHO_T}$SED" >&6
3944
3945 echo "$as_me:$LINENO: checking for egrep" >&5
3946 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3947 if test "${ac_cv_prog_egrep+set}" = set; then
3948   echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3951     then ac_cv_prog_egrep='grep -E'
3952     else ac_cv_prog_egrep='egrep'
3953     fi
3954 fi
3955 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3956 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3957  EGREP=$ac_cv_prog_egrep
3958
3959
3960
3961 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3962 if test "${with_gnu_ld+set}" = set; then
3963   withval="$with_gnu_ld"
3964   test "$withval" = no || with_gnu_ld=yes
3965 else
3966   with_gnu_ld=no
3967 fi;
3968 ac_prog=ld
3969 if test "$GCC" = yes; then
3970   # Check if gcc -print-prog-name=ld gives a path.
3971   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3972 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3973   case $host in
3974   *-*-mingw*)
3975     # gcc leaves a trailing carriage return which upsets mingw
3976     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3977   *)
3978     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3979   esac
3980   case $ac_prog in
3981     # Accept absolute paths.
3982     [\\/]* | ?:[\\/]*)
3983       re_direlt='/[^/][^/]*/\.\./'
3984       # Canonicalize the path of ld
3985       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3986       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3987         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3988       done
3989       test -z "$LD" && LD="$ac_prog"
3990       ;;
3991   "")
3992     # If it fails, then pretend we aren't using GCC.
3993     ac_prog=ld
3994     ;;
3995   *)
3996     # If it is relative, then search for the first ld in PATH.
3997     with_gnu_ld=unknown
3998     ;;
3999   esac
4000 elif test "$with_gnu_ld" = yes; then
4001   echo "$as_me:$LINENO: checking for GNU ld" >&5
4002 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4003 else
4004   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4005 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4006 fi
4007 if test "${lt_cv_path_LD+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   if test -z "$LD"; then
4011   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4012   for ac_dir in $PATH; do
4013     IFS="$lt_save_ifs"
4014     test -z "$ac_dir" && ac_dir=.
4015     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4016       lt_cv_path_LD="$ac_dir/$ac_prog"
4017       # Check to see if the program is GNU ld.  I'd rather use --version,
4018       # but apparently some GNU ld's only accept -v.
4019       # Break only if it was the GNU/non-GNU ld that we prefer.
4020       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4021       *GNU* | *'with BFD'*)
4022         test "$with_gnu_ld" != no && break
4023         ;;
4024       *)
4025         test "$with_gnu_ld" != yes && break
4026         ;;
4027       esac
4028     fi
4029   done
4030   IFS="$lt_save_ifs"
4031 else
4032   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4033 fi
4034 fi
4035
4036 LD="$lt_cv_path_LD"
4037 if test -n "$LD"; then
4038   echo "$as_me:$LINENO: result: $LD" >&5
4039 echo "${ECHO_T}$LD" >&6
4040 else
4041   echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6
4043 fi
4044 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4045 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4046    { (exit 1); exit 1; }; }
4047 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4048 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4049 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4053 case `"$LD" -v 2>&1 </dev/null` in
4054 *GNU* | *'with BFD'*)
4055   lt_cv_prog_gnu_ld=yes
4056   ;;
4057 *)
4058   lt_cv_prog_gnu_ld=no
4059   ;;
4060 esac
4061 fi
4062 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4063 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4064 with_gnu_ld=$lt_cv_prog_gnu_ld
4065
4066
4067 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4068 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4069 if test "${lt_cv_ld_reload_flag+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072   lt_cv_ld_reload_flag='-r'
4073 fi
4074 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4075 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4076 reload_flag=$lt_cv_ld_reload_flag
4077 case $reload_flag in
4078 "" | " "*) ;;
4079 *) reload_flag=" $reload_flag" ;;
4080 esac
4081 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4082
4083 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4084 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4085 if test "${lt_cv_path_NM+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   if test -n "$NM"; then
4089   # Let the user override the test.
4090   lt_cv_path_NM="$NM"
4091 else
4092   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4093   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4094     IFS="$lt_save_ifs"
4095     test -z "$ac_dir" && ac_dir=.
4096     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4097     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4098       # Check to see if the nm accepts a BSD-compat flag.
4099       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4100       #   nm: unknown option "B" ignored
4101       # Tru64's nm complains that /dev/null is an invalid object file
4102       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4103       */dev/null* | *'Invalid file or object type'*)
4104         lt_cv_path_NM="$tmp_nm -B"
4105         break
4106         ;;
4107       *)
4108         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4109         */dev/null*)
4110           lt_cv_path_NM="$tmp_nm -p"
4111           break
4112           ;;
4113         *)
4114           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4115           continue # so that we can try to find one that supports BSD flags
4116           ;;
4117         esac
4118       esac
4119     fi
4120   done
4121   IFS="$lt_save_ifs"
4122   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4123 fi
4124 fi
4125 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4126 echo "${ECHO_T}$lt_cv_path_NM" >&6
4127 NM="$lt_cv_path_NM"
4128
4129 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4130 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4131 LN_S=$as_ln_s
4132 if test "$LN_S" = "ln -s"; then
4133   echo "$as_me:$LINENO: result: yes" >&5
4134 echo "${ECHO_T}yes" >&6
4135 else
4136   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4137 echo "${ECHO_T}no, using $LN_S" >&6
4138 fi
4139
4140 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4141 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4142 if test "${lt_cv_deplibs_check_method+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   lt_cv_file_magic_cmd='$MAGIC_CMD'
4146 lt_cv_file_magic_test_file=
4147 lt_cv_deplibs_check_method='unknown'
4148 # Need to set the preceding variable on all platforms that support
4149 # interlibrary dependencies.
4150 # 'none' -- dependencies not supported.
4151 # `unknown' -- same as none, but documents that we really don't know.
4152 # 'pass_all' -- all dependencies passed with no checks.
4153 # 'test_compile' -- check by making test program.
4154 # 'file_magic [[regex]]' -- check by looking for files in library path
4155 # which responds to the $file_magic_cmd with a given extended regex.
4156 # If you have `file' or equivalent on your system and you're not sure
4157 # whether `pass_all' will *always* work, you probably want this one.
4158
4159 case $host_os in
4160 aix4* | aix5*)
4161   lt_cv_deplibs_check_method=pass_all
4162   ;;
4163
4164 beos*)
4165   lt_cv_deplibs_check_method=pass_all
4166   ;;
4167
4168 bsdi4*)
4169   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4170   lt_cv_file_magic_cmd='/usr/bin/file -L'
4171   lt_cv_file_magic_test_file=/shlib/libc.so
4172   ;;
4173
4174 cygwin* | mingw* | pw32*)
4175   # win32_libid is a shell function defined in ltmain.sh
4176   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4177   lt_cv_file_magic_cmd='win32_libid'
4178   ;;
4179
4180 darwin* | rhapsody*)
4181   # this will be overwritten by pass_all, but leave it in just in case
4182   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4183   lt_cv_file_magic_cmd='/usr/bin/file -L'
4184   case "$host_os" in
4185   rhapsody* | darwin1.[012])
4186     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4187     ;;
4188   *) # Darwin 1.3 on
4189     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4190     ;;
4191   esac
4192   lt_cv_deplibs_check_method=pass_all
4193   ;;
4194
4195 freebsd*)
4196   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4197     case $host_cpu in
4198     i*86 )
4199       # Not sure whether the presence of OpenBSD here was a mistake.
4200       # Let's accept both of them until this is cleared up.
4201       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4202       lt_cv_file_magic_cmd=/usr/bin/file
4203       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4204       ;;
4205     esac
4206   else
4207     lt_cv_deplibs_check_method=pass_all
4208   fi
4209   ;;
4210
4211 gnu*)
4212   lt_cv_deplibs_check_method=pass_all
4213   ;;
4214
4215 hpux10.20* | hpux11*)
4216   lt_cv_file_magic_cmd=/usr/bin/file
4217   case "$host_cpu" in
4218   ia64*)
4219     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4220     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4221     ;;
4222   hppa*64*)
4223     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]'
4224     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4225     ;;
4226   *)
4227     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4228     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4229     ;;
4230   esac
4231   ;;
4232
4233 irix5* | irix6* | nonstopux*)
4234   case $host_os in
4235   irix5* | nonstopux*)
4236     # this will be overridden with pass_all, but let us keep it just in case
4237     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4238     ;;
4239   *)
4240     case $LD in
4241     *-32|*"-32 ") libmagic=32-bit;;
4242     *-n32|*"-n32 ") libmagic=N32;;
4243     *-64|*"-64 ") libmagic=64-bit;;
4244     *) libmagic=never-match;;
4245     esac
4246     # this will be overridden with pass_all, but let us keep it just in case
4247     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4248     ;;
4249   esac
4250   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4251   lt_cv_deplibs_check_method=pass_all
4252   ;;
4253
4254 # This must be Linux ELF.
4255 linux*)
4256   case $host_cpu in
4257   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4258     lt_cv_deplibs_check_method=pass_all ;;
4259   *)
4260     # glibc up to 2.1.1 does not perform some relocations on ARM
4261     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4262   esac
4263   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4264   ;;
4265
4266 netbsd*)
4267   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4268     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4269   else
4270     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4271   fi
4272   ;;
4273
4274 newos6*)
4275   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4276   lt_cv_file_magic_cmd=/usr/bin/file
4277   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4278   ;;
4279
4280 nto-qnx)
4281   lt_cv_deplibs_check_method=unknown
4282   ;;
4283
4284 openbsd*)
4285   lt_cv_file_magic_cmd=/usr/bin/file
4286   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4287   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4288     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4289   else
4290     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4291   fi
4292   ;;
4293
4294 osf3* | osf4* | osf5*)
4295   # this will be overridden with pass_all, but let us keep it just in case
4296   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4297   lt_cv_file_magic_test_file=/shlib/libc.so
4298   lt_cv_deplibs_check_method=pass_all
4299   ;;
4300
4301 sco3.2v5*)
4302   lt_cv_deplibs_check_method=pass_all
4303   ;;
4304
4305 solaris*)
4306   lt_cv_deplibs_check_method=pass_all
4307   lt_cv_file_magic_test_file=/lib/libc.so
4308   ;;
4309
4310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4311   case $host_vendor in
4312   motorola)
4313     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]'
4314     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4315     ;;
4316   ncr)
4317     lt_cv_deplibs_check_method=pass_all
4318     ;;
4319   sequent)
4320     lt_cv_file_magic_cmd='/bin/file'
4321     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4322     ;;
4323   sni)
4324     lt_cv_file_magic_cmd='/bin/file'
4325     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4326     lt_cv_file_magic_test_file=/lib/libc.so
4327     ;;
4328   siemens)
4329     lt_cv_deplibs_check_method=pass_all
4330     ;;
4331   esac
4332   ;;
4333
4334 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4335   lt_cv_deplibs_check_method=pass_all
4336   ;;
4337 esac
4338
4339 fi
4340 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4341 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4342 file_magic_cmd=$lt_cv_file_magic_cmd
4343 deplibs_check_method=$lt_cv_deplibs_check_method
4344 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4345
4346
4347
4348
4349 # If no C compiler was specified, use CC.
4350 LTCC=${LTCC-"$CC"}
4351
4352 # Allow CC to be a program name with arguments.
4353 compiler=$CC
4354
4355 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4356 if test "${enable_libtool_lock+set}" = set; then
4357   enableval="$enable_libtool_lock"
4358
4359 fi;
4360 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4361
4362 # Some flags need to be propagated to the compiler or linker for good
4363 # libtool support.
4364 case $host in
4365 ia64-*-hpux*)
4366   # Find out which ABI we are using.
4367   echo 'int i;' > conftest.$ac_ext
4368   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369   (eval $ac_compile) 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; then
4373     case `/usr/bin/file conftest.$ac_objext` in
4374     *ELF-32*)
4375       HPUX_IA64_MODE="32"
4376       ;;
4377     *ELF-64*)
4378       HPUX_IA64_MODE="64"
4379       ;;
4380     esac
4381   fi
4382   rm -rf conftest*
4383   ;;
4384 *-*-irix6*)
4385   # Find out which ABI we are using.
4386   echo '#line 4386 "configure"' > conftest.$ac_ext
4387   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388   (eval $ac_compile) 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); }; then
4392    if test "$lt_cv_prog_gnu_ld" = yes; then
4393     case `/usr/bin/file conftest.$ac_objext` in
4394     *32-bit*)
4395       LD="${LD-ld} -melf32bsmip"
4396       ;;
4397     *N32*)
4398       LD="${LD-ld} -melf32bmipn32"
4399       ;;
4400     *64-bit*)
4401       LD="${LD-ld} -melf64bmip"
4402       ;;
4403     esac
4404    else
4405     case `/usr/bin/file conftest.$ac_objext` in
4406     *32-bit*)
4407       LD="${LD-ld} -32"
4408       ;;
4409     *N32*)
4410       LD="${LD-ld} -n32"
4411       ;;
4412     *64-bit*)
4413       LD="${LD-ld} -64"
4414       ;;
4415     esac
4416    fi
4417   fi
4418   rm -rf conftest*
4419   ;;
4420
4421 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4422   # Find out which ABI we are using.
4423   echo 'int i;' > conftest.$ac_ext
4424   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425   (eval $ac_compile) 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); }; then
4429     case "`/usr/bin/file conftest.o`" in
4430     *32-bit*)
4431       case $host in
4432         x86_64-*linux*)
4433           LD="${LD-ld} -m elf_i386"
4434           ;;
4435         ppc64-*linux*)
4436           LD="${LD-ld} -m elf32ppclinux"
4437           ;;
4438         s390x-*linux*)
4439           LD="${LD-ld} -m elf_s390"
4440           ;;
4441         sparc64-*linux*)
4442           LD="${LD-ld} -m elf32_sparc"
4443           ;;
4444       esac
4445       ;;
4446     *64-bit*)
4447       case $host in
4448         x86_64-*linux*)
4449           LD="${LD-ld} -m elf_x86_64"
4450           ;;
4451         ppc*-*linux*|powerpc*-*linux*)
4452           LD="${LD-ld} -m elf64ppc"
4453           ;;
4454         s390*-*linux*)
4455           LD="${LD-ld} -m elf64_s390"
4456           ;;
4457         sparc*-*linux*)
4458           LD="${LD-ld} -m elf64_sparc"
4459           ;;
4460       esac
4461       ;;
4462     esac
4463   fi
4464   rm -rf conftest*
4465   ;;
4466
4467 *-*-sco3.2v5*)
4468   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4469   SAVE_CFLAGS="$CFLAGS"
4470   CFLAGS="$CFLAGS -belf"
4471   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4472 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4473 if test "${lt_cv_cc_needs_belf+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   ac_ext=c
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481
4482      cat >conftest.$ac_ext <<_ACEOF
4483 #line $LINENO "configure"
4484 /* confdefs.h.  */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h.  */
4489
4490 int
4491 main ()
4492 {
4493
4494   ;
4495   return 0;
4496 }
4497 _ACEOF
4498 rm -f conftest.$ac_objext conftest$ac_exeext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4500   (eval $ac_link) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); } &&
4504          { ac_try='test -s conftest$ac_exeext'
4505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506   (eval $ac_try) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); }; }; then
4510   lt_cv_cc_needs_belf=yes
4511 else
4512   echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515 lt_cv_cc_needs_belf=no
4516 fi
4517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4518      ac_ext=c
4519 ac_cpp='$CPP $CPPFLAGS'
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523
4524 fi
4525 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4526 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4527   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4528     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4529     CFLAGS="$SAVE_CFLAGS"
4530   fi
4531   ;;
4532
4533 esac
4534
4535 need_locks="$enable_libtool_lock"
4536
4537
4538
4539 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541 if test "${ac_cv_header_stdc+set}" = set; then
4542   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544   cat >conftest.$ac_ext <<_ACEOF
4545 #line $LINENO "configure"
4546 /* confdefs.h.  */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h.  */
4551 #include <stdlib.h>
4552 #include <stdarg.h>
4553 #include <string.h>
4554 #include <float.h>
4555
4556 int
4557 main ()
4558 {
4559
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 rm -f conftest.$ac_objext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566   (eval $ac_compile) 2>&5
4567   ac_status=$?
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); } &&
4570          { ac_try='test -s conftest.$ac_objext'
4571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572   (eval $ac_try) 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; }; then
4576   ac_cv_header_stdc=yes
4577 else
4578   echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 ac_cv_header_stdc=no
4582 fi
4583 rm -f conftest.$ac_objext conftest.$ac_ext
4584
4585 if test $ac_cv_header_stdc = yes; then
4586   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4587   cat >conftest.$ac_ext <<_ACEOF
4588 #line $LINENO "configure"
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594 #include <string.h>
4595
4596 _ACEOF
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598   $EGREP "memchr" >/dev/null 2>&1; then
4599   :
4600 else
4601   ac_cv_header_stdc=no
4602 fi
4603 rm -f conftest*
4604
4605 fi
4606
4607 if test $ac_cv_header_stdc = yes; then
4608   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4609   cat >conftest.$ac_ext <<_ACEOF
4610 #line $LINENO "configure"
4611 /* confdefs.h.  */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h.  */
4616 #include <stdlib.h>
4617
4618 _ACEOF
4619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620   $EGREP "free" >/dev/null 2>&1; then
4621   :
4622 else
4623   ac_cv_header_stdc=no
4624 fi
4625 rm -f conftest*
4626
4627 fi
4628
4629 if test $ac_cv_header_stdc = yes; then
4630   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631   if test "$cross_compiling" = yes; then
4632   :
4633 else
4634   cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #include <ctype.h>
4642 #if ((' ' & 0x0FF) == 0x020)
4643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4645 #else
4646 # define ISLOWER(c) \
4647                    (('a' <= (c) && (c) <= 'i') \
4648                      || ('j' <= (c) && (c) <= 'r') \
4649                      || ('s' <= (c) && (c) <= 'z'))
4650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4651 #endif
4652
4653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4654 int
4655 main ()
4656 {
4657   int i;
4658   for (i = 0; i < 256; i++)
4659     if (XOR (islower (i), ISLOWER (i))
4660         || toupper (i) != TOUPPER (i))
4661       exit(2);
4662   exit (0);
4663 }
4664 _ACEOF
4665 rm -f conftest$ac_exeext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667   (eval $ac_link) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   :
4677 else
4678   echo "$as_me: program exited with status $ac_status" >&5
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682 ( exit $ac_status )
4683 ac_cv_header_stdc=no
4684 fi
4685 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4686 fi
4687 fi
4688 fi
4689 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4690 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4691 if test $ac_cv_header_stdc = yes; then
4692
4693 cat >>confdefs.h <<\_ACEOF
4694 #define STDC_HEADERS 1
4695 _ACEOF
4696
4697 fi
4698
4699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4710                   inttypes.h stdint.h unistd.h
4711 do
4712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4713 echo "$as_me:$LINENO: checking for $ac_header" >&5
4714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   cat >conftest.$ac_ext <<_ACEOF
4719 #line $LINENO "configure"
4720 /* confdefs.h.  */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h.  */
4725 $ac_includes_default
4726
4727 #include <$ac_header>
4728 _ACEOF
4729 rm -f conftest.$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731   (eval $ac_compile) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); } &&
4735          { ac_try='test -s conftest.$ac_objext'
4736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737   (eval $ac_try) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; }; then
4741   eval "$as_ac_Header=yes"
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 eval "$as_ac_Header=no"
4747 fi
4748 rm -f conftest.$ac_objext conftest.$ac_ext
4749 fi
4750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4753   cat >>confdefs.h <<_ACEOF
4754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4755 _ACEOF
4756
4757 fi
4758
4759 done
4760
4761
4762
4763 for ac_header in dlfcn.h
4764 do
4765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4767   echo "$as_me:$LINENO: checking for $ac_header" >&5
4768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4770   echo $ECHO_N "(cached) $ECHO_C" >&6
4771 fi
4772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4774 else
4775   # Is the header compilable?
4776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4778 cat >conftest.$ac_ext <<_ACEOF
4779 #line $LINENO "configure"
4780 /* confdefs.h.  */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h.  */
4785 $ac_includes_default
4786 #include <$ac_header>
4787 _ACEOF
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790   (eval $ac_compile) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); } &&
4794          { ac_try='test -s conftest.$ac_objext'
4795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796   (eval $ac_try) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; }; then
4800   ac_header_compiler=yes
4801 else
4802   echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4804
4805 ac_header_compiler=no
4806 fi
4807 rm -f conftest.$ac_objext conftest.$ac_ext
4808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4809 echo "${ECHO_T}$ac_header_compiler" >&6
4810
4811 # Is the header present?
4812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4814 cat >conftest.$ac_ext <<_ACEOF
4815 #line $LINENO "configure"
4816 /* confdefs.h.  */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h.  */
4821 #include <$ac_header>
4822 _ACEOF
4823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4825   ac_status=$?
4826   grep -v '^ *+' conftest.er1 >conftest.err
4827   rm -f conftest.er1
4828   cat conftest.err >&5
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); } >/dev/null; then
4831   if test -s conftest.err; then
4832     ac_cpp_err=$ac_c_preproc_warn_flag
4833   else
4834     ac_cpp_err=
4835   fi
4836 else
4837   ac_cpp_err=yes
4838 fi
4839 if test -z "$ac_cpp_err"; then
4840   ac_header_preproc=yes
4841 else
4842   echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845   ac_header_preproc=no
4846 fi
4847 rm -f conftest.err conftest.$ac_ext
4848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4849 echo "${ECHO_T}$ac_header_preproc" >&6
4850
4851 # So?  What about this header?
4852 case $ac_header_compiler:$ac_header_preproc in
4853   yes:no )
4854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4858     (
4859       cat <<\_ASBOX
4860 ## ------------------------------------ ##
4861 ## Report this to bug-autoconf@gnu.org. ##
4862 ## ------------------------------------ ##
4863 _ASBOX
4864     ) |
4865       sed "s/^/$as_me: WARNING:     /" >&2
4866     ;;
4867   no:yes )
4868     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4870     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4874     (
4875       cat <<\_ASBOX
4876 ## ------------------------------------ ##
4877 ## Report this to bug-autoconf@gnu.org. ##
4878 ## ------------------------------------ ##
4879 _ASBOX
4880     ) |
4881       sed "s/^/$as_me: WARNING:     /" >&2
4882     ;;
4883 esac
4884 echo "$as_me:$LINENO: checking for $ac_header" >&5
4885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   eval "$as_ac_Header=$ac_header_preproc"
4890 fi
4891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4893
4894 fi
4895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4896   cat >>confdefs.h <<_ACEOF
4897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4898 _ACEOF
4899
4900 fi
4901
4902 done
4903
4904 ac_ext=cc
4905 ac_cpp='$CXXCPP $CPPFLAGS'
4906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4909 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4910 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4911 if test -z "$CXXCPP"; then
4912   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4913   echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915       # Double quotes because CXXCPP needs to be expanded
4916     for CXXCPP in "$CXX -E" "/lib/cpp"
4917     do
4918       ac_preproc_ok=false
4919 for ac_cxx_preproc_warn_flag in '' yes
4920 do
4921   # Use a header file that comes with gcc, so configuring glibc
4922   # with a fresh cross-compiler works.
4923   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924   # <limits.h> exists even on freestanding compilers.
4925   # On the NeXT, cc -E runs the code through the compiler's parser,
4926   # not just through cpp. "Syntax error" is here to catch this case.
4927   cat >conftest.$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 #ifdef __STDC__
4935 # include <limits.h>
4936 #else
4937 # include <assert.h>
4938 #endif
4939                      Syntax error
4940 _ACEOF
4941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4943   ac_status=$?
4944   grep -v '^ *+' conftest.er1 >conftest.err
4945   rm -f conftest.er1
4946   cat conftest.err >&5
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } >/dev/null; then
4949   if test -s conftest.err; then
4950     ac_cpp_err=$ac_cxx_preproc_warn_flag
4951   else
4952     ac_cpp_err=
4953   fi
4954 else
4955   ac_cpp_err=yes
4956 fi
4957 if test -z "$ac_cpp_err"; then
4958   :
4959 else
4960   echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963   # Broken: fails on valid input.
4964 continue
4965 fi
4966 rm -f conftest.err conftest.$ac_ext
4967
4968   # OK, works on sane cases.  Now check whether non-existent headers
4969   # can be detected and how.
4970   cat >conftest.$ac_ext <<_ACEOF
4971 #line $LINENO "configure"
4972 /* confdefs.h.  */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h.  */
4977 #include <ac_nonexistent.h>
4978 _ACEOF
4979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4981   ac_status=$?
4982   grep -v '^ *+' conftest.er1 >conftest.err
4983   rm -f conftest.er1
4984   cat conftest.err >&5
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); } >/dev/null; then
4987   if test -s conftest.err; then
4988     ac_cpp_err=$ac_cxx_preproc_warn_flag
4989   else
4990     ac_cpp_err=
4991   fi
4992 else
4993   ac_cpp_err=yes
4994 fi
4995 if test -z "$ac_cpp_err"; then
4996   # Broken: success on invalid input.
4997 continue
4998 else
4999   echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002   # Passes both tests.
5003 ac_preproc_ok=:
5004 break
5005 fi
5006 rm -f conftest.err conftest.$ac_ext
5007
5008 done
5009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5010 rm -f conftest.err conftest.$ac_ext
5011 if $ac_preproc_ok; then
5012   break
5013 fi
5014
5015     done
5016     ac_cv_prog_CXXCPP=$CXXCPP
5017
5018 fi
5019   CXXCPP=$ac_cv_prog_CXXCPP
5020 else
5021   ac_cv_prog_CXXCPP=$CXXCPP
5022 fi
5023 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5024 echo "${ECHO_T}$CXXCPP" >&6
5025 ac_preproc_ok=false
5026 for ac_cxx_preproc_warn_flag in '' yes
5027 do
5028   # Use a header file that comes with gcc, so configuring glibc
5029   # with a fresh cross-compiler works.
5030   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031   # <limits.h> exists even on freestanding compilers.
5032   # On the NeXT, cc -E runs the code through the compiler's parser,
5033   # not just through cpp. "Syntax error" is here to catch this case.
5034   cat >conftest.$ac_ext <<_ACEOF
5035 #line $LINENO "configure"
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041 #ifdef __STDC__
5042 # include <limits.h>
5043 #else
5044 # include <assert.h>
5045 #endif
5046                      Syntax error
5047 _ACEOF
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050   ac_status=$?
5051   grep -v '^ *+' conftest.er1 >conftest.err
5052   rm -f conftest.er1
5053   cat conftest.err >&5
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } >/dev/null; then
5056   if test -s conftest.err; then
5057     ac_cpp_err=$ac_cxx_preproc_warn_flag
5058   else
5059     ac_cpp_err=
5060   fi
5061 else
5062   ac_cpp_err=yes
5063 fi
5064 if test -z "$ac_cpp_err"; then
5065   :
5066 else
5067   echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5069
5070   # Broken: fails on valid input.
5071 continue
5072 fi
5073 rm -f conftest.err conftest.$ac_ext
5074
5075   # OK, works on sane cases.  Now check whether non-existent headers
5076   # can be detected and how.
5077   cat >conftest.$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5079 /* confdefs.h.  */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h.  */
5084 #include <ac_nonexistent.h>
5085 _ACEOF
5086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5088   ac_status=$?
5089   grep -v '^ *+' conftest.er1 >conftest.err
5090   rm -f conftest.er1
5091   cat conftest.err >&5
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); } >/dev/null; then
5094   if test -s conftest.err; then
5095     ac_cpp_err=$ac_cxx_preproc_warn_flag
5096   else
5097     ac_cpp_err=
5098   fi
5099 else
5100   ac_cpp_err=yes
5101 fi
5102 if test -z "$ac_cpp_err"; then
5103   # Broken: success on invalid input.
5104 continue
5105 else
5106   echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5108
5109   # Passes both tests.
5110 ac_preproc_ok=:
5111 break
5112 fi
5113 rm -f conftest.err conftest.$ac_ext
5114
5115 done
5116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117 rm -f conftest.err conftest.$ac_ext
5118 if $ac_preproc_ok; then
5119   :
5120 else
5121   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5124 See \`config.log' for more details." >&2;}
5125    { (exit 1); exit 1; }; }
5126 fi
5127
5128 ac_ext=cc
5129 ac_cpp='$CXXCPP $CPPFLAGS'
5130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5133
5134
5135 ac_ext=f
5136 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5137 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5139 if test -n "$ac_tool_prefix"; then
5140   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5141   do
5142     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5144 echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5146 if test "${ac_cv_prog_F77+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   if test -n "$F77"; then
5150   ac_cv_prog_F77="$F77" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155   IFS=$as_save_IFS
5156   test -z "$as_dir" && as_dir=.
5157   for ac_exec_ext in '' $ac_executable_extensions; do
5158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161     break 2
5162   fi
5163 done
5164 done
5165
5166 fi
5167 fi
5168 F77=$ac_cv_prog_F77
5169 if test -n "$F77"; then
5170   echo "$as_me:$LINENO: result: $F77" >&5
5171 echo "${ECHO_T}$F77" >&6
5172 else
5173   echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6
5175 fi
5176
5177     test -n "$F77" && break
5178   done
5179 fi
5180 if test -z "$F77"; then
5181   ac_ct_F77=$F77
5182   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5183 do
5184   # Extract the first word of "$ac_prog", so it can be a program name with args.
5185 set dummy $ac_prog; ac_word=$2
5186 echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5189   echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191   if test -n "$ac_ct_F77"; then
5192   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197   IFS=$as_save_IFS
5198   test -z "$as_dir" && as_dir=.
5199   for ac_exec_ext in '' $ac_executable_extensions; do
5200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201     ac_cv_prog_ac_ct_F77="$ac_prog"
5202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203     break 2
5204   fi
5205 done
5206 done
5207
5208 fi
5209 fi
5210 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5211 if test -n "$ac_ct_F77"; then
5212   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5213 echo "${ECHO_T}$ac_ct_F77" >&6
5214 else
5215   echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6
5217 fi
5218
5219   test -n "$ac_ct_F77" && break
5220 done
5221
5222   F77=$ac_ct_F77
5223 fi
5224
5225
5226 # Provide some information about the compiler.
5227 echo "$as_me:5227:" \
5228      "checking for Fortran 77 compiler version" >&5
5229 ac_compiler=`set X $ac_compile; echo $2`
5230 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5231   (eval $ac_compiler --version </dev/null >&5) 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); }
5235 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5236   (eval $ac_compiler -v </dev/null >&5) 2>&5
5237   ac_status=$?
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); }
5240 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5241   (eval $ac_compiler -V </dev/null >&5) 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); }
5245
5246 # If we don't use `.F' as extension, the preprocessor is not run on the
5247 # input file.
5248 ac_save_ext=$ac_ext
5249 ac_ext=F
5250 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5251 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5252 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255   cat >conftest.$ac_ext <<_ACEOF
5256       program main
5257 #ifndef __GNUC__
5258        choke me
5259 #endif
5260
5261       end
5262 _ACEOF
5263 rm -f conftest.$ac_objext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5265   (eval $ac_compile) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } &&
5269          { ac_try='test -s conftest.$ac_objext'
5270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271   (eval $ac_try) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; }; then
5275   ac_compiler_gnu=yes
5276 else
5277   echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 ac_compiler_gnu=no
5281 fi
5282 rm -f conftest.$ac_objext conftest.$ac_ext
5283 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5284
5285 fi
5286 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5287 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5288 ac_ext=$ac_save_ext
5289 G77=`test $ac_compiler_gnu = yes && echo yes`
5290 ac_test_FFLAGS=${FFLAGS+set}
5291 ac_save_FFLAGS=$FFLAGS
5292 FFLAGS=
5293 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5294 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5295 if test "${ac_cv_prog_f77_g+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   FFLAGS=-g
5299 cat >conftest.$ac_ext <<_ACEOF
5300       program main
5301
5302       end
5303 _ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306   (eval $ac_compile) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); } &&
5310          { ac_try='test -s conftest.$ac_objext'
5311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312   (eval $ac_try) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; }; then
5316   ac_cv_prog_f77_g=yes
5317 else
5318   echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5320
5321 ac_cv_prog_f77_g=no
5322 fi
5323 rm -f conftest.$ac_objext conftest.$ac_ext
5324
5325 fi
5326 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5327 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5328 if test "$ac_test_FFLAGS" = set; then
5329   FFLAGS=$ac_save_FFLAGS
5330 elif test $ac_cv_prog_f77_g = yes; then
5331   if test "$G77" = yes; then
5332     FFLAGS="-g -O2"
5333   else
5334     FFLAGS="-g"
5335   fi
5336 else
5337   if test "$G77" = yes; then
5338     FFLAGS="-O2"
5339   else
5340     FFLAGS=
5341   fi
5342 fi
5343 ac_ext=c
5344 ac_cpp='$CPP $CPPFLAGS'
5345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348
5349
5350
5351 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5352
5353 # find the maximum length of command line arguments
5354 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5355 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5356 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5357   echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359     i=0
5360   testring="ABCD"
5361
5362   case $build_os in
5363   msdosdjgpp*)
5364     # On DJGPP, this test can blow up pretty badly due to problems in libc
5365     # (any single argument exceeding 2000 bytes causes a buffer overrun
5366     # during glob expansion).  Even if it were fixed, the result of this
5367     # check would be larger than it should be.
5368     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5369     ;;
5370
5371   gnu*)
5372     # Under GNU Hurd, this test is not required because there is
5373     # no limit to the length of command line arguments.
5374     # Libtool will interpret -1 as no limit whatsoever
5375     lt_cv_sys_max_cmd_len=-1;
5376     ;;
5377
5378   cygwin* | mingw*)
5379     # On Win9x/ME, this test blows up -- it succeeds, but takes
5380     # about 5 minutes as the teststring grows exponentially.
5381     # Worse, since 9x/ME are not pre-emptively multitasking,
5382     # you end up with a "frozen" computer, even though with patience
5383     # the test eventually succeeds (with a max line length of 256k).
5384     # Instead, let's just punt: use the minimum linelength reported by
5385     # all of the supported platforms: 8192 (on NT/2K/XP).
5386     lt_cv_sys_max_cmd_len=8192;
5387     ;;
5388
5389  *)
5390     # If test is not a shell built-in, we'll probably end up computing a
5391     # maximum length that is only half of the actual maximum length, but
5392     # we can't tell.
5393     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5394                = "XX$testring") >/dev/null 2>&1 &&
5395             new_result=`expr "X$testring" : ".*" 2>&1` &&
5396             lt_cv_sys_max_cmd_len=$new_result &&
5397             test $i != 17 # 1/2 MB should be enough
5398     do
5399       i=`expr $i + 1`
5400       testring=$testring$testring
5401     done
5402     testring=
5403     # Add a significant safety factor because C++ compilers can tack on massive
5404     # amounts of additional arguments before passing them to the linker.
5405     # It appears as though 1/2 is a usable value.
5406     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5407     ;;
5408   esac
5409
5410 fi
5411
5412 if test -n $lt_cv_sys_max_cmd_len ; then
5413   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5414 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5415 else
5416   echo "$as_me:$LINENO: result: none" >&5
5417 echo "${ECHO_T}none" >&6
5418 fi
5419
5420
5421
5422
5423 # Check for command to grab the raw symbol name followed by C symbol from nm.
5424 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5425 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5426 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429
5430 # These are sane defaults that work on at least a few old systems.
5431 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5432
5433 # Character class describing NM global symbol codes.
5434 symcode='[BCDEGRST]'
5435
5436 # Regexp to match symbols that can be accessed directly from C.
5437 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5438
5439 # Transform the above into a raw symbol and a C symbol.
5440 symxfrm='\1 \2\3 \3'
5441
5442 # Transform an extracted symbol line into a proper C declaration
5443 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5444
5445 # Transform an extracted symbol line into symbol name and symbol address
5446 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'"
5447
5448 # Define system-specific variables.
5449 case $host_os in
5450 aix*)
5451   symcode='[BCDT]'
5452   ;;
5453 cygwin* | mingw* | pw32*)
5454   symcode='[ABCDGISTW]'
5455   ;;
5456 hpux*) # Its linker distinguishes data from code symbols
5457   if test "$host_cpu" = ia64; then
5458     symcode='[ABCDEGRST]'
5459   fi
5460   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5461   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'"
5462   ;;
5463 irix* | nonstopux*)
5464   symcode='[BCDEGRST]'
5465   ;;
5466 osf*)
5467   symcode='[BCDEGQRST]'
5468   ;;
5469 solaris* | sysv5*)
5470   symcode='[BDT]'
5471   ;;
5472 sysv4)
5473   symcode='[DFNSTU]'
5474   ;;
5475 esac
5476
5477 # Handle CRLF in mingw tool chain
5478 opt_cr=
5479 case $build_os in
5480 mingw*)
5481   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5482   ;;
5483 esac
5484
5485 # If we're using GNU nm, then use its standard symbol codes.
5486 case `$NM -V 2>&1` in
5487 *GNU* | *'with BFD'*)
5488   symcode='[ABCDGISTW]' ;;
5489 esac
5490
5491 # Try without a prefix undercore, then with it.
5492 for ac_symprfx in "" "_"; do
5493
5494   # Write the raw and C identifiers.
5495   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5496
5497   # Check to see that the pipe works correctly.
5498   pipe_works=no
5499
5500   rm -f conftest*
5501   cat > conftest.$ac_ext <<EOF
5502 #ifdef __cplusplus
5503 extern "C" {
5504 #endif
5505 char nm_test_var;
5506 void nm_test_func(){}
5507 #ifdef __cplusplus
5508 }
5509 #endif
5510 int main(){nm_test_var='a';nm_test_func();return(0);}
5511 EOF
5512
5513   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514   (eval $ac_compile) 2>&5
5515   ac_status=$?
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); }; then
5518     # Now try to grab the symbols.
5519     nlist=conftest.nm
5520     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5521   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } && test -s "$nlist"; then
5525       # Try sorting and uniquifying the output.
5526       if sort "$nlist" | uniq > "$nlist"T; then
5527         mv -f "$nlist"T "$nlist"
5528       else
5529         rm -f "$nlist"T
5530       fi
5531
5532       # Make sure that we snagged all the symbols we need.
5533       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5534         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5535           cat <<EOF > conftest.$ac_ext
5536 #ifdef __cplusplus
5537 extern "C" {
5538 #endif
5539
5540 EOF
5541           # Now generate the symbol file.
5542           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5543
5544           cat <<EOF >> conftest.$ac_ext
5545 #if defined (__STDC__) && __STDC__
5546 # define lt_ptr_t void *
5547 #else
5548 # define lt_ptr_t char *
5549 # define const
5550 #endif
5551
5552 /* The mapping between symbol names and symbols. */
5553 const struct {
5554   const char *name;
5555   lt_ptr_t address;
5556 }
5557 lt_preloaded_symbols[] =
5558 {
5559 EOF
5560           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5561           cat <<\EOF >> conftest.$ac_ext
5562   {0, (lt_ptr_t) 0}
5563 };
5564
5565 #ifdef __cplusplus
5566 }
5567 #endif
5568 EOF
5569           # Now try linking the two files.
5570           mv conftest.$ac_objext conftstm.$ac_objext
5571           lt_save_LIBS="$LIBS"
5572           lt_save_CFLAGS="$CFLAGS"
5573           LIBS="conftstm.$ac_objext"
5574           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5575           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576   (eval $ac_link) 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5580             pipe_works=yes
5581           fi
5582           LIBS="$lt_save_LIBS"
5583           CFLAGS="$lt_save_CFLAGS"
5584         else
5585           echo "cannot find nm_test_func in $nlist" >&5
5586         fi
5587       else
5588         echo "cannot find nm_test_var in $nlist" >&5
5589       fi
5590     else
5591       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5592     fi
5593   else
5594     echo "$progname: failed program was:" >&5
5595     cat conftest.$ac_ext >&5
5596   fi
5597   rm -f conftest* conftst*
5598
5599   # Do not use the global_symbol_pipe unless it works.
5600   if test "$pipe_works" = yes; then
5601     break
5602   else
5603     lt_cv_sys_global_symbol_pipe=
5604   fi
5605 done
5606
5607 fi
5608
5609 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5610   lt_cv_sys_global_symbol_to_cdecl=
5611 fi
5612 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5613   echo "$as_me:$LINENO: result: failed" >&5
5614 echo "${ECHO_T}failed" >&6
5615 else
5616   echo "$as_me:$LINENO: result: ok" >&5
5617 echo "${ECHO_T}ok" >&6
5618 fi
5619
5620 echo "$as_me:$LINENO: checking for objdir" >&5
5621 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5622 if test "${lt_cv_objdir+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   rm -f .libs 2>/dev/null
5626 mkdir .libs 2>/dev/null
5627 if test -d .libs; then
5628   lt_cv_objdir=.libs
5629 else
5630   # MS-DOS does not allow filenames that begin with a dot.
5631   lt_cv_objdir=_libs
5632 fi
5633 rmdir .libs 2>/dev/null
5634 fi
5635 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5636 echo "${ECHO_T}$lt_cv_objdir" >&6
5637 objdir=$lt_cv_objdir
5638
5639
5640
5641
5642
5643 case $host_os in
5644 aix3*)
5645   # AIX sometimes has problems with the GCC collect2 program.  For some
5646   # reason, if we set the COLLECT_NAMES environment variable, the problems
5647   # vanish in a puff of smoke.
5648   if test "X${COLLECT_NAMES+set}" != Xset; then
5649     COLLECT_NAMES=
5650     export COLLECT_NAMES
5651   fi
5652   ;;
5653 esac
5654
5655 # Sed substitution that helps us do robust quoting.  It backslashifies
5656 # metacharacters that are still active within double-quoted strings.
5657 Xsed='sed -e s/^X//'
5658 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5659
5660 # Same as above, but do not quote variable references.
5661 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5662
5663 # Sed substitution to delay expansion of an escaped shell variable in a
5664 # double_quote_subst'ed string.
5665 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5666
5667 # Sed substitution to avoid accidental globbing in evaled expressions
5668 no_glob_subst='s/\*/\\\*/g'
5669
5670 # Constants:
5671 rm="rm -f"
5672
5673 # Global variables:
5674 default_ofile=mklib
5675 can_build_shared=yes
5676
5677 # All known linkers require a `.a' archive for static linking (except M$VC,
5678 # which needs '.lib').
5679 libext=a
5680 ltmain="$ac_aux_dir/ltmain.sh"
5681 ofile="$default_ofile"
5682 with_gnu_ld="$lt_cv_prog_gnu_ld"
5683
5684 if test -n "$ac_tool_prefix"; then
5685   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5686 set dummy ${ac_tool_prefix}ar; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_AR+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   if test -n "$AR"; then
5693   ac_cv_prog_AR="$AR" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700   for ac_exec_ext in '' $ac_executable_extensions; do
5701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_prog_AR="${ac_tool_prefix}ar"
5703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707 done
5708
5709 fi
5710 fi
5711 AR=$ac_cv_prog_AR
5712 if test -n "$AR"; then
5713   echo "$as_me:$LINENO: result: $AR" >&5
5714 echo "${ECHO_T}$AR" >&6
5715 else
5716   echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5718 fi
5719
5720 fi
5721 if test -z "$ac_cv_prog_AR"; then
5722   ac_ct_AR=$AR
5723   # Extract the first word of "ar", so it can be a program name with args.
5724 set dummy ar; ac_word=$2
5725 echo "$as_me:$LINENO: checking for $ac_word" >&5
5726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   if test -n "$ac_ct_AR"; then
5731   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738   for ac_exec_ext in '' $ac_executable_extensions; do
5739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740     ac_cv_prog_ac_ct_AR="ar"
5741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745 done
5746
5747   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5748 fi
5749 fi
5750 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5751 if test -n "$ac_ct_AR"; then
5752   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5753 echo "${ECHO_T}$ac_ct_AR" >&6
5754 else
5755   echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5757 fi
5758
5759   AR=$ac_ct_AR
5760 else
5761   AR="$ac_cv_prog_AR"
5762 fi
5763
5764 if test -n "$ac_tool_prefix"; then
5765   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_RANLIB+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   if test -n "$RANLIB"; then
5773   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780   for ac_exec_ext in '' $ac_executable_extensions; do
5781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787 done
5788
5789 fi
5790 fi
5791 RANLIB=$ac_cv_prog_RANLIB
5792 if test -n "$RANLIB"; then
5793   echo "$as_me:$LINENO: result: $RANLIB" >&5
5794 echo "${ECHO_T}$RANLIB" >&6
5795 else
5796   echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6
5798 fi
5799
5800 fi
5801 if test -z "$ac_cv_prog_RANLIB"; then
5802   ac_ct_RANLIB=$RANLIB
5803   # Extract the first word of "ranlib", so it can be a program name with args.
5804 set dummy ranlib; ac_word=$2
5805 echo "$as_me:$LINENO: checking for $ac_word" >&5
5806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5807 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   if test -n "$ac_ct_RANLIB"; then
5811   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816   IFS=$as_save_IFS
5817   test -z "$as_dir" && as_dir=.
5818   for ac_exec_ext in '' $ac_executable_extensions; do
5819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820     ac_cv_prog_ac_ct_RANLIB="ranlib"
5821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822     break 2
5823   fi
5824 done
5825 done
5826
5827   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5828 fi
5829 fi
5830 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5831 if test -n "$ac_ct_RANLIB"; then
5832   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5833 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5834 else
5835   echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5837 fi
5838
5839   RANLIB=$ac_ct_RANLIB
5840 else
5841   RANLIB="$ac_cv_prog_RANLIB"
5842 fi
5843
5844 if test -n "$ac_tool_prefix"; then
5845   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5846 set dummy ${ac_tool_prefix}strip; ac_word=$2
5847 echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849 if test "${ac_cv_prog_STRIP+set}" = set; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852   if test -n "$STRIP"; then
5853   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860   for ac_exec_ext in '' $ac_executable_extensions; do
5861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867 done
5868
5869 fi
5870 fi
5871 STRIP=$ac_cv_prog_STRIP
5872 if test -n "$STRIP"; then
5873   echo "$as_me:$LINENO: result: $STRIP" >&5
5874 echo "${ECHO_T}$STRIP" >&6
5875 else
5876   echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6
5878 fi
5879
5880 fi
5881 if test -z "$ac_cv_prog_STRIP"; then
5882   ac_ct_STRIP=$STRIP
5883   # Extract the first word of "strip", so it can be a program name with args.
5884 set dummy strip; ac_word=$2
5885 echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5887 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   if test -n "$ac_ct_STRIP"; then
5891   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898   for ac_exec_ext in '' $ac_executable_extensions; do
5899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900     ac_cv_prog_ac_ct_STRIP="strip"
5901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905 done
5906
5907   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5908 fi
5909 fi
5910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5911 if test -n "$ac_ct_STRIP"; then
5912   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5913 echo "${ECHO_T}$ac_ct_STRIP" >&6
5914 else
5915   echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5917 fi
5918
5919   STRIP=$ac_ct_STRIP
5920 else
5921   STRIP="$ac_cv_prog_STRIP"
5922 fi
5923
5924
5925 old_CC="$CC"
5926 old_CFLAGS="$CFLAGS"
5927
5928 # Set sane defaults for various variables
5929 test -z "$AR" && AR=ar
5930 test -z "$AR_FLAGS" && AR_FLAGS=cru
5931 test -z "$AS" && AS=as
5932 test -z "$CC" && CC=cc
5933 test -z "$LTCC" && LTCC=$CC
5934 test -z "$DLLTOOL" && DLLTOOL=dlltool
5935 test -z "$LD" && LD=ld
5936 test -z "$LN_S" && LN_S="ln -s"
5937 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5938 test -z "$NM" && NM=nm
5939 test -z "$SED" && SED=sed
5940 test -z "$OBJDUMP" && OBJDUMP=objdump
5941 test -z "$RANLIB" && RANLIB=:
5942 test -z "$STRIP" && STRIP=:
5943 test -z "$ac_objext" && ac_objext=o
5944
5945 # Determine commands to create old-style static archives.
5946 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5947 old_postinstall_cmds='chmod 644 $oldlib'
5948 old_postuninstall_cmds=
5949
5950 if test -n "$RANLIB"; then
5951   case $host_os in
5952   openbsd*)
5953     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5954     ;;
5955   *)
5956     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5957     ;;
5958   esac
5959   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5960 fi
5961
5962 # Only perform the check for file, if the check method requires it
5963 case $deplibs_check_method in
5964 file_magic*)
5965   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5966     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5967 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5968 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971   case $MAGIC_CMD in
5972 [\\/*] |  ?:[\\/]*)
5973   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5974   ;;
5975 *)
5976   lt_save_MAGIC_CMD="$MAGIC_CMD"
5977   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5978   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5979   for ac_dir in $ac_dummy; do
5980     IFS="$lt_save_ifs"
5981     test -z "$ac_dir" && ac_dir=.
5982     if test -f $ac_dir/${ac_tool_prefix}file; then
5983       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5984       if test -n "$file_magic_test_file"; then
5985         case $deplibs_check_method in
5986         "file_magic "*)
5987           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5988           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5989           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5990             $EGREP "$file_magic_regex" > /dev/null; then
5991             :
5992           else
5993             cat <<EOF 1>&2
5994
5995 *** Warning: the command libtool uses to detect shared libraries,
5996 *** $file_magic_cmd, produces output that libtool cannot recognize.
5997 *** The result is that libtool may fail to recognize shared libraries
5998 *** as such.  This will affect the creation of libtool libraries that
5999 *** depend on shared libraries, but programs linked with such libtool
6000 *** libraries will work regardless of this problem.  Nevertheless, you
6001 *** may want to report the problem to your system manager and/or to
6002 *** bug-libtool@gnu.org
6003
6004 EOF
6005           fi ;;
6006         esac
6007       fi
6008       break
6009     fi
6010   done
6011   IFS="$lt_save_ifs"
6012   MAGIC_CMD="$lt_save_MAGIC_CMD"
6013   ;;
6014 esac
6015 fi
6016
6017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6018 if test -n "$MAGIC_CMD"; then
6019   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6020 echo "${ECHO_T}$MAGIC_CMD" >&6
6021 else
6022   echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6024 fi
6025
6026 if test -z "$lt_cv_path_MAGIC_CMD"; then
6027   if test -n "$ac_tool_prefix"; then
6028     echo "$as_me:$LINENO: checking for file" >&5
6029 echo $ECHO_N "checking for file... $ECHO_C" >&6
6030 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033   case $MAGIC_CMD in
6034 [\\/*] |  ?:[\\/]*)
6035   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6036   ;;
6037 *)
6038   lt_save_MAGIC_CMD="$MAGIC_CMD"
6039   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6040   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6041   for ac_dir in $ac_dummy; do
6042     IFS="$lt_save_ifs"
6043     test -z "$ac_dir" && ac_dir=.
6044     if test -f $ac_dir/file; then
6045       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6046       if test -n "$file_magic_test_file"; then
6047         case $deplibs_check_method in
6048         "file_magic "*)
6049           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6050           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6051           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6052             $EGREP "$file_magic_regex" > /dev/null; then
6053             :
6054           else
6055             cat <<EOF 1>&2
6056
6057 *** Warning: the command libtool uses to detect shared libraries,
6058 *** $file_magic_cmd, produces output that libtool cannot recognize.
6059 *** The result is that libtool may fail to recognize shared libraries
6060 *** as such.  This will affect the creation of libtool libraries that
6061 *** depend on shared libraries, but programs linked with such libtool
6062 *** libraries will work regardless of this problem.  Nevertheless, you
6063 *** may want to report the problem to your system manager and/or to
6064 *** bug-libtool@gnu.org
6065
6066 EOF
6067           fi ;;
6068         esac
6069       fi
6070       break
6071     fi
6072   done
6073   IFS="$lt_save_ifs"
6074   MAGIC_CMD="$lt_save_MAGIC_CMD"
6075   ;;
6076 esac
6077 fi
6078
6079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6080 if test -n "$MAGIC_CMD"; then
6081   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6082 echo "${ECHO_T}$MAGIC_CMD" >&6
6083 else
6084   echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6
6086 fi
6087
6088   else
6089     MAGIC_CMD=:
6090   fi
6091 fi
6092
6093   fi
6094   ;;
6095 esac
6096
6097 enable_dlopen=no
6098 enable_win32_dll=no
6099
6100 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6101 if test "${enable_libtool_lock+set}" = set; then
6102   enableval="$enable_libtool_lock"
6103
6104 fi;
6105 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6106
6107
6108 # Check whether --with-pic or --without-pic was given.
6109 if test "${with_pic+set}" = set; then
6110   withval="$with_pic"
6111   pic_mode="$withval"
6112 else
6113   pic_mode=default
6114 fi;
6115 test -z "$pic_mode" && pic_mode=default
6116
6117 # Use C for the default configuration in the libtool script
6118 tagname=
6119 lt_save_CC="$CC"
6120 ac_ext=c
6121 ac_cpp='$CPP $CPPFLAGS'
6122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6125
6126
6127 # Source file extension for C test sources.
6128 ac_ext=c
6129
6130 # Object file extension for compiled C test sources.
6131 objext=o
6132 objext=$objext
6133
6134 # Code to be used in simple compile tests
6135 lt_simple_compile_test_code="int some_variable = 0;\n"
6136
6137 # Code to be used in simple link tests
6138 lt_simple_link_test_code='int main(){return(0);}\n'
6139
6140
6141 # If no C compiler was specified, use CC.
6142 LTCC=${LTCC-"$CC"}
6143
6144 # Allow CC to be a program name with arguments.
6145 compiler=$CC
6146
6147
6148 #
6149 # Check for any special shared library compilation flags.
6150 #
6151 lt_prog_cc_shlib=
6152 if test "$GCC" = no; then
6153   case $host_os in
6154   sco3.2v5*)
6155     lt_prog_cc_shlib='-belf'
6156     ;;
6157   esac
6158 fi
6159 if test -n "$lt_prog_cc_shlib"; then
6160   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6161 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6162   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6163   else
6164     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6165 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6166     lt_cv_prog_cc_can_build_shared=no
6167   fi
6168 fi
6169
6170
6171 #
6172 # Check to make sure the static flag actually works.
6173 #
6174 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6175 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6176 if test "${lt_prog_compiler_static_works+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   lt_prog_compiler_static_works=no
6180    save_LDFLAGS="$LDFLAGS"
6181    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6182    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6183    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6184      # The compiler can only warn and ignore the option if not recognized
6185      # So say no if there are warnings
6186      if test -s conftest.err; then
6187        # Append any errors to the config.log.
6188        cat conftest.err 1>&5
6189      else
6190        lt_prog_compiler_static_works=yes
6191      fi
6192    fi
6193    $rm conftest*
6194    LDFLAGS="$save_LDFLAGS"
6195
6196 fi
6197 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6198 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6199
6200 if test x"$lt_prog_compiler_static_works" = xyes; then
6201     :
6202 else
6203     lt_prog_compiler_static=
6204 fi
6205
6206
6207
6208 ## CAVEAT EMPTOR:
6209 ## There is no encapsulation within the following macros, do not change
6210 ## the running order or otherwise move them around unless you know exactly
6211 ## what you are doing...
6212
6213 lt_prog_compiler_no_builtin_flag=
6214
6215 if test "$GCC" = yes; then
6216   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6217
6218   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6219 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6220 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   lt_cv_prog_compiler_rtti_exceptions=no
6224   ac_outfile=conftest.$ac_objext
6225    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6226    lt_compiler_flag="-fno-rtti -fno-exceptions"
6227    # Insert the option either (1) after the last *FLAGS variable, or
6228    # (2) before a word containing "conftest.", or (3) at the end.
6229    # Note that $ac_compile itself does not contain backslashes and begins
6230    # with a dollar sign (not a hyphen), so the echo should work correctly.
6231    # The option is referenced via a variable to avoid confusing sed.
6232    lt_compile=`echo "$ac_compile" | $SED \
6233    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6234    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6235    -e 's:$: $lt_compiler_flag:'`
6236    (eval echo "\"\$as_me:6236: $lt_compile\"" >&5)
6237    (eval "$lt_compile" 2>conftest.err)
6238    ac_status=$?
6239    cat conftest.err >&5
6240    echo "$as_me:6240: \$? = $ac_status" >&5
6241    if (exit $ac_status) && test -s "$ac_outfile"; then
6242      # The compiler can only warn and ignore the option if not recognized
6243      # So say no if there are warnings
6244      if test ! -s conftest.err; then
6245        lt_cv_prog_compiler_rtti_exceptions=yes
6246      fi
6247    fi
6248    $rm conftest*
6249
6250 fi
6251 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6252 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6253
6254 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6255     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6256 else
6257     :
6258 fi
6259
6260 fi
6261
6262 lt_prog_compiler_wl=
6263 lt_prog_compiler_pic=
6264 lt_prog_compiler_static=
6265
6266 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6267 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6268
6269   if test "$GCC" = yes; then
6270     lt_prog_compiler_wl='-Wl,'
6271     lt_prog_compiler_static='-static'
6272
6273     case $host_os in
6274       aix*)
6275       # All AIX code is PIC.
6276       if test "$host_cpu" = ia64; then
6277         # AIX 5 now supports IA64 processor
6278         lt_prog_compiler_static='-Bstatic'
6279       fi
6280       ;;
6281
6282     amigaos*)
6283       # FIXME: we need at least 68020 code to build shared libraries, but
6284       # adding the `-m68020' flag to GCC prevents building anything better,
6285       # like `-m68040'.
6286       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6287       ;;
6288
6289     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6290       # PIC is the default for these OSes.
6291       ;;
6292
6293     mingw* | pw32* | os2*)
6294       # This hack is so that the source file can tell whether it is being
6295       # built for inclusion in a dll (and should export symbols for example).
6296       lt_prog_compiler_pic='-DDLL_EXPORT'
6297       ;;
6298
6299     darwin* | rhapsody*)
6300       # PIC is the default on this platform
6301       # Common symbols not allowed in MH_DYLIB files
6302       lt_prog_compiler_pic='-fno-common'
6303       ;;
6304
6305     msdosdjgpp*)
6306       # Just because we use GCC doesn't mean we suddenly get shared libraries
6307       # on systems that don't support them.
6308       lt_prog_compiler_can_build_shared=no
6309       enable_shared=no
6310       ;;
6311
6312     sysv4*MP*)
6313       if test -d /usr/nec; then
6314         lt_prog_compiler_pic=-Kconform_pic
6315       fi
6316       ;;
6317
6318     hpux*)
6319       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6320       # not for PA HP-UX.
6321       case "$host_cpu" in
6322       hppa*64*|ia64*)
6323         # +Z the default
6324         ;;
6325       *)
6326         lt_prog_compiler_pic='-fPIC'
6327         ;;
6328       esac
6329       ;;
6330
6331     *)
6332       lt_prog_compiler_pic='-fPIC'
6333       ;;
6334     esac
6335   else
6336     # PORTME Check for flag to pass linker flags through the system compiler.
6337     case $host_os in
6338     aix*)
6339       lt_prog_compiler_wl='-Wl,'
6340       if test "$host_cpu" = ia64; then
6341         # AIX 5 now supports IA64 processor
6342         lt_prog_compiler_static='-Bstatic'
6343       else
6344         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6345       fi
6346       ;;
6347
6348     mingw* | pw32* | os2*)
6349       # This hack is so that the source file can tell whether it is being
6350       # built for inclusion in a dll (and should export symbols for example).
6351       lt_prog_compiler_pic='-DDLL_EXPORT'
6352       ;;
6353
6354     hpux9* | hpux10* | hpux11*)
6355       lt_prog_compiler_wl='-Wl,'
6356       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6357       # not for PA HP-UX.
6358       case "$host_cpu" in
6359       hppa*64*|ia64*)
6360         # +Z the default
6361         ;;
6362       *)
6363         lt_prog_compiler_pic='+Z'
6364         ;;
6365       esac
6366       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6367       lt_prog_compiler_static='${wl}-a ${wl}archive'
6368       ;;
6369
6370     irix5* | irix6* | nonstopux*)
6371       lt_prog_compiler_wl='-Wl,'
6372       # PIC (with -KPIC) is the default.
6373       lt_prog_compiler_static='-non_shared'
6374       ;;
6375
6376     newsos6)
6377       lt_prog_compiler_pic='-KPIC'
6378       lt_prog_compiler_static='-Bstatic'
6379       ;;
6380
6381     linux*)
6382       case $CC in
6383       icc|ecc)
6384         lt_prog_compiler_wl='-Wl,'
6385         lt_prog_compiler_pic='-KPIC'
6386         lt_prog_compiler_static='-static'
6387         ;;
6388       ccc)
6389         lt_prog_compiler_wl='-Wl,'
6390         # All Alpha code is PIC.
6391         lt_prog_compiler_static='-non_shared'
6392         ;;
6393       esac
6394       ;;
6395
6396     osf3* | osf4* | osf5*)
6397       lt_prog_compiler_wl='-Wl,'
6398       # All OSF/1 code is PIC.
6399       lt_prog_compiler_static='-non_shared'
6400       ;;
6401
6402     sco3.2v5*)
6403       lt_prog_compiler_pic='-Kpic'
6404       lt_prog_compiler_static='-dn'
6405       ;;
6406
6407     solaris*)
6408       lt_prog_compiler_wl='-Wl,'
6409       lt_prog_compiler_pic='-KPIC'
6410       lt_prog_compiler_static='-Bstatic'
6411       ;;
6412
6413     sunos4*)
6414       lt_prog_compiler_wl='-Qoption ld '
6415       lt_prog_compiler_pic='-PIC'
6416       lt_prog_compiler_static='-Bstatic'
6417       ;;
6418
6419     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6420       lt_prog_compiler_wl='-Wl,'
6421       lt_prog_compiler_pic='-KPIC'
6422       lt_prog_compiler_static='-Bstatic'
6423       ;;
6424
6425     sysv4*MP*)
6426       if test -d /usr/nec ;then
6427         lt_prog_compiler_pic='-Kconform_pic'
6428         lt_prog_compiler_static='-Bstatic'
6429       fi
6430       ;;
6431
6432     uts4*)
6433       lt_prog_compiler_pic='-pic'
6434       lt_prog_compiler_static='-Bstatic'
6435       ;;
6436
6437     *)
6438       lt_prog_compiler_can_build_shared=no
6439       ;;
6440     esac
6441   fi
6442
6443 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6444 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6445
6446 #
6447 # Check to make sure the PIC flag actually works.
6448 #
6449 if test -n "$lt_prog_compiler_pic"; then
6450   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6451 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6452 if test "${lt_prog_compiler_pic_works+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455   lt_prog_compiler_pic_works=no
6456   ac_outfile=conftest.$ac_objext
6457    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6458    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6459    # Insert the option either (1) after the last *FLAGS variable, or
6460    # (2) before a word containing "conftest.", or (3) at the end.
6461    # Note that $ac_compile itself does not contain backslashes and begins
6462    # with a dollar sign (not a hyphen), so the echo should work correctly.
6463    # The option is referenced via a variable to avoid confusing sed.
6464    lt_compile=`echo "$ac_compile" | $SED \
6465    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6466    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6467    -e 's:$: $lt_compiler_flag:'`
6468    (eval echo "\"\$as_me:6468: $lt_compile\"" >&5)
6469    (eval "$lt_compile" 2>conftest.err)
6470    ac_status=$?
6471    cat conftest.err >&5
6472    echo "$as_me:6472: \$? = $ac_status" >&5
6473    if (exit $ac_status) && test -s "$ac_outfile"; then
6474      # The compiler can only warn and ignore the option if not recognized
6475      # So say no if there are warnings
6476      if test ! -s conftest.err; then
6477        lt_prog_compiler_pic_works=yes
6478      fi
6479    fi
6480    $rm conftest*
6481
6482 fi
6483 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6484 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6485
6486 if test x"$lt_prog_compiler_pic_works" = xyes; then
6487     case $lt_prog_compiler_pic in
6488      "" | " "*) ;;
6489      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6490      esac
6491 else
6492     lt_prog_compiler_pic=
6493      lt_prog_compiler_can_build_shared=no
6494 fi
6495
6496 fi
6497 case "$host_os" in
6498   # For platforms which do not support PIC, -DPIC is meaningless:
6499   *djgpp*)
6500     lt_prog_compiler_pic=
6501     ;;
6502   *)
6503     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6504     ;;
6505 esac
6506
6507 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6508 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6509 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6510   echo $ECHO_N "(cached) $ECHO_C" >&6
6511 else
6512   lt_cv_prog_compiler_c_o=no
6513    $rm -r conftest 2>/dev/null
6514    mkdir conftest
6515    cd conftest
6516    mkdir out
6517    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6518
6519    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6520    # that will create temporary files in the current directory regardless of
6521    # the output directory.  Thus, making CWD read-only will cause this test
6522    # to fail, enabling locking or at least warning the user not to do parallel
6523    # builds.
6524    chmod -w .
6525
6526    lt_compiler_flag="-o out/conftest2.$ac_objext"
6527    # Insert the option either (1) after the last *FLAGS variable, or
6528    # (2) before a word containing "conftest.", or (3) at the end.
6529    # Note that $ac_compile itself does not contain backslashes and begins
6530    # with a dollar sign (not a hyphen), so the echo should work correctly.
6531    lt_compile=`echo "$ac_compile" | $SED \
6532    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6533    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6534    -e 's:$: $lt_compiler_flag:'`
6535    (eval echo "\"\$as_me:6535: $lt_compile\"" >&5)
6536    (eval "$lt_compile" 2>out/conftest.err)
6537    ac_status=$?
6538    cat out/conftest.err >&5
6539    echo "$as_me:6539: \$? = $ac_status" >&5
6540    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6541    then
6542      # The compiler can only warn and ignore the option if not recognized
6543      # So say no if there are warnings
6544      if test ! -s out/conftest.err; then
6545        lt_cv_prog_compiler_c_o=yes
6546      fi
6547    fi
6548    chmod u+w .
6549    $rm conftest* out/*
6550    rmdir out
6551    cd ..
6552    rmdir conftest
6553    $rm conftest*
6554
6555 fi
6556 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6557 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6558
6559
6560 hard_links="nottested"
6561 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6562   # do not overwrite the value of need_locks provided by the user
6563   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6564 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6565   hard_links=yes
6566   $rm conftest*
6567   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6568   touch conftest.a
6569   ln conftest.a conftest.b 2>&5 || hard_links=no
6570   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6571   echo "$as_me:$LINENO: result: $hard_links" >&5
6572 echo "${ECHO_T}$hard_links" >&6
6573   if test "$hard_links" = no; then
6574     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6575 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6576     need_locks=warn
6577   fi
6578 else
6579   need_locks=no
6580 fi
6581
6582 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6583 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6584
6585   runpath_var=
6586   allow_undefined_flag=
6587   enable_shared_with_static_runtimes=no
6588   archive_cmds=
6589   archive_expsym_cmds=
6590   old_archive_From_new_cmds=
6591   old_archive_from_expsyms_cmds=
6592   export_dynamic_flag_spec=
6593   whole_archive_flag_spec=
6594   thread_safe_flag_spec=
6595   hardcode_libdir_flag_spec=
6596   hardcode_libdir_flag_spec_ld=
6597   hardcode_libdir_separator=
6598   hardcode_direct=no
6599   hardcode_minus_L=no
6600   hardcode_shlibpath_var=unsupported
6601   link_all_deplibs=unknown
6602   hardcode_automatic=no
6603   module_cmds=
6604   module_expsym_cmds=
6605   always_export_symbols=no
6606   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6607   # include_expsyms should be a list of space-separated symbols to be *always*
6608   # included in the symbol list
6609   include_expsyms=
6610   # exclude_expsyms can be an extended regexp of symbols to exclude
6611   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6612   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6613   # as well as any symbol that contains `d'.
6614   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6615   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6616   # platforms (ab)use it in PIC code, but their linkers get confused if
6617   # the symbol is explicitly referenced.  Since portable code cannot
6618   # rely on this symbol name, it's probably fine to never include it in
6619   # preloaded symbol tables.
6620   extract_expsyms_cmds=
6621
6622   case $host_os in
6623   cygwin* | mingw* | pw32*)
6624     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6625     # When not using gcc, we currently assume that we are using
6626     # Microsoft Visual C++.
6627     if test "$GCC" != yes; then
6628       with_gnu_ld=no
6629     fi
6630     ;;
6631   openbsd*)
6632     with_gnu_ld=no
6633     ;;
6634   esac
6635
6636   ld_shlibs=yes
6637   if test "$with_gnu_ld" = yes; then
6638     # If archive_cmds runs LD, not CC, wlarc should be empty
6639     wlarc='${wl}'
6640
6641     # See if GNU ld supports shared libraries.
6642     case $host_os in
6643     aix3* | aix4* | aix5*)
6644       # On AIX/PPC, the GNU linker is very broken
6645       if test "$host_cpu" != ia64; then
6646         ld_shlibs=no
6647         cat <<EOF 1>&2
6648
6649 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6650 *** to be unable to reliably create shared libraries on AIX.
6651 *** Therefore, libtool is disabling shared libraries support.  If you
6652 *** really care for shared libraries, you may want to modify your PATH
6653 *** so that a non-GNU linker is found, and then restart.
6654
6655 EOF
6656       fi
6657       ;;
6658
6659     amigaos*)
6660       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)'
6661       hardcode_libdir_flag_spec='-L$libdir'
6662       hardcode_minus_L=yes
6663
6664       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6665       # that the semantics of dynamic libraries on AmigaOS, at least up
6666       # to version 4, is to share data among multiple programs linked
6667       # with the same dynamic library.  Since this doesn't match the
6668       # behavior of shared libraries on other platforms, we can't use
6669       # them.
6670       ld_shlibs=no
6671       ;;
6672
6673     beos*)
6674       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6675         allow_undefined_flag=unsupported
6676         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6677         # support --undefined.  This deserves some investigation.  FIXME
6678         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6679       else
6680         ld_shlibs=no
6681       fi
6682       ;;
6683
6684     cygwin* | mingw* | pw32*)
6685       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6686       # as there is no search path for DLLs.
6687       hardcode_libdir_flag_spec='-L$libdir'
6688       allow_undefined_flag=unsupported
6689       always_export_symbols=no
6690       enable_shared_with_static_runtimes=yes
6691       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6692
6693       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6694         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6695         # If the export-symbols file already is a .def file (1st line
6696         # is EXPORTS), use it as is; otherwise, prepend...
6697         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6698           cp $export_symbols $output_objdir/$soname.def;
6699         else
6700           echo EXPORTS > $output_objdir/$soname.def;
6701           cat $export_symbols >> $output_objdir/$soname.def;
6702         fi~
6703         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6704       else
6705         ld_shlibs=no
6706       fi
6707       ;;
6708
6709     netbsd*)
6710       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6711         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6712         wlarc=
6713       else
6714         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6715         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6716       fi
6717       ;;
6718
6719     solaris* | sysv5*)
6720       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6721         ld_shlibs=no
6722         cat <<EOF 1>&2
6723
6724 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6725 *** create shared libraries on Solaris systems.  Therefore, libtool
6726 *** is disabling shared libraries support.  We urge you to upgrade GNU
6727 *** binutils to release 2.9.1 or newer.  Another option is to modify
6728 *** your PATH or compiler configuration so that the native linker is
6729 *** used, and then restart.
6730
6731 EOF
6732       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6733         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6734         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6735       else
6736         ld_shlibs=no
6737       fi
6738       ;;
6739
6740     sunos4*)
6741       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6742       wlarc=
6743       hardcode_direct=yes
6744       hardcode_shlibpath_var=no
6745       ;;
6746
6747     *)
6748       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6749         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6750         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6751       else
6752         ld_shlibs=no
6753       fi
6754       ;;
6755     esac
6756
6757     if test "$ld_shlibs" = yes; then
6758       runpath_var=LD_RUN_PATH
6759       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6760       export_dynamic_flag_spec='${wl}--export-dynamic'
6761       # ancient GNU ld didn't support --whole-archive et. al.
6762       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6763         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6764       else
6765         whole_archive_flag_spec=
6766       fi
6767     fi
6768   else
6769     # PORTME fill in a description of your system's linker (not GNU ld)
6770     case $host_os in
6771     aix3*)
6772       allow_undefined_flag=unsupported
6773       always_export_symbols=yes
6774       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'
6775       # Note: this linker hardcodes the directories in LIBPATH if there
6776       # are no directories specified by -L.
6777       hardcode_minus_L=yes
6778       if test "$GCC" = yes && test -z "$link_static_flag"; then
6779         # Neither direct hardcoding nor static linking is supported with a
6780         # broken collect2.
6781         hardcode_direct=unsupported
6782       fi
6783       ;;
6784
6785     aix4* | aix5*)
6786       if test "$host_cpu" = ia64; then
6787         # On IA64, the linker does run time linking by default, so we don't
6788         # have to do anything special.
6789         aix_use_runtimelinking=no
6790         exp_sym_flag='-Bexport'
6791         no_entry_flag=""
6792       else
6793         # If we're using GNU nm, then we don't want the "-C" option.
6794         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6795         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6796           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'
6797         else
6798           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'
6799         fi
6800         aix_use_runtimelinking=no
6801
6802         # Test if we are trying to use run time linking or normal
6803         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6804         # need to do runtime linking.
6805         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6806           for ld_flag in $LDFLAGS; do
6807           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6808             aix_use_runtimelinking=yes
6809             break
6810           fi
6811           done
6812         esac
6813
6814         exp_sym_flag='-bexport'
6815         no_entry_flag='-bnoentry'
6816       fi
6817
6818       # When large executables or shared objects are built, AIX ld can
6819       # have problems creating the table of contents.  If linking a library
6820       # or program results in "error TOC overflow" add -mminimal-toc to
6821       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6822       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6823
6824       archive_cmds=''
6825       hardcode_direct=yes
6826       hardcode_libdir_separator=':'
6827       link_all_deplibs=yes
6828
6829       if test "$GCC" = yes; then
6830         case $host_os in aix4.012|aix4.012.*)
6831         # We only want to do this on AIX 4.2 and lower, the check
6832         # below for broken collect2 doesn't work under 4.3+
6833           collect2name=`${CC} -print-prog-name=collect2`
6834           if test -f "$collect2name" && \
6835            strings "$collect2name" | grep resolve_lib_name >/dev/null
6836           then
6837           # We have reworked collect2
6838           hardcode_direct=yes
6839           else
6840           # We have old collect2
6841           hardcode_direct=unsupported
6842           # It fails to find uninstalled libraries when the uninstalled
6843           # path is not listed in the libpath.  Setting hardcode_minus_L
6844           # to unsupported forces relinking
6845           hardcode_minus_L=yes
6846           hardcode_libdir_flag_spec='-L$libdir'
6847           hardcode_libdir_separator=
6848           fi
6849         esac
6850         shared_flag='-shared'
6851       else
6852         # not using gcc
6853         if test "$host_cpu" = ia64; then
6854         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6855         # chokes on -Wl,-G. The following line is correct:
6856           shared_flag='-G'
6857         else
6858         if test "$aix_use_runtimelinking" = yes; then
6859             shared_flag='${wl}-G'
6860           else
6861             shared_flag='${wl}-bM:SRE'
6862         fi
6863         fi
6864       fi
6865
6866       # It seems that -bexpall does not export symbols beginning with
6867       # underscore (_), so it is better to generate a list of symbols to export.
6868       always_export_symbols=yes
6869       if test "$aix_use_runtimelinking" = yes; then
6870         # Warning - without using the other runtime loading flags (-brtl),
6871         # -berok will link without error, but may produce a broken library.
6872         allow_undefined_flag='-berok'
6873        # Determine the default libpath from the value encoded in an empty executable.
6874        cat >conftest.$ac_ext <<_ACEOF
6875 #line $LINENO "configure"
6876 /* confdefs.h.  */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h.  */
6881
6882 int
6883 main ()
6884 {
6885
6886   ;
6887   return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext conftest$ac_exeext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6892   (eval $ac_link) 2>&5
6893   ac_status=$?
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); } &&
6896          { ac_try='test -s conftest$ac_exeext'
6897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898   (eval $ac_try) 2>&5
6899   ac_status=$?
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); }; }; then
6902
6903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6904 }'`
6905 # Check for a 64-bit object if we didn't find anything.
6906 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; }
6907 }'`; fi
6908 else
6909   echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6911
6912 fi
6913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6915
6916        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6917         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"
6918        else
6919         if test "$host_cpu" = ia64; then
6920           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6921           allow_undefined_flag="-z nodefs"
6922           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"
6923         else
6924          # Determine the default libpath from the value encoded in an empty executable.
6925          cat >conftest.$ac_ext <<_ACEOF
6926 #line $LINENO "configure"
6927 /* confdefs.h.  */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h.  */
6932
6933 int
6934 main ()
6935 {
6936
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943   (eval $ac_link) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); } &&
6947          { ac_try='test -s conftest$ac_exeext'
6948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949   (eval $ac_try) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); }; }; then
6953
6954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6955 }'`
6956 # Check for a 64-bit object if we didn't find anything.
6957 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; }
6958 }'`; fi
6959 else
6960   echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 fi
6964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6966
6967          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6968           # Warning - without using the other run time loading flags,
6969           # -berok will link without error, but may produce a broken library.
6970           no_undefined_flag=' ${wl}-bernotok'
6971           allow_undefined_flag=' ${wl}-berok'
6972           # -bexpall does not export symbols beginning with underscore (_)
6973           always_export_symbols=yes
6974           # Exported symbols can be pulled into shared objects from archives
6975           whole_archive_flag_spec=' '
6976           archive_cmds_need_lc=yes
6977           # This is similar to how AIX traditionally builds it's shared libraries.
6978           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'
6979         fi
6980       fi
6981       ;;
6982
6983     amigaos*)
6984       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)'
6985       hardcode_libdir_flag_spec='-L$libdir'
6986       hardcode_minus_L=yes
6987       # see comment about different semantics on the GNU ld section
6988       ld_shlibs=no
6989       ;;
6990
6991     bsdi4*)
6992       export_dynamic_flag_spec=-rdynamic
6993       ;;
6994
6995     cygwin* | mingw* | pw32*)
6996       # When not using gcc, we currently assume that we are using
6997       # Microsoft Visual C++.
6998       # hardcode_libdir_flag_spec is actually meaningless, as there is
6999       # no search path for DLLs.
7000       hardcode_libdir_flag_spec=' '
7001       allow_undefined_flag=unsupported
7002       # Tell ltmain to make .lib files, not .a files.
7003       libext=lib
7004       # Tell ltmain to make .dll files, not .so files.
7005       shrext=".dll"
7006       # FIXME: Setting linknames here is a bad hack.
7007       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7008       # The linker will automatically build a .lib file if we build a DLL.
7009       old_archive_From_new_cmds='true'
7010       # FIXME: Should let the user specify the lib program.
7011       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7012       fix_srcfile_path='`cygpath -w "$srcfile"`'
7013       enable_shared_with_static_runtimes=yes
7014       ;;
7015
7016     darwin* | rhapsody*)
7017     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7018       archive_cmds_need_lc=no
7019       case "$host_os" in
7020       rhapsody* | darwin1.[012])
7021         allow_undefined_flag='-undefined suppress'
7022         ;;
7023       *) # Darwin 1.3 on
7024         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7025         ;;
7026       esac
7027       # FIXME: Relying on posixy $() will cause problems for
7028       #        cross-compilation, but unfortunately the echo tests do not
7029       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7030       #        `"' quotes if we put them in here... so don't!
7031         lt_int_apple_cc_single_mod=no
7032         output_verbose_link_cmd='echo'
7033         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7034           lt_int_apple_cc_single_mod=yes
7035         fi
7036         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7037           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7038         else
7039         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'
7040       fi
7041       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7042       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7043         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7044           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}'
7045         else
7046           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}'
7047         fi
7048           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}'
7049       hardcode_direct=no
7050       hardcode_automatic=yes
7051       hardcode_shlibpath_var=unsupported
7052       whole_archive_flag_spec='-all_load $convenience'
7053       link_all_deplibs=yes
7054     fi
7055       ;;
7056
7057     dgux*)
7058       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7059       hardcode_libdir_flag_spec='-L$libdir'
7060       hardcode_shlibpath_var=no
7061       ;;
7062
7063     freebsd1*)
7064       ld_shlibs=no
7065       ;;
7066
7067     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7068     # support.  Future versions do this automatically, but an explicit c++rt0.o
7069     # does not break anything, and helps significantly (at the cost of a little
7070     # extra space).
7071     freebsd2.2*)
7072       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7073       hardcode_libdir_flag_spec='-R$libdir'
7074       hardcode_direct=yes
7075       hardcode_shlibpath_var=no
7076       ;;
7077
7078     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7079     freebsd2*)
7080       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7081       hardcode_direct=yes
7082       hardcode_minus_L=yes
7083       hardcode_shlibpath_var=no
7084       ;;
7085
7086     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7087     freebsd*)
7088       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7089       hardcode_libdir_flag_spec='-R$libdir'
7090       hardcode_direct=yes
7091       hardcode_shlibpath_var=no
7092       ;;
7093
7094     hpux9*)
7095       if test "$GCC" = yes; then
7096         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'
7097       else
7098         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'
7099       fi
7100       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7101       hardcode_libdir_separator=:
7102       hardcode_direct=yes
7103
7104       # hardcode_minus_L: Not really in the search PATH,
7105       # but as the default location of the library.
7106       hardcode_minus_L=yes
7107       export_dynamic_flag_spec='${wl}-E'
7108       ;;
7109
7110     hpux10* | hpux11*)
7111       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7112         case "$host_cpu" in
7113         hppa*64*|ia64*)
7114           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7115           ;;
7116         *)
7117           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7118           ;;
7119         esac
7120       else
7121         case "$host_cpu" in
7122         hppa*64*|ia64*)
7123           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7124           ;;
7125         *)
7126           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7127           ;;
7128         esac
7129       fi
7130       if test "$with_gnu_ld" = no; then
7131         case "$host_cpu" in
7132         hppa*64*)
7133           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7134           hardcode_libdir_flag_spec_ld='+b $libdir'
7135           hardcode_libdir_separator=:
7136           hardcode_direct=no
7137           hardcode_shlibpath_var=no
7138           ;;
7139         ia64*)
7140           hardcode_libdir_flag_spec='-L$libdir'
7141           hardcode_direct=no
7142           hardcode_shlibpath_var=no
7143
7144           # hardcode_minus_L: Not really in the search PATH,
7145           # but as the default location of the library.
7146           hardcode_minus_L=yes
7147           ;;
7148         *)
7149           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7150           hardcode_libdir_separator=:
7151           hardcode_direct=yes
7152           export_dynamic_flag_spec='${wl}-E'
7153
7154           # hardcode_minus_L: Not really in the search PATH,
7155           # but as the default location of the library.
7156           hardcode_minus_L=yes
7157           ;;
7158         esac
7159       fi
7160       ;;
7161
7162     irix5* | irix6* | nonstopux*)
7163       if test "$GCC" = yes; then
7164         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'
7165       else
7166         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'
7167         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7168       fi
7169       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7170       hardcode_libdir_separator=:
7171       link_all_deplibs=yes
7172       ;;
7173
7174     netbsd*)
7175       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7176         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7177       else
7178         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7179       fi
7180       hardcode_libdir_flag_spec='-R$libdir'
7181       hardcode_direct=yes
7182       hardcode_shlibpath_var=no
7183       ;;
7184
7185     newsos6)
7186       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7187       hardcode_direct=yes
7188       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7189       hardcode_libdir_separator=:
7190       hardcode_shlibpath_var=no
7191       ;;
7192
7193     openbsd*)
7194       hardcode_direct=yes
7195       hardcode_shlibpath_var=no
7196       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7197         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7198         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7199         export_dynamic_flag_spec='${wl}-E'
7200       else
7201        case $host_os in
7202          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7203            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7204            hardcode_libdir_flag_spec='-R$libdir'
7205            ;;
7206          *)
7207            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7208            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7209            ;;
7210        esac
7211       fi
7212       ;;
7213
7214     os2*)
7215       hardcode_libdir_flag_spec='-L$libdir'
7216       hardcode_minus_L=yes
7217       allow_undefined_flag=unsupported
7218       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'
7219       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7220       ;;
7221
7222     osf3*)
7223       if test "$GCC" = yes; then
7224         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7225         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'
7226       else
7227         allow_undefined_flag=' -expect_unresolved \*'
7228         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'
7229       fi
7230       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7231       hardcode_libdir_separator=:
7232       ;;
7233
7234     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7235       if test "$GCC" = yes; then
7236         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7237         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'
7238         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7239       else
7240         allow_undefined_flag=' -expect_unresolved \*'
7241         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'
7242         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7243         $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'
7244
7245         # Both c and cxx compiler support -rpath directly
7246         hardcode_libdir_flag_spec='-rpath $libdir'
7247       fi
7248       hardcode_libdir_separator=:
7249       ;;
7250
7251     sco3.2v5*)
7252       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7253       hardcode_shlibpath_var=no
7254       export_dynamic_flag_spec='${wl}-Bexport'
7255       runpath_var=LD_RUN_PATH
7256       hardcode_runpath_var=yes
7257       ;;
7258
7259     solaris*)
7260       no_undefined_flag=' -z text'
7261       if test "$GCC" = yes; then
7262         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7263         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7264           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7265       else
7266         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7267         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7268         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7269       fi
7270       hardcode_libdir_flag_spec='-R$libdir'
7271       hardcode_shlibpath_var=no
7272       case $host_os in
7273       solaris2.[0-5] | solaris2.[0-5].*) ;;
7274       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7275         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7276       esac
7277       link_all_deplibs=yes
7278       ;;
7279
7280     sunos4*)
7281       if test "x$host_vendor" = xsequent; then
7282         # Use $CC to link under sequent, because it throws in some extra .o
7283         # files that make .init and .fini sections work.
7284         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7285       else
7286         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7287       fi
7288       hardcode_libdir_flag_spec='-L$libdir'
7289       hardcode_direct=yes
7290       hardcode_minus_L=yes
7291       hardcode_shlibpath_var=no
7292       ;;
7293
7294     sysv4)
7295       case $host_vendor in
7296         sni)
7297           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7298           hardcode_direct=yes # is this really true???
7299         ;;
7300         siemens)
7301           ## LD is ld it makes a PLAMLIB
7302           ## CC just makes a GrossModule.
7303           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7304           reload_cmds='$CC -r -o $output$reload_objs'
7305           hardcode_direct=no
7306         ;;
7307         motorola)
7308           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7310         ;;
7311       esac
7312       runpath_var='LD_RUN_PATH'
7313       hardcode_shlibpath_var=no
7314       ;;
7315
7316     sysv4.3*)
7317       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7318       hardcode_shlibpath_var=no
7319       export_dynamic_flag_spec='-Bexport'
7320       ;;
7321
7322     sysv4*MP*)
7323       if test -d /usr/nec; then
7324         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325         hardcode_shlibpath_var=no
7326         runpath_var=LD_RUN_PATH
7327         hardcode_runpath_var=yes
7328         ld_shlibs=yes
7329       fi
7330       ;;
7331
7332     sysv4.2uw2*)
7333       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7334       hardcode_direct=yes
7335       hardcode_minus_L=no
7336       hardcode_shlibpath_var=no
7337       hardcode_runpath_var=yes
7338       runpath_var=LD_RUN_PATH
7339       ;;
7340
7341    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7342       no_undefined_flag='${wl}-z ${wl}text'
7343       if test "$GCC" = yes; then
7344         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7345       else
7346         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7347       fi
7348       runpath_var='LD_RUN_PATH'
7349       hardcode_shlibpath_var=no
7350       ;;
7351
7352     sysv5*)
7353       no_undefined_flag=' -z text'
7354       # $CC -shared without GNU ld will not create a library from C++
7355       # object files and a static libstdc++, better avoid it by now
7356       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7357       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7358                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7359       hardcode_libdir_flag_spec=
7360       hardcode_shlibpath_var=no
7361       runpath_var='LD_RUN_PATH'
7362       ;;
7363
7364     uts4*)
7365       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7366       hardcode_libdir_flag_spec='-L$libdir'
7367       hardcode_shlibpath_var=no
7368       ;;
7369
7370     *)
7371       ld_shlibs=no
7372       ;;
7373     esac
7374   fi
7375
7376 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7377 echo "${ECHO_T}$ld_shlibs" >&6
7378 test "$ld_shlibs" = no && can_build_shared=no
7379
7380 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7381 if test "$GCC" = yes; then
7382   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7383 fi
7384
7385 #
7386 # Do we need to explicitly link libc?
7387 #
7388 case "x$archive_cmds_need_lc" in
7389 x|xyes)
7390   # Assume -lc should be added
7391   archive_cmds_need_lc=yes
7392
7393   if test "$enable_shared" = yes && test "$GCC" = yes; then
7394     case $archive_cmds in
7395     *'~'*)
7396       # FIXME: we may have to deal with multi-command sequences.
7397       ;;
7398     '$CC '*)
7399       # Test whether the compiler implicitly links with -lc since on some
7400       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7401       # to ld, don't add -lc before -lgcc.
7402       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7403 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7404       $rm conftest*
7405       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7406
7407       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408   (eval $ac_compile) 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } 2>conftest.err; then
7412         soname=conftest
7413         lib=conftest
7414         libobjs=conftest.$ac_objext
7415         deplibs=
7416         wl=$lt_prog_compiler_wl
7417         compiler_flags=-v
7418         linker_flags=-v
7419         verstring=
7420         output_objdir=.
7421         libname=conftest
7422         lt_save_allow_undefined_flag=$allow_undefined_flag
7423         allow_undefined_flag=
7424         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7425   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7426   ac_status=$?
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); }
7429         then
7430           archive_cmds_need_lc=no
7431         else
7432           archive_cmds_need_lc=yes
7433         fi
7434         allow_undefined_flag=$lt_save_allow_undefined_flag
7435       else
7436         cat conftest.err 1>&5
7437       fi
7438       $rm conftest*
7439       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7440 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7441       ;;
7442     esac
7443   fi
7444   ;;
7445 esac
7446
7447 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7448 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7449 hardcode_action=
7450 if test -n "$hardcode_libdir_flag_spec" || \
7451    test -n "$runpath_var " || \
7452    test "X$hardcode_automatic"="Xyes" ; then
7453
7454   # We can hardcode non-existant directories.
7455   if test "$hardcode_direct" != no &&
7456      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7457      # have to relink, otherwise we might link with an installed library
7458      # when we should be linking with a yet-to-be-installed one
7459      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7460      test "$hardcode_minus_L" != no; then
7461     # Linking always hardcodes the temporary library directory.
7462     hardcode_action=relink
7463   else
7464     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7465     hardcode_action=immediate
7466   fi
7467 else
7468   # We cannot hardcode anything, or else we can only hardcode existing
7469   # directories.
7470   hardcode_action=unsupported
7471 fi
7472 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7473 echo "${ECHO_T}$hardcode_action" >&6
7474
7475 if test "$hardcode_action" = relink; then
7476   # Fast installation is not supported
7477   enable_fast_install=no
7478 elif test "$shlibpath_overrides_runpath" = yes ||
7479      test "$enable_shared" = no; then
7480   # Fast installation is not necessary
7481   enable_fast_install=needless
7482 fi
7483
7484 striplib=
7485 old_striplib=
7486 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7487 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7488 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7489   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7490   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7491   echo "$as_me:$LINENO: result: yes" >&5
7492 echo "${ECHO_T}yes" >&6
7493 else
7494 # FIXME - insert some real tests, host_os isn't really good enough
7495   case $host_os in
7496    darwin*)
7497        if test -n "$STRIP" ; then
7498          striplib="$STRIP -x"
7499          echo "$as_me:$LINENO: result: yes" >&5
7500 echo "${ECHO_T}yes" >&6
7501        else
7502   echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6
7504 fi
7505        ;;
7506    *)
7507   echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6
7509     ;;
7510   esac
7511 fi
7512
7513 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7514 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7515 library_names_spec=
7516 libname_spec='lib$name'
7517 soname_spec=
7518 shrext=".so"
7519 postinstall_cmds=
7520 postuninstall_cmds=
7521 finish_cmds=
7522 finish_eval=
7523 shlibpath_var=
7524 shlibpath_overrides_runpath=unknown
7525 version_type=none
7526 dynamic_linker="$host_os ld.so"
7527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7528 if test "$GCC" = yes; then
7529   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7530   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7531     # if the path contains ";" then we assume it to be the separator
7532     # otherwise default to the standard path separator (i.e. ":") - it is
7533     # assumed that no part of a normal pathname contains ";" but that should
7534     # okay in the real world where ";" in dirpaths is itself problematic.
7535     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7536   else
7537     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7538   fi
7539 else
7540   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7541 fi
7542 need_lib_prefix=unknown
7543 hardcode_into_libs=no
7544
7545 # when you set need_version to no, make sure it does not cause -set_version
7546 # flags to be left without arguments
7547 need_version=unknown
7548
7549 case $host_os in
7550 aix3*)
7551   version_type=linux
7552   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7553   shlibpath_var=LIBPATH
7554
7555   # AIX 3 has no versioning support, so we append a major version to the name.
7556   soname_spec='${libname}${release}${shared_ext}$major'
7557   ;;
7558
7559 aix4* | aix5*)
7560   version_type=linux
7561   need_lib_prefix=no
7562   need_version=no
7563   hardcode_into_libs=yes
7564   if test "$host_cpu" = ia64; then
7565     # AIX 5 supports IA64
7566     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7567     shlibpath_var=LD_LIBRARY_PATH
7568   else
7569     # With GCC up to 2.95.x, collect2 would create an import file
7570     # for dependence libraries.  The import file would start with
7571     # the line `#! .'.  This would cause the generated library to
7572     # depend on `.', always an invalid library.  This was fixed in
7573     # development snapshots of GCC prior to 3.0.
7574     case $host_os in
7575       aix4 | aix4.[01] | aix4.[01].*)
7576       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7577            echo ' yes '
7578            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7579         :
7580       else
7581         can_build_shared=no
7582       fi
7583       ;;
7584     esac
7585     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7586     # soname into executable. Probably we can add versioning support to
7587     # collect2, so additional links can be useful in future.
7588     if test "$aix_use_runtimelinking" = yes; then
7589       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7590       # instead of lib<name>.a to let people know that these are not
7591       # typical AIX shared libraries.
7592       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7593     else
7594       # We preserve .a as extension for shared libraries through AIX4.2
7595       # and later when we are not doing run time linking.
7596       library_names_spec='${libname}${release}.a $libname.a'
7597       soname_spec='${libname}${release}${shared_ext}$major'
7598     fi
7599     shlibpath_var=LIBPATH
7600   fi
7601   ;;
7602
7603 amigaos*)
7604   library_names_spec='$libname.ixlibrary $libname.a'
7605   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7606   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'
7607   ;;
7608
7609 beos*)
7610   library_names_spec='${libname}${shared_ext}'
7611   dynamic_linker="$host_os ld.so"
7612   shlibpath_var=LIBRARY_PATH
7613   ;;
7614
7615 bsdi4*)
7616   version_type=linux
7617   need_version=no
7618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7619   soname_spec='${libname}${release}${shared_ext}$major'
7620   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7621   shlibpath_var=LD_LIBRARY_PATH
7622   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7623   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7624   # the default ld.so.conf also contains /usr/contrib/lib and
7625   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7626   # libtool to hard-code these into programs
7627   ;;
7628
7629 cygwin* | mingw* | pw32*)
7630   version_type=windows
7631   shrext=".dll"
7632   need_version=no
7633   need_lib_prefix=no
7634
7635   case $GCC,$host_os in
7636   yes,cygwin* | yes,mingw* | yes,pw32*)
7637     library_names_spec='$libname.dll.a'
7638     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7639     postinstall_cmds='base_file=`basename \${file}`~
7640       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7641       dldir=$destdir/`dirname \$dlpath`~
7642       test -d \$dldir || mkdir -p \$dldir~
7643       $install_prog $dir/$dlname \$dldir/$dlname'
7644     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7645       dlpath=$dir/\$dldll~
7646        $rm \$dlpath'
7647     shlibpath_overrides_runpath=yes
7648
7649     case $host_os in
7650     cygwin*)
7651       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7652       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7653       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7654       ;;
7655     mingw*)
7656       # MinGW DLLs use traditional 'lib' prefix
7657       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7658       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7659       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7660         # It is most probably a Windows format PATH printed by
7661         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7662         # path with ; separators, and with drive letters. We can handle the
7663         # drive letters (cygwin fileutils understands them), so leave them,
7664         # especially as we might pass files found there to a mingw objdump,
7665         # which wouldn't understand a cygwinified path. Ahh.
7666         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7667       else
7668         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7669       fi
7670       ;;
7671     pw32*)
7672       # pw32 DLLs use 'pw' prefix rather than 'lib'
7673       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7674       ;;
7675     esac
7676     ;;
7677
7678   *)
7679     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7680     ;;
7681   esac
7682   dynamic_linker='Win32 ld.exe'
7683   # FIXME: first we should search . and the directory the executable is in
7684   shlibpath_var=PATH
7685   ;;
7686
7687 darwin* | rhapsody*)
7688   dynamic_linker="$host_os dyld"
7689   version_type=darwin
7690   need_lib_prefix=no
7691   need_version=no
7692   # FIXME: Relying on posixy $() will cause problems for
7693   #        cross-compilation, but unfortunately the echo tests do not
7694   #        yet detect zsh echo's removal of \ escapes.
7695   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7696   soname_spec='${libname}${release}${major}$shared_ext'
7697   shlibpath_overrides_runpath=yes
7698   shlibpath_var=DYLD_LIBRARY_PATH
7699   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7700   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7701   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7702   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"`
7703   fi
7704   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7705   ;;
7706
7707 dgux*)
7708   version_type=linux
7709   need_lib_prefix=no
7710   need_version=no
7711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7712   soname_spec='${libname}${release}${shared_ext}$major'
7713   shlibpath_var=LD_LIBRARY_PATH
7714   ;;
7715
7716 freebsd1*)
7717   dynamic_linker=no
7718   ;;
7719
7720 freebsd*)
7721   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7722   version_type=freebsd-$objformat
7723   case $version_type in
7724     freebsd-elf*)
7725       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7726       need_version=no
7727       need_lib_prefix=no
7728       ;;
7729     freebsd-*)
7730       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7731       need_version=yes
7732       ;;
7733   esac
7734   shlibpath_var=LD_LIBRARY_PATH
7735   case $host_os in
7736   freebsd2*)
7737     shlibpath_overrides_runpath=yes
7738     ;;
7739   freebsd3.01* | freebsdelf3.01*)
7740     shlibpath_overrides_runpath=yes
7741     hardcode_into_libs=yes
7742     ;;
7743   *) # from 3.2 on
7744     shlibpath_overrides_runpath=no
7745     hardcode_into_libs=yes
7746     ;;
7747   esac
7748   ;;
7749
7750 gnu*)
7751   version_type=linux
7752   need_lib_prefix=no
7753   need_version=no
7754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7755   soname_spec='${libname}${release}${shared_ext}$major'
7756   shlibpath_var=LD_LIBRARY_PATH
7757   hardcode_into_libs=yes
7758   ;;
7759
7760 hpux9* | hpux10* | hpux11*)
7761   # Give a soname corresponding to the major version so that dld.sl refuses to
7762   # link against other versions.
7763   version_type=sunos
7764   need_lib_prefix=no
7765   need_version=no
7766   case "$host_cpu" in
7767   ia64*)
7768     shrext='.so'
7769     hardcode_into_libs=yes
7770     dynamic_linker="$host_os dld.so"
7771     shlibpath_var=LD_LIBRARY_PATH
7772     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7774     soname_spec='${libname}${release}${shared_ext}$major'
7775     if test "X$HPUX_IA64_MODE" = X32; then
7776       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7777     else
7778       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7779     fi
7780     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7781     ;;
7782    hppa*64*)
7783      shrext='.sl'
7784      hardcode_into_libs=yes
7785      dynamic_linker="$host_os dld.sl"
7786      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7787      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7788      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7789      soname_spec='${libname}${release}${shared_ext}$major'
7790      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7791      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7792      ;;
7793    *)
7794     shrext='.sl'
7795     dynamic_linker="$host_os dld.sl"
7796     shlibpath_var=SHLIB_PATH
7797     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7799     soname_spec='${libname}${release}${shared_ext}$major'
7800     ;;
7801   esac
7802   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7803   postinstall_cmds='chmod 555 $lib'
7804   ;;
7805
7806 irix5* | irix6* | nonstopux*)
7807   case $host_os in
7808     nonstopux*) version_type=nonstopux ;;
7809     *)
7810         if test "$lt_cv_prog_gnu_ld" = yes; then
7811                 version_type=linux
7812         else
7813                 version_type=irix
7814         fi ;;
7815   esac
7816   need_lib_prefix=no
7817   need_version=no
7818   soname_spec='${libname}${release}${shared_ext}$major'
7819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7820   case $host_os in
7821   irix5* | nonstopux*)
7822     libsuff= shlibsuff=
7823     ;;
7824   *)
7825     case $LD in # libtool.m4 will add one of these switches to LD
7826     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7827       libsuff= shlibsuff= libmagic=32-bit;;
7828     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7829       libsuff=32 shlibsuff=N32 libmagic=N32;;
7830     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7831       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7832     *) libsuff= shlibsuff= libmagic=never-match;;
7833     esac
7834     ;;
7835   esac
7836   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7837   shlibpath_overrides_runpath=no
7838   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7839   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7840   hardcode_into_libs=yes
7841   ;;
7842
7843 # No shared lib support for Linux oldld, aout, or coff.
7844 linux*oldld* | linux*aout* | linux*coff*)
7845   dynamic_linker=no
7846   ;;
7847
7848 # This must be Linux ELF.
7849 linux*)
7850   version_type=linux
7851   need_lib_prefix=no
7852   need_version=no
7853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854   soname_spec='${libname}${release}${shared_ext}$major'
7855   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7856   shlibpath_var=LD_LIBRARY_PATH
7857   shlibpath_overrides_runpath=no
7858   # This implies no fast_install, which is unacceptable.
7859   # Some rework will be needed to allow for fast_install
7860   # before this can be enabled.
7861   hardcode_into_libs=yes
7862
7863   # We used to test for /lib/ld.so.1 and disable shared libraries on
7864   # powerpc, because MkLinux only supported shared libraries with the
7865   # GNU dynamic linker.  Since this was broken with cross compilers,
7866   # most powerpc-linux boxes support dynamic linking these days and
7867   # people can always --disable-shared, the test was removed, and we
7868   # assume the GNU/Linux dynamic linker is in use.
7869   dynamic_linker='GNU/Linux ld.so'
7870   ;;
7871
7872 netbsd*)
7873   version_type=sunos
7874   need_lib_prefix=no
7875   need_version=no
7876   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7878     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7879     dynamic_linker='NetBSD (a.out) ld.so'
7880   else
7881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7882     soname_spec='${libname}${release}${shared_ext}$major'
7883     dynamic_linker='NetBSD ld.elf_so'
7884   fi
7885   shlibpath_var=LD_LIBRARY_PATH
7886   shlibpath_overrides_runpath=yes
7887   hardcode_into_libs=yes
7888   ;;
7889
7890 newsos6)
7891   version_type=linux
7892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893   shlibpath_var=LD_LIBRARY_PATH
7894   shlibpath_overrides_runpath=yes
7895   ;;
7896
7897 nto-qnx)
7898   version_type=linux
7899   need_lib_prefix=no
7900   need_version=no
7901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7902   soname_spec='${libname}${release}${shared_ext}$major'
7903   shlibpath_var=LD_LIBRARY_PATH
7904   shlibpath_overrides_runpath=yes
7905   ;;
7906
7907 openbsd*)
7908   version_type=sunos
7909   need_lib_prefix=no
7910   need_version=no
7911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7912   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7913   shlibpath_var=LD_LIBRARY_PATH
7914   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7915     case $host_os in
7916       openbsd2.[89] | openbsd2.[89].*)
7917         shlibpath_overrides_runpath=no
7918         ;;
7919       *)
7920         shlibpath_overrides_runpath=yes
7921         ;;
7922       esac
7923   else
7924     shlibpath_overrides_runpath=yes
7925   fi
7926   ;;
7927
7928 os2*)
7929   libname_spec='$name'
7930   shrext=".dll"
7931   need_lib_prefix=no
7932   library_names_spec='$libname${shared_ext} $libname.a'
7933   dynamic_linker='OS/2 ld.exe'
7934   shlibpath_var=LIBPATH
7935   ;;
7936
7937 osf3* | osf4* | osf5*)
7938   version_type=osf
7939   need_lib_prefix=no
7940   need_version=no
7941   soname_spec='${libname}${release}${shared_ext}$major'
7942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7943   shlibpath_var=LD_LIBRARY_PATH
7944   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7945   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7946   ;;
7947
7948 sco3.2v5*)
7949   version_type=osf
7950   soname_spec='${libname}${release}${shared_ext}$major'
7951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7952   shlibpath_var=LD_LIBRARY_PATH
7953   ;;
7954
7955 solaris*)
7956   version_type=linux
7957   need_lib_prefix=no
7958   need_version=no
7959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7960   soname_spec='${libname}${release}${shared_ext}$major'
7961   shlibpath_var=LD_LIBRARY_PATH
7962   shlibpath_overrides_runpath=yes
7963   hardcode_into_libs=yes
7964   # ldd complains unless libraries are executable
7965   postinstall_cmds='chmod +x $lib'
7966   ;;
7967
7968 sunos4*)
7969   version_type=sunos
7970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7971   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7972   shlibpath_var=LD_LIBRARY_PATH
7973   shlibpath_overrides_runpath=yes
7974   if test "$with_gnu_ld" = yes; then
7975     need_lib_prefix=no
7976   fi
7977   need_version=yes
7978   ;;
7979
7980 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7981   version_type=linux
7982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7983   soname_spec='${libname}${release}${shared_ext}$major'
7984   shlibpath_var=LD_LIBRARY_PATH
7985   case $host_vendor in
7986     sni)
7987       shlibpath_overrides_runpath=no
7988       need_lib_prefix=no
7989       export_dynamic_flag_spec='${wl}-Blargedynsym'
7990       runpath_var=LD_RUN_PATH
7991       ;;
7992     siemens)
7993       need_lib_prefix=no
7994       ;;
7995     motorola)
7996       need_lib_prefix=no
7997       need_version=no
7998       shlibpath_overrides_runpath=no
7999       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8000       ;;
8001   esac
8002   ;;
8003
8004 sysv4*MP*)
8005   if test -d /usr/nec ;then
8006     version_type=linux
8007     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8008     soname_spec='$libname${shared_ext}.$major'
8009     shlibpath_var=LD_LIBRARY_PATH
8010   fi
8011   ;;
8012
8013 uts4*)
8014   version_type=linux
8015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8016   soname_spec='${libname}${release}${shared_ext}$major'
8017   shlibpath_var=LD_LIBRARY_PATH
8018   ;;
8019
8020 *)
8021   dynamic_linker=no
8022   ;;
8023 esac
8024 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8025 echo "${ECHO_T}$dynamic_linker" >&6
8026 test "$dynamic_linker" = no && can_build_shared=no
8027
8028 if test "x$enable_dlopen" != xyes; then
8029   enable_dlopen=unknown
8030   enable_dlopen_self=unknown
8031   enable_dlopen_self_static=unknown
8032 else
8033   lt_cv_dlopen=no
8034   lt_cv_dlopen_libs=
8035
8036   case $host_os in
8037   beos*)
8038     lt_cv_dlopen="load_add_on"
8039     lt_cv_dlopen_libs=
8040     lt_cv_dlopen_self=yes
8041     ;;
8042
8043   mingw* | pw32*)
8044     lt_cv_dlopen="LoadLibrary"
8045     lt_cv_dlopen_libs=
8046    ;;
8047
8048   cygwin*)
8049     lt_cv_dlopen="dlopen"
8050     lt_cv_dlopen_libs=
8051    ;;
8052
8053   darwin*)
8054   # if libdl is installed we need to link against it
8055     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8056 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8057 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8058   echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060   ac_check_lib_save_LIBS=$LIBS
8061 LIBS="-ldl  $LIBS"
8062 cat >conftest.$ac_ext <<_ACEOF
8063 #line $LINENO "configure"
8064 /* confdefs.h.  */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h.  */
8069
8070 /* Override any gcc2 internal prototype to avoid an error.  */
8071 #ifdef __cplusplus
8072 extern "C"
8073 #endif
8074 /* We use char because int might match the return type of a gcc2
8075    builtin and then its argument prototype would still apply.  */
8076 char dlopen ();
8077 int
8078 main ()
8079 {
8080 dlopen ();
8081   ;
8082   return 0;
8083 }
8084 _ACEOF
8085 rm -f conftest.$ac_objext conftest$ac_exeext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087   (eval $ac_link) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); } &&
8091          { ac_try='test -s conftest$ac_exeext'
8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093   (eval $ac_try) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_cv_lib_dl_dlopen=yes
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 ac_cv_lib_dl_dlopen=no
8103 fi
8104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8105 LIBS=$ac_check_lib_save_LIBS
8106 fi
8107 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8108 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8109 if test $ac_cv_lib_dl_dlopen = yes; then
8110   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8111 else
8112
8113     lt_cv_dlopen="dyld"
8114     lt_cv_dlopen_libs=
8115     lt_cv_dlopen_self=yes
8116
8117 fi
8118
8119    ;;
8120
8121   *)
8122     echo "$as_me:$LINENO: checking for shl_load" >&5
8123 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8124 if test "${ac_cv_func_shl_load+set}" = set; then
8125   echo $ECHO_N "(cached) $ECHO_C" >&6
8126 else
8127   cat >conftest.$ac_ext <<_ACEOF
8128 #line $LINENO "configure"
8129 /* confdefs.h.  */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h.  */
8134 /* System header to define __stub macros and hopefully few prototypes,
8135     which can conflict with char shl_load (); below.
8136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8137     <limits.h> exists even on freestanding compilers.  */
8138 #ifdef __STDC__
8139 # include <limits.h>
8140 #else
8141 # include <assert.h>
8142 #endif
8143 /* Override any gcc2 internal prototype to avoid an error.  */
8144 #ifdef __cplusplus
8145 extern "C"
8146 {
8147 #endif
8148 /* We use char because int might match the return type of a gcc2
8149    builtin and then its argument prototype would still apply.  */
8150 char shl_load ();
8151 /* The GNU C library defines this for functions which it implements
8152     to always fail with ENOSYS.  Some functions are actually named
8153     something starting with __ and the normal name is an alias.  */
8154 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8155 choke me
8156 #else
8157 char (*f) () = shl_load;
8158 #endif
8159 #ifdef __cplusplus
8160 }
8161 #endif
8162
8163 int
8164 main ()
8165 {
8166 return f != shl_load;
8167   ;
8168   return 0;
8169 }
8170 _ACEOF
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173   (eval $ac_link) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -s conftest$ac_exeext'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; }; then
8183   ac_cv_func_shl_load=yes
8184 else
8185   echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 ac_cv_func_shl_load=no
8189 fi
8190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8191 fi
8192 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8193 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8194 if test $ac_cv_func_shl_load = yes; then
8195   lt_cv_dlopen="shl_load"
8196 else
8197   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8198 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8199 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   ac_check_lib_save_LIBS=$LIBS
8203 LIBS="-ldld  $LIBS"
8204 cat >conftest.$ac_ext <<_ACEOF
8205 #line $LINENO "configure"
8206 /* confdefs.h.  */
8207 _ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h.  */
8211
8212 /* Override any gcc2 internal prototype to avoid an error.  */
8213 #ifdef __cplusplus
8214 extern "C"
8215 #endif
8216 /* We use char because int might match the return type of a gcc2
8217    builtin and then its argument prototype would still apply.  */
8218 char shl_load ();
8219 int
8220 main ()
8221 {
8222 shl_load ();
8223   ;
8224   return 0;
8225 }
8226 _ACEOF
8227 rm -f conftest.$ac_objext conftest$ac_exeext
8228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229   (eval $ac_link) 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); } &&
8233          { ac_try='test -s conftest$ac_exeext'
8234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235   (eval $ac_try) 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); }; }; then
8239   ac_cv_lib_dld_shl_load=yes
8240 else
8241   echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8243
8244 ac_cv_lib_dld_shl_load=no
8245 fi
8246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8247 LIBS=$ac_check_lib_save_LIBS
8248 fi
8249 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8250 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8251 if test $ac_cv_lib_dld_shl_load = yes; then
8252   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8253 else
8254   echo "$as_me:$LINENO: checking for dlopen" >&5
8255 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8256 if test "${ac_cv_func_dlopen+set}" = set; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   cat >conftest.$ac_ext <<_ACEOF
8260 #line $LINENO "configure"
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266 /* System header to define __stub macros and hopefully few prototypes,
8267     which can conflict with char dlopen (); below.
8268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269     <limits.h> exists even on freestanding compilers.  */
8270 #ifdef __STDC__
8271 # include <limits.h>
8272 #else
8273 # include <assert.h>
8274 #endif
8275 /* Override any gcc2 internal prototype to avoid an error.  */
8276 #ifdef __cplusplus
8277 extern "C"
8278 {
8279 #endif
8280 /* We use char because int might match the return type of a gcc2
8281    builtin and then its argument prototype would still apply.  */
8282 char dlopen ();
8283 /* The GNU C library defines this for functions which it implements
8284     to always fail with ENOSYS.  Some functions are actually named
8285     something starting with __ and the normal name is an alias.  */
8286 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8287 choke me
8288 #else
8289 char (*f) () = dlopen;
8290 #endif
8291 #ifdef __cplusplus
8292 }
8293 #endif
8294
8295 int
8296 main ()
8297 {
8298 return f != dlopen;
8299   ;
8300   return 0;
8301 }
8302 _ACEOF
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305   (eval $ac_link) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); } &&
8309          { ac_try='test -s conftest$ac_exeext'
8310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311   (eval $ac_try) 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); }; }; then
8315   ac_cv_func_dlopen=yes
8316 else
8317   echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8319
8320 ac_cv_func_dlopen=no
8321 fi
8322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8323 fi
8324 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8325 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8326 if test $ac_cv_func_dlopen = yes; then
8327   lt_cv_dlopen="dlopen"
8328 else
8329   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8330 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8331 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334   ac_check_lib_save_LIBS=$LIBS
8335 LIBS="-ldl  $LIBS"
8336 cat >conftest.$ac_ext <<_ACEOF
8337 #line $LINENO "configure"
8338 /* confdefs.h.  */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h.  */
8343
8344 /* Override any gcc2 internal prototype to avoid an error.  */
8345 #ifdef __cplusplus
8346 extern "C"
8347 #endif
8348 /* We use char because int might match the return type of a gcc2
8349    builtin and then its argument prototype would still apply.  */
8350 char dlopen ();
8351 int
8352 main ()
8353 {
8354 dlopen ();
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361   (eval $ac_link) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -s conftest$ac_exeext'
8366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367   (eval $ac_try) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; }; then
8371   ac_cv_lib_dl_dlopen=yes
8372 else
8373   echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8375
8376 ac_cv_lib_dl_dlopen=no
8377 fi
8378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8379 LIBS=$ac_check_lib_save_LIBS
8380 fi
8381 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8382 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8383 if test $ac_cv_lib_dl_dlopen = yes; then
8384   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8385 else
8386   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8387 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8388 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8389   echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391   ac_check_lib_save_LIBS=$LIBS
8392 LIBS="-lsvld  $LIBS"
8393 cat >conftest.$ac_ext <<_ACEOF
8394 #line $LINENO "configure"
8395 /* confdefs.h.  */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h.  */
8400
8401 /* Override any gcc2 internal prototype to avoid an error.  */
8402 #ifdef __cplusplus
8403 extern "C"
8404 #endif
8405 /* We use char because int might match the return type of a gcc2
8406    builtin and then its argument prototype would still apply.  */
8407 char dlopen ();
8408 int
8409 main ()
8410 {
8411 dlopen ();
8412   ;
8413   return 0;
8414 }
8415 _ACEOF
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418   (eval $ac_link) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); } &&
8422          { ac_try='test -s conftest$ac_exeext'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; }; then
8428   ac_cv_lib_svld_dlopen=yes
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 ac_cv_lib_svld_dlopen=no
8434 fi
8435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8436 LIBS=$ac_check_lib_save_LIBS
8437 fi
8438 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8439 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8440 if test $ac_cv_lib_svld_dlopen = yes; then
8441   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8442 else
8443   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8444 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8445 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   ac_check_lib_save_LIBS=$LIBS
8449 LIBS="-ldld  $LIBS"
8450 cat >conftest.$ac_ext <<_ACEOF
8451 #line $LINENO "configure"
8452 /* confdefs.h.  */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h.  */
8457
8458 /* Override any gcc2 internal prototype to avoid an error.  */
8459 #ifdef __cplusplus
8460 extern "C"
8461 #endif
8462 /* We use char because int might match the return type of a gcc2
8463    builtin and then its argument prototype would still apply.  */
8464 char dld_link ();
8465 int
8466 main ()
8467 {
8468 dld_link ();
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475   (eval $ac_link) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); } &&
8479          { ac_try='test -s conftest$ac_exeext'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; }; then
8485   ac_cv_lib_dld_dld_link=yes
8486 else
8487   echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490 ac_cv_lib_dld_dld_link=no
8491 fi
8492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8493 LIBS=$ac_check_lib_save_LIBS
8494 fi
8495 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8496 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8497 if test $ac_cv_lib_dld_dld_link = yes; then
8498   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8499 fi
8500
8501
8502 fi
8503
8504
8505 fi
8506
8507
8508 fi
8509
8510
8511 fi
8512
8513
8514 fi
8515
8516     ;;
8517   esac
8518
8519   if test "x$lt_cv_dlopen" != xno; then
8520     enable_dlopen=yes
8521   else
8522     enable_dlopen=no
8523   fi
8524
8525   case $lt_cv_dlopen in
8526   dlopen)
8527     save_CPPFLAGS="$CPPFLAGS"
8528     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8529
8530     save_LDFLAGS="$LDFLAGS"
8531     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8532
8533     save_LIBS="$LIBS"
8534     LIBS="$lt_cv_dlopen_libs $LIBS"
8535
8536     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8537 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8538 if test "${lt_cv_dlopen_self+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541           if test "$cross_compiling" = yes; then :
8542   lt_cv_dlopen_self=cross
8543 else
8544   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8545   lt_status=$lt_dlunknown
8546   cat > conftest.$ac_ext <<EOF
8547 #line 8547 "configure"
8548 #include "confdefs.h"
8549
8550 #if HAVE_DLFCN_H
8551 #include <dlfcn.h>
8552 #endif
8553
8554 #include <stdio.h>
8555
8556 #ifdef RTLD_GLOBAL
8557 #  define LT_DLGLOBAL           RTLD_GLOBAL
8558 #else
8559 #  ifdef DL_GLOBAL
8560 #    define LT_DLGLOBAL         DL_GLOBAL
8561 #  else
8562 #    define LT_DLGLOBAL         0
8563 #  endif
8564 #endif
8565
8566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8567    find out it does not work in some platform. */
8568 #ifndef LT_DLLAZY_OR_NOW
8569 #  ifdef RTLD_LAZY
8570 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8571 #  else
8572 #    ifdef DL_LAZY
8573 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8574 #    else
8575 #      ifdef RTLD_NOW
8576 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8577 #      else
8578 #        ifdef DL_NOW
8579 #          define LT_DLLAZY_OR_NOW      DL_NOW
8580 #        else
8581 #          define LT_DLLAZY_OR_NOW      0
8582 #        endif
8583 #      endif
8584 #    endif
8585 #  endif
8586 #endif
8587
8588 #ifdef __cplusplus
8589 extern "C" void exit (int);
8590 #endif
8591
8592 void fnord() { int i=42;}
8593 int main ()
8594 {
8595   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8596   int status = $lt_dlunknown;
8597
8598   if (self)
8599     {
8600       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8601       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8602       /* dlclose (self); */
8603     }
8604
8605     exit (status);
8606 }
8607 EOF
8608   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609   (eval $ac_link) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8613     (./conftest; exit; ) 2>/dev/null
8614     lt_status=$?
8615     case x$lt_status in
8616       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8617       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8618       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8619     esac
8620   else :
8621     # compilation failed
8622     lt_cv_dlopen_self=no
8623   fi
8624 fi
8625 rm -fr conftest*
8626
8627
8628 fi
8629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8630 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8631
8632     if test "x$lt_cv_dlopen_self" = xyes; then
8633       LDFLAGS="$LDFLAGS $link_static_flag"
8634       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8635 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8636 if test "${lt_cv_dlopen_self_static+set}" = set; then
8637   echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639           if test "$cross_compiling" = yes; then :
8640   lt_cv_dlopen_self_static=cross
8641 else
8642   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8643   lt_status=$lt_dlunknown
8644   cat > conftest.$ac_ext <<EOF
8645 #line 8645 "configure"
8646 #include "confdefs.h"
8647
8648 #if HAVE_DLFCN_H
8649 #include <dlfcn.h>
8650 #endif
8651
8652 #include <stdio.h>
8653
8654 #ifdef RTLD_GLOBAL
8655 #  define LT_DLGLOBAL           RTLD_GLOBAL
8656 #else
8657 #  ifdef DL_GLOBAL
8658 #    define LT_DLGLOBAL         DL_GLOBAL
8659 #  else
8660 #    define LT_DLGLOBAL         0
8661 #  endif
8662 #endif
8663
8664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8665    find out it does not work in some platform. */
8666 #ifndef LT_DLLAZY_OR_NOW
8667 #  ifdef RTLD_LAZY
8668 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8669 #  else
8670 #    ifdef DL_LAZY
8671 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8672 #    else
8673 #      ifdef RTLD_NOW
8674 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8675 #      else
8676 #        ifdef DL_NOW
8677 #          define LT_DLLAZY_OR_NOW      DL_NOW
8678 #        else
8679 #          define LT_DLLAZY_OR_NOW      0
8680 #        endif
8681 #      endif
8682 #    endif
8683 #  endif
8684 #endif
8685
8686 #ifdef __cplusplus
8687 extern "C" void exit (int);
8688 #endif
8689
8690 void fnord() { int i=42;}
8691 int main ()
8692 {
8693   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8694   int status = $lt_dlunknown;
8695
8696   if (self)
8697     {
8698       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8699       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8700       /* dlclose (self); */
8701     }
8702
8703     exit (status);
8704 }
8705 EOF
8706   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707   (eval $ac_link) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8711     (./conftest; exit; ) 2>/dev/null
8712     lt_status=$?
8713     case x$lt_status in
8714       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8715       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8716       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8717     esac
8718   else :
8719     # compilation failed
8720     lt_cv_dlopen_self_static=no
8721   fi
8722 fi
8723 rm -fr conftest*
8724
8725
8726 fi
8727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8728 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8729     fi
8730
8731     CPPFLAGS="$save_CPPFLAGS"
8732     LDFLAGS="$save_LDFLAGS"
8733     LIBS="$save_LIBS"
8734     ;;
8735   esac
8736
8737   case $lt_cv_dlopen_self in
8738   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8739   *) enable_dlopen_self=unknown ;;
8740   esac
8741
8742   case $lt_cv_dlopen_self_static in
8743   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8744   *) enable_dlopen_self_static=unknown ;;
8745   esac
8746 fi
8747
8748
8749 # Report which librarie types wil actually be built
8750 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8751 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8752 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8753 echo "${ECHO_T}$can_build_shared" >&6
8754
8755 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8756 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8757 test "$can_build_shared" = "no" && enable_shared=no
8758
8759 # On AIX, shared libraries and static libraries use the same namespace, and
8760 # are all built from PIC.
8761 case "$host_os" in
8762 aix3*)
8763   test "$enable_shared" = yes && enable_static=no
8764   if test -n "$RANLIB"; then
8765     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8766     postinstall_cmds='$RANLIB $lib'
8767   fi
8768   ;;
8769
8770 aix4*)
8771   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8772     test "$enable_shared" = yes && enable_static=no
8773   fi
8774   ;;
8775   darwin* | rhapsody*)
8776   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8777     archive_cmds_need_lc=no
8778     case "$host_os" in
8779     rhapsody* | darwin1.[012])
8780       allow_undefined_flag='-undefined suppress'
8781       ;;
8782     *) # Darwin 1.3 on
8783       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8784       ;;
8785     esac
8786     # FIXME: Relying on posixy $() will cause problems for
8787     #        cross-compilation, but unfortunately the echo tests do not
8788     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8789     #          `"' quotes if we put them in here... so don't!
8790                 output_verbose_link_cmd='echo'
8791     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8792     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8793     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8794                   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}'
8795                   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}'
8796     hardcode_direct=no
8797     hardcode_automatic=yes
8798     hardcode_shlibpath_var=unsupported
8799     whole_archive_flag_spec='-all_load $convenience'
8800     link_all_deplibs=yes
8801     fi
8802     ;;
8803 esac
8804 echo "$as_me:$LINENO: result: $enable_shared" >&5
8805 echo "${ECHO_T}$enable_shared" >&6
8806
8807 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8808 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8809 # Make sure either enable_shared or enable_static is yes.
8810 test "$enable_shared" = yes || enable_static=yes
8811 echo "$as_me:$LINENO: result: $enable_static" >&5
8812 echo "${ECHO_T}$enable_static" >&6
8813
8814 # The else clause should only fire when bootstrapping the
8815 # libtool distribution, otherwise you forgot to ship ltmain.sh
8816 # with your package, and you will get complaints that there are
8817 # no rules to generate ltmain.sh.
8818 if test -f "$ltmain"; then
8819   # See if we are running on zsh, and set the options which allow our commands through
8820   # without removal of \ escapes.
8821   if test -n "${ZSH_VERSION+set}" ; then
8822     setopt NO_GLOB_SUBST
8823   fi
8824   # Now quote all the things that may contain metacharacters while being
8825   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8826   # variables and quote the copies for generation of the libtool script.
8827   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8828     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8829     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8830     deplibs_check_method reload_flag reload_cmds need_locks \
8831     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8832     lt_cv_sys_global_symbol_to_c_name_address \
8833     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8834     old_postinstall_cmds old_postuninstall_cmds \
8835     compiler \
8836     CC \
8837     LD \
8838     lt_prog_compiler_wl \
8839     lt_prog_compiler_pic \
8840     lt_prog_compiler_static \
8841     lt_prog_compiler_no_builtin_flag \
8842     export_dynamic_flag_spec \
8843     thread_safe_flag_spec \
8844     whole_archive_flag_spec \
8845     enable_shared_with_static_runtimes \
8846     old_archive_cmds \
8847     old_archive_from_new_cmds \
8848     predep_objects \
8849     postdep_objects \
8850     predeps \
8851     postdeps \
8852     compiler_lib_search_path \
8853     archive_cmds \
8854     archive_expsym_cmds \
8855     postinstall_cmds \
8856     postuninstall_cmds \
8857     old_archive_from_expsyms_cmds \
8858     allow_undefined_flag \
8859     no_undefined_flag \
8860     export_symbols_cmds \
8861     hardcode_libdir_flag_spec \
8862     hardcode_libdir_flag_spec_ld \
8863     hardcode_libdir_separator \
8864     hardcode_automatic \
8865     module_cmds \
8866     module_expsym_cmds \
8867     lt_cv_prog_compiler_c_o \
8868     exclude_expsyms \
8869     include_expsyms; do
8870
8871     case $var in
8872     old_archive_cmds | \
8873     old_archive_from_new_cmds | \
8874     archive_cmds | \
8875     archive_expsym_cmds | \
8876     module_cmds | \
8877     module_expsym_cmds | \
8878     old_archive_from_expsyms_cmds | \
8879     export_symbols_cmds | \
8880     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8881     postinstall_cmds | postuninstall_cmds | \
8882     old_postinstall_cmds | old_postuninstall_cmds | \
8883     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8884       # Double-quote double-evaled strings.
8885       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8886       ;;
8887     *)
8888       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8889       ;;
8890     esac
8891   done
8892
8893   case $lt_echo in
8894   *'\$0 --fallback-echo"')
8895     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8896     ;;
8897   esac
8898
8899 cfgfile="${ofile}T"
8900   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8901   $rm -f "$cfgfile"
8902   { echo "$as_me:$LINENO: creating $ofile" >&5
8903 echo "$as_me: creating $ofile" >&6;}
8904
8905   cat <<__EOF__ >> "$cfgfile"
8906 #! $SHELL
8907
8908 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8909 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8910 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8911 #
8912 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8913 # Free Software Foundation, Inc.
8914 #
8915 # This file is part of GNU Libtool:
8916 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8917 #
8918 # This program is free software; you can redistribute it and/or modify
8919 # it under the terms of the GNU General Public License as published by
8920 # the Free Software Foundation; either version 2 of the License, or
8921 # (at your option) any later version.
8922 #
8923 # This program is distributed in the hope that it will be useful, but
8924 # WITHOUT ANY WARRANTY; without even the implied warranty of
8925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8926 # General Public License for more details.
8927 #
8928 # You should have received a copy of the GNU General Public License
8929 # along with this program; if not, write to the Free Software
8930 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8931 #
8932 # As a special exception to the GNU General Public License, if you
8933 # distribute this file as part of a program that contains a
8934 # configuration script generated by Autoconf, you may include it under
8935 # the same distribution terms that you use for the rest of that program.
8936
8937 # A sed program that does not truncate output.
8938 SED=$lt_SED
8939
8940 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8941 Xsed="$SED -e s/^X//"
8942
8943 # The HP-UX ksh and POSIX shell print the target directory to stdout
8944 # if CDPATH is set.
8945 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8946
8947 # The names of the tagged configurations supported by this script.
8948 available_tags=
8949
8950 # ### BEGIN LIBTOOL CONFIG
8951
8952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8953
8954 # Shell to use when invoking shell scripts.
8955 SHELL=$lt_SHELL
8956
8957 # Whether or not to build shared libraries.
8958 build_libtool_libs=$enable_shared
8959
8960 # Whether or not to build static libraries.
8961 build_old_libs=$enable_static
8962
8963 # Whether or not to add -lc for building shared libraries.
8964 build_libtool_need_lc=$archive_cmds_need_lc
8965
8966 # Whether or not to disallow shared libs when runtime libs are static
8967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8968
8969 # Whether or not to optimize for fast installation.
8970 fast_install=$enable_fast_install
8971
8972 # The host system.
8973 host_alias=$host_alias
8974 host=$host
8975
8976 # An echo program that does not interpret backslashes.
8977 echo=$lt_echo
8978
8979 # The archiver.
8980 AR=$lt_AR
8981 AR_FLAGS=$lt_AR_FLAGS
8982
8983 # A C compiler.
8984 LTCC=$lt_LTCC
8985
8986 # A language-specific compiler.
8987 CC=$lt_compiler
8988
8989 # Is the compiler the GNU C compiler?
8990 with_gcc=$GCC
8991
8992 # An ERE matcher.
8993 EGREP=$lt_EGREP
8994
8995 # The linker used to build libraries.
8996 LD=$lt_LD
8997
8998 # Whether we need hard or soft links.
8999 LN_S=$lt_LN_S
9000
9001 # A BSD-compatible nm program.
9002 NM=$lt_NM
9003
9004 # A symbol stripping program
9005 STRIP=$STRIP
9006
9007 # Used to examine libraries when file_magic_cmd begins "file"
9008 MAGIC_CMD=$MAGIC_CMD
9009
9010 # Used on cygwin: DLL creation program.
9011 DLLTOOL="$DLLTOOL"
9012
9013 # Used on cygwin: object dumper.
9014 OBJDUMP="$OBJDUMP"
9015
9016 # Used on cygwin: assembler.
9017 AS="$AS"
9018
9019 # The name of the directory that contains temporary libtool files.
9020 objdir=$objdir
9021
9022 # How to create reloadable object files.
9023 reload_flag=$lt_reload_flag
9024 reload_cmds=$lt_reload_cmds
9025
9026 # How to pass a linker flag through the compiler.
9027 wl=$lt_lt_prog_compiler_wl
9028
9029 # Object file suffix (normally "o").
9030 objext="$ac_objext"
9031
9032 # Old archive suffix (normally "a").
9033 libext="$libext"
9034
9035 # Shared library suffix (normally ".so").
9036 shrext='$shrext'
9037
9038 # Executable file suffix (normally "").
9039 exeext="$exeext"
9040
9041 # Additional compiler flags for building library objects.
9042 pic_flag=$lt_lt_prog_compiler_pic
9043 pic_mode=$pic_mode
9044
9045 # What is the maximum length of a command?
9046 max_cmd_len=$lt_cv_sys_max_cmd_len
9047
9048 # Does compiler simultaneously support -c and -o options?
9049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9050
9051 # Must we lock files when doing compilation ?
9052 need_locks=$lt_need_locks
9053
9054 # Do we need the lib prefix for modules?
9055 need_lib_prefix=$need_lib_prefix
9056
9057 # Do we need a version for libraries?
9058 need_version=$need_version
9059
9060 # Whether dlopen is supported.
9061 dlopen_support=$enable_dlopen
9062
9063 # Whether dlopen of programs is supported.
9064 dlopen_self=$enable_dlopen_self
9065
9066 # Whether dlopen of statically linked programs is supported.
9067 dlopen_self_static=$enable_dlopen_self_static
9068
9069 # Compiler flag to prevent dynamic linking.
9070 link_static_flag=$lt_lt_prog_compiler_static
9071
9072 # Compiler flag to turn off builtin functions.
9073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9074
9075 # Compiler flag to allow reflexive dlopens.
9076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9077
9078 # Compiler flag to generate shared objects directly from archives.
9079 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9080
9081 # Compiler flag to generate thread-safe objects.
9082 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9083
9084 # Library versioning type.
9085 version_type=$version_type
9086
9087 # Format of library name prefix.
9088 libname_spec=$lt_libname_spec
9089
9090 # List of archive names.  First name is the real one, the rest are links.
9091 # The last name is the one that the linker finds with -lNAME.
9092 library_names_spec=$lt_library_names_spec
9093
9094 # The coded name of the library, if different from the real name.
9095 soname_spec=$lt_soname_spec
9096
9097 # Commands used to build and install an old-style archive.
9098 RANLIB=$lt_RANLIB
9099 old_archive_cmds=$lt_old_archive_cmds
9100 old_postinstall_cmds=$lt_old_postinstall_cmds
9101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9102
9103 # Create an old-style archive from a shared archive.
9104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9105
9106 # Create a temporary old-style archive to link instead of a shared archive.
9107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9108
9109 # Commands used to build and install a shared archive.
9110 archive_cmds=$lt_archive_cmds
9111 archive_expsym_cmds=$lt_archive_expsym_cmds
9112 postinstall_cmds=$lt_postinstall_cmds
9113 postuninstall_cmds=$lt_postuninstall_cmds
9114
9115 # Commands used to build a loadable module (assumed same as above if empty)
9116 module_cmds=$lt_module_cmds
9117 module_expsym_cmds=$lt_module_expsym_cmds
9118
9119 # Commands to strip libraries.
9120 old_striplib=$lt_old_striplib
9121 striplib=$lt_striplib
9122
9123 # Dependencies to place before the objects being linked to create a
9124 # shared library.
9125 predep_objects=$lt_predep_objects
9126
9127 # Dependencies to place after the objects being linked to create a
9128 # shared library.
9129 postdep_objects=$lt_postdep_objects
9130
9131 # Dependencies to place before the objects being linked to create a
9132 # shared library.
9133 predeps=$lt_predeps
9134
9135 # Dependencies to place after the objects being linked to create a
9136 # shared library.
9137 postdeps=$lt_postdeps
9138
9139 # The library search path used internally by the compiler when linking
9140 # a shared library.
9141 compiler_lib_search_path=$lt_compiler_lib_search_path
9142
9143 # Method to check whether dependent libraries are shared objects.
9144 deplibs_check_method=$lt_deplibs_check_method
9145
9146 # Command to use when deplibs_check_method == file_magic.
9147 file_magic_cmd=$lt_file_magic_cmd
9148
9149 # Flag that allows shared libraries with undefined symbols to be built.
9150 allow_undefined_flag=$lt_allow_undefined_flag
9151
9152 # Flag that forces no undefined symbols.
9153 no_undefined_flag=$lt_no_undefined_flag
9154
9155 # Commands used to finish a libtool library installation in a directory.
9156 finish_cmds=$lt_finish_cmds
9157
9158 # Same as above, but a single script fragment to be evaled but not shown.
9159 finish_eval=$lt_finish_eval
9160
9161 # Take the output of nm and produce a listing of raw symbols and C names.
9162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9163
9164 # Transform the output of nm in a proper C declaration
9165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9166
9167 # Transform the output of nm in a C name address pair
9168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9169
9170 # This is the shared library runtime path variable.
9171 runpath_var=$runpath_var
9172
9173 # This is the shared library path variable.
9174 shlibpath_var=$shlibpath_var
9175
9176 # Is shlibpath searched before the hard-coded library search path?
9177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9178
9179 # How to hardcode a shared library path into an executable.
9180 hardcode_action=$hardcode_action
9181
9182 # Whether we should hardcode library paths into libraries.
9183 hardcode_into_libs=$hardcode_into_libs
9184
9185 # Flag to hardcode \$libdir into a binary during linking.
9186 # This must work even if \$libdir does not exist.
9187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9188
9189 # If ld is used when linking, flag to hardcode \$libdir into
9190 # a binary during linking. This must work even if \$libdir does
9191 # not exist.
9192 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9193
9194 # Whether we need a single -rpath flag with a separated argument.
9195 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9196
9197 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9198 # resulting binary.
9199 hardcode_direct=$hardcode_direct
9200
9201 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9202 # resulting binary.
9203 hardcode_minus_L=$hardcode_minus_L
9204
9205 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9206 # the resulting binary.
9207 hardcode_shlibpath_var=$hardcode_shlibpath_var
9208
9209 # Set to yes if building a shared library automatically hardcodes DIR into the library
9210 # and all subsequent libraries and executables linked against it.
9211 hardcode_automatic=$hardcode_automatic
9212
9213 # Variables whose values should be saved in libtool wrapper scripts and
9214 # restored at relink time.
9215 variables_saved_for_relink="$variables_saved_for_relink"
9216
9217 # Whether libtool must link a program against all its dependency libraries.
9218 link_all_deplibs=$link_all_deplibs
9219
9220 # Compile-time system search path for libraries
9221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9222
9223 # Run-time system search path for libraries
9224 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9225
9226 # Fix the shell variable \$srcfile for the compiler.
9227 fix_srcfile_path="$fix_srcfile_path"
9228
9229 # Set to yes if exported symbols are required.
9230 always_export_symbols=$always_export_symbols
9231
9232 # The commands to list exported symbols.
9233 export_symbols_cmds=$lt_export_symbols_cmds
9234
9235 # The commands to extract the exported symbol list from a shared archive.
9236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9237
9238 # Symbols that should not be listed in the preloaded symbols.
9239 exclude_expsyms=$lt_exclude_expsyms
9240
9241 # Symbols that must always be exported.
9242 include_expsyms=$lt_include_expsyms
9243
9244 # ### END LIBTOOL CONFIG
9245
9246 __EOF__
9247
9248
9249   case $host_os in
9250   aix3*)
9251     cat <<\EOF >> "$cfgfile"
9252
9253 # AIX sometimes has problems with the GCC collect2 program.  For some
9254 # reason, if we set the COLLECT_NAMES environment variable, the problems
9255 # vanish in a puff of smoke.
9256 if test "X${COLLECT_NAMES+set}" != Xset; then
9257   COLLECT_NAMES=
9258   export COLLECT_NAMES
9259 fi
9260 EOF
9261     ;;
9262   esac
9263
9264   # We use sed instead of cat because bash on DJGPP gets confused if
9265   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9266   # text mode, it properly converts lines to CR/LF.  This bash problem
9267   # is reportedly fixed, but why not run on old versions too?
9268   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9269
9270   mv -f "$cfgfile" "$ofile" || \
9271     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9272   chmod +x "$ofile"
9273
9274 else
9275   # If there is no Makefile yet, we rely on a make rule to execute
9276   # `config.status --recheck' to rerun these tests and create the
9277   # libtool script then.
9278   test -f Makefile && make "$ltmain"
9279 fi
9280
9281
9282 ac_ext=c
9283 ac_cpp='$CPP $CPPFLAGS'
9284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9287
9288 CC="$lt_save_CC"
9289
9290
9291 # Check whether --with-tags or --without-tags was given.
9292 if test "${with_tags+set}" = set; then
9293   withval="$with_tags"
9294   tagnames="$withval"
9295 fi;
9296
9297 if test -f "$ltmain" && test -n "$tagnames"; then
9298   if test ! -f "${ofile}"; then
9299     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9300 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9301   fi
9302
9303   if test -z "$LTCC"; then
9304     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9305     if test -z "$LTCC"; then
9306       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9307 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9308     else
9309       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9310 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9311     fi
9312   fi
9313
9314   # Extract list of available tagged configurations in $ofile.
9315   # Note that this assumes the entire list is on one line.
9316   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9317
9318   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9319   for tagname in $tagnames; do
9320     IFS="$lt_save_ifs"
9321     # Check whether tagname contains only valid characters
9322     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9323     "") ;;
9324     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9325 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9326    { (exit 1); exit 1; }; }
9327         ;;
9328     esac
9329
9330     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9331     then
9332       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9333 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9334    { (exit 1); exit 1; }; }
9335     fi
9336
9337     # Update the list of available tags.
9338     if test -n "$tagname"; then
9339       echo appending configuration tag \"$tagname\" to $ofile
9340
9341       case $tagname in
9342       CXX)
9343         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9344           ac_ext=cc
9345 ac_cpp='$CXXCPP $CPPFLAGS'
9346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9349
9350
9351
9352
9353 archive_cmds_need_lc_CXX=no
9354 allow_undefined_flag_CXX=
9355 always_export_symbols_CXX=no
9356 archive_expsym_cmds_CXX=
9357 export_dynamic_flag_spec_CXX=
9358 hardcode_direct_CXX=no
9359 hardcode_libdir_flag_spec_CXX=
9360 hardcode_libdir_flag_spec_ld_CXX=
9361 hardcode_libdir_separator_CXX=
9362 hardcode_minus_L_CXX=no
9363 hardcode_automatic_CXX=no
9364 module_cmds_CXX=
9365 module_expsym_cmds_CXX=
9366 link_all_deplibs_CXX=unknown
9367 old_archive_cmds_CXX=$old_archive_cmds
9368 no_undefined_flag_CXX=
9369 whole_archive_flag_spec_CXX=
9370 enable_shared_with_static_runtimes_CXX=no
9371
9372 # Dependencies to place before and after the object being linked:
9373 predep_objects_CXX=
9374 postdep_objects_CXX=
9375 predeps_CXX=
9376 postdeps_CXX=
9377 compiler_lib_search_path_CXX=
9378
9379 # Source file extension for C++ test sources.
9380 ac_ext=cc
9381
9382 # Object file extension for compiled C++ test sources.
9383 objext=o
9384 objext_CXX=$objext
9385
9386 # Code to be used in simple compile tests
9387 lt_simple_compile_test_code="int some_variable = 0;\n"
9388
9389 # Code to be used in simple link tests
9390 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9391
9392 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9393
9394 # If no C compiler was specified, use CC.
9395 LTCC=${LTCC-"$CC"}
9396
9397 # Allow CC to be a program name with arguments.
9398 compiler=$CC
9399
9400
9401 # Allow CC to be a program name with arguments.
9402 lt_save_CC=$CC
9403 lt_save_LD=$LD
9404 lt_save_GCC=$GCC
9405 GCC=$GXX
9406 lt_save_with_gnu_ld=$with_gnu_ld
9407 lt_save_path_LD=$lt_cv_path_LD
9408 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9409   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9410 else
9411   unset lt_cv_prog_gnu_ld
9412 fi
9413 if test -n "${lt_cv_path_LDCXX+set}"; then
9414   lt_cv_path_LD=$lt_cv_path_LDCXX
9415 else
9416   unset lt_cv_path_LD
9417 fi
9418 test -z "${LDCXX+set}" || LD=$LDCXX
9419 CC=${CXX-"c++"}
9420 compiler=$CC
9421 compiler_CXX=$CC
9422 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9423
9424 # We don't want -fno-exception wen compiling C++ code, so set the
9425 # no_builtin_flag separately
9426 if test "$GXX" = yes; then
9427   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9428 else
9429   lt_prog_compiler_no_builtin_flag_CXX=
9430 fi
9431
9432 if test "$GXX" = yes; then
9433   # Set up default GNU C++ configuration
9434
9435
9436 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9437 if test "${with_gnu_ld+set}" = set; then
9438   withval="$with_gnu_ld"
9439   test "$withval" = no || with_gnu_ld=yes
9440 else
9441   with_gnu_ld=no
9442 fi;
9443 ac_prog=ld
9444 if test "$GCC" = yes; then
9445   # Check if gcc -print-prog-name=ld gives a path.
9446   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9447 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9448   case $host in
9449   *-*-mingw*)
9450     # gcc leaves a trailing carriage return which upsets mingw
9451     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9452   *)
9453     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9454   esac
9455   case $ac_prog in
9456     # Accept absolute paths.
9457     [\\/]* | ?:[\\/]*)
9458       re_direlt='/[^/][^/]*/\.\./'
9459       # Canonicalize the path of ld
9460       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9461       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9462         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9463       done
9464       test -z "$LD" && LD="$ac_prog"
9465       ;;
9466   "")
9467     # If it fails, then pretend we aren't using GCC.
9468     ac_prog=ld
9469     ;;
9470   *)
9471     # If it is relative, then search for the first ld in PATH.
9472     with_gnu_ld=unknown
9473     ;;
9474   esac
9475 elif test "$with_gnu_ld" = yes; then
9476   echo "$as_me:$LINENO: checking for GNU ld" >&5
9477 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9478 else
9479   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9480 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9481 fi
9482 if test "${lt_cv_path_LD+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485   if test -z "$LD"; then
9486   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9487   for ac_dir in $PATH; do
9488     IFS="$lt_save_ifs"
9489     test -z "$ac_dir" && ac_dir=.
9490     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9491       lt_cv_path_LD="$ac_dir/$ac_prog"
9492       # Check to see if the program is GNU ld.  I'd rather use --version,
9493       # but apparently some GNU ld's only accept -v.
9494       # Break only if it was the GNU/non-GNU ld that we prefer.
9495       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9496       *GNU* | *'with BFD'*)
9497         test "$with_gnu_ld" != no && break
9498         ;;
9499       *)
9500         test "$with_gnu_ld" != yes && break
9501         ;;
9502       esac
9503     fi
9504   done
9505   IFS="$lt_save_ifs"
9506 else
9507   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9508 fi
9509 fi
9510
9511 LD="$lt_cv_path_LD"
9512 if test -n "$LD"; then
9513   echo "$as_me:$LINENO: result: $LD" >&5
9514 echo "${ECHO_T}$LD" >&6
9515 else
9516   echo "$as_me:$LINENO: result: no" >&5
9517 echo "${ECHO_T}no" >&6
9518 fi
9519 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9520 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9521    { (exit 1); exit 1; }; }
9522 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9523 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9524 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9525   echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9528 case `"$LD" -v 2>&1 </dev/null` in
9529 *GNU* | *'with BFD'*)
9530   lt_cv_prog_gnu_ld=yes
9531   ;;
9532 *)
9533   lt_cv_prog_gnu_ld=no
9534   ;;
9535 esac
9536 fi
9537 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9538 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9539 with_gnu_ld=$lt_cv_prog_gnu_ld
9540
9541
9542
9543   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9544   # archiving commands below assume that GNU ld is being used.
9545   if test "$with_gnu_ld" = yes; then
9546     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547     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'
9548
9549     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9550     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9551
9552     # If archive_cmds runs LD, not CC, wlarc should be empty
9553     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9554     #     investigate it a little bit more. (MM)
9555     wlarc='${wl}'
9556
9557     # ancient GNU ld didn't support --whole-archive et. al.
9558     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9559         grep 'no-whole-archive' > /dev/null; then
9560       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9561     else
9562       whole_archive_flag_spec_CXX=
9563     fi
9564   else
9565     with_gnu_ld=no
9566     wlarc=
9567
9568     # A generic and very simple default shared library creation
9569     # command for GNU C++ for the case where it uses the native
9570     # linker, instead of GNU ld.  If possible, this setting should
9571     # overridden to take advantage of the native linker features on
9572     # the platform it is being used on.
9573     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9574   fi
9575
9576   # Commands to make compiler produce verbose output that lists
9577   # what "hidden" libraries, object files and flags are used when
9578   # linking a shared library.
9579   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9580
9581 else
9582   GXX=no
9583   with_gnu_ld=no
9584   wlarc=
9585 fi
9586
9587 # PORTME: fill in a description of your system's C++ link characteristics
9588 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9590 ld_shlibs_CXX=yes
9591 case $host_os in
9592   aix3*)
9593     # FIXME: insert proper C++ library support
9594     ld_shlibs_CXX=no
9595     ;;
9596   aix4* | aix5*)
9597     if test "$host_cpu" = ia64; then
9598       # On IA64, the linker does run time linking by default, so we don't
9599       # have to do anything special.
9600       aix_use_runtimelinking=no
9601       exp_sym_flag='-Bexport'
9602       no_entry_flag=""
9603     else
9604       aix_use_runtimelinking=no
9605
9606       # Test if we are trying to use run time linking or normal
9607       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9608       # need to do runtime linking.
9609       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9610         for ld_flag in $LDFLAGS; do
9611           case $ld_flag in
9612           *-brtl*)
9613             aix_use_runtimelinking=yes
9614             break
9615             ;;
9616           esac
9617         done
9618       esac
9619
9620       exp_sym_flag='-bexport'
9621       no_entry_flag='-bnoentry'
9622     fi
9623
9624     # When large executables or shared objects are built, AIX ld can
9625     # have problems creating the table of contents.  If linking a library
9626     # or program results in "error TOC overflow" add -mminimal-toc to
9627     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9628     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9629
9630     archive_cmds_CXX=''
9631     hardcode_direct_CXX=yes
9632     hardcode_libdir_separator_CXX=':'
9633     link_all_deplibs_CXX=yes
9634
9635     if test "$GXX" = yes; then
9636       case $host_os in aix4.012|aix4.012.*)
9637       # We only want to do this on AIX 4.2 and lower, the check
9638       # below for broken collect2 doesn't work under 4.3+
9639         collect2name=`${CC} -print-prog-name=collect2`
9640         if test -f "$collect2name" && \
9641            strings "$collect2name" | grep resolve_lib_name >/dev/null
9642         then
9643           # We have reworked collect2
9644           hardcode_direct_CXX=yes
9645         else
9646           # We have old collect2
9647           hardcode_direct_CXX=unsupported
9648           # It fails to find uninstalled libraries when the uninstalled
9649           # path is not listed in the libpath.  Setting hardcode_minus_L
9650           # to unsupported forces relinking
9651           hardcode_minus_L_CXX=yes
9652           hardcode_libdir_flag_spec_CXX='-L$libdir'
9653           hardcode_libdir_separator_CXX=
9654         fi
9655       esac
9656       shared_flag='-shared'
9657     else
9658       # not using gcc
9659       if test "$host_cpu" = ia64; then
9660         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9661         # chokes on -Wl,-G. The following line is correct:
9662         shared_flag='-G'
9663       else
9664         if test "$aix_use_runtimelinking" = yes; then
9665           shared_flag='${wl}-G'
9666         else
9667           shared_flag='${wl}-bM:SRE'
9668         fi
9669       fi
9670     fi
9671
9672     # It seems that -bexpall does not export symbols beginning with
9673     # underscore (_), so it is better to generate a list of symbols to export.
9674     always_export_symbols_CXX=yes
9675     if test "$aix_use_runtimelinking" = yes; then
9676       # Warning - without using the other runtime loading flags (-brtl),
9677       # -berok will link without error, but may produce a broken library.
9678       allow_undefined_flag_CXX='-berok'
9679       # Determine the default libpath from the value encoded in an empty executable.
9680       cat >conftest.$ac_ext <<_ACEOF
9681 #line $LINENO "configure"
9682 /* confdefs.h.  */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h.  */
9687
9688 int
9689 main ()
9690 {
9691
9692   ;
9693   return 0;
9694 }
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698   (eval $ac_link) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } &&
9702          { ac_try='test -s conftest$ac_exeext'
9703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704   (eval $ac_try) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; }; then
9708
9709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9710 }'`
9711 # Check for a 64-bit object if we didn't find anything.
9712 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; }
9713 }'`; fi
9714 else
9715   echo "$as_me: failed program was:" >&5
9716 sed 's/^/| /' conftest.$ac_ext >&5
9717
9718 fi
9719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9720 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9721
9722       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9723
9724       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"
9725      else
9726       if test "$host_cpu" = ia64; then
9727         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9728         allow_undefined_flag_CXX="-z nodefs"
9729         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"
9730       else
9731         # Determine the default libpath from the value encoded in an empty executable.
9732         cat >conftest.$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9734 /* confdefs.h.  */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h.  */
9739
9740 int
9741 main ()
9742 {
9743
9744   ;
9745   return 0;
9746 }
9747 _ACEOF
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750   (eval $ac_link) 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); } &&
9754          { ac_try='test -s conftest$ac_exeext'
9755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756   (eval $ac_try) 2>&5
9757   ac_status=$?
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); }; }; then
9760
9761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9762 }'`
9763 # Check for a 64-bit object if we didn't find anything.
9764 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; }
9765 }'`; fi
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 fi
9771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9773
9774         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9775         # Warning - without using the other run time loading flags,
9776         # -berok will link without error, but may produce a broken library.
9777         no_undefined_flag_CXX=' ${wl}-bernotok'
9778         allow_undefined_flag_CXX=' ${wl}-berok'
9779         # -bexpall does not export symbols beginning with underscore (_)
9780         always_export_symbols_CXX=yes
9781         # Exported symbols can be pulled into shared objects from archives
9782         whole_archive_flag_spec_CXX=' '
9783         archive_cmds_need_lc_CXX=yes
9784         # This is similar to how AIX traditionally builds it's shared libraries.
9785         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'
9786       fi
9787     fi
9788     ;;
9789   chorus*)
9790     case $cc_basename in
9791       *)
9792         # FIXME: insert proper C++ library support
9793         ld_shlibs_CXX=no
9794         ;;
9795     esac
9796     ;;
9797
9798   cygwin* | mingw* | pw32*)
9799     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9800     # as there is no search path for DLLs.
9801     hardcode_libdir_flag_spec_CXX='-L$libdir'
9802     allow_undefined_flag_CXX=unsupported
9803     always_export_symbols_CXX=no
9804     enable_shared_with_static_runtimes_CXX=yes
9805
9806     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9807       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'
9808       # If the export-symbols file already is a .def file (1st line
9809       # is EXPORTS), use it as is; otherwise, prepend...
9810       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9811         cp $export_symbols $output_objdir/$soname.def;
9812       else
9813         echo EXPORTS > $output_objdir/$soname.def;
9814         cat $export_symbols >> $output_objdir/$soname.def;
9815       fi~
9816       $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'
9817     else
9818       ld_shlibs_CXX=no
9819     fi
9820   ;;
9821
9822   darwin* | rhapsody*)
9823    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9824     archive_cmds_need_lc_CXX=no
9825     case "$host_os" in
9826     rhapsody* | darwin1.[012])
9827       allow_undefined_flag_CXX='-undefined suppress'
9828       ;;
9829     *) # Darwin 1.3 on
9830       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9831       ;;
9832     esac
9833         lt_int_apple_cc_single_mod=no
9834         output_verbose_link_cmd='echo'
9835         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9836           lt_int_apple_cc_single_mod=yes
9837         fi
9838         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9839           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9840         else
9841         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'
9842       fi
9843       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9844
9845     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9846       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9847         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}'
9848       else
9849         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}'
9850       fi
9851         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}'
9852     hardcode_direct_CXX=no
9853     hardcode_automatic_CXX=yes
9854     hardcode_shlibpath_var_CXX=unsupported
9855     whole_archive_flag_spec_CXX='-all_load $convenience'
9856     link_all_deplibs_CXX=yes
9857    fi
9858     ;;
9859
9860   dgux*)
9861     case $cc_basename in
9862       ec++)
9863         # FIXME: insert proper C++ library support
9864         ld_shlibs_CXX=no
9865         ;;
9866       ghcx)
9867         # Green Hills C++ Compiler
9868         # FIXME: insert proper C++ library support
9869         ld_shlibs_CXX=no
9870         ;;
9871       *)
9872         # FIXME: insert proper C++ library support
9873         ld_shlibs_CXX=no
9874         ;;
9875     esac
9876     ;;
9877   freebsd12*)
9878     # C++ shared libraries reported to be fairly broken before switch to ELF
9879     ld_shlibs_CXX=no
9880     ;;
9881   freebsd-elf*)
9882     archive_cmds_need_lc_CXX=no
9883     ;;
9884   freebsd*)
9885     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9886     # conventions
9887     ld_shlibs_CXX=yes
9888     ;;
9889   gnu*)
9890     ;;
9891   hpux9*)
9892     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9893     hardcode_libdir_separator_CXX=:
9894     export_dynamic_flag_spec_CXX='${wl}-E'
9895     hardcode_direct_CXX=yes
9896     hardcode_minus_L_CXX=yes # Not in the search PATH,
9897                                 # but as the default
9898                                 # location of the library.
9899
9900     case $cc_basename in
9901     CC)
9902       # FIXME: insert proper C++ library support
9903       ld_shlibs_CXX=no
9904       ;;
9905     aCC)
9906       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'
9907       # Commands to make compiler produce verbose output that lists
9908       # what "hidden" libraries, object files and flags are used when
9909       # linking a shared library.
9910       #
9911       # There doesn't appear to be a way to prevent this compiler from
9912       # explicitly linking system object files so we need to strip them
9913       # from the output so that they don't get included in the library
9914       # dependencies.
9915       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'
9916       ;;
9917     *)
9918       if test "$GXX" = yes; then
9919         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'
9920       else
9921         # FIXME: insert proper C++ library support
9922         ld_shlibs_CXX=no
9923       fi
9924       ;;
9925     esac
9926     ;;
9927   hpux10*|hpux11*)
9928     if test $with_gnu_ld = no; then
9929       case "$host_cpu" in
9930       hppa*64*)
9931         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9932         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9933         hardcode_libdir_separator_CXX=:
9934         ;;
9935       ia64*)
9936         hardcode_libdir_flag_spec_CXX='-L$libdir'
9937         ;;
9938       *)
9939         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9940         hardcode_libdir_separator_CXX=:
9941         export_dynamic_flag_spec_CXX='${wl}-E'
9942         ;;
9943       esac
9944     fi
9945     case "$host_cpu" in
9946     hppa*64*)
9947       hardcode_direct_CXX=no
9948       hardcode_shlibpath_var_CXX=no
9949       ;;
9950     ia64*)
9951       hardcode_direct_CXX=no
9952       hardcode_shlibpath_var_CXX=no
9953       hardcode_minus_L_CXX=yes # Not in the search PATH,
9954                                               # but as the default
9955                                               # location of the library.
9956       ;;
9957     *)
9958       hardcode_direct_CXX=yes
9959       hardcode_minus_L_CXX=yes # Not in the search PATH,
9960                                               # but as the default
9961                                               # location of the library.
9962       ;;
9963     esac
9964
9965     case $cc_basename in
9966       CC)
9967         # FIXME: insert proper C++ library support
9968         ld_shlibs_CXX=no
9969         ;;
9970       aCC)
9971         case "$host_cpu" in
9972         hppa*64*|ia64*)
9973           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9974           ;;
9975         *)
9976           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9977           ;;
9978         esac
9979         # Commands to make compiler produce verbose output that lists
9980         # what "hidden" libraries, object files and flags are used when
9981         # linking a shared library.
9982         #
9983         # There doesn't appear to be a way to prevent this compiler from
9984         # explicitly linking system object files so we need to strip them
9985         # from the output so that they don't get included in the library
9986         # dependencies.
9987         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'
9988         ;;
9989       *)
9990         if test "$GXX" = yes; then
9991           if test $with_gnu_ld = no; then
9992             case "$host_cpu" in
9993             ia64*|hppa*64*)
9994               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9995               ;;
9996             *)
9997               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'
9998               ;;
9999             esac
10000           fi
10001         else
10002           # FIXME: insert proper C++ library support
10003           ld_shlibs_CXX=no
10004         fi
10005         ;;
10006     esac
10007     ;;
10008   irix5* | irix6*)
10009     case $cc_basename in
10010       CC)
10011         # SGI C++
10012         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'
10013
10014         # Archives containing C++ object files must be created using
10015         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10016         # necessary to make sure instantiated templates are included
10017         # in the archive.
10018         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10019         ;;
10020       *)
10021         if test "$GXX" = yes; then
10022           if test "$with_gnu_ld" = no; then
10023             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'
10024           else
10025             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'
10026           fi
10027         fi
10028         link_all_deplibs_CXX=yes
10029         ;;
10030     esac
10031     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10032     hardcode_libdir_separator_CXX=:
10033     ;;
10034   linux*)
10035     case $cc_basename in
10036       KCC)
10037         # Kuck and Associates, Inc. (KAI) C++ Compiler
10038
10039         # KCC will only create a shared library if the output file
10040         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10041         # to its proper name (with version) after linking.
10042         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'
10043         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'
10044         # Commands to make compiler produce verbose output that lists
10045         # what "hidden" libraries, object files and flags are used when
10046         # linking a shared library.
10047         #
10048         # There doesn't appear to be a way to prevent this compiler from
10049         # explicitly linking system object files so we need to strip them
10050         # from the output so that they don't get included in the library
10051         # dependencies.
10052         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'
10053
10054         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10055         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10056
10057         # Archives containing C++ object files must be created using
10058         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10059         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10060         ;;
10061       icpc)
10062         # Intel C++
10063         with_gnu_ld=yes
10064         archive_cmds_need_lc_CXX=no
10065         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066         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'
10067         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10068         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10069         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10070         ;;
10071       cxx)
10072         # Compaq C++
10073         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10074         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'
10075
10076         runpath_var=LD_RUN_PATH
10077         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10078         hardcode_libdir_separator_CXX=:
10079
10080         # Commands to make compiler produce verbose output that lists
10081         # what "hidden" libraries, object files and flags are used when
10082         # linking a shared library.
10083         #
10084         # There doesn't appear to be a way to prevent this compiler from
10085         # explicitly linking system object files so we need to strip them
10086         # from the output so that they don't get included in the library
10087         # dependencies.
10088         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'
10089         ;;
10090     esac
10091     ;;
10092   lynxos*)
10093     # FIXME: insert proper C++ library support
10094     ld_shlibs_CXX=no
10095     ;;
10096   m88k*)
10097     # FIXME: insert proper C++ library support
10098     ld_shlibs_CXX=no
10099     ;;
10100   mvs*)
10101     case $cc_basename in
10102       cxx)
10103         # FIXME: insert proper C++ library support
10104         ld_shlibs_CXX=no
10105         ;;
10106       *)
10107         # FIXME: insert proper C++ library support
10108         ld_shlibs_CXX=no
10109         ;;
10110     esac
10111     ;;
10112   netbsd*)
10113     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10114       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10115       wlarc=
10116       hardcode_libdir_flag_spec_CXX='-R$libdir'
10117       hardcode_direct_CXX=yes
10118       hardcode_shlibpath_var_CXX=no
10119     fi
10120     # Workaround some broken pre-1.5 toolchains
10121     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10122     ;;
10123   osf3*)
10124     case $cc_basename in
10125       KCC)
10126         # Kuck and Associates, Inc. (KAI) C++ Compiler
10127
10128         # KCC will only create a shared library if the output file
10129         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10130         # to its proper name (with version) after linking.
10131         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'
10132
10133         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10134         hardcode_libdir_separator_CXX=:
10135
10136         # Archives containing C++ object files must be created using
10137         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10138         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10139
10140         ;;
10141       RCC)
10142         # Rational C++ 2.4.1
10143         # FIXME: insert proper C++ library support
10144         ld_shlibs_CXX=no
10145         ;;
10146       cxx)
10147         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10148         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'
10149
10150         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10151         hardcode_libdir_separator_CXX=:
10152
10153         # Commands to make compiler produce verbose output that lists
10154         # what "hidden" libraries, object files and flags are used when
10155         # linking a shared library.
10156         #
10157         # There doesn't appear to be a way to prevent this compiler from
10158         # explicitly linking system object files so we need to strip them
10159         # from the output so that they don't get included in the library
10160         # dependencies.
10161         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'
10162         ;;
10163       *)
10164         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10165           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10166           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'
10167
10168           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10169           hardcode_libdir_separator_CXX=:
10170
10171           # Commands to make compiler produce verbose output that lists
10172           # what "hidden" libraries, object files and flags are used when
10173           # linking a shared library.
10174           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10175
10176         else
10177           # FIXME: insert proper C++ library support
10178           ld_shlibs_CXX=no
10179         fi
10180         ;;
10181     esac
10182     ;;
10183   osf4* | osf5*)
10184     case $cc_basename in
10185       KCC)
10186         # Kuck and Associates, Inc. (KAI) C++ Compiler
10187
10188         # KCC will only create a shared library if the output file
10189         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10190         # to its proper name (with version) after linking.
10191         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'
10192
10193         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10194         hardcode_libdir_separator_CXX=:
10195
10196         # Archives containing C++ object files must be created using
10197         # the KAI C++ compiler.
10198         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10199         ;;
10200       RCC)
10201         # Rational C++ 2.4.1
10202         # FIXME: insert proper C++ library support
10203         ld_shlibs_CXX=no
10204         ;;
10205       cxx)
10206         allow_undefined_flag_CXX=' -expect_unresolved \*'
10207         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'
10208         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10209           echo "-hidden">> $lib.exp~
10210           $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~
10211           $rm $lib.exp'
10212
10213         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10214         hardcode_libdir_separator_CXX=:
10215
10216         # Commands to make compiler produce verbose output that lists
10217         # what "hidden" libraries, object files and flags are used when
10218         # linking a shared library.
10219         #
10220         # There doesn't appear to be a way to prevent this compiler from
10221         # explicitly linking system object files so we need to strip them
10222         # from the output so that they don't get included in the library
10223         # dependencies.
10224         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'
10225         ;;
10226       *)
10227         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10228           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10229          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'
10230
10231           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10232           hardcode_libdir_separator_CXX=:
10233
10234           # Commands to make compiler produce verbose output that lists
10235           # what "hidden" libraries, object files and flags are used when
10236           # linking a shared library.
10237           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10238
10239         else
10240           # FIXME: insert proper C++ library support
10241           ld_shlibs_CXX=no
10242         fi
10243         ;;
10244     esac
10245     ;;
10246   psos*)
10247     # FIXME: insert proper C++ library support
10248     ld_shlibs_CXX=no
10249     ;;
10250   sco*)
10251     archive_cmds_need_lc_CXX=no
10252     case $cc_basename in
10253       CC)
10254         # FIXME: insert proper C++ library support
10255         ld_shlibs_CXX=no
10256         ;;
10257       *)
10258         # FIXME: insert proper C++ library support
10259         ld_shlibs_CXX=no
10260         ;;
10261     esac
10262     ;;
10263   sunos4*)
10264     case $cc_basename in
10265       CC)
10266         # Sun C++ 4.x
10267         # FIXME: insert proper C++ library support
10268         ld_shlibs_CXX=no
10269         ;;
10270       lcc)
10271         # Lucid
10272         # FIXME: insert proper C++ library support
10273         ld_shlibs_CXX=no
10274         ;;
10275       *)
10276         # FIXME: insert proper C++ library support
10277         ld_shlibs_CXX=no
10278         ;;
10279     esac
10280     ;;
10281   solaris*)
10282     case $cc_basename in
10283       CC)
10284         # Sun C++ 4.2, 5.x and Centerline C++
10285         no_undefined_flag_CXX=' -zdefs'
10286         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10287         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10288         $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'
10289
10290         hardcode_libdir_flag_spec_CXX='-R$libdir'
10291         hardcode_shlibpath_var_CXX=no
10292         case $host_os in
10293           solaris2.0-5 | solaris2.0-5.*) ;;
10294           *)
10295             # The C++ compiler is used as linker so we must use $wl
10296             # flag to pass the commands to the underlying system
10297             # linker.
10298             # Supported since Solaris 2.6 (maybe 2.5.1?)
10299             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10300             ;;
10301         esac
10302         link_all_deplibs_CXX=yes
10303
10304         # Commands to make compiler produce verbose output that lists
10305         # what "hidden" libraries, object files and flags are used when
10306         # linking a shared library.
10307         #
10308         # There doesn't appear to be a way to prevent this compiler from
10309         # explicitly linking system object files so we need to strip them
10310         # from the output so that they don't get included in the library
10311         # dependencies.
10312         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'
10313
10314         # Archives containing C++ object files must be created using
10315         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10316         # necessary to make sure instantiated templates are included
10317         # in the archive.
10318         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10319         ;;
10320       gcx)
10321         # Green Hills C++ Compiler
10322         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10323
10324         # The C++ compiler must be used to create the archive.
10325         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10326         ;;
10327       *)
10328         # GNU C++ compiler with Solaris linker
10329         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10330           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10331           if $CC --version | grep -v '^2\.7' > /dev/null; then
10332             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10333             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10334                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10335
10336             # Commands to make compiler produce verbose output that lists
10337             # what "hidden" libraries, object files and flags are used when
10338             # linking a shared library.
10339             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10340           else
10341             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10342             # platform.
10343             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10344             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10345                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10346
10347             # Commands to make compiler produce verbose output that lists
10348             # what "hidden" libraries, object files and flags are used when
10349             # linking a shared library.
10350             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10351           fi
10352
10353           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10354         fi
10355         ;;
10356     esac
10357     ;;
10358   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10359     archive_cmds_need_lc_CXX=no
10360     ;;
10361   tandem*)
10362     case $cc_basename in
10363       NCC)
10364         # NonStop-UX NCC 3.20
10365         # FIXME: insert proper C++ library support
10366         ld_shlibs_CXX=no
10367         ;;
10368       *)
10369         # FIXME: insert proper C++ library support
10370         ld_shlibs_CXX=no
10371         ;;
10372     esac
10373     ;;
10374   vxworks*)
10375     # FIXME: insert proper C++ library support
10376     ld_shlibs_CXX=no
10377     ;;
10378   *)
10379     # FIXME: insert proper C++ library support
10380     ld_shlibs_CXX=no
10381     ;;
10382 esac
10383 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10384 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10385 test "$ld_shlibs_CXX" = no && can_build_shared=no
10386
10387 GCC_CXX="$GXX"
10388 LD_CXX="$LD"
10389
10390 ## CAVEAT EMPTOR:
10391 ## There is no encapsulation within the following macros, do not change
10392 ## the running order or otherwise move them around unless you know exactly
10393 ## what you are doing...
10394
10395 cat > conftest.$ac_ext <<EOF
10396 class Foo
10397 {
10398 public:
10399   Foo (void) { a = 0; }
10400 private:
10401   int a;
10402 };
10403 EOF
10404
10405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406   (eval $ac_compile) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; then
10410   # Parse the compiler output and extract the necessary
10411   # objects, libraries and library flags.
10412
10413   # Sentinel used to keep track of whether or not we are before
10414   # the conftest object file.
10415   pre_test_object_deps_done=no
10416
10417   # The `*' in the case matches for architectures that use `case' in
10418   # $output_verbose_cmd can trigger glob expansion during the loop
10419   # eval without this substitution.
10420   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10421
10422   for p in `eval $output_verbose_link_cmd`; do
10423     case $p in
10424
10425     -L* | -R* | -l*)
10426        # Some compilers place space between "-{L,R}" and the path.
10427        # Remove the space.
10428        if test $p = "-L" \
10429           || test $p = "-R"; then
10430          prev=$p
10431          continue
10432        else
10433          prev=
10434        fi
10435
10436        if test "$pre_test_object_deps_done" = no; then
10437          case $p in
10438          -L* | -R*)
10439            # Internal compiler library paths should come after those
10440            # provided the user.  The postdeps already come after the
10441            # user supplied libs so there is no need to process them.
10442            if test -z "$compiler_lib_search_path_CXX"; then
10443              compiler_lib_search_path_CXX="${prev}${p}"
10444            else
10445              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10446            fi
10447            ;;
10448          # The "-l" case would never come before the object being
10449          # linked, so don't bother handling this case.
10450          esac
10451        else
10452          if test -z "$postdeps_CXX"; then
10453            postdeps_CXX="${prev}${p}"
10454          else
10455            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10456          fi
10457        fi
10458        ;;
10459
10460     *.$objext)
10461        # This assumes that the test object file only shows up
10462        # once in the compiler output.
10463        if test "$p" = "conftest.$objext"; then
10464          pre_test_object_deps_done=yes
10465          continue
10466        fi
10467
10468        if test "$pre_test_object_deps_done" = no; then
10469          if test -z "$predep_objects_CXX"; then
10470            predep_objects_CXX="$p"
10471          else
10472            predep_objects_CXX="$predep_objects_CXX $p"
10473          fi
10474        else
10475          if test -z "$postdep_objects_CXX"; then
10476            postdep_objects_CXX="$p"
10477          else
10478            postdep_objects_CXX="$postdep_objects_CXX $p"
10479          fi
10480        fi
10481        ;;
10482
10483     *) ;; # Ignore the rest.
10484
10485     esac
10486   done
10487
10488   # Clean up.
10489   rm -f a.out a.exe
10490 else
10491   echo "libtool.m4: error: problem compiling CXX test program"
10492 fi
10493
10494 $rm -f confest.$objext
10495
10496 case " $postdeps_CXX " in
10497 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10498 esac
10499
10500 lt_prog_compiler_wl_CXX=
10501 lt_prog_compiler_pic_CXX=
10502 lt_prog_compiler_static_CXX=
10503
10504 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10505 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10506
10507   # C++ specific cases for pic, static, wl, etc.
10508   if test "$GXX" = yes; then
10509     lt_prog_compiler_wl_CXX='-Wl,'
10510     lt_prog_compiler_static_CXX='-static'
10511
10512     case $host_os in
10513     aix*)
10514       # All AIX code is PIC.
10515       if test "$host_cpu" = ia64; then
10516         # AIX 5 now supports IA64 processor
10517         lt_prog_compiler_static_CXX='-Bstatic'
10518       fi
10519       ;;
10520     amigaos*)
10521       # FIXME: we need at least 68020 code to build shared libraries, but
10522       # adding the `-m68020' flag to GCC prevents building anything better,
10523       # like `-m68040'.
10524       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10525       ;;
10526     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10527       # PIC is the default for these OSes.
10528       ;;
10529     mingw* | os2* | pw32*)
10530       # This hack is so that the source file can tell whether it is being
10531       # built for inclusion in a dll (and should export symbols for example).
10532       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10533       ;;
10534     darwin* | rhapsody*)
10535       # PIC is the default on this platform
10536       # Common symbols not allowed in MH_DYLIB files
10537       lt_prog_compiler_pic_CXX='-fno-common'
10538       ;;
10539     *djgpp*)
10540       # DJGPP does not support shared libraries at all
10541       lt_prog_compiler_pic_CXX=
10542       ;;
10543     sysv4*MP*)
10544       if test -d /usr/nec; then
10545         lt_prog_compiler_pic_CXX=-Kconform_pic
10546       fi
10547       ;;
10548     hpux*)
10549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10550       # not for PA HP-UX.
10551       case "$host_cpu" in
10552       hppa*64*|ia64*)
10553         ;;
10554       *)
10555         lt_prog_compiler_pic_CXX='-fPIC'
10556         ;;
10557       esac
10558       ;;
10559     *)
10560       lt_prog_compiler_pic_CXX='-fPIC'
10561       ;;
10562     esac
10563   else
10564     case $host_os in
10565       aix4* | aix5*)
10566         # All AIX code is PIC.
10567         if test "$host_cpu" = ia64; then
10568           # AIX 5 now supports IA64 processor
10569           lt_prog_compiler_static_CXX='-Bstatic'
10570         else
10571           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10572         fi
10573         ;;
10574       chorus*)
10575         case $cc_basename in
10576         cxch68)
10577           # Green Hills C++ Compiler
10578           # _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"
10579           ;;
10580         esac
10581         ;;
10582       dgux*)
10583         case $cc_basename in
10584           ec++)
10585             lt_prog_compiler_pic_CXX='-KPIC'
10586             ;;
10587           ghcx)
10588             # Green Hills C++ Compiler
10589             lt_prog_compiler_pic_CXX='-pic'
10590             ;;
10591           *)
10592             ;;
10593         esac
10594         ;;
10595       freebsd*)
10596         # FreeBSD uses GNU C++
10597         ;;
10598       hpux9* | hpux10* | hpux11*)
10599         case $cc_basename in
10600           CC)
10601             lt_prog_compiler_wl_CXX='-Wl,'
10602             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10603             if test "$host_cpu" != ia64; then
10604               lt_prog_compiler_pic_CXX='+Z'
10605             fi
10606             ;;
10607           aCC)
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             case "$host_cpu" in
10611             hppa*64*|ia64*)
10612               # +Z the default
10613               ;;
10614             *)
10615               lt_prog_compiler_pic_CXX='+Z'
10616               ;;
10617             esac
10618             ;;
10619           *)
10620             ;;
10621         esac
10622         ;;
10623       irix5* | irix6* | nonstopux*)
10624         case $cc_basename in
10625           CC)
10626             lt_prog_compiler_wl_CXX='-Wl,'
10627             lt_prog_compiler_static_CXX='-non_shared'
10628             # CC pic flag -KPIC is the default.
10629             ;;
10630           *)
10631             ;;
10632         esac
10633         ;;
10634       linux*)
10635         case $cc_basename in
10636           KCC)
10637             # KAI C++ Compiler
10638             lt_prog_compiler_wl_CXX='--backend -Wl,'
10639             lt_prog_compiler_pic_CXX='-fPIC'
10640             ;;
10641           icpc)
10642             # Intel C++
10643             lt_prog_compiler_wl_CXX='-Wl,'
10644             lt_prog_compiler_pic_CXX='-KPIC'
10645             lt_prog_compiler_static_CXX='-static'
10646             ;;
10647           cxx)
10648             # Compaq C++
10649             # Make sure the PIC flag is empty.  It appears that all Alpha
10650             # Linux and Compaq Tru64 Unix objects are PIC.
10651             lt_prog_compiler_pic_CXX=
10652             lt_prog_compiler_static_CXX='-non_shared'
10653             ;;
10654           *)
10655             ;;
10656         esac
10657         ;;
10658       lynxos*)
10659         ;;
10660       m88k*)
10661         ;;
10662       mvs*)
10663         case $cc_basename in
10664           cxx)
10665             lt_prog_compiler_pic_CXX='-W c,exportall'
10666             ;;
10667           *)
10668             ;;
10669         esac
10670         ;;
10671       netbsd*)
10672         ;;
10673       osf3* | osf4* | osf5*)
10674         case $cc_basename in
10675           KCC)
10676             lt_prog_compiler_wl_CXX='--backend -Wl,'
10677             ;;
10678           RCC)
10679             # Rational C++ 2.4.1
10680             lt_prog_compiler_pic_CXX='-pic'
10681             ;;
10682           cxx)
10683             # Digital/Compaq C++
10684             lt_prog_compiler_wl_CXX='-Wl,'
10685             # Make sure the PIC flag is empty.  It appears that all Alpha
10686             # Linux and Compaq Tru64 Unix objects are PIC.
10687             lt_prog_compiler_pic_CXX=
10688             lt_prog_compiler_static_CXX='-non_shared'
10689             ;;
10690           *)
10691             ;;
10692         esac
10693         ;;
10694       psos*)
10695         ;;
10696       sco*)
10697         case $cc_basename in
10698           CC)
10699             lt_prog_compiler_pic_CXX='-fPIC'
10700             ;;
10701           *)
10702             ;;
10703         esac
10704         ;;
10705       solaris*)
10706         case $cc_basename in
10707           CC)
10708             # Sun C++ 4.2, 5.x and Centerline C++
10709             lt_prog_compiler_pic_CXX='-KPIC'
10710             lt_prog_compiler_static_CXX='-Bstatic'
10711             lt_prog_compiler_wl_CXX='-Qoption ld '
10712             ;;
10713           gcx)
10714             # Green Hills C++ Compiler
10715             lt_prog_compiler_pic_CXX='-PIC'
10716             ;;
10717           *)
10718             ;;
10719         esac
10720         ;;
10721       sunos4*)
10722         case $cc_basename in
10723           CC)
10724             # Sun C++ 4.x
10725             lt_prog_compiler_pic_CXX='-pic'
10726             lt_prog_compiler_static_CXX='-Bstatic'
10727             ;;
10728           lcc)
10729             # Lucid
10730             lt_prog_compiler_pic_CXX='-pic'
10731             ;;
10732           *)
10733             ;;
10734         esac
10735         ;;
10736       tandem*)
10737         case $cc_basename in
10738           NCC)
10739             # NonStop-UX NCC 3.20
10740             lt_prog_compiler_pic_CXX='-KPIC'
10741             ;;
10742           *)
10743             ;;
10744         esac
10745         ;;
10746       unixware*)
10747         ;;
10748       vxworks*)
10749         ;;
10750       *)
10751         lt_prog_compiler_can_build_shared_CXX=no
10752         ;;
10753     esac
10754   fi
10755
10756 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10757 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10758
10759 #
10760 # Check to make sure the PIC flag actually works.
10761 #
10762 if test -n "$lt_prog_compiler_pic_CXX"; then
10763   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10764 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10765 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10766   echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768   lt_prog_compiler_pic_works_CXX=no
10769   ac_outfile=conftest.$ac_objext
10770    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10771    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10772    # Insert the option either (1) after the last *FLAGS variable, or
10773    # (2) before a word containing "conftest.", or (3) at the end.
10774    # Note that $ac_compile itself does not contain backslashes and begins
10775    # with a dollar sign (not a hyphen), so the echo should work correctly.
10776    # The option is referenced via a variable to avoid confusing sed.
10777    lt_compile=`echo "$ac_compile" | $SED \
10778    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10779    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10780    -e 's:$: $lt_compiler_flag:'`
10781    (eval echo "\"\$as_me:10781: $lt_compile\"" >&5)
10782    (eval "$lt_compile" 2>conftest.err)
10783    ac_status=$?
10784    cat conftest.err >&5
10785    echo "$as_me:10785: \$? = $ac_status" >&5
10786    if (exit $ac_status) && test -s "$ac_outfile"; then
10787      # The compiler can only warn and ignore the option if not recognized
10788      # So say no if there are warnings
10789      if test ! -s conftest.err; then
10790        lt_prog_compiler_pic_works_CXX=yes
10791      fi
10792    fi
10793    $rm conftest*
10794
10795 fi
10796 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10797 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10798
10799 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10800     case $lt_prog_compiler_pic_CXX in
10801      "" | " "*) ;;
10802      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10803      esac
10804 else
10805     lt_prog_compiler_pic_CXX=
10806      lt_prog_compiler_can_build_shared_CXX=no
10807 fi
10808
10809 fi
10810 case "$host_os" in
10811   # For platforms which do not support PIC, -DPIC is meaningless:
10812   *djgpp*)
10813     lt_prog_compiler_pic_CXX=
10814     ;;
10815   *)
10816     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10817     ;;
10818 esac
10819
10820 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10822 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10823   echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825   lt_cv_prog_compiler_c_o_CXX=no
10826    $rm -r conftest 2>/dev/null
10827    mkdir conftest
10828    cd conftest
10829    mkdir out
10830    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10831
10832    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10833    # that will create temporary files in the current directory regardless of
10834    # the output directory.  Thus, making CWD read-only will cause this test
10835    # to fail, enabling locking or at least warning the user not to do parallel
10836    # builds.
10837    chmod -w .
10838
10839    lt_compiler_flag="-o out/conftest2.$ac_objext"
10840    # Insert the option either (1) after the last *FLAGS variable, or
10841    # (2) before a word containing "conftest.", or (3) at the end.
10842    # Note that $ac_compile itself does not contain backslashes and begins
10843    # with a dollar sign (not a hyphen), so the echo should work correctly.
10844    lt_compile=`echo "$ac_compile" | $SED \
10845    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10846    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10847    -e 's:$: $lt_compiler_flag:'`
10848    (eval echo "\"\$as_me:10848: $lt_compile\"" >&5)
10849    (eval "$lt_compile" 2>out/conftest.err)
10850    ac_status=$?
10851    cat out/conftest.err >&5
10852    echo "$as_me:10852: \$? = $ac_status" >&5
10853    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10854    then
10855      # The compiler can only warn and ignore the option if not recognized
10856      # So say no if there are warnings
10857      if test ! -s out/conftest.err; then
10858        lt_cv_prog_compiler_c_o_CXX=yes
10859      fi
10860    fi
10861    chmod u+w .
10862    $rm conftest* out/*
10863    rmdir out
10864    cd ..
10865    rmdir conftest
10866    $rm conftest*
10867
10868 fi
10869 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10870 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10871
10872
10873 hard_links="nottested"
10874 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10875   # do not overwrite the value of need_locks provided by the user
10876   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10877 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10878   hard_links=yes
10879   $rm conftest*
10880   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10881   touch conftest.a
10882   ln conftest.a conftest.b 2>&5 || hard_links=no
10883   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10884   echo "$as_me:$LINENO: result: $hard_links" >&5
10885 echo "${ECHO_T}$hard_links" >&6
10886   if test "$hard_links" = no; then
10887     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10888 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10889     need_locks=warn
10890   fi
10891 else
10892   need_locks=no
10893 fi
10894
10895 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10896 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10897
10898   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10899   case $host_os in
10900   aix4* | aix5*)
10901     # If we're using GNU nm, then we don't want the "-C" option.
10902     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10903     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10904       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'
10905     else
10906       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'
10907     fi
10908     ;;
10909   pw32*)
10910     export_symbols_cmds_CXX="$ltdll_cmds"
10911   ;;
10912   cygwin* | mingw*)
10913     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10914   ;;
10915   *)
10916     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10917   ;;
10918   esac
10919
10920 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10921 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10922 test "$ld_shlibs_CXX" = no && can_build_shared=no
10923
10924 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10925 if test "$GCC" = yes; then
10926   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10927 fi
10928
10929 #
10930 # Do we need to explicitly link libc?
10931 #
10932 case "x$archive_cmds_need_lc_CXX" in
10933 x|xyes)
10934   # Assume -lc should be added
10935   archive_cmds_need_lc_CXX=yes
10936
10937   if test "$enable_shared" = yes && test "$GCC" = yes; then
10938     case $archive_cmds_CXX in
10939     *'~'*)
10940       # FIXME: we may have to deal with multi-command sequences.
10941       ;;
10942     '$CC '*)
10943       # Test whether the compiler implicitly links with -lc since on some
10944       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10945       # to ld, don't add -lc before -lgcc.
10946       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10947 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10948       $rm conftest*
10949       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10950
10951       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10952   (eval $ac_compile) 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } 2>conftest.err; then
10956         soname=conftest
10957         lib=conftest
10958         libobjs=conftest.$ac_objext
10959         deplibs=
10960         wl=$lt_prog_compiler_wl_CXX
10961         compiler_flags=-v
10962         linker_flags=-v
10963         verstring=
10964         output_objdir=.
10965         libname=conftest
10966         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10967         allow_undefined_flag_CXX=
10968         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10969   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); }
10973         then
10974           archive_cmds_need_lc_CXX=no
10975         else
10976           archive_cmds_need_lc_CXX=yes
10977         fi
10978         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10979       else
10980         cat conftest.err 1>&5
10981       fi
10982       $rm conftest*
10983       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10984 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10985       ;;
10986     esac
10987   fi
10988   ;;
10989 esac
10990
10991 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10992 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10993 hardcode_action_CXX=
10994 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10995    test -n "$runpath_var CXX" || \
10996    test "X$hardcode_automatic_CXX"="Xyes" ; then
10997
10998   # We can hardcode non-existant directories.
10999   if test "$hardcode_direct_CXX" != no &&
11000      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11001      # have to relink, otherwise we might link with an installed library
11002      # when we should be linking with a yet-to-be-installed one
11003      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11004      test "$hardcode_minus_L_CXX" != no; then
11005     # Linking always hardcodes the temporary library directory.
11006     hardcode_action_CXX=relink
11007   else
11008     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11009     hardcode_action_CXX=immediate
11010   fi
11011 else
11012   # We cannot hardcode anything, or else we can only hardcode existing
11013   # directories.
11014   hardcode_action_CXX=unsupported
11015 fi
11016 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11017 echo "${ECHO_T}$hardcode_action_CXX" >&6
11018
11019 if test "$hardcode_action_CXX" = relink; then
11020   # Fast installation is not supported
11021   enable_fast_install=no
11022 elif test "$shlibpath_overrides_runpath" = yes ||
11023      test "$enable_shared" = no; then
11024   # Fast installation is not necessary
11025   enable_fast_install=needless
11026 fi
11027
11028 striplib=
11029 old_striplib=
11030 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11031 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11032 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11033   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11034   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11035   echo "$as_me:$LINENO: result: yes" >&5
11036 echo "${ECHO_T}yes" >&6
11037 else
11038 # FIXME - insert some real tests, host_os isn't really good enough
11039   case $host_os in
11040    darwin*)
11041        if test -n "$STRIP" ; then
11042          striplib="$STRIP -x"
11043          echo "$as_me:$LINENO: result: yes" >&5
11044 echo "${ECHO_T}yes" >&6
11045        else
11046   echo "$as_me:$LINENO: result: no" >&5
11047 echo "${ECHO_T}no" >&6
11048 fi
11049        ;;
11050    *)
11051   echo "$as_me:$LINENO: result: no" >&5
11052 echo "${ECHO_T}no" >&6
11053     ;;
11054   esac
11055 fi
11056
11057 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11058 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11059 library_names_spec=
11060 libname_spec='lib$name'
11061 soname_spec=
11062 shrext=".so"
11063 postinstall_cmds=
11064 postuninstall_cmds=
11065 finish_cmds=
11066 finish_eval=
11067 shlibpath_var=
11068 shlibpath_overrides_runpath=unknown
11069 version_type=none
11070 dynamic_linker="$host_os ld.so"
11071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11072 if test "$GCC" = yes; then
11073   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11074   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11075     # if the path contains ";" then we assume it to be the separator
11076     # otherwise default to the standard path separator (i.e. ":") - it is
11077     # assumed that no part of a normal pathname contains ";" but that should
11078     # okay in the real world where ";" in dirpaths is itself problematic.
11079     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11080   else
11081     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11082   fi
11083 else
11084   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11085 fi
11086 need_lib_prefix=unknown
11087 hardcode_into_libs=no
11088
11089 # when you set need_version to no, make sure it does not cause -set_version
11090 # flags to be left without arguments
11091 need_version=unknown
11092
11093 case $host_os in
11094 aix3*)
11095   version_type=linux
11096   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11097   shlibpath_var=LIBPATH
11098
11099   # AIX 3 has no versioning support, so we append a major version to the name.
11100   soname_spec='${libname}${release}${shared_ext}$major'
11101   ;;
11102
11103 aix4* | aix5*)
11104   version_type=linux
11105   need_lib_prefix=no
11106   need_version=no
11107   hardcode_into_libs=yes
11108   if test "$host_cpu" = ia64; then
11109     # AIX 5 supports IA64
11110     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11111     shlibpath_var=LD_LIBRARY_PATH
11112   else
11113     # With GCC up to 2.95.x, collect2 would create an import file
11114     # for dependence libraries.  The import file would start with
11115     # the line `#! .'.  This would cause the generated library to
11116     # depend on `.', always an invalid library.  This was fixed in
11117     # development snapshots of GCC prior to 3.0.
11118     case $host_os in
11119       aix4 | aix4.[01] | aix4.[01].*)
11120       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11121            echo ' yes '
11122            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11123         :
11124       else
11125         can_build_shared=no
11126       fi
11127       ;;
11128     esac
11129     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11130     # soname into executable. Probably we can add versioning support to
11131     # collect2, so additional links can be useful in future.
11132     if test "$aix_use_runtimelinking" = yes; then
11133       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11134       # instead of lib<name>.a to let people know that these are not
11135       # typical AIX shared libraries.
11136       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137     else
11138       # We preserve .a as extension for shared libraries through AIX4.2
11139       # and later when we are not doing run time linking.
11140       library_names_spec='${libname}${release}.a $libname.a'
11141       soname_spec='${libname}${release}${shared_ext}$major'
11142     fi
11143     shlibpath_var=LIBPATH
11144   fi
11145   ;;
11146
11147 amigaos*)
11148   library_names_spec='$libname.ixlibrary $libname.a'
11149   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11150   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'
11151   ;;
11152
11153 beos*)
11154   library_names_spec='${libname}${shared_ext}'
11155   dynamic_linker="$host_os ld.so"
11156   shlibpath_var=LIBRARY_PATH
11157   ;;
11158
11159 bsdi4*)
11160   version_type=linux
11161   need_version=no
11162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163   soname_spec='${libname}${release}${shared_ext}$major'
11164   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11167   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11168   # the default ld.so.conf also contains /usr/contrib/lib and
11169   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11170   # libtool to hard-code these into programs
11171   ;;
11172
11173 cygwin* | mingw* | pw32*)
11174   version_type=windows
11175   shrext=".dll"
11176   need_version=no
11177   need_lib_prefix=no
11178
11179   case $GCC,$host_os in
11180   yes,cygwin* | yes,mingw* | yes,pw32*)
11181     library_names_spec='$libname.dll.a'
11182     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11183     postinstall_cmds='base_file=`basename \${file}`~
11184       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11185       dldir=$destdir/`dirname \$dlpath`~
11186       test -d \$dldir || mkdir -p \$dldir~
11187       $install_prog $dir/$dlname \$dldir/$dlname'
11188     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11189       dlpath=$dir/\$dldll~
11190        $rm \$dlpath'
11191     shlibpath_overrides_runpath=yes
11192
11193     case $host_os in
11194     cygwin*)
11195       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11196       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11197       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11198       ;;
11199     mingw*)
11200       # MinGW DLLs use traditional 'lib' prefix
11201       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11202       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11203       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11204         # It is most probably a Windows format PATH printed by
11205         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11206         # path with ; separators, and with drive letters. We can handle the
11207         # drive letters (cygwin fileutils understands them), so leave them,
11208         # especially as we might pass files found there to a mingw objdump,
11209         # which wouldn't understand a cygwinified path. Ahh.
11210         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11211       else
11212         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11213       fi
11214       ;;
11215     pw32*)
11216       # pw32 DLLs use 'pw' prefix rather than 'lib'
11217       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11218       ;;
11219     esac
11220     ;;
11221
11222   *)
11223     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11224     ;;
11225   esac
11226   dynamic_linker='Win32 ld.exe'
11227   # FIXME: first we should search . and the directory the executable is in
11228   shlibpath_var=PATH
11229   ;;
11230
11231 darwin* | rhapsody*)
11232   dynamic_linker="$host_os dyld"
11233   version_type=darwin
11234   need_lib_prefix=no
11235   need_version=no
11236   # FIXME: Relying on posixy $() will cause problems for
11237   #        cross-compilation, but unfortunately the echo tests do not
11238   #        yet detect zsh echo's removal of \ escapes.
11239   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11240   soname_spec='${libname}${release}${major}$shared_ext'
11241   shlibpath_overrides_runpath=yes
11242   shlibpath_var=DYLD_LIBRARY_PATH
11243   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11244   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11245   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11246   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"`
11247   fi
11248   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11249   ;;
11250
11251 dgux*)
11252   version_type=linux
11253   need_lib_prefix=no
11254   need_version=no
11255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11256   soname_spec='${libname}${release}${shared_ext}$major'
11257   shlibpath_var=LD_LIBRARY_PATH
11258   ;;
11259
11260 freebsd1*)
11261   dynamic_linker=no
11262   ;;
11263
11264 freebsd*)
11265   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11266   version_type=freebsd-$objformat
11267   case $version_type in
11268     freebsd-elf*)
11269       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11270       need_version=no
11271       need_lib_prefix=no
11272       ;;
11273     freebsd-*)
11274       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11275       need_version=yes
11276       ;;
11277   esac
11278   shlibpath_var=LD_LIBRARY_PATH
11279   case $host_os in
11280   freebsd2*)
11281     shlibpath_overrides_runpath=yes
11282     ;;
11283   freebsd3.01* | freebsdelf3.01*)
11284     shlibpath_overrides_runpath=yes
11285     hardcode_into_libs=yes
11286     ;;
11287   *) # from 3.2 on
11288     shlibpath_overrides_runpath=no
11289     hardcode_into_libs=yes
11290     ;;
11291   esac
11292   ;;
11293
11294 gnu*)
11295   version_type=linux
11296   need_lib_prefix=no
11297   need_version=no
11298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11299   soname_spec='${libname}${release}${shared_ext}$major'
11300   shlibpath_var=LD_LIBRARY_PATH
11301   hardcode_into_libs=yes
11302   ;;
11303
11304 hpux9* | hpux10* | hpux11*)
11305   # Give a soname corresponding to the major version so that dld.sl refuses to
11306   # link against other versions.
11307   version_type=sunos
11308   need_lib_prefix=no
11309   need_version=no
11310   case "$host_cpu" in
11311   ia64*)
11312     shrext='.so'
11313     hardcode_into_libs=yes
11314     dynamic_linker="$host_os dld.so"
11315     shlibpath_var=LD_LIBRARY_PATH
11316     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318     soname_spec='${libname}${release}${shared_ext}$major'
11319     if test "X$HPUX_IA64_MODE" = X32; then
11320       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11321     else
11322       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11323     fi
11324     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11325     ;;
11326    hppa*64*)
11327      shrext='.sl'
11328      hardcode_into_libs=yes
11329      dynamic_linker="$host_os dld.sl"
11330      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11331      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11332      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333      soname_spec='${libname}${release}${shared_ext}$major'
11334      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11335      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11336      ;;
11337    *)
11338     shrext='.sl'
11339     dynamic_linker="$host_os dld.sl"
11340     shlibpath_var=SHLIB_PATH
11341     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343     soname_spec='${libname}${release}${shared_ext}$major'
11344     ;;
11345   esac
11346   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11347   postinstall_cmds='chmod 555 $lib'
11348   ;;
11349
11350 irix5* | irix6* | nonstopux*)
11351   case $host_os in
11352     nonstopux*) version_type=nonstopux ;;
11353     *)
11354         if test "$lt_cv_prog_gnu_ld" = yes; then
11355                 version_type=linux
11356         else
11357                 version_type=irix
11358         fi ;;
11359   esac
11360   need_lib_prefix=no
11361   need_version=no
11362   soname_spec='${libname}${release}${shared_ext}$major'
11363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11364   case $host_os in
11365   irix5* | nonstopux*)
11366     libsuff= shlibsuff=
11367     ;;
11368   *)
11369     case $LD in # libtool.m4 will add one of these switches to LD
11370     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11371       libsuff= shlibsuff= libmagic=32-bit;;
11372     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11373       libsuff=32 shlibsuff=N32 libmagic=N32;;
11374     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11375       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11376     *) libsuff= shlibsuff= libmagic=never-match;;
11377     esac
11378     ;;
11379   esac
11380   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11381   shlibpath_overrides_runpath=no
11382   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11383   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11384   hardcode_into_libs=yes
11385   ;;
11386
11387 # No shared lib support for Linux oldld, aout, or coff.
11388 linux*oldld* | linux*aout* | linux*coff*)
11389   dynamic_linker=no
11390   ;;
11391
11392 # This must be Linux ELF.
11393 linux*)
11394   version_type=linux
11395   need_lib_prefix=no
11396   need_version=no
11397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11398   soname_spec='${libname}${release}${shared_ext}$major'
11399   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11400   shlibpath_var=LD_LIBRARY_PATH
11401   shlibpath_overrides_runpath=no
11402   # This implies no fast_install, which is unacceptable.
11403   # Some rework will be needed to allow for fast_install
11404   # before this can be enabled.
11405   hardcode_into_libs=yes
11406
11407   # We used to test for /lib/ld.so.1 and disable shared libraries on
11408   # powerpc, because MkLinux only supported shared libraries with the
11409   # GNU dynamic linker.  Since this was broken with cross compilers,
11410   # most powerpc-linux boxes support dynamic linking these days and
11411   # people can always --disable-shared, the test was removed, and we
11412   # assume the GNU/Linux dynamic linker is in use.
11413   dynamic_linker='GNU/Linux ld.so'
11414   ;;
11415
11416 netbsd*)
11417   version_type=sunos
11418   need_lib_prefix=no
11419   need_version=no
11420   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11422     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11423     dynamic_linker='NetBSD (a.out) ld.so'
11424   else
11425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11426     soname_spec='${libname}${release}${shared_ext}$major'
11427     dynamic_linker='NetBSD ld.elf_so'
11428   fi
11429   shlibpath_var=LD_LIBRARY_PATH
11430   shlibpath_overrides_runpath=yes
11431   hardcode_into_libs=yes
11432   ;;
11433
11434 newsos6)
11435   version_type=linux
11436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437   shlibpath_var=LD_LIBRARY_PATH
11438   shlibpath_overrides_runpath=yes
11439   ;;
11440
11441 nto-qnx)
11442   version_type=linux
11443   need_lib_prefix=no
11444   need_version=no
11445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446   soname_spec='${libname}${release}${shared_ext}$major'
11447   shlibpath_var=LD_LIBRARY_PATH
11448   shlibpath_overrides_runpath=yes
11449   ;;
11450
11451 openbsd*)
11452   version_type=sunos
11453   need_lib_prefix=no
11454   need_version=no
11455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11457   shlibpath_var=LD_LIBRARY_PATH
11458   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11459     case $host_os in
11460       openbsd2.[89] | openbsd2.[89].*)
11461         shlibpath_overrides_runpath=no
11462         ;;
11463       *)
11464         shlibpath_overrides_runpath=yes
11465         ;;
11466       esac
11467   else
11468     shlibpath_overrides_runpath=yes
11469   fi
11470   ;;
11471
11472 os2*)
11473   libname_spec='$name'
11474   shrext=".dll"
11475   need_lib_prefix=no
11476   library_names_spec='$libname${shared_ext} $libname.a'
11477   dynamic_linker='OS/2 ld.exe'
11478   shlibpath_var=LIBPATH
11479   ;;
11480
11481 osf3* | osf4* | osf5*)
11482   version_type=osf
11483   need_lib_prefix=no
11484   need_version=no
11485   soname_spec='${libname}${release}${shared_ext}$major'
11486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487   shlibpath_var=LD_LIBRARY_PATH
11488   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11489   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11490   ;;
11491
11492 sco3.2v5*)
11493   version_type=osf
11494   soname_spec='${libname}${release}${shared_ext}$major'
11495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496   shlibpath_var=LD_LIBRARY_PATH
11497   ;;
11498
11499 solaris*)
11500   version_type=linux
11501   need_lib_prefix=no
11502   need_version=no
11503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504   soname_spec='${libname}${release}${shared_ext}$major'
11505   shlibpath_var=LD_LIBRARY_PATH
11506   shlibpath_overrides_runpath=yes
11507   hardcode_into_libs=yes
11508   # ldd complains unless libraries are executable
11509   postinstall_cmds='chmod +x $lib'
11510   ;;
11511
11512 sunos4*)
11513   version_type=sunos
11514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11515   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11516   shlibpath_var=LD_LIBRARY_PATH
11517   shlibpath_overrides_runpath=yes
11518   if test "$with_gnu_ld" = yes; then
11519     need_lib_prefix=no
11520   fi
11521   need_version=yes
11522   ;;
11523
11524 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11525   version_type=linux
11526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527   soname_spec='${libname}${release}${shared_ext}$major'
11528   shlibpath_var=LD_LIBRARY_PATH
11529   case $host_vendor in
11530     sni)
11531       shlibpath_overrides_runpath=no
11532       need_lib_prefix=no
11533       export_dynamic_flag_spec='${wl}-Blargedynsym'
11534       runpath_var=LD_RUN_PATH
11535       ;;
11536     siemens)
11537       need_lib_prefix=no
11538       ;;
11539     motorola)
11540       need_lib_prefix=no
11541       need_version=no
11542       shlibpath_overrides_runpath=no
11543       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11544       ;;
11545   esac
11546   ;;
11547
11548 sysv4*MP*)
11549   if test -d /usr/nec ;then
11550     version_type=linux
11551     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11552     soname_spec='$libname${shared_ext}.$major'
11553     shlibpath_var=LD_LIBRARY_PATH
11554   fi
11555   ;;
11556
11557 uts4*)
11558   version_type=linux
11559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560   soname_spec='${libname}${release}${shared_ext}$major'
11561   shlibpath_var=LD_LIBRARY_PATH
11562   ;;
11563
11564 *)
11565   dynamic_linker=no
11566   ;;
11567 esac
11568 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11569 echo "${ECHO_T}$dynamic_linker" >&6
11570 test "$dynamic_linker" = no && can_build_shared=no
11571
11572 if test "x$enable_dlopen" != xyes; then
11573   enable_dlopen=unknown
11574   enable_dlopen_self=unknown
11575   enable_dlopen_self_static=unknown
11576 else
11577   lt_cv_dlopen=no
11578   lt_cv_dlopen_libs=
11579
11580   case $host_os in
11581   beos*)
11582     lt_cv_dlopen="load_add_on"
11583     lt_cv_dlopen_libs=
11584     lt_cv_dlopen_self=yes
11585     ;;
11586
11587   mingw* | pw32*)
11588     lt_cv_dlopen="LoadLibrary"
11589     lt_cv_dlopen_libs=
11590    ;;
11591
11592   cygwin*)
11593     lt_cv_dlopen="dlopen"
11594     lt_cv_dlopen_libs=
11595    ;;
11596
11597   darwin*)
11598   # if libdl is installed we need to link against it
11599     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11600 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11601 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604   ac_check_lib_save_LIBS=$LIBS
11605 LIBS="-ldl  $LIBS"
11606 cat >conftest.$ac_ext <<_ACEOF
11607 #line $LINENO "configure"
11608 /* confdefs.h.  */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h.  */
11613
11614 /* Override any gcc2 internal prototype to avoid an error.  */
11615 #ifdef __cplusplus
11616 extern "C"
11617 #endif
11618 /* We use char because int might match the return type of a gcc2
11619    builtin and then its argument prototype would still apply.  */
11620 char dlopen ();
11621 int
11622 main ()
11623 {
11624 dlopen ();
11625   ;
11626   return 0;
11627 }
11628 _ACEOF
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631   (eval $ac_link) 2>&5
11632   ac_status=$?
11633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634   (exit $ac_status); } &&
11635          { ac_try='test -s conftest$ac_exeext'
11636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637   (eval $ac_try) 2>&5
11638   ac_status=$?
11639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640   (exit $ac_status); }; }; then
11641   ac_cv_lib_dl_dlopen=yes
11642 else
11643   echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11645
11646 ac_cv_lib_dl_dlopen=no
11647 fi
11648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11649 LIBS=$ac_check_lib_save_LIBS
11650 fi
11651 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11652 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11653 if test $ac_cv_lib_dl_dlopen = yes; then
11654   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11655 else
11656
11657     lt_cv_dlopen="dyld"
11658     lt_cv_dlopen_libs=
11659     lt_cv_dlopen_self=yes
11660
11661 fi
11662
11663    ;;
11664
11665   *)
11666     echo "$as_me:$LINENO: checking for shl_load" >&5
11667 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11668 if test "${ac_cv_func_shl_load+set}" = set; then
11669   echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671   cat >conftest.$ac_ext <<_ACEOF
11672 #line $LINENO "configure"
11673 /* confdefs.h.  */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h.  */
11678 /* System header to define __stub macros and hopefully few prototypes,
11679     which can conflict with char shl_load (); below.
11680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11681     <limits.h> exists even on freestanding compilers.  */
11682 #ifdef __STDC__
11683 # include <limits.h>
11684 #else
11685 # include <assert.h>
11686 #endif
11687 /* Override any gcc2 internal prototype to avoid an error.  */
11688 #ifdef __cplusplus
11689 extern "C"
11690 {
11691 #endif
11692 /* We use char because int might match the return type of a gcc2
11693    builtin and then its argument prototype would still apply.  */
11694 char shl_load ();
11695 /* The GNU C library defines this for functions which it implements
11696     to always fail with ENOSYS.  Some functions are actually named
11697     something starting with __ and the normal name is an alias.  */
11698 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11699 choke me
11700 #else
11701 char (*f) () = shl_load;
11702 #endif
11703 #ifdef __cplusplus
11704 }
11705 #endif
11706
11707 int
11708 main ()
11709 {
11710 return f != shl_load;
11711   ;
11712   return 0;
11713 }
11714 _ACEOF
11715 rm -f conftest.$ac_objext conftest$ac_exeext
11716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11717   (eval $ac_link) 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); } &&
11721          { ac_try='test -s conftest$ac_exeext'
11722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723   (eval $ac_try) 2>&5
11724   ac_status=$?
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); }; }; then
11727   ac_cv_func_shl_load=yes
11728 else
11729   echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732 ac_cv_func_shl_load=no
11733 fi
11734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11735 fi
11736 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11737 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11738 if test $ac_cv_func_shl_load = yes; then
11739   lt_cv_dlopen="shl_load"
11740 else
11741   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11742 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11743 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   ac_check_lib_save_LIBS=$LIBS
11747 LIBS="-ldld  $LIBS"
11748 cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755
11756 /* Override any gcc2 internal prototype to avoid an error.  */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 /* We use char because int might match the return type of a gcc2
11761    builtin and then its argument prototype would still apply.  */
11762 char shl_load ();
11763 int
11764 main ()
11765 {
11766 shl_load ();
11767   ;
11768   return 0;
11769 }
11770 _ACEOF
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11773   (eval $ac_link) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); } &&
11777          { ac_try='test -s conftest$ac_exeext'
11778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779   (eval $ac_try) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; }; then
11783   ac_cv_lib_dld_shl_load=yes
11784 else
11785   echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11787
11788 ac_cv_lib_dld_shl_load=no
11789 fi
11790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11791 LIBS=$ac_check_lib_save_LIBS
11792 fi
11793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11794 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11795 if test $ac_cv_lib_dld_shl_load = yes; then
11796   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11797 else
11798   echo "$as_me:$LINENO: checking for dlopen" >&5
11799 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11800 if test "${ac_cv_func_dlopen+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 /* System header to define __stub macros and hopefully few prototypes,
11811     which can conflict with char dlopen (); below.
11812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813     <limits.h> exists even on freestanding compilers.  */
11814 #ifdef __STDC__
11815 # include <limits.h>
11816 #else
11817 # include <assert.h>
11818 #endif
11819 /* Override any gcc2 internal prototype to avoid an error.  */
11820 #ifdef __cplusplus
11821 extern "C"
11822 {
11823 #endif
11824 /* We use char because int might match the return type of a gcc2
11825    builtin and then its argument prototype would still apply.  */
11826 char dlopen ();
11827 /* The GNU C library defines this for functions which it implements
11828     to always fail with ENOSYS.  Some functions are actually named
11829     something starting with __ and the normal name is an alias.  */
11830 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11831 choke me
11832 #else
11833 char (*f) () = dlopen;
11834 #endif
11835 #ifdef __cplusplus
11836 }
11837 #endif
11838
11839 int
11840 main ()
11841 {
11842 return f != dlopen;
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11849   (eval $ac_link) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); } &&
11853          { ac_try='test -s conftest$ac_exeext'
11854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855   (eval $ac_try) 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); }; }; then
11859   ac_cv_func_dlopen=yes
11860 else
11861   echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11863
11864 ac_cv_func_dlopen=no
11865 fi
11866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11867 fi
11868 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11869 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11870 if test $ac_cv_func_dlopen = yes; then
11871   lt_cv_dlopen="dlopen"
11872 else
11873   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11874 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11876   echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878   ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-ldl  $LIBS"
11880 cat >conftest.$ac_ext <<_ACEOF
11881 #line $LINENO "configure"
11882 /* confdefs.h.  */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h.  */
11887
11888 /* Override any gcc2 internal prototype to avoid an error.  */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 /* We use char because int might match the return type of a gcc2
11893    builtin and then its argument prototype would still apply.  */
11894 char dlopen ();
11895 int
11896 main ()
11897 {
11898 dlopen ();
11899   ;
11900   return 0;
11901 }
11902 _ACEOF
11903 rm -f conftest.$ac_objext conftest$ac_exeext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905   (eval $ac_link) 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } &&
11909          { ac_try='test -s conftest$ac_exeext'
11910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911   (eval $ac_try) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; }; then
11915   ac_cv_lib_dl_dlopen=yes
11916 else
11917   echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920 ac_cv_lib_dl_dlopen=no
11921 fi
11922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11924 fi
11925 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11927 if test $ac_cv_lib_dl_dlopen = yes; then
11928   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11929 else
11930   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11931 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11932 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11933   echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935   ac_check_lib_save_LIBS=$LIBS
11936 LIBS="-lsvld  $LIBS"
11937 cat >conftest.$ac_ext <<_ACEOF
11938 #line $LINENO "configure"
11939 /* confdefs.h.  */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h.  */
11944
11945 /* Override any gcc2 internal prototype to avoid an error.  */
11946 #ifdef __cplusplus
11947 extern "C"
11948 #endif
11949 /* We use char because int might match the return type of a gcc2
11950    builtin and then its argument prototype would still apply.  */
11951 char dlopen ();
11952 int
11953 main ()
11954 {
11955 dlopen ();
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962   (eval $ac_link) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); } &&
11966          { ac_try='test -s conftest$ac_exeext'
11967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968   (eval $ac_try) 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); }; }; then
11972   ac_cv_lib_svld_dlopen=yes
11973 else
11974   echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977 ac_cv_lib_svld_dlopen=no
11978 fi
11979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11980 LIBS=$ac_check_lib_save_LIBS
11981 fi
11982 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11983 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11984 if test $ac_cv_lib_svld_dlopen = yes; then
11985   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11986 else
11987   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11988 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11989 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11990   echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992   ac_check_lib_save_LIBS=$LIBS
11993 LIBS="-ldld  $LIBS"
11994 cat >conftest.$ac_ext <<_ACEOF
11995 #line $LINENO "configure"
11996 /* confdefs.h.  */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h.  */
12001
12002 /* Override any gcc2 internal prototype to avoid an error.  */
12003 #ifdef __cplusplus
12004 extern "C"
12005 #endif
12006 /* We use char because int might match the return type of a gcc2
12007    builtin and then its argument prototype would still apply.  */
12008 char dld_link ();
12009 int
12010 main ()
12011 {
12012 dld_link ();
12013   ;
12014   return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019   (eval $ac_link) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -s conftest$ac_exeext'
12024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025   (eval $ac_try) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; }; then
12029   ac_cv_lib_dld_dld_link=yes
12030 else
12031   echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 ac_cv_lib_dld_dld_link=no
12035 fi
12036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12037 LIBS=$ac_check_lib_save_LIBS
12038 fi
12039 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12040 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12041 if test $ac_cv_lib_dld_dld_link = yes; then
12042   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12043 fi
12044
12045
12046 fi
12047
12048
12049 fi
12050
12051
12052 fi
12053
12054
12055 fi
12056
12057
12058 fi
12059
12060     ;;
12061   esac
12062
12063   if test "x$lt_cv_dlopen" != xno; then
12064     enable_dlopen=yes
12065   else
12066     enable_dlopen=no
12067   fi
12068
12069   case $lt_cv_dlopen in
12070   dlopen)
12071     save_CPPFLAGS="$CPPFLAGS"
12072     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12073
12074     save_LDFLAGS="$LDFLAGS"
12075     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12076
12077     save_LIBS="$LIBS"
12078     LIBS="$lt_cv_dlopen_libs $LIBS"
12079
12080     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12081 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12082 if test "${lt_cv_dlopen_self+set}" = set; then
12083   echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085           if test "$cross_compiling" = yes; then :
12086   lt_cv_dlopen_self=cross
12087 else
12088   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12089   lt_status=$lt_dlunknown
12090   cat > conftest.$ac_ext <<EOF
12091 #line 12091 "configure"
12092 #include "confdefs.h"
12093
12094 #if HAVE_DLFCN_H
12095 #include <dlfcn.h>
12096 #endif
12097
12098 #include <stdio.h>
12099
12100 #ifdef RTLD_GLOBAL
12101 #  define LT_DLGLOBAL           RTLD_GLOBAL
12102 #else
12103 #  ifdef DL_GLOBAL
12104 #    define LT_DLGLOBAL         DL_GLOBAL
12105 #  else
12106 #    define LT_DLGLOBAL         0
12107 #  endif
12108 #endif
12109
12110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12111    find out it does not work in some platform. */
12112 #ifndef LT_DLLAZY_OR_NOW
12113 #  ifdef RTLD_LAZY
12114 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12115 #  else
12116 #    ifdef DL_LAZY
12117 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12118 #    else
12119 #      ifdef RTLD_NOW
12120 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12121 #      else
12122 #        ifdef DL_NOW
12123 #          define LT_DLLAZY_OR_NOW      DL_NOW
12124 #        else
12125 #          define LT_DLLAZY_OR_NOW      0
12126 #        endif
12127 #      endif
12128 #    endif
12129 #  endif
12130 #endif
12131
12132 #ifdef __cplusplus
12133 extern "C" void exit (int);
12134 #endif
12135
12136 void fnord() { int i=42;}
12137 int main ()
12138 {
12139   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12140   int status = $lt_dlunknown;
12141
12142   if (self)
12143     {
12144       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12145       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12146       /* dlclose (self); */
12147     }
12148
12149     exit (status);
12150 }
12151 EOF
12152   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12153   (eval $ac_link) 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12157     (./conftest; exit; ) 2>/dev/null
12158     lt_status=$?
12159     case x$lt_status in
12160       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12161       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12162       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12163     esac
12164   else :
12165     # compilation failed
12166     lt_cv_dlopen_self=no
12167   fi
12168 fi
12169 rm -fr conftest*
12170
12171
12172 fi
12173 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12174 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12175
12176     if test "x$lt_cv_dlopen_self" = xyes; then
12177       LDFLAGS="$LDFLAGS $link_static_flag"
12178       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12179 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12180 if test "${lt_cv_dlopen_self_static+set}" = set; then
12181   echo $ECHO_N "(cached) $ECHO_C" >&6
12182 else
12183           if test "$cross_compiling" = yes; then :
12184   lt_cv_dlopen_self_static=cross
12185 else
12186   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12187   lt_status=$lt_dlunknown
12188   cat > conftest.$ac_ext <<EOF
12189 #line 12189 "configure"
12190 #include "confdefs.h"
12191
12192 #if HAVE_DLFCN_H
12193 #include <dlfcn.h>
12194 #endif
12195
12196 #include <stdio.h>
12197
12198 #ifdef RTLD_GLOBAL
12199 #  define LT_DLGLOBAL           RTLD_GLOBAL
12200 #else
12201 #  ifdef DL_GLOBAL
12202 #    define LT_DLGLOBAL         DL_GLOBAL
12203 #  else
12204 #    define LT_DLGLOBAL         0
12205 #  endif
12206 #endif
12207
12208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12209    find out it does not work in some platform. */
12210 #ifndef LT_DLLAZY_OR_NOW
12211 #  ifdef RTLD_LAZY
12212 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12213 #  else
12214 #    ifdef DL_LAZY
12215 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12216 #    else
12217 #      ifdef RTLD_NOW
12218 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12219 #      else
12220 #        ifdef DL_NOW
12221 #          define LT_DLLAZY_OR_NOW      DL_NOW
12222 #        else
12223 #          define LT_DLLAZY_OR_NOW      0
12224 #        endif
12225 #      endif
12226 #    endif
12227 #  endif
12228 #endif
12229
12230 #ifdef __cplusplus
12231 extern "C" void exit (int);
12232 #endif
12233
12234 void fnord() { int i=42;}
12235 int main ()
12236 {
12237   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12238   int status = $lt_dlunknown;
12239
12240   if (self)
12241     {
12242       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12243       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12244       /* dlclose (self); */
12245     }
12246
12247     exit (status);
12248 }
12249 EOF
12250   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12251   (eval $ac_link) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12255     (./conftest; exit; ) 2>/dev/null
12256     lt_status=$?
12257     case x$lt_status in
12258       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12259       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12260       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12261     esac
12262   else :
12263     # compilation failed
12264     lt_cv_dlopen_self_static=no
12265   fi
12266 fi
12267 rm -fr conftest*
12268
12269
12270 fi
12271 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12272 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12273     fi
12274
12275     CPPFLAGS="$save_CPPFLAGS"
12276     LDFLAGS="$save_LDFLAGS"
12277     LIBS="$save_LIBS"
12278     ;;
12279   esac
12280
12281   case $lt_cv_dlopen_self in
12282   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12283   *) enable_dlopen_self=unknown ;;
12284   esac
12285
12286   case $lt_cv_dlopen_self_static in
12287   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12288   *) enable_dlopen_self_static=unknown ;;
12289   esac
12290 fi
12291
12292
12293 # The else clause should only fire when bootstrapping the
12294 # libtool distribution, otherwise you forgot to ship ltmain.sh
12295 # with your package, and you will get complaints that there are
12296 # no rules to generate ltmain.sh.
12297 if test -f "$ltmain"; then
12298   # See if we are running on zsh, and set the options which allow our commands through
12299   # without removal of \ escapes.
12300   if test -n "${ZSH_VERSION+set}" ; then
12301     setopt NO_GLOB_SUBST
12302   fi
12303   # Now quote all the things that may contain metacharacters while being
12304   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12305   # variables and quote the copies for generation of the libtool script.
12306   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12307     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12308     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12309     deplibs_check_method reload_flag reload_cmds need_locks \
12310     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12311     lt_cv_sys_global_symbol_to_c_name_address \
12312     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12313     old_postinstall_cmds old_postuninstall_cmds \
12314     compiler_CXX \
12315     CC_CXX \
12316     LD_CXX \
12317     lt_prog_compiler_wl_CXX \
12318     lt_prog_compiler_pic_CXX \
12319     lt_prog_compiler_static_CXX \
12320     lt_prog_compiler_no_builtin_flag_CXX \
12321     export_dynamic_flag_spec_CXX \
12322     thread_safe_flag_spec_CXX \
12323     whole_archive_flag_spec_CXX \
12324     enable_shared_with_static_runtimes_CXX \
12325     old_archive_cmds_CXX \
12326     old_archive_from_new_cmds_CXX \
12327     predep_objects_CXX \
12328     postdep_objects_CXX \
12329     predeps_CXX \
12330     postdeps_CXX \
12331     compiler_lib_search_path_CXX \
12332     archive_cmds_CXX \
12333     archive_expsym_cmds_CXX \
12334     postinstall_cmds_CXX \
12335     postuninstall_cmds_CXX \
12336     old_archive_from_expsyms_cmds_CXX \
12337     allow_undefined_flag_CXX \
12338     no_undefined_flag_CXX \
12339     export_symbols_cmds_CXX \
12340     hardcode_libdir_flag_spec_CXX \
12341     hardcode_libdir_flag_spec_ld_CXX \
12342     hardcode_libdir_separator_CXX \
12343     hardcode_automatic_CXX \
12344     module_cmds_CXX \
12345     module_expsym_cmds_CXX \
12346     lt_cv_prog_compiler_c_o_CXX \
12347     exclude_expsyms_CXX \
12348     include_expsyms_CXX; do
12349
12350     case $var in
12351     old_archive_cmds_CXX | \
12352     old_archive_from_new_cmds_CXX | \
12353     archive_cmds_CXX | \
12354     archive_expsym_cmds_CXX | \
12355     module_cmds_CXX | \
12356     module_expsym_cmds_CXX | \
12357     old_archive_from_expsyms_cmds_CXX | \
12358     export_symbols_cmds_CXX | \
12359     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12360     postinstall_cmds | postuninstall_cmds | \
12361     old_postinstall_cmds | old_postuninstall_cmds | \
12362     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12363       # Double-quote double-evaled strings.
12364       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12365       ;;
12366     *)
12367       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12368       ;;
12369     esac
12370   done
12371
12372   case $lt_echo in
12373   *'\$0 --fallback-echo"')
12374     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12375     ;;
12376   esac
12377
12378 cfgfile="$ofile"
12379
12380   cat <<__EOF__ >> "$cfgfile"
12381 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12382
12383 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12384
12385 # Shell to use when invoking shell scripts.
12386 SHELL=$lt_SHELL
12387
12388 # Whether or not to build shared libraries.
12389 build_libtool_libs=$enable_shared
12390
12391 # Whether or not to build static libraries.
12392 build_old_libs=$enable_static
12393
12394 # Whether or not to add -lc for building shared libraries.
12395 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12396
12397 # Whether or not to disallow shared libs when runtime libs are static
12398 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12399
12400 # Whether or not to optimize for fast installation.
12401 fast_install=$enable_fast_install
12402
12403 # The host system.
12404 host_alias=$host_alias
12405 host=$host
12406
12407 # An echo program that does not interpret backslashes.
12408 echo=$lt_echo
12409
12410 # The archiver.
12411 AR=$lt_AR
12412 AR_FLAGS=$lt_AR_FLAGS
12413
12414 # A C compiler.
12415 LTCC=$lt_LTCC
12416
12417 # A language-specific compiler.
12418 CC=$lt_compiler_CXX
12419
12420 # Is the compiler the GNU C compiler?
12421 with_gcc=$GCC_CXX
12422
12423 # An ERE matcher.
12424 EGREP=$lt_EGREP
12425
12426 # The linker used to build libraries.
12427 LD=$lt_LD_CXX
12428
12429 # Whether we need hard or soft links.
12430 LN_S=$lt_LN_S
12431
12432 # A BSD-compatible nm program.
12433 NM=$lt_NM
12434
12435 # A symbol stripping program
12436 STRIP=$STRIP
12437
12438 # Used to examine libraries when file_magic_cmd begins "file"
12439 MAGIC_CMD=$MAGIC_CMD
12440
12441 # Used on cygwin: DLL creation program.
12442 DLLTOOL="$DLLTOOL"
12443
12444 # Used on cygwin: object dumper.
12445 OBJDUMP="$OBJDUMP"
12446
12447 # Used on cygwin: assembler.
12448 AS="$AS"
12449
12450 # The name of the directory that contains temporary libtool files.
12451 objdir=$objdir
12452
12453 # How to create reloadable object files.
12454 reload_flag=$lt_reload_flag
12455 reload_cmds=$lt_reload_cmds
12456
12457 # How to pass a linker flag through the compiler.
12458 wl=$lt_lt_prog_compiler_wl_CXX
12459
12460 # Object file suffix (normally "o").
12461 objext="$ac_objext"
12462
12463 # Old archive suffix (normally "a").
12464 libext="$libext"
12465
12466 # Shared library suffix (normally ".so").
12467 shrext='$shrext'
12468
12469 # Executable file suffix (normally "").
12470 exeext="$exeext"
12471
12472 # Additional compiler flags for building library objects.
12473 pic_flag=$lt_lt_prog_compiler_pic_CXX
12474 pic_mode=$pic_mode
12475
12476 # What is the maximum length of a command?
12477 max_cmd_len=$lt_cv_sys_max_cmd_len
12478
12479 # Does compiler simultaneously support -c and -o options?
12480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12481
12482 # Must we lock files when doing compilation ?
12483 need_locks=$lt_need_locks
12484
12485 # Do we need the lib prefix for modules?
12486 need_lib_prefix=$need_lib_prefix
12487
12488 # Do we need a version for libraries?
12489 need_version=$need_version
12490
12491 # Whether dlopen is supported.
12492 dlopen_support=$enable_dlopen
12493
12494 # Whether dlopen of programs is supported.
12495 dlopen_self=$enable_dlopen_self
12496
12497 # Whether dlopen of statically linked programs is supported.
12498 dlopen_self_static=$enable_dlopen_self_static
12499
12500 # Compiler flag to prevent dynamic linking.
12501 link_static_flag=$lt_lt_prog_compiler_static_CXX
12502
12503 # Compiler flag to turn off builtin functions.
12504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12505
12506 # Compiler flag to allow reflexive dlopens.
12507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12508
12509 # Compiler flag to generate shared objects directly from archives.
12510 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12511
12512 # Compiler flag to generate thread-safe objects.
12513 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12514
12515 # Library versioning type.
12516 version_type=$version_type
12517
12518 # Format of library name prefix.
12519 libname_spec=$lt_libname_spec
12520
12521 # List of archive names.  First name is the real one, the rest are links.
12522 # The last name is the one that the linker finds with -lNAME.
12523 library_names_spec=$lt_library_names_spec
12524
12525 # The coded name of the library, if different from the real name.
12526 soname_spec=$lt_soname_spec
12527
12528 # Commands used to build and install an old-style archive.
12529 RANLIB=$lt_RANLIB
12530 old_archive_cmds=$lt_old_archive_cmds_CXX
12531 old_postinstall_cmds=$lt_old_postinstall_cmds
12532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12533
12534 # Create an old-style archive from a shared archive.
12535 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12536
12537 # Create a temporary old-style archive to link instead of a shared archive.
12538 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12539
12540 # Commands used to build and install a shared archive.
12541 archive_cmds=$lt_archive_cmds_CXX
12542 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12543 postinstall_cmds=$lt_postinstall_cmds
12544 postuninstall_cmds=$lt_postuninstall_cmds
12545
12546 # Commands used to build a loadable module (assumed same as above if empty)
12547 module_cmds=$lt_module_cmds_CXX
12548 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12549
12550 # Commands to strip libraries.
12551 old_striplib=$lt_old_striplib
12552 striplib=$lt_striplib
12553
12554 # Dependencies to place before the objects being linked to create a
12555 # shared library.
12556 predep_objects=$lt_predep_objects_CXX
12557
12558 # Dependencies to place after the objects being linked to create a
12559 # shared library.
12560 postdep_objects=$lt_postdep_objects_CXX
12561
12562 # Dependencies to place before the objects being linked to create a
12563 # shared library.
12564 predeps=$lt_predeps_CXX
12565
12566 # Dependencies to place after the objects being linked to create a
12567 # shared library.
12568 postdeps=$lt_postdeps_CXX
12569
12570 # The library search path used internally by the compiler when linking
12571 # a shared library.
12572 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12573
12574 # Method to check whether dependent libraries are shared objects.
12575 deplibs_check_method=$lt_deplibs_check_method
12576
12577 # Command to use when deplibs_check_method == file_magic.
12578 file_magic_cmd=$lt_file_magic_cmd
12579
12580 # Flag that allows shared libraries with undefined symbols to be built.
12581 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12582
12583 # Flag that forces no undefined symbols.
12584 no_undefined_flag=$lt_no_undefined_flag_CXX
12585
12586 # Commands used to finish a libtool library installation in a directory.
12587 finish_cmds=$lt_finish_cmds
12588
12589 # Same as above, but a single script fragment to be evaled but not shown.
12590 finish_eval=$lt_finish_eval
12591
12592 # Take the output of nm and produce a listing of raw symbols and C names.
12593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12594
12595 # Transform the output of nm in a proper C declaration
12596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12597
12598 # Transform the output of nm in a C name address pair
12599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12600
12601 # This is the shared library runtime path variable.
12602 runpath_var=$runpath_var
12603
12604 # This is the shared library path variable.
12605 shlibpath_var=$shlibpath_var
12606
12607 # Is shlibpath searched before the hard-coded library search path?
12608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12609
12610 # How to hardcode a shared library path into an executable.
12611 hardcode_action=$hardcode_action_CXX
12612
12613 # Whether we should hardcode library paths into libraries.
12614 hardcode_into_libs=$hardcode_into_libs
12615
12616 # Flag to hardcode \$libdir into a binary during linking.
12617 # This must work even if \$libdir does not exist.
12618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12619
12620 # If ld is used when linking, flag to hardcode \$libdir into
12621 # a binary during linking. This must work even if \$libdir does
12622 # not exist.
12623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12624
12625 # Whether we need a single -rpath flag with a separated argument.
12626 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12627
12628 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12629 # resulting binary.
12630 hardcode_direct=$hardcode_direct_CXX
12631
12632 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12633 # resulting binary.
12634 hardcode_minus_L=$hardcode_minus_L_CXX
12635
12636 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12637 # the resulting binary.
12638 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12639
12640 # Set to yes if building a shared library automatically hardcodes DIR into the library
12641 # and all subsequent libraries and executables linked against it.
12642 hardcode_automatic=$hardcode_automatic_CXX
12643
12644 # Variables whose values should be saved in libtool wrapper scripts and
12645 # restored at relink time.
12646 variables_saved_for_relink="$variables_saved_for_relink"
12647
12648 # Whether libtool must link a program against all its dependency libraries.
12649 link_all_deplibs=$link_all_deplibs_CXX
12650
12651 # Compile-time system search path for libraries
12652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12653
12654 # Run-time system search path for libraries
12655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12656
12657 # Fix the shell variable \$srcfile for the compiler.
12658 fix_srcfile_path="$fix_srcfile_path_CXX"
12659
12660 # Set to yes if exported symbols are required.
12661 always_export_symbols=$always_export_symbols_CXX
12662
12663 # The commands to list exported symbols.
12664 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12665
12666 # The commands to extract the exported symbol list from a shared archive.
12667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12668
12669 # Symbols that should not be listed in the preloaded symbols.
12670 exclude_expsyms=$lt_exclude_expsyms_CXX
12671
12672 # Symbols that must always be exported.
12673 include_expsyms=$lt_include_expsyms_CXX
12674
12675 # ### END LIBTOOL TAG CONFIG: $tagname
12676
12677 __EOF__
12678
12679
12680 else
12681   # If there is no Makefile yet, we rely on a make rule to execute
12682   # `config.status --recheck' to rerun these tests and create the
12683   # libtool script then.
12684   test -f Makefile && make "$ltmain"
12685 fi
12686
12687
12688 ac_ext=c
12689 ac_cpp='$CPP $CPPFLAGS'
12690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12693
12694 CC=$lt_save_CC
12695 LDCXX=$LD
12696 LD=$lt_save_LD
12697 GCC=$lt_save_GCC
12698 with_gnu_ldcxx=$with_gnu_ld
12699 with_gnu_ld=$lt_save_with_gnu_ld
12700 lt_cv_path_LDCXX=$lt_cv_path_LD
12701 lt_cv_path_LD=$lt_save_path_LD
12702 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12703 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12704
12705         else
12706           tagname=""
12707         fi
12708         ;;
12709
12710       F77)
12711         if test -n "$F77" && test "X$F77" != "Xno"; then
12712
12713 ac_ext=f
12714 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12715 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12717
12718
12719 archive_cmds_need_lc_F77=no
12720 allow_undefined_flag_F77=
12721 always_export_symbols_F77=no
12722 archive_expsym_cmds_F77=
12723 export_dynamic_flag_spec_F77=
12724 hardcode_direct_F77=no
12725 hardcode_libdir_flag_spec_F77=
12726 hardcode_libdir_flag_spec_ld_F77=
12727 hardcode_libdir_separator_F77=
12728 hardcode_minus_L_F77=no
12729 hardcode_automatic_F77=no
12730 module_cmds_F77=
12731 module_expsym_cmds_F77=
12732 link_all_deplibs_F77=unknown
12733 old_archive_cmds_F77=$old_archive_cmds
12734 no_undefined_flag_F77=
12735 whole_archive_flag_spec_F77=
12736 enable_shared_with_static_runtimes_F77=no
12737
12738 # Source file extension for f77 test sources.
12739 ac_ext=f
12740
12741 # Object file extension for compiled f77 test sources.
12742 objext=o
12743 objext_F77=$objext
12744
12745 # Code to be used in simple compile tests
12746 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12747
12748 # Code to be used in simple link tests
12749 lt_simple_link_test_code="      program t\n      end\n"
12750
12751 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12752
12753 # If no C compiler was specified, use CC.
12754 LTCC=${LTCC-"$CC"}
12755
12756 # Allow CC to be a program name with arguments.
12757 compiler=$CC
12758
12759
12760 # Allow CC to be a program name with arguments.
12761 lt_save_CC="$CC"
12762 CC=${F77-"f77"}
12763 compiler=$CC
12764 compiler_F77=$CC
12765 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12766
12767 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12768 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12769 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12770 echo "${ECHO_T}$can_build_shared" >&6
12771
12772 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12773 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12774 test "$can_build_shared" = "no" && enable_shared=no
12775
12776 # On AIX, shared libraries and static libraries use the same namespace, and
12777 # are all built from PIC.
12778 case "$host_os" in
12779 aix3*)
12780   test "$enable_shared" = yes && enable_static=no
12781   if test -n "$RANLIB"; then
12782     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12783     postinstall_cmds='$RANLIB $lib'
12784   fi
12785   ;;
12786 aix4*)
12787   test "$enable_shared" = yes && enable_static=no
12788   ;;
12789 esac
12790 echo "$as_me:$LINENO: result: $enable_shared" >&5
12791 echo "${ECHO_T}$enable_shared" >&6
12792
12793 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12794 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12795 # Make sure either enable_shared or enable_static is yes.
12796 test "$enable_shared" = yes || enable_static=yes
12797 echo "$as_me:$LINENO: result: $enable_static" >&5
12798 echo "${ECHO_T}$enable_static" >&6
12799
12800 test "$ld_shlibs_F77" = no && can_build_shared=no
12801
12802 GCC_F77="$G77"
12803 LD_F77="$LD"
12804
12805 lt_prog_compiler_wl_F77=
12806 lt_prog_compiler_pic_F77=
12807 lt_prog_compiler_static_F77=
12808
12809 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12810 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12811
12812   if test "$GCC" = yes; then
12813     lt_prog_compiler_wl_F77='-Wl,'
12814     lt_prog_compiler_static_F77='-static'
12815
12816     case $host_os in
12817       aix*)
12818       # All AIX code is PIC.
12819       if test "$host_cpu" = ia64; then
12820         # AIX 5 now supports IA64 processor
12821         lt_prog_compiler_static_F77='-Bstatic'
12822       fi
12823       ;;
12824
12825     amigaos*)
12826       # FIXME: we need at least 68020 code to build shared libraries, but
12827       # adding the `-m68020' flag to GCC prevents building anything better,
12828       # like `-m68040'.
12829       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12830       ;;
12831
12832     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12833       # PIC is the default for these OSes.
12834       ;;
12835
12836     mingw* | pw32* | os2*)
12837       # This hack is so that the source file can tell whether it is being
12838       # built for inclusion in a dll (and should export symbols for example).
12839       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12840       ;;
12841
12842     darwin* | rhapsody*)
12843       # PIC is the default on this platform
12844       # Common symbols not allowed in MH_DYLIB files
12845       lt_prog_compiler_pic_F77='-fno-common'
12846       ;;
12847
12848     msdosdjgpp*)
12849       # Just because we use GCC doesn't mean we suddenly get shared libraries
12850       # on systems that don't support them.
12851       lt_prog_compiler_can_build_shared_F77=no
12852       enable_shared=no
12853       ;;
12854
12855     sysv4*MP*)
12856       if test -d /usr/nec; then
12857         lt_prog_compiler_pic_F77=-Kconform_pic
12858       fi
12859       ;;
12860
12861     hpux*)
12862       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12863       # not for PA HP-UX.
12864       case "$host_cpu" in
12865       hppa*64*|ia64*)
12866         # +Z the default
12867         ;;
12868       *)
12869         lt_prog_compiler_pic_F77='-fPIC'
12870         ;;
12871       esac
12872       ;;
12873
12874     *)
12875       lt_prog_compiler_pic_F77='-fPIC'
12876       ;;
12877     esac
12878   else
12879     # PORTME Check for flag to pass linker flags through the system compiler.
12880     case $host_os in
12881     aix*)
12882       lt_prog_compiler_wl_F77='-Wl,'
12883       if test "$host_cpu" = ia64; then
12884         # AIX 5 now supports IA64 processor
12885         lt_prog_compiler_static_F77='-Bstatic'
12886       else
12887         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12888       fi
12889       ;;
12890
12891     mingw* | pw32* | os2*)
12892       # This hack is so that the source file can tell whether it is being
12893       # built for inclusion in a dll (and should export symbols for example).
12894       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12895       ;;
12896
12897     hpux9* | hpux10* | hpux11*)
12898       lt_prog_compiler_wl_F77='-Wl,'
12899       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12900       # not for PA HP-UX.
12901       case "$host_cpu" in
12902       hppa*64*|ia64*)
12903         # +Z the default
12904         ;;
12905       *)
12906         lt_prog_compiler_pic_F77='+Z'
12907         ;;
12908       esac
12909       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12910       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12911       ;;
12912
12913     irix5* | irix6* | nonstopux*)
12914       lt_prog_compiler_wl_F77='-Wl,'
12915       # PIC (with -KPIC) is the default.
12916       lt_prog_compiler_static_F77='-non_shared'
12917       ;;
12918
12919     newsos6)
12920       lt_prog_compiler_pic_F77='-KPIC'
12921       lt_prog_compiler_static_F77='-Bstatic'
12922       ;;
12923
12924     linux*)
12925       case $CC in
12926       icc|ecc)
12927         lt_prog_compiler_wl_F77='-Wl,'
12928         lt_prog_compiler_pic_F77='-KPIC'
12929         lt_prog_compiler_static_F77='-static'
12930         ;;
12931       ccc)
12932         lt_prog_compiler_wl_F77='-Wl,'
12933         # All Alpha code is PIC.
12934         lt_prog_compiler_static_F77='-non_shared'
12935         ;;
12936       esac
12937       ;;
12938
12939     osf3* | osf4* | osf5*)
12940       lt_prog_compiler_wl_F77='-Wl,'
12941       # All OSF/1 code is PIC.
12942       lt_prog_compiler_static_F77='-non_shared'
12943       ;;
12944
12945     sco3.2v5*)
12946       lt_prog_compiler_pic_F77='-Kpic'
12947       lt_prog_compiler_static_F77='-dn'
12948       ;;
12949
12950     solaris*)
12951       lt_prog_compiler_wl_F77='-Wl,'
12952       lt_prog_compiler_pic_F77='-KPIC'
12953       lt_prog_compiler_static_F77='-Bstatic'
12954       ;;
12955
12956     sunos4*)
12957       lt_prog_compiler_wl_F77='-Qoption ld '
12958       lt_prog_compiler_pic_F77='-PIC'
12959       lt_prog_compiler_static_F77='-Bstatic'
12960       ;;
12961
12962     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12963       lt_prog_compiler_wl_F77='-Wl,'
12964       lt_prog_compiler_pic_F77='-KPIC'
12965       lt_prog_compiler_static_F77='-Bstatic'
12966       ;;
12967
12968     sysv4*MP*)
12969       if test -d /usr/nec ;then
12970         lt_prog_compiler_pic_F77='-Kconform_pic'
12971         lt_prog_compiler_static_F77='-Bstatic'
12972       fi
12973       ;;
12974
12975     uts4*)
12976       lt_prog_compiler_pic_F77='-pic'
12977       lt_prog_compiler_static_F77='-Bstatic'
12978       ;;
12979
12980     *)
12981       lt_prog_compiler_can_build_shared_F77=no
12982       ;;
12983     esac
12984   fi
12985
12986 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12987 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12988
12989 #
12990 # Check to make sure the PIC flag actually works.
12991 #
12992 if test -n "$lt_prog_compiler_pic_F77"; then
12993   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12994 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12995 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12996   echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998   lt_prog_compiler_pic_works_F77=no
12999   ac_outfile=conftest.$ac_objext
13000    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13001    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13002    # Insert the option either (1) after the last *FLAGS variable, or
13003    # (2) before a word containing "conftest.", or (3) at the end.
13004    # Note that $ac_compile itself does not contain backslashes and begins
13005    # with a dollar sign (not a hyphen), so the echo should work correctly.
13006    # The option is referenced via a variable to avoid confusing sed.
13007    lt_compile=`echo "$ac_compile" | $SED \
13008    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13009    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13010    -e 's:$: $lt_compiler_flag:'`
13011    (eval echo "\"\$as_me:13011: $lt_compile\"" >&5)
13012    (eval "$lt_compile" 2>conftest.err)
13013    ac_status=$?
13014    cat conftest.err >&5
13015    echo "$as_me:13015: \$? = $ac_status" >&5
13016    if (exit $ac_status) && test -s "$ac_outfile"; then
13017      # The compiler can only warn and ignore the option if not recognized
13018      # So say no if there are warnings
13019      if test ! -s conftest.err; then
13020        lt_prog_compiler_pic_works_F77=yes
13021      fi
13022    fi
13023    $rm conftest*
13024
13025 fi
13026 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13027 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13028
13029 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13030     case $lt_prog_compiler_pic_F77 in
13031      "" | " "*) ;;
13032      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13033      esac
13034 else
13035     lt_prog_compiler_pic_F77=
13036      lt_prog_compiler_can_build_shared_F77=no
13037 fi
13038
13039 fi
13040 case "$host_os" in
13041   # For platforms which do not support PIC, -DPIC is meaningless:
13042   *djgpp*)
13043     lt_prog_compiler_pic_F77=
13044     ;;
13045   *)
13046     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13047     ;;
13048 esac
13049
13050 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13051 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13052 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13053   echo $ECHO_N "(cached) $ECHO_C" >&6
13054 else
13055   lt_cv_prog_compiler_c_o_F77=no
13056    $rm -r conftest 2>/dev/null
13057    mkdir conftest
13058    cd conftest
13059    mkdir out
13060    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13061
13062    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13063    # that will create temporary files in the current directory regardless of
13064    # the output directory.  Thus, making CWD read-only will cause this test
13065    # to fail, enabling locking or at least warning the user not to do parallel
13066    # builds.
13067    chmod -w .
13068
13069    lt_compiler_flag="-o out/conftest2.$ac_objext"
13070    # Insert the option either (1) after the last *FLAGS variable, or
13071    # (2) before a word containing "conftest.", or (3) at the end.
13072    # Note that $ac_compile itself does not contain backslashes and begins
13073    # with a dollar sign (not a hyphen), so the echo should work correctly.
13074    lt_compile=`echo "$ac_compile" | $SED \
13075    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13076    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13077    -e 's:$: $lt_compiler_flag:'`
13078    (eval echo "\"\$as_me:13078: $lt_compile\"" >&5)
13079    (eval "$lt_compile" 2>out/conftest.err)
13080    ac_status=$?
13081    cat out/conftest.err >&5
13082    echo "$as_me:13082: \$? = $ac_status" >&5
13083    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13084    then
13085      # The compiler can only warn and ignore the option if not recognized
13086      # So say no if there are warnings
13087      if test ! -s out/conftest.err; then
13088        lt_cv_prog_compiler_c_o_F77=yes
13089      fi
13090    fi
13091    chmod u+w .
13092    $rm conftest* out/*
13093    rmdir out
13094    cd ..
13095    rmdir conftest
13096    $rm conftest*
13097
13098 fi
13099 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13100 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13101
13102
13103 hard_links="nottested"
13104 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13105   # do not overwrite the value of need_locks provided by the user
13106   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13107 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13108   hard_links=yes
13109   $rm conftest*
13110   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13111   touch conftest.a
13112   ln conftest.a conftest.b 2>&5 || hard_links=no
13113   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13114   echo "$as_me:$LINENO: result: $hard_links" >&5
13115 echo "${ECHO_T}$hard_links" >&6
13116   if test "$hard_links" = no; then
13117     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13118 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13119     need_locks=warn
13120   fi
13121 else
13122   need_locks=no
13123 fi
13124
13125 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13126 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13127
13128   runpath_var=
13129   allow_undefined_flag_F77=
13130   enable_shared_with_static_runtimes_F77=no
13131   archive_cmds_F77=
13132   archive_expsym_cmds_F77=
13133   old_archive_From_new_cmds_F77=
13134   old_archive_from_expsyms_cmds_F77=
13135   export_dynamic_flag_spec_F77=
13136   whole_archive_flag_spec_F77=
13137   thread_safe_flag_spec_F77=
13138   hardcode_libdir_flag_spec_F77=
13139   hardcode_libdir_flag_spec_ld_F77=
13140   hardcode_libdir_separator_F77=
13141   hardcode_direct_F77=no
13142   hardcode_minus_L_F77=no
13143   hardcode_shlibpath_var_F77=unsupported
13144   link_all_deplibs_F77=unknown
13145   hardcode_automatic_F77=no
13146   module_cmds_F77=
13147   module_expsym_cmds_F77=
13148   always_export_symbols_F77=no
13149   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13150   # include_expsyms should be a list of space-separated symbols to be *always*
13151   # included in the symbol list
13152   include_expsyms_F77=
13153   # exclude_expsyms can be an extended regexp of symbols to exclude
13154   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13155   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13156   # as well as any symbol that contains `d'.
13157   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13158   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13159   # platforms (ab)use it in PIC code, but their linkers get confused if
13160   # the symbol is explicitly referenced.  Since portable code cannot
13161   # rely on this symbol name, it's probably fine to never include it in
13162   # preloaded symbol tables.
13163   extract_expsyms_cmds=
13164
13165   case $host_os in
13166   cygwin* | mingw* | pw32*)
13167     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13168     # When not using gcc, we currently assume that we are using
13169     # Microsoft Visual C++.
13170     if test "$GCC" != yes; then
13171       with_gnu_ld=no
13172     fi
13173     ;;
13174   openbsd*)
13175     with_gnu_ld=no
13176     ;;
13177   esac
13178
13179   ld_shlibs_F77=yes
13180   if test "$with_gnu_ld" = yes; then
13181     # If archive_cmds runs LD, not CC, wlarc should be empty
13182     wlarc='${wl}'
13183
13184     # See if GNU ld supports shared libraries.
13185     case $host_os in
13186     aix3* | aix4* | aix5*)
13187       # On AIX/PPC, the GNU linker is very broken
13188       if test "$host_cpu" != ia64; then
13189         ld_shlibs_F77=no
13190         cat <<EOF 1>&2
13191
13192 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13193 *** to be unable to reliably create shared libraries on AIX.
13194 *** Therefore, libtool is disabling shared libraries support.  If you
13195 *** really care for shared libraries, you may want to modify your PATH
13196 *** so that a non-GNU linker is found, and then restart.
13197
13198 EOF
13199       fi
13200       ;;
13201
13202     amigaos*)
13203       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)'
13204       hardcode_libdir_flag_spec_F77='-L$libdir'
13205       hardcode_minus_L_F77=yes
13206
13207       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13208       # that the semantics of dynamic libraries on AmigaOS, at least up
13209       # to version 4, is to share data among multiple programs linked
13210       # with the same dynamic library.  Since this doesn't match the
13211       # behavior of shared libraries on other platforms, we can't use
13212       # them.
13213       ld_shlibs_F77=no
13214       ;;
13215
13216     beos*)
13217       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13218         allow_undefined_flag_F77=unsupported
13219         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13220         # support --undefined.  This deserves some investigation.  FIXME
13221         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13222       else
13223         ld_shlibs_F77=no
13224       fi
13225       ;;
13226
13227     cygwin* | mingw* | pw32*)
13228       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13229       # as there is no search path for DLLs.
13230       hardcode_libdir_flag_spec_F77='-L$libdir'
13231       allow_undefined_flag_F77=unsupported
13232       always_export_symbols_F77=no
13233       enable_shared_with_static_runtimes_F77=yes
13234       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13235
13236       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13237         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13238         # If the export-symbols file already is a .def file (1st line
13239         # is EXPORTS), use it as is; otherwise, prepend...
13240         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13241           cp $export_symbols $output_objdir/$soname.def;
13242         else
13243           echo EXPORTS > $output_objdir/$soname.def;
13244           cat $export_symbols >> $output_objdir/$soname.def;
13245         fi~
13246         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13247       else
13248         ld_shlibs=no
13249       fi
13250       ;;
13251
13252     netbsd*)
13253       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13254         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13255         wlarc=
13256       else
13257         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13258         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13259       fi
13260       ;;
13261
13262     solaris* | sysv5*)
13263       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13264         ld_shlibs_F77=no
13265         cat <<EOF 1>&2
13266
13267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13268 *** create shared libraries on Solaris systems.  Therefore, libtool
13269 *** is disabling shared libraries support.  We urge you to upgrade GNU
13270 *** binutils to release 2.9.1 or newer.  Another option is to modify
13271 *** your PATH or compiler configuration so that the native linker is
13272 *** used, and then restart.
13273
13274 EOF
13275       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13276         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13277         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13278       else
13279         ld_shlibs_F77=no
13280       fi
13281       ;;
13282
13283     sunos4*)
13284       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13285       wlarc=
13286       hardcode_direct_F77=yes
13287       hardcode_shlibpath_var_F77=no
13288       ;;
13289
13290     *)
13291       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13292         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13294       else
13295         ld_shlibs_F77=no
13296       fi
13297       ;;
13298     esac
13299
13300     if test "$ld_shlibs_F77" = yes; then
13301       runpath_var=LD_RUN_PATH
13302       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13303       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13304       # ancient GNU ld didn't support --whole-archive et. al.
13305       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13306         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13307       else
13308         whole_archive_flag_spec_F77=
13309       fi
13310     fi
13311   else
13312     # PORTME fill in a description of your system's linker (not GNU ld)
13313     case $host_os in
13314     aix3*)
13315       allow_undefined_flag_F77=unsupported
13316       always_export_symbols_F77=yes
13317       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'
13318       # Note: this linker hardcodes the directories in LIBPATH if there
13319       # are no directories specified by -L.
13320       hardcode_minus_L_F77=yes
13321       if test "$GCC" = yes && test -z "$link_static_flag"; then
13322         # Neither direct hardcoding nor static linking is supported with a
13323         # broken collect2.
13324         hardcode_direct_F77=unsupported
13325       fi
13326       ;;
13327
13328     aix4* | aix5*)
13329       if test "$host_cpu" = ia64; then
13330         # On IA64, the linker does run time linking by default, so we don't
13331         # have to do anything special.
13332         aix_use_runtimelinking=no
13333         exp_sym_flag='-Bexport'
13334         no_entry_flag=""
13335       else
13336         # If we're using GNU nm, then we don't want the "-C" option.
13337         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13338         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13339           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'
13340         else
13341           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'
13342         fi
13343         aix_use_runtimelinking=no
13344
13345         # Test if we are trying to use run time linking or normal
13346         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13347         # need to do runtime linking.
13348         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13349           for ld_flag in $LDFLAGS; do
13350           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13351             aix_use_runtimelinking=yes
13352             break
13353           fi
13354           done
13355         esac
13356
13357         exp_sym_flag='-bexport'
13358         no_entry_flag='-bnoentry'
13359       fi
13360
13361       # When large executables or shared objects are built, AIX ld can
13362       # have problems creating the table of contents.  If linking a library
13363       # or program results in "error TOC overflow" add -mminimal-toc to
13364       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13365       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13366
13367       archive_cmds_F77=''
13368       hardcode_direct_F77=yes
13369       hardcode_libdir_separator_F77=':'
13370       link_all_deplibs_F77=yes
13371
13372       if test "$GCC" = yes; then
13373         case $host_os in aix4.012|aix4.012.*)
13374         # We only want to do this on AIX 4.2 and lower, the check
13375         # below for broken collect2 doesn't work under 4.3+
13376           collect2name=`${CC} -print-prog-name=collect2`
13377           if test -f "$collect2name" && \
13378            strings "$collect2name" | grep resolve_lib_name >/dev/null
13379           then
13380           # We have reworked collect2
13381           hardcode_direct_F77=yes
13382           else
13383           # We have old collect2
13384           hardcode_direct_F77=unsupported
13385           # It fails to find uninstalled libraries when the uninstalled
13386           # path is not listed in the libpath.  Setting hardcode_minus_L
13387           # to unsupported forces relinking
13388           hardcode_minus_L_F77=yes
13389           hardcode_libdir_flag_spec_F77='-L$libdir'
13390           hardcode_libdir_separator_F77=
13391           fi
13392         esac
13393         shared_flag='-shared'
13394       else
13395         # not using gcc
13396         if test "$host_cpu" = ia64; then
13397         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13398         # chokes on -Wl,-G. The following line is correct:
13399           shared_flag='-G'
13400         else
13401         if test "$aix_use_runtimelinking" = yes; then
13402             shared_flag='${wl}-G'
13403           else
13404             shared_flag='${wl}-bM:SRE'
13405         fi
13406         fi
13407       fi
13408
13409       # It seems that -bexpall does not export symbols beginning with
13410       # underscore (_), so it is better to generate a list of symbols to export.
13411       always_export_symbols_F77=yes
13412       if test "$aix_use_runtimelinking" = yes; then
13413         # Warning - without using the other runtime loading flags (-brtl),
13414         # -berok will link without error, but may produce a broken library.
13415         allow_undefined_flag_F77='-berok'
13416        # Determine the default libpath from the value encoded in an empty executable.
13417        cat >conftest.$ac_ext <<_ACEOF
13418       program main
13419
13420       end
13421 _ACEOF
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13424   (eval $ac_link) 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); } &&
13428          { ac_try='test -s conftest$ac_exeext'
13429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430   (eval $ac_try) 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; }; then
13434
13435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13436 }'`
13437 # Check for a 64-bit object if we didn't find anything.
13438 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; }
13439 }'`; fi
13440 else
13441   echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13443
13444 fi
13445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13447
13448        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13449         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"
13450        else
13451         if test "$host_cpu" = ia64; then
13452           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13453           allow_undefined_flag_F77="-z nodefs"
13454           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"
13455         else
13456          # Determine the default libpath from the value encoded in an empty executable.
13457          cat >conftest.$ac_ext <<_ACEOF
13458       program main
13459
13460       end
13461 _ACEOF
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464   (eval $ac_link) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } &&
13468          { ac_try='test -s conftest$ac_exeext'
13469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470   (eval $ac_try) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; }; then
13474
13475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13476 }'`
13477 # Check for a 64-bit object if we didn't find anything.
13478 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; }
13479 }'`; fi
13480 else
13481   echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 fi
13485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13486 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13487
13488          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13489           # Warning - without using the other run time loading flags,
13490           # -berok will link without error, but may produce a broken library.
13491           no_undefined_flag_F77=' ${wl}-bernotok'
13492           allow_undefined_flag_F77=' ${wl}-berok'
13493           # -bexpall does not export symbols beginning with underscore (_)
13494           always_export_symbols_F77=yes
13495           # Exported symbols can be pulled into shared objects from archives
13496           whole_archive_flag_spec_F77=' '
13497           archive_cmds_need_lc_F77=yes
13498           # This is similar to how AIX traditionally builds it's shared libraries.
13499           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'
13500         fi
13501       fi
13502       ;;
13503
13504     amigaos*)
13505       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)'
13506       hardcode_libdir_flag_spec_F77='-L$libdir'
13507       hardcode_minus_L_F77=yes
13508       # see comment about different semantics on the GNU ld section
13509       ld_shlibs_F77=no
13510       ;;
13511
13512     bsdi4*)
13513       export_dynamic_flag_spec_F77=-rdynamic
13514       ;;
13515
13516     cygwin* | mingw* | pw32*)
13517       # When not using gcc, we currently assume that we are using
13518       # Microsoft Visual C++.
13519       # hardcode_libdir_flag_spec is actually meaningless, as there is
13520       # no search path for DLLs.
13521       hardcode_libdir_flag_spec_F77=' '
13522       allow_undefined_flag_F77=unsupported
13523       # Tell ltmain to make .lib files, not .a files.
13524       libext=lib
13525       # Tell ltmain to make .dll files, not .so files.
13526       shrext=".dll"
13527       # FIXME: Setting linknames here is a bad hack.
13528       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13529       # The linker will automatically build a .lib file if we build a DLL.
13530       old_archive_From_new_cmds_F77='true'
13531       # FIXME: Should let the user specify the lib program.
13532       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13533       fix_srcfile_path='`cygpath -w "$srcfile"`'
13534       enable_shared_with_static_runtimes_F77=yes
13535       ;;
13536
13537     darwin* | rhapsody*)
13538     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13539       archive_cmds_need_lc_F77=no
13540       case "$host_os" in
13541       rhapsody* | darwin1.[012])
13542         allow_undefined_flag_F77='-undefined suppress'
13543         ;;
13544       *) # Darwin 1.3 on
13545         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13546         ;;
13547       esac
13548       # FIXME: Relying on posixy $() will cause problems for
13549       #        cross-compilation, but unfortunately the echo tests do not
13550       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13551       #        `"' quotes if we put them in here... so don't!
13552         lt_int_apple_cc_single_mod=no
13553         output_verbose_link_cmd='echo'
13554         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13555           lt_int_apple_cc_single_mod=yes
13556         fi
13557         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13558           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13559         else
13560         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'
13561       fi
13562       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13563       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13564         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13565           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}'
13566         else
13567           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}'
13568         fi
13569           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}'
13570       hardcode_direct_F77=no
13571       hardcode_automatic_F77=yes
13572       hardcode_shlibpath_var_F77=unsupported
13573       whole_archive_flag_spec_F77='-all_load $convenience'
13574       link_all_deplibs_F77=yes
13575     fi
13576       ;;
13577
13578     dgux*)
13579       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13580       hardcode_libdir_flag_spec_F77='-L$libdir'
13581       hardcode_shlibpath_var_F77=no
13582       ;;
13583
13584     freebsd1*)
13585       ld_shlibs_F77=no
13586       ;;
13587
13588     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13589     # support.  Future versions do this automatically, but an explicit c++rt0.o
13590     # does not break anything, and helps significantly (at the cost of a little
13591     # extra space).
13592     freebsd2.2*)
13593       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13594       hardcode_libdir_flag_spec_F77='-R$libdir'
13595       hardcode_direct_F77=yes
13596       hardcode_shlibpath_var_F77=no
13597       ;;
13598
13599     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13600     freebsd2*)
13601       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13602       hardcode_direct_F77=yes
13603       hardcode_minus_L_F77=yes
13604       hardcode_shlibpath_var_F77=no
13605       ;;
13606
13607     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13608     freebsd*)
13609       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13610       hardcode_libdir_flag_spec_F77='-R$libdir'
13611       hardcode_direct_F77=yes
13612       hardcode_shlibpath_var_F77=no
13613       ;;
13614
13615     hpux9*)
13616       if test "$GCC" = yes; then
13617         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'
13618       else
13619         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'
13620       fi
13621       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13622       hardcode_libdir_separator_F77=:
13623       hardcode_direct_F77=yes
13624
13625       # hardcode_minus_L: Not really in the search PATH,
13626       # but as the default location of the library.
13627       hardcode_minus_L_F77=yes
13628       export_dynamic_flag_spec_F77='${wl}-E'
13629       ;;
13630
13631     hpux10* | hpux11*)
13632       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13633         case "$host_cpu" in
13634         hppa*64*|ia64*)
13635           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13636           ;;
13637         *)
13638           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13639           ;;
13640         esac
13641       else
13642         case "$host_cpu" in
13643         hppa*64*|ia64*)
13644           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13645           ;;
13646         *)
13647           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13648           ;;
13649         esac
13650       fi
13651       if test "$with_gnu_ld" = no; then
13652         case "$host_cpu" in
13653         hppa*64*)
13654           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13655           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13656           hardcode_libdir_separator_F77=:
13657           hardcode_direct_F77=no
13658           hardcode_shlibpath_var_F77=no
13659           ;;
13660         ia64*)
13661           hardcode_libdir_flag_spec_F77='-L$libdir'
13662           hardcode_direct_F77=no
13663           hardcode_shlibpath_var_F77=no
13664
13665           # hardcode_minus_L: Not really in the search PATH,
13666           # but as the default location of the library.
13667           hardcode_minus_L_F77=yes
13668           ;;
13669         *)
13670           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13671           hardcode_libdir_separator_F77=:
13672           hardcode_direct_F77=yes
13673           export_dynamic_flag_spec_F77='${wl}-E'
13674
13675           # hardcode_minus_L: Not really in the search PATH,
13676           # but as the default location of the library.
13677           hardcode_minus_L_F77=yes
13678           ;;
13679         esac
13680       fi
13681       ;;
13682
13683     irix5* | irix6* | nonstopux*)
13684       if test "$GCC" = yes; then
13685         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'
13686       else
13687         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'
13688         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13689       fi
13690       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13691       hardcode_libdir_separator_F77=:
13692       link_all_deplibs_F77=yes
13693       ;;
13694
13695     netbsd*)
13696       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13697         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13698       else
13699         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13700       fi
13701       hardcode_libdir_flag_spec_F77='-R$libdir'
13702       hardcode_direct_F77=yes
13703       hardcode_shlibpath_var_F77=no
13704       ;;
13705
13706     newsos6)
13707       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13708       hardcode_direct_F77=yes
13709       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13710       hardcode_libdir_separator_F77=:
13711       hardcode_shlibpath_var_F77=no
13712       ;;
13713
13714     openbsd*)
13715       hardcode_direct_F77=yes
13716       hardcode_shlibpath_var_F77=no
13717       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13718         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13719         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13720         export_dynamic_flag_spec_F77='${wl}-E'
13721       else
13722        case $host_os in
13723          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13724            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13725            hardcode_libdir_flag_spec_F77='-R$libdir'
13726            ;;
13727          *)
13728            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13729            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13730            ;;
13731        esac
13732       fi
13733       ;;
13734
13735     os2*)
13736       hardcode_libdir_flag_spec_F77='-L$libdir'
13737       hardcode_minus_L_F77=yes
13738       allow_undefined_flag_F77=unsupported
13739       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'
13740       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13741       ;;
13742
13743     osf3*)
13744       if test "$GCC" = yes; then
13745         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13746         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'
13747       else
13748         allow_undefined_flag_F77=' -expect_unresolved \*'
13749         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'
13750       fi
13751       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13752       hardcode_libdir_separator_F77=:
13753       ;;
13754
13755     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13756       if test "$GCC" = yes; then
13757         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13758         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'
13759         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13760       else
13761         allow_undefined_flag_F77=' -expect_unresolved \*'
13762         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'
13763         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~
13764         $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'
13765
13766         # Both c and cxx compiler support -rpath directly
13767         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13768       fi
13769       hardcode_libdir_separator_F77=:
13770       ;;
13771
13772     sco3.2v5*)
13773       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13774       hardcode_shlibpath_var_F77=no
13775       export_dynamic_flag_spec_F77='${wl}-Bexport'
13776       runpath_var=LD_RUN_PATH
13777       hardcode_runpath_var=yes
13778       ;;
13779
13780     solaris*)
13781       no_undefined_flag_F77=' -z text'
13782       if test "$GCC" = yes; then
13783         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13784         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13785           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13786       else
13787         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13788         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13789         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13790       fi
13791       hardcode_libdir_flag_spec_F77='-R$libdir'
13792       hardcode_shlibpath_var_F77=no
13793       case $host_os in
13794       solaris2.[0-5] | solaris2.[0-5].*) ;;
13795       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13796         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13797       esac
13798       link_all_deplibs_F77=yes
13799       ;;
13800
13801     sunos4*)
13802       if test "x$host_vendor" = xsequent; then
13803         # Use $CC to link under sequent, because it throws in some extra .o
13804         # files that make .init and .fini sections work.
13805         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13806       else
13807         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13808       fi
13809       hardcode_libdir_flag_spec_F77='-L$libdir'
13810       hardcode_direct_F77=yes
13811       hardcode_minus_L_F77=yes
13812       hardcode_shlibpath_var_F77=no
13813       ;;
13814
13815     sysv4)
13816       case $host_vendor in
13817         sni)
13818           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819           hardcode_direct_F77=yes # is this really true???
13820         ;;
13821         siemens)
13822           ## LD is ld it makes a PLAMLIB
13823           ## CC just makes a GrossModule.
13824           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13825           reload_cmds_F77='$CC -r -o $output$reload_objs'
13826           hardcode_direct_F77=no
13827         ;;
13828         motorola)
13829           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13830           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13831         ;;
13832       esac
13833       runpath_var='LD_RUN_PATH'
13834       hardcode_shlibpath_var_F77=no
13835       ;;
13836
13837     sysv4.3*)
13838       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13839       hardcode_shlibpath_var_F77=no
13840       export_dynamic_flag_spec_F77='-Bexport'
13841       ;;
13842
13843     sysv4*MP*)
13844       if test -d /usr/nec; then
13845         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846         hardcode_shlibpath_var_F77=no
13847         runpath_var=LD_RUN_PATH
13848         hardcode_runpath_var=yes
13849         ld_shlibs_F77=yes
13850       fi
13851       ;;
13852
13853     sysv4.2uw2*)
13854       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13855       hardcode_direct_F77=yes
13856       hardcode_minus_L_F77=no
13857       hardcode_shlibpath_var_F77=no
13858       hardcode_runpath_var=yes
13859       runpath_var=LD_RUN_PATH
13860       ;;
13861
13862    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13863       no_undefined_flag_F77='${wl}-z ${wl}text'
13864       if test "$GCC" = yes; then
13865         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13866       else
13867         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13868       fi
13869       runpath_var='LD_RUN_PATH'
13870       hardcode_shlibpath_var_F77=no
13871       ;;
13872
13873     sysv5*)
13874       no_undefined_flag_F77=' -z text'
13875       # $CC -shared without GNU ld will not create a library from C++
13876       # object files and a static libstdc++, better avoid it by now
13877       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13879                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13880       hardcode_libdir_flag_spec_F77=
13881       hardcode_shlibpath_var_F77=no
13882       runpath_var='LD_RUN_PATH'
13883       ;;
13884
13885     uts4*)
13886       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13887       hardcode_libdir_flag_spec_F77='-L$libdir'
13888       hardcode_shlibpath_var_F77=no
13889       ;;
13890
13891     *)
13892       ld_shlibs_F77=no
13893       ;;
13894     esac
13895   fi
13896
13897 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13898 echo "${ECHO_T}$ld_shlibs_F77" >&6
13899 test "$ld_shlibs_F77" = no && can_build_shared=no
13900
13901 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13902 if test "$GCC" = yes; then
13903   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13904 fi
13905
13906 #
13907 # Do we need to explicitly link libc?
13908 #
13909 case "x$archive_cmds_need_lc_F77" in
13910 x|xyes)
13911   # Assume -lc should be added
13912   archive_cmds_need_lc_F77=yes
13913
13914   if test "$enable_shared" = yes && test "$GCC" = yes; then
13915     case $archive_cmds_F77 in
13916     *'~'*)
13917       # FIXME: we may have to deal with multi-command sequences.
13918       ;;
13919     '$CC '*)
13920       # Test whether the compiler implicitly links with -lc since on some
13921       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13922       # to ld, don't add -lc before -lgcc.
13923       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13924 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13925       $rm conftest*
13926       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13927
13928       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929   (eval $ac_compile) 2>&5
13930   ac_status=$?
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } 2>conftest.err; then
13933         soname=conftest
13934         lib=conftest
13935         libobjs=conftest.$ac_objext
13936         deplibs=
13937         wl=$lt_prog_compiler_wl_F77
13938         compiler_flags=-v
13939         linker_flags=-v
13940         verstring=
13941         output_objdir=.
13942         libname=conftest
13943         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13944         allow_undefined_flag_F77=
13945         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13946   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13947   ac_status=$?
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); }
13950         then
13951           archive_cmds_need_lc_F77=no
13952         else
13953           archive_cmds_need_lc_F77=yes
13954         fi
13955         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13956       else
13957         cat conftest.err 1>&5
13958       fi
13959       $rm conftest*
13960       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13961 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13962       ;;
13963     esac
13964   fi
13965   ;;
13966 esac
13967
13968 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13969 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13970 hardcode_action_F77=
13971 if test -n "$hardcode_libdir_flag_spec_F77" || \
13972    test -n "$runpath_var F77" || \
13973    test "X$hardcode_automatic_F77"="Xyes" ; then
13974
13975   # We can hardcode non-existant directories.
13976   if test "$hardcode_direct_F77" != no &&
13977      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13978      # have to relink, otherwise we might link with an installed library
13979      # when we should be linking with a yet-to-be-installed one
13980      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13981      test "$hardcode_minus_L_F77" != no; then
13982     # Linking always hardcodes the temporary library directory.
13983     hardcode_action_F77=relink
13984   else
13985     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13986     hardcode_action_F77=immediate
13987   fi
13988 else
13989   # We cannot hardcode anything, or else we can only hardcode existing
13990   # directories.
13991   hardcode_action_F77=unsupported
13992 fi
13993 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13994 echo "${ECHO_T}$hardcode_action_F77" >&6
13995
13996 if test "$hardcode_action_F77" = relink; then
13997   # Fast installation is not supported
13998   enable_fast_install=no
13999 elif test "$shlibpath_overrides_runpath" = yes ||
14000      test "$enable_shared" = no; then
14001   # Fast installation is not necessary
14002   enable_fast_install=needless
14003 fi
14004
14005 striplib=
14006 old_striplib=
14007 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14008 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14009 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14010   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14011   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14012   echo "$as_me:$LINENO: result: yes" >&5
14013 echo "${ECHO_T}yes" >&6
14014 else
14015 # FIXME - insert some real tests, host_os isn't really good enough
14016   case $host_os in
14017    darwin*)
14018        if test -n "$STRIP" ; then
14019          striplib="$STRIP -x"
14020          echo "$as_me:$LINENO: result: yes" >&5
14021 echo "${ECHO_T}yes" >&6
14022        else
14023   echo "$as_me:$LINENO: result: no" >&5
14024 echo "${ECHO_T}no" >&6
14025 fi
14026        ;;
14027    *)
14028   echo "$as_me:$LINENO: result: no" >&5
14029 echo "${ECHO_T}no" >&6
14030     ;;
14031   esac
14032 fi
14033
14034 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14035 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14036 library_names_spec=
14037 libname_spec='lib$name'
14038 soname_spec=
14039 shrext=".so"
14040 postinstall_cmds=
14041 postuninstall_cmds=
14042 finish_cmds=
14043 finish_eval=
14044 shlibpath_var=
14045 shlibpath_overrides_runpath=unknown
14046 version_type=none
14047 dynamic_linker="$host_os ld.so"
14048 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14049 if test "$GCC" = yes; then
14050   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14051   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14052     # if the path contains ";" then we assume it to be the separator
14053     # otherwise default to the standard path separator (i.e. ":") - it is
14054     # assumed that no part of a normal pathname contains ";" but that should
14055     # okay in the real world where ";" in dirpaths is itself problematic.
14056     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14057   else
14058     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14059   fi
14060 else
14061   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14062 fi
14063 need_lib_prefix=unknown
14064 hardcode_into_libs=no
14065
14066 # when you set need_version to no, make sure it does not cause -set_version
14067 # flags to be left without arguments
14068 need_version=unknown
14069
14070 case $host_os in
14071 aix3*)
14072   version_type=linux
14073   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14074   shlibpath_var=LIBPATH
14075
14076   # AIX 3 has no versioning support, so we append a major version to the name.
14077   soname_spec='${libname}${release}${shared_ext}$major'
14078   ;;
14079
14080 aix4* | aix5*)
14081   version_type=linux
14082   need_lib_prefix=no
14083   need_version=no
14084   hardcode_into_libs=yes
14085   if test "$host_cpu" = ia64; then
14086     # AIX 5 supports IA64
14087     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14088     shlibpath_var=LD_LIBRARY_PATH
14089   else
14090     # With GCC up to 2.95.x, collect2 would create an import file
14091     # for dependence libraries.  The import file would start with
14092     # the line `#! .'.  This would cause the generated library to
14093     # depend on `.', always an invalid library.  This was fixed in
14094     # development snapshots of GCC prior to 3.0.
14095     case $host_os in
14096       aix4 | aix4.[01] | aix4.[01].*)
14097       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14098            echo ' yes '
14099            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14100         :
14101       else
14102         can_build_shared=no
14103       fi
14104       ;;
14105     esac
14106     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14107     # soname into executable. Probably we can add versioning support to
14108     # collect2, so additional links can be useful in future.
14109     if test "$aix_use_runtimelinking" = yes; then
14110       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14111       # instead of lib<name>.a to let people know that these are not
14112       # typical AIX shared libraries.
14113       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114     else
14115       # We preserve .a as extension for shared libraries through AIX4.2
14116       # and later when we are not doing run time linking.
14117       library_names_spec='${libname}${release}.a $libname.a'
14118       soname_spec='${libname}${release}${shared_ext}$major'
14119     fi
14120     shlibpath_var=LIBPATH
14121   fi
14122   ;;
14123
14124 amigaos*)
14125   library_names_spec='$libname.ixlibrary $libname.a'
14126   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14127   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'
14128   ;;
14129
14130 beos*)
14131   library_names_spec='${libname}${shared_ext}'
14132   dynamic_linker="$host_os ld.so"
14133   shlibpath_var=LIBRARY_PATH
14134   ;;
14135
14136 bsdi4*)
14137   version_type=linux
14138   need_version=no
14139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140   soname_spec='${libname}${release}${shared_ext}$major'
14141   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14142   shlibpath_var=LD_LIBRARY_PATH
14143   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14144   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14145   # the default ld.so.conf also contains /usr/contrib/lib and
14146   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14147   # libtool to hard-code these into programs
14148   ;;
14149
14150 cygwin* | mingw* | pw32*)
14151   version_type=windows
14152   shrext=".dll"
14153   need_version=no
14154   need_lib_prefix=no
14155
14156   case $GCC,$host_os in
14157   yes,cygwin* | yes,mingw* | yes,pw32*)
14158     library_names_spec='$libname.dll.a'
14159     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14160     postinstall_cmds='base_file=`basename \${file}`~
14161       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14162       dldir=$destdir/`dirname \$dlpath`~
14163       test -d \$dldir || mkdir -p \$dldir~
14164       $install_prog $dir/$dlname \$dldir/$dlname'
14165     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14166       dlpath=$dir/\$dldll~
14167        $rm \$dlpath'
14168     shlibpath_overrides_runpath=yes
14169
14170     case $host_os in
14171     cygwin*)
14172       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14173       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14174       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14175       ;;
14176     mingw*)
14177       # MinGW DLLs use traditional 'lib' prefix
14178       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14179       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14180       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14181         # It is most probably a Windows format PATH printed by
14182         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14183         # path with ; separators, and with drive letters. We can handle the
14184         # drive letters (cygwin fileutils understands them), so leave them,
14185         # especially as we might pass files found there to a mingw objdump,
14186         # which wouldn't understand a cygwinified path. Ahh.
14187         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14188       else
14189         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14190       fi
14191       ;;
14192     pw32*)
14193       # pw32 DLLs use 'pw' prefix rather than 'lib'
14194       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14195       ;;
14196     esac
14197     ;;
14198
14199   *)
14200     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14201     ;;
14202   esac
14203   dynamic_linker='Win32 ld.exe'
14204   # FIXME: first we should search . and the directory the executable is in
14205   shlibpath_var=PATH
14206   ;;
14207
14208 darwin* | rhapsody*)
14209   dynamic_linker="$host_os dyld"
14210   version_type=darwin
14211   need_lib_prefix=no
14212   need_version=no
14213   # FIXME: Relying on posixy $() will cause problems for
14214   #        cross-compilation, but unfortunately the echo tests do not
14215   #        yet detect zsh echo's removal of \ escapes.
14216   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14217   soname_spec='${libname}${release}${major}$shared_ext'
14218   shlibpath_overrides_runpath=yes
14219   shlibpath_var=DYLD_LIBRARY_PATH
14220   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14221   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14222   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14223   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"`
14224   fi
14225   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14226   ;;
14227
14228 dgux*)
14229   version_type=linux
14230   need_lib_prefix=no
14231   need_version=no
14232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14233   soname_spec='${libname}${release}${shared_ext}$major'
14234   shlibpath_var=LD_LIBRARY_PATH
14235   ;;
14236
14237 freebsd1*)
14238   dynamic_linker=no
14239   ;;
14240
14241 freebsd*)
14242   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14243   version_type=freebsd-$objformat
14244   case $version_type in
14245     freebsd-elf*)
14246       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14247       need_version=no
14248       need_lib_prefix=no
14249       ;;
14250     freebsd-*)
14251       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14252       need_version=yes
14253       ;;
14254   esac
14255   shlibpath_var=LD_LIBRARY_PATH
14256   case $host_os in
14257   freebsd2*)
14258     shlibpath_overrides_runpath=yes
14259     ;;
14260   freebsd3.01* | freebsdelf3.01*)
14261     shlibpath_overrides_runpath=yes
14262     hardcode_into_libs=yes
14263     ;;
14264   *) # from 3.2 on
14265     shlibpath_overrides_runpath=no
14266     hardcode_into_libs=yes
14267     ;;
14268   esac
14269   ;;
14270
14271 gnu*)
14272   version_type=linux
14273   need_lib_prefix=no
14274   need_version=no
14275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14276   soname_spec='${libname}${release}${shared_ext}$major'
14277   shlibpath_var=LD_LIBRARY_PATH
14278   hardcode_into_libs=yes
14279   ;;
14280
14281 hpux9* | hpux10* | hpux11*)
14282   # Give a soname corresponding to the major version so that dld.sl refuses to
14283   # link against other versions.
14284   version_type=sunos
14285   need_lib_prefix=no
14286   need_version=no
14287   case "$host_cpu" in
14288   ia64*)
14289     shrext='.so'
14290     hardcode_into_libs=yes
14291     dynamic_linker="$host_os dld.so"
14292     shlibpath_var=LD_LIBRARY_PATH
14293     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14295     soname_spec='${libname}${release}${shared_ext}$major'
14296     if test "X$HPUX_IA64_MODE" = X32; then
14297       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14298     else
14299       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14300     fi
14301     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14302     ;;
14303    hppa*64*)
14304      shrext='.sl'
14305      hardcode_into_libs=yes
14306      dynamic_linker="$host_os dld.sl"
14307      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14308      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14309      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14310      soname_spec='${libname}${release}${shared_ext}$major'
14311      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14312      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14313      ;;
14314    *)
14315     shrext='.sl'
14316     dynamic_linker="$host_os dld.sl"
14317     shlibpath_var=SHLIB_PATH
14318     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320     soname_spec='${libname}${release}${shared_ext}$major'
14321     ;;
14322   esac
14323   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14324   postinstall_cmds='chmod 555 $lib'
14325   ;;
14326
14327 irix5* | irix6* | nonstopux*)
14328   case $host_os in
14329     nonstopux*) version_type=nonstopux ;;
14330     *)
14331         if test "$lt_cv_prog_gnu_ld" = yes; then
14332                 version_type=linux
14333         else
14334                 version_type=irix
14335         fi ;;
14336   esac
14337   need_lib_prefix=no
14338   need_version=no
14339   soname_spec='${libname}${release}${shared_ext}$major'
14340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14341   case $host_os in
14342   irix5* | nonstopux*)
14343     libsuff= shlibsuff=
14344     ;;
14345   *)
14346     case $LD in # libtool.m4 will add one of these switches to LD
14347     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14348       libsuff= shlibsuff= libmagic=32-bit;;
14349     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14350       libsuff=32 shlibsuff=N32 libmagic=N32;;
14351     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14352       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14353     *) libsuff= shlibsuff= libmagic=never-match;;
14354     esac
14355     ;;
14356   esac
14357   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14358   shlibpath_overrides_runpath=no
14359   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14360   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14361   hardcode_into_libs=yes
14362   ;;
14363
14364 # No shared lib support for Linux oldld, aout, or coff.
14365 linux*oldld* | linux*aout* | linux*coff*)
14366   dynamic_linker=no
14367   ;;
14368
14369 # This must be Linux ELF.
14370 linux*)
14371   version_type=linux
14372   need_lib_prefix=no
14373   need_version=no
14374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375   soname_spec='${libname}${release}${shared_ext}$major'
14376   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14377   shlibpath_var=LD_LIBRARY_PATH
14378   shlibpath_overrides_runpath=no
14379   # This implies no fast_install, which is unacceptable.
14380   # Some rework will be needed to allow for fast_install
14381   # before this can be enabled.
14382   hardcode_into_libs=yes
14383
14384   # We used to test for /lib/ld.so.1 and disable shared libraries on
14385   # powerpc, because MkLinux only supported shared libraries with the
14386   # GNU dynamic linker.  Since this was broken with cross compilers,
14387   # most powerpc-linux boxes support dynamic linking these days and
14388   # people can always --disable-shared, the test was removed, and we
14389   # assume the GNU/Linux dynamic linker is in use.
14390   dynamic_linker='GNU/Linux ld.so'
14391   ;;
14392
14393 netbsd*)
14394   version_type=sunos
14395   need_lib_prefix=no
14396   need_version=no
14397   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14399     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14400     dynamic_linker='NetBSD (a.out) ld.so'
14401   else
14402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14403     soname_spec='${libname}${release}${shared_ext}$major'
14404     dynamic_linker='NetBSD ld.elf_so'
14405   fi
14406   shlibpath_var=LD_LIBRARY_PATH
14407   shlibpath_overrides_runpath=yes
14408   hardcode_into_libs=yes
14409   ;;
14410
14411 newsos6)
14412   version_type=linux
14413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414   shlibpath_var=LD_LIBRARY_PATH
14415   shlibpath_overrides_runpath=yes
14416   ;;
14417
14418 nto-qnx)
14419   version_type=linux
14420   need_lib_prefix=no
14421   need_version=no
14422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14423   soname_spec='${libname}${release}${shared_ext}$major'
14424   shlibpath_var=LD_LIBRARY_PATH
14425   shlibpath_overrides_runpath=yes
14426   ;;
14427
14428 openbsd*)
14429   version_type=sunos
14430   need_lib_prefix=no
14431   need_version=no
14432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14433   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14434   shlibpath_var=LD_LIBRARY_PATH
14435   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14436     case $host_os in
14437       openbsd2.[89] | openbsd2.[89].*)
14438         shlibpath_overrides_runpath=no
14439         ;;
14440       *)
14441         shlibpath_overrides_runpath=yes
14442         ;;
14443       esac
14444   else
14445     shlibpath_overrides_runpath=yes
14446   fi
14447   ;;
14448
14449 os2*)
14450   libname_spec='$name'
14451   shrext=".dll"
14452   need_lib_prefix=no
14453   library_names_spec='$libname${shared_ext} $libname.a'
14454   dynamic_linker='OS/2 ld.exe'
14455   shlibpath_var=LIBPATH
14456   ;;
14457
14458 osf3* | osf4* | osf5*)
14459   version_type=osf
14460   need_lib_prefix=no
14461   need_version=no
14462   soname_spec='${libname}${release}${shared_ext}$major'
14463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464   shlibpath_var=LD_LIBRARY_PATH
14465   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14466   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14467   ;;
14468
14469 sco3.2v5*)
14470   version_type=osf
14471   soname_spec='${libname}${release}${shared_ext}$major'
14472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473   shlibpath_var=LD_LIBRARY_PATH
14474   ;;
14475
14476 solaris*)
14477   version_type=linux
14478   need_lib_prefix=no
14479   need_version=no
14480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481   soname_spec='${libname}${release}${shared_ext}$major'
14482   shlibpath_var=LD_LIBRARY_PATH
14483   shlibpath_overrides_runpath=yes
14484   hardcode_into_libs=yes
14485   # ldd complains unless libraries are executable
14486   postinstall_cmds='chmod +x $lib'
14487   ;;
14488
14489 sunos4*)
14490   version_type=sunos
14491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14492   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14493   shlibpath_var=LD_LIBRARY_PATH
14494   shlibpath_overrides_runpath=yes
14495   if test "$with_gnu_ld" = yes; then
14496     need_lib_prefix=no
14497   fi
14498   need_version=yes
14499   ;;
14500
14501 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14502   version_type=linux
14503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504   soname_spec='${libname}${release}${shared_ext}$major'
14505   shlibpath_var=LD_LIBRARY_PATH
14506   case $host_vendor in
14507     sni)
14508       shlibpath_overrides_runpath=no
14509       need_lib_prefix=no
14510       export_dynamic_flag_spec='${wl}-Blargedynsym'
14511       runpath_var=LD_RUN_PATH
14512       ;;
14513     siemens)
14514       need_lib_prefix=no
14515       ;;
14516     motorola)
14517       need_lib_prefix=no
14518       need_version=no
14519       shlibpath_overrides_runpath=no
14520       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14521       ;;
14522   esac
14523   ;;
14524
14525 sysv4*MP*)
14526   if test -d /usr/nec ;then
14527     version_type=linux
14528     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14529     soname_spec='$libname${shared_ext}.$major'
14530     shlibpath_var=LD_LIBRARY_PATH
14531   fi
14532   ;;
14533
14534 uts4*)
14535   version_type=linux
14536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14537   soname_spec='${libname}${release}${shared_ext}$major'
14538   shlibpath_var=LD_LIBRARY_PATH
14539   ;;
14540
14541 *)
14542   dynamic_linker=no
14543   ;;
14544 esac
14545 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14546 echo "${ECHO_T}$dynamic_linker" >&6
14547 test "$dynamic_linker" = no && can_build_shared=no
14548
14549
14550 # The else clause should only fire when bootstrapping the
14551 # libtool distribution, otherwise you forgot to ship ltmain.sh
14552 # with your package, and you will get complaints that there are
14553 # no rules to generate ltmain.sh.
14554 if test -f "$ltmain"; then
14555   # See if we are running on zsh, and set the options which allow our commands through
14556   # without removal of \ escapes.
14557   if test -n "${ZSH_VERSION+set}" ; then
14558     setopt NO_GLOB_SUBST
14559   fi
14560   # Now quote all the things that may contain metacharacters while being
14561   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14562   # variables and quote the copies for generation of the libtool script.
14563   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14564     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14565     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14566     deplibs_check_method reload_flag reload_cmds need_locks \
14567     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14568     lt_cv_sys_global_symbol_to_c_name_address \
14569     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14570     old_postinstall_cmds old_postuninstall_cmds \
14571     compiler_F77 \
14572     CC_F77 \
14573     LD_F77 \
14574     lt_prog_compiler_wl_F77 \
14575     lt_prog_compiler_pic_F77 \
14576     lt_prog_compiler_static_F77 \
14577     lt_prog_compiler_no_builtin_flag_F77 \
14578     export_dynamic_flag_spec_F77 \
14579     thread_safe_flag_spec_F77 \
14580     whole_archive_flag_spec_F77 \
14581     enable_shared_with_static_runtimes_F77 \
14582     old_archive_cmds_F77 \
14583     old_archive_from_new_cmds_F77 \
14584     predep_objects_F77 \
14585     postdep_objects_F77 \
14586     predeps_F77 \
14587     postdeps_F77 \
14588     compiler_lib_search_path_F77 \
14589     archive_cmds_F77 \
14590     archive_expsym_cmds_F77 \
14591     postinstall_cmds_F77 \
14592     postuninstall_cmds_F77 \
14593     old_archive_from_expsyms_cmds_F77 \
14594     allow_undefined_flag_F77 \
14595     no_undefined_flag_F77 \
14596     export_symbols_cmds_F77 \
14597     hardcode_libdir_flag_spec_F77 \
14598     hardcode_libdir_flag_spec_ld_F77 \
14599     hardcode_libdir_separator_F77 \
14600     hardcode_automatic_F77 \
14601     module_cmds_F77 \
14602     module_expsym_cmds_F77 \
14603     lt_cv_prog_compiler_c_o_F77 \
14604     exclude_expsyms_F77 \
14605     include_expsyms_F77; do
14606
14607     case $var in
14608     old_archive_cmds_F77 | \
14609     old_archive_from_new_cmds_F77 | \
14610     archive_cmds_F77 | \
14611     archive_expsym_cmds_F77 | \
14612     module_cmds_F77 | \
14613     module_expsym_cmds_F77 | \
14614     old_archive_from_expsyms_cmds_F77 | \
14615     export_symbols_cmds_F77 | \
14616     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14617     postinstall_cmds | postuninstall_cmds | \
14618     old_postinstall_cmds | old_postuninstall_cmds | \
14619     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14620       # Double-quote double-evaled strings.
14621       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14622       ;;
14623     *)
14624       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14625       ;;
14626     esac
14627   done
14628
14629   case $lt_echo in
14630   *'\$0 --fallback-echo"')
14631     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14632     ;;
14633   esac
14634
14635 cfgfile="$ofile"
14636
14637   cat <<__EOF__ >> "$cfgfile"
14638 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14639
14640 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14641
14642 # Shell to use when invoking shell scripts.
14643 SHELL=$lt_SHELL
14644
14645 # Whether or not to build shared libraries.
14646 build_libtool_libs=$enable_shared
14647
14648 # Whether or not to build static libraries.
14649 build_old_libs=$enable_static
14650
14651 # Whether or not to add -lc for building shared libraries.
14652 build_libtool_need_lc=$archive_cmds_need_lc_F77
14653
14654 # Whether or not to disallow shared libs when runtime libs are static
14655 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14656
14657 # Whether or not to optimize for fast installation.
14658 fast_install=$enable_fast_install
14659
14660 # The host system.
14661 host_alias=$host_alias
14662 host=$host
14663
14664 # An echo program that does not interpret backslashes.
14665 echo=$lt_echo
14666
14667 # The archiver.
14668 AR=$lt_AR
14669 AR_FLAGS=$lt_AR_FLAGS
14670
14671 # A C compiler.
14672 LTCC=$lt_LTCC
14673
14674 # A language-specific compiler.
14675 CC=$lt_compiler_F77
14676
14677 # Is the compiler the GNU C compiler?
14678 with_gcc=$GCC_F77
14679
14680 # An ERE matcher.
14681 EGREP=$lt_EGREP
14682
14683 # The linker used to build libraries.
14684 LD=$lt_LD_F77
14685
14686 # Whether we need hard or soft links.
14687 LN_S=$lt_LN_S
14688
14689 # A BSD-compatible nm program.
14690 NM=$lt_NM
14691
14692 # A symbol stripping program
14693 STRIP=$STRIP
14694
14695 # Used to examine libraries when file_magic_cmd begins "file"
14696 MAGIC_CMD=$MAGIC_CMD
14697
14698 # Used on cygwin: DLL creation program.
14699 DLLTOOL="$DLLTOOL"
14700
14701 # Used on cygwin: object dumper.
14702 OBJDUMP="$OBJDUMP"
14703
14704 # Used on cygwin: assembler.
14705 AS="$AS"
14706
14707 # The name of the directory that contains temporary libtool files.
14708 objdir=$objdir
14709
14710 # How to create reloadable object files.
14711 reload_flag=$lt_reload_flag
14712 reload_cmds=$lt_reload_cmds
14713
14714 # How to pass a linker flag through the compiler.
14715 wl=$lt_lt_prog_compiler_wl_F77
14716
14717 # Object file suffix (normally "o").
14718 objext="$ac_objext"
14719
14720 # Old archive suffix (normally "a").
14721 libext="$libext"
14722
14723 # Shared library suffix (normally ".so").
14724 shrext='$shrext'
14725
14726 # Executable file suffix (normally "").
14727 exeext="$exeext"
14728
14729 # Additional compiler flags for building library objects.
14730 pic_flag=$lt_lt_prog_compiler_pic_F77
14731 pic_mode=$pic_mode
14732
14733 # What is the maximum length of a command?
14734 max_cmd_len=$lt_cv_sys_max_cmd_len
14735
14736 # Does compiler simultaneously support -c and -o options?
14737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14738
14739 # Must we lock files when doing compilation ?
14740 need_locks=$lt_need_locks
14741
14742 # Do we need the lib prefix for modules?
14743 need_lib_prefix=$need_lib_prefix
14744
14745 # Do we need a version for libraries?
14746 need_version=$need_version
14747
14748 # Whether dlopen is supported.
14749 dlopen_support=$enable_dlopen
14750
14751 # Whether dlopen of programs is supported.
14752 dlopen_self=$enable_dlopen_self
14753
14754 # Whether dlopen of statically linked programs is supported.
14755 dlopen_self_static=$enable_dlopen_self_static
14756
14757 # Compiler flag to prevent dynamic linking.
14758 link_static_flag=$lt_lt_prog_compiler_static_F77
14759
14760 # Compiler flag to turn off builtin functions.
14761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14762
14763 # Compiler flag to allow reflexive dlopens.
14764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14765
14766 # Compiler flag to generate shared objects directly from archives.
14767 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14768
14769 # Compiler flag to generate thread-safe objects.
14770 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14771
14772 # Library versioning type.
14773 version_type=$version_type
14774
14775 # Format of library name prefix.
14776 libname_spec=$lt_libname_spec
14777
14778 # List of archive names.  First name is the real one, the rest are links.
14779 # The last name is the one that the linker finds with -lNAME.
14780 library_names_spec=$lt_library_names_spec
14781
14782 # The coded name of the library, if different from the real name.
14783 soname_spec=$lt_soname_spec
14784
14785 # Commands used to build and install an old-style archive.
14786 RANLIB=$lt_RANLIB
14787 old_archive_cmds=$lt_old_archive_cmds_F77
14788 old_postinstall_cmds=$lt_old_postinstall_cmds
14789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14790
14791 # Create an old-style archive from a shared archive.
14792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14793
14794 # Create a temporary old-style archive to link instead of a shared archive.
14795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14796
14797 # Commands used to build and install a shared archive.
14798 archive_cmds=$lt_archive_cmds_F77
14799 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14800 postinstall_cmds=$lt_postinstall_cmds
14801 postuninstall_cmds=$lt_postuninstall_cmds
14802
14803 # Commands used to build a loadable module (assumed same as above if empty)
14804 module_cmds=$lt_module_cmds_F77
14805 module_expsym_cmds=$lt_module_expsym_cmds_F77
14806
14807 # Commands to strip libraries.
14808 old_striplib=$lt_old_striplib
14809 striplib=$lt_striplib
14810
14811 # Dependencies to place before the objects being linked to create a
14812 # shared library.
14813 predep_objects=$lt_predep_objects_F77
14814
14815 # Dependencies to place after the objects being linked to create a
14816 # shared library.
14817 postdep_objects=$lt_postdep_objects_F77
14818
14819 # Dependencies to place before the objects being linked to create a
14820 # shared library.
14821 predeps=$lt_predeps_F77
14822
14823 # Dependencies to place after the objects being linked to create a
14824 # shared library.
14825 postdeps=$lt_postdeps_F77
14826
14827 # The library search path used internally by the compiler when linking
14828 # a shared library.
14829 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14830
14831 # Method to check whether dependent libraries are shared objects.
14832 deplibs_check_method=$lt_deplibs_check_method
14833
14834 # Command to use when deplibs_check_method == file_magic.
14835 file_magic_cmd=$lt_file_magic_cmd
14836
14837 # Flag that allows shared libraries with undefined symbols to be built.
14838 allow_undefined_flag=$lt_allow_undefined_flag_F77
14839
14840 # Flag that forces no undefined symbols.
14841 no_undefined_flag=$lt_no_undefined_flag_F77
14842
14843 # Commands used to finish a libtool library installation in a directory.
14844 finish_cmds=$lt_finish_cmds
14845
14846 # Same as above, but a single script fragment to be evaled but not shown.
14847 finish_eval=$lt_finish_eval
14848
14849 # Take the output of nm and produce a listing of raw symbols and C names.
14850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14851
14852 # Transform the output of nm in a proper C declaration
14853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14854
14855 # Transform the output of nm in a C name address pair
14856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14857
14858 # This is the shared library runtime path variable.
14859 runpath_var=$runpath_var
14860
14861 # This is the shared library path variable.
14862 shlibpath_var=$shlibpath_var
14863
14864 # Is shlibpath searched before the hard-coded library search path?
14865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14866
14867 # How to hardcode a shared library path into an executable.
14868 hardcode_action=$hardcode_action_F77
14869
14870 # Whether we should hardcode library paths into libraries.
14871 hardcode_into_libs=$hardcode_into_libs
14872
14873 # Flag to hardcode \$libdir into a binary during linking.
14874 # This must work even if \$libdir does not exist.
14875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14876
14877 # If ld is used when linking, flag to hardcode \$libdir into
14878 # a binary during linking. This must work even if \$libdir does
14879 # not exist.
14880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14881
14882 # Whether we need a single -rpath flag with a separated argument.
14883 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14884
14885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14886 # resulting binary.
14887 hardcode_direct=$hardcode_direct_F77
14888
14889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14890 # resulting binary.
14891 hardcode_minus_L=$hardcode_minus_L_F77
14892
14893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14894 # the resulting binary.
14895 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14896
14897 # Set to yes if building a shared library automatically hardcodes DIR into the library
14898 # and all subsequent libraries and executables linked against it.
14899 hardcode_automatic=$hardcode_automatic_F77
14900
14901 # Variables whose values should be saved in libtool wrapper scripts and
14902 # restored at relink time.
14903 variables_saved_for_relink="$variables_saved_for_relink"
14904
14905 # Whether libtool must link a program against all its dependency libraries.
14906 link_all_deplibs=$link_all_deplibs_F77
14907
14908 # Compile-time system search path for libraries
14909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14910
14911 # Run-time system search path for libraries
14912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14913
14914 # Fix the shell variable \$srcfile for the compiler.
14915 fix_srcfile_path="$fix_srcfile_path_F77"
14916
14917 # Set to yes if exported symbols are required.
14918 always_export_symbols=$always_export_symbols_F77
14919
14920 # The commands to list exported symbols.
14921 export_symbols_cmds=$lt_export_symbols_cmds_F77
14922
14923 # The commands to extract the exported symbol list from a shared archive.
14924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14925
14926 # Symbols that should not be listed in the preloaded symbols.
14927 exclude_expsyms=$lt_exclude_expsyms_F77
14928
14929 # Symbols that must always be exported.
14930 include_expsyms=$lt_include_expsyms_F77
14931
14932 # ### END LIBTOOL TAG CONFIG: $tagname
14933
14934 __EOF__
14935
14936
14937 else
14938   # If there is no Makefile yet, we rely on a make rule to execute
14939   # `config.status --recheck' to rerun these tests and create the
14940   # libtool script then.
14941   test -f Makefile && make "$ltmain"
14942 fi
14943
14944
14945 ac_ext=c
14946 ac_cpp='$CPP $CPPFLAGS'
14947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14950
14951 CC="$lt_save_CC"
14952
14953         else
14954           tagname=""
14955         fi
14956         ;;
14957
14958       GCJ)
14959         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14960
14961
14962
14963 # Source file extension for Java test sources.
14964 ac_ext=java
14965
14966 # Object file extension for compiled Java test sources.
14967 objext=o
14968 objext_GCJ=$objext
14969
14970 # Code to be used in simple compile tests
14971 lt_simple_compile_test_code="class foo {}\n"
14972
14973 # Code to be used in simple link tests
14974 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14975
14976 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14977
14978 # If no C compiler was specified, use CC.
14979 LTCC=${LTCC-"$CC"}
14980
14981 # Allow CC to be a program name with arguments.
14982 compiler=$CC
14983
14984
14985 # Allow CC to be a program name with arguments.
14986 lt_save_CC="$CC"
14987 CC=${GCJ-"gcj"}
14988 compiler=$CC
14989 compiler_GCJ=$CC
14990
14991 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14992 archive_cmds_need_lc_GCJ=no
14993
14994 ## CAVEAT EMPTOR:
14995 ## There is no encapsulation within the following macros, do not change
14996 ## the running order or otherwise move them around unless you know exactly
14997 ## what you are doing...
14998
14999 lt_prog_compiler_no_builtin_flag_GCJ=
15000
15001 if test "$GCC" = yes; then
15002   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15003
15004   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15005 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15006 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15007   echo $ECHO_N "(cached) $ECHO_C" >&6
15008 else
15009   lt_cv_prog_compiler_rtti_exceptions=no
15010   ac_outfile=conftest.$ac_objext
15011    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15012    lt_compiler_flag="-fno-rtti -fno-exceptions"
15013    # Insert the option either (1) after the last *FLAGS variable, or
15014    # (2) before a word containing "conftest.", or (3) at the end.
15015    # Note that $ac_compile itself does not contain backslashes and begins
15016    # with a dollar sign (not a hyphen), so the echo should work correctly.
15017    # The option is referenced via a variable to avoid confusing sed.
15018    lt_compile=`echo "$ac_compile" | $SED \
15019    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15020    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15021    -e 's:$: $lt_compiler_flag:'`
15022    (eval echo "\"\$as_me:15022: $lt_compile\"" >&5)
15023    (eval "$lt_compile" 2>conftest.err)
15024    ac_status=$?
15025    cat conftest.err >&5
15026    echo "$as_me:15026: \$? = $ac_status" >&5
15027    if (exit $ac_status) && test -s "$ac_outfile"; then
15028      # The compiler can only warn and ignore the option if not recognized
15029      # So say no if there are warnings
15030      if test ! -s conftest.err; then
15031        lt_cv_prog_compiler_rtti_exceptions=yes
15032      fi
15033    fi
15034    $rm conftest*
15035
15036 fi
15037 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15038 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15039
15040 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15041     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15042 else
15043     :
15044 fi
15045
15046 fi
15047
15048 lt_prog_compiler_wl_GCJ=
15049 lt_prog_compiler_pic_GCJ=
15050 lt_prog_compiler_static_GCJ=
15051
15052 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15053 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15054
15055   if test "$GCC" = yes; then
15056     lt_prog_compiler_wl_GCJ='-Wl,'
15057     lt_prog_compiler_static_GCJ='-static'
15058
15059     case $host_os in
15060       aix*)
15061       # All AIX code is PIC.
15062       if test "$host_cpu" = ia64; then
15063         # AIX 5 now supports IA64 processor
15064         lt_prog_compiler_static_GCJ='-Bstatic'
15065       fi
15066       ;;
15067
15068     amigaos*)
15069       # FIXME: we need at least 68020 code to build shared libraries, but
15070       # adding the `-m68020' flag to GCC prevents building anything better,
15071       # like `-m68040'.
15072       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15073       ;;
15074
15075     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15076       # PIC is the default for these OSes.
15077       ;;
15078
15079     mingw* | pw32* | os2*)
15080       # This hack is so that the source file can tell whether it is being
15081       # built for inclusion in a dll (and should export symbols for example).
15082       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15083       ;;
15084
15085     darwin* | rhapsody*)
15086       # PIC is the default on this platform
15087       # Common symbols not allowed in MH_DYLIB files
15088       lt_prog_compiler_pic_GCJ='-fno-common'
15089       ;;
15090
15091     msdosdjgpp*)
15092       # Just because we use GCC doesn't mean we suddenly get shared libraries
15093       # on systems that don't support them.
15094       lt_prog_compiler_can_build_shared_GCJ=no
15095       enable_shared=no
15096       ;;
15097
15098     sysv4*MP*)
15099       if test -d /usr/nec; then
15100         lt_prog_compiler_pic_GCJ=-Kconform_pic
15101       fi
15102       ;;
15103
15104     hpux*)
15105       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15106       # not for PA HP-UX.
15107       case "$host_cpu" in
15108       hppa*64*|ia64*)
15109         # +Z the default
15110         ;;
15111       *)
15112         lt_prog_compiler_pic_GCJ='-fPIC'
15113         ;;
15114       esac
15115       ;;
15116
15117     *)
15118       lt_prog_compiler_pic_GCJ='-fPIC'
15119       ;;
15120     esac
15121   else
15122     # PORTME Check for flag to pass linker flags through the system compiler.
15123     case $host_os in
15124     aix*)
15125       lt_prog_compiler_wl_GCJ='-Wl,'
15126       if test "$host_cpu" = ia64; then
15127         # AIX 5 now supports IA64 processor
15128         lt_prog_compiler_static_GCJ='-Bstatic'
15129       else
15130         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15131       fi
15132       ;;
15133
15134     mingw* | pw32* | os2*)
15135       # This hack is so that the source file can tell whether it is being
15136       # built for inclusion in a dll (and should export symbols for example).
15137       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15138       ;;
15139
15140     hpux9* | hpux10* | hpux11*)
15141       lt_prog_compiler_wl_GCJ='-Wl,'
15142       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15143       # not for PA HP-UX.
15144       case "$host_cpu" in
15145       hppa*64*|ia64*)
15146         # +Z the default
15147         ;;
15148       *)
15149         lt_prog_compiler_pic_GCJ='+Z'
15150         ;;
15151       esac
15152       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15153       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15154       ;;
15155
15156     irix5* | irix6* | nonstopux*)
15157       lt_prog_compiler_wl_GCJ='-Wl,'
15158       # PIC (with -KPIC) is the default.
15159       lt_prog_compiler_static_GCJ='-non_shared'
15160       ;;
15161
15162     newsos6)
15163       lt_prog_compiler_pic_GCJ='-KPIC'
15164       lt_prog_compiler_static_GCJ='-Bstatic'
15165       ;;
15166
15167     linux*)
15168       case $CC in
15169       icc|ecc)
15170         lt_prog_compiler_wl_GCJ='-Wl,'
15171         lt_prog_compiler_pic_GCJ='-KPIC'
15172         lt_prog_compiler_static_GCJ='-static'
15173         ;;
15174       ccc)
15175         lt_prog_compiler_wl_GCJ='-Wl,'
15176         # All Alpha code is PIC.
15177         lt_prog_compiler_static_GCJ='-non_shared'
15178         ;;
15179       esac
15180       ;;
15181
15182     osf3* | osf4* | osf5*)
15183       lt_prog_compiler_wl_GCJ='-Wl,'
15184       # All OSF/1 code is PIC.
15185       lt_prog_compiler_static_GCJ='-non_shared'
15186       ;;
15187
15188     sco3.2v5*)
15189       lt_prog_compiler_pic_GCJ='-Kpic'
15190       lt_prog_compiler_static_GCJ='-dn'
15191       ;;
15192
15193     solaris*)
15194       lt_prog_compiler_wl_GCJ='-Wl,'
15195       lt_prog_compiler_pic_GCJ='-KPIC'
15196       lt_prog_compiler_static_GCJ='-Bstatic'
15197       ;;
15198
15199     sunos4*)
15200       lt_prog_compiler_wl_GCJ='-Qoption ld '
15201       lt_prog_compiler_pic_GCJ='-PIC'
15202       lt_prog_compiler_static_GCJ='-Bstatic'
15203       ;;
15204
15205     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15206       lt_prog_compiler_wl_GCJ='-Wl,'
15207       lt_prog_compiler_pic_GCJ='-KPIC'
15208       lt_prog_compiler_static_GCJ='-Bstatic'
15209       ;;
15210
15211     sysv4*MP*)
15212       if test -d /usr/nec ;then
15213         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15214         lt_prog_compiler_static_GCJ='-Bstatic'
15215       fi
15216       ;;
15217
15218     uts4*)
15219       lt_prog_compiler_pic_GCJ='-pic'
15220       lt_prog_compiler_static_GCJ='-Bstatic'
15221       ;;
15222
15223     *)
15224       lt_prog_compiler_can_build_shared_GCJ=no
15225       ;;
15226     esac
15227   fi
15228
15229 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15230 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15231
15232 #
15233 # Check to make sure the PIC flag actually works.
15234 #
15235 if test -n "$lt_prog_compiler_pic_GCJ"; then
15236   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15237 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15238 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15239   echo $ECHO_N "(cached) $ECHO_C" >&6
15240 else
15241   lt_prog_compiler_pic_works_GCJ=no
15242   ac_outfile=conftest.$ac_objext
15243    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15244    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15245    # Insert the option either (1) after the last *FLAGS variable, or
15246    # (2) before a word containing "conftest.", or (3) at the end.
15247    # Note that $ac_compile itself does not contain backslashes and begins
15248    # with a dollar sign (not a hyphen), so the echo should work correctly.
15249    # The option is referenced via a variable to avoid confusing sed.
15250    lt_compile=`echo "$ac_compile" | $SED \
15251    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15253    -e 's:$: $lt_compiler_flag:'`
15254    (eval echo "\"\$as_me:15254: $lt_compile\"" >&5)
15255    (eval "$lt_compile" 2>conftest.err)
15256    ac_status=$?
15257    cat conftest.err >&5
15258    echo "$as_me:15258: \$? = $ac_status" >&5
15259    if (exit $ac_status) && test -s "$ac_outfile"; then
15260      # The compiler can only warn and ignore the option if not recognized
15261      # So say no if there are warnings
15262      if test ! -s conftest.err; then
15263        lt_prog_compiler_pic_works_GCJ=yes
15264      fi
15265    fi
15266    $rm conftest*
15267
15268 fi
15269 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15270 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15271
15272 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15273     case $lt_prog_compiler_pic_GCJ in
15274      "" | " "*) ;;
15275      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15276      esac
15277 else
15278     lt_prog_compiler_pic_GCJ=
15279      lt_prog_compiler_can_build_shared_GCJ=no
15280 fi
15281
15282 fi
15283 case "$host_os" in
15284   # For platforms which do not support PIC, -DPIC is meaningless:
15285   *djgpp*)
15286     lt_prog_compiler_pic_GCJ=
15287     ;;
15288   *)
15289     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15290     ;;
15291 esac
15292
15293 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15294 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15295 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15296   echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298   lt_cv_prog_compiler_c_o_GCJ=no
15299    $rm -r conftest 2>/dev/null
15300    mkdir conftest
15301    cd conftest
15302    mkdir out
15303    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15304
15305    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15306    # that will create temporary files in the current directory regardless of
15307    # the output directory.  Thus, making CWD read-only will cause this test
15308    # to fail, enabling locking or at least warning the user not to do parallel
15309    # builds.
15310    chmod -w .
15311
15312    lt_compiler_flag="-o out/conftest2.$ac_objext"
15313    # Insert the option either (1) after the last *FLAGS variable, or
15314    # (2) before a word containing "conftest.", or (3) at the end.
15315    # Note that $ac_compile itself does not contain backslashes and begins
15316    # with a dollar sign (not a hyphen), so the echo should work correctly.
15317    lt_compile=`echo "$ac_compile" | $SED \
15318    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15319    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15320    -e 's:$: $lt_compiler_flag:'`
15321    (eval echo "\"\$as_me:15321: $lt_compile\"" >&5)
15322    (eval "$lt_compile" 2>out/conftest.err)
15323    ac_status=$?
15324    cat out/conftest.err >&5
15325    echo "$as_me:15325: \$? = $ac_status" >&5
15326    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15327    then
15328      # The compiler can only warn and ignore the option if not recognized
15329      # So say no if there are warnings
15330      if test ! -s out/conftest.err; then
15331        lt_cv_prog_compiler_c_o_GCJ=yes
15332      fi
15333    fi
15334    chmod u+w .
15335    $rm conftest* out/*
15336    rmdir out
15337    cd ..
15338    rmdir conftest
15339    $rm conftest*
15340
15341 fi
15342 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15343 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15344
15345
15346 hard_links="nottested"
15347 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15348   # do not overwrite the value of need_locks provided by the user
15349   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15350 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15351   hard_links=yes
15352   $rm conftest*
15353   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15354   touch conftest.a
15355   ln conftest.a conftest.b 2>&5 || hard_links=no
15356   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15357   echo "$as_me:$LINENO: result: $hard_links" >&5
15358 echo "${ECHO_T}$hard_links" >&6
15359   if test "$hard_links" = no; then
15360     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15361 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15362     need_locks=warn
15363   fi
15364 else
15365   need_locks=no
15366 fi
15367
15368 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15369 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15370
15371   runpath_var=
15372   allow_undefined_flag_GCJ=
15373   enable_shared_with_static_runtimes_GCJ=no
15374   archive_cmds_GCJ=
15375   archive_expsym_cmds_GCJ=
15376   old_archive_From_new_cmds_GCJ=
15377   old_archive_from_expsyms_cmds_GCJ=
15378   export_dynamic_flag_spec_GCJ=
15379   whole_archive_flag_spec_GCJ=
15380   thread_safe_flag_spec_GCJ=
15381   hardcode_libdir_flag_spec_GCJ=
15382   hardcode_libdir_flag_spec_ld_GCJ=
15383   hardcode_libdir_separator_GCJ=
15384   hardcode_direct_GCJ=no
15385   hardcode_minus_L_GCJ=no
15386   hardcode_shlibpath_var_GCJ=unsupported
15387   link_all_deplibs_GCJ=unknown
15388   hardcode_automatic_GCJ=no
15389   module_cmds_GCJ=
15390   module_expsym_cmds_GCJ=
15391   always_export_symbols_GCJ=no
15392   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15393   # include_expsyms should be a list of space-separated symbols to be *always*
15394   # included in the symbol list
15395   include_expsyms_GCJ=
15396   # exclude_expsyms can be an extended regexp of symbols to exclude
15397   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15398   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15399   # as well as any symbol that contains `d'.
15400   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15401   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15402   # platforms (ab)use it in PIC code, but their linkers get confused if
15403   # the symbol is explicitly referenced.  Since portable code cannot
15404   # rely on this symbol name, it's probably fine to never include it in
15405   # preloaded symbol tables.
15406   extract_expsyms_cmds=
15407
15408   case $host_os in
15409   cygwin* | mingw* | pw32*)
15410     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15411     # When not using gcc, we currently assume that we are using
15412     # Microsoft Visual C++.
15413     if test "$GCC" != yes; then
15414       with_gnu_ld=no
15415     fi
15416     ;;
15417   openbsd*)
15418     with_gnu_ld=no
15419     ;;
15420   esac
15421
15422   ld_shlibs_GCJ=yes
15423   if test "$with_gnu_ld" = yes; then
15424     # If archive_cmds runs LD, not CC, wlarc should be empty
15425     wlarc='${wl}'
15426
15427     # See if GNU ld supports shared libraries.
15428     case $host_os in
15429     aix3* | aix4* | aix5*)
15430       # On AIX/PPC, the GNU linker is very broken
15431       if test "$host_cpu" != ia64; then
15432         ld_shlibs_GCJ=no
15433         cat <<EOF 1>&2
15434
15435 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15436 *** to be unable to reliably create shared libraries on AIX.
15437 *** Therefore, libtool is disabling shared libraries support.  If you
15438 *** really care for shared libraries, you may want to modify your PATH
15439 *** so that a non-GNU linker is found, and then restart.
15440
15441 EOF
15442       fi
15443       ;;
15444
15445     amigaos*)
15446       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)'
15447       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15448       hardcode_minus_L_GCJ=yes
15449
15450       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15451       # that the semantics of dynamic libraries on AmigaOS, at least up
15452       # to version 4, is to share data among multiple programs linked
15453       # with the same dynamic library.  Since this doesn't match the
15454       # behavior of shared libraries on other platforms, we can't use
15455       # them.
15456       ld_shlibs_GCJ=no
15457       ;;
15458
15459     beos*)
15460       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15461         allow_undefined_flag_GCJ=unsupported
15462         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15463         # support --undefined.  This deserves some investigation.  FIXME
15464         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15465       else
15466         ld_shlibs_GCJ=no
15467       fi
15468       ;;
15469
15470     cygwin* | mingw* | pw32*)
15471       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15472       # as there is no search path for DLLs.
15473       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15474       allow_undefined_flag_GCJ=unsupported
15475       always_export_symbols_GCJ=no
15476       enable_shared_with_static_runtimes_GCJ=yes
15477       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15478
15479       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15480         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15481         # If the export-symbols file already is a .def file (1st line
15482         # is EXPORTS), use it as is; otherwise, prepend...
15483         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15484           cp $export_symbols $output_objdir/$soname.def;
15485         else
15486           echo EXPORTS > $output_objdir/$soname.def;
15487           cat $export_symbols >> $output_objdir/$soname.def;
15488         fi~
15489         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15490       else
15491         ld_shlibs=no
15492       fi
15493       ;;
15494
15495     netbsd*)
15496       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15497         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15498         wlarc=
15499       else
15500         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15501         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15502       fi
15503       ;;
15504
15505     solaris* | sysv5*)
15506       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15507         ld_shlibs_GCJ=no
15508         cat <<EOF 1>&2
15509
15510 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15511 *** create shared libraries on Solaris systems.  Therefore, libtool
15512 *** is disabling shared libraries support.  We urge you to upgrade GNU
15513 *** binutils to release 2.9.1 or newer.  Another option is to modify
15514 *** your PATH or compiler configuration so that the native linker is
15515 *** used, and then restart.
15516
15517 EOF
15518       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15519         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15520         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15521       else
15522         ld_shlibs_GCJ=no
15523       fi
15524       ;;
15525
15526     sunos4*)
15527       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15528       wlarc=
15529       hardcode_direct_GCJ=yes
15530       hardcode_shlibpath_var_GCJ=no
15531       ;;
15532
15533     *)
15534       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15535         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15536         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15537       else
15538         ld_shlibs_GCJ=no
15539       fi
15540       ;;
15541     esac
15542
15543     if test "$ld_shlibs_GCJ" = yes; then
15544       runpath_var=LD_RUN_PATH
15545       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15546       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15547       # ancient GNU ld didn't support --whole-archive et. al.
15548       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15549         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15550       else
15551         whole_archive_flag_spec_GCJ=
15552       fi
15553     fi
15554   else
15555     # PORTME fill in a description of your system's linker (not GNU ld)
15556     case $host_os in
15557     aix3*)
15558       allow_undefined_flag_GCJ=unsupported
15559       always_export_symbols_GCJ=yes
15560       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'
15561       # Note: this linker hardcodes the directories in LIBPATH if there
15562       # are no directories specified by -L.
15563       hardcode_minus_L_GCJ=yes
15564       if test "$GCC" = yes && test -z "$link_static_flag"; then
15565         # Neither direct hardcoding nor static linking is supported with a
15566         # broken collect2.
15567         hardcode_direct_GCJ=unsupported
15568       fi
15569       ;;
15570
15571     aix4* | aix5*)
15572       if test "$host_cpu" = ia64; then
15573         # On IA64, the linker does run time linking by default, so we don't
15574         # have to do anything special.
15575         aix_use_runtimelinking=no
15576         exp_sym_flag='-Bexport'
15577         no_entry_flag=""
15578       else
15579         # If we're using GNU nm, then we don't want the "-C" option.
15580         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15581         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15582           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'
15583         else
15584           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'
15585         fi
15586         aix_use_runtimelinking=no
15587
15588         # Test if we are trying to use run time linking or normal
15589         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15590         # need to do runtime linking.
15591         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15592           for ld_flag in $LDFLAGS; do
15593           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15594             aix_use_runtimelinking=yes
15595             break
15596           fi
15597           done
15598         esac
15599
15600         exp_sym_flag='-bexport'
15601         no_entry_flag='-bnoentry'
15602       fi
15603
15604       # When large executables or shared objects are built, AIX ld can
15605       # have problems creating the table of contents.  If linking a library
15606       # or program results in "error TOC overflow" add -mminimal-toc to
15607       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15608       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15609
15610       archive_cmds_GCJ=''
15611       hardcode_direct_GCJ=yes
15612       hardcode_libdir_separator_GCJ=':'
15613       link_all_deplibs_GCJ=yes
15614
15615       if test "$GCC" = yes; then
15616         case $host_os in aix4.012|aix4.012.*)
15617         # We only want to do this on AIX 4.2 and lower, the check
15618         # below for broken collect2 doesn't work under 4.3+
15619           collect2name=`${CC} -print-prog-name=collect2`
15620           if test -f "$collect2name" && \
15621            strings "$collect2name" | grep resolve_lib_name >/dev/null
15622           then
15623           # We have reworked collect2
15624           hardcode_direct_GCJ=yes
15625           else
15626           # We have old collect2
15627           hardcode_direct_GCJ=unsupported
15628           # It fails to find uninstalled libraries when the uninstalled
15629           # path is not listed in the libpath.  Setting hardcode_minus_L
15630           # to unsupported forces relinking
15631           hardcode_minus_L_GCJ=yes
15632           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15633           hardcode_libdir_separator_GCJ=
15634           fi
15635         esac
15636         shared_flag='-shared'
15637       else
15638         # not using gcc
15639         if test "$host_cpu" = ia64; then
15640         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15641         # chokes on -Wl,-G. The following line is correct:
15642           shared_flag='-G'
15643         else
15644         if test "$aix_use_runtimelinking" = yes; then
15645             shared_flag='${wl}-G'
15646           else
15647             shared_flag='${wl}-bM:SRE'
15648         fi
15649         fi
15650       fi
15651
15652       # It seems that -bexpall does not export symbols beginning with
15653       # underscore (_), so it is better to generate a list of symbols to export.
15654       always_export_symbols_GCJ=yes
15655       if test "$aix_use_runtimelinking" = yes; then
15656         # Warning - without using the other runtime loading flags (-brtl),
15657         # -berok will link without error, but may produce a broken library.
15658         allow_undefined_flag_GCJ='-berok'
15659        # Determine the default libpath from the value encoded in an empty executable.
15660        cat >conftest.$ac_ext <<_ACEOF
15661 #line $LINENO "configure"
15662 /* confdefs.h.  */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h.  */
15667
15668 int
15669 main ()
15670 {
15671
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15678   (eval $ac_link) 2>&5
15679   ac_status=$?
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); } &&
15682          { ac_try='test -s conftest$ac_exeext'
15683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684   (eval $ac_try) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688
15689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15690 }'`
15691 # Check for a 64-bit object if we didn't find anything.
15692 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; }
15693 }'`; fi
15694 else
15695   echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15697
15698 fi
15699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15701
15702        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15703         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"
15704        else
15705         if test "$host_cpu" = ia64; then
15706           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15707           allow_undefined_flag_GCJ="-z nodefs"
15708           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"
15709         else
15710          # Determine the default libpath from the value encoded in an empty executable.
15711          cat >conftest.$ac_ext <<_ACEOF
15712 #line $LINENO "configure"
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718
15719 int
15720 main ()
15721 {
15722
15723   ;
15724   return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729   (eval $ac_link) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); } &&
15733          { ac_try='test -s conftest$ac_exeext'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }; then
15739
15740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15741 }'`
15742 # Check for a 64-bit object if we didn't find anything.
15743 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; }
15744 }'`; fi
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 fi
15750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15752
15753          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15754           # Warning - without using the other run time loading flags,
15755           # -berok will link without error, but may produce a broken library.
15756           no_undefined_flag_GCJ=' ${wl}-bernotok'
15757           allow_undefined_flag_GCJ=' ${wl}-berok'
15758           # -bexpall does not export symbols beginning with underscore (_)
15759           always_export_symbols_GCJ=yes
15760           # Exported symbols can be pulled into shared objects from archives
15761           whole_archive_flag_spec_GCJ=' '
15762           archive_cmds_need_lc_GCJ=yes
15763           # This is similar to how AIX traditionally builds it's shared libraries.
15764           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'
15765         fi
15766       fi
15767       ;;
15768
15769     amigaos*)
15770       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)'
15771       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15772       hardcode_minus_L_GCJ=yes
15773       # see comment about different semantics on the GNU ld section
15774       ld_shlibs_GCJ=no
15775       ;;
15776
15777     bsdi4*)
15778       export_dynamic_flag_spec_GCJ=-rdynamic
15779       ;;
15780
15781     cygwin* | mingw* | pw32*)
15782       # When not using gcc, we currently assume that we are using
15783       # Microsoft Visual C++.
15784       # hardcode_libdir_flag_spec is actually meaningless, as there is
15785       # no search path for DLLs.
15786       hardcode_libdir_flag_spec_GCJ=' '
15787       allow_undefined_flag_GCJ=unsupported
15788       # Tell ltmain to make .lib files, not .a files.
15789       libext=lib
15790       # Tell ltmain to make .dll files, not .so files.
15791       shrext=".dll"
15792       # FIXME: Setting linknames here is a bad hack.
15793       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15794       # The linker will automatically build a .lib file if we build a DLL.
15795       old_archive_From_new_cmds_GCJ='true'
15796       # FIXME: Should let the user specify the lib program.
15797       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15798       fix_srcfile_path='`cygpath -w "$srcfile"`'
15799       enable_shared_with_static_runtimes_GCJ=yes
15800       ;;
15801
15802     darwin* | rhapsody*)
15803     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15804       archive_cmds_need_lc_GCJ=no
15805       case "$host_os" in
15806       rhapsody* | darwin1.[012])
15807         allow_undefined_flag_GCJ='-undefined suppress'
15808         ;;
15809       *) # Darwin 1.3 on
15810         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15811         ;;
15812       esac
15813       # FIXME: Relying on posixy $() will cause problems for
15814       #        cross-compilation, but unfortunately the echo tests do not
15815       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15816       #        `"' quotes if we put them in here... so don't!
15817         lt_int_apple_cc_single_mod=no
15818         output_verbose_link_cmd='echo'
15819         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15820           lt_int_apple_cc_single_mod=yes
15821         fi
15822         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15823           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15824         else
15825         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'
15826       fi
15827       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15828       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15829         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15830           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}'
15831         else
15832           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}'
15833         fi
15834           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}'
15835       hardcode_direct_GCJ=no
15836       hardcode_automatic_GCJ=yes
15837       hardcode_shlibpath_var_GCJ=unsupported
15838       whole_archive_flag_spec_GCJ='-all_load $convenience'
15839       link_all_deplibs_GCJ=yes
15840     fi
15841       ;;
15842
15843     dgux*)
15844       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15845       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15846       hardcode_shlibpath_var_GCJ=no
15847       ;;
15848
15849     freebsd1*)
15850       ld_shlibs_GCJ=no
15851       ;;
15852
15853     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15854     # support.  Future versions do this automatically, but an explicit c++rt0.o
15855     # does not break anything, and helps significantly (at the cost of a little
15856     # extra space).
15857     freebsd2.2*)
15858       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15859       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15860       hardcode_direct_GCJ=yes
15861       hardcode_shlibpath_var_GCJ=no
15862       ;;
15863
15864     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15865     freebsd2*)
15866       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15867       hardcode_direct_GCJ=yes
15868       hardcode_minus_L_GCJ=yes
15869       hardcode_shlibpath_var_GCJ=no
15870       ;;
15871
15872     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15873     freebsd*)
15874       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15875       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15876       hardcode_direct_GCJ=yes
15877       hardcode_shlibpath_var_GCJ=no
15878       ;;
15879
15880     hpux9*)
15881       if test "$GCC" = yes; then
15882         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'
15883       else
15884         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'
15885       fi
15886       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15887       hardcode_libdir_separator_GCJ=:
15888       hardcode_direct_GCJ=yes
15889
15890       # hardcode_minus_L: Not really in the search PATH,
15891       # but as the default location of the library.
15892       hardcode_minus_L_GCJ=yes
15893       export_dynamic_flag_spec_GCJ='${wl}-E'
15894       ;;
15895
15896     hpux10* | hpux11*)
15897       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15898         case "$host_cpu" in
15899         hppa*64*|ia64*)
15900           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15901           ;;
15902         *)
15903           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15904           ;;
15905         esac
15906       else
15907         case "$host_cpu" in
15908         hppa*64*|ia64*)
15909           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15910           ;;
15911         *)
15912           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15913           ;;
15914         esac
15915       fi
15916       if test "$with_gnu_ld" = no; then
15917         case "$host_cpu" in
15918         hppa*64*)
15919           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15920           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15921           hardcode_libdir_separator_GCJ=:
15922           hardcode_direct_GCJ=no
15923           hardcode_shlibpath_var_GCJ=no
15924           ;;
15925         ia64*)
15926           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15927           hardcode_direct_GCJ=no
15928           hardcode_shlibpath_var_GCJ=no
15929
15930           # hardcode_minus_L: Not really in the search PATH,
15931           # but as the default location of the library.
15932           hardcode_minus_L_GCJ=yes
15933           ;;
15934         *)
15935           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15936           hardcode_libdir_separator_GCJ=:
15937           hardcode_direct_GCJ=yes
15938           export_dynamic_flag_spec_GCJ='${wl}-E'
15939
15940           # hardcode_minus_L: Not really in the search PATH,
15941           # but as the default location of the library.
15942           hardcode_minus_L_GCJ=yes
15943           ;;
15944         esac
15945       fi
15946       ;;
15947
15948     irix5* | irix6* | nonstopux*)
15949       if test "$GCC" = yes; then
15950         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'
15951       else
15952         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'
15953         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15954       fi
15955       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15956       hardcode_libdir_separator_GCJ=:
15957       link_all_deplibs_GCJ=yes
15958       ;;
15959
15960     netbsd*)
15961       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15962         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15963       else
15964         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15965       fi
15966       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15967       hardcode_direct_GCJ=yes
15968       hardcode_shlibpath_var_GCJ=no
15969       ;;
15970
15971     newsos6)
15972       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15973       hardcode_direct_GCJ=yes
15974       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15975       hardcode_libdir_separator_GCJ=:
15976       hardcode_shlibpath_var_GCJ=no
15977       ;;
15978
15979     openbsd*)
15980       hardcode_direct_GCJ=yes
15981       hardcode_shlibpath_var_GCJ=no
15982       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15983         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15984         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15985         export_dynamic_flag_spec_GCJ='${wl}-E'
15986       else
15987        case $host_os in
15988          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15989            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15990            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15991            ;;
15992          *)
15993            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15994            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15995            ;;
15996        esac
15997       fi
15998       ;;
15999
16000     os2*)
16001       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16002       hardcode_minus_L_GCJ=yes
16003       allow_undefined_flag_GCJ=unsupported
16004       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'
16005       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16006       ;;
16007
16008     osf3*)
16009       if test "$GCC" = yes; then
16010         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16011         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'
16012       else
16013         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16014         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'
16015       fi
16016       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16017       hardcode_libdir_separator_GCJ=:
16018       ;;
16019
16020     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16021       if test "$GCC" = yes; then
16022         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16023         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'
16024         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16025       else
16026         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16027         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'
16028         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~
16029         $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'
16030
16031         # Both c and cxx compiler support -rpath directly
16032         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16033       fi
16034       hardcode_libdir_separator_GCJ=:
16035       ;;
16036
16037     sco3.2v5*)
16038       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16039       hardcode_shlibpath_var_GCJ=no
16040       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16041       runpath_var=LD_RUN_PATH
16042       hardcode_runpath_var=yes
16043       ;;
16044
16045     solaris*)
16046       no_undefined_flag_GCJ=' -z text'
16047       if test "$GCC" = yes; then
16048         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16049         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16051       else
16052         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16053         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16054         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16055       fi
16056       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16057       hardcode_shlibpath_var_GCJ=no
16058       case $host_os in
16059       solaris2.[0-5] | solaris2.[0-5].*) ;;
16060       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16061         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16062       esac
16063       link_all_deplibs_GCJ=yes
16064       ;;
16065
16066     sunos4*)
16067       if test "x$host_vendor" = xsequent; then
16068         # Use $CC to link under sequent, because it throws in some extra .o
16069         # files that make .init and .fini sections work.
16070         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16071       else
16072         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16073       fi
16074       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16075       hardcode_direct_GCJ=yes
16076       hardcode_minus_L_GCJ=yes
16077       hardcode_shlibpath_var_GCJ=no
16078       ;;
16079
16080     sysv4)
16081       case $host_vendor in
16082         sni)
16083           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16084           hardcode_direct_GCJ=yes # is this really true???
16085         ;;
16086         siemens)
16087           ## LD is ld it makes a PLAMLIB
16088           ## CC just makes a GrossModule.
16089           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16090           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16091           hardcode_direct_GCJ=no
16092         ;;
16093         motorola)
16094           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16095           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16096         ;;
16097       esac
16098       runpath_var='LD_RUN_PATH'
16099       hardcode_shlibpath_var_GCJ=no
16100       ;;
16101
16102     sysv4.3*)
16103       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16104       hardcode_shlibpath_var_GCJ=no
16105       export_dynamic_flag_spec_GCJ='-Bexport'
16106       ;;
16107
16108     sysv4*MP*)
16109       if test -d /usr/nec; then
16110         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16111         hardcode_shlibpath_var_GCJ=no
16112         runpath_var=LD_RUN_PATH
16113         hardcode_runpath_var=yes
16114         ld_shlibs_GCJ=yes
16115       fi
16116       ;;
16117
16118     sysv4.2uw2*)
16119       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16120       hardcode_direct_GCJ=yes
16121       hardcode_minus_L_GCJ=no
16122       hardcode_shlibpath_var_GCJ=no
16123       hardcode_runpath_var=yes
16124       runpath_var=LD_RUN_PATH
16125       ;;
16126
16127    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16128       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16129       if test "$GCC" = yes; then
16130         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16131       else
16132         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16133       fi
16134       runpath_var='LD_RUN_PATH'
16135       hardcode_shlibpath_var_GCJ=no
16136       ;;
16137
16138     sysv5*)
16139       no_undefined_flag_GCJ=' -z text'
16140       # $CC -shared without GNU ld will not create a library from C++
16141       # object files and a static libstdc++, better avoid it by now
16142       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16144                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16145       hardcode_libdir_flag_spec_GCJ=
16146       hardcode_shlibpath_var_GCJ=no
16147       runpath_var='LD_RUN_PATH'
16148       ;;
16149
16150     uts4*)
16151       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16152       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16153       hardcode_shlibpath_var_GCJ=no
16154       ;;
16155
16156     *)
16157       ld_shlibs_GCJ=no
16158       ;;
16159     esac
16160   fi
16161
16162 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16163 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16164 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16165
16166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16167 if test "$GCC" = yes; then
16168   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16169 fi
16170
16171 #
16172 # Do we need to explicitly link libc?
16173 #
16174 case "x$archive_cmds_need_lc_GCJ" in
16175 x|xyes)
16176   # Assume -lc should be added
16177   archive_cmds_need_lc_GCJ=yes
16178
16179   if test "$enable_shared" = yes && test "$GCC" = yes; then
16180     case $archive_cmds_GCJ in
16181     *'~'*)
16182       # FIXME: we may have to deal with multi-command sequences.
16183       ;;
16184     '$CC '*)
16185       # Test whether the compiler implicitly links with -lc since on some
16186       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16187       # to ld, don't add -lc before -lgcc.
16188       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16189 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16190       $rm conftest*
16191       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16192
16193       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16194   (eval $ac_compile) 2>&5
16195   ac_status=$?
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); } 2>conftest.err; then
16198         soname=conftest
16199         lib=conftest
16200         libobjs=conftest.$ac_objext
16201         deplibs=
16202         wl=$lt_prog_compiler_wl_GCJ
16203         compiler_flags=-v
16204         linker_flags=-v
16205         verstring=
16206         output_objdir=.
16207         libname=conftest
16208         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16209         allow_undefined_flag_GCJ=
16210         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16211   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16212   ac_status=$?
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); }
16215         then
16216           archive_cmds_need_lc_GCJ=no
16217         else
16218           archive_cmds_need_lc_GCJ=yes
16219         fi
16220         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16221       else
16222         cat conftest.err 1>&5
16223       fi
16224       $rm conftest*
16225       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16226 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16227       ;;
16228     esac
16229   fi
16230   ;;
16231 esac
16232
16233 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16234 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16235 hardcode_action_GCJ=
16236 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16237    test -n "$runpath_var GCJ" || \
16238    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16239
16240   # We can hardcode non-existant directories.
16241   if test "$hardcode_direct_GCJ" != no &&
16242      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16243      # have to relink, otherwise we might link with an installed library
16244      # when we should be linking with a yet-to-be-installed one
16245      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16246      test "$hardcode_minus_L_GCJ" != no; then
16247     # Linking always hardcodes the temporary library directory.
16248     hardcode_action_GCJ=relink
16249   else
16250     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16251     hardcode_action_GCJ=immediate
16252   fi
16253 else
16254   # We cannot hardcode anything, or else we can only hardcode existing
16255   # directories.
16256   hardcode_action_GCJ=unsupported
16257 fi
16258 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16259 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16260
16261 if test "$hardcode_action_GCJ" = relink; then
16262   # Fast installation is not supported
16263   enable_fast_install=no
16264 elif test "$shlibpath_overrides_runpath" = yes ||
16265      test "$enable_shared" = no; then
16266   # Fast installation is not necessary
16267   enable_fast_install=needless
16268 fi
16269
16270 striplib=
16271 old_striplib=
16272 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16273 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16274 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16275   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16276   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16277   echo "$as_me:$LINENO: result: yes" >&5
16278 echo "${ECHO_T}yes" >&6
16279 else
16280 # FIXME - insert some real tests, host_os isn't really good enough
16281   case $host_os in
16282    darwin*)
16283        if test -n "$STRIP" ; then
16284          striplib="$STRIP -x"
16285          echo "$as_me:$LINENO: result: yes" >&5
16286 echo "${ECHO_T}yes" >&6
16287        else
16288   echo "$as_me:$LINENO: result: no" >&5
16289 echo "${ECHO_T}no" >&6
16290 fi
16291        ;;
16292    *)
16293   echo "$as_me:$LINENO: result: no" >&5
16294 echo "${ECHO_T}no" >&6
16295     ;;
16296   esac
16297 fi
16298
16299 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16300 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16301 library_names_spec=
16302 libname_spec='lib$name'
16303 soname_spec=
16304 shrext=".so"
16305 postinstall_cmds=
16306 postuninstall_cmds=
16307 finish_cmds=
16308 finish_eval=
16309 shlibpath_var=
16310 shlibpath_overrides_runpath=unknown
16311 version_type=none
16312 dynamic_linker="$host_os ld.so"
16313 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16314 if test "$GCC" = yes; then
16315   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16316   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16317     # if the path contains ";" then we assume it to be the separator
16318     # otherwise default to the standard path separator (i.e. ":") - it is
16319     # assumed that no part of a normal pathname contains ";" but that should
16320     # okay in the real world where ";" in dirpaths is itself problematic.
16321     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16322   else
16323     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16324   fi
16325 else
16326   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16327 fi
16328 need_lib_prefix=unknown
16329 hardcode_into_libs=no
16330
16331 # when you set need_version to no, make sure it does not cause -set_version
16332 # flags to be left without arguments
16333 need_version=unknown
16334
16335 case $host_os in
16336 aix3*)
16337   version_type=linux
16338   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16339   shlibpath_var=LIBPATH
16340
16341   # AIX 3 has no versioning support, so we append a major version to the name.
16342   soname_spec='${libname}${release}${shared_ext}$major'
16343   ;;
16344
16345 aix4* | aix5*)
16346   version_type=linux
16347   need_lib_prefix=no
16348   need_version=no
16349   hardcode_into_libs=yes
16350   if test "$host_cpu" = ia64; then
16351     # AIX 5 supports IA64
16352     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16353     shlibpath_var=LD_LIBRARY_PATH
16354   else
16355     # With GCC up to 2.95.x, collect2 would create an import file
16356     # for dependence libraries.  The import file would start with
16357     # the line `#! .'.  This would cause the generated library to
16358     # depend on `.', always an invalid library.  This was fixed in
16359     # development snapshots of GCC prior to 3.0.
16360     case $host_os in
16361       aix4 | aix4.[01] | aix4.[01].*)
16362       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16363            echo ' yes '
16364            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16365         :
16366       else
16367         can_build_shared=no
16368       fi
16369       ;;
16370     esac
16371     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16372     # soname into executable. Probably we can add versioning support to
16373     # collect2, so additional links can be useful in future.
16374     if test "$aix_use_runtimelinking" = yes; then
16375       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16376       # instead of lib<name>.a to let people know that these are not
16377       # typical AIX shared libraries.
16378       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379     else
16380       # We preserve .a as extension for shared libraries through AIX4.2
16381       # and later when we are not doing run time linking.
16382       library_names_spec='${libname}${release}.a $libname.a'
16383       soname_spec='${libname}${release}${shared_ext}$major'
16384     fi
16385     shlibpath_var=LIBPATH
16386   fi
16387   ;;
16388
16389 amigaos*)
16390   library_names_spec='$libname.ixlibrary $libname.a'
16391   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16392   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'
16393   ;;
16394
16395 beos*)
16396   library_names_spec='${libname}${shared_ext}'
16397   dynamic_linker="$host_os ld.so"
16398   shlibpath_var=LIBRARY_PATH
16399   ;;
16400
16401 bsdi4*)
16402   version_type=linux
16403   need_version=no
16404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16405   soname_spec='${libname}${release}${shared_ext}$major'
16406   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16407   shlibpath_var=LD_LIBRARY_PATH
16408   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16409   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16410   # the default ld.so.conf also contains /usr/contrib/lib and
16411   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16412   # libtool to hard-code these into programs
16413   ;;
16414
16415 cygwin* | mingw* | pw32*)
16416   version_type=windows
16417   shrext=".dll"
16418   need_version=no
16419   need_lib_prefix=no
16420
16421   case $GCC,$host_os in
16422   yes,cygwin* | yes,mingw* | yes,pw32*)
16423     library_names_spec='$libname.dll.a'
16424     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16425     postinstall_cmds='base_file=`basename \${file}`~
16426       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16427       dldir=$destdir/`dirname \$dlpath`~
16428       test -d \$dldir || mkdir -p \$dldir~
16429       $install_prog $dir/$dlname \$dldir/$dlname'
16430     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16431       dlpath=$dir/\$dldll~
16432        $rm \$dlpath'
16433     shlibpath_overrides_runpath=yes
16434
16435     case $host_os in
16436     cygwin*)
16437       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16438       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16439       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16440       ;;
16441     mingw*)
16442       # MinGW DLLs use traditional 'lib' prefix
16443       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16444       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16445       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16446         # It is most probably a Windows format PATH printed by
16447         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16448         # path with ; separators, and with drive letters. We can handle the
16449         # drive letters (cygwin fileutils understands them), so leave them,
16450         # especially as we might pass files found there to a mingw objdump,
16451         # which wouldn't understand a cygwinified path. Ahh.
16452         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16453       else
16454         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16455       fi
16456       ;;
16457     pw32*)
16458       # pw32 DLLs use 'pw' prefix rather than 'lib'
16459       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16460       ;;
16461     esac
16462     ;;
16463
16464   *)
16465     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16466     ;;
16467   esac
16468   dynamic_linker='Win32 ld.exe'
16469   # FIXME: first we should search . and the directory the executable is in
16470   shlibpath_var=PATH
16471   ;;
16472
16473 darwin* | rhapsody*)
16474   dynamic_linker="$host_os dyld"
16475   version_type=darwin
16476   need_lib_prefix=no
16477   need_version=no
16478   # FIXME: Relying on posixy $() will cause problems for
16479   #        cross-compilation, but unfortunately the echo tests do not
16480   #        yet detect zsh echo's removal of \ escapes.
16481   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16482   soname_spec='${libname}${release}${major}$shared_ext'
16483   shlibpath_overrides_runpath=yes
16484   shlibpath_var=DYLD_LIBRARY_PATH
16485   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16486   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16487   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16488   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"`
16489   fi
16490   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16491   ;;
16492
16493 dgux*)
16494   version_type=linux
16495   need_lib_prefix=no
16496   need_version=no
16497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16498   soname_spec='${libname}${release}${shared_ext}$major'
16499   shlibpath_var=LD_LIBRARY_PATH
16500   ;;
16501
16502 freebsd1*)
16503   dynamic_linker=no
16504   ;;
16505
16506 freebsd*)
16507   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16508   version_type=freebsd-$objformat
16509   case $version_type in
16510     freebsd-elf*)
16511       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16512       need_version=no
16513       need_lib_prefix=no
16514       ;;
16515     freebsd-*)
16516       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16517       need_version=yes
16518       ;;
16519   esac
16520   shlibpath_var=LD_LIBRARY_PATH
16521   case $host_os in
16522   freebsd2*)
16523     shlibpath_overrides_runpath=yes
16524     ;;
16525   freebsd3.01* | freebsdelf3.01*)
16526     shlibpath_overrides_runpath=yes
16527     hardcode_into_libs=yes
16528     ;;
16529   *) # from 3.2 on
16530     shlibpath_overrides_runpath=no
16531     hardcode_into_libs=yes
16532     ;;
16533   esac
16534   ;;
16535
16536 gnu*)
16537   version_type=linux
16538   need_lib_prefix=no
16539   need_version=no
16540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16541   soname_spec='${libname}${release}${shared_ext}$major'
16542   shlibpath_var=LD_LIBRARY_PATH
16543   hardcode_into_libs=yes
16544   ;;
16545
16546 hpux9* | hpux10* | hpux11*)
16547   # Give a soname corresponding to the major version so that dld.sl refuses to
16548   # link against other versions.
16549   version_type=sunos
16550   need_lib_prefix=no
16551   need_version=no
16552   case "$host_cpu" in
16553   ia64*)
16554     shrext='.so'
16555     hardcode_into_libs=yes
16556     dynamic_linker="$host_os dld.so"
16557     shlibpath_var=LD_LIBRARY_PATH
16558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16560     soname_spec='${libname}${release}${shared_ext}$major'
16561     if test "X$HPUX_IA64_MODE" = X32; then
16562       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16563     else
16564       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16565     fi
16566     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16567     ;;
16568    hppa*64*)
16569      shrext='.sl'
16570      hardcode_into_libs=yes
16571      dynamic_linker="$host_os dld.sl"
16572      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16573      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16574      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16575      soname_spec='${libname}${release}${shared_ext}$major'
16576      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16577      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16578      ;;
16579    *)
16580     shrext='.sl'
16581     dynamic_linker="$host_os dld.sl"
16582     shlibpath_var=SHLIB_PATH
16583     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585     soname_spec='${libname}${release}${shared_ext}$major'
16586     ;;
16587   esac
16588   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16589   postinstall_cmds='chmod 555 $lib'
16590   ;;
16591
16592 irix5* | irix6* | nonstopux*)
16593   case $host_os in
16594     nonstopux*) version_type=nonstopux ;;
16595     *)
16596         if test "$lt_cv_prog_gnu_ld" = yes; then
16597                 version_type=linux
16598         else
16599                 version_type=irix
16600         fi ;;
16601   esac
16602   need_lib_prefix=no
16603   need_version=no
16604   soname_spec='${libname}${release}${shared_ext}$major'
16605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16606   case $host_os in
16607   irix5* | nonstopux*)
16608     libsuff= shlibsuff=
16609     ;;
16610   *)
16611     case $LD in # libtool.m4 will add one of these switches to LD
16612     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16613       libsuff= shlibsuff= libmagic=32-bit;;
16614     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16615       libsuff=32 shlibsuff=N32 libmagic=N32;;
16616     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16617       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16618     *) libsuff= shlibsuff= libmagic=never-match;;
16619     esac
16620     ;;
16621   esac
16622   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16623   shlibpath_overrides_runpath=no
16624   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16625   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16626   hardcode_into_libs=yes
16627   ;;
16628
16629 # No shared lib support for Linux oldld, aout, or coff.
16630 linux*oldld* | linux*aout* | linux*coff*)
16631   dynamic_linker=no
16632   ;;
16633
16634 # This must be Linux ELF.
16635 linux*)
16636   version_type=linux
16637   need_lib_prefix=no
16638   need_version=no
16639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640   soname_spec='${libname}${release}${shared_ext}$major'
16641   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16642   shlibpath_var=LD_LIBRARY_PATH
16643   shlibpath_overrides_runpath=no
16644   # This implies no fast_install, which is unacceptable.
16645   # Some rework will be needed to allow for fast_install
16646   # before this can be enabled.
16647   hardcode_into_libs=yes
16648
16649   # We used to test for /lib/ld.so.1 and disable shared libraries on
16650   # powerpc, because MkLinux only supported shared libraries with the
16651   # GNU dynamic linker.  Since this was broken with cross compilers,
16652   # most powerpc-linux boxes support dynamic linking these days and
16653   # people can always --disable-shared, the test was removed, and we
16654   # assume the GNU/Linux dynamic linker is in use.
16655   dynamic_linker='GNU/Linux ld.so'
16656   ;;
16657
16658 netbsd*)
16659   version_type=sunos
16660   need_lib_prefix=no
16661   need_version=no
16662   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16664     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16665     dynamic_linker='NetBSD (a.out) ld.so'
16666   else
16667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16668     soname_spec='${libname}${release}${shared_ext}$major'
16669     dynamic_linker='NetBSD ld.elf_so'
16670   fi
16671   shlibpath_var=LD_LIBRARY_PATH
16672   shlibpath_overrides_runpath=yes
16673   hardcode_into_libs=yes
16674   ;;
16675
16676 newsos6)
16677   version_type=linux
16678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679   shlibpath_var=LD_LIBRARY_PATH
16680   shlibpath_overrides_runpath=yes
16681   ;;
16682
16683 nto-qnx)
16684   version_type=linux
16685   need_lib_prefix=no
16686   need_version=no
16687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688   soname_spec='${libname}${release}${shared_ext}$major'
16689   shlibpath_var=LD_LIBRARY_PATH
16690   shlibpath_overrides_runpath=yes
16691   ;;
16692
16693 openbsd*)
16694   version_type=sunos
16695   need_lib_prefix=no
16696   need_version=no
16697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16698   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16699   shlibpath_var=LD_LIBRARY_PATH
16700   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16701     case $host_os in
16702       openbsd2.[89] | openbsd2.[89].*)
16703         shlibpath_overrides_runpath=no
16704         ;;
16705       *)
16706         shlibpath_overrides_runpath=yes
16707         ;;
16708       esac
16709   else
16710     shlibpath_overrides_runpath=yes
16711   fi
16712   ;;
16713
16714 os2*)
16715   libname_spec='$name'
16716   shrext=".dll"
16717   need_lib_prefix=no
16718   library_names_spec='$libname${shared_ext} $libname.a'
16719   dynamic_linker='OS/2 ld.exe'
16720   shlibpath_var=LIBPATH
16721   ;;
16722
16723 osf3* | osf4* | osf5*)
16724   version_type=osf
16725   need_lib_prefix=no
16726   need_version=no
16727   soname_spec='${libname}${release}${shared_ext}$major'
16728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16729   shlibpath_var=LD_LIBRARY_PATH
16730   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16731   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16732   ;;
16733
16734 sco3.2v5*)
16735   version_type=osf
16736   soname_spec='${libname}${release}${shared_ext}$major'
16737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16738   shlibpath_var=LD_LIBRARY_PATH
16739   ;;
16740
16741 solaris*)
16742   version_type=linux
16743   need_lib_prefix=no
16744   need_version=no
16745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16746   soname_spec='${libname}${release}${shared_ext}$major'
16747   shlibpath_var=LD_LIBRARY_PATH
16748   shlibpath_overrides_runpath=yes
16749   hardcode_into_libs=yes
16750   # ldd complains unless libraries are executable
16751   postinstall_cmds='chmod +x $lib'
16752   ;;
16753
16754 sunos4*)
16755   version_type=sunos
16756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16757   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16758   shlibpath_var=LD_LIBRARY_PATH
16759   shlibpath_overrides_runpath=yes
16760   if test "$with_gnu_ld" = yes; then
16761     need_lib_prefix=no
16762   fi
16763   need_version=yes
16764   ;;
16765
16766 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16767   version_type=linux
16768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769   soname_spec='${libname}${release}${shared_ext}$major'
16770   shlibpath_var=LD_LIBRARY_PATH
16771   case $host_vendor in
16772     sni)
16773       shlibpath_overrides_runpath=no
16774       need_lib_prefix=no
16775       export_dynamic_flag_spec='${wl}-Blargedynsym'
16776       runpath_var=LD_RUN_PATH
16777       ;;
16778     siemens)
16779       need_lib_prefix=no
16780       ;;
16781     motorola)
16782       need_lib_prefix=no
16783       need_version=no
16784       shlibpath_overrides_runpath=no
16785       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16786       ;;
16787   esac
16788   ;;
16789
16790 sysv4*MP*)
16791   if test -d /usr/nec ;then
16792     version_type=linux
16793     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16794     soname_spec='$libname${shared_ext}.$major'
16795     shlibpath_var=LD_LIBRARY_PATH
16796   fi
16797   ;;
16798
16799 uts4*)
16800   version_type=linux
16801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802   soname_spec='${libname}${release}${shared_ext}$major'
16803   shlibpath_var=LD_LIBRARY_PATH
16804   ;;
16805
16806 *)
16807   dynamic_linker=no
16808   ;;
16809 esac
16810 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16811 echo "${ECHO_T}$dynamic_linker" >&6
16812 test "$dynamic_linker" = no && can_build_shared=no
16813
16814 if test "x$enable_dlopen" != xyes; then
16815   enable_dlopen=unknown
16816   enable_dlopen_self=unknown
16817   enable_dlopen_self_static=unknown
16818 else
16819   lt_cv_dlopen=no
16820   lt_cv_dlopen_libs=
16821
16822   case $host_os in
16823   beos*)
16824     lt_cv_dlopen="load_add_on"
16825     lt_cv_dlopen_libs=
16826     lt_cv_dlopen_self=yes
16827     ;;
16828
16829   mingw* | pw32*)
16830     lt_cv_dlopen="LoadLibrary"
16831     lt_cv_dlopen_libs=
16832    ;;
16833
16834   cygwin*)
16835     lt_cv_dlopen="dlopen"
16836     lt_cv_dlopen_libs=
16837    ;;
16838
16839   darwin*)
16840   # if libdl is installed we need to link against it
16841     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16842 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16843 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16844   echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846   ac_check_lib_save_LIBS=$LIBS
16847 LIBS="-ldl  $LIBS"
16848 cat >conftest.$ac_ext <<_ACEOF
16849 #line $LINENO "configure"
16850 /* confdefs.h.  */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h.  */
16855
16856 /* Override any gcc2 internal prototype to avoid an error.  */
16857 #ifdef __cplusplus
16858 extern "C"
16859 #endif
16860 /* We use char because int might match the return type of a gcc2
16861    builtin and then its argument prototype would still apply.  */
16862 char dlopen ();
16863 int
16864 main ()
16865 {
16866 dlopen ();
16867   ;
16868   return 0;
16869 }
16870 _ACEOF
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16873   (eval $ac_link) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); } &&
16877          { ac_try='test -s conftest$ac_exeext'
16878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879   (eval $ac_try) 2>&5
16880   ac_status=$?
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); }; }; then
16883   ac_cv_lib_dl_dlopen=yes
16884 else
16885   echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888 ac_cv_lib_dl_dlopen=no
16889 fi
16890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16891 LIBS=$ac_check_lib_save_LIBS
16892 fi
16893 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16894 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16895 if test $ac_cv_lib_dl_dlopen = yes; then
16896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16897 else
16898
16899     lt_cv_dlopen="dyld"
16900     lt_cv_dlopen_libs=
16901     lt_cv_dlopen_self=yes
16902
16903 fi
16904
16905    ;;
16906
16907   *)
16908     echo "$as_me:$LINENO: checking for shl_load" >&5
16909 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16910 if test "${ac_cv_func_shl_load+set}" = set; then
16911   echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913   cat >conftest.$ac_ext <<_ACEOF
16914 #line $LINENO "configure"
16915 /* confdefs.h.  */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h.  */
16920 /* System header to define __stub macros and hopefully few prototypes,
16921     which can conflict with char shl_load (); below.
16922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16923     <limits.h> exists even on freestanding compilers.  */
16924 #ifdef __STDC__
16925 # include <limits.h>
16926 #else
16927 # include <assert.h>
16928 #endif
16929 /* Override any gcc2 internal prototype to avoid an error.  */
16930 #ifdef __cplusplus
16931 extern "C"
16932 {
16933 #endif
16934 /* We use char because int might match the return type of a gcc2
16935    builtin and then its argument prototype would still apply.  */
16936 char shl_load ();
16937 /* The GNU C library defines this for functions which it implements
16938     to always fail with ENOSYS.  Some functions are actually named
16939     something starting with __ and the normal name is an alias.  */
16940 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16941 choke me
16942 #else
16943 char (*f) () = shl_load;
16944 #endif
16945 #ifdef __cplusplus
16946 }
16947 #endif
16948
16949 int
16950 main ()
16951 {
16952 return f != shl_load;
16953   ;
16954   return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959   (eval $ac_link) 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } &&
16963          { ac_try='test -s conftest$ac_exeext'
16964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965   (eval $ac_try) 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); }; }; then
16969   ac_cv_func_shl_load=yes
16970 else
16971   echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16973
16974 ac_cv_func_shl_load=no
16975 fi
16976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16977 fi
16978 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16979 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16980 if test $ac_cv_func_shl_load = yes; then
16981   lt_cv_dlopen="shl_load"
16982 else
16983   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16984 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16985 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16986   echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988   ac_check_lib_save_LIBS=$LIBS
16989 LIBS="-ldld  $LIBS"
16990 cat >conftest.$ac_ext <<_ACEOF
16991 #line $LINENO "configure"
16992 /* confdefs.h.  */
16993 _ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h.  */
16997
16998 /* Override any gcc2 internal prototype to avoid an error.  */
16999 #ifdef __cplusplus
17000 extern "C"
17001 #endif
17002 /* We use char because int might match the return type of a gcc2
17003    builtin and then its argument prototype would still apply.  */
17004 char shl_load ();
17005 int
17006 main ()
17007 {
17008 shl_load ();
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015   (eval $ac_link) 2>&5
17016   ac_status=$?
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); } &&
17019          { ac_try='test -s conftest$ac_exeext'
17020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021   (eval $ac_try) 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); }; }; then
17025   ac_cv_lib_dld_shl_load=yes
17026 else
17027   echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17029
17030 ac_cv_lib_dld_shl_load=no
17031 fi
17032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17033 LIBS=$ac_check_lib_save_LIBS
17034 fi
17035 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17036 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17037 if test $ac_cv_lib_dld_shl_load = yes; then
17038   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17039 else
17040   echo "$as_me:$LINENO: checking for dlopen" >&5
17041 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17042 if test "${ac_cv_func_dlopen+set}" = set; then
17043   echo $ECHO_N "(cached) $ECHO_C" >&6
17044 else
17045   cat >conftest.$ac_ext <<_ACEOF
17046 #line $LINENO "configure"
17047 /* confdefs.h.  */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h.  */
17052 /* System header to define __stub macros and hopefully few prototypes,
17053     which can conflict with char dlopen (); below.
17054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17055     <limits.h> exists even on freestanding compilers.  */
17056 #ifdef __STDC__
17057 # include <limits.h>
17058 #else
17059 # include <assert.h>
17060 #endif
17061 /* Override any gcc2 internal prototype to avoid an error.  */
17062 #ifdef __cplusplus
17063 extern "C"
17064 {
17065 #endif
17066 /* We use char because int might match the return type of a gcc2
17067    builtin and then its argument prototype would still apply.  */
17068 char dlopen ();
17069 /* The GNU C library defines this for functions which it implements
17070     to always fail with ENOSYS.  Some functions are actually named
17071     something starting with __ and the normal name is an alias.  */
17072 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17073 choke me
17074 #else
17075 char (*f) () = dlopen;
17076 #endif
17077 #ifdef __cplusplus
17078 }
17079 #endif
17080
17081 int
17082 main ()
17083 {
17084 return f != dlopen;
17085   ;
17086   return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17091   (eval $ac_link) 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); } &&
17095          { ac_try='test -s conftest$ac_exeext'
17096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097   (eval $ac_try) 2>&5
17098   ac_status=$?
17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100   (exit $ac_status); }; }; then
17101   ac_cv_func_dlopen=yes
17102 else
17103   echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17105
17106 ac_cv_func_dlopen=no
17107 fi
17108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17109 fi
17110 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17111 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17112 if test $ac_cv_func_dlopen = yes; then
17113   lt_cv_dlopen="dlopen"
17114 else
17115   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17116 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17118   echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120   ac_check_lib_save_LIBS=$LIBS
17121 LIBS="-ldl  $LIBS"
17122 cat >conftest.$ac_ext <<_ACEOF
17123 #line $LINENO "configure"
17124 /* confdefs.h.  */
17125 _ACEOF
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h.  */
17129
17130 /* Override any gcc2 internal prototype to avoid an error.  */
17131 #ifdef __cplusplus
17132 extern "C"
17133 #endif
17134 /* We use char because int might match the return type of a gcc2
17135    builtin and then its argument prototype would still apply.  */
17136 char dlopen ();
17137 int
17138 main ()
17139 {
17140 dlopen ();
17141   ;
17142   return 0;
17143 }
17144 _ACEOF
17145 rm -f conftest.$ac_objext conftest$ac_exeext
17146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17147   (eval $ac_link) 2>&5
17148   ac_status=$?
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); } &&
17151          { ac_try='test -s conftest$ac_exeext'
17152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153   (eval $ac_try) 2>&5
17154   ac_status=$?
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); }; }; then
17157   ac_cv_lib_dl_dlopen=yes
17158 else
17159   echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162 ac_cv_lib_dl_dlopen=no
17163 fi
17164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17165 LIBS=$ac_check_lib_save_LIBS
17166 fi
17167 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17168 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17169 if test $ac_cv_lib_dl_dlopen = yes; then
17170   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17171 else
17172   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17173 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17174 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17175   echo $ECHO_N "(cached) $ECHO_C" >&6
17176 else
17177   ac_check_lib_save_LIBS=$LIBS
17178 LIBS="-lsvld  $LIBS"
17179 cat >conftest.$ac_ext <<_ACEOF
17180 #line $LINENO "configure"
17181 /* confdefs.h.  */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h.  */
17186
17187 /* Override any gcc2 internal prototype to avoid an error.  */
17188 #ifdef __cplusplus
17189 extern "C"
17190 #endif
17191 /* We use char because int might match the return type of a gcc2
17192    builtin and then its argument prototype would still apply.  */
17193 char dlopen ();
17194 int
17195 main ()
17196 {
17197 dlopen ();
17198   ;
17199   return 0;
17200 }
17201 _ACEOF
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17204   (eval $ac_link) 2>&5
17205   ac_status=$?
17206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207   (exit $ac_status); } &&
17208          { ac_try='test -s conftest$ac_exeext'
17209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210   (eval $ac_try) 2>&5
17211   ac_status=$?
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); }; }; then
17214   ac_cv_lib_svld_dlopen=yes
17215 else
17216   echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17218
17219 ac_cv_lib_svld_dlopen=no
17220 fi
17221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17222 LIBS=$ac_check_lib_save_LIBS
17223 fi
17224 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17225 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17226 if test $ac_cv_lib_svld_dlopen = yes; then
17227   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17228 else
17229   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17230 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17231 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17232   echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234   ac_check_lib_save_LIBS=$LIBS
17235 LIBS="-ldld  $LIBS"
17236 cat >conftest.$ac_ext <<_ACEOF
17237 #line $LINENO "configure"
17238 /* confdefs.h.  */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h.  */
17243
17244 /* Override any gcc2 internal prototype to avoid an error.  */
17245 #ifdef __cplusplus
17246 extern "C"
17247 #endif
17248 /* We use char because int might match the return type of a gcc2
17249    builtin and then its argument prototype would still apply.  */
17250 char dld_link ();
17251 int
17252 main ()
17253 {
17254 dld_link ();
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261   (eval $ac_link) 2>&5
17262   ac_status=$?
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); } &&
17265          { ac_try='test -s conftest$ac_exeext'
17266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267   (eval $ac_try) 2>&5
17268   ac_status=$?
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); }; }; then
17271   ac_cv_lib_dld_dld_link=yes
17272 else
17273   echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 ac_cv_lib_dld_dld_link=no
17277 fi
17278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17279 LIBS=$ac_check_lib_save_LIBS
17280 fi
17281 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17282 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17283 if test $ac_cv_lib_dld_dld_link = yes; then
17284   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17285 fi
17286
17287
17288 fi
17289
17290
17291 fi
17292
17293
17294 fi
17295
17296
17297 fi
17298
17299
17300 fi
17301
17302     ;;
17303   esac
17304
17305   if test "x$lt_cv_dlopen" != xno; then
17306     enable_dlopen=yes
17307   else
17308     enable_dlopen=no
17309   fi
17310
17311   case $lt_cv_dlopen in
17312   dlopen)
17313     save_CPPFLAGS="$CPPFLAGS"
17314     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17315
17316     save_LDFLAGS="$LDFLAGS"
17317     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17318
17319     save_LIBS="$LIBS"
17320     LIBS="$lt_cv_dlopen_libs $LIBS"
17321
17322     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17323 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17324 if test "${lt_cv_dlopen_self+set}" = set; then
17325   echo $ECHO_N "(cached) $ECHO_C" >&6
17326 else
17327           if test "$cross_compiling" = yes; then :
17328   lt_cv_dlopen_self=cross
17329 else
17330   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17331   lt_status=$lt_dlunknown
17332   cat > conftest.$ac_ext <<EOF
17333 #line 17333 "configure"
17334 #include "confdefs.h"
17335
17336 #if HAVE_DLFCN_H
17337 #include <dlfcn.h>
17338 #endif
17339
17340 #include <stdio.h>
17341
17342 #ifdef RTLD_GLOBAL
17343 #  define LT_DLGLOBAL           RTLD_GLOBAL
17344 #else
17345 #  ifdef DL_GLOBAL
17346 #    define LT_DLGLOBAL         DL_GLOBAL
17347 #  else
17348 #    define LT_DLGLOBAL         0
17349 #  endif
17350 #endif
17351
17352 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17353    find out it does not work in some platform. */
17354 #ifndef LT_DLLAZY_OR_NOW
17355 #  ifdef RTLD_LAZY
17356 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17357 #  else
17358 #    ifdef DL_LAZY
17359 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17360 #    else
17361 #      ifdef RTLD_NOW
17362 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17363 #      else
17364 #        ifdef DL_NOW
17365 #          define LT_DLLAZY_OR_NOW      DL_NOW
17366 #        else
17367 #          define LT_DLLAZY_OR_NOW      0
17368 #        endif
17369 #      endif
17370 #    endif
17371 #  endif
17372 #endif
17373
17374 #ifdef __cplusplus
17375 extern "C" void exit (int);
17376 #endif
17377
17378 void fnord() { int i=42;}
17379 int main ()
17380 {
17381   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17382   int status = $lt_dlunknown;
17383
17384   if (self)
17385     {
17386       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17387       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17388       /* dlclose (self); */
17389     }
17390
17391     exit (status);
17392 }
17393 EOF
17394   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17395   (eval $ac_link) 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17399     (./conftest; exit; ) 2>/dev/null
17400     lt_status=$?
17401     case x$lt_status in
17402       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17403       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17404       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17405     esac
17406   else :
17407     # compilation failed
17408     lt_cv_dlopen_self=no
17409   fi
17410 fi
17411 rm -fr conftest*
17412
17413
17414 fi
17415 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17416 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17417
17418     if test "x$lt_cv_dlopen_self" = xyes; then
17419       LDFLAGS="$LDFLAGS $link_static_flag"
17420       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17421 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17422 if test "${lt_cv_dlopen_self_static+set}" = set; then
17423   echo $ECHO_N "(cached) $ECHO_C" >&6
17424 else
17425           if test "$cross_compiling" = yes; then :
17426   lt_cv_dlopen_self_static=cross
17427 else
17428   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17429   lt_status=$lt_dlunknown
17430   cat > conftest.$ac_ext <<EOF
17431 #line 17431 "configure"
17432 #include "confdefs.h"
17433
17434 #if HAVE_DLFCN_H
17435 #include <dlfcn.h>
17436 #endif
17437
17438 #include <stdio.h>
17439
17440 #ifdef RTLD_GLOBAL
17441 #  define LT_DLGLOBAL           RTLD_GLOBAL
17442 #else
17443 #  ifdef DL_GLOBAL
17444 #    define LT_DLGLOBAL         DL_GLOBAL
17445 #  else
17446 #    define LT_DLGLOBAL         0
17447 #  endif
17448 #endif
17449
17450 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17451    find out it does not work in some platform. */
17452 #ifndef LT_DLLAZY_OR_NOW
17453 #  ifdef RTLD_LAZY
17454 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17455 #  else
17456 #    ifdef DL_LAZY
17457 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17458 #    else
17459 #      ifdef RTLD_NOW
17460 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17461 #      else
17462 #        ifdef DL_NOW
17463 #          define LT_DLLAZY_OR_NOW      DL_NOW
17464 #        else
17465 #          define LT_DLLAZY_OR_NOW      0
17466 #        endif
17467 #      endif
17468 #    endif
17469 #  endif
17470 #endif
17471
17472 #ifdef __cplusplus
17473 extern "C" void exit (int);
17474 #endif
17475
17476 void fnord() { int i=42;}
17477 int main ()
17478 {
17479   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17480   int status = $lt_dlunknown;
17481
17482   if (self)
17483     {
17484       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17485       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17486       /* dlclose (self); */
17487     }
17488
17489     exit (status);
17490 }
17491 EOF
17492   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17493   (eval $ac_link) 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17497     (./conftest; exit; ) 2>/dev/null
17498     lt_status=$?
17499     case x$lt_status in
17500       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17501       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17502       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17503     esac
17504   else :
17505     # compilation failed
17506     lt_cv_dlopen_self_static=no
17507   fi
17508 fi
17509 rm -fr conftest*
17510
17511
17512 fi
17513 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17514 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17515     fi
17516
17517     CPPFLAGS="$save_CPPFLAGS"
17518     LDFLAGS="$save_LDFLAGS"
17519     LIBS="$save_LIBS"
17520     ;;
17521   esac
17522
17523   case $lt_cv_dlopen_self in
17524   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17525   *) enable_dlopen_self=unknown ;;
17526   esac
17527
17528   case $lt_cv_dlopen_self_static in
17529   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17530   *) enable_dlopen_self_static=unknown ;;
17531   esac
17532 fi
17533
17534
17535 # The else clause should only fire when bootstrapping the
17536 # libtool distribution, otherwise you forgot to ship ltmain.sh
17537 # with your package, and you will get complaints that there are
17538 # no rules to generate ltmain.sh.
17539 if test -f "$ltmain"; then
17540   # See if we are running on zsh, and set the options which allow our commands through
17541   # without removal of \ escapes.
17542   if test -n "${ZSH_VERSION+set}" ; then
17543     setopt NO_GLOB_SUBST
17544   fi
17545   # Now quote all the things that may contain metacharacters while being
17546   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17547   # variables and quote the copies for generation of the libtool script.
17548   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17549     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17550     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17551     deplibs_check_method reload_flag reload_cmds need_locks \
17552     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17553     lt_cv_sys_global_symbol_to_c_name_address \
17554     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17555     old_postinstall_cmds old_postuninstall_cmds \
17556     compiler_GCJ \
17557     CC_GCJ \
17558     LD_GCJ \
17559     lt_prog_compiler_wl_GCJ \
17560     lt_prog_compiler_pic_GCJ \
17561     lt_prog_compiler_static_GCJ \
17562     lt_prog_compiler_no_builtin_flag_GCJ \
17563     export_dynamic_flag_spec_GCJ \
17564     thread_safe_flag_spec_GCJ \
17565     whole_archive_flag_spec_GCJ \
17566     enable_shared_with_static_runtimes_GCJ \
17567     old_archive_cmds_GCJ \
17568     old_archive_from_new_cmds_GCJ \
17569     predep_objects_GCJ \
17570     postdep_objects_GCJ \
17571     predeps_GCJ \
17572     postdeps_GCJ \
17573     compiler_lib_search_path_GCJ \
17574     archive_cmds_GCJ \
17575     archive_expsym_cmds_GCJ \
17576     postinstall_cmds_GCJ \
17577     postuninstall_cmds_GCJ \
17578     old_archive_from_expsyms_cmds_GCJ \
17579     allow_undefined_flag_GCJ \
17580     no_undefined_flag_GCJ \
17581     export_symbols_cmds_GCJ \
17582     hardcode_libdir_flag_spec_GCJ \
17583     hardcode_libdir_flag_spec_ld_GCJ \
17584     hardcode_libdir_separator_GCJ \
17585     hardcode_automatic_GCJ \
17586     module_cmds_GCJ \
17587     module_expsym_cmds_GCJ \
17588     lt_cv_prog_compiler_c_o_GCJ \
17589     exclude_expsyms_GCJ \
17590     include_expsyms_GCJ; do
17591
17592     case $var in
17593     old_archive_cmds_GCJ | \
17594     old_archive_from_new_cmds_GCJ | \
17595     archive_cmds_GCJ | \
17596     archive_expsym_cmds_GCJ | \
17597     module_cmds_GCJ | \
17598     module_expsym_cmds_GCJ | \
17599     old_archive_from_expsyms_cmds_GCJ | \
17600     export_symbols_cmds_GCJ | \
17601     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17602     postinstall_cmds | postuninstall_cmds | \
17603     old_postinstall_cmds | old_postuninstall_cmds | \
17604     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17605       # Double-quote double-evaled strings.
17606       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17607       ;;
17608     *)
17609       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17610       ;;
17611     esac
17612   done
17613
17614   case $lt_echo in
17615   *'\$0 --fallback-echo"')
17616     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17617     ;;
17618   esac
17619
17620 cfgfile="$ofile"
17621
17622   cat <<__EOF__ >> "$cfgfile"
17623 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17624
17625 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17626
17627 # Shell to use when invoking shell scripts.
17628 SHELL=$lt_SHELL
17629
17630 # Whether or not to build shared libraries.
17631 build_libtool_libs=$enable_shared
17632
17633 # Whether or not to build static libraries.
17634 build_old_libs=$enable_static
17635
17636 # Whether or not to add -lc for building shared libraries.
17637 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17638
17639 # Whether or not to disallow shared libs when runtime libs are static
17640 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17641
17642 # Whether or not to optimize for fast installation.
17643 fast_install=$enable_fast_install
17644
17645 # The host system.
17646 host_alias=$host_alias
17647 host=$host
17648
17649 # An echo program that does not interpret backslashes.
17650 echo=$lt_echo
17651
17652 # The archiver.
17653 AR=$lt_AR
17654 AR_FLAGS=$lt_AR_FLAGS
17655
17656 # A C compiler.
17657 LTCC=$lt_LTCC
17658
17659 # A language-specific compiler.
17660 CC=$lt_compiler_GCJ
17661
17662 # Is the compiler the GNU C compiler?
17663 with_gcc=$GCC_GCJ
17664
17665 # An ERE matcher.
17666 EGREP=$lt_EGREP
17667
17668 # The linker used to build libraries.
17669 LD=$lt_LD_GCJ
17670
17671 # Whether we need hard or soft links.
17672 LN_S=$lt_LN_S
17673
17674 # A BSD-compatible nm program.
17675 NM=$lt_NM
17676
17677 # A symbol stripping program
17678 STRIP=$STRIP
17679
17680 # Used to examine libraries when file_magic_cmd begins "file"
17681 MAGIC_CMD=$MAGIC_CMD
17682
17683 # Used on cygwin: DLL creation program.
17684 DLLTOOL="$DLLTOOL"
17685
17686 # Used on cygwin: object dumper.
17687 OBJDUMP="$OBJDUMP"
17688
17689 # Used on cygwin: assembler.
17690 AS="$AS"
17691
17692 # The name of the directory that contains temporary libtool files.
17693 objdir=$objdir
17694
17695 # How to create reloadable object files.
17696 reload_flag=$lt_reload_flag
17697 reload_cmds=$lt_reload_cmds
17698
17699 # How to pass a linker flag through the compiler.
17700 wl=$lt_lt_prog_compiler_wl_GCJ
17701
17702 # Object file suffix (normally "o").
17703 objext="$ac_objext"
17704
17705 # Old archive suffix (normally "a").
17706 libext="$libext"
17707
17708 # Shared library suffix (normally ".so").
17709 shrext='$shrext'
17710
17711 # Executable file suffix (normally "").
17712 exeext="$exeext"
17713
17714 # Additional compiler flags for building library objects.
17715 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17716 pic_mode=$pic_mode
17717
17718 # What is the maximum length of a command?
17719 max_cmd_len=$lt_cv_sys_max_cmd_len
17720
17721 # Does compiler simultaneously support -c and -o options?
17722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17723
17724 # Must we lock files when doing compilation ?
17725 need_locks=$lt_need_locks
17726
17727 # Do we need the lib prefix for modules?
17728 need_lib_prefix=$need_lib_prefix
17729
17730 # Do we need a version for libraries?
17731 need_version=$need_version
17732
17733 # Whether dlopen is supported.
17734 dlopen_support=$enable_dlopen
17735
17736 # Whether dlopen of programs is supported.
17737 dlopen_self=$enable_dlopen_self
17738
17739 # Whether dlopen of statically linked programs is supported.
17740 dlopen_self_static=$enable_dlopen_self_static
17741
17742 # Compiler flag to prevent dynamic linking.
17743 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17744
17745 # Compiler flag to turn off builtin functions.
17746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17747
17748 # Compiler flag to allow reflexive dlopens.
17749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17750
17751 # Compiler flag to generate shared objects directly from archives.
17752 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17753
17754 # Compiler flag to generate thread-safe objects.
17755 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17756
17757 # Library versioning type.
17758 version_type=$version_type
17759
17760 # Format of library name prefix.
17761 libname_spec=$lt_libname_spec
17762
17763 # List of archive names.  First name is the real one, the rest are links.
17764 # The last name is the one that the linker finds with -lNAME.
17765 library_names_spec=$lt_library_names_spec
17766
17767 # The coded name of the library, if different from the real name.
17768 soname_spec=$lt_soname_spec
17769
17770 # Commands used to build and install an old-style archive.
17771 RANLIB=$lt_RANLIB
17772 old_archive_cmds=$lt_old_archive_cmds_GCJ
17773 old_postinstall_cmds=$lt_old_postinstall_cmds
17774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17775
17776 # Create an old-style archive from a shared archive.
17777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17778
17779 # Create a temporary old-style archive to link instead of a shared archive.
17780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17781
17782 # Commands used to build and install a shared archive.
17783 archive_cmds=$lt_archive_cmds_GCJ
17784 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17785 postinstall_cmds=$lt_postinstall_cmds
17786 postuninstall_cmds=$lt_postuninstall_cmds
17787
17788 # Commands used to build a loadable module (assumed same as above if empty)
17789 module_cmds=$lt_module_cmds_GCJ
17790 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17791
17792 # Commands to strip libraries.
17793 old_striplib=$lt_old_striplib
17794 striplib=$lt_striplib
17795
17796 # Dependencies to place before the objects being linked to create a
17797 # shared library.
17798 predep_objects=$lt_predep_objects_GCJ
17799
17800 # Dependencies to place after the objects being linked to create a
17801 # shared library.
17802 postdep_objects=$lt_postdep_objects_GCJ
17803
17804 # Dependencies to place before the objects being linked to create a
17805 # shared library.
17806 predeps=$lt_predeps_GCJ
17807
17808 # Dependencies to place after the objects being linked to create a
17809 # shared library.
17810 postdeps=$lt_postdeps_GCJ
17811
17812 # The library search path used internally by the compiler when linking
17813 # a shared library.
17814 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17815
17816 # Method to check whether dependent libraries are shared objects.
17817 deplibs_check_method=$lt_deplibs_check_method
17818
17819 # Command to use when deplibs_check_method == file_magic.
17820 file_magic_cmd=$lt_file_magic_cmd
17821
17822 # Flag that allows shared libraries with undefined symbols to be built.
17823 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17824
17825 # Flag that forces no undefined symbols.
17826 no_undefined_flag=$lt_no_undefined_flag_GCJ
17827
17828 # Commands used to finish a libtool library installation in a directory.
17829 finish_cmds=$lt_finish_cmds
17830
17831 # Same as above, but a single script fragment to be evaled but not shown.
17832 finish_eval=$lt_finish_eval
17833
17834 # Take the output of nm and produce a listing of raw symbols and C names.
17835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17836
17837 # Transform the output of nm in a proper C declaration
17838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17839
17840 # Transform the output of nm in a C name address pair
17841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17842
17843 # This is the shared library runtime path variable.
17844 runpath_var=$runpath_var
17845
17846 # This is the shared library path variable.
17847 shlibpath_var=$shlibpath_var
17848
17849 # Is shlibpath searched before the hard-coded library search path?
17850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17851
17852 # How to hardcode a shared library path into an executable.
17853 hardcode_action=$hardcode_action_GCJ
17854
17855 # Whether we should hardcode library paths into libraries.
17856 hardcode_into_libs=$hardcode_into_libs
17857
17858 # Flag to hardcode \$libdir into a binary during linking.
17859 # This must work even if \$libdir does not exist.
17860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17861
17862 # If ld is used when linking, flag to hardcode \$libdir into
17863 # a binary during linking. This must work even if \$libdir does
17864 # not exist.
17865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17866
17867 # Whether we need a single -rpath flag with a separated argument.
17868 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17869
17870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17871 # resulting binary.
17872 hardcode_direct=$hardcode_direct_GCJ
17873
17874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17875 # resulting binary.
17876 hardcode_minus_L=$hardcode_minus_L_GCJ
17877
17878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17879 # the resulting binary.
17880 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17881
17882 # Set to yes if building a shared library automatically hardcodes DIR into the library
17883 # and all subsequent libraries and executables linked against it.
17884 hardcode_automatic=$hardcode_automatic_GCJ
17885
17886 # Variables whose values should be saved in libtool wrapper scripts and
17887 # restored at relink time.
17888 variables_saved_for_relink="$variables_saved_for_relink"
17889
17890 # Whether libtool must link a program against all its dependency libraries.
17891 link_all_deplibs=$link_all_deplibs_GCJ
17892
17893 # Compile-time system search path for libraries
17894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17895
17896 # Run-time system search path for libraries
17897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17898
17899 # Fix the shell variable \$srcfile for the compiler.
17900 fix_srcfile_path="$fix_srcfile_path_GCJ"
17901
17902 # Set to yes if exported symbols are required.
17903 always_export_symbols=$always_export_symbols_GCJ
17904
17905 # The commands to list exported symbols.
17906 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17907
17908 # The commands to extract the exported symbol list from a shared archive.
17909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17910
17911 # Symbols that should not be listed in the preloaded symbols.
17912 exclude_expsyms=$lt_exclude_expsyms_GCJ
17913
17914 # Symbols that must always be exported.
17915 include_expsyms=$lt_include_expsyms_GCJ
17916
17917 # ### END LIBTOOL TAG CONFIG: $tagname
17918
17919 __EOF__
17920
17921
17922 else
17923   # If there is no Makefile yet, we rely on a make rule to execute
17924   # `config.status --recheck' to rerun these tests and create the
17925   # libtool script then.
17926   test -f Makefile && make "$ltmain"
17927 fi
17928
17929
17930 ac_ext=c
17931 ac_cpp='$CPP $CPPFLAGS'
17932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17935
17936 CC="$lt_save_CC"
17937
17938         else
17939           tagname=""
17940         fi
17941         ;;
17942
17943       RC)
17944
17945
17946
17947 # Source file extension for RC test sources.
17948 ac_ext=rc
17949
17950 # Object file extension for compiled RC test sources.
17951 objext=o
17952 objext_RC=$objext
17953
17954 # Code to be used in simple compile tests
17955 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17956
17957 # Code to be used in simple link tests
17958 lt_simple_link_test_code="$lt_simple_compile_test_code"
17959
17960 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17961
17962 # If no C compiler was specified, use CC.
17963 LTCC=${LTCC-"$CC"}
17964
17965 # Allow CC to be a program name with arguments.
17966 compiler=$CC
17967
17968
17969 # Allow CC to be a program name with arguments.
17970 lt_save_CC="$CC"
17971 CC=${RC-"windres"}
17972 compiler=$CC
17973 compiler_RC=$CC
17974 lt_cv_prog_compiler_c_o_RC=yes
17975
17976 # The else clause should only fire when bootstrapping the
17977 # libtool distribution, otherwise you forgot to ship ltmain.sh
17978 # with your package, and you will get complaints that there are
17979 # no rules to generate ltmain.sh.
17980 if test -f "$ltmain"; then
17981   # See if we are running on zsh, and set the options which allow our commands through
17982   # without removal of \ escapes.
17983   if test -n "${ZSH_VERSION+set}" ; then
17984     setopt NO_GLOB_SUBST
17985   fi
17986   # Now quote all the things that may contain metacharacters while being
17987   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17988   # variables and quote the copies for generation of the libtool script.
17989   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17990     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17991     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17992     deplibs_check_method reload_flag reload_cmds need_locks \
17993     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17994     lt_cv_sys_global_symbol_to_c_name_address \
17995     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17996     old_postinstall_cmds old_postuninstall_cmds \
17997     compiler_RC \
17998     CC_RC \
17999     LD_RC \
18000     lt_prog_compiler_wl_RC \
18001     lt_prog_compiler_pic_RC \
18002     lt_prog_compiler_static_RC \
18003     lt_prog_compiler_no_builtin_flag_RC \
18004     export_dynamic_flag_spec_RC \
18005     thread_safe_flag_spec_RC \
18006     whole_archive_flag_spec_RC \
18007     enable_shared_with_static_runtimes_RC \
18008     old_archive_cmds_RC \
18009     old_archive_from_new_cmds_RC \
18010     predep_objects_RC \
18011     postdep_objects_RC \
18012     predeps_RC \
18013     postdeps_RC \
18014     compiler_lib_search_path_RC \
18015     archive_cmds_RC \
18016     archive_expsym_cmds_RC \
18017     postinstall_cmds_RC \
18018     postuninstall_cmds_RC \
18019     old_archive_from_expsyms_cmds_RC \
18020     allow_undefined_flag_RC \
18021     no_undefined_flag_RC \
18022     export_symbols_cmds_RC \
18023     hardcode_libdir_flag_spec_RC \
18024     hardcode_libdir_flag_spec_ld_RC \
18025     hardcode_libdir_separator_RC \
18026     hardcode_automatic_RC \
18027     module_cmds_RC \
18028     module_expsym_cmds_RC \
18029     lt_cv_prog_compiler_c_o_RC \
18030     exclude_expsyms_RC \
18031     include_expsyms_RC; do
18032
18033     case $var in
18034     old_archive_cmds_RC | \
18035     old_archive_from_new_cmds_RC | \
18036     archive_cmds_RC | \
18037     archive_expsym_cmds_RC | \
18038     module_cmds_RC | \
18039     module_expsym_cmds_RC | \
18040     old_archive_from_expsyms_cmds_RC | \
18041     export_symbols_cmds_RC | \
18042     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18043     postinstall_cmds | postuninstall_cmds | \
18044     old_postinstall_cmds | old_postuninstall_cmds | \
18045     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18046       # Double-quote double-evaled strings.
18047       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18048       ;;
18049     *)
18050       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18051       ;;
18052     esac
18053   done
18054
18055   case $lt_echo in
18056   *'\$0 --fallback-echo"')
18057     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18058     ;;
18059   esac
18060
18061 cfgfile="$ofile"
18062
18063   cat <<__EOF__ >> "$cfgfile"
18064 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18065
18066 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18067
18068 # Shell to use when invoking shell scripts.
18069 SHELL=$lt_SHELL
18070
18071 # Whether or not to build shared libraries.
18072 build_libtool_libs=$enable_shared
18073
18074 # Whether or not to build static libraries.
18075 build_old_libs=$enable_static
18076
18077 # Whether or not to add -lc for building shared libraries.
18078 build_libtool_need_lc=$archive_cmds_need_lc_RC
18079
18080 # Whether or not to disallow shared libs when runtime libs are static
18081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18082
18083 # Whether or not to optimize for fast installation.
18084 fast_install=$enable_fast_install
18085
18086 # The host system.
18087 host_alias=$host_alias
18088 host=$host
18089
18090 # An echo program that does not interpret backslashes.
18091 echo=$lt_echo
18092
18093 # The archiver.
18094 AR=$lt_AR
18095 AR_FLAGS=$lt_AR_FLAGS
18096
18097 # A C compiler.
18098 LTCC=$lt_LTCC
18099
18100 # A language-specific compiler.
18101 CC=$lt_compiler_RC
18102
18103 # Is the compiler the GNU C compiler?
18104 with_gcc=$GCC_RC
18105
18106 # An ERE matcher.
18107 EGREP=$lt_EGREP
18108
18109 # The linker used to build libraries.
18110 LD=$lt_LD_RC
18111
18112 # Whether we need hard or soft links.
18113 LN_S=$lt_LN_S
18114
18115 # A BSD-compatible nm program.
18116 NM=$lt_NM
18117
18118 # A symbol stripping program
18119 STRIP=$STRIP
18120
18121 # Used to examine libraries when file_magic_cmd begins "file"
18122 MAGIC_CMD=$MAGIC_CMD
18123
18124 # Used on cygwin: DLL creation program.
18125 DLLTOOL="$DLLTOOL"
18126
18127 # Used on cygwin: object dumper.
18128 OBJDUMP="$OBJDUMP"
18129
18130 # Used on cygwin: assembler.
18131 AS="$AS"
18132
18133 # The name of the directory that contains temporary libtool files.
18134 objdir=$objdir
18135
18136 # How to create reloadable object files.
18137 reload_flag=$lt_reload_flag
18138 reload_cmds=$lt_reload_cmds
18139
18140 # How to pass a linker flag through the compiler.
18141 wl=$lt_lt_prog_compiler_wl_RC
18142
18143 # Object file suffix (normally "o").
18144 objext="$ac_objext"
18145
18146 # Old archive suffix (normally "a").
18147 libext="$libext"
18148
18149 # Shared library suffix (normally ".so").
18150 shrext='$shrext'
18151
18152 # Executable file suffix (normally "").
18153 exeext="$exeext"
18154
18155 # Additional compiler flags for building library objects.
18156 pic_flag=$lt_lt_prog_compiler_pic_RC
18157 pic_mode=$pic_mode
18158
18159 # What is the maximum length of a command?
18160 max_cmd_len=$lt_cv_sys_max_cmd_len
18161
18162 # Does compiler simultaneously support -c and -o options?
18163 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18164
18165 # Must we lock files when doing compilation ?
18166 need_locks=$lt_need_locks
18167
18168 # Do we need the lib prefix for modules?
18169 need_lib_prefix=$need_lib_prefix
18170
18171 # Do we need a version for libraries?
18172 need_version=$need_version
18173
18174 # Whether dlopen is supported.
18175 dlopen_support=$enable_dlopen
18176
18177 # Whether dlopen of programs is supported.
18178 dlopen_self=$enable_dlopen_self
18179
18180 # Whether dlopen of statically linked programs is supported.
18181 dlopen_self_static=$enable_dlopen_self_static
18182
18183 # Compiler flag to prevent dynamic linking.
18184 link_static_flag=$lt_lt_prog_compiler_static_RC
18185
18186 # Compiler flag to turn off builtin functions.
18187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18188
18189 # Compiler flag to allow reflexive dlopens.
18190 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18191
18192 # Compiler flag to generate shared objects directly from archives.
18193 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18194
18195 # Compiler flag to generate thread-safe objects.
18196 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18197
18198 # Library versioning type.
18199 version_type=$version_type
18200
18201 # Format of library name prefix.
18202 libname_spec=$lt_libname_spec
18203
18204 # List of archive names.  First name is the real one, the rest are links.
18205 # The last name is the one that the linker finds with -lNAME.
18206 library_names_spec=$lt_library_names_spec
18207
18208 # The coded name of the library, if different from the real name.
18209 soname_spec=$lt_soname_spec
18210
18211 # Commands used to build and install an old-style archive.
18212 RANLIB=$lt_RANLIB
18213 old_archive_cmds=$lt_old_archive_cmds_RC
18214 old_postinstall_cmds=$lt_old_postinstall_cmds
18215 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18216
18217 # Create an old-style archive from a shared archive.
18218 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18219
18220 # Create a temporary old-style archive to link instead of a shared archive.
18221 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18222
18223 # Commands used to build and install a shared archive.
18224 archive_cmds=$lt_archive_cmds_RC
18225 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18226 postinstall_cmds=$lt_postinstall_cmds
18227 postuninstall_cmds=$lt_postuninstall_cmds
18228
18229 # Commands used to build a loadable module (assumed same as above if empty)
18230 module_cmds=$lt_module_cmds_RC
18231 module_expsym_cmds=$lt_module_expsym_cmds_RC
18232
18233 # Commands to strip libraries.
18234 old_striplib=$lt_old_striplib
18235 striplib=$lt_striplib
18236
18237 # Dependencies to place before the objects being linked to create a
18238 # shared library.
18239 predep_objects=$lt_predep_objects_RC
18240
18241 # Dependencies to place after the objects being linked to create a
18242 # shared library.
18243 postdep_objects=$lt_postdep_objects_RC
18244
18245 # Dependencies to place before the objects being linked to create a
18246 # shared library.
18247 predeps=$lt_predeps_RC
18248
18249 # Dependencies to place after the objects being linked to create a
18250 # shared library.
18251 postdeps=$lt_postdeps_RC
18252
18253 # The library search path used internally by the compiler when linking
18254 # a shared library.
18255 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18256
18257 # Method to check whether dependent libraries are shared objects.
18258 deplibs_check_method=$lt_deplibs_check_method
18259
18260 # Command to use when deplibs_check_method == file_magic.
18261 file_magic_cmd=$lt_file_magic_cmd
18262
18263 # Flag that allows shared libraries with undefined symbols to be built.
18264 allow_undefined_flag=$lt_allow_undefined_flag_RC
18265
18266 # Flag that forces no undefined symbols.
18267 no_undefined_flag=$lt_no_undefined_flag_RC
18268
18269 # Commands used to finish a libtool library installation in a directory.
18270 finish_cmds=$lt_finish_cmds
18271
18272 # Same as above, but a single script fragment to be evaled but not shown.
18273 finish_eval=$lt_finish_eval
18274
18275 # Take the output of nm and produce a listing of raw symbols and C names.
18276 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18277
18278 # Transform the output of nm in a proper C declaration
18279 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18280
18281 # Transform the output of nm in a C name address pair
18282 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18283
18284 # This is the shared library runtime path variable.
18285 runpath_var=$runpath_var
18286
18287 # This is the shared library path variable.
18288 shlibpath_var=$shlibpath_var
18289
18290 # Is shlibpath searched before the hard-coded library search path?
18291 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18292
18293 # How to hardcode a shared library path into an executable.
18294 hardcode_action=$hardcode_action_RC
18295
18296 # Whether we should hardcode library paths into libraries.
18297 hardcode_into_libs=$hardcode_into_libs
18298
18299 # Flag to hardcode \$libdir into a binary during linking.
18300 # This must work even if \$libdir does not exist.
18301 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18302
18303 # If ld is used when linking, flag to hardcode \$libdir into
18304 # a binary during linking. This must work even if \$libdir does
18305 # not exist.
18306 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18307
18308 # Whether we need a single -rpath flag with a separated argument.
18309 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18310
18311 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18312 # resulting binary.
18313 hardcode_direct=$hardcode_direct_RC
18314
18315 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18316 # resulting binary.
18317 hardcode_minus_L=$hardcode_minus_L_RC
18318
18319 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18320 # the resulting binary.
18321 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18322
18323 # Set to yes if building a shared library automatically hardcodes DIR into the library
18324 # and all subsequent libraries and executables linked against it.
18325 hardcode_automatic=$hardcode_automatic_RC
18326
18327 # Variables whose values should be saved in libtool wrapper scripts and
18328 # restored at relink time.
18329 variables_saved_for_relink="$variables_saved_for_relink"
18330
18331 # Whether libtool must link a program against all its dependency libraries.
18332 link_all_deplibs=$link_all_deplibs_RC
18333
18334 # Compile-time system search path for libraries
18335 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18336
18337 # Run-time system search path for libraries
18338 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18339
18340 # Fix the shell variable \$srcfile for the compiler.
18341 fix_srcfile_path="$fix_srcfile_path_RC"
18342
18343 # Set to yes if exported symbols are required.
18344 always_export_symbols=$always_export_symbols_RC
18345
18346 # The commands to list exported symbols.
18347 export_symbols_cmds=$lt_export_symbols_cmds_RC
18348
18349 # The commands to extract the exported symbol list from a shared archive.
18350 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18351
18352 # Symbols that should not be listed in the preloaded symbols.
18353 exclude_expsyms=$lt_exclude_expsyms_RC
18354
18355 # Symbols that must always be exported.
18356 include_expsyms=$lt_include_expsyms_RC
18357
18358 # ### END LIBTOOL TAG CONFIG: $tagname
18359
18360 __EOF__
18361
18362
18363 else
18364   # If there is no Makefile yet, we rely on a make rule to execute
18365   # `config.status --recheck' to rerun these tests and create the
18366   # libtool script then.
18367   test -f Makefile && make "$ltmain"
18368 fi
18369
18370
18371 ac_ext=c
18372 ac_cpp='$CPP $CPPFLAGS'
18373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18376
18377 CC="$lt_save_CC"
18378
18379         ;;
18380
18381       *)
18382         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18383 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18384    { (exit 1); exit 1; }; }
18385         ;;
18386       esac
18387
18388       # Append the new tag name to the list of available tags.
18389       if test -n "$tagname" ; then
18390       available_tags="$available_tags $tagname"
18391     fi
18392     fi
18393   done
18394   IFS="$lt_save_ifs"
18395
18396   # Now substitute the updated list of available tags.
18397   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18398     mv "${ofile}T" "$ofile"
18399     chmod +x "$ofile"
18400   else
18401     rm -f "${ofile}T"
18402     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18403 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18404    { (exit 1); exit 1; }; }
18405   fi
18406 fi
18407
18408
18409
18410 # This can be used to rebuild libtool when needed
18411 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18412
18413 # Always use our own libtool.
18414 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18415
18416 # Prevent multiple expansion
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438 # Extract the first word of "pwd", so it can be a program name with args.
18439 set dummy pwd; ac_word=$2
18440 echo "$as_me:$LINENO: checking for $ac_word" >&5
18441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18442 if test "${ac_cv_path_RPWD+set}" = set; then
18443   echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445   case $RPWD in
18446   [\\/]* | ?:[\\/]*)
18447   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18448   ;;
18449   *)
18450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18451 for as_dir in $PATH
18452 do
18453   IFS=$as_save_IFS
18454   test -z "$as_dir" && as_dir=.
18455   for ac_exec_ext in '' $ac_executable_extensions; do
18456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18457     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18459     break 2
18460   fi
18461 done
18462 done
18463
18464   ;;
18465 esac
18466 fi
18467 RPWD=$ac_cv_path_RPWD
18468
18469 if test -n "$RPWD"; then
18470   echo "$as_me:$LINENO: result: $RPWD" >&5
18471 echo "${ECHO_T}$RPWD" >&6
18472 else
18473   echo "$as_me:$LINENO: result: no" >&5
18474 echo "${ECHO_T}no" >&6
18475 fi
18476
18477 # Extract the first word of "ar", so it can be a program name with args.
18478 set dummy ar; ac_word=$2
18479 echo "$as_me:$LINENO: checking for $ac_word" >&5
18480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18481 if test "${ac_cv_path_AR+set}" = set; then
18482   echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484   case $AR in
18485   [\\/]* | ?:[\\/]*)
18486   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18487   ;;
18488   *)
18489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18490 for as_dir in $PATH
18491 do
18492   IFS=$as_save_IFS
18493   test -z "$as_dir" && as_dir=.
18494   for ac_exec_ext in '' $ac_executable_extensions; do
18495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18496     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18498     break 2
18499   fi
18500 done
18501 done
18502
18503   ;;
18504 esac
18505 fi
18506 AR=$ac_cv_path_AR
18507
18508 if test -n "$AR"; then
18509   echo "$as_me:$LINENO: result: $AR" >&5
18510 echo "${ECHO_T}$AR" >&6
18511 else
18512   echo "$as_me:$LINENO: result: no" >&5
18513 echo "${ECHO_T}no" >&6
18514 fi
18515
18516 # Extract the first word of "sed", so it can be a program name with args.
18517 set dummy sed; ac_word=$2
18518 echo "$as_me:$LINENO: checking for $ac_word" >&5
18519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18520 if test "${ac_cv_path_SED+set}" = set; then
18521   echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523   case $SED in
18524   [\\/]* | ?:[\\/]*)
18525   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18526   ;;
18527   *)
18528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 for as_dir in $PATH
18530 do
18531   IFS=$as_save_IFS
18532   test -z "$as_dir" && as_dir=.
18533   for ac_exec_ext in '' $ac_executable_extensions; do
18534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18535     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18537     break 2
18538   fi
18539 done
18540 done
18541
18542   ;;
18543 esac
18544 fi
18545 SED=$ac_cv_path_SED
18546
18547 if test -n "$SED"; then
18548   echo "$as_me:$LINENO: result: $SED" >&5
18549 echo "${ECHO_T}$SED" >&6
18550 else
18551   echo "$as_me:$LINENO: result: no" >&5
18552 echo "${ECHO_T}no" >&6
18553 fi
18554
18555 # Extract the first word of "rm", so it can be a program name with args.
18556 set dummy rm; ac_word=$2
18557 echo "$as_me:$LINENO: checking for $ac_word" >&5
18558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18559 if test "${ac_cv_path_RM+set}" = set; then
18560   echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562   case $RM in
18563   [\\/]* | ?:[\\/]*)
18564   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18565   ;;
18566   *)
18567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18568 for as_dir in $PATH
18569 do
18570   IFS=$as_save_IFS
18571   test -z "$as_dir" && as_dir=.
18572   for ac_exec_ext in '' $ac_executable_extensions; do
18573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18574     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18576     break 2
18577   fi
18578 done
18579 done
18580
18581   ;;
18582 esac
18583 fi
18584 RM=$ac_cv_path_RM
18585
18586 if test -n "$RM"; then
18587   echo "$as_me:$LINENO: result: $RM" >&5
18588 echo "${ECHO_T}$RM" >&6
18589 else
18590   echo "$as_me:$LINENO: result: no" >&5
18591 echo "${ECHO_T}no" >&6
18592 fi
18593
18594 # Extract the first word of "echo", so it can be a program name with args.
18595 set dummy echo; ac_word=$2
18596 echo "$as_me:$LINENO: checking for $ac_word" >&5
18597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18598 if test "${ac_cv_path_ECHO+set}" = set; then
18599   echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601   case $ECHO in
18602   [\\/]* | ?:[\\/]*)
18603   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18604   ;;
18605   *)
18606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18607 for as_dir in $PATH
18608 do
18609   IFS=$as_save_IFS
18610   test -z "$as_dir" && as_dir=.
18611   for ac_exec_ext in '' $ac_executable_extensions; do
18612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18613     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18615     break 2
18616   fi
18617 done
18618 done
18619
18620   ;;
18621 esac
18622 fi
18623 ECHO=$ac_cv_path_ECHO
18624
18625 if test -n "$ECHO"; then
18626   echo "$as_me:$LINENO: result: $ECHO" >&5
18627 echo "${ECHO_T}$ECHO" >&6
18628 else
18629   echo "$as_me:$LINENO: result: no" >&5
18630 echo "${ECHO_T}no" >&6
18631 fi
18632
18633 # Extract the first word of "mkdir", so it can be a program name with args.
18634 set dummy mkdir; ac_word=$2
18635 echo "$as_me:$LINENO: checking for $ac_word" >&5
18636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18637 if test "${ac_cv_path_MKDIR+set}" = set; then
18638   echo $ECHO_N "(cached) $ECHO_C" >&6
18639 else
18640   case $MKDIR in
18641   [\\/]* | ?:[\\/]*)
18642   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18643   ;;
18644   *)
18645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18646 for as_dir in $PATH
18647 do
18648   IFS=$as_save_IFS
18649   test -z "$as_dir" && as_dir=.
18650   for ac_exec_ext in '' $ac_executable_extensions; do
18651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18652     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18654     break 2
18655   fi
18656 done
18657 done
18658
18659   ;;
18660 esac
18661 fi
18662 MKDIR=$ac_cv_path_MKDIR
18663
18664 if test -n "$MKDIR"; then
18665   echo "$as_me:$LINENO: result: $MKDIR" >&5
18666 echo "${ECHO_T}$MKDIR" >&6
18667 else
18668   echo "$as_me:$LINENO: result: no" >&5
18669 echo "${ECHO_T}no" >&6
18670 fi
18671
18672 # Extract the first word of "date", so it can be a program name with args.
18673 set dummy date; ac_word=$2
18674 echo "$as_me:$LINENO: checking for $ac_word" >&5
18675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18676 if test "${ac_cv_path_DATE+set}" = set; then
18677   echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679   case $DATE in
18680   [\\/]* | ?:[\\/]*)
18681   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18682   ;;
18683   *)
18684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685 for as_dir in $PATH
18686 do
18687   IFS=$as_save_IFS
18688   test -z "$as_dir" && as_dir=.
18689   for ac_exec_ext in '' $ac_executable_extensions; do
18690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18691     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18693     break 2
18694   fi
18695 done
18696 done
18697
18698   ;;
18699 esac
18700 fi
18701 DATE=$ac_cv_path_DATE
18702
18703 if test -n "$DATE"; then
18704   echo "$as_me:$LINENO: result: $DATE" >&5
18705 echo "${ECHO_T}$DATE" >&6
18706 else
18707   echo "$as_me:$LINENO: result: no" >&5
18708 echo "${ECHO_T}no" >&6
18709 fi
18710
18711 # Extract the first word of "mv", so it can be a program name with args.
18712 set dummy mv; ac_word=$2
18713 echo "$as_me:$LINENO: checking for $ac_word" >&5
18714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18715 if test "${ac_cv_path_MV+set}" = set; then
18716   echo $ECHO_N "(cached) $ECHO_C" >&6
18717 else
18718   case $MV in
18719   [\\/]* | ?:[\\/]*)
18720   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18721   ;;
18722   *)
18723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18724 for as_dir in $PATH
18725 do
18726   IFS=$as_save_IFS
18727   test -z "$as_dir" && as_dir=.
18728   for ac_exec_ext in '' $ac_executable_extensions; do
18729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18730     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18732     break 2
18733   fi
18734 done
18735 done
18736
18737   ;;
18738 esac
18739 fi
18740 MV=$ac_cv_path_MV
18741
18742 if test -n "$MV"; then
18743   echo "$as_me:$LINENO: result: $MV" >&5
18744 echo "${ECHO_T}$MV" >&6
18745 else
18746   echo "$as_me:$LINENO: result: no" >&5
18747 echo "${ECHO_T}no" >&6
18748 fi
18749
18750 # Extract the first word of "dot", so it can be a program name with args.
18751 set dummy dot; ac_word=$2
18752 echo "$as_me:$LINENO: checking for $ac_word" >&5
18753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18754 if test "${ac_cv_path_DOT+set}" = set; then
18755   echo $ECHO_N "(cached) $ECHO_C" >&6
18756 else
18757   case $DOT in
18758   [\\/]* | ?:[\\/]*)
18759   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18760   ;;
18761   *)
18762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18763 for as_dir in $PATH
18764 do
18765   IFS=$as_save_IFS
18766   test -z "$as_dir" && as_dir=.
18767   for ac_exec_ext in '' $ac_executable_extensions; do
18768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18769     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18771     break 2
18772   fi
18773 done
18774 done
18775
18776   ;;
18777 esac
18778 fi
18779 DOT=$ac_cv_path_DOT
18780
18781 if test -n "$DOT"; then
18782   echo "$as_me:$LINENO: result: $DOT" >&5
18783 echo "${ECHO_T}$DOT" >&6
18784 else
18785   echo "$as_me:$LINENO: result: no" >&5
18786 echo "${ECHO_T}no" >&6
18787 fi
18788
18789 # Extract the first word of "etags", so it can be a program name with args.
18790 set dummy etags; ac_word=$2
18791 echo "$as_me:$LINENO: checking for $ac_word" >&5
18792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18793 if test "${ac_cv_path_ETAGS+set}" = set; then
18794   echo $ECHO_N "(cached) $ECHO_C" >&6
18795 else
18796   case $ETAGS in
18797   [\\/]* | ?:[\\/]*)
18798   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18799   ;;
18800   *)
18801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18802 for as_dir in $PATH
18803 do
18804   IFS=$as_save_IFS
18805   test -z "$as_dir" && as_dir=.
18806   for ac_exec_ext in '' $ac_executable_extensions; do
18807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18808     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18810     break 2
18811   fi
18812 done
18813 done
18814
18815   ;;
18816 esac
18817 fi
18818 ETAGS=$ac_cv_path_ETAGS
18819
18820 if test -n "$ETAGS"; then
18821   echo "$as_me:$LINENO: result: $ETAGS" >&5
18822 echo "${ECHO_T}$ETAGS" >&6
18823 else
18824   echo "$as_me:$LINENO: result: no" >&5
18825 echo "${ECHO_T}no" >&6
18826 fi
18827
18828 # Extract the first word of "purify", so it can be a program name with args.
18829 set dummy purify; ac_word=$2
18830 echo "$as_me:$LINENO: checking for $ac_word" >&5
18831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18832 if test "${ac_cv_path_PURIFY+set}" = set; then
18833   echo $ECHO_N "(cached) $ECHO_C" >&6
18834 else
18835   case $PURIFY in
18836   [\\/]* | ?:[\\/]*)
18837   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18838   ;;
18839   *)
18840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18841 for as_dir in $PATH
18842 do
18843   IFS=$as_save_IFS
18844   test -z "$as_dir" && as_dir=.
18845   for ac_exec_ext in '' $ac_executable_extensions; do
18846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18847     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18849     break 2
18850   fi
18851 done
18852 done
18853
18854   ;;
18855 esac
18856 fi
18857 PURIFY=$ac_cv_path_PURIFY
18858
18859 if test -n "$PURIFY"; then
18860   echo "$as_me:$LINENO: result: $PURIFY" >&5
18861 echo "${ECHO_T}$PURIFY" >&6
18862 else
18863   echo "$as_me:$LINENO: result: no" >&5
18864 echo "${ECHO_T}no" >&6
18865 fi
18866
18867 # Extract the first word of "python", so it can be a program name with args.
18868 set dummy python; ac_word=$2
18869 echo "$as_me:$LINENO: checking for $ac_word" >&5
18870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18871 if test "${ac_cv_path_PYTHON+set}" = set; then
18872   echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874   case $PYTHON in
18875   [\\/]* | ?:[\\/]*)
18876   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18877   ;;
18878   *)
18879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18880 for as_dir in $PATH
18881 do
18882   IFS=$as_save_IFS
18883   test -z "$as_dir" && as_dir=.
18884   for ac_exec_ext in '' $ac_executable_extensions; do
18885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18886     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18888     break 2
18889   fi
18890 done
18891 done
18892
18893   ;;
18894 esac
18895 fi
18896 PYTHON=$ac_cv_path_PYTHON
18897
18898 if test -n "$PYTHON"; then
18899   echo "$as_me:$LINENO: result: $PYTHON" >&5
18900 echo "${ECHO_T}$PYTHON" >&6
18901 else
18902   echo "$as_me:$LINENO: result: no" >&5
18903 echo "${ECHO_T}no" >&6
18904 fi
18905
18906 # Extract the first word of "qmtest", so it can be a program name with args.
18907 set dummy qmtest; ac_word=$2
18908 echo "$as_me:$LINENO: checking for $ac_word" >&5
18909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18910 if test "${ac_cv_path_QMTEST+set}" = set; then
18911   echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913   case $QMTEST in
18914   [\\/]* | ?:[\\/]*)
18915   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18916   ;;
18917   *)
18918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18919 for as_dir in $PATH
18920 do
18921   IFS=$as_save_IFS
18922   test -z "$as_dir" && as_dir=.
18923   for ac_exec_ext in '' $ac_executable_extensions; do
18924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18925     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18927     break 2
18928   fi
18929 done
18930 done
18931
18932   ;;
18933 esac
18934 fi
18935 QMTEST=$ac_cv_path_QMTEST
18936
18937 if test -n "$QMTEST"; then
18938   echo "$as_me:$LINENO: result: $QMTEST" >&5
18939 echo "${ECHO_T}$QMTEST" >&6
18940 else
18941   echo "$as_me:$LINENO: result: no" >&5
18942 echo "${ECHO_T}no" >&6
18943 fi
18944
18945
18946 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18947 pymajor=`echo $pyversion | cut -d. -f1`
18948 pyminor=`echo $pyversion | cut -d. -f2`
18949
18950 if test "$pymajor" -ge "2"
18951 then
18952         if test "$pymajor" -eq "2"
18953         then
18954                 if test "$pyminor" -lt "2"
18955                 then
18956                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18957 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18958    { (exit 1); exit 1; }; }
18959                 fi
18960         fi
18961 else
18962         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18963 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18964    { (exit 1); exit 1; }; }
18965 fi
18966
18967
18968
18969
18970
18971 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18972 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18973 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18974   echo $ECHO_N "(cached) $ECHO_C" >&6
18975 else
18976   ac_check_lib_save_LIBS=$LIBS
18977 LIBS="-lelf  $LIBS"
18978 cat >conftest.$ac_ext <<_ACEOF
18979 #line $LINENO "configure"
18980 /* confdefs.h.  */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h.  */
18985
18986 /* Override any gcc2 internal prototype to avoid an error.  */
18987 #ifdef __cplusplus
18988 extern "C"
18989 #endif
18990 /* We use char because int might match the return type of a gcc2
18991    builtin and then its argument prototype would still apply.  */
18992 char elf_begin ();
18993 int
18994 main ()
18995 {
18996 elf_begin ();
18997   ;
18998   return 0;
18999 }
19000 _ACEOF
19001 rm -f conftest.$ac_objext conftest$ac_exeext
19002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19003   (eval $ac_link) 2>&5
19004   ac_status=$?
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); } &&
19007          { ac_try='test -s conftest$ac_exeext'
19008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009   (eval $ac_try) 2>&5
19010   ac_status=$?
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); }; }; then
19013   ac_cv_lib_elf_elf_begin=yes
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018 ac_cv_lib_elf_elf_begin=no
19019 fi
19020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19021 LIBS=$ac_check_lib_save_LIBS
19022 fi
19023 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19024 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19025 if test $ac_cv_lib_elf_elf_begin = yes; then
19026   cat >>confdefs.h <<_ACEOF
19027 #define HAVE_LIBELF 1
19028 _ACEOF
19029
19030   LIBS="-lelf $LIBS"
19031
19032 fi
19033
19034
19035 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19036 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19037 if test "${ac_cv_search_dlopen+set}" = set; then
19038   echo $ECHO_N "(cached) $ECHO_C" >&6
19039 else
19040   ac_func_search_save_LIBS=$LIBS
19041 ac_cv_search_dlopen=no
19042 cat >conftest.$ac_ext <<_ACEOF
19043 #line $LINENO "configure"
19044 /* confdefs.h.  */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h.  */
19049
19050 /* Override any gcc2 internal prototype to avoid an error.  */
19051 #ifdef __cplusplus
19052 extern "C"
19053 #endif
19054 /* We use char because int might match the return type of a gcc2
19055    builtin and then its argument prototype would still apply.  */
19056 char dlopen ();
19057 int
19058 main ()
19059 {
19060 dlopen ();
19061   ;
19062   return 0;
19063 }
19064 _ACEOF
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19067   (eval $ac_link) 2>&5
19068   ac_status=$?
19069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070   (exit $ac_status); } &&
19071          { ac_try='test -s conftest$ac_exeext'
19072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073   (eval $ac_try) 2>&5
19074   ac_status=$?
19075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076   (exit $ac_status); }; }; then
19077   ac_cv_search_dlopen="none required"
19078 else
19079   echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19081
19082 fi
19083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19084 if test "$ac_cv_search_dlopen" = no; then
19085   for ac_lib in dl; do
19086     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19087     cat >conftest.$ac_ext <<_ACEOF
19088 #line $LINENO "configure"
19089 /* confdefs.h.  */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h.  */
19094
19095 /* Override any gcc2 internal prototype to avoid an error.  */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 /* We use char because int might match the return type of a gcc2
19100    builtin and then its argument prototype would still apply.  */
19101 char dlopen ();
19102 int
19103 main ()
19104 {
19105 dlopen ();
19106   ;
19107   return 0;
19108 }
19109 _ACEOF
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19112   (eval $ac_link) 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); } &&
19116          { ac_try='test -s conftest$ac_exeext'
19117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118   (eval $ac_try) 2>&5
19119   ac_status=$?
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); }; }; then
19122   ac_cv_search_dlopen="-l$ac_lib"
19123 break
19124 else
19125   echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 fi
19129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19130   done
19131 fi
19132 LIBS=$ac_func_search_save_LIBS
19133 fi
19134 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19135 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19136 if test "$ac_cv_search_dlopen" != no; then
19137   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19138
19139 else
19140   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19141 echo "$as_me: error: dlopen() required but not found" >&2;}
19142    { (exit 1); exit 1; }; }
19143 fi
19144
19145
19146 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19147 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19148 if test "${ac_cv_search_mallinfo+set}" = set; then
19149   echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151   ac_func_search_save_LIBS=$LIBS
19152 ac_cv_search_mallinfo=no
19153 cat >conftest.$ac_ext <<_ACEOF
19154 #line $LINENO "configure"
19155 /* confdefs.h.  */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h.  */
19160
19161 /* Override any gcc2 internal prototype to avoid an error.  */
19162 #ifdef __cplusplus
19163 extern "C"
19164 #endif
19165 /* We use char because int might match the return type of a gcc2
19166    builtin and then its argument prototype would still apply.  */
19167 char mallinfo ();
19168 int
19169 main ()
19170 {
19171 mallinfo ();
19172   ;
19173   return 0;
19174 }
19175 _ACEOF
19176 rm -f conftest.$ac_objext conftest$ac_exeext
19177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19178   (eval $ac_link) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); } &&
19182          { ac_try='test -s conftest$ac_exeext'
19183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184   (eval $ac_try) 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); }; }; then
19188   ac_cv_search_mallinfo="none required"
19189 else
19190   echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19192
19193 fi
19194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19195 if test "$ac_cv_search_mallinfo" = no; then
19196   for ac_lib in malloc; do
19197     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19198     cat >conftest.$ac_ext <<_ACEOF
19199 #line $LINENO "configure"
19200 /* confdefs.h.  */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h.  */
19205
19206 /* Override any gcc2 internal prototype to avoid an error.  */
19207 #ifdef __cplusplus
19208 extern "C"
19209 #endif
19210 /* We use char because int might match the return type of a gcc2
19211    builtin and then its argument prototype would still apply.  */
19212 char mallinfo ();
19213 int
19214 main ()
19215 {
19216 mallinfo ();
19217   ;
19218   return 0;
19219 }
19220 _ACEOF
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223   (eval $ac_link) 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); } &&
19227          { ac_try='test -s conftest$ac_exeext'
19228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229   (eval $ac_try) 2>&5
19230   ac_status=$?
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); }; }; then
19233   ac_cv_search_mallinfo="-l$ac_lib"
19234 break
19235 else
19236   echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19238
19239 fi
19240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19241   done
19242 fi
19243 LIBS=$ac_func_search_save_LIBS
19244 fi
19245 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19246 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19247 if test "$ac_cv_search_mallinfo" != no; then
19248   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19249   cat >>confdefs.h <<\_ACEOF
19250 #define HAVE_MALLINFO 1
19251 _ACEOF
19252
19253 fi
19254
19255
19256
19257 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19258 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19259 if test "${ac_cv_header_stdc+set}" = set; then
19260   echo $ECHO_N "(cached) $ECHO_C" >&6
19261 else
19262   cat >conftest.$ac_ext <<_ACEOF
19263 #line $LINENO "configure"
19264 /* confdefs.h.  */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h.  */
19269 #include <stdlib.h>
19270 #include <stdarg.h>
19271 #include <string.h>
19272 #include <float.h>
19273
19274 int
19275 main ()
19276 {
19277
19278   ;
19279   return 0;
19280 }
19281 _ACEOF
19282 rm -f conftest.$ac_objext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19284   (eval $ac_compile) 2>&5
19285   ac_status=$?
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); } &&
19288          { ac_try='test -s conftest.$ac_objext'
19289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290   (eval $ac_try) 2>&5
19291   ac_status=$?
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); }; }; then
19294   ac_cv_header_stdc=yes
19295 else
19296   echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19298
19299 ac_cv_header_stdc=no
19300 fi
19301 rm -f conftest.$ac_objext conftest.$ac_ext
19302
19303 if test $ac_cv_header_stdc = yes; then
19304   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19305   cat >conftest.$ac_ext <<_ACEOF
19306 #line $LINENO "configure"
19307 /* confdefs.h.  */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h.  */
19312 #include <string.h>
19313
19314 _ACEOF
19315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19316   $EGREP "memchr" >/dev/null 2>&1; then
19317   :
19318 else
19319   ac_cv_header_stdc=no
19320 fi
19321 rm -f conftest*
19322
19323 fi
19324
19325 if test $ac_cv_header_stdc = yes; then
19326   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19327   cat >conftest.$ac_ext <<_ACEOF
19328 #line $LINENO "configure"
19329 /* confdefs.h.  */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h.  */
19334 #include <stdlib.h>
19335
19336 _ACEOF
19337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19338   $EGREP "free" >/dev/null 2>&1; then
19339   :
19340 else
19341   ac_cv_header_stdc=no
19342 fi
19343 rm -f conftest*
19344
19345 fi
19346
19347 if test $ac_cv_header_stdc = yes; then
19348   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19349   if test "$cross_compiling" = yes; then
19350   :
19351 else
19352   cat >conftest.$ac_ext <<_ACEOF
19353 #line $LINENO "configure"
19354 /* confdefs.h.  */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h.  */
19359 #include <ctype.h>
19360 #if ((' ' & 0x0FF) == 0x020)
19361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19363 #else
19364 # define ISLOWER(c) \
19365                    (('a' <= (c) && (c) <= 'i') \
19366                      || ('j' <= (c) && (c) <= 'r') \
19367                      || ('s' <= (c) && (c) <= 'z'))
19368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19369 #endif
19370
19371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19372 int
19373 main ()
19374 {
19375   int i;
19376   for (i = 0; i < 256; i++)
19377     if (XOR (islower (i), ISLOWER (i))
19378         || toupper (i) != TOUPPER (i))
19379       exit(2);
19380   exit (0);
19381 }
19382 _ACEOF
19383 rm -f conftest$ac_exeext
19384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19385   (eval $ac_link) 2>&5
19386   ac_status=$?
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390   (eval $ac_try) 2>&5
19391   ac_status=$?
19392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); }; }; then
19394   :
19395 else
19396   echo "$as_me: program exited with status $ac_status" >&5
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19399
19400 ( exit $ac_status )
19401 ac_cv_header_stdc=no
19402 fi
19403 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19404 fi
19405 fi
19406 fi
19407 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19408 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19409 if test $ac_cv_header_stdc = yes; then
19410
19411 cat >>confdefs.h <<\_ACEOF
19412 #define STDC_HEADERS 1
19413 _ACEOF
19414
19415 fi
19416
19417 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19418 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19419 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19420   echo $ECHO_N "(cached) $ECHO_C" >&6
19421 else
19422   cat >conftest.$ac_ext <<_ACEOF
19423 #line $LINENO "configure"
19424 /* confdefs.h.  */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h.  */
19429 #include <sys/types.h>
19430 #include <sys/wait.h>
19431 #ifndef WEXITSTATUS
19432 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19433 #endif
19434 #ifndef WIFEXITED
19435 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19436 #endif
19437
19438 int
19439 main ()
19440 {
19441   int s;
19442   wait (&s);
19443   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19444   ;
19445   return 0;
19446 }
19447 _ACEOF
19448 rm -f conftest.$ac_objext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19450   (eval $ac_compile) 2>&5
19451   ac_status=$?
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); } &&
19454          { ac_try='test -s conftest.$ac_objext'
19455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456   (eval $ac_try) 2>&5
19457   ac_status=$?
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); }; }; then
19460   ac_cv_header_sys_wait_h=yes
19461 else
19462   echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19464
19465 ac_cv_header_sys_wait_h=no
19466 fi
19467 rm -f conftest.$ac_objext conftest.$ac_ext
19468 fi
19469 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19470 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19471 if test $ac_cv_header_sys_wait_h = yes; then
19472
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_SYS_WAIT_H 1
19475 _ACEOF
19476
19477 fi
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19489 do
19490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19492   echo "$as_me:$LINENO: checking for $ac_header" >&5
19493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19495   echo $ECHO_N "(cached) $ECHO_C" >&6
19496 fi
19497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19499 else
19500   # Is the header compilable?
19501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19503 cat >conftest.$ac_ext <<_ACEOF
19504 #line $LINENO "configure"
19505 /* confdefs.h.  */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h.  */
19510 $ac_includes_default
19511 #include <$ac_header>
19512 _ACEOF
19513 rm -f conftest.$ac_objext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515   (eval $ac_compile) 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } &&
19519          { ac_try='test -s conftest.$ac_objext'
19520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521   (eval $ac_try) 2>&5
19522   ac_status=$?
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); }; }; then
19525   ac_header_compiler=yes
19526 else
19527   echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 ac_header_compiler=no
19531 fi
19532 rm -f conftest.$ac_objext conftest.$ac_ext
19533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19534 echo "${ECHO_T}$ac_header_compiler" >&6
19535
19536 # Is the header present?
19537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19539 cat >conftest.$ac_ext <<_ACEOF
19540 #line $LINENO "configure"
19541 /* confdefs.h.  */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h.  */
19546 #include <$ac_header>
19547 _ACEOF
19548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19550   ac_status=$?
19551   grep -v '^ *+' conftest.er1 >conftest.err
19552   rm -f conftest.er1
19553   cat conftest.err >&5
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); } >/dev/null; then
19556   if test -s conftest.err; then
19557     ac_cpp_err=$ac_c_preproc_warn_flag
19558   else
19559     ac_cpp_err=
19560   fi
19561 else
19562   ac_cpp_err=yes
19563 fi
19564 if test -z "$ac_cpp_err"; then
19565   ac_header_preproc=yes
19566 else
19567   echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570   ac_header_preproc=no
19571 fi
19572 rm -f conftest.err conftest.$ac_ext
19573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19574 echo "${ECHO_T}$ac_header_preproc" >&6
19575
19576 # So?  What about this header?
19577 case $ac_header_compiler:$ac_header_preproc in
19578   yes:no )
19579     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19583     (
19584       cat <<\_ASBOX
19585 ## ------------------------------------ ##
19586 ## Report this to bug-autoconf@gnu.org. ##
19587 ## ------------------------------------ ##
19588 _ASBOX
19589     ) |
19590       sed "s/^/$as_me: WARNING:     /" >&2
19591     ;;
19592   no:yes )
19593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19595     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19599     (
19600       cat <<\_ASBOX
19601 ## ------------------------------------ ##
19602 ## Report this to bug-autoconf@gnu.org. ##
19603 ## ------------------------------------ ##
19604 _ASBOX
19605     ) |
19606       sed "s/^/$as_me: WARNING:     /" >&2
19607     ;;
19608 esac
19609 echo "$as_me:$LINENO: checking for $ac_header" >&5
19610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19612   echo $ECHO_N "(cached) $ECHO_C" >&6
19613 else
19614   eval "$as_ac_Header=$ac_header_preproc"
19615 fi
19616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19618
19619 fi
19620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19621   cat >>confdefs.h <<_ACEOF
19622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19623 _ACEOF
19624
19625 fi
19626
19627 done
19628
19629
19630
19631
19632
19633
19634 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19635 do
19636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19638   echo "$as_me:$LINENO: checking for $ac_header" >&5
19639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19641   echo $ECHO_N "(cached) $ECHO_C" >&6
19642 fi
19643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19645 else
19646   # Is the header compilable?
19647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19649 cat >conftest.$ac_ext <<_ACEOF
19650 #line $LINENO "configure"
19651 /* confdefs.h.  */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h.  */
19656 $ac_includes_default
19657 #include <$ac_header>
19658 _ACEOF
19659 rm -f conftest.$ac_objext
19660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19661   (eval $ac_compile) 2>&5
19662   ac_status=$?
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); } &&
19665          { ac_try='test -s conftest.$ac_objext'
19666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667   (eval $ac_try) 2>&5
19668   ac_status=$?
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); }; }; then
19671   ac_header_compiler=yes
19672 else
19673   echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676 ac_header_compiler=no
19677 fi
19678 rm -f conftest.$ac_objext conftest.$ac_ext
19679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19680 echo "${ECHO_T}$ac_header_compiler" >&6
19681
19682 # Is the header present?
19683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19686 #line $LINENO "configure"
19687 /* confdefs.h.  */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h.  */
19692 #include <$ac_header>
19693 _ACEOF
19694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19696   ac_status=$?
19697   grep -v '^ *+' conftest.er1 >conftest.err
19698   rm -f conftest.er1
19699   cat conftest.err >&5
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); } >/dev/null; then
19702   if test -s conftest.err; then
19703     ac_cpp_err=$ac_c_preproc_warn_flag
19704   else
19705     ac_cpp_err=
19706   fi
19707 else
19708   ac_cpp_err=yes
19709 fi
19710 if test -z "$ac_cpp_err"; then
19711   ac_header_preproc=yes
19712 else
19713   echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716   ac_header_preproc=no
19717 fi
19718 rm -f conftest.err conftest.$ac_ext
19719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19720 echo "${ECHO_T}$ac_header_preproc" >&6
19721
19722 # So?  What about this header?
19723 case $ac_header_compiler:$ac_header_preproc in
19724   yes:no )
19725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19729     (
19730       cat <<\_ASBOX
19731 ## ------------------------------------ ##
19732 ## Report this to bug-autoconf@gnu.org. ##
19733 ## ------------------------------------ ##
19734 _ASBOX
19735     ) |
19736       sed "s/^/$as_me: WARNING:     /" >&2
19737     ;;
19738   no:yes )
19739     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19741     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19745     (
19746       cat <<\_ASBOX
19747 ## ------------------------------------ ##
19748 ## Report this to bug-autoconf@gnu.org. ##
19749 ## ------------------------------------ ##
19750 _ASBOX
19751     ) |
19752       sed "s/^/$as_me: WARNING:     /" >&2
19753     ;;
19754 esac
19755 echo "$as_me:$LINENO: checking for $ac_header" >&5
19756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760   eval "$as_ac_Header=$ac_header_preproc"
19761 fi
19762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19764
19765 fi
19766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19767   cat >>confdefs.h <<_ACEOF
19768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19769 _ACEOF
19770
19771 fi
19772
19773 done
19774
19775
19776
19777
19778 for ac_header in dlfcn.h link.h
19779 do
19780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782   echo "$as_me:$LINENO: checking for $ac_header" >&5
19783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19785   echo $ECHO_N "(cached) $ECHO_C" >&6
19786 fi
19787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19789 else
19790   # Is the header compilable?
19791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19793 cat >conftest.$ac_ext <<_ACEOF
19794 #line $LINENO "configure"
19795 /* confdefs.h.  */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h.  */
19800 $ac_includes_default
19801 #include <$ac_header>
19802 _ACEOF
19803 rm -f conftest.$ac_objext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19805   (eval $ac_compile) 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); } &&
19809          { ac_try='test -s conftest.$ac_objext'
19810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811   (eval $ac_try) 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; }; then
19815   ac_header_compiler=yes
19816 else
19817   echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 ac_header_compiler=no
19821 fi
19822 rm -f conftest.$ac_objext conftest.$ac_ext
19823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19824 echo "${ECHO_T}$ac_header_compiler" >&6
19825
19826 # Is the header present?
19827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19829 cat >conftest.$ac_ext <<_ACEOF
19830 #line $LINENO "configure"
19831 /* confdefs.h.  */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h.  */
19836 #include <$ac_header>
19837 _ACEOF
19838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19840   ac_status=$?
19841   grep -v '^ *+' conftest.er1 >conftest.err
19842   rm -f conftest.er1
19843   cat conftest.err >&5
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); } >/dev/null; then
19846   if test -s conftest.err; then
19847     ac_cpp_err=$ac_c_preproc_warn_flag
19848   else
19849     ac_cpp_err=
19850   fi
19851 else
19852   ac_cpp_err=yes
19853 fi
19854 if test -z "$ac_cpp_err"; then
19855   ac_header_preproc=yes
19856 else
19857   echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19859
19860   ac_header_preproc=no
19861 fi
19862 rm -f conftest.err conftest.$ac_ext
19863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19864 echo "${ECHO_T}$ac_header_preproc" >&6
19865
19866 # So?  What about this header?
19867 case $ac_header_compiler:$ac_header_preproc in
19868   yes:no )
19869     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19873     (
19874       cat <<\_ASBOX
19875 ## ------------------------------------ ##
19876 ## Report this to bug-autoconf@gnu.org. ##
19877 ## ------------------------------------ ##
19878 _ASBOX
19879     ) |
19880       sed "s/^/$as_me: WARNING:     /" >&2
19881     ;;
19882   no:yes )
19883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19885     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19889     (
19890       cat <<\_ASBOX
19891 ## ------------------------------------ ##
19892 ## Report this to bug-autoconf@gnu.org. ##
19893 ## ------------------------------------ ##
19894 _ASBOX
19895     ) |
19896       sed "s/^/$as_me: WARNING:     /" >&2
19897     ;;
19898 esac
19899 echo "$as_me:$LINENO: checking for $ac_header" >&5
19900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19902   echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904   eval "$as_ac_Header=$ac_header_preproc"
19905 fi
19906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19908
19909 fi
19910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19911   cat >>confdefs.h <<_ACEOF
19912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19913 _ACEOF
19914
19915 fi
19916
19917 done
19918
19919
19920
19921 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19922 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19923 if test "${ac_cv_c_const+set}" = set; then
19924   echo $ECHO_N "(cached) $ECHO_C" >&6
19925 else
19926   cat >conftest.$ac_ext <<_ACEOF
19927 #line $LINENO "configure"
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933
19934 int
19935 main ()
19936 {
19937 /* FIXME: Include the comments suggested by Paul. */
19938 #ifndef __cplusplus
19939   /* Ultrix mips cc rejects this.  */
19940   typedef int charset[2];
19941   const charset x;
19942   /* SunOS 4.1.1 cc rejects this.  */
19943   char const *const *ccp;
19944   char **p;
19945   /* NEC SVR4.0.2 mips cc rejects this.  */
19946   struct point {int x, y;};
19947   static struct point const zero = {0,0};
19948   /* AIX XL C 1.02.0.0 rejects this.
19949      It does not let you subtract one const X* pointer from another in
19950      an arm of an if-expression whose if-part is not a constant
19951      expression */
19952   const char *g = "string";
19953   ccp = &g + (g ? g-g : 0);
19954   /* HPUX 7.0 cc rejects these. */
19955   ++ccp;
19956   p = (char**) ccp;
19957   ccp = (char const *const *) p;
19958   { /* SCO 3.2v4 cc rejects this.  */
19959     char *t;
19960     char const *s = 0 ? (char *) 0 : (char const *) 0;
19961
19962     *t++ = 0;
19963   }
19964   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19965     int x[] = {25, 17};
19966     const int *foo = &x[0];
19967     ++foo;
19968   }
19969   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19970     typedef const int *iptr;
19971     iptr p = 0;
19972     ++p;
19973   }
19974   { /* AIX XL C 1.02.0.0 rejects this saying
19975        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19976     struct s { int j; const int *ap[3]; };
19977     struct s *b; b->j = 5;
19978   }
19979   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19980     const int foo = 10;
19981   }
19982 #endif
19983
19984   ;
19985   return 0;
19986 }
19987 _ACEOF
19988 rm -f conftest.$ac_objext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19990   (eval $ac_compile) 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); } &&
19994          { ac_try='test -s conftest.$ac_objext'
19995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996   (eval $ac_try) 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }; }; then
20000   ac_cv_c_const=yes
20001 else
20002   echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005 ac_cv_c_const=no
20006 fi
20007 rm -f conftest.$ac_objext conftest.$ac_ext
20008 fi
20009 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20010 echo "${ECHO_T}$ac_cv_c_const" >&6
20011 if test $ac_cv_c_const = no; then
20012
20013 cat >>confdefs.h <<\_ACEOF
20014 #define const
20015 _ACEOF
20016
20017 fi
20018
20019 echo "$as_me:$LINENO: checking for inline" >&5
20020 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20021 if test "${ac_cv_c_inline+set}" = set; then
20022   echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024   ac_cv_c_inline=no
20025 for ac_kw in inline __inline__ __inline; do
20026   cat >conftest.$ac_ext <<_ACEOF
20027 #line $LINENO "configure"
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033 #ifndef __cplusplus
20034 typedef int foo_t;
20035 static $ac_kw foo_t static_foo () {return 0; }
20036 $ac_kw foo_t foo () {return 0; }
20037 #endif
20038
20039 _ACEOF
20040 rm -f conftest.$ac_objext
20041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20042   (eval $ac_compile) 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); } &&
20046          { ac_try='test -s conftest.$ac_objext'
20047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048   (eval $ac_try) 2>&5
20049   ac_status=$?
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); }; }; then
20052   ac_cv_c_inline=$ac_kw; break
20053 else
20054   echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057 fi
20058 rm -f conftest.$ac_objext conftest.$ac_ext
20059 done
20060
20061 fi
20062 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20063 echo "${ECHO_T}$ac_cv_c_inline" >&6
20064 case $ac_cv_c_inline in
20065   inline | yes) ;;
20066   no)
20067 cat >>confdefs.h <<\_ACEOF
20068 #define inline
20069 _ACEOF
20070  ;;
20071   *)  cat >>confdefs.h <<_ACEOF
20072 #define inline $ac_cv_c_inline
20073 _ACEOF
20074  ;;
20075 esac
20076
20077
20078 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20079 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20080 if test "${ac_cv_c_bigendian+set}" = set; then
20081   echo $ECHO_N "(cached) $ECHO_C" >&6
20082 else
20083   # See if sys/param.h defines the BYTE_ORDER macro.
20084 cat >conftest.$ac_ext <<_ACEOF
20085 #line $LINENO "configure"
20086 /* confdefs.h.  */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h.  */
20091 #include <sys/types.h>
20092 #include <sys/param.h>
20093
20094 int
20095 main ()
20096 {
20097 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20098  bogus endian macros
20099 #endif
20100
20101   ;
20102   return 0;
20103 }
20104 _ACEOF
20105 rm -f conftest.$ac_objext
20106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20107   (eval $ac_compile) 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } &&
20111          { ac_try='test -s conftest.$ac_objext'
20112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113   (eval $ac_try) 2>&5
20114   ac_status=$?
20115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); }; }; then
20117   # It does; now see whether it defined to BIG_ENDIAN or not.
20118 cat >conftest.$ac_ext <<_ACEOF
20119 #line $LINENO "configure"
20120 /* confdefs.h.  */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h.  */
20125 #include <sys/types.h>
20126 #include <sys/param.h>
20127
20128 int
20129 main ()
20130 {
20131 #if BYTE_ORDER != BIG_ENDIAN
20132  not big endian
20133 #endif
20134
20135   ;
20136   return 0;
20137 }
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141   (eval $ac_compile) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } &&
20145          { ac_try='test -s conftest.$ac_objext'
20146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147   (eval $ac_try) 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; }; then
20151   ac_cv_c_bigendian=yes
20152 else
20153   echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156 ac_cv_c_bigendian=no
20157 fi
20158 rm -f conftest.$ac_objext conftest.$ac_ext
20159 else
20160   echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163 # It does not; compile a test program.
20164 if test "$cross_compiling" = yes; then
20165   # try to guess the endianness by grepping values into an object file
20166   ac_cv_c_bigendian=unknown
20167   cat >conftest.$ac_ext <<_ACEOF
20168 #line $LINENO "configure"
20169 /* confdefs.h.  */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h.  */
20174 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20175 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20176 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20177 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20178 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20179 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20180 int
20181 main ()
20182 {
20183  _ascii (); _ebcdic ();
20184   ;
20185   return 0;
20186 }
20187 _ACEOF
20188 rm -f conftest.$ac_objext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20190   (eval $ac_compile) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); } &&
20194          { ac_try='test -s conftest.$ac_objext'
20195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196   (eval $ac_try) 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; }; then
20200   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20201   ac_cv_c_bigendian=yes
20202 fi
20203 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20204   if test "$ac_cv_c_bigendian" = unknown; then
20205     ac_cv_c_bigendian=no
20206   else
20207     # finding both strings is unlikely to happen, but who knows?
20208     ac_cv_c_bigendian=unknown
20209   fi
20210 fi
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 fi
20216 rm -f conftest.$ac_objext conftest.$ac_ext
20217 else
20218   cat >conftest.$ac_ext <<_ACEOF
20219 #line $LINENO "configure"
20220 /* confdefs.h.  */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h.  */
20225 int
20226 main ()
20227 {
20228   /* Are we little or big endian?  From Harbison&Steele.  */
20229   union
20230   {
20231     long l;
20232     char c[sizeof (long)];
20233   } u;
20234   u.l = 1;
20235   exit (u.c[sizeof (long) - 1] == 1);
20236 }
20237 _ACEOF
20238 rm -f conftest$ac_exeext
20239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20240   (eval $ac_link) 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245   (eval $ac_try) 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }; }; then
20249   ac_cv_c_bigendian=no
20250 else
20251   echo "$as_me: program exited with status $ac_status" >&5
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255 ( exit $ac_status )
20256 ac_cv_c_bigendian=yes
20257 fi
20258 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20259 fi
20260 fi
20261 rm -f conftest.$ac_objext conftest.$ac_ext
20262 fi
20263 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20264 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20265 case $ac_cv_c_bigendian in
20266   yes)
20267     cat >>confdefs.h <<\_ACEOF
20268 #define ENDIAN_BIG 1
20269 _ACEOF
20270  ;;
20271   no)
20272     cat >>confdefs.h <<\_ACEOF
20273 #define ENDIAN_LITTLE 1
20274 _ACEOF
20275  ;;
20276   *)
20277     { { echo "$as_me:$LINENO: error: unknown endianness
20278 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20279 echo "$as_me: error: unknown endianness
20280 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20281    { (exit 1); exit 1; }; } ;;
20282 esac
20283
20284
20285 echo "$as_me:$LINENO: checking for pid_t" >&5
20286 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20287 if test "${ac_cv_type_pid_t+set}" = set; then
20288   echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290   cat >conftest.$ac_ext <<_ACEOF
20291 #line $LINENO "configure"
20292 /* confdefs.h.  */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h.  */
20297 $ac_includes_default
20298 int
20299 main ()
20300 {
20301 if ((pid_t *) 0)
20302   return 0;
20303 if (sizeof (pid_t))
20304   return 0;
20305   ;
20306   return 0;
20307 }
20308 _ACEOF
20309 rm -f conftest.$ac_objext
20310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20311   (eval $ac_compile) 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); } &&
20315          { ac_try='test -s conftest.$ac_objext'
20316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317   (eval $ac_try) 2>&5
20318   ac_status=$?
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); }; }; then
20321   ac_cv_type_pid_t=yes
20322 else
20323   echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20325
20326 ac_cv_type_pid_t=no
20327 fi
20328 rm -f conftest.$ac_objext conftest.$ac_ext
20329 fi
20330 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20331 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20332 if test $ac_cv_type_pid_t = yes; then
20333   :
20334 else
20335
20336 cat >>confdefs.h <<_ACEOF
20337 #define pid_t int
20338 _ACEOF
20339
20340 fi
20341
20342 echo "$as_me:$LINENO: checking for size_t" >&5
20343 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20344 if test "${ac_cv_type_size_t+set}" = set; then
20345   echo $ECHO_N "(cached) $ECHO_C" >&6
20346 else
20347   cat >conftest.$ac_ext <<_ACEOF
20348 #line $LINENO "configure"
20349 /* confdefs.h.  */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h.  */
20354 $ac_includes_default
20355 int
20356 main ()
20357 {
20358 if ((size_t *) 0)
20359   return 0;
20360 if (sizeof (size_t))
20361   return 0;
20362   ;
20363   return 0;
20364 }
20365 _ACEOF
20366 rm -f conftest.$ac_objext
20367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20368   (eval $ac_compile) 2>&5
20369   ac_status=$?
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); } &&
20372          { ac_try='test -s conftest.$ac_objext'
20373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374   (eval $ac_try) 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); }; }; then
20378   ac_cv_type_size_t=yes
20379 else
20380   echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20382
20383 ac_cv_type_size_t=no
20384 fi
20385 rm -f conftest.$ac_objext conftest.$ac_ext
20386 fi
20387 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20388 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20389 if test $ac_cv_type_size_t = yes; then
20390   :
20391 else
20392
20393 cat >>confdefs.h <<_ACEOF
20394 #define size_t unsigned
20395 _ACEOF
20396
20397 fi
20398
20399 echo "$as_me:$LINENO: checking for int64_t" >&5
20400 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20401 if test "${ac_cv_type_int64_t+set}" = set; then
20402   echo $ECHO_N "(cached) $ECHO_C" >&6
20403 else
20404   cat >conftest.$ac_ext <<_ACEOF
20405 #line $LINENO "configure"
20406 /* confdefs.h.  */
20407 _ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h.  */
20411 $ac_includes_default
20412 int
20413 main ()
20414 {
20415 if ((int64_t *) 0)
20416   return 0;
20417 if (sizeof (int64_t))
20418   return 0;
20419   ;
20420   return 0;
20421 }
20422 _ACEOF
20423 rm -f conftest.$ac_objext
20424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20425   (eval $ac_compile) 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); } &&
20429          { ac_try='test -s conftest.$ac_objext'
20430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431   (eval $ac_try) 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); }; }; then
20435   ac_cv_type_int64_t=yes
20436 else
20437   echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20439
20440 ac_cv_type_int64_t=no
20441 fi
20442 rm -f conftest.$ac_objext conftest.$ac_ext
20443 fi
20444 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20445 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20446 if test $ac_cv_type_int64_t = yes; then
20447
20448 cat >>confdefs.h <<_ACEOF
20449 #define HAVE_INT64_T 1
20450 _ACEOF
20451
20452
20453 else
20454   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20455 echo "$as_me: error: Type int64_t required but not found" >&2;}
20456    { (exit 1); exit 1; }; }
20457 fi
20458
20459 echo "$as_me:$LINENO: checking for uint64_t" >&5
20460 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20461 if test "${ac_cv_type_uint64_t+set}" = set; then
20462   echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464   cat >conftest.$ac_ext <<_ACEOF
20465 #line $LINENO "configure"
20466 /* confdefs.h.  */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h.  */
20471 $ac_includes_default
20472 int
20473 main ()
20474 {
20475 if ((uint64_t *) 0)
20476   return 0;
20477 if (sizeof (uint64_t))
20478   return 0;
20479   ;
20480   return 0;
20481 }
20482 _ACEOF
20483 rm -f conftest.$ac_objext
20484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20485   (eval $ac_compile) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); } &&
20489          { ac_try='test -s conftest.$ac_objext'
20490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491   (eval $ac_try) 2>&5
20492   ac_status=$?
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); }; }; then
20495   ac_cv_type_uint64_t=yes
20496 else
20497   echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500 ac_cv_type_uint64_t=no
20501 fi
20502 rm -f conftest.$ac_objext conftest.$ac_ext
20503 fi
20504 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20505 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20506 if test $ac_cv_type_uint64_t = yes; then
20507
20508 cat >>confdefs.h <<_ACEOF
20509 #define HAVE_UINT64_T 1
20510 _ACEOF
20511
20512
20513 else
20514   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20515 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20516    { (exit 1); exit 1; }; }
20517 fi
20518
20519 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20520 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20521 if test "${ac_cv_header_time+set}" = set; then
20522   echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20524   cat >conftest.$ac_ext <<_ACEOF
20525 #line $LINENO "configure"
20526 /* confdefs.h.  */
20527 _ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h.  */
20531 #include <sys/types.h>
20532 #include <sys/time.h>
20533 #include <time.h>
20534
20535 int
20536 main ()
20537 {
20538 if ((struct tm *) 0)
20539 return 0;
20540   ;
20541   return 0;
20542 }
20543 _ACEOF
20544 rm -f conftest.$ac_objext
20545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20546   (eval $ac_compile) 2>&5
20547   ac_status=$?
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); } &&
20550          { ac_try='test -s conftest.$ac_objext'
20551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552   (eval $ac_try) 2>&5
20553   ac_status=$?
20554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555   (exit $ac_status); }; }; then
20556   ac_cv_header_time=yes
20557 else
20558   echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20560
20561 ac_cv_header_time=no
20562 fi
20563 rm -f conftest.$ac_objext conftest.$ac_ext
20564 fi
20565 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20566 echo "${ECHO_T}$ac_cv_header_time" >&6
20567 if test $ac_cv_header_time = yes; then
20568
20569 cat >>confdefs.h <<\_ACEOF
20570 #define TIME_WITH_SYS_TIME 1
20571 _ACEOF
20572
20573 fi
20574
20575 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20576 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20577 if test "${ac_cv_struct_tm+set}" = set; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580   cat >conftest.$ac_ext <<_ACEOF
20581 #line $LINENO "configure"
20582 /* confdefs.h.  */
20583 _ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h.  */
20587 #include <sys/types.h>
20588 #include <time.h>
20589
20590 int
20591 main ()
20592 {
20593 struct tm *tp; tp->tm_sec;
20594   ;
20595   return 0;
20596 }
20597 _ACEOF
20598 rm -f conftest.$ac_objext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20600   (eval $ac_compile) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); } &&
20604          { ac_try='test -s conftest.$ac_objext'
20605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606   (eval $ac_try) 2>&5
20607   ac_status=$?
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); }; }; then
20610   ac_cv_struct_tm=time.h
20611 else
20612   echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20614
20615 ac_cv_struct_tm=sys/time.h
20616 fi
20617 rm -f conftest.$ac_objext conftest.$ac_ext
20618 fi
20619 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20620 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20621 if test $ac_cv_struct_tm = sys/time.h; then
20622
20623 cat >>confdefs.h <<\_ACEOF
20624 #define TM_IN_SYS_TIME 1
20625 _ACEOF
20626
20627 fi
20628
20629
20630 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20631 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20632 if test "${ac_cv_cxx_namespaces+set}" = set; then
20633   echo $ECHO_N "(cached) $ECHO_C" >&6
20634 else
20635
20636
20637  ac_ext=cc
20638 ac_cpp='$CXXCPP $CPPFLAGS'
20639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20642
20643  cat >conftest.$ac_ext <<_ACEOF
20644 #line $LINENO "configure"
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650 namespace Outer { namespace Inner { int i = 0; }}
20651 int
20652 main ()
20653 {
20654 using namespace Outer::Inner; return i;
20655   ;
20656   return 0;
20657 }
20658 _ACEOF
20659 rm -f conftest.$ac_objext
20660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20661   (eval $ac_compile) 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); } &&
20665          { ac_try='test -s conftest.$ac_objext'
20666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667   (eval $ac_try) 2>&5
20668   ac_status=$?
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); }; }; then
20671   ac_cv_cxx_namespaces=yes
20672 else
20673   echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20675
20676 ac_cv_cxx_namespaces=no
20677 fi
20678 rm -f conftest.$ac_objext conftest.$ac_ext
20679  ac_ext=c
20680 ac_cpp='$CPP $CPPFLAGS'
20681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20684
20685
20686 fi
20687 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20688 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20689 if test "$ac_cv_cxx_namespaces" = yes; then
20690
20691 cat >>confdefs.h <<\_ACEOF
20692 #define HAVE_NAMESPACES
20693 _ACEOF
20694
20695 fi
20696
20697 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20698 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20699 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20700   echo $ECHO_N "(cached) $ECHO_C" >&6
20701 else
20702
20703
20704
20705   ac_ext=cc
20706 ac_cpp='$CXXCPP $CPPFLAGS'
20707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20710
20711   cat >conftest.$ac_ext <<_ACEOF
20712 #line $LINENO "configure"
20713 /* confdefs.h.  */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h.  */
20718 #include <ext/hash_map>
20719 #ifdef HAVE_NAMESPACES
20720 using namespace std;
20721 #endif
20722 int
20723 main ()
20724 {
20725 hash_map<int, int> t; return 0;
20726   ;
20727   return 0;
20728 }
20729 _ACEOF
20730 rm -f conftest.$ac_objext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732   (eval $ac_compile) 2>&5
20733   ac_status=$?
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); } &&
20736          { ac_try='test -s conftest.$ac_objext'
20737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738   (eval $ac_try) 2>&5
20739   ac_status=$?
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); }; }; then
20742   ac_cv_cxx_have_ext_hash_map=std
20743 else
20744   echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20746
20747 ac_cv_cxx_have_ext_hash_map=no
20748 fi
20749 rm -f conftest.$ac_objext conftest.$ac_ext
20750   cat >conftest.$ac_ext <<_ACEOF
20751 #line $LINENO "configure"
20752 /* confdefs.h.  */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h.  */
20757 #include <ext/hash_map>
20758 #ifdef HAVE_NAMESPACES
20759 using namespace __gnu_cxx;
20760 #endif
20761 int
20762 main ()
20763 {
20764 hash_map<int, int> t; return 0;
20765   ;
20766   return 0;
20767 }
20768 _ACEOF
20769 rm -f conftest.$ac_objext
20770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20771   (eval $ac_compile) 2>&5
20772   ac_status=$?
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); } &&
20775          { ac_try='test -s conftest.$ac_objext'
20776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777   (eval $ac_try) 2>&5
20778   ac_status=$?
20779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780   (exit $ac_status); }; }; then
20781   ac_cv_cxx_have_ext_hash_map=gnu
20782 else
20783   echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20785
20786 ac_cv_cxx_have_ext_hash_map=no
20787 fi
20788 rm -f conftest.$ac_objext conftest.$ac_ext
20789   ac_ext=c
20790 ac_cpp='$CPP $CPPFLAGS'
20791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20794
20795
20796 fi
20797 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20798 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20799 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20800
20801 cat >>confdefs.h <<\_ACEOF
20802 #define HAVE_STD_EXT_HASH_MAP
20803 _ACEOF
20804
20805 fi
20806 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20807
20808 cat >>confdefs.h <<\_ACEOF
20809 #define HAVE_GNU_EXT_HASH_MAP
20810 _ACEOF
20811
20812 fi
20813
20814 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20815 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20816 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20817   echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819
20820
20821
20822   ac_ext=cc
20823 ac_cpp='$CXXCPP $CPPFLAGS'
20824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20827
20828   cat >conftest.$ac_ext <<_ACEOF
20829 #line $LINENO "configure"
20830 /* confdefs.h.  */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h.  */
20835 #include <ext/hash_set>
20836 #ifdef HAVE_NAMESPACES
20837 using namespace std;
20838 #endif
20839 int
20840 main ()
20841 {
20842 hash_set<int> t; return 0;
20843   ;
20844   return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20849   (eval $ac_compile) 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); } &&
20853          { ac_try='test -s conftest.$ac_objext'
20854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855   (eval $ac_try) 2>&5
20856   ac_status=$?
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); }; }; then
20859   ac_cv_cxx_have_ext_hash_set=std
20860 else
20861   echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864 ac_cv_cxx_have_ext_hash_set=no
20865 fi
20866 rm -f conftest.$ac_objext conftest.$ac_ext
20867   cat >conftest.$ac_ext <<_ACEOF
20868 #line $LINENO "configure"
20869 /* confdefs.h.  */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h.  */
20874 #include <ext/hash_set>
20875 #ifdef HAVE_NAMESPACES
20876 using namespace __gnu_cxx;
20877 #endif
20878 int
20879 main ()
20880 {
20881 hash_set<int> t; return 0;
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20888   (eval $ac_compile) 2>&5
20889   ac_status=$?
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); } &&
20892          { ac_try='test -s conftest.$ac_objext'
20893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894   (eval $ac_try) 2>&5
20895   ac_status=$?
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); }; }; then
20898   ac_cv_cxx_have_ext_hash_set=gnu
20899 else
20900   echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20902
20903 ac_cv_cxx_have_ext_hash_set=no
20904 fi
20905 rm -f conftest.$ac_objext conftest.$ac_ext
20906   ac_ext=c
20907 ac_cpp='$CPP $CPPFLAGS'
20908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20911
20912
20913 fi
20914 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20915 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20916 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20917
20918 cat >>confdefs.h <<\_ACEOF
20919 #define HAVE_STD_EXT_HASH_SET
20920 _ACEOF
20921
20922 fi
20923 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20924
20925 cat >>confdefs.h <<\_ACEOF
20926 #define HAVE_GNU_EXT_HASH_SET
20927 _ACEOF
20928
20929 fi
20930
20931 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20932 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20933 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20934   echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936
20937
20938
20939   ac_ext=cc
20940 ac_cpp='$CXXCPP $CPPFLAGS'
20941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20944
20945   cat >conftest.$ac_ext <<_ACEOF
20946 #line $LINENO "configure"
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 #include <ext/slist>
20953 #ifdef HAVE_NAMESPACES
20954 using namespace std;
20955 #endif
20956 int
20957 main ()
20958 {
20959 slist<int> s; return 0;
20960   ;
20961   return 0;
20962 }
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20966   (eval $ac_compile) 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); } &&
20970          { ac_try='test -s conftest.$ac_objext'
20971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972   (eval $ac_try) 2>&5
20973   ac_status=$?
20974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975   (exit $ac_status); }; }; then
20976   ac_cv_cxx_have_ext_slist=std
20977 else
20978   echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20980
20981 ac_cv_cxx_have_ext_slist=no
20982 fi
20983 rm -f conftest.$ac_objext conftest.$ac_ext
20984   cat >conftest.$ac_ext <<_ACEOF
20985 #line $LINENO "configure"
20986 /* confdefs.h.  */
20987 _ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h.  */
20991 #include <ext/slist>
20992 #ifdef HAVE_NAMESPACES
20993 using namespace __gnu_cxx;
20994 #endif
20995 int
20996 main ()
20997 {
20998 slist<int> s; return 0;
20999   ;
21000   return 0;
21001 }
21002 _ACEOF
21003 rm -f conftest.$ac_objext
21004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21005   (eval $ac_compile) 2>&5
21006   ac_status=$?
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); } &&
21009          { ac_try='test -s conftest.$ac_objext'
21010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011   (eval $ac_try) 2>&5
21012   ac_status=$?
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); }; }; then
21015   ac_cv_cxx_have_ext_slist=gnu
21016 else
21017   echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21019
21020 ac_cv_cxx_have_ext_slist=no
21021 fi
21022 rm -f conftest.$ac_objext conftest.$ac_ext
21023
21024   ac_ext=c
21025 ac_cpp='$CPP $CPPFLAGS'
21026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21029
21030
21031 fi
21032 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21033 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21034 if test "$ac_cv_cxx_have_ext_slist" = std; then
21035
21036 cat >>confdefs.h <<\_ACEOF
21037 #define HAVE_EXT_SLIST std
21038 _ACEOF
21039
21040 fi
21041 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21042
21043 cat >>confdefs.h <<\_ACEOF
21044 #define HAVE_EXT_SLIST gnu
21045 _ACEOF
21046
21047 fi
21048
21049 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21050 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21051 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21052   echo $ECHO_N "(cached) $ECHO_C" >&6
21053 else
21054
21055
21056
21057   ac_ext=cc
21058 ac_cpp='$CXXCPP $CPPFLAGS'
21059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21062
21063   cat >conftest.$ac_ext <<_ACEOF
21064 #line $LINENO "configure"
21065 /* confdefs.h.  */
21066 _ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h.  */
21070 #include <iterator>
21071 #ifdef HAVE_NAMESPACES
21072 using namespace std;
21073 #endif
21074 int
21075 main ()
21076 {
21077 iterator<int,int,int> t; return 0;
21078   ;
21079   return 0;
21080 }
21081 _ACEOF
21082 rm -f conftest.$ac_objext
21083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21084   (eval $ac_compile) 2>&5
21085   ac_status=$?
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); } &&
21088          { ac_try='test -s conftest.$ac_objext'
21089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090   (eval $ac_try) 2>&5
21091   ac_status=$?
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); }; }; then
21094   ac_cv_cxx_have_std_iterator=yes
21095 else
21096   echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 ac_cv_cxx_have_std_iterator=no
21100 fi
21101 rm -f conftest.$ac_objext conftest.$ac_ext
21102   ac_ext=c
21103 ac_cpp='$CPP $CPPFLAGS'
21104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21107
21108
21109 fi
21110 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21111 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21112 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21113
21114 cat >>confdefs.h <<\_ACEOF
21115 #define HAVE_STD_ITERATOR
21116 _ACEOF
21117
21118 fi
21119
21120 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21121 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21122 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21123   echo $ECHO_N "(cached) $ECHO_C" >&6
21124 else
21125
21126
21127
21128   ac_ext=cc
21129 ac_cpp='$CXXCPP $CPPFLAGS'
21130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21133
21134   cat >conftest.$ac_ext <<_ACEOF
21135 #line $LINENO "configure"
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141 #include <iterator>
21142 #ifdef HAVE_NAMESPACES
21143 using namespace std;
21144 #endif
21145 int
21146 main ()
21147 {
21148 bidirectional_iterator<int,int> t; return 0;
21149   ;
21150   return 0;
21151 }
21152 _ACEOF
21153 rm -f conftest.$ac_objext
21154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21155   (eval $ac_compile) 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } &&
21159          { ac_try='test -s conftest.$ac_objext'
21160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161   (eval $ac_try) 2>&5
21162   ac_status=$?
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); }; }; then
21165   ac_cv_cxx_have_bi_iterator=yes
21166 else
21167   echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21169
21170 ac_cv_cxx_have_bi_iterator=no
21171 fi
21172 rm -f conftest.$ac_objext conftest.$ac_ext
21173   ac_ext=c
21174 ac_cpp='$CPP $CPPFLAGS'
21175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21178
21179
21180 fi
21181 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21182 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21183 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21184
21185 cat >>confdefs.h <<\_ACEOF
21186 #define HAVE_BI_ITERATOR
21187 _ACEOF
21188
21189 fi
21190
21191 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21192 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21193 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21194   echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196
21197
21198
21199   ac_ext=cc
21200 ac_cpp='$CXXCPP $CPPFLAGS'
21201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21204
21205   cat >conftest.$ac_ext <<_ACEOF
21206 #line $LINENO "configure"
21207 /* confdefs.h.  */
21208 _ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h.  */
21212 #include <iterator>
21213 #ifdef HAVE_NAMESPACES
21214 using namespace std;
21215 #endif
21216 int
21217 main ()
21218 {
21219 forward_iterator<int,int> t; return 0;
21220   ;
21221   return 0;
21222 }
21223 _ACEOF
21224 rm -f conftest.$ac_objext
21225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21226   (eval $ac_compile) 2>&5
21227   ac_status=$?
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); } &&
21230          { ac_try='test -s conftest.$ac_objext'
21231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232   (eval $ac_try) 2>&5
21233   ac_status=$?
21234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235   (exit $ac_status); }; }; then
21236   ac_cv_cxx_have_fwd_iterator=yes
21237 else
21238   echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21240
21241 ac_cv_cxx_have_fwd_iterator=no
21242 fi
21243 rm -f conftest.$ac_objext conftest.$ac_ext
21244   ac_ext=c
21245 ac_cpp='$CPP $CPPFLAGS'
21246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21249
21250
21251 fi
21252 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21253 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21254 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21255
21256 cat >>confdefs.h <<\_ACEOF
21257 #define HAVE_FWD_ITERATOR
21258 _ACEOF
21259
21260 fi
21261
21262
21263 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21264 # for constant arguments.  Useless!
21265 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21266 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21267 if test "${ac_cv_working_alloca_h+set}" = set; then
21268   echo $ECHO_N "(cached) $ECHO_C" >&6
21269 else
21270   cat >conftest.$ac_ext <<_ACEOF
21271 #line $LINENO "configure"
21272 /* confdefs.h.  */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h.  */
21277 #include <alloca.h>
21278 int
21279 main ()
21280 {
21281 char *p = (char *) alloca (2 * sizeof (int));
21282   ;
21283   return 0;
21284 }
21285 _ACEOF
21286 rm -f conftest.$ac_objext conftest$ac_exeext
21287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21288   (eval $ac_link) 2>&5
21289   ac_status=$?
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } &&
21292          { ac_try='test -s conftest$ac_exeext'
21293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294   (eval $ac_try) 2>&5
21295   ac_status=$?
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); }; }; then
21298   ac_cv_working_alloca_h=yes
21299 else
21300   echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303 ac_cv_working_alloca_h=no
21304 fi
21305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21306 fi
21307 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21308 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21309 if test $ac_cv_working_alloca_h = yes; then
21310
21311 cat >>confdefs.h <<\_ACEOF
21312 #define HAVE_ALLOCA_H 1
21313 _ACEOF
21314
21315 fi
21316
21317 echo "$as_me:$LINENO: checking for alloca" >&5
21318 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21319 if test "${ac_cv_func_alloca_works+set}" = set; then
21320   echo $ECHO_N "(cached) $ECHO_C" >&6
21321 else
21322   cat >conftest.$ac_ext <<_ACEOF
21323 #line $LINENO "configure"
21324 /* confdefs.h.  */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h.  */
21329 #ifdef __GNUC__
21330 # define alloca __builtin_alloca
21331 #else
21332 # ifdef _MSC_VER
21333 #  include <malloc.h>
21334 #  define alloca _alloca
21335 # else
21336 #  if HAVE_ALLOCA_H
21337 #   include <alloca.h>
21338 #  else
21339 #   ifdef _AIX
21340  #pragma alloca
21341 #   else
21342 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21343 char *alloca ();
21344 #    endif
21345 #   endif
21346 #  endif
21347 # endif
21348 #endif
21349
21350 int
21351 main ()
21352 {
21353 char *p = (char *) alloca (1);
21354   ;
21355   return 0;
21356 }
21357 _ACEOF
21358 rm -f conftest.$ac_objext conftest$ac_exeext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21360   (eval $ac_link) 2>&5
21361   ac_status=$?
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } &&
21364          { ac_try='test -s conftest$ac_exeext'
21365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366   (eval $ac_try) 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; }; then
21370   ac_cv_func_alloca_works=yes
21371 else
21372   echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 ac_cv_func_alloca_works=no
21376 fi
21377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21378 fi
21379 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21380 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21381
21382 if test $ac_cv_func_alloca_works = yes; then
21383
21384 cat >>confdefs.h <<\_ACEOF
21385 #define HAVE_ALLOCA 1
21386 _ACEOF
21387
21388 else
21389   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21390 # that cause trouble.  Some versions do not even contain alloca or
21391 # contain a buggy version.  If you still want to use their alloca,
21392 # use ar to extract alloca.o from them instead of compiling alloca.c.
21393
21394 ALLOCA=alloca.$ac_objext
21395
21396 cat >>confdefs.h <<\_ACEOF
21397 #define C_ALLOCA 1
21398 _ACEOF
21399
21400
21401 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21402 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21403 if test "${ac_cv_os_cray+set}" = set; then
21404   echo $ECHO_N "(cached) $ECHO_C" >&6
21405 else
21406   cat >conftest.$ac_ext <<_ACEOF
21407 #line $LINENO "configure"
21408 /* confdefs.h.  */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h.  */
21413 #if defined(CRAY) && ! defined(CRAY2)
21414 webecray
21415 #else
21416 wenotbecray
21417 #endif
21418
21419 _ACEOF
21420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21421   $EGREP "webecray" >/dev/null 2>&1; then
21422   ac_cv_os_cray=yes
21423 else
21424   ac_cv_os_cray=no
21425 fi
21426 rm -f conftest*
21427
21428 fi
21429 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21430 echo "${ECHO_T}$ac_cv_os_cray" >&6
21431 if test $ac_cv_os_cray = yes; then
21432   for ac_func in _getb67 GETB67 getb67; do
21433     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21434 echo "$as_me:$LINENO: checking for $ac_func" >&5
21435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21436 if eval "test \"\${$as_ac_var+set}\" = set"; then
21437   echo $ECHO_N "(cached) $ECHO_C" >&6
21438 else
21439   cat >conftest.$ac_ext <<_ACEOF
21440 #line $LINENO "configure"
21441 /* confdefs.h.  */
21442 _ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h.  */
21446 /* System header to define __stub macros and hopefully few prototypes,
21447     which can conflict with char $ac_func (); below.
21448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21449     <limits.h> exists even on freestanding compilers.  */
21450 #ifdef __STDC__
21451 # include <limits.h>
21452 #else
21453 # include <assert.h>
21454 #endif
21455 /* Override any gcc2 internal prototype to avoid an error.  */
21456 #ifdef __cplusplus
21457 extern "C"
21458 {
21459 #endif
21460 /* We use char because int might match the return type of a gcc2
21461    builtin and then its argument prototype would still apply.  */
21462 char $ac_func ();
21463 /* The GNU C library defines this for functions which it implements
21464     to always fail with ENOSYS.  Some functions are actually named
21465     something starting with __ and the normal name is an alias.  */
21466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21467 choke me
21468 #else
21469 char (*f) () = $ac_func;
21470 #endif
21471 #ifdef __cplusplus
21472 }
21473 #endif
21474
21475 int
21476 main ()
21477 {
21478 return f != $ac_func;
21479   ;
21480   return 0;
21481 }
21482 _ACEOF
21483 rm -f conftest.$ac_objext conftest$ac_exeext
21484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21485   (eval $ac_link) 2>&5
21486   ac_status=$?
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } &&
21489          { ac_try='test -s conftest$ac_exeext'
21490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491   (eval $ac_try) 2>&5
21492   ac_status=$?
21493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494   (exit $ac_status); }; }; then
21495   eval "$as_ac_var=yes"
21496 else
21497   echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21499
21500 eval "$as_ac_var=no"
21501 fi
21502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21503 fi
21504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21506 if test `eval echo '${'$as_ac_var'}'` = yes; then
21507
21508 cat >>confdefs.h <<_ACEOF
21509 #define CRAY_STACKSEG_END $ac_func
21510 _ACEOF
21511
21512     break
21513 fi
21514
21515   done
21516 fi
21517
21518 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21519 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21520 if test "${ac_cv_c_stack_direction+set}" = set; then
21521   echo $ECHO_N "(cached) $ECHO_C" >&6
21522 else
21523   if test "$cross_compiling" = yes; then
21524   ac_cv_c_stack_direction=0
21525 else
21526   cat >conftest.$ac_ext <<_ACEOF
21527 #line $LINENO "configure"
21528 /* confdefs.h.  */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h.  */
21533 int
21534 find_stack_direction ()
21535 {
21536   static char *addr = 0;
21537   auto char dummy;
21538   if (addr == 0)
21539     {
21540       addr = &dummy;
21541       return find_stack_direction ();
21542     }
21543   else
21544     return (&dummy > addr) ? 1 : -1;
21545 }
21546
21547 int
21548 main ()
21549 {
21550   exit (find_stack_direction () < 0);
21551 }
21552 _ACEOF
21553 rm -f conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555   (eval $ac_link) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560   (eval $ac_try) 2>&5
21561   ac_status=$?
21562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563   (exit $ac_status); }; }; then
21564   ac_cv_c_stack_direction=1
21565 else
21566   echo "$as_me: program exited with status $ac_status" >&5
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 ( exit $ac_status )
21571 ac_cv_c_stack_direction=-1
21572 fi
21573 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21574 fi
21575 fi
21576 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21577 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21578
21579 cat >>confdefs.h <<_ACEOF
21580 #define STACK_DIRECTION $ac_cv_c_stack_direction
21581 _ACEOF
21582
21583
21584 fi
21585
21586 if test $ac_cv_c_compiler_gnu = yes; then
21587     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21588 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21589 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21590   echo $ECHO_N "(cached) $ECHO_C" >&6
21591 else
21592     ac_pattern="Autoconf.*'x'"
21593   cat >conftest.$ac_ext <<_ACEOF
21594 #line $LINENO "configure"
21595 /* confdefs.h.  */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h.  */
21600 #include <sgtty.h>
21601 Autoconf TIOCGETP
21602 _ACEOF
21603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21604   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21605   ac_cv_prog_gcc_traditional=yes
21606 else
21607   ac_cv_prog_gcc_traditional=no
21608 fi
21609 rm -f conftest*
21610
21611
21612   if test $ac_cv_prog_gcc_traditional = no; then
21613     cat >conftest.$ac_ext <<_ACEOF
21614 #line $LINENO "configure"
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620 #include <termio.h>
21621 Autoconf TCGETA
21622 _ACEOF
21623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21624   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21625   ac_cv_prog_gcc_traditional=yes
21626 fi
21627 rm -f conftest*
21628
21629   fi
21630 fi
21631 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21632 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21633   if test $ac_cv_prog_gcc_traditional = yes; then
21634     CC="$CC -traditional"
21635   fi
21636 fi
21637
21638 echo "$as_me:$LINENO: checking for working memcmp" >&5
21639 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21640 if test "${ac_cv_func_memcmp_working+set}" = set; then
21641   echo $ECHO_N "(cached) $ECHO_C" >&6
21642 else
21643   if test "$cross_compiling" = yes; then
21644   ac_cv_func_memcmp_working=no
21645 else
21646   cat >conftest.$ac_ext <<_ACEOF
21647 #line $LINENO "configure"
21648 /* confdefs.h.  */
21649 _ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h.  */
21653
21654 int
21655 main ()
21656 {
21657
21658   /* Some versions of memcmp are not 8-bit clean.  */
21659   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21660   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21661     exit (1);
21662
21663   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21664      or more and with at least one buffer not starting on a 4-byte boundary.
21665      William Lewis provided this test program.   */
21666   {
21667     char foo[21];
21668     char bar[21];
21669     int i;
21670     for (i = 0; i < 4; i++)
21671       {
21672         char *a = foo + i;
21673         char *b = bar + i;
21674         strcpy (a, "--------01111111");
21675         strcpy (b, "--------10000000");
21676         if (memcmp (a, b, 16) >= 0)
21677           exit (1);
21678       }
21679     exit (0);
21680   }
21681
21682   ;
21683   return 0;
21684 }
21685 _ACEOF
21686 rm -f conftest$ac_exeext
21687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21688   (eval $ac_link) 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693   (eval $ac_try) 2>&5
21694   ac_status=$?
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); }; }; then
21697   ac_cv_func_memcmp_working=yes
21698 else
21699   echo "$as_me: program exited with status $ac_status" >&5
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 ( exit $ac_status )
21704 ac_cv_func_memcmp_working=no
21705 fi
21706 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21707 fi
21708 fi
21709 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21710 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21711 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21712
21713
21714
21715 for ac_header in stdlib.h unistd.h
21716 do
21717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21719   echo "$as_me:$LINENO: checking for $ac_header" >&5
21720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21722   echo $ECHO_N "(cached) $ECHO_C" >&6
21723 fi
21724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21726 else
21727   # Is the header compilable?
21728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21730 cat >conftest.$ac_ext <<_ACEOF
21731 #line $LINENO "configure"
21732 /* confdefs.h.  */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h.  */
21737 $ac_includes_default
21738 #include <$ac_header>
21739 _ACEOF
21740 rm -f conftest.$ac_objext
21741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21742   (eval $ac_compile) 2>&5
21743   ac_status=$?
21744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745   (exit $ac_status); } &&
21746          { ac_try='test -s conftest.$ac_objext'
21747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748   (eval $ac_try) 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); }; }; then
21752   ac_header_compiler=yes
21753 else
21754   echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21756
21757 ac_header_compiler=no
21758 fi
21759 rm -f conftest.$ac_objext conftest.$ac_ext
21760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21761 echo "${ECHO_T}$ac_header_compiler" >&6
21762
21763 # Is the header present?
21764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21766 cat >conftest.$ac_ext <<_ACEOF
21767 #line $LINENO "configure"
21768 /* confdefs.h.  */
21769 _ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h.  */
21773 #include <$ac_header>
21774 _ACEOF
21775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21777   ac_status=$?
21778   grep -v '^ *+' conftest.er1 >conftest.err
21779   rm -f conftest.er1
21780   cat conftest.err >&5
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); } >/dev/null; then
21783   if test -s conftest.err; then
21784     ac_cpp_err=$ac_c_preproc_warn_flag
21785   else
21786     ac_cpp_err=
21787   fi
21788 else
21789   ac_cpp_err=yes
21790 fi
21791 if test -z "$ac_cpp_err"; then
21792   ac_header_preproc=yes
21793 else
21794   echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21796
21797   ac_header_preproc=no
21798 fi
21799 rm -f conftest.err conftest.$ac_ext
21800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21801 echo "${ECHO_T}$ac_header_preproc" >&6
21802
21803 # So?  What about this header?
21804 case $ac_header_compiler:$ac_header_preproc in
21805   yes:no )
21806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21810     (
21811       cat <<\_ASBOX
21812 ## ------------------------------------ ##
21813 ## Report this to bug-autoconf@gnu.org. ##
21814 ## ------------------------------------ ##
21815 _ASBOX
21816     ) |
21817       sed "s/^/$as_me: WARNING:     /" >&2
21818     ;;
21819   no:yes )
21820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21822     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21826     (
21827       cat <<\_ASBOX
21828 ## ------------------------------------ ##
21829 ## Report this to bug-autoconf@gnu.org. ##
21830 ## ------------------------------------ ##
21831 _ASBOX
21832     ) |
21833       sed "s/^/$as_me: WARNING:     /" >&2
21834     ;;
21835 esac
21836 echo "$as_me:$LINENO: checking for $ac_header" >&5
21837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841   eval "$as_ac_Header=$ac_header_preproc"
21842 fi
21843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21845
21846 fi
21847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21848   cat >>confdefs.h <<_ACEOF
21849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21850 _ACEOF
21851
21852 fi
21853
21854 done
21855
21856
21857 for ac_func in getpagesize
21858 do
21859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21860 echo "$as_me:$LINENO: checking for $ac_func" >&5
21861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21862 if eval "test \"\${$as_ac_var+set}\" = set"; then
21863   echo $ECHO_N "(cached) $ECHO_C" >&6
21864 else
21865   cat >conftest.$ac_ext <<_ACEOF
21866 #line $LINENO "configure"
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872 /* System header to define __stub macros and hopefully few prototypes,
21873     which can conflict with char $ac_func (); below.
21874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21875     <limits.h> exists even on freestanding compilers.  */
21876 #ifdef __STDC__
21877 # include <limits.h>
21878 #else
21879 # include <assert.h>
21880 #endif
21881 /* Override any gcc2 internal prototype to avoid an error.  */
21882 #ifdef __cplusplus
21883 extern "C"
21884 {
21885 #endif
21886 /* We use char because int might match the return type of a gcc2
21887    builtin and then its argument prototype would still apply.  */
21888 char $ac_func ();
21889 /* The GNU C library defines this for functions which it implements
21890     to always fail with ENOSYS.  Some functions are actually named
21891     something starting with __ and the normal name is an alias.  */
21892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21893 choke me
21894 #else
21895 char (*f) () = $ac_func;
21896 #endif
21897 #ifdef __cplusplus
21898 }
21899 #endif
21900
21901 int
21902 main ()
21903 {
21904 return f != $ac_func;
21905   ;
21906   return 0;
21907 }
21908 _ACEOF
21909 rm -f conftest.$ac_objext conftest$ac_exeext
21910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21911   (eval $ac_link) 2>&5
21912   ac_status=$?
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); } &&
21915          { ac_try='test -s conftest$ac_exeext'
21916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21917   (eval $ac_try) 2>&5
21918   ac_status=$?
21919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920   (exit $ac_status); }; }; then
21921   eval "$as_ac_var=yes"
21922 else
21923   echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21925
21926 eval "$as_ac_var=no"
21927 fi
21928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21929 fi
21930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21932 if test `eval echo '${'$as_ac_var'}'` = yes; then
21933   cat >>confdefs.h <<_ACEOF
21934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21935 _ACEOF
21936
21937 fi
21938 done
21939
21940 echo "$as_me:$LINENO: checking for working mmap" >&5
21941 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21942 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21943   echo $ECHO_N "(cached) $ECHO_C" >&6
21944 else
21945   if test "$cross_compiling" = yes; then
21946   ac_cv_func_mmap_fixed_mapped=no
21947 else
21948   cat >conftest.$ac_ext <<_ACEOF
21949 #line $LINENO "configure"
21950 /* confdefs.h.  */
21951 _ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h.  */
21955 $ac_includes_default
21956 /* malloc might have been renamed as rpl_malloc. */
21957 #undef malloc
21958
21959 /* Thanks to Mike Haertel and Jim Avera for this test.
21960    Here is a matrix of mmap possibilities:
21961         mmap private not fixed
21962         mmap private fixed at somewhere currently unmapped
21963         mmap private fixed at somewhere already mapped
21964         mmap shared not fixed
21965         mmap shared fixed at somewhere currently unmapped
21966         mmap shared fixed at somewhere already mapped
21967    For private mappings, we should verify that changes cannot be read()
21968    back from the file, nor mmap's back from the file at a different
21969    address.  (There have been systems where private was not correctly
21970    implemented like the infamous i386 svr4.0, and systems where the
21971    VM page cache was not coherent with the file system buffer cache
21972    like early versions of FreeBSD and possibly contemporary NetBSD.)
21973    For shared mappings, we should conversely verify that changes get
21974    propagated back to all the places they're supposed to be.
21975
21976    Grep wants private fixed already mapped.
21977    The main things grep needs to know about mmap are:
21978    * does it exist and is it safe to write into the mmap'd area
21979    * how to use it (BSD variants)  */
21980
21981 #include <fcntl.h>
21982 #include <sys/mman.h>
21983
21984 #if !STDC_HEADERS && !HAVE_STDLIB_H
21985 char *malloc ();
21986 #endif
21987
21988 /* This mess was copied from the GNU getpagesize.h.  */
21989 #if !HAVE_GETPAGESIZE
21990 /* Assume that all systems that can run configure have sys/param.h.  */
21991 # if !HAVE_SYS_PARAM_H
21992 #  define HAVE_SYS_PARAM_H 1
21993 # endif
21994
21995 # ifdef _SC_PAGESIZE
21996 #  define getpagesize() sysconf(_SC_PAGESIZE)
21997 # else /* no _SC_PAGESIZE */
21998 #  if HAVE_SYS_PARAM_H
21999 #   include <sys/param.h>
22000 #   ifdef EXEC_PAGESIZE
22001 #    define getpagesize() EXEC_PAGESIZE
22002 #   else /* no EXEC_PAGESIZE */
22003 #    ifdef NBPG
22004 #     define getpagesize() NBPG * CLSIZE
22005 #     ifndef CLSIZE
22006 #      define CLSIZE 1
22007 #     endif /* no CLSIZE */
22008 #    else /* no NBPG */
22009 #     ifdef NBPC
22010 #      define getpagesize() NBPC
22011 #     else /* no NBPC */
22012 #      ifdef PAGESIZE
22013 #       define getpagesize() PAGESIZE
22014 #      endif /* PAGESIZE */
22015 #     endif /* no NBPC */
22016 #    endif /* no NBPG */
22017 #   endif /* no EXEC_PAGESIZE */
22018 #  else /* no HAVE_SYS_PARAM_H */
22019 #   define getpagesize() 8192   /* punt totally */
22020 #  endif /* no HAVE_SYS_PARAM_H */
22021 # endif /* no _SC_PAGESIZE */
22022
22023 #endif /* no HAVE_GETPAGESIZE */
22024
22025 int
22026 main ()
22027 {
22028   char *data, *data2, *data3;
22029   int i, pagesize;
22030   int fd;
22031
22032   pagesize = getpagesize ();
22033
22034   /* First, make a file with some known garbage in it. */
22035   data = (char *) malloc (pagesize);
22036   if (!data)
22037     exit (1);
22038   for (i = 0; i < pagesize; ++i)
22039     *(data + i) = rand ();
22040   umask (0);
22041   fd = creat ("conftest.mmap", 0600);
22042   if (fd < 0)
22043     exit (1);
22044   if (write (fd, data, pagesize) != pagesize)
22045     exit (1);
22046   close (fd);
22047
22048   /* Next, try to mmap the file at a fixed address which already has
22049      something else allocated at it.  If we can, also make sure that
22050      we see the same garbage.  */
22051   fd = open ("conftest.mmap", O_RDWR);
22052   if (fd < 0)
22053     exit (1);
22054   data2 = (char *) malloc (2 * pagesize);
22055   if (!data2)
22056     exit (1);
22057   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22058   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22059                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22060     exit (1);
22061   for (i = 0; i < pagesize; ++i)
22062     if (*(data + i) != *(data2 + i))
22063       exit (1);
22064
22065   /* Finally, make sure that changes to the mapped area do not
22066      percolate back to the file as seen by read().  (This is a bug on
22067      some variants of i386 svr4.0.)  */
22068   for (i = 0; i < pagesize; ++i)
22069     *(data2 + i) = *(data2 + i) + 1;
22070   data3 = (char *) malloc (pagesize);
22071   if (!data3)
22072     exit (1);
22073   if (read (fd, data3, pagesize) != pagesize)
22074     exit (1);
22075   for (i = 0; i < pagesize; ++i)
22076     if (*(data + i) != *(data3 + i))
22077       exit (1);
22078   close (fd);
22079   exit (0);
22080 }
22081 _ACEOF
22082 rm -f conftest$ac_exeext
22083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22084   (eval $ac_link) 2>&5
22085   ac_status=$?
22086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089   (eval $ac_try) 2>&5
22090   ac_status=$?
22091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092   (exit $ac_status); }; }; then
22093   ac_cv_func_mmap_fixed_mapped=yes
22094 else
22095   echo "$as_me: program exited with status $ac_status" >&5
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099 ( exit $ac_status )
22100 ac_cv_func_mmap_fixed_mapped=no
22101 fi
22102 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22103 fi
22104 fi
22105 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22106 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22107 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22108
22109 cat >>confdefs.h <<\_ACEOF
22110 #define HAVE_MMAP 1
22111 _ACEOF
22112
22113 fi
22114 rm -f conftest.mmap
22115
22116 echo "$as_me:$LINENO: checking for mmap of files" >&5
22117 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22118 if test "${ac_cv_func_mmap_file+set}" = set; then
22119   echo $ECHO_N "(cached) $ECHO_C" >&6
22120 else
22121
22122
22123   ac_ext=c
22124 ac_cpp='$CPP $CPPFLAGS'
22125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22128
22129   if test "$cross_compiling" = yes; then
22130   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22131 See \`config.log' for more details." >&5
22132 echo "$as_me: error: cannot run test program while cross compiling
22133 See \`config.log' for more details." >&2;}
22134    { (exit 1); exit 1; }; }
22135 else
22136   cat >conftest.$ac_ext <<_ACEOF
22137 #line $LINENO "configure"
22138 /* confdefs.h.  */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h.  */
22143
22144 #ifdef HAVE_SYS_MMAN_H
22145 #include <sys/mman.h>
22146 #endif
22147
22148 #ifdef HAVE_SYS_TYPES_H
22149 #include <sys/types.h>
22150 #endif
22151
22152 #ifdef HAVE_FCNTL_H
22153 #include <fcntl.h>
22154 #endif
22155
22156   int fd;
22157   int main () {
22158   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22159 _ACEOF
22160 rm -f conftest$ac_exeext
22161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22162   (eval $ac_link) 2>&5
22163   ac_status=$?
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167   (eval $ac_try) 2>&5
22168   ac_status=$?
22169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170   (exit $ac_status); }; }; then
22171   ac_cv_func_mmap_file=yes
22172 else
22173   echo "$as_me: program exited with status $ac_status" >&5
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 ( exit $ac_status )
22178 ac_cv_func_mmap_file=no
22179 fi
22180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22181 fi
22182   ac_ext=c
22183 ac_cpp='$CPP $CPPFLAGS'
22184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22187
22188
22189 fi
22190 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22191 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22192 if test "$ac_cv_func_mmap_file" = yes; then
22193    cat >>confdefs.h <<\_ACEOF
22194 #define HAVE_MMAP_FILE 1
22195 _ACEOF
22196
22197    MMAP_FILE=yes
22198
22199 fi
22200
22201 if test ${ac_cv_func_mmap_file} = "no"
22202 then
22203         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22204 echo "$as_me: error: mmap() of files required but not found" >&2;}
22205    { (exit 1); exit 1; }; }
22206 fi
22207 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22208 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22209 if test "${ac_cv_header_mmap_anon+set}" = set; then
22210   echo $ECHO_N "(cached) $ECHO_C" >&6
22211 else
22212
22213
22214   ac_ext=c
22215 ac_cpp='$CPP $CPPFLAGS'
22216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22219
22220   cat >conftest.$ac_ext <<_ACEOF
22221 #line $LINENO "configure"
22222 /* confdefs.h.  */
22223 _ACEOF
22224 cat confdefs.h >>conftest.$ac_ext
22225 cat >>conftest.$ac_ext <<_ACEOF
22226 /* end confdefs.h.  */
22227 #include <sys/mman.h>
22228   #include <unistd.h>
22229   #include <fcntl.h>
22230 int
22231 main ()
22232 {
22233 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22234   ;
22235   return 0;
22236 }
22237 _ACEOF
22238 rm -f conftest.$ac_objext
22239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22240   (eval $ac_compile) 2>&5
22241   ac_status=$?
22242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243   (exit $ac_status); } &&
22244          { ac_try='test -s conftest.$ac_objext'
22245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246   (eval $ac_try) 2>&5
22247   ac_status=$?
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); }; }; then
22250   ac_cv_header_mmap_anon=yes
22251 else
22252   echo "$as_me: failed program was:" >&5
22253 sed 's/^/| /' conftest.$ac_ext >&5
22254
22255 ac_cv_header_mmap_anon=no
22256 fi
22257 rm -f conftest.$ac_objext conftest.$ac_ext
22258   ac_ext=c
22259 ac_cpp='$CPP $CPPFLAGS'
22260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22263
22264
22265 fi
22266 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22267 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22268 if test "$ac_cv_header_mmap_anon" = yes; then
22269    cat >>confdefs.h <<\_ACEOF
22270 #define HAVE_MMAP_ANONYMOUS 1
22271 _ACEOF
22272
22273 fi
22274
22275 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22276 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22277 if test "${ac_cv_type_signal+set}" = set; then
22278   echo $ECHO_N "(cached) $ECHO_C" >&6
22279 else
22280   cat >conftest.$ac_ext <<_ACEOF
22281 #line $LINENO "configure"
22282 /* confdefs.h.  */
22283 _ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h.  */
22287 #include <sys/types.h>
22288 #include <signal.h>
22289 #ifdef signal
22290 # undef signal
22291 #endif
22292 #ifdef __cplusplus
22293 extern "C" void (*signal (int, void (*)(int)))(int);
22294 #else
22295 void (*signal ()) ();
22296 #endif
22297
22298 int
22299 main ()
22300 {
22301 int i;
22302   ;
22303   return 0;
22304 }
22305 _ACEOF
22306 rm -f conftest.$ac_objext
22307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22308   (eval $ac_compile) 2>&5
22309   ac_status=$?
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); } &&
22312          { ac_try='test -s conftest.$ac_objext'
22313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314   (eval $ac_try) 2>&5
22315   ac_status=$?
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; }; then
22318   ac_cv_type_signal=void
22319 else
22320   echo "$as_me: failed program was:" >&5
22321 sed 's/^/| /' conftest.$ac_ext >&5
22322
22323 ac_cv_type_signal=int
22324 fi
22325 rm -f conftest.$ac_objext conftest.$ac_ext
22326 fi
22327 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22328 echo "${ECHO_T}$ac_cv_type_signal" >&6
22329
22330 cat >>confdefs.h <<_ACEOF
22331 #define RETSIGTYPE $ac_cv_type_signal
22332 _ACEOF
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22345 do
22346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22347 echo "$as_me:$LINENO: checking for $ac_func" >&5
22348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22349 if eval "test \"\${$as_ac_var+set}\" = set"; then
22350   echo $ECHO_N "(cached) $ECHO_C" >&6
22351 else
22352   cat >conftest.$ac_ext <<_ACEOF
22353 #line $LINENO "configure"
22354 /* confdefs.h.  */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h.  */
22359 /* System header to define __stub macros and hopefully few prototypes,
22360     which can conflict with char $ac_func (); below.
22361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22362     <limits.h> exists even on freestanding compilers.  */
22363 #ifdef __STDC__
22364 # include <limits.h>
22365 #else
22366 # include <assert.h>
22367 #endif
22368 /* Override any gcc2 internal prototype to avoid an error.  */
22369 #ifdef __cplusplus
22370 extern "C"
22371 {
22372 #endif
22373 /* We use char because int might match the return type of a gcc2
22374    builtin and then its argument prototype would still apply.  */
22375 char $ac_func ();
22376 /* The GNU C library defines this for functions which it implements
22377     to always fail with ENOSYS.  Some functions are actually named
22378     something starting with __ and the normal name is an alias.  */
22379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22380 choke me
22381 #else
22382 char (*f) () = $ac_func;
22383 #endif
22384 #ifdef __cplusplus
22385 }
22386 #endif
22387
22388 int
22389 main ()
22390 {
22391 return f != $ac_func;
22392   ;
22393   return 0;
22394 }
22395 _ACEOF
22396 rm -f conftest.$ac_objext conftest$ac_exeext
22397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22398   (eval $ac_link) 2>&5
22399   ac_status=$?
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); } &&
22402          { ac_try='test -s conftest$ac_exeext'
22403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404   (eval $ac_try) 2>&5
22405   ac_status=$?
22406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); }; }; then
22408   eval "$as_ac_var=yes"
22409 else
22410   echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413 eval "$as_ac_var=no"
22414 fi
22415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22416 fi
22417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22419 if test `eval echo '${'$as_ac_var'}'` = yes; then
22420   cat >>confdefs.h <<_ACEOF
22421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22422 _ACEOF
22423
22424 fi
22425 done
22426
22427
22428
22429 echo "$as_me:$LINENO: checking for mmap" >&5
22430 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22431 if test "${ac_cv_func_mmap+set}" = set; then
22432   echo $ECHO_N "(cached) $ECHO_C" >&6
22433 else
22434   cat >conftest.$ac_ext <<_ACEOF
22435 #line $LINENO "configure"
22436 /* confdefs.h.  */
22437 _ACEOF
22438 cat confdefs.h >>conftest.$ac_ext
22439 cat >>conftest.$ac_ext <<_ACEOF
22440 /* end confdefs.h.  */
22441 /* System header to define __stub macros and hopefully few prototypes,
22442     which can conflict with char mmap (); below.
22443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22444     <limits.h> exists even on freestanding compilers.  */
22445 #ifdef __STDC__
22446 # include <limits.h>
22447 #else
22448 # include <assert.h>
22449 #endif
22450 /* Override any gcc2 internal prototype to avoid an error.  */
22451 #ifdef __cplusplus
22452 extern "C"
22453 {
22454 #endif
22455 /* We use char because int might match the return type of a gcc2
22456    builtin and then its argument prototype would still apply.  */
22457 char mmap ();
22458 /* The GNU C library defines this for functions which it implements
22459     to always fail with ENOSYS.  Some functions are actually named
22460     something starting with __ and the normal name is an alias.  */
22461 #if defined (__stub_mmap) || defined (__stub___mmap)
22462 choke me
22463 #else
22464 char (*f) () = mmap;
22465 #endif
22466 #ifdef __cplusplus
22467 }
22468 #endif
22469
22470 int
22471 main ()
22472 {
22473 return f != mmap;
22474   ;
22475   return 0;
22476 }
22477 _ACEOF
22478 rm -f conftest.$ac_objext conftest$ac_exeext
22479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22480   (eval $ac_link) 2>&5
22481   ac_status=$?
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); } &&
22484          { ac_try='test -s conftest$ac_exeext'
22485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22486   (eval $ac_try) 2>&5
22487   ac_status=$?
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); }; }; then
22490   ac_cv_func_mmap=yes
22491 else
22492   echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22494
22495 ac_cv_func_mmap=no
22496 fi
22497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22498 fi
22499 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22500 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22501 if test $ac_cv_func_mmap = yes; then
22502   :
22503 else
22504   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22505 echo "$as_me: error: Function mmap() required but not found" >&2;}
22506    { (exit 1); exit 1; }; }
22507 fi
22508
22509 echo "$as_me:$LINENO: checking for mprotect" >&5
22510 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22511 if test "${ac_cv_func_mprotect+set}" = set; then
22512   echo $ECHO_N "(cached) $ECHO_C" >&6
22513 else
22514   cat >conftest.$ac_ext <<_ACEOF
22515 #line $LINENO "configure"
22516 /* confdefs.h.  */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h.  */
22521 /* System header to define __stub macros and hopefully few prototypes,
22522     which can conflict with char mprotect (); below.
22523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22524     <limits.h> exists even on freestanding compilers.  */
22525 #ifdef __STDC__
22526 # include <limits.h>
22527 #else
22528 # include <assert.h>
22529 #endif
22530 /* Override any gcc2 internal prototype to avoid an error.  */
22531 #ifdef __cplusplus
22532 extern "C"
22533 {
22534 #endif
22535 /* We use char because int might match the return type of a gcc2
22536    builtin and then its argument prototype would still apply.  */
22537 char mprotect ();
22538 /* The GNU C library defines this for functions which it implements
22539     to always fail with ENOSYS.  Some functions are actually named
22540     something starting with __ and the normal name is an alias.  */
22541 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22542 choke me
22543 #else
22544 char (*f) () = mprotect;
22545 #endif
22546 #ifdef __cplusplus
22547 }
22548 #endif
22549
22550 int
22551 main ()
22552 {
22553 return f != mprotect;
22554   ;
22555   return 0;
22556 }
22557 _ACEOF
22558 rm -f conftest.$ac_objext conftest$ac_exeext
22559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22560   (eval $ac_link) 2>&5
22561   ac_status=$?
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); } &&
22564          { ac_try='test -s conftest$ac_exeext'
22565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566   (eval $ac_try) 2>&5
22567   ac_status=$?
22568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569   (exit $ac_status); }; }; then
22570   ac_cv_func_mprotect=yes
22571 else
22572   echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22574
22575 ac_cv_func_mprotect=no
22576 fi
22577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22578 fi
22579 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22580 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22581 if test $ac_cv_func_mprotect = yes; then
22582   :
22583 else
22584   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22585 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22586    { (exit 1); exit 1; }; }
22587 fi
22588
22589
22590
22591 # Check whether --enable-purify or --disable-purify was given.
22592 if test "${enable_purify+set}" = set; then
22593   enableval="$enable_purify"
22594
22595 else
22596   enableval="no"
22597 fi;
22598 if test ${enableval} = "no"
22599 then
22600         ENABLE_PURIFY=
22601
22602 else
22603         ENABLE_PURIFY=ENABLE_PURIFY=1
22604
22605 fi
22606
22607 # Check whether --enable-optimized or --disable-optimized was given.
22608 if test "${enable_optimized+set}" = set; then
22609   enableval="$enable_optimized"
22610
22611 else
22612   enableval=no
22613 fi;
22614 if test ${enableval} = "no"
22615 then
22616         ENABLE_OPTIMIZED=
22617
22618 else
22619         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22620
22621 fi
22622
22623 # Check whether --enable-spec or --disable-spec was given.
22624 if test "${enable_spec+set}" = set; then
22625   enableval="$enable_spec"
22626
22627 else
22628   enableval=no
22629 fi;
22630 if test ${enableval} = "no"
22631 then
22632         USE_SPEC=
22633
22634 else
22635         USE_SPEC=USE_SPEC=1
22636
22637 fi
22638
22639 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22640 if test "${enable_precompiled_bytecode+set}" = set; then
22641   enableval="$enable_precompiled_bytecode"
22642
22643 else
22644   enableval=no
22645 fi;
22646 if test ${enableval} = "no"
22647 then
22648         UPB=
22649
22650 else
22651         UPB=USE_PRECOMPILED_BYTECODE=1
22652
22653 fi
22654
22655
22656 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22657 if test "${enable_llc_diffs+set}" = set; then
22658   enableval="$enable_llc_diffs"
22659
22660 else
22661   enableval=yes
22662 fi;
22663 if test ${enableval} = "no"
22664 then
22665         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22666
22667 else
22668         DISABLE_LLC_DIFFS=
22669
22670 fi
22671
22672 # Check whether --enable-jit or --disable-jit was given.
22673 if test "${enable_jit+set}" = set; then
22674   enableval="$enable_jit"
22675
22676 else
22677   enableval=default
22678 fi;
22679
22680 if test ${enableval} = "no"
22681 then
22682         JIT=
22683
22684 else
22685         case $target in
22686                 *i*86*)
22687                         JIT=TARGET_HAS_JIT=1
22688
22689                         ;;
22690                 *sparc*)
22691                         JIT=TARGET_HAS_JIT=1
22692
22693                         ;;
22694                 *)
22695                         JIT=
22696
22697                         ;;
22698         esac
22699 fi
22700
22701
22702
22703 # Check whether --with-spec or --without-spec was given.
22704 if test "${with_spec+set}" = set; then
22705   withval="$with_spec"
22706   SPEC_ROOT=$withval
22707
22708 else
22709   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22710
22711 fi;
22712
22713
22714 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22715 if test "${with_llvmgccdir+set}" = set; then
22716   withval="$with_llvmgccdir"
22717   LLVMGCCDIR=$withval
22718
22719 fi;
22720
22721
22722 # Check whether --with-bcrepos or --without-bcrepos was given.
22723 if test "${with_bcrepos+set}" = set; then
22724   withval="$with_bcrepos"
22725   BCR=$withval
22726
22727 else
22728   BCR=/home/vadve/lattner/LLVMPrograms
22729
22730 fi;
22731
22732
22733 # Check whether --with-papi or --without-papi was given.
22734 if test "${with_papi+set}" = set; then
22735   withval="$with_papi"
22736   PAPIDIR=$withval
22737
22738 else
22739   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22740
22741 fi;
22742
22743
22744 # Check whether --with-purify or --without-purify was given.
22745 if test "${with_purify+set}" = set; then
22746   withval="$with_purify"
22747   PURIFY=$withval
22748
22749 fi;
22750
22751
22752           ac_config_files="$ac_config_files Makefile.config"
22753 cat >confcache <<\_ACEOF
22754 # This file is a shell script that caches the results of configure
22755 # tests run on this system so they can be shared between configure
22756 # scripts and configure runs, see configure's option --config-cache.
22757 # It is not useful on other systems.  If it contains results you don't
22758 # want to keep, you may remove or edit it.
22759 #
22760 # config.status only pays attention to the cache file if you give it
22761 # the --recheck option to rerun configure.
22762 #
22763 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22764 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22765 # following values.
22766
22767 _ACEOF
22768
22769 # The following way of writing the cache mishandles newlines in values,
22770 # but we know of no workaround that is simple, portable, and efficient.
22771 # So, don't put newlines in cache variables' values.
22772 # Ultrix sh set writes to stderr and can't be redirected directly,
22773 # and sets the high bit in the cache file unless we assign to the vars.
22774 {
22775   (set) 2>&1 |
22776     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22777     *ac_space=\ *)
22778       # `set' does not quote correctly, so add quotes (double-quote
22779       # substitution turns \\\\ into \\, and sed turns \\ into \).
22780       sed -n \
22781         "s/'/'\\\\''/g;
22782           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22783       ;;
22784     *)
22785       # `set' quotes correctly as required by POSIX, so do not add quotes.
22786       sed -n \
22787         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22788       ;;
22789     esac;
22790 } |
22791   sed '
22792      t clear
22793      : clear
22794      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22795      t end
22796      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22797      : end' >>confcache
22798 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22799   if test -w $cache_file; then
22800     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22801     cat confcache >$cache_file
22802   else
22803     echo "not updating unwritable cache $cache_file"
22804   fi
22805 fi
22806 rm -f confcache
22807
22808 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22809 # Let make expand exec_prefix.
22810 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22811
22812 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22813 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22814 # trailing colons and then remove the whole line if VPATH becomes empty
22815 # (actually we leave an empty line to preserve line numbers).
22816 if test "x$srcdir" = x.; then
22817   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22818 s/:*\$(srcdir):*/:/;
22819 s/:*\${srcdir}:*/:/;
22820 s/:*@srcdir@:*/:/;
22821 s/^\([^=]*=[    ]*\):*/\1/;
22822 s/:*$//;
22823 s/^[^=]*=[      ]*$//;
22824 }'
22825 fi
22826
22827 DEFS=-DHAVE_CONFIG_H
22828
22829 ac_libobjs=
22830 ac_ltlibobjs=
22831 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22832   # 1. Remove the extension, and $U if already installed.
22833   ac_i=`echo "$ac_i" |
22834          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22835   # 2. Add them.
22836   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22837   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22838 done
22839 LIBOBJS=$ac_libobjs
22840
22841 LTLIBOBJS=$ac_ltlibobjs
22842
22843
22844
22845 : ${CONFIG_STATUS=./config.status}
22846 ac_clean_files_save=$ac_clean_files
22847 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22848 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22849 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22850 cat >$CONFIG_STATUS <<_ACEOF
22851 #! $SHELL
22852 # Generated by $as_me.
22853 # Run this file to recreate the current configuration.
22854 # Compiler output produced by configure, useful for debugging
22855 # configure, is in config.log if it exists.
22856
22857 debug=false
22858 ac_cs_recheck=false
22859 ac_cs_silent=false
22860 SHELL=\${CONFIG_SHELL-$SHELL}
22861 _ACEOF
22862
22863 cat >>$CONFIG_STATUS <<\_ACEOF
22864 ## --------------------- ##
22865 ## M4sh Initialization.  ##
22866 ## --------------------- ##
22867
22868 # Be Bourne compatible
22869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22870   emulate sh
22871   NULLCMD=:
22872   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22873   # is contrary to our usage.  Disable this feature.
22874   alias -g '${1+"$@"}'='"$@"'
22875 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22876   set -o posix
22877 fi
22878
22879 # Support unset when possible.
22880 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22881   as_unset=unset
22882 else
22883   as_unset=false
22884 fi
22885
22886
22887 # Work around bugs in pre-3.0 UWIN ksh.
22888 $as_unset ENV MAIL MAILPATH
22889 PS1='$ '
22890 PS2='> '
22891 PS4='+ '
22892
22893 # NLS nuisances.
22894 for as_var in \
22895   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22896   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22897   LC_TELEPHONE LC_TIME
22898 do
22899   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22900     eval $as_var=C; export $as_var
22901   else
22902     $as_unset $as_var
22903   fi
22904 done
22905
22906 # Required to use basename.
22907 if expr a : '\(a\)' >/dev/null 2>&1; then
22908   as_expr=expr
22909 else
22910   as_expr=false
22911 fi
22912
22913 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22914   as_basename=basename
22915 else
22916   as_basename=false
22917 fi
22918
22919
22920 # Name of the executable.
22921 as_me=`$as_basename "$0" ||
22922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22923          X"$0" : 'X\(//\)$' \| \
22924          X"$0" : 'X\(/\)$' \| \
22925          .     : '\(.\)' 2>/dev/null ||
22926 echo X/"$0" |
22927     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22928           /^X\/\(\/\/\)$/{ s//\1/; q; }
22929           /^X\/\(\/\).*/{ s//\1/; q; }
22930           s/.*/./; q'`
22931
22932
22933 # PATH needs CR, and LINENO needs CR and PATH.
22934 # Avoid depending upon Character Ranges.
22935 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22936 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22937 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22938 as_cr_digits='0123456789'
22939 as_cr_alnum=$as_cr_Letters$as_cr_digits
22940
22941 # The user is always right.
22942 if test "${PATH_SEPARATOR+set}" != set; then
22943   echo "#! /bin/sh" >conf$$.sh
22944   echo  "exit 0"   >>conf$$.sh
22945   chmod +x conf$$.sh
22946   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22947     PATH_SEPARATOR=';'
22948   else
22949     PATH_SEPARATOR=:
22950   fi
22951   rm -f conf$$.sh
22952 fi
22953
22954
22955   as_lineno_1=$LINENO
22956   as_lineno_2=$LINENO
22957   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22958   test "x$as_lineno_1" != "x$as_lineno_2" &&
22959   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22960   # Find who we are.  Look in the path if we contain no path at all
22961   # relative or not.
22962   case $0 in
22963     *[\\/]* ) as_myself=$0 ;;
22964     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22965 for as_dir in $PATH
22966 do
22967   IFS=$as_save_IFS
22968   test -z "$as_dir" && as_dir=.
22969   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22970 done
22971
22972        ;;
22973   esac
22974   # We did not find ourselves, most probably we were run as `sh COMMAND'
22975   # in which case we are not to be found in the path.
22976   if test "x$as_myself" = x; then
22977     as_myself=$0
22978   fi
22979   if test ! -f "$as_myself"; then
22980     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22981 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22982    { (exit 1); exit 1; }; }
22983   fi
22984   case $CONFIG_SHELL in
22985   '')
22986     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22987 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22988 do
22989   IFS=$as_save_IFS
22990   test -z "$as_dir" && as_dir=.
22991   for as_base in sh bash ksh sh5; do
22992          case $as_dir in
22993          /*)
22994            if ("$as_dir/$as_base" -c '
22995   as_lineno_1=$LINENO
22996   as_lineno_2=$LINENO
22997   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22998   test "x$as_lineno_1" != "x$as_lineno_2" &&
22999   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23000              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23001              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23002              CONFIG_SHELL=$as_dir/$as_base
23003              export CONFIG_SHELL
23004              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23005            fi;;
23006          esac
23007        done
23008 done
23009 ;;
23010   esac
23011
23012   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23013   # uniformly replaced by the line number.  The first 'sed' inserts a
23014   # line-number line before each line; the second 'sed' does the real
23015   # work.  The second script uses 'N' to pair each line-number line
23016   # with the numbered line, and appends trailing '-' during
23017   # substitution so that $LINENO is not a special case at line end.
23018   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23019   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23020   sed '=' <$as_myself |
23021     sed '
23022       N
23023       s,$,-,
23024       : loop
23025       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23026       t loop
23027       s,-$,,
23028       s,^['$as_cr_digits']*\n,,
23029     ' >$as_me.lineno &&
23030   chmod +x $as_me.lineno ||
23031     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23032 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23033    { (exit 1); exit 1; }; }
23034
23035   # Don't try to exec as it changes $[0], causing all sort of problems
23036   # (the dirname of $[0] is not the place where we might find the
23037   # original and so on.  Autoconf is especially sensible to this).
23038   . ./$as_me.lineno
23039   # Exit status is that of the last command.
23040   exit
23041 }
23042
23043
23044 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23045   *c*,-n*) ECHO_N= ECHO_C='
23046 ' ECHO_T='      ' ;;
23047   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23048   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23049 esac
23050
23051 if expr a : '\(a\)' >/dev/null 2>&1; then
23052   as_expr=expr
23053 else
23054   as_expr=false
23055 fi
23056
23057 rm -f conf$$ conf$$.exe conf$$.file
23058 echo >conf$$.file
23059 if ln -s conf$$.file conf$$ 2>/dev/null; then
23060   # We could just check for DJGPP; but this test a) works b) is more generic
23061   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23062   if test -f conf$$.exe; then
23063     # Don't use ln at all; we don't have any links
23064     as_ln_s='cp -p'
23065   else
23066     as_ln_s='ln -s'
23067   fi
23068 elif ln conf$$.file conf$$ 2>/dev/null; then
23069   as_ln_s=ln
23070 else
23071   as_ln_s='cp -p'
23072 fi
23073 rm -f conf$$ conf$$.exe conf$$.file
23074
23075 if mkdir -p . 2>/dev/null; then
23076   as_mkdir_p=:
23077 else
23078   as_mkdir_p=false
23079 fi
23080
23081 as_executable_p="test -f"
23082
23083 # Sed expression to map a string onto a valid CPP name.
23084 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23085
23086 # Sed expression to map a string onto a valid variable name.
23087 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23088
23089
23090 # IFS
23091 # We need space, tab and new line, in precisely that order.
23092 as_nl='
23093 '
23094 IFS="   $as_nl"
23095
23096 # CDPATH.
23097 $as_unset CDPATH
23098
23099 exec 6>&1
23100
23101 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23102 # report actual input values of CONFIG_FILES etc. instead of their
23103 # values after options handling.  Logging --version etc. is OK.
23104 exec 5>>config.log
23105 {
23106   echo
23107   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23108 ## Running $as_me. ##
23109 _ASBOX
23110 } >&5
23111 cat >&5 <<_CSEOF
23112
23113 This file was extended by [LLVM] $as_me [1.0], which was
23114 generated by GNU Autoconf 2.57.  Invocation command line was
23115
23116   CONFIG_FILES    = $CONFIG_FILES
23117   CONFIG_HEADERS  = $CONFIG_HEADERS
23118   CONFIG_LINKS    = $CONFIG_LINKS
23119   CONFIG_COMMANDS = $CONFIG_COMMANDS
23120   $ $0 $@
23121
23122 _CSEOF
23123 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23124 echo >&5
23125 _ACEOF
23126
23127 # Files that config.status was made for.
23128 if test -n "$ac_config_files"; then
23129   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23130 fi
23131
23132 if test -n "$ac_config_headers"; then
23133   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23134 fi
23135
23136 if test -n "$ac_config_links"; then
23137   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23138 fi
23139
23140 if test -n "$ac_config_commands"; then
23141   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23142 fi
23143
23144 cat >>$CONFIG_STATUS <<\_ACEOF
23145
23146 ac_cs_usage="\
23147 \`$as_me' instantiates files from templates according to the
23148 current configuration.
23149
23150 Usage: $0 [OPTIONS] [FILE]...
23151
23152   -h, --help       print this help, then exit
23153   -V, --version    print version number, then exit
23154   -q, --quiet      do not print progress messages
23155   -d, --debug      don't remove temporary files
23156       --recheck    update $as_me by reconfiguring in the same conditions
23157   --file=FILE[:TEMPLATE]
23158                    instantiate the configuration file FILE
23159   --header=FILE[:TEMPLATE]
23160                    instantiate the configuration header FILE
23161
23162 Configuration files:
23163 $config_files
23164
23165 Configuration headers:
23166 $config_headers
23167
23168 Configuration commands:
23169 $config_commands
23170
23171 Report bugs to <bug-autoconf@gnu.org>."
23172 _ACEOF
23173
23174 cat >>$CONFIG_STATUS <<_ACEOF
23175 ac_cs_version="\\
23176 [LLVM] config.status [1.0]
23177 configured by $0, generated by GNU Autoconf 2.57,
23178   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23179
23180 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23181 Free Software Foundation, Inc.
23182 This config.status script is free software; the Free Software Foundation
23183 gives unlimited permission to copy, distribute and modify it."
23184 srcdir=$srcdir
23185 INSTALL="$INSTALL"
23186 _ACEOF
23187
23188 cat >>$CONFIG_STATUS <<\_ACEOF
23189 # If no file are specified by the user, then we need to provide default
23190 # value.  By we need to know if files were specified by the user.
23191 ac_need_defaults=:
23192 while test $# != 0
23193 do
23194   case $1 in
23195   --*=*)
23196     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23197     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23198     ac_shift=:
23199     ;;
23200   -*)
23201     ac_option=$1
23202     ac_optarg=$2
23203     ac_shift=shift
23204     ;;
23205   *) # This is not an option, so the user has probably given explicit
23206      # arguments.
23207      ac_option=$1
23208      ac_need_defaults=false;;
23209   esac
23210
23211   case $ac_option in
23212   # Handling of the options.
23213 _ACEOF
23214 cat >>$CONFIG_STATUS <<\_ACEOF
23215   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23216     ac_cs_recheck=: ;;
23217   --version | --vers* | -V )
23218     echo "$ac_cs_version"; exit 0 ;;
23219   --he | --h)
23220     # Conflict between --help and --header
23221     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23222 Try \`$0 --help' for more information." >&5
23223 echo "$as_me: error: ambiguous option: $1
23224 Try \`$0 --help' for more information." >&2;}
23225    { (exit 1); exit 1; }; };;
23226   --help | --hel | -h )
23227     echo "$ac_cs_usage"; exit 0 ;;
23228   --debug | --d* | -d )
23229     debug=: ;;
23230   --file | --fil | --fi | --f )
23231     $ac_shift
23232     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23233     ac_need_defaults=false;;
23234   --header | --heade | --head | --hea )
23235     $ac_shift
23236     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23237     ac_need_defaults=false;;
23238   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23239   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23240     ac_cs_silent=: ;;
23241
23242   # This is an error.
23243   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23244 Try \`$0 --help' for more information." >&5
23245 echo "$as_me: error: unrecognized option: $1
23246 Try \`$0 --help' for more information." >&2;}
23247    { (exit 1); exit 1; }; } ;;
23248
23249   *) ac_config_targets="$ac_config_targets $1" ;;
23250
23251   esac
23252   shift
23253 done
23254
23255 ac_configure_extra_args=
23256
23257 if $ac_cs_silent; then
23258   exec 6>/dev/null
23259   ac_configure_extra_args="$ac_configure_extra_args --silent"
23260 fi
23261
23262 _ACEOF
23263 cat >>$CONFIG_STATUS <<_ACEOF
23264 if \$ac_cs_recheck; then
23265   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23266   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23267 fi
23268
23269 _ACEOF
23270
23271 cat >>$CONFIG_STATUS <<_ACEOF
23272 #
23273 # INIT-COMMANDS section.
23274 #
23275
23276 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23277 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23278 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23279 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23280 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23281 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23282 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23283 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23284 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23285 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23286 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23287 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23288 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23289 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23290 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23291 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23292 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23293 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23294 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23295 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23296 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23297 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23298 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23299 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23300 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23301 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23302 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23303 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23304 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23305 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23306 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23307 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23308 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23309 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23310 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23311 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23312 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23313 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23314 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23315 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libexception/Makefile`
23316 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23317 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23318 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23319 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23320 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23321 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23322 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23323 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23324 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23325 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23326 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23327 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23328 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23329 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23330 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23331 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23332 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23333 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23334 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23335 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23336 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23337 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23338 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23339 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23340 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23341 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23342 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23343 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23344 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23345 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23346 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23347 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23348 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23349 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23350 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23351 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23352 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23353 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23354 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23355 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23356 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23357 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23358 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23359 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23360 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23363 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23364 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23367 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23451
23452 _ACEOF
23453
23454
23455
23456 cat >>$CONFIG_STATUS <<\_ACEOF
23457 for ac_config_target in $ac_config_targets
23458 do
23459   case "$ac_config_target" in
23460   # Handling of arguments.
23461   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23462   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23463   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23464   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23465   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23466   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23467   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23468   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23469   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23470   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23471   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23472   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23473   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23474   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23475   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23476   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23477   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23478   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23479   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23480   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23481   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23482   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23483   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23484   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23485   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23486   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23487   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23488   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23489   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23490   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23491   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23492   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23493   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23494   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23495   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23496   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23497   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23498   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23499   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23500   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23501   "runtime/GCCLibraries/libexception/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libexception/Makefile" ;;
23502   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23503   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23504   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23505   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23506   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23507   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23508   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23509   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23510   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23511   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23512   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23513   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23514   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23515   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23516   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23517   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23518   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23519   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23520   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23521   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23522   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23523   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23524   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23525   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23526   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23527   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23528   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23529   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23530   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23531   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23532   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23533   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23534   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23535   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23536   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23537   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23538   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23539   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23540   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23541   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23542   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23543   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23544   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23545   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23546   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23547   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23548   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23549   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23550   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23551   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23552   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23553   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23554   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23555   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23556   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23557   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23558   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23559   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23560   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23561   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23562   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23563   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23564   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23565   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23566   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23567   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23568   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23569   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23570   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23571   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23572   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23573   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23574   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23575   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23576   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23577   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23578   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23579   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23580   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23581   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23582   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23583   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23584   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23585   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23586   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23587   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23588   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23589   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23590   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23591   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23592   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23593   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23594   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23595   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23596   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23597   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23598   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23599   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23600   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23601   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23602   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23603   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23604   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23605   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23606   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23607   "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23608   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23609   "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23610   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23611   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23612   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23613   "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23614   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23615   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23616   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23617   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23618   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23619   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23620   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23621   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23622   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23623   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23624   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23625   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23626   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23627   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23628   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23629   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23630   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23631   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23632   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23633   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23634   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23635   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23636   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23637   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23638   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23639 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23640    { (exit 1); exit 1; }; };;
23641   esac
23642 done
23643
23644 # If the user did not use the arguments to specify the items to instantiate,
23645 # then the envvar interface is used.  Set only those that are not.
23646 # We use the long form for the default assignment because of an extremely
23647 # bizarre bug on SunOS 4.1.3.
23648 if $ac_need_defaults; then
23649   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23650   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23651   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23652 fi
23653
23654 # Have a temporary directory for convenience.  Make it in the build tree
23655 # simply because there is no reason to put it here, and in addition,
23656 # creating and moving files from /tmp can sometimes cause problems.
23657 # Create a temporary directory, and hook for its removal unless debugging.
23658 $debug ||
23659 {
23660   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23661   trap '{ (exit 1); exit 1; }' 1 2 13 15
23662 }
23663
23664 # Create a (secure) tmp directory for tmp files.
23665
23666 {
23667   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23668   test -n "$tmp" && test -d "$tmp"
23669 }  ||
23670 {
23671   tmp=./confstat$$-$RANDOM
23672   (umask 077 && mkdir $tmp)
23673 } ||
23674 {
23675    echo "$me: cannot create a temporary directory in ." >&2
23676    { (exit 1); exit 1; }
23677 }
23678
23679 _ACEOF
23680
23681 cat >>$CONFIG_STATUS <<_ACEOF
23682
23683 #
23684 # CONFIG_FILES section.
23685 #
23686
23687 # No need to generate the scripts if there are no CONFIG_FILES.
23688 # This happens for instance when ./config.status config.h
23689 if test -n "\$CONFIG_FILES"; then
23690   # Protect against being on the right side of a sed subst in config.status.
23691   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23692    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23693 s,@SHELL@,$SHELL,;t t
23694 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23695 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23696 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23697 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23698 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23699 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23700 s,@exec_prefix@,$exec_prefix,;t t
23701 s,@prefix@,$prefix,;t t
23702 s,@program_transform_name@,$program_transform_name,;t t
23703 s,@bindir@,$bindir,;t t
23704 s,@sbindir@,$sbindir,;t t
23705 s,@libexecdir@,$libexecdir,;t t
23706 s,@datadir@,$datadir,;t t
23707 s,@sysconfdir@,$sysconfdir,;t t
23708 s,@sharedstatedir@,$sharedstatedir,;t t
23709 s,@localstatedir@,$localstatedir,;t t
23710 s,@libdir@,$libdir,;t t
23711 s,@includedir@,$includedir,;t t
23712 s,@oldincludedir@,$oldincludedir,;t t
23713 s,@infodir@,$infodir,;t t
23714 s,@mandir@,$mandir,;t t
23715 s,@build_alias@,$build_alias,;t t
23716 s,@host_alias@,$host_alias,;t t
23717 s,@target_alias@,$target_alias,;t t
23718 s,@DEFS@,$DEFS,;t t
23719 s,@ECHO_C@,$ECHO_C,;t t
23720 s,@ECHO_N@,$ECHO_N,;t t
23721 s,@ECHO_T@,$ECHO_T,;t t
23722 s,@LIBS@,$LIBS,;t t
23723 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23724 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23725 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23726 s,@build@,$build,;t t
23727 s,@build_cpu@,$build_cpu,;t t
23728 s,@build_vendor@,$build_vendor,;t t
23729 s,@build_os@,$build_os,;t t
23730 s,@host@,$host,;t t
23731 s,@host_cpu@,$host_cpu,;t t
23732 s,@host_vendor@,$host_vendor,;t t
23733 s,@host_os@,$host_os,;t t
23734 s,@target@,$target,;t t
23735 s,@target_cpu@,$target_cpu,;t t
23736 s,@target_vendor@,$target_vendor,;t t
23737 s,@target_os@,$target_os,;t t
23738 s,@OS@,$OS,;t t
23739 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23740 s,@ARCH@,$ARCH,;t t
23741 s,@CXX@,$CXX,;t t
23742 s,@CXXFLAGS@,$CXXFLAGS,;t t
23743 s,@LDFLAGS@,$LDFLAGS,;t t
23744 s,@CPPFLAGS@,$CPPFLAGS,;t t
23745 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23746 s,@EXEEXT@,$EXEEXT,;t t
23747 s,@OBJEXT@,$OBJEXT,;t t
23748 s,@CC@,$CC,;t t
23749 s,@CFLAGS@,$CFLAGS,;t t
23750 s,@ac_ct_CC@,$ac_ct_CC,;t t
23751 s,@CPP@,$CPP,;t t
23752 s,@ifGNUmake@,$ifGNUmake,;t t
23753 s,@LEX@,$LEX,;t t
23754 s,@LEXLIB@,$LEXLIB,;t t
23755 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23756 s,@YACC@,$YACC,;t t
23757 s,@EGREP@,$EGREP,;t t
23758 s,@LN_S@,$LN_S,;t t
23759 s,@ECHO@,$ECHO,;t t
23760 s,@AR@,$AR,;t t
23761 s,@ac_ct_AR@,$ac_ct_AR,;t t
23762 s,@RANLIB@,$RANLIB,;t t
23763 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23764 s,@STRIP@,$STRIP,;t t
23765 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23766 s,@CXXCPP@,$CXXCPP,;t t
23767 s,@F77@,$F77,;t t
23768 s,@FFLAGS@,$FFLAGS,;t t
23769 s,@ac_ct_F77@,$ac_ct_F77,;t t
23770 s,@LIBTOOL@,$LIBTOOL,;t t
23771 s,@RPWD@,$RPWD,;t t
23772 s,@SED@,$SED,;t t
23773 s,@RM@,$RM,;t t
23774 s,@MKDIR@,$MKDIR,;t t
23775 s,@DATE@,$DATE,;t t
23776 s,@MV@,$MV,;t t
23777 s,@DOT@,$DOT,;t t
23778 s,@ETAGS@,$ETAGS,;t t
23779 s,@PURIFY@,$PURIFY,;t t
23780 s,@PYTHON@,$PYTHON,;t t
23781 s,@QMTEST@,$QMTEST,;t t
23782 s,@ALLOCA@,$ALLOCA,;t t
23783 s,@LIBOBJS@,$LIBOBJS,;t t
23784 s,@MMAP_FILE@,$MMAP_FILE,;t t
23785 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23786 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23787 s,@USE_SPEC@,$USE_SPEC,;t t
23788 s,@UPB@,$UPB,;t t
23789 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23790 s,@JIT@,$JIT,;t t
23791 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23792 s,@BCR@,$BCR,;t t
23793 s,@PAPIDIR@,$PAPIDIR,;t t
23794 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23795 CEOF
23796
23797 _ACEOF
23798
23799   cat >>$CONFIG_STATUS <<\_ACEOF
23800   # Split the substitutions into bite-sized pieces for seds with
23801   # small command number limits, like on Digital OSF/1 and HP-UX.
23802   ac_max_sed_lines=48
23803   ac_sed_frag=1 # Number of current file.
23804   ac_beg=1 # First line for current file.
23805   ac_end=$ac_max_sed_lines # Line after last line for current file.
23806   ac_more_lines=:
23807   ac_sed_cmds=
23808   while $ac_more_lines; do
23809     if test $ac_beg -gt 1; then
23810       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23811     else
23812       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23813     fi
23814     if test ! -s $tmp/subs.frag; then
23815       ac_more_lines=false
23816     else
23817       # The purpose of the label and of the branching condition is to
23818       # speed up the sed processing (if there are no `@' at all, there
23819       # is no need to browse any of the substitutions).
23820       # These are the two extra sed commands mentioned above.
23821       (echo ':t
23822   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23823       if test -z "$ac_sed_cmds"; then
23824         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23825       else
23826         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23827       fi
23828       ac_sed_frag=`expr $ac_sed_frag + 1`
23829       ac_beg=$ac_end
23830       ac_end=`expr $ac_end + $ac_max_sed_lines`
23831     fi
23832   done
23833   if test -z "$ac_sed_cmds"; then
23834     ac_sed_cmds=cat
23835   fi
23836 fi # test -n "$CONFIG_FILES"
23837
23838 _ACEOF
23839 cat >>$CONFIG_STATUS <<\_ACEOF
23840 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23841   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23842   case $ac_file in
23843   - | *:- | *:-:* ) # input from stdin
23844         cat >$tmp/stdin
23845         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23846         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23847   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23848         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23849   * )   ac_file_in=$ac_file.in ;;
23850   esac
23851
23852   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23853   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23854 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23855          X"$ac_file" : 'X\(//\)[^/]' \| \
23856          X"$ac_file" : 'X\(//\)$' \| \
23857          X"$ac_file" : 'X\(/\)' \| \
23858          .     : '\(.\)' 2>/dev/null ||
23859 echo X"$ac_file" |
23860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23861           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23862           /^X\(\/\/\)$/{ s//\1/; q; }
23863           /^X\(\/\).*/{ s//\1/; q; }
23864           s/.*/./; q'`
23865   { if $as_mkdir_p; then
23866     mkdir -p "$ac_dir"
23867   else
23868     as_dir="$ac_dir"
23869     as_dirs=
23870     while test ! -d "$as_dir"; do
23871       as_dirs="$as_dir $as_dirs"
23872       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23874          X"$as_dir" : 'X\(//\)[^/]' \| \
23875          X"$as_dir" : 'X\(//\)$' \| \
23876          X"$as_dir" : 'X\(/\)' \| \
23877          .     : '\(.\)' 2>/dev/null ||
23878 echo X"$as_dir" |
23879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23880           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23881           /^X\(\/\/\)$/{ s//\1/; q; }
23882           /^X\(\/\).*/{ s//\1/; q; }
23883           s/.*/./; q'`
23884     done
23885     test ! -n "$as_dirs" || mkdir $as_dirs
23886   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23887 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23888    { (exit 1); exit 1; }; }; }
23889
23890   ac_builddir=.
23891
23892 if test "$ac_dir" != .; then
23893   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23894   # A "../" for each directory in $ac_dir_suffix.
23895   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23896 else
23897   ac_dir_suffix= ac_top_builddir=
23898 fi
23899
23900 case $srcdir in
23901   .)  # No --srcdir option.  We are building in place.
23902     ac_srcdir=.
23903     if test -z "$ac_top_builddir"; then
23904        ac_top_srcdir=.
23905     else
23906        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23907     fi ;;
23908   [\\/]* | ?:[\\/]* )  # Absolute path.
23909     ac_srcdir=$srcdir$ac_dir_suffix;
23910     ac_top_srcdir=$srcdir ;;
23911   *) # Relative path.
23912     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23913     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23914 esac
23915 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23916 # absolute.
23917 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23918 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23919 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23920 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23921
23922
23923   case $INSTALL in
23924   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23925   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23926   esac
23927
23928   if test x"$ac_file" != x-; then
23929     { echo "$as_me:$LINENO: creating $ac_file" >&5
23930 echo "$as_me: creating $ac_file" >&6;}
23931     rm -f "$ac_file"
23932   fi
23933   # Let's still pretend it is `configure' which instantiates (i.e., don't
23934   # use $as_me), people would be surprised to read:
23935   #    /* config.h.  Generated by config.status.  */
23936   if test x"$ac_file" = x-; then
23937     configure_input=
23938   else
23939     configure_input="$ac_file.  "
23940   fi
23941   configure_input=$configure_input"Generated from `echo $ac_file_in |
23942                                      sed 's,.*/,,'` by configure."
23943
23944   # First look for the input files in the build tree, otherwise in the
23945   # src tree.
23946   ac_file_inputs=`IFS=:
23947     for f in $ac_file_in; do
23948       case $f in
23949       -) echo $tmp/stdin ;;
23950       [\\/$]*)
23951          # Absolute (can't be DOS-style, as IFS=:)
23952          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23953 echo "$as_me: error: cannot find input file: $f" >&2;}
23954    { (exit 1); exit 1; }; }
23955          echo $f;;
23956       *) # Relative
23957          if test -f "$f"; then
23958            # Build tree
23959            echo $f
23960          elif test -f "$srcdir/$f"; then
23961            # Source tree
23962            echo $srcdir/$f
23963          else
23964            # /dev/null tree
23965            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23966 echo "$as_me: error: cannot find input file: $f" >&2;}
23967    { (exit 1); exit 1; }; }
23968          fi;;
23969       esac
23970     done` || { (exit 1); exit 1; }
23971 _ACEOF
23972 cat >>$CONFIG_STATUS <<_ACEOF
23973   sed "$ac_vpsub
23974 $extrasub
23975 _ACEOF
23976 cat >>$CONFIG_STATUS <<\_ACEOF
23977 :t
23978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23979 s,@configure_input@,$configure_input,;t t
23980 s,@srcdir@,$ac_srcdir,;t t
23981 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23982 s,@top_srcdir@,$ac_top_srcdir,;t t
23983 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23984 s,@builddir@,$ac_builddir,;t t
23985 s,@abs_builddir@,$ac_abs_builddir,;t t
23986 s,@top_builddir@,$ac_top_builddir,;t t
23987 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23988 s,@INSTALL@,$ac_INSTALL,;t t
23989 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23990   rm -f $tmp/stdin
23991   if test x"$ac_file" != x-; then
23992     mv $tmp/out $ac_file
23993   else
23994     cat $tmp/out
23995     rm -f $tmp/out
23996   fi
23997
23998 done
23999 _ACEOF
24000 cat >>$CONFIG_STATUS <<\_ACEOF
24001
24002 #
24003 # CONFIG_HEADER section.
24004 #
24005
24006 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24007 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24008 #
24009 # ac_d sets the value in "#define NAME VALUE" lines.
24010 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24011 ac_dB='[        ].*$,\1#\2'
24012 ac_dC=' '
24013 ac_dD=',;t'
24014 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24015 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24016 ac_uB='$,\1#\2define\3'
24017 ac_uC=' '
24018 ac_uD=',;t'
24019
24020 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24021   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24022   case $ac_file in
24023   - | *:- | *:-:* ) # input from stdin
24024         cat >$tmp/stdin
24025         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24026         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24027   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24028         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24029   * )   ac_file_in=$ac_file.in ;;
24030   esac
24031
24032   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24033 echo "$as_me: creating $ac_file" >&6;}
24034
24035   # First look for the input files in the build tree, otherwise in the
24036   # src tree.
24037   ac_file_inputs=`IFS=:
24038     for f in $ac_file_in; do
24039       case $f in
24040       -) echo $tmp/stdin ;;
24041       [\\/$]*)
24042          # Absolute (can't be DOS-style, as IFS=:)
24043          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24044 echo "$as_me: error: cannot find input file: $f" >&2;}
24045    { (exit 1); exit 1; }; }
24046          echo $f;;
24047       *) # Relative
24048          if test -f "$f"; then
24049            # Build tree
24050            echo $f
24051          elif test -f "$srcdir/$f"; then
24052            # Source tree
24053            echo $srcdir/$f
24054          else
24055            # /dev/null tree
24056            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24057 echo "$as_me: error: cannot find input file: $f" >&2;}
24058    { (exit 1); exit 1; }; }
24059          fi;;
24060       esac
24061     done` || { (exit 1); exit 1; }
24062   # Remove the trailing spaces.
24063   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24064
24065 _ACEOF
24066
24067 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24068 # `conftest.undefs', that substitutes the proper values into
24069 # config.h.in to produce config.h.  The first handles `#define'
24070 # templates, and the second `#undef' templates.
24071 # And first: Protect against being on the right side of a sed subst in
24072 # config.status.  Protect against being in an unquoted here document
24073 # in config.status.
24074 rm -f conftest.defines conftest.undefs
24075 # Using a here document instead of a string reduces the quoting nightmare.
24076 # Putting comments in sed scripts is not portable.
24077 #
24078 # `end' is used to avoid that the second main sed command (meant for
24079 # 0-ary CPP macros) applies to n-ary macro definitions.
24080 # See the Autoconf documentation for `clear'.
24081 cat >confdef2sed.sed <<\_ACEOF
24082 s/[\\&,]/\\&/g
24083 s,[\\$`],\\&,g
24084 t clear
24085 : clear
24086 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24087 t end
24088 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24089 : end
24090 _ACEOF
24091 # If some macros were called several times there might be several times
24092 # the same #defines, which is useless.  Nevertheless, we may not want to
24093 # sort them, since we want the *last* AC-DEFINE to be honored.
24094 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24095 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24096 rm -f confdef2sed.sed
24097
24098 # This sed command replaces #undef with comments.  This is necessary, for
24099 # example, in the case of _POSIX_SOURCE, which is predefined and required
24100 # on some systems where configure will not decide to define it.
24101 cat >>conftest.undefs <<\_ACEOF
24102 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24103 _ACEOF
24104
24105 # Break up conftest.defines because some shells have a limit on the size
24106 # of here documents, and old seds have small limits too (100 cmds).
24107 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24108 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24109 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24110 echo '  :' >>$CONFIG_STATUS
24111 rm -f conftest.tail
24112 while grep . conftest.defines >/dev/null
24113 do
24114   # Write a limited-size here document to $tmp/defines.sed.
24115   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24116   # Speed up: don't consider the non `#define' lines.
24117   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24118   # Work around the forget-to-reset-the-flag bug.
24119   echo 't clr' >>$CONFIG_STATUS
24120   echo ': clr' >>$CONFIG_STATUS
24121   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24122   echo 'CEOF
24123   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24124   rm -f $tmp/in
24125   mv $tmp/out $tmp/in
24126 ' >>$CONFIG_STATUS
24127   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24128   rm -f conftest.defines
24129   mv conftest.tail conftest.defines
24130 done
24131 rm -f conftest.defines
24132 echo '  fi # grep' >>$CONFIG_STATUS
24133 echo >>$CONFIG_STATUS
24134
24135 # Break up conftest.undefs because some shells have a limit on the size
24136 # of here documents, and old seds have small limits too (100 cmds).
24137 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24138 rm -f conftest.tail
24139 while grep . conftest.undefs >/dev/null
24140 do
24141   # Write a limited-size here document to $tmp/undefs.sed.
24142   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24143   # Speed up: don't consider the non `#undef'
24144   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24145   # Work around the forget-to-reset-the-flag bug.
24146   echo 't clr' >>$CONFIG_STATUS
24147   echo ': clr' >>$CONFIG_STATUS
24148   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24149   echo 'CEOF
24150   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24151   rm -f $tmp/in
24152   mv $tmp/out $tmp/in
24153 ' >>$CONFIG_STATUS
24154   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24155   rm -f conftest.undefs
24156   mv conftest.tail conftest.undefs
24157 done
24158 rm -f conftest.undefs
24159
24160 cat >>$CONFIG_STATUS <<\_ACEOF
24161   # Let's still pretend it is `configure' which instantiates (i.e., don't
24162   # use $as_me), people would be surprised to read:
24163   #    /* config.h.  Generated by config.status.  */
24164   if test x"$ac_file" = x-; then
24165     echo "/* Generated by configure.  */" >$tmp/config.h
24166   else
24167     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24168   fi
24169   cat $tmp/in >>$tmp/config.h
24170   rm -f $tmp/in
24171   if test x"$ac_file" != x-; then
24172     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24173       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24174 echo "$as_me: $ac_file is unchanged" >&6;}
24175     else
24176       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24178          X"$ac_file" : 'X\(//\)[^/]' \| \
24179          X"$ac_file" : 'X\(//\)$' \| \
24180          X"$ac_file" : 'X\(/\)' \| \
24181          .     : '\(.\)' 2>/dev/null ||
24182 echo X"$ac_file" |
24183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24184           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24185           /^X\(\/\/\)$/{ s//\1/; q; }
24186           /^X\(\/\).*/{ s//\1/; q; }
24187           s/.*/./; q'`
24188       { if $as_mkdir_p; then
24189     mkdir -p "$ac_dir"
24190   else
24191     as_dir="$ac_dir"
24192     as_dirs=
24193     while test ! -d "$as_dir"; do
24194       as_dirs="$as_dir $as_dirs"
24195       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24197          X"$as_dir" : 'X\(//\)[^/]' \| \
24198          X"$as_dir" : 'X\(//\)$' \| \
24199          X"$as_dir" : 'X\(/\)' \| \
24200          .     : '\(.\)' 2>/dev/null ||
24201 echo X"$as_dir" |
24202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24203           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24204           /^X\(\/\/\)$/{ s//\1/; q; }
24205           /^X\(\/\).*/{ s//\1/; q; }
24206           s/.*/./; q'`
24207     done
24208     test ! -n "$as_dirs" || mkdir $as_dirs
24209   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24210 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24211    { (exit 1); exit 1; }; }; }
24212
24213       rm -f $ac_file
24214       mv $tmp/config.h $ac_file
24215     fi
24216   else
24217     cat $tmp/config.h
24218     rm -f $tmp/config.h
24219   fi
24220 done
24221 _ACEOF
24222 cat >>$CONFIG_STATUS <<\_ACEOF
24223
24224 #
24225 # CONFIG_COMMANDS section.
24226 #
24227 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24228   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24229   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24230   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24231 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24232          X"$ac_dest" : 'X\(//\)[^/]' \| \
24233          X"$ac_dest" : 'X\(//\)$' \| \
24234          X"$ac_dest" : 'X\(/\)' \| \
24235          .     : '\(.\)' 2>/dev/null ||
24236 echo X"$ac_dest" |
24237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24238           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24239           /^X\(\/\/\)$/{ s//\1/; q; }
24240           /^X\(\/\).*/{ s//\1/; q; }
24241           s/.*/./; q'`
24242   ac_builddir=.
24243
24244 if test "$ac_dir" != .; then
24245   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24246   # A "../" for each directory in $ac_dir_suffix.
24247   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24248 else
24249   ac_dir_suffix= ac_top_builddir=
24250 fi
24251
24252 case $srcdir in
24253   .)  # No --srcdir option.  We are building in place.
24254     ac_srcdir=.
24255     if test -z "$ac_top_builddir"; then
24256        ac_top_srcdir=.
24257     else
24258        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24259     fi ;;
24260   [\\/]* | ?:[\\/]* )  # Absolute path.
24261     ac_srcdir=$srcdir$ac_dir_suffix;
24262     ac_top_srcdir=$srcdir ;;
24263   *) # Relative path.
24264     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24265     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24266 esac
24267 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24268 # absolute.
24269 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24270 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24271 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24272 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24273
24274
24275   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24276 echo "$as_me: executing $ac_dest commands" >&6;}
24277   case $ac_dest in
24278     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24279     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24280     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24281     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24282     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24283     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24284     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24285     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24286     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24287     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24288     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24289     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24290     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24291     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24292     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24293     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24294     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24295     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24296     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24297     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24298     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24299     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24300     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24301     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24302     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24303     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24304     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24305     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24306     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24307     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24308     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24309     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24310     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24311     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24312     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24313     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24314     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24315     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24316     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24317     runtime/GCCLibraries/libexception/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libexception/Makefile runtime/GCCLibraries/libexception/Makefile ;;
24318     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24319     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24320     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24321     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24322     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24323     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24324     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24325     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24326     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24327     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24328     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24329     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24330     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24331     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24332     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24333     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24334     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24335     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24336     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24337     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24338     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24339     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24340     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24341     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24342     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24343     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24344     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24345     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24346     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24347     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24348     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 ;;
24349     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 ;;
24350     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 ;;
24351     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 ;;
24352     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 ;;
24353     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 ;;
24354     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 ;;
24355     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 ;;
24356     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 ;;
24357     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 ;;
24358     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 ;;
24359     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 ;;
24360     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 ;;
24361     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 ;;
24362     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 ;;
24363     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 ;;
24364     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24365     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24366     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24367     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24368     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 ;;
24369     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 ;;
24370     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 ;;
24371     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24372     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 ;;
24373     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 ;;
24374     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 ;;
24375     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 ;;
24376     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 ;;
24377     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 ;;
24378     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 ;;
24379     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 ;;
24380     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 ;;
24381     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 ;;
24382     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 ;;
24383     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 ;;
24384     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 ;;
24385     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 ;;
24386     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 ;;
24387     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 ;;
24388     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 ;;
24389     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 ;;
24390     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 ;;
24391     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 ;;
24392     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 ;;
24393     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 ;;
24394     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 ;;
24395     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 ;;
24396     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 ;;
24397     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 ;;
24398     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 ;;
24399     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 ;;
24400     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 ;;
24401     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 ;;
24402     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 ;;
24403     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 ;;
24404     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24405     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24406     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24407     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 ;;
24408     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24409     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24410     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24411     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24412     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24413     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24414     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 ;;
24415     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 ;;
24416     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 ;;
24417     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 ;;
24418     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24419     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24420     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 ;;
24421     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24422     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24423     tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24424     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24425     tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24426     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24427     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24428     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24429     tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24430     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24431     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24432     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24433     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24434     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24435     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24436     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24437     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24438     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24439     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24440     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24441     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24442     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24443     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24444     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24445     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24446     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24447     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24448     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24449     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24450     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24451     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24452     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24453   esac
24454 done
24455 _ACEOF
24456
24457 cat >>$CONFIG_STATUS <<\_ACEOF
24458
24459 { (exit 0); exit 0; }
24460 _ACEOF
24461 chmod +x $CONFIG_STATUS
24462 ac_clean_files=$ac_clean_files_save
24463
24464
24465 # configure is writing to config.log, and then calls config.status.
24466 # config.status does its own redirection, appending to config.log.
24467 # Unfortunately, on DOS this fails, as config.log is still kept open
24468 # by configure, so config.status won't be able to write to it; its
24469 # output is simply discarded.  So we exec the FD to /dev/null,
24470 # effectively closing config.log, so it can be properly (re)opened and
24471 # appended to by config.status.  When coming back to configure, we
24472 # need to make the FD available again.
24473 if test "$no_create" != yes; then
24474   ac_cs_success=:
24475   ac_config_status_args=
24476   test "$silent" = yes &&
24477     ac_config_status_args="$ac_config_status_args --quiet"
24478   exec 5>/dev/null
24479   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24480   exec 5>>config.log
24481   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24482   # would make configure fail if this is the last instruction.
24483   $ac_cs_success || { (exit 1); exit 1; }
24484 fi
24485